]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
5558feed4dfb0b97787f0455b8a38ed641c15e98
[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 }
899 wxPyEndBlockThreads(blocked);
900 return rval;
901 }
902 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
903 void* cookie = 0;
904 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
905 bool blocked = wxPyBeginBlockThreads();
906 PyObject* tup = PyTuple_New(2);
907 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
908 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
909 wxPyEndBlockThreads(blocked);
910 return tup;
911 }
912 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
913 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
914 bool blocked = wxPyBeginBlockThreads();
915 PyObject* tup = PyTuple_New(2);
916 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
917 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
918 wxPyEndBlockThreads(blocked);
919 return tup;
920 }
921 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
922 wxRect rect;
923 if (self->GetBoundingRect(item, rect, textOnly)) {
924 bool blocked = wxPyBeginBlockThreads();
925 wxRect* r = new wxRect(rect);
926 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
927 wxPyEndBlockThreads(blocked);
928 return val;
929 }
930 else
931 RETURN_NONE();
932 }
933 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
934 // C++ version of Python aware wxControl
935 class wxPyControl : public wxControl
936 {
937 DECLARE_DYNAMIC_CLASS(wxPyControl)
938 public:
939 wxPyControl() : wxControl() {}
940 wxPyControl(wxWindow* parent, const wxWindowID id,
941 const wxPoint& pos = wxDefaultPosition,
942 const wxSize& size = wxDefaultSize,
943 long style = 0,
944 const wxValidator& validator=wxDefaultValidator,
945 const wxString& name = wxPyControlNameStr)
946 : wxControl(parent, id, pos, size, style, validator, name) {}
947
948
949 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
950 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
951 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
952 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
953
954 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
955 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
956 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
957
958 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
959 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
960
961 DEC_PYCALLBACK__(InitDialog);
962 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
963 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
964 DEC_PYCALLBACK_BOOL_(Validate);
965
966 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
967 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
968 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
969
970 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
971 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
972
973 DEC_PYCALLBACK_BOOL_(ShouldInheritColours);
974 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
975
976 PYPRIVATE;
977 };
978
979 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
980
981 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
982 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
983 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
984 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
985
986 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
987 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
988 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
989
990 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
991 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
992
993 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
994 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
995 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
996 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
997
998 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
999 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1000 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1001
1002 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1003 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1004
1005 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours);
1006 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1007
1008
1009
1010 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1011
1012 #include <wx/generic/dragimgg.h>
1013
1014 #ifdef __cplusplus
1015 extern "C" {
1016 #endif
1017 static int _wrap_ButtonNameStr_set(PyObject *_val) {
1018 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1019 return 1;
1020 }
1021
1022
1023 static PyObject *_wrap_ButtonNameStr_get() {
1024 PyObject *pyobj;
1025
1026 {
1027 #if wxUSE_UNICODE
1028 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1029 #else
1030 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1031 #endif
1032 }
1033 return pyobj;
1034 }
1035
1036
1037 static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
1038 PyObject *resultobj;
1039 wxWindow *arg1 = (wxWindow *) 0 ;
1040 int arg2 ;
1041 wxString *arg3 = 0 ;
1042 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1043 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1044 wxSize const &arg5_defvalue = wxDefaultSize ;
1045 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1046 long arg6 = (long) 0 ;
1047 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1048 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1049 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1050 wxString *arg8 = (wxString *) &arg8_defvalue ;
1051 wxButton *result;
1052 bool temp3 = False ;
1053 wxPoint temp4 ;
1054 wxSize temp5 ;
1055 bool temp8 = False ;
1056 PyObject * obj0 = 0 ;
1057 PyObject * obj1 = 0 ;
1058 PyObject * obj2 = 0 ;
1059 PyObject * obj3 = 0 ;
1060 PyObject * obj4 = 0 ;
1061 PyObject * obj5 = 0 ;
1062 PyObject * obj6 = 0 ;
1063 PyObject * obj7 = 0 ;
1064 char *kwnames[] = {
1065 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1066 };
1067
1068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1071 arg2 = (int) SWIG_AsInt(obj1);
1072 if (PyErr_Occurred()) SWIG_fail;
1073 {
1074 arg3 = wxString_in_helper(obj2);
1075 if (arg3 == NULL) SWIG_fail;
1076 temp3 = True;
1077 }
1078 if (obj3) {
1079 {
1080 arg4 = &temp4;
1081 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1082 }
1083 }
1084 if (obj4) {
1085 {
1086 arg5 = &temp5;
1087 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1088 }
1089 }
1090 if (obj5) {
1091 arg6 = (long) SWIG_AsLong(obj5);
1092 if (PyErr_Occurred()) SWIG_fail;
1093 }
1094 if (obj6) {
1095 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1096 SWIG_POINTER_EXCEPTION | 0)) == -1)
1097 SWIG_fail;
1098 if (arg7 == NULL) {
1099 PyErr_SetString(PyExc_TypeError,"null reference");
1100 SWIG_fail;
1101 }
1102 }
1103 if (obj7) {
1104 {
1105 arg8 = wxString_in_helper(obj7);
1106 if (arg8 == NULL) SWIG_fail;
1107 temp8 = True;
1108 }
1109 }
1110 {
1111 PyThreadState* __tstate = wxPyBeginAllowThreads();
1112 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1113
1114 wxPyEndAllowThreads(__tstate);
1115 if (PyErr_Occurred()) SWIG_fail;
1116 }
1117 {
1118 resultobj = wxPyMake_wxObject(result);
1119 }
1120 {
1121 if (temp3)
1122 delete arg3;
1123 }
1124 {
1125 if (temp8)
1126 delete arg8;
1127 }
1128 return resultobj;
1129 fail:
1130 {
1131 if (temp3)
1132 delete arg3;
1133 }
1134 {
1135 if (temp8)
1136 delete arg8;
1137 }
1138 return NULL;
1139 }
1140
1141
1142 static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1143 PyObject *resultobj;
1144 wxButton *result;
1145 char *kwnames[] = {
1146 NULL
1147 };
1148
1149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1150 {
1151 PyThreadState* __tstate = wxPyBeginAllowThreads();
1152 result = (wxButton *)new wxButton();
1153
1154 wxPyEndAllowThreads(__tstate);
1155 if (PyErr_Occurred()) SWIG_fail;
1156 }
1157 {
1158 resultobj = wxPyMake_wxObject(result);
1159 }
1160 return resultobj;
1161 fail:
1162 return NULL;
1163 }
1164
1165
1166 static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1167 PyObject *resultobj;
1168 wxButton *arg1 = (wxButton *) 0 ;
1169 wxWindow *arg2 = (wxWindow *) 0 ;
1170 int arg3 ;
1171 wxString *arg4 = 0 ;
1172 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1173 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1174 wxSize const &arg6_defvalue = wxDefaultSize ;
1175 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1176 long arg7 = (long) 0 ;
1177 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1178 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1179 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1180 wxString *arg9 = (wxString *) &arg9_defvalue ;
1181 bool result;
1182 bool temp4 = False ;
1183 wxPoint temp5 ;
1184 wxSize temp6 ;
1185 bool temp9 = False ;
1186 PyObject * obj0 = 0 ;
1187 PyObject * obj1 = 0 ;
1188 PyObject * obj2 = 0 ;
1189 PyObject * obj3 = 0 ;
1190 PyObject * obj4 = 0 ;
1191 PyObject * obj5 = 0 ;
1192 PyObject * obj6 = 0 ;
1193 PyObject * obj7 = 0 ;
1194 PyObject * obj8 = 0 ;
1195 char *kwnames[] = {
1196 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1197 };
1198
1199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1204 arg3 = (int) SWIG_AsInt(obj2);
1205 if (PyErr_Occurred()) SWIG_fail;
1206 {
1207 arg4 = wxString_in_helper(obj3);
1208 if (arg4 == NULL) SWIG_fail;
1209 temp4 = True;
1210 }
1211 if (obj4) {
1212 {
1213 arg5 = &temp5;
1214 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1215 }
1216 }
1217 if (obj5) {
1218 {
1219 arg6 = &temp6;
1220 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1221 }
1222 }
1223 if (obj6) {
1224 arg7 = (long) SWIG_AsLong(obj6);
1225 if (PyErr_Occurred()) SWIG_fail;
1226 }
1227 if (obj7) {
1228 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1229 SWIG_POINTER_EXCEPTION | 0)) == -1)
1230 SWIG_fail;
1231 if (arg8 == NULL) {
1232 PyErr_SetString(PyExc_TypeError,"null reference");
1233 SWIG_fail;
1234 }
1235 }
1236 if (obj8) {
1237 {
1238 arg9 = wxString_in_helper(obj8);
1239 if (arg9 == NULL) SWIG_fail;
1240 temp9 = True;
1241 }
1242 }
1243 {
1244 PyThreadState* __tstate = wxPyBeginAllowThreads();
1245 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1246
1247 wxPyEndAllowThreads(__tstate);
1248 if (PyErr_Occurred()) SWIG_fail;
1249 }
1250 {
1251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1252 }
1253 {
1254 if (temp4)
1255 delete arg4;
1256 }
1257 {
1258 if (temp9)
1259 delete arg9;
1260 }
1261 return resultobj;
1262 fail:
1263 {
1264 if (temp4)
1265 delete arg4;
1266 }
1267 {
1268 if (temp9)
1269 delete arg9;
1270 }
1271 return NULL;
1272 }
1273
1274
1275 static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1276 PyObject *resultobj;
1277 wxButton *arg1 = (wxButton *) 0 ;
1278 PyObject * obj0 = 0 ;
1279 char *kwnames[] = {
1280 (char *) "self", NULL
1281 };
1282
1283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1286 {
1287 PyThreadState* __tstate = wxPyBeginAllowThreads();
1288 (arg1)->SetDefault();
1289
1290 wxPyEndAllowThreads(__tstate);
1291 if (PyErr_Occurred()) SWIG_fail;
1292 }
1293 Py_INCREF(Py_None); resultobj = Py_None;
1294 return resultobj;
1295 fail:
1296 return NULL;
1297 }
1298
1299
1300 static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1301 PyObject *resultobj;
1302 wxSize result;
1303 char *kwnames[] = {
1304 NULL
1305 };
1306
1307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1308 {
1309 PyThreadState* __tstate = wxPyBeginAllowThreads();
1310 result = wxButton::GetDefaultSize();
1311
1312 wxPyEndAllowThreads(__tstate);
1313 if (PyErr_Occurred()) SWIG_fail;
1314 }
1315 {
1316 wxSize * resultptr;
1317 resultptr = new wxSize((wxSize &) result);
1318 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1319 }
1320 return resultobj;
1321 fail:
1322 return NULL;
1323 }
1324
1325
1326 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1327 PyObject *resultobj;
1328 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1329 wxVisualAttributes result;
1330 PyObject * obj0 = 0 ;
1331 char *kwnames[] = {
1332 (char *) "variant", NULL
1333 };
1334
1335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1336 if (obj0) {
1337 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
1338 if (PyErr_Occurred()) SWIG_fail;
1339 }
1340 {
1341 PyThreadState* __tstate = wxPyBeginAllowThreads();
1342 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1343
1344 wxPyEndAllowThreads(__tstate);
1345 if (PyErr_Occurred()) SWIG_fail;
1346 }
1347 {
1348 wxVisualAttributes * resultptr;
1349 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1350 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1351 }
1352 return resultobj;
1353 fail:
1354 return NULL;
1355 }
1356
1357
1358 static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1359 PyObject *obj;
1360 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1361 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1362 Py_INCREF(obj);
1363 return Py_BuildValue((char *)"");
1364 }
1365 static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1366 PyObject *resultobj;
1367 wxWindow *arg1 = (wxWindow *) 0 ;
1368 int arg2 ;
1369 wxBitmap *arg3 = 0 ;
1370 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1371 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1372 wxSize const &arg5_defvalue = wxDefaultSize ;
1373 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1374 long arg6 = (long) wxBU_AUTODRAW ;
1375 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1376 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1377 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1378 wxString *arg8 = (wxString *) &arg8_defvalue ;
1379 wxBitmapButton *result;
1380 wxPoint temp4 ;
1381 wxSize temp5 ;
1382 bool temp8 = False ;
1383 PyObject * obj0 = 0 ;
1384 PyObject * obj1 = 0 ;
1385 PyObject * obj2 = 0 ;
1386 PyObject * obj3 = 0 ;
1387 PyObject * obj4 = 0 ;
1388 PyObject * obj5 = 0 ;
1389 PyObject * obj6 = 0 ;
1390 PyObject * obj7 = 0 ;
1391 char *kwnames[] = {
1392 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1393 };
1394
1395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1398 arg2 = (int) SWIG_AsInt(obj1);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1401 SWIG_POINTER_EXCEPTION | 0)) == -1)
1402 SWIG_fail;
1403 if (arg3 == NULL) {
1404 PyErr_SetString(PyExc_TypeError,"null reference");
1405 SWIG_fail;
1406 }
1407 if (obj3) {
1408 {
1409 arg4 = &temp4;
1410 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1411 }
1412 }
1413 if (obj4) {
1414 {
1415 arg5 = &temp5;
1416 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1417 }
1418 }
1419 if (obj5) {
1420 arg6 = (long) SWIG_AsLong(obj5);
1421 if (PyErr_Occurred()) SWIG_fail;
1422 }
1423 if (obj6) {
1424 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1425 SWIG_POINTER_EXCEPTION | 0)) == -1)
1426 SWIG_fail;
1427 if (arg7 == NULL) {
1428 PyErr_SetString(PyExc_TypeError,"null reference");
1429 SWIG_fail;
1430 }
1431 }
1432 if (obj7) {
1433 {
1434 arg8 = wxString_in_helper(obj7);
1435 if (arg8 == NULL) SWIG_fail;
1436 temp8 = True;
1437 }
1438 }
1439 {
1440 PyThreadState* __tstate = wxPyBeginAllowThreads();
1441 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1442
1443 wxPyEndAllowThreads(__tstate);
1444 if (PyErr_Occurred()) SWIG_fail;
1445 }
1446 {
1447 resultobj = wxPyMake_wxObject(result);
1448 }
1449 {
1450 if (temp8)
1451 delete arg8;
1452 }
1453 return resultobj;
1454 fail:
1455 {
1456 if (temp8)
1457 delete arg8;
1458 }
1459 return NULL;
1460 }
1461
1462
1463 static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1464 PyObject *resultobj;
1465 wxBitmapButton *result;
1466 char *kwnames[] = {
1467 NULL
1468 };
1469
1470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1471 {
1472 PyThreadState* __tstate = wxPyBeginAllowThreads();
1473 result = (wxBitmapButton *)new wxBitmapButton();
1474
1475 wxPyEndAllowThreads(__tstate);
1476 if (PyErr_Occurred()) SWIG_fail;
1477 }
1478 {
1479 resultobj = wxPyMake_wxObject(result);
1480 }
1481 return resultobj;
1482 fail:
1483 return NULL;
1484 }
1485
1486
1487 static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1488 PyObject *resultobj;
1489 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1490 wxWindow *arg2 = (wxWindow *) 0 ;
1491 int arg3 ;
1492 wxBitmap *arg4 = 0 ;
1493 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1494 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1495 wxSize const &arg6_defvalue = wxDefaultSize ;
1496 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1497 long arg7 = (long) wxBU_AUTODRAW ;
1498 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1499 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1500 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1501 wxString *arg9 = (wxString *) &arg9_defvalue ;
1502 bool result;
1503 wxPoint temp5 ;
1504 wxSize temp6 ;
1505 bool temp9 = False ;
1506 PyObject * obj0 = 0 ;
1507 PyObject * obj1 = 0 ;
1508 PyObject * obj2 = 0 ;
1509 PyObject * obj3 = 0 ;
1510 PyObject * obj4 = 0 ;
1511 PyObject * obj5 = 0 ;
1512 PyObject * obj6 = 0 ;
1513 PyObject * obj7 = 0 ;
1514 PyObject * obj8 = 0 ;
1515 char *kwnames[] = {
1516 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1517 };
1518
1519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1524 arg3 = (int) SWIG_AsInt(obj2);
1525 if (PyErr_Occurred()) SWIG_fail;
1526 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1527 SWIG_POINTER_EXCEPTION | 0)) == -1)
1528 SWIG_fail;
1529 if (arg4 == NULL) {
1530 PyErr_SetString(PyExc_TypeError,"null reference");
1531 SWIG_fail;
1532 }
1533 if (obj4) {
1534 {
1535 arg5 = &temp5;
1536 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1537 }
1538 }
1539 if (obj5) {
1540 {
1541 arg6 = &temp6;
1542 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1543 }
1544 }
1545 if (obj6) {
1546 arg7 = (long) SWIG_AsLong(obj6);
1547 if (PyErr_Occurred()) SWIG_fail;
1548 }
1549 if (obj7) {
1550 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1551 SWIG_POINTER_EXCEPTION | 0)) == -1)
1552 SWIG_fail;
1553 if (arg8 == NULL) {
1554 PyErr_SetString(PyExc_TypeError,"null reference");
1555 SWIG_fail;
1556 }
1557 }
1558 if (obj8) {
1559 {
1560 arg9 = wxString_in_helper(obj8);
1561 if (arg9 == NULL) SWIG_fail;
1562 temp9 = True;
1563 }
1564 }
1565 {
1566 PyThreadState* __tstate = wxPyBeginAllowThreads();
1567 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1568
1569 wxPyEndAllowThreads(__tstate);
1570 if (PyErr_Occurred()) SWIG_fail;
1571 }
1572 {
1573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1574 }
1575 {
1576 if (temp9)
1577 delete arg9;
1578 }
1579 return resultobj;
1580 fail:
1581 {
1582 if (temp9)
1583 delete arg9;
1584 }
1585 return NULL;
1586 }
1587
1588
1589 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1590 PyObject *resultobj;
1591 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1592 wxBitmap result;
1593 PyObject * obj0 = 0 ;
1594 char *kwnames[] = {
1595 (char *) "self", NULL
1596 };
1597
1598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1601 {
1602 PyThreadState* __tstate = wxPyBeginAllowThreads();
1603 result = (arg1)->GetBitmapLabel();
1604
1605 wxPyEndAllowThreads(__tstate);
1606 if (PyErr_Occurred()) SWIG_fail;
1607 }
1608 {
1609 wxBitmap * resultptr;
1610 resultptr = new wxBitmap((wxBitmap &) result);
1611 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1612 }
1613 return resultobj;
1614 fail:
1615 return NULL;
1616 }
1617
1618
1619 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1620 PyObject *resultobj;
1621 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1622 wxBitmap result;
1623 PyObject * obj0 = 0 ;
1624 char *kwnames[] = {
1625 (char *) "self", NULL
1626 };
1627
1628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1631 {
1632 PyThreadState* __tstate = wxPyBeginAllowThreads();
1633 result = (arg1)->GetBitmapDisabled();
1634
1635 wxPyEndAllowThreads(__tstate);
1636 if (PyErr_Occurred()) SWIG_fail;
1637 }
1638 {
1639 wxBitmap * resultptr;
1640 resultptr = new wxBitmap((wxBitmap &) result);
1641 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1642 }
1643 return resultobj;
1644 fail:
1645 return NULL;
1646 }
1647
1648
1649 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1650 PyObject *resultobj;
1651 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1652 wxBitmap result;
1653 PyObject * obj0 = 0 ;
1654 char *kwnames[] = {
1655 (char *) "self", NULL
1656 };
1657
1658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1661 {
1662 PyThreadState* __tstate = wxPyBeginAllowThreads();
1663 result = (arg1)->GetBitmapFocus();
1664
1665 wxPyEndAllowThreads(__tstate);
1666 if (PyErr_Occurred()) SWIG_fail;
1667 }
1668 {
1669 wxBitmap * resultptr;
1670 resultptr = new wxBitmap((wxBitmap &) result);
1671 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1672 }
1673 return resultobj;
1674 fail:
1675 return NULL;
1676 }
1677
1678
1679 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1680 PyObject *resultobj;
1681 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1682 wxBitmap result;
1683 PyObject * obj0 = 0 ;
1684 char *kwnames[] = {
1685 (char *) "self", NULL
1686 };
1687
1688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1691 {
1692 PyThreadState* __tstate = wxPyBeginAllowThreads();
1693 result = (arg1)->GetBitmapSelected();
1694
1695 wxPyEndAllowThreads(__tstate);
1696 if (PyErr_Occurred()) SWIG_fail;
1697 }
1698 {
1699 wxBitmap * resultptr;
1700 resultptr = new wxBitmap((wxBitmap &) result);
1701 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1702 }
1703 return resultobj;
1704 fail:
1705 return NULL;
1706 }
1707
1708
1709 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1710 PyObject *resultobj;
1711 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1712 wxBitmap *arg2 = 0 ;
1713 PyObject * obj0 = 0 ;
1714 PyObject * obj1 = 0 ;
1715 char *kwnames[] = {
1716 (char *) "self",(char *) "bitmap", NULL
1717 };
1718
1719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1722 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1723 SWIG_POINTER_EXCEPTION | 0)) == -1)
1724 SWIG_fail;
1725 if (arg2 == NULL) {
1726 PyErr_SetString(PyExc_TypeError,"null reference");
1727 SWIG_fail;
1728 }
1729 {
1730 PyThreadState* __tstate = wxPyBeginAllowThreads();
1731 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1732
1733 wxPyEndAllowThreads(__tstate);
1734 if (PyErr_Occurred()) SWIG_fail;
1735 }
1736 Py_INCREF(Py_None); resultobj = Py_None;
1737 return resultobj;
1738 fail:
1739 return NULL;
1740 }
1741
1742
1743 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1744 PyObject *resultobj;
1745 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1746 wxBitmap *arg2 = 0 ;
1747 PyObject * obj0 = 0 ;
1748 PyObject * obj1 = 0 ;
1749 char *kwnames[] = {
1750 (char *) "self",(char *) "bitmap", NULL
1751 };
1752
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1756 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1757 SWIG_POINTER_EXCEPTION | 0)) == -1)
1758 SWIG_fail;
1759 if (arg2 == NULL) {
1760 PyErr_SetString(PyExc_TypeError,"null reference");
1761 SWIG_fail;
1762 }
1763 {
1764 PyThreadState* __tstate = wxPyBeginAllowThreads();
1765 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1766
1767 wxPyEndAllowThreads(__tstate);
1768 if (PyErr_Occurred()) SWIG_fail;
1769 }
1770 Py_INCREF(Py_None); resultobj = Py_None;
1771 return resultobj;
1772 fail:
1773 return NULL;
1774 }
1775
1776
1777 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1778 PyObject *resultobj;
1779 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1780 wxBitmap *arg2 = 0 ;
1781 PyObject * obj0 = 0 ;
1782 PyObject * obj1 = 0 ;
1783 char *kwnames[] = {
1784 (char *) "self",(char *) "bitmap", NULL
1785 };
1786
1787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1790 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1791 SWIG_POINTER_EXCEPTION | 0)) == -1)
1792 SWIG_fail;
1793 if (arg2 == NULL) {
1794 PyErr_SetString(PyExc_TypeError,"null reference");
1795 SWIG_fail;
1796 }
1797 {
1798 PyThreadState* __tstate = wxPyBeginAllowThreads();
1799 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1800
1801 wxPyEndAllowThreads(__tstate);
1802 if (PyErr_Occurred()) SWIG_fail;
1803 }
1804 Py_INCREF(Py_None); resultobj = Py_None;
1805 return resultobj;
1806 fail:
1807 return NULL;
1808 }
1809
1810
1811 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1812 PyObject *resultobj;
1813 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1814 wxBitmap *arg2 = 0 ;
1815 PyObject * obj0 = 0 ;
1816 PyObject * obj1 = 0 ;
1817 char *kwnames[] = {
1818 (char *) "self",(char *) "bitmap", NULL
1819 };
1820
1821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1824 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1825 SWIG_POINTER_EXCEPTION | 0)) == -1)
1826 SWIG_fail;
1827 if (arg2 == NULL) {
1828 PyErr_SetString(PyExc_TypeError,"null reference");
1829 SWIG_fail;
1830 }
1831 {
1832 PyThreadState* __tstate = wxPyBeginAllowThreads();
1833 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1834
1835 wxPyEndAllowThreads(__tstate);
1836 if (PyErr_Occurred()) SWIG_fail;
1837 }
1838 Py_INCREF(Py_None); resultobj = Py_None;
1839 return resultobj;
1840 fail:
1841 return NULL;
1842 }
1843
1844
1845 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1846 PyObject *resultobj;
1847 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1848 int arg2 ;
1849 int arg3 ;
1850 PyObject * obj0 = 0 ;
1851 PyObject * obj1 = 0 ;
1852 PyObject * obj2 = 0 ;
1853 char *kwnames[] = {
1854 (char *) "self",(char *) "x",(char *) "y", NULL
1855 };
1856
1857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1860 arg2 = (int) SWIG_AsInt(obj1);
1861 if (PyErr_Occurred()) SWIG_fail;
1862 arg3 = (int) SWIG_AsInt(obj2);
1863 if (PyErr_Occurred()) SWIG_fail;
1864 {
1865 PyThreadState* __tstate = wxPyBeginAllowThreads();
1866 (arg1)->SetMargins(arg2,arg3);
1867
1868 wxPyEndAllowThreads(__tstate);
1869 if (PyErr_Occurred()) SWIG_fail;
1870 }
1871 Py_INCREF(Py_None); resultobj = Py_None;
1872 return resultobj;
1873 fail:
1874 return NULL;
1875 }
1876
1877
1878 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject *resultobj;
1880 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1881 int result;
1882 PyObject * obj0 = 0 ;
1883 char *kwnames[] = {
1884 (char *) "self", NULL
1885 };
1886
1887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1890 {
1891 PyThreadState* __tstate = wxPyBeginAllowThreads();
1892 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1893
1894 wxPyEndAllowThreads(__tstate);
1895 if (PyErr_Occurred()) SWIG_fail;
1896 }
1897 resultobj = SWIG_FromInt((int)result);
1898 return resultobj;
1899 fail:
1900 return NULL;
1901 }
1902
1903
1904 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1905 PyObject *resultobj;
1906 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1907 int result;
1908 PyObject * obj0 = 0 ;
1909 char *kwnames[] = {
1910 (char *) "self", NULL
1911 };
1912
1913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1916 {
1917 PyThreadState* __tstate = wxPyBeginAllowThreads();
1918 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1919
1920 wxPyEndAllowThreads(__tstate);
1921 if (PyErr_Occurred()) SWIG_fail;
1922 }
1923 resultobj = SWIG_FromInt((int)result);
1924 return resultobj;
1925 fail:
1926 return NULL;
1927 }
1928
1929
1930 static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1931 PyObject *obj;
1932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1933 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1934 Py_INCREF(obj);
1935 return Py_BuildValue((char *)"");
1936 }
1937 static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1938 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1939 return 1;
1940 }
1941
1942
1943 static PyObject *_wrap_CheckBoxNameStr_get() {
1944 PyObject *pyobj;
1945
1946 {
1947 #if wxUSE_UNICODE
1948 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1949 #else
1950 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1951 #endif
1952 }
1953 return pyobj;
1954 }
1955
1956
1957 static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject *resultobj;
1959 wxWindow *arg1 = (wxWindow *) 0 ;
1960 int arg2 ;
1961 wxString *arg3 = 0 ;
1962 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1963 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1964 wxSize const &arg5_defvalue = wxDefaultSize ;
1965 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1966 long arg6 = (long) 0 ;
1967 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1968 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1969 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1970 wxString *arg8 = (wxString *) &arg8_defvalue ;
1971 wxCheckBox *result;
1972 bool temp3 = False ;
1973 wxPoint temp4 ;
1974 wxSize temp5 ;
1975 bool temp8 = False ;
1976 PyObject * obj0 = 0 ;
1977 PyObject * obj1 = 0 ;
1978 PyObject * obj2 = 0 ;
1979 PyObject * obj3 = 0 ;
1980 PyObject * obj4 = 0 ;
1981 PyObject * obj5 = 0 ;
1982 PyObject * obj6 = 0 ;
1983 PyObject * obj7 = 0 ;
1984 char *kwnames[] = {
1985 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1986 };
1987
1988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1991 arg2 = (int) SWIG_AsInt(obj1);
1992 if (PyErr_Occurred()) SWIG_fail;
1993 {
1994 arg3 = wxString_in_helper(obj2);
1995 if (arg3 == NULL) SWIG_fail;
1996 temp3 = True;
1997 }
1998 if (obj3) {
1999 {
2000 arg4 = &temp4;
2001 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2002 }
2003 }
2004 if (obj4) {
2005 {
2006 arg5 = &temp5;
2007 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2008 }
2009 }
2010 if (obj5) {
2011 arg6 = (long) SWIG_AsLong(obj5);
2012 if (PyErr_Occurred()) SWIG_fail;
2013 }
2014 if (obj6) {
2015 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2016 SWIG_POINTER_EXCEPTION | 0)) == -1)
2017 SWIG_fail;
2018 if (arg7 == NULL) {
2019 PyErr_SetString(PyExc_TypeError,"null reference");
2020 SWIG_fail;
2021 }
2022 }
2023 if (obj7) {
2024 {
2025 arg8 = wxString_in_helper(obj7);
2026 if (arg8 == NULL) SWIG_fail;
2027 temp8 = True;
2028 }
2029 }
2030 {
2031 PyThreadState* __tstate = wxPyBeginAllowThreads();
2032 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2033
2034 wxPyEndAllowThreads(__tstate);
2035 if (PyErr_Occurred()) SWIG_fail;
2036 }
2037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2038 {
2039 if (temp3)
2040 delete arg3;
2041 }
2042 {
2043 if (temp8)
2044 delete arg8;
2045 }
2046 return resultobj;
2047 fail:
2048 {
2049 if (temp3)
2050 delete arg3;
2051 }
2052 {
2053 if (temp8)
2054 delete arg8;
2055 }
2056 return NULL;
2057 }
2058
2059
2060 static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2061 PyObject *resultobj;
2062 wxCheckBox *result;
2063 char *kwnames[] = {
2064 NULL
2065 };
2066
2067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2068 {
2069 PyThreadState* __tstate = wxPyBeginAllowThreads();
2070 result = (wxCheckBox *)new wxCheckBox();
2071
2072 wxPyEndAllowThreads(__tstate);
2073 if (PyErr_Occurred()) SWIG_fail;
2074 }
2075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2076 return resultobj;
2077 fail:
2078 return NULL;
2079 }
2080
2081
2082 static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2083 PyObject *resultobj;
2084 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2085 wxWindow *arg2 = (wxWindow *) 0 ;
2086 int arg3 ;
2087 wxString *arg4 = 0 ;
2088 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2089 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2090 wxSize const &arg6_defvalue = wxDefaultSize ;
2091 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2092 long arg7 = (long) 0 ;
2093 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2094 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2095 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2096 wxString *arg9 = (wxString *) &arg9_defvalue ;
2097 bool result;
2098 bool temp4 = False ;
2099 wxPoint temp5 ;
2100 wxSize temp6 ;
2101 bool temp9 = False ;
2102 PyObject * obj0 = 0 ;
2103 PyObject * obj1 = 0 ;
2104 PyObject * obj2 = 0 ;
2105 PyObject * obj3 = 0 ;
2106 PyObject * obj4 = 0 ;
2107 PyObject * obj5 = 0 ;
2108 PyObject * obj6 = 0 ;
2109 PyObject * obj7 = 0 ;
2110 PyObject * obj8 = 0 ;
2111 char *kwnames[] = {
2112 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2113 };
2114
2115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2118 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2120 arg3 = (int) SWIG_AsInt(obj2);
2121 if (PyErr_Occurred()) SWIG_fail;
2122 {
2123 arg4 = wxString_in_helper(obj3);
2124 if (arg4 == NULL) SWIG_fail;
2125 temp4 = True;
2126 }
2127 if (obj4) {
2128 {
2129 arg5 = &temp5;
2130 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2131 }
2132 }
2133 if (obj5) {
2134 {
2135 arg6 = &temp6;
2136 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2137 }
2138 }
2139 if (obj6) {
2140 arg7 = (long) SWIG_AsLong(obj6);
2141 if (PyErr_Occurred()) SWIG_fail;
2142 }
2143 if (obj7) {
2144 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2145 SWIG_POINTER_EXCEPTION | 0)) == -1)
2146 SWIG_fail;
2147 if (arg8 == NULL) {
2148 PyErr_SetString(PyExc_TypeError,"null reference");
2149 SWIG_fail;
2150 }
2151 }
2152 if (obj8) {
2153 {
2154 arg9 = wxString_in_helper(obj8);
2155 if (arg9 == NULL) SWIG_fail;
2156 temp9 = True;
2157 }
2158 }
2159 {
2160 PyThreadState* __tstate = wxPyBeginAllowThreads();
2161 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2162
2163 wxPyEndAllowThreads(__tstate);
2164 if (PyErr_Occurred()) SWIG_fail;
2165 }
2166 {
2167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2168 }
2169 {
2170 if (temp4)
2171 delete arg4;
2172 }
2173 {
2174 if (temp9)
2175 delete arg9;
2176 }
2177 return resultobj;
2178 fail:
2179 {
2180 if (temp4)
2181 delete arg4;
2182 }
2183 {
2184 if (temp9)
2185 delete arg9;
2186 }
2187 return NULL;
2188 }
2189
2190
2191 static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2192 PyObject *resultobj;
2193 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2194 bool result;
2195 PyObject * obj0 = 0 ;
2196 char *kwnames[] = {
2197 (char *) "self", NULL
2198 };
2199
2200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2203 {
2204 PyThreadState* __tstate = wxPyBeginAllowThreads();
2205 result = (bool)(arg1)->GetValue();
2206
2207 wxPyEndAllowThreads(__tstate);
2208 if (PyErr_Occurred()) SWIG_fail;
2209 }
2210 {
2211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2212 }
2213 return resultobj;
2214 fail:
2215 return NULL;
2216 }
2217
2218
2219 static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2220 PyObject *resultobj;
2221 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2222 bool result;
2223 PyObject * obj0 = 0 ;
2224 char *kwnames[] = {
2225 (char *) "self", NULL
2226 };
2227
2228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2231 {
2232 PyThreadState* __tstate = wxPyBeginAllowThreads();
2233 result = (bool)(arg1)->IsChecked();
2234
2235 wxPyEndAllowThreads(__tstate);
2236 if (PyErr_Occurred()) SWIG_fail;
2237 }
2238 {
2239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2240 }
2241 return resultobj;
2242 fail:
2243 return NULL;
2244 }
2245
2246
2247 static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2248 PyObject *resultobj;
2249 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2250 bool arg2 ;
2251 PyObject * obj0 = 0 ;
2252 PyObject * obj1 = 0 ;
2253 char *kwnames[] = {
2254 (char *) "self",(char *) "state", NULL
2255 };
2256
2257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2260 arg2 = (bool const) SWIG_AsBool(obj1);
2261 if (PyErr_Occurred()) SWIG_fail;
2262 {
2263 PyThreadState* __tstate = wxPyBeginAllowThreads();
2264 (arg1)->SetValue(arg2);
2265
2266 wxPyEndAllowThreads(__tstate);
2267 if (PyErr_Occurred()) SWIG_fail;
2268 }
2269 Py_INCREF(Py_None); resultobj = Py_None;
2270 return resultobj;
2271 fail:
2272 return NULL;
2273 }
2274
2275
2276 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2277 PyObject *resultobj;
2278 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2279 int result;
2280 PyObject * obj0 = 0 ;
2281 char *kwnames[] = {
2282 (char *) "self", NULL
2283 };
2284
2285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2288 {
2289 PyThreadState* __tstate = wxPyBeginAllowThreads();
2290 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2291
2292 wxPyEndAllowThreads(__tstate);
2293 if (PyErr_Occurred()) SWIG_fail;
2294 }
2295 resultobj = SWIG_FromInt((int)result);
2296 return resultobj;
2297 fail:
2298 return NULL;
2299 }
2300
2301
2302 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2303 PyObject *resultobj;
2304 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2305 int arg2 ;
2306 PyObject * obj0 = 0 ;
2307 PyObject * obj1 = 0 ;
2308 char *kwnames[] = {
2309 (char *) "self",(char *) "state", NULL
2310 };
2311
2312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2315 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2316 if (PyErr_Occurred()) SWIG_fail;
2317 {
2318 PyThreadState* __tstate = wxPyBeginAllowThreads();
2319 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2320
2321 wxPyEndAllowThreads(__tstate);
2322 if (PyErr_Occurred()) SWIG_fail;
2323 }
2324 Py_INCREF(Py_None); resultobj = Py_None;
2325 return resultobj;
2326 fail:
2327 return NULL;
2328 }
2329
2330
2331 static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2332 PyObject *resultobj;
2333 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2334 bool result;
2335 PyObject * obj0 = 0 ;
2336 char *kwnames[] = {
2337 (char *) "self", NULL
2338 };
2339
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2343 {
2344 PyThreadState* __tstate = wxPyBeginAllowThreads();
2345 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2346
2347 wxPyEndAllowThreads(__tstate);
2348 if (PyErr_Occurred()) SWIG_fail;
2349 }
2350 {
2351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2352 }
2353 return resultobj;
2354 fail:
2355 return NULL;
2356 }
2357
2358
2359 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2360 PyObject *resultobj;
2361 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2362 bool result;
2363 PyObject * obj0 = 0 ;
2364 char *kwnames[] = {
2365 (char *) "self", NULL
2366 };
2367
2368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2371 {
2372 PyThreadState* __tstate = wxPyBeginAllowThreads();
2373 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2374
2375 wxPyEndAllowThreads(__tstate);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 }
2378 {
2379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2380 }
2381 return resultobj;
2382 fail:
2383 return NULL;
2384 }
2385
2386
2387 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2388 PyObject *resultobj;
2389 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2390 wxVisualAttributes result;
2391 PyObject * obj0 = 0 ;
2392 char *kwnames[] = {
2393 (char *) "variant", NULL
2394 };
2395
2396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2397 if (obj0) {
2398 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2399 if (PyErr_Occurred()) SWIG_fail;
2400 }
2401 {
2402 PyThreadState* __tstate = wxPyBeginAllowThreads();
2403 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2404
2405 wxPyEndAllowThreads(__tstate);
2406 if (PyErr_Occurred()) SWIG_fail;
2407 }
2408 {
2409 wxVisualAttributes * resultptr;
2410 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2411 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2412 }
2413 return resultobj;
2414 fail:
2415 return NULL;
2416 }
2417
2418
2419 static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2420 PyObject *obj;
2421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2422 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2423 Py_INCREF(obj);
2424 return Py_BuildValue((char *)"");
2425 }
2426 static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2427 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2428 return 1;
2429 }
2430
2431
2432 static PyObject *_wrap_ChoiceNameStr_get() {
2433 PyObject *pyobj;
2434
2435 {
2436 #if wxUSE_UNICODE
2437 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2438 #else
2439 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2440 #endif
2441 }
2442 return pyobj;
2443 }
2444
2445
2446 static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2447 PyObject *resultobj;
2448 wxWindow *arg1 = (wxWindow *) 0 ;
2449 int arg2 = (int) -1 ;
2450 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2451 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2452 wxSize const &arg4_defvalue = wxDefaultSize ;
2453 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2454 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2455 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2456 long arg6 = (long) 0 ;
2457 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2458 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2459 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2460 wxString *arg8 = (wxString *) &arg8_defvalue ;
2461 wxChoice *result;
2462 wxPoint temp3 ;
2463 wxSize temp4 ;
2464 bool temp5 = False ;
2465 bool temp8 = False ;
2466 PyObject * obj0 = 0 ;
2467 PyObject * obj1 = 0 ;
2468 PyObject * obj2 = 0 ;
2469 PyObject * obj3 = 0 ;
2470 PyObject * obj4 = 0 ;
2471 PyObject * obj5 = 0 ;
2472 PyObject * obj6 = 0 ;
2473 PyObject * obj7 = 0 ;
2474 char *kwnames[] = {
2475 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2476 };
2477
2478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2481 if (obj1) {
2482 arg2 = (int) SWIG_AsInt(obj1);
2483 if (PyErr_Occurred()) SWIG_fail;
2484 }
2485 if (obj2) {
2486 {
2487 arg3 = &temp3;
2488 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2489 }
2490 }
2491 if (obj3) {
2492 {
2493 arg4 = &temp4;
2494 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2495 }
2496 }
2497 if (obj4) {
2498 {
2499 if (! PySequence_Check(obj4)) {
2500 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2501 SWIG_fail;
2502 }
2503 arg5 = new wxArrayString;
2504 temp5 = True;
2505 int i, len=PySequence_Length(obj4);
2506 for (i=0; i<len; i++) {
2507 PyObject* item = PySequence_GetItem(obj4, i);
2508 #if wxUSE_UNICODE
2509 PyObject* str = PyObject_Unicode(item);
2510 #else
2511 PyObject* str = PyObject_Str(item);
2512 #endif
2513 if (PyErr_Occurred()) SWIG_fail;
2514 arg5->Add(Py2wxString(str));
2515 Py_DECREF(item);
2516 Py_DECREF(str);
2517 }
2518 }
2519 }
2520 if (obj5) {
2521 arg6 = (long) SWIG_AsLong(obj5);
2522 if (PyErr_Occurred()) SWIG_fail;
2523 }
2524 if (obj6) {
2525 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2526 SWIG_POINTER_EXCEPTION | 0)) == -1)
2527 SWIG_fail;
2528 if (arg7 == NULL) {
2529 PyErr_SetString(PyExc_TypeError,"null reference");
2530 SWIG_fail;
2531 }
2532 }
2533 if (obj7) {
2534 {
2535 arg8 = wxString_in_helper(obj7);
2536 if (arg8 == NULL) SWIG_fail;
2537 temp8 = True;
2538 }
2539 }
2540 {
2541 PyThreadState* __tstate = wxPyBeginAllowThreads();
2542 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2543
2544 wxPyEndAllowThreads(__tstate);
2545 if (PyErr_Occurred()) SWIG_fail;
2546 }
2547 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2548 {
2549 if (temp5) delete arg5;
2550 }
2551 {
2552 if (temp8)
2553 delete arg8;
2554 }
2555 return resultobj;
2556 fail:
2557 {
2558 if (temp5) delete arg5;
2559 }
2560 {
2561 if (temp8)
2562 delete arg8;
2563 }
2564 return NULL;
2565 }
2566
2567
2568 static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2569 PyObject *resultobj;
2570 wxChoice *result;
2571 char *kwnames[] = {
2572 NULL
2573 };
2574
2575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2576 {
2577 PyThreadState* __tstate = wxPyBeginAllowThreads();
2578 result = (wxChoice *)new wxChoice();
2579
2580 wxPyEndAllowThreads(__tstate);
2581 if (PyErr_Occurred()) SWIG_fail;
2582 }
2583 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2584 return resultobj;
2585 fail:
2586 return NULL;
2587 }
2588
2589
2590 static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2591 PyObject *resultobj;
2592 wxChoice *arg1 = (wxChoice *) 0 ;
2593 wxWindow *arg2 = (wxWindow *) 0 ;
2594 int arg3 = (int) -1 ;
2595 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2596 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2597 wxSize const &arg5_defvalue = wxDefaultSize ;
2598 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2599 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2600 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2601 long arg7 = (long) 0 ;
2602 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2603 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2604 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2605 wxString *arg9 = (wxString *) &arg9_defvalue ;
2606 bool result;
2607 wxPoint temp4 ;
2608 wxSize temp5 ;
2609 bool temp6 = False ;
2610 bool temp9 = False ;
2611 PyObject * obj0 = 0 ;
2612 PyObject * obj1 = 0 ;
2613 PyObject * obj2 = 0 ;
2614 PyObject * obj3 = 0 ;
2615 PyObject * obj4 = 0 ;
2616 PyObject * obj5 = 0 ;
2617 PyObject * obj6 = 0 ;
2618 PyObject * obj7 = 0 ;
2619 PyObject * obj8 = 0 ;
2620 char *kwnames[] = {
2621 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2622 };
2623
2624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2627 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2629 if (obj2) {
2630 arg3 = (int) SWIG_AsInt(obj2);
2631 if (PyErr_Occurred()) SWIG_fail;
2632 }
2633 if (obj3) {
2634 {
2635 arg4 = &temp4;
2636 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2637 }
2638 }
2639 if (obj4) {
2640 {
2641 arg5 = &temp5;
2642 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2643 }
2644 }
2645 if (obj5) {
2646 {
2647 if (! PySequence_Check(obj5)) {
2648 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2649 SWIG_fail;
2650 }
2651 arg6 = new wxArrayString;
2652 temp6 = True;
2653 int i, len=PySequence_Length(obj5);
2654 for (i=0; i<len; i++) {
2655 PyObject* item = PySequence_GetItem(obj5, i);
2656 #if wxUSE_UNICODE
2657 PyObject* str = PyObject_Unicode(item);
2658 #else
2659 PyObject* str = PyObject_Str(item);
2660 #endif
2661 if (PyErr_Occurred()) SWIG_fail;
2662 arg6->Add(Py2wxString(str));
2663 Py_DECREF(item);
2664 Py_DECREF(str);
2665 }
2666 }
2667 }
2668 if (obj6) {
2669 arg7 = (long) SWIG_AsLong(obj6);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 }
2672 if (obj7) {
2673 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2674 SWIG_POINTER_EXCEPTION | 0)) == -1)
2675 SWIG_fail;
2676 if (arg8 == NULL) {
2677 PyErr_SetString(PyExc_TypeError,"null reference");
2678 SWIG_fail;
2679 }
2680 }
2681 if (obj8) {
2682 {
2683 arg9 = wxString_in_helper(obj8);
2684 if (arg9 == NULL) SWIG_fail;
2685 temp9 = True;
2686 }
2687 }
2688 {
2689 PyThreadState* __tstate = wxPyBeginAllowThreads();
2690 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2691
2692 wxPyEndAllowThreads(__tstate);
2693 if (PyErr_Occurred()) SWIG_fail;
2694 }
2695 {
2696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2697 }
2698 {
2699 if (temp6) delete arg6;
2700 }
2701 {
2702 if (temp9)
2703 delete arg9;
2704 }
2705 return resultobj;
2706 fail:
2707 {
2708 if (temp6) delete arg6;
2709 }
2710 {
2711 if (temp9)
2712 delete arg9;
2713 }
2714 return NULL;
2715 }
2716
2717
2718 static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2719 PyObject *resultobj;
2720 wxChoice *arg1 = (wxChoice *) 0 ;
2721 int arg2 ;
2722 PyObject * obj0 = 0 ;
2723 PyObject * obj1 = 0 ;
2724 char *kwnames[] = {
2725 (char *) "self",(char *) "n", NULL
2726 };
2727
2728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2731 arg2 = (int const) SWIG_AsInt(obj1);
2732 if (PyErr_Occurred()) SWIG_fail;
2733 {
2734 PyThreadState* __tstate = wxPyBeginAllowThreads();
2735 (arg1)->SetSelection(arg2);
2736
2737 wxPyEndAllowThreads(__tstate);
2738 if (PyErr_Occurred()) SWIG_fail;
2739 }
2740 Py_INCREF(Py_None); resultobj = Py_None;
2741 return resultobj;
2742 fail:
2743 return NULL;
2744 }
2745
2746
2747 static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2748 PyObject *resultobj;
2749 wxChoice *arg1 = (wxChoice *) 0 ;
2750 wxString *arg2 = 0 ;
2751 bool result;
2752 bool temp2 = False ;
2753 PyObject * obj0 = 0 ;
2754 PyObject * obj1 = 0 ;
2755 char *kwnames[] = {
2756 (char *) "self",(char *) "string", NULL
2757 };
2758
2759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2762 {
2763 arg2 = wxString_in_helper(obj1);
2764 if (arg2 == NULL) SWIG_fail;
2765 temp2 = True;
2766 }
2767 {
2768 PyThreadState* __tstate = wxPyBeginAllowThreads();
2769 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2770
2771 wxPyEndAllowThreads(__tstate);
2772 if (PyErr_Occurred()) SWIG_fail;
2773 }
2774 {
2775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2776 }
2777 {
2778 if (temp2)
2779 delete arg2;
2780 }
2781 return resultobj;
2782 fail:
2783 {
2784 if (temp2)
2785 delete arg2;
2786 }
2787 return NULL;
2788 }
2789
2790
2791 static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2792 PyObject *resultobj;
2793 wxChoice *arg1 = (wxChoice *) 0 ;
2794 int arg2 ;
2795 wxString *arg3 = 0 ;
2796 bool temp3 = False ;
2797 PyObject * obj0 = 0 ;
2798 PyObject * obj1 = 0 ;
2799 PyObject * obj2 = 0 ;
2800 char *kwnames[] = {
2801 (char *) "self",(char *) "n",(char *) "string", NULL
2802 };
2803
2804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2807 arg2 = (int) SWIG_AsInt(obj1);
2808 if (PyErr_Occurred()) SWIG_fail;
2809 {
2810 arg3 = wxString_in_helper(obj2);
2811 if (arg3 == NULL) SWIG_fail;
2812 temp3 = True;
2813 }
2814 {
2815 PyThreadState* __tstate = wxPyBeginAllowThreads();
2816 (arg1)->SetString(arg2,(wxString const &)*arg3);
2817
2818 wxPyEndAllowThreads(__tstate);
2819 if (PyErr_Occurred()) SWIG_fail;
2820 }
2821 Py_INCREF(Py_None); resultobj = Py_None;
2822 {
2823 if (temp3)
2824 delete arg3;
2825 }
2826 return resultobj;
2827 fail:
2828 {
2829 if (temp3)
2830 delete arg3;
2831 }
2832 return NULL;
2833 }
2834
2835
2836 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2837 PyObject *resultobj;
2838 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2839 wxVisualAttributes result;
2840 PyObject * obj0 = 0 ;
2841 char *kwnames[] = {
2842 (char *) "variant", NULL
2843 };
2844
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2846 if (obj0) {
2847 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2848 if (PyErr_Occurred()) SWIG_fail;
2849 }
2850 {
2851 PyThreadState* __tstate = wxPyBeginAllowThreads();
2852 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
2853
2854 wxPyEndAllowThreads(__tstate);
2855 if (PyErr_Occurred()) SWIG_fail;
2856 }
2857 {
2858 wxVisualAttributes * resultptr;
2859 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2860 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2861 }
2862 return resultobj;
2863 fail:
2864 return NULL;
2865 }
2866
2867
2868 static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2869 PyObject *obj;
2870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2871 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2872 Py_INCREF(obj);
2873 return Py_BuildValue((char *)"");
2874 }
2875 static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2876 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2877 return 1;
2878 }
2879
2880
2881 static PyObject *_wrap_ComboBoxNameStr_get() {
2882 PyObject *pyobj;
2883
2884 {
2885 #if wxUSE_UNICODE
2886 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2887 #else
2888 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2889 #endif
2890 }
2891 return pyobj;
2892 }
2893
2894
2895 static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2896 PyObject *resultobj;
2897 wxWindow *arg1 = (wxWindow *) 0 ;
2898 int arg2 = (int) -1 ;
2899 wxString const &arg3_defvalue = wxPyEmptyString ;
2900 wxString *arg3 = (wxString *) &arg3_defvalue ;
2901 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2902 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2903 wxSize const &arg5_defvalue = wxDefaultSize ;
2904 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2905 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2906 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2907 long arg7 = (long) 0 ;
2908 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2909 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2910 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2911 wxString *arg9 = (wxString *) &arg9_defvalue ;
2912 wxComboBox *result;
2913 bool temp3 = False ;
2914 wxPoint temp4 ;
2915 wxSize temp5 ;
2916 bool temp6 = False ;
2917 bool temp9 = False ;
2918 PyObject * obj0 = 0 ;
2919 PyObject * obj1 = 0 ;
2920 PyObject * obj2 = 0 ;
2921 PyObject * obj3 = 0 ;
2922 PyObject * obj4 = 0 ;
2923 PyObject * obj5 = 0 ;
2924 PyObject * obj6 = 0 ;
2925 PyObject * obj7 = 0 ;
2926 PyObject * obj8 = 0 ;
2927 char *kwnames[] = {
2928 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2929 };
2930
2931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2934 if (obj1) {
2935 arg2 = (int) SWIG_AsInt(obj1);
2936 if (PyErr_Occurred()) SWIG_fail;
2937 }
2938 if (obj2) {
2939 {
2940 arg3 = wxString_in_helper(obj2);
2941 if (arg3 == NULL) SWIG_fail;
2942 temp3 = True;
2943 }
2944 }
2945 if (obj3) {
2946 {
2947 arg4 = &temp4;
2948 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2949 }
2950 }
2951 if (obj4) {
2952 {
2953 arg5 = &temp5;
2954 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2955 }
2956 }
2957 if (obj5) {
2958 {
2959 if (! PySequence_Check(obj5)) {
2960 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2961 SWIG_fail;
2962 }
2963 arg6 = new wxArrayString;
2964 temp6 = True;
2965 int i, len=PySequence_Length(obj5);
2966 for (i=0; i<len; i++) {
2967 PyObject* item = PySequence_GetItem(obj5, i);
2968 #if wxUSE_UNICODE
2969 PyObject* str = PyObject_Unicode(item);
2970 #else
2971 PyObject* str = PyObject_Str(item);
2972 #endif
2973 if (PyErr_Occurred()) SWIG_fail;
2974 arg6->Add(Py2wxString(str));
2975 Py_DECREF(item);
2976 Py_DECREF(str);
2977 }
2978 }
2979 }
2980 if (obj6) {
2981 arg7 = (long) SWIG_AsLong(obj6);
2982 if (PyErr_Occurred()) SWIG_fail;
2983 }
2984 if (obj7) {
2985 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2986 SWIG_POINTER_EXCEPTION | 0)) == -1)
2987 SWIG_fail;
2988 if (arg8 == NULL) {
2989 PyErr_SetString(PyExc_TypeError,"null reference");
2990 SWIG_fail;
2991 }
2992 }
2993 if (obj8) {
2994 {
2995 arg9 = wxString_in_helper(obj8);
2996 if (arg9 == NULL) SWIG_fail;
2997 temp9 = True;
2998 }
2999 }
3000 {
3001 PyThreadState* __tstate = wxPyBeginAllowThreads();
3002 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);
3003
3004 wxPyEndAllowThreads(__tstate);
3005 if (PyErr_Occurred()) SWIG_fail;
3006 }
3007 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3008 {
3009 if (temp3)
3010 delete arg3;
3011 }
3012 {
3013 if (temp6) delete arg6;
3014 }
3015 {
3016 if (temp9)
3017 delete arg9;
3018 }
3019 return resultobj;
3020 fail:
3021 {
3022 if (temp3)
3023 delete arg3;
3024 }
3025 {
3026 if (temp6) delete arg6;
3027 }
3028 {
3029 if (temp9)
3030 delete arg9;
3031 }
3032 return NULL;
3033 }
3034
3035
3036 static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3037 PyObject *resultobj;
3038 wxComboBox *result;
3039 char *kwnames[] = {
3040 NULL
3041 };
3042
3043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3044 {
3045 PyThreadState* __tstate = wxPyBeginAllowThreads();
3046 result = (wxComboBox *)new wxComboBox();
3047
3048 wxPyEndAllowThreads(__tstate);
3049 if (PyErr_Occurred()) SWIG_fail;
3050 }
3051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3052 return resultobj;
3053 fail:
3054 return NULL;
3055 }
3056
3057
3058 static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3059 PyObject *resultobj;
3060 wxComboBox *arg1 = (wxComboBox *) 0 ;
3061 wxWindow *arg2 = (wxWindow *) 0 ;
3062 int arg3 = (int) -1 ;
3063 wxString const &arg4_defvalue = wxPyEmptyString ;
3064 wxString *arg4 = (wxString *) &arg4_defvalue ;
3065 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3066 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3067 wxSize const &arg6_defvalue = wxDefaultSize ;
3068 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3069 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3070 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3071 long arg8 = (long) 0 ;
3072 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3073 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3074 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3075 wxString *arg10 = (wxString *) &arg10_defvalue ;
3076 bool result;
3077 bool temp4 = False ;
3078 wxPoint temp5 ;
3079 wxSize temp6 ;
3080 bool temp7 = False ;
3081 bool temp10 = False ;
3082 PyObject * obj0 = 0 ;
3083 PyObject * obj1 = 0 ;
3084 PyObject * obj2 = 0 ;
3085 PyObject * obj3 = 0 ;
3086 PyObject * obj4 = 0 ;
3087 PyObject * obj5 = 0 ;
3088 PyObject * obj6 = 0 ;
3089 PyObject * obj7 = 0 ;
3090 PyObject * obj8 = 0 ;
3091 PyObject * obj9 = 0 ;
3092 char *kwnames[] = {
3093 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3094 };
3095
3096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3099 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3101 if (obj2) {
3102 arg3 = (int) SWIG_AsInt(obj2);
3103 if (PyErr_Occurred()) SWIG_fail;
3104 }
3105 if (obj3) {
3106 {
3107 arg4 = wxString_in_helper(obj3);
3108 if (arg4 == NULL) SWIG_fail;
3109 temp4 = True;
3110 }
3111 }
3112 if (obj4) {
3113 {
3114 arg5 = &temp5;
3115 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3116 }
3117 }
3118 if (obj5) {
3119 {
3120 arg6 = &temp6;
3121 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3122 }
3123 }
3124 if (obj6) {
3125 {
3126 if (! PySequence_Check(obj6)) {
3127 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3128 SWIG_fail;
3129 }
3130 arg7 = new wxArrayString;
3131 temp7 = True;
3132 int i, len=PySequence_Length(obj6);
3133 for (i=0; i<len; i++) {
3134 PyObject* item = PySequence_GetItem(obj6, i);
3135 #if wxUSE_UNICODE
3136 PyObject* str = PyObject_Unicode(item);
3137 #else
3138 PyObject* str = PyObject_Str(item);
3139 #endif
3140 if (PyErr_Occurred()) SWIG_fail;
3141 arg7->Add(Py2wxString(str));
3142 Py_DECREF(item);
3143 Py_DECREF(str);
3144 }
3145 }
3146 }
3147 if (obj7) {
3148 arg8 = (long) SWIG_AsLong(obj7);
3149 if (PyErr_Occurred()) SWIG_fail;
3150 }
3151 if (obj8) {
3152 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3153 SWIG_POINTER_EXCEPTION | 0)) == -1)
3154 SWIG_fail;
3155 if (arg9 == NULL) {
3156 PyErr_SetString(PyExc_TypeError,"null reference");
3157 SWIG_fail;
3158 }
3159 }
3160 if (obj9) {
3161 {
3162 arg10 = wxString_in_helper(obj9);
3163 if (arg10 == NULL) SWIG_fail;
3164 temp10 = True;
3165 }
3166 }
3167 {
3168 PyThreadState* __tstate = wxPyBeginAllowThreads();
3169 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);
3170
3171 wxPyEndAllowThreads(__tstate);
3172 if (PyErr_Occurred()) SWIG_fail;
3173 }
3174 {
3175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3176 }
3177 {
3178 if (temp4)
3179 delete arg4;
3180 }
3181 {
3182 if (temp7) delete arg7;
3183 }
3184 {
3185 if (temp10)
3186 delete arg10;
3187 }
3188 return resultobj;
3189 fail:
3190 {
3191 if (temp4)
3192 delete arg4;
3193 }
3194 {
3195 if (temp7) delete arg7;
3196 }
3197 {
3198 if (temp10)
3199 delete arg10;
3200 }
3201 return NULL;
3202 }
3203
3204
3205 static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3206 PyObject *resultobj;
3207 wxComboBox *arg1 = (wxComboBox *) 0 ;
3208 wxString result;
3209 PyObject * obj0 = 0 ;
3210 char *kwnames[] = {
3211 (char *) "self", NULL
3212 };
3213
3214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3217 {
3218 PyThreadState* __tstate = wxPyBeginAllowThreads();
3219 result = ((wxComboBox const *)arg1)->GetValue();
3220
3221 wxPyEndAllowThreads(__tstate);
3222 if (PyErr_Occurred()) SWIG_fail;
3223 }
3224 {
3225 #if wxUSE_UNICODE
3226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3227 #else
3228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3229 #endif
3230 }
3231 return resultobj;
3232 fail:
3233 return NULL;
3234 }
3235
3236
3237 static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3238 PyObject *resultobj;
3239 wxComboBox *arg1 = (wxComboBox *) 0 ;
3240 wxString *arg2 = 0 ;
3241 bool temp2 = False ;
3242 PyObject * obj0 = 0 ;
3243 PyObject * obj1 = 0 ;
3244 char *kwnames[] = {
3245 (char *) "self",(char *) "value", NULL
3246 };
3247
3248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3251 {
3252 arg2 = wxString_in_helper(obj1);
3253 if (arg2 == NULL) SWIG_fail;
3254 temp2 = True;
3255 }
3256 {
3257 PyThreadState* __tstate = wxPyBeginAllowThreads();
3258 (arg1)->SetValue((wxString const &)*arg2);
3259
3260 wxPyEndAllowThreads(__tstate);
3261 if (PyErr_Occurred()) SWIG_fail;
3262 }
3263 Py_INCREF(Py_None); resultobj = Py_None;
3264 {
3265 if (temp2)
3266 delete arg2;
3267 }
3268 return resultobj;
3269 fail:
3270 {
3271 if (temp2)
3272 delete arg2;
3273 }
3274 return NULL;
3275 }
3276
3277
3278 static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3279 PyObject *resultobj;
3280 wxComboBox *arg1 = (wxComboBox *) 0 ;
3281 PyObject * obj0 = 0 ;
3282 char *kwnames[] = {
3283 (char *) "self", NULL
3284 };
3285
3286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3289 {
3290 PyThreadState* __tstate = wxPyBeginAllowThreads();
3291 (arg1)->Copy();
3292
3293 wxPyEndAllowThreads(__tstate);
3294 if (PyErr_Occurred()) SWIG_fail;
3295 }
3296 Py_INCREF(Py_None); resultobj = Py_None;
3297 return resultobj;
3298 fail:
3299 return NULL;
3300 }
3301
3302
3303 static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3304 PyObject *resultobj;
3305 wxComboBox *arg1 = (wxComboBox *) 0 ;
3306 PyObject * obj0 = 0 ;
3307 char *kwnames[] = {
3308 (char *) "self", NULL
3309 };
3310
3311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3314 {
3315 PyThreadState* __tstate = wxPyBeginAllowThreads();
3316 (arg1)->Cut();
3317
3318 wxPyEndAllowThreads(__tstate);
3319 if (PyErr_Occurred()) SWIG_fail;
3320 }
3321 Py_INCREF(Py_None); resultobj = Py_None;
3322 return resultobj;
3323 fail:
3324 return NULL;
3325 }
3326
3327
3328 static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3329 PyObject *resultobj;
3330 wxComboBox *arg1 = (wxComboBox *) 0 ;
3331 PyObject * obj0 = 0 ;
3332 char *kwnames[] = {
3333 (char *) "self", NULL
3334 };
3335
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3339 {
3340 PyThreadState* __tstate = wxPyBeginAllowThreads();
3341 (arg1)->Paste();
3342
3343 wxPyEndAllowThreads(__tstate);
3344 if (PyErr_Occurred()) SWIG_fail;
3345 }
3346 Py_INCREF(Py_None); resultobj = Py_None;
3347 return resultobj;
3348 fail:
3349 return NULL;
3350 }
3351
3352
3353 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3354 PyObject *resultobj;
3355 wxComboBox *arg1 = (wxComboBox *) 0 ;
3356 long arg2 ;
3357 PyObject * obj0 = 0 ;
3358 PyObject * obj1 = 0 ;
3359 char *kwnames[] = {
3360 (char *) "self",(char *) "pos", NULL
3361 };
3362
3363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3366 arg2 = (long) SWIG_AsLong(obj1);
3367 if (PyErr_Occurred()) SWIG_fail;
3368 {
3369 PyThreadState* __tstate = wxPyBeginAllowThreads();
3370 (arg1)->SetInsertionPoint(arg2);
3371
3372 wxPyEndAllowThreads(__tstate);
3373 if (PyErr_Occurred()) SWIG_fail;
3374 }
3375 Py_INCREF(Py_None); resultobj = Py_None;
3376 return resultobj;
3377 fail:
3378 return NULL;
3379 }
3380
3381
3382 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3383 PyObject *resultobj;
3384 wxComboBox *arg1 = (wxComboBox *) 0 ;
3385 long result;
3386 PyObject * obj0 = 0 ;
3387 char *kwnames[] = {
3388 (char *) "self", NULL
3389 };
3390
3391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3394 {
3395 PyThreadState* __tstate = wxPyBeginAllowThreads();
3396 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3397
3398 wxPyEndAllowThreads(__tstate);
3399 if (PyErr_Occurred()) SWIG_fail;
3400 }
3401 resultobj = SWIG_FromLong((long)result);
3402 return resultobj;
3403 fail:
3404 return NULL;
3405 }
3406
3407
3408 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3409 PyObject *resultobj;
3410 wxComboBox *arg1 = (wxComboBox *) 0 ;
3411 long result;
3412 PyObject * obj0 = 0 ;
3413 char *kwnames[] = {
3414 (char *) "self", NULL
3415 };
3416
3417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 resultobj = SWIG_FromLong((long)result);
3428 return resultobj;
3429 fail:
3430 return NULL;
3431 }
3432
3433
3434 static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxComboBox *arg1 = (wxComboBox *) 0 ;
3437 long arg2 ;
3438 long arg3 ;
3439 wxString *arg4 = 0 ;
3440 bool temp4 = False ;
3441 PyObject * obj0 = 0 ;
3442 PyObject * obj1 = 0 ;
3443 PyObject * obj2 = 0 ;
3444 PyObject * obj3 = 0 ;
3445 char *kwnames[] = {
3446 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3447 };
3448
3449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3452 arg2 = (long) SWIG_AsLong(obj1);
3453 if (PyErr_Occurred()) SWIG_fail;
3454 arg3 = (long) SWIG_AsLong(obj2);
3455 if (PyErr_Occurred()) SWIG_fail;
3456 {
3457 arg4 = wxString_in_helper(obj3);
3458 if (arg4 == NULL) SWIG_fail;
3459 temp4 = True;
3460 }
3461 {
3462 PyThreadState* __tstate = wxPyBeginAllowThreads();
3463 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3464
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) SWIG_fail;
3467 }
3468 Py_INCREF(Py_None); resultobj = Py_None;
3469 {
3470 if (temp4)
3471 delete arg4;
3472 }
3473 return resultobj;
3474 fail:
3475 {
3476 if (temp4)
3477 delete arg4;
3478 }
3479 return NULL;
3480 }
3481
3482
3483 static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3484 PyObject *resultobj;
3485 wxComboBox *arg1 = (wxComboBox *) 0 ;
3486 int arg2 ;
3487 PyObject * obj0 = 0 ;
3488 PyObject * obj1 = 0 ;
3489 char *kwnames[] = {
3490 (char *) "self",(char *) "n", NULL
3491 };
3492
3493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3496 arg2 = (int) SWIG_AsInt(obj1);
3497 if (PyErr_Occurred()) SWIG_fail;
3498 {
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 (arg1)->SetSelection(arg2);
3501
3502 wxPyEndAllowThreads(__tstate);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 }
3505 Py_INCREF(Py_None); resultobj = Py_None;
3506 return resultobj;
3507 fail:
3508 return NULL;
3509 }
3510
3511
3512 static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3513 PyObject *resultobj;
3514 wxComboBox *arg1 = (wxComboBox *) 0 ;
3515 long arg2 ;
3516 long arg3 ;
3517 PyObject * obj0 = 0 ;
3518 PyObject * obj1 = 0 ;
3519 PyObject * obj2 = 0 ;
3520 char *kwnames[] = {
3521 (char *) "self",(char *) "from",(char *) "to", NULL
3522 };
3523
3524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3527 arg2 = (long) SWIG_AsLong(obj1);
3528 if (PyErr_Occurred()) SWIG_fail;
3529 arg3 = (long) SWIG_AsLong(obj2);
3530 if (PyErr_Occurred()) SWIG_fail;
3531 {
3532 PyThreadState* __tstate = wxPyBeginAllowThreads();
3533 (arg1)->SetSelection(arg2,arg3);
3534
3535 wxPyEndAllowThreads(__tstate);
3536 if (PyErr_Occurred()) SWIG_fail;
3537 }
3538 Py_INCREF(Py_None); resultobj = Py_None;
3539 return resultobj;
3540 fail:
3541 return NULL;
3542 }
3543
3544
3545 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3546 PyObject *resultobj;
3547 wxComboBox *arg1 = (wxComboBox *) 0 ;
3548 wxString *arg2 = 0 ;
3549 bool result;
3550 bool temp2 = False ;
3551 PyObject * obj0 = 0 ;
3552 PyObject * obj1 = 0 ;
3553 char *kwnames[] = {
3554 (char *) "self",(char *) "string", NULL
3555 };
3556
3557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3560 {
3561 arg2 = wxString_in_helper(obj1);
3562 if (arg2 == NULL) SWIG_fail;
3563 temp2 = True;
3564 }
3565 {
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3568
3569 wxPyEndAllowThreads(__tstate);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 {
3573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3574 }
3575 {
3576 if (temp2)
3577 delete arg2;
3578 }
3579 return resultobj;
3580 fail:
3581 {
3582 if (temp2)
3583 delete arg2;
3584 }
3585 return NULL;
3586 }
3587
3588
3589 static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3590 PyObject *resultobj;
3591 wxComboBox *arg1 = (wxComboBox *) 0 ;
3592 int arg2 ;
3593 wxString *arg3 = 0 ;
3594 bool temp3 = False ;
3595 PyObject * obj0 = 0 ;
3596 PyObject * obj1 = 0 ;
3597 PyObject * obj2 = 0 ;
3598 char *kwnames[] = {
3599 (char *) "self",(char *) "n",(char *) "string", NULL
3600 };
3601
3602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3605 arg2 = (int) SWIG_AsInt(obj1);
3606 if (PyErr_Occurred()) SWIG_fail;
3607 {
3608 arg3 = wxString_in_helper(obj2);
3609 if (arg3 == NULL) SWIG_fail;
3610 temp3 = True;
3611 }
3612 {
3613 PyThreadState* __tstate = wxPyBeginAllowThreads();
3614 (arg1)->SetString(arg2,(wxString const &)*arg3);
3615
3616 wxPyEndAllowThreads(__tstate);
3617 if (PyErr_Occurred()) SWIG_fail;
3618 }
3619 Py_INCREF(Py_None); resultobj = Py_None;
3620 {
3621 if (temp3)
3622 delete arg3;
3623 }
3624 return resultobj;
3625 fail:
3626 {
3627 if (temp3)
3628 delete arg3;
3629 }
3630 return NULL;
3631 }
3632
3633
3634 static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3635 PyObject *resultobj;
3636 wxComboBox *arg1 = (wxComboBox *) 0 ;
3637 bool arg2 ;
3638 PyObject * obj0 = 0 ;
3639 PyObject * obj1 = 0 ;
3640 char *kwnames[] = {
3641 (char *) "self",(char *) "editable", NULL
3642 };
3643
3644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3647 arg2 = (bool) SWIG_AsBool(obj1);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 {
3650 PyThreadState* __tstate = wxPyBeginAllowThreads();
3651 (arg1)->SetEditable(arg2);
3652
3653 wxPyEndAllowThreads(__tstate);
3654 if (PyErr_Occurred()) SWIG_fail;
3655 }
3656 Py_INCREF(Py_None); resultobj = Py_None;
3657 return resultobj;
3658 fail:
3659 return NULL;
3660 }
3661
3662
3663 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3664 PyObject *resultobj;
3665 wxComboBox *arg1 = (wxComboBox *) 0 ;
3666 PyObject * obj0 = 0 ;
3667 char *kwnames[] = {
3668 (char *) "self", NULL
3669 };
3670
3671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3674 {
3675 PyThreadState* __tstate = wxPyBeginAllowThreads();
3676 (arg1)->SetInsertionPointEnd();
3677
3678 wxPyEndAllowThreads(__tstate);
3679 if (PyErr_Occurred()) SWIG_fail;
3680 }
3681 Py_INCREF(Py_None); resultobj = Py_None;
3682 return resultobj;
3683 fail:
3684 return NULL;
3685 }
3686
3687
3688 static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3689 PyObject *resultobj;
3690 wxComboBox *arg1 = (wxComboBox *) 0 ;
3691 long arg2 ;
3692 long arg3 ;
3693 PyObject * obj0 = 0 ;
3694 PyObject * obj1 = 0 ;
3695 PyObject * obj2 = 0 ;
3696 char *kwnames[] = {
3697 (char *) "self",(char *) "from",(char *) "to", NULL
3698 };
3699
3700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3703 arg2 = (long) SWIG_AsLong(obj1);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 arg3 = (long) SWIG_AsLong(obj2);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 {
3708 PyThreadState* __tstate = wxPyBeginAllowThreads();
3709 (arg1)->Remove(arg2,arg3);
3710
3711 wxPyEndAllowThreads(__tstate);
3712 if (PyErr_Occurred()) SWIG_fail;
3713 }
3714 Py_INCREF(Py_None); resultobj = Py_None;
3715 return resultobj;
3716 fail:
3717 return NULL;
3718 }
3719
3720
3721 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
3722 PyObject *resultobj;
3723 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3724 wxVisualAttributes result;
3725 PyObject * obj0 = 0 ;
3726 char *kwnames[] = {
3727 (char *) "variant", NULL
3728 };
3729
3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3731 if (obj0) {
3732 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
3733 if (PyErr_Occurred()) SWIG_fail;
3734 }
3735 {
3736 PyThreadState* __tstate = wxPyBeginAllowThreads();
3737 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3738
3739 wxPyEndAllowThreads(__tstate);
3740 if (PyErr_Occurred()) SWIG_fail;
3741 }
3742 {
3743 wxVisualAttributes * resultptr;
3744 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3745 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3746 }
3747 return resultobj;
3748 fail:
3749 return NULL;
3750 }
3751
3752
3753 static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3754 PyObject *obj;
3755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3756 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3757 Py_INCREF(obj);
3758 return Py_BuildValue((char *)"");
3759 }
3760 static int _wrap_GaugeNameStr_set(PyObject *_val) {
3761 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3762 return 1;
3763 }
3764
3765
3766 static PyObject *_wrap_GaugeNameStr_get() {
3767 PyObject *pyobj;
3768
3769 {
3770 #if wxUSE_UNICODE
3771 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3772 #else
3773 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3774 #endif
3775 }
3776 return pyobj;
3777 }
3778
3779
3780 static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3781 PyObject *resultobj;
3782 wxWindow *arg1 = (wxWindow *) 0 ;
3783 int arg2 ;
3784 int arg3 ;
3785 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3786 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3787 wxSize const &arg5_defvalue = wxDefaultSize ;
3788 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3789 long arg6 = (long) wxGA_HORIZONTAL ;
3790 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3791 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3792 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3793 wxString *arg8 = (wxString *) &arg8_defvalue ;
3794 wxGauge *result;
3795 wxPoint temp4 ;
3796 wxSize temp5 ;
3797 bool temp8 = False ;
3798 PyObject * obj0 = 0 ;
3799 PyObject * obj1 = 0 ;
3800 PyObject * obj2 = 0 ;
3801 PyObject * obj3 = 0 ;
3802 PyObject * obj4 = 0 ;
3803 PyObject * obj5 = 0 ;
3804 PyObject * obj6 = 0 ;
3805 PyObject * obj7 = 0 ;
3806 char *kwnames[] = {
3807 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3808 };
3809
3810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3813 arg2 = (int) SWIG_AsInt(obj1);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 arg3 = (int) SWIG_AsInt(obj2);
3816 if (PyErr_Occurred()) SWIG_fail;
3817 if (obj3) {
3818 {
3819 arg4 = &temp4;
3820 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3821 }
3822 }
3823 if (obj4) {
3824 {
3825 arg5 = &temp5;
3826 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3827 }
3828 }
3829 if (obj5) {
3830 arg6 = (long) SWIG_AsLong(obj5);
3831 if (PyErr_Occurred()) SWIG_fail;
3832 }
3833 if (obj6) {
3834 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3835 SWIG_POINTER_EXCEPTION | 0)) == -1)
3836 SWIG_fail;
3837 if (arg7 == NULL) {
3838 PyErr_SetString(PyExc_TypeError,"null reference");
3839 SWIG_fail;
3840 }
3841 }
3842 if (obj7) {
3843 {
3844 arg8 = wxString_in_helper(obj7);
3845 if (arg8 == NULL) SWIG_fail;
3846 temp8 = True;
3847 }
3848 }
3849 {
3850 PyThreadState* __tstate = wxPyBeginAllowThreads();
3851 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3852
3853 wxPyEndAllowThreads(__tstate);
3854 if (PyErr_Occurred()) SWIG_fail;
3855 }
3856 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3857 {
3858 if (temp8)
3859 delete arg8;
3860 }
3861 return resultobj;
3862 fail:
3863 {
3864 if (temp8)
3865 delete arg8;
3866 }
3867 return NULL;
3868 }
3869
3870
3871 static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3872 PyObject *resultobj;
3873 wxGauge *result;
3874 char *kwnames[] = {
3875 NULL
3876 };
3877
3878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3879 {
3880 PyThreadState* __tstate = wxPyBeginAllowThreads();
3881 result = (wxGauge *)new wxGauge();
3882
3883 wxPyEndAllowThreads(__tstate);
3884 if (PyErr_Occurred()) SWIG_fail;
3885 }
3886 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3887 return resultobj;
3888 fail:
3889 return NULL;
3890 }
3891
3892
3893 static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3894 PyObject *resultobj;
3895 wxGauge *arg1 = (wxGauge *) 0 ;
3896 wxWindow *arg2 = (wxWindow *) 0 ;
3897 int arg3 ;
3898 int arg4 ;
3899 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3900 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3901 wxSize const &arg6_defvalue = wxDefaultSize ;
3902 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3903 long arg7 = (long) wxGA_HORIZONTAL ;
3904 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3905 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3906 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3907 wxString *arg9 = (wxString *) &arg9_defvalue ;
3908 bool result;
3909 wxPoint temp5 ;
3910 wxSize temp6 ;
3911 bool temp9 = False ;
3912 PyObject * obj0 = 0 ;
3913 PyObject * obj1 = 0 ;
3914 PyObject * obj2 = 0 ;
3915 PyObject * obj3 = 0 ;
3916 PyObject * obj4 = 0 ;
3917 PyObject * obj5 = 0 ;
3918 PyObject * obj6 = 0 ;
3919 PyObject * obj7 = 0 ;
3920 PyObject * obj8 = 0 ;
3921 char *kwnames[] = {
3922 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3923 };
3924
3925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3928 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3930 arg3 = (int) SWIG_AsInt(obj2);
3931 if (PyErr_Occurred()) SWIG_fail;
3932 arg4 = (int) SWIG_AsInt(obj3);
3933 if (PyErr_Occurred()) SWIG_fail;
3934 if (obj4) {
3935 {
3936 arg5 = &temp5;
3937 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3938 }
3939 }
3940 if (obj5) {
3941 {
3942 arg6 = &temp6;
3943 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3944 }
3945 }
3946 if (obj6) {
3947 arg7 = (long) SWIG_AsLong(obj6);
3948 if (PyErr_Occurred()) SWIG_fail;
3949 }
3950 if (obj7) {
3951 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3952 SWIG_POINTER_EXCEPTION | 0)) == -1)
3953 SWIG_fail;
3954 if (arg8 == NULL) {
3955 PyErr_SetString(PyExc_TypeError,"null reference");
3956 SWIG_fail;
3957 }
3958 }
3959 if (obj8) {
3960 {
3961 arg9 = wxString_in_helper(obj8);
3962 if (arg9 == NULL) SWIG_fail;
3963 temp9 = True;
3964 }
3965 }
3966 {
3967 PyThreadState* __tstate = wxPyBeginAllowThreads();
3968 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3969
3970 wxPyEndAllowThreads(__tstate);
3971 if (PyErr_Occurred()) SWIG_fail;
3972 }
3973 {
3974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3975 }
3976 {
3977 if (temp9)
3978 delete arg9;
3979 }
3980 return resultobj;
3981 fail:
3982 {
3983 if (temp9)
3984 delete arg9;
3985 }
3986 return NULL;
3987 }
3988
3989
3990 static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3991 PyObject *resultobj;
3992 wxGauge *arg1 = (wxGauge *) 0 ;
3993 int arg2 ;
3994 PyObject * obj0 = 0 ;
3995 PyObject * obj1 = 0 ;
3996 char *kwnames[] = {
3997 (char *) "self",(char *) "range", NULL
3998 };
3999
4000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4003 arg2 = (int) SWIG_AsInt(obj1);
4004 if (PyErr_Occurred()) SWIG_fail;
4005 {
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 (arg1)->SetRange(arg2);
4008
4009 wxPyEndAllowThreads(__tstate);
4010 if (PyErr_Occurred()) SWIG_fail;
4011 }
4012 Py_INCREF(Py_None); resultobj = Py_None;
4013 return resultobj;
4014 fail:
4015 return NULL;
4016 }
4017
4018
4019 static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
4020 PyObject *resultobj;
4021 wxGauge *arg1 = (wxGauge *) 0 ;
4022 int result;
4023 PyObject * obj0 = 0 ;
4024 char *kwnames[] = {
4025 (char *) "self", NULL
4026 };
4027
4028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 result = (int)((wxGauge const *)arg1)->GetRange();
4034
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 resultobj = SWIG_FromInt((int)result);
4039 return resultobj;
4040 fail:
4041 return NULL;
4042 }
4043
4044
4045 static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4046 PyObject *resultobj;
4047 wxGauge *arg1 = (wxGauge *) 0 ;
4048 int arg2 ;
4049 PyObject * obj0 = 0 ;
4050 PyObject * obj1 = 0 ;
4051 char *kwnames[] = {
4052 (char *) "self",(char *) "pos", NULL
4053 };
4054
4055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4058 arg2 = (int) SWIG_AsInt(obj1);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 {
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
4062 (arg1)->SetValue(arg2);
4063
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 Py_INCREF(Py_None); resultobj = Py_None;
4068 return resultobj;
4069 fail:
4070 return NULL;
4071 }
4072
4073
4074 static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4075 PyObject *resultobj;
4076 wxGauge *arg1 = (wxGauge *) 0 ;
4077 int result;
4078 PyObject * obj0 = 0 ;
4079 char *kwnames[] = {
4080 (char *) "self", NULL
4081 };
4082
4083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4086 {
4087 PyThreadState* __tstate = wxPyBeginAllowThreads();
4088 result = (int)((wxGauge const *)arg1)->GetValue();
4089
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 resultobj = SWIG_FromInt((int)result);
4094 return resultobj;
4095 fail:
4096 return NULL;
4097 }
4098
4099
4100 static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4101 PyObject *resultobj;
4102 wxGauge *arg1 = (wxGauge *) 0 ;
4103 bool result;
4104 PyObject * obj0 = 0 ;
4105 char *kwnames[] = {
4106 (char *) "self", NULL
4107 };
4108
4109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (bool)((wxGauge const *)arg1)->IsVertical();
4115
4116 wxPyEndAllowThreads(__tstate);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 }
4119 {
4120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4121 }
4122 return resultobj;
4123 fail:
4124 return NULL;
4125 }
4126
4127
4128 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4129 PyObject *resultobj;
4130 wxGauge *arg1 = (wxGauge *) 0 ;
4131 int arg2 ;
4132 PyObject * obj0 = 0 ;
4133 PyObject * obj1 = 0 ;
4134 char *kwnames[] = {
4135 (char *) "self",(char *) "w", NULL
4136 };
4137
4138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4141 arg2 = (int) SWIG_AsInt(obj1);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 {
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 (arg1)->SetShadowWidth(arg2);
4146
4147 wxPyEndAllowThreads(__tstate);
4148 if (PyErr_Occurred()) SWIG_fail;
4149 }
4150 Py_INCREF(Py_None); resultobj = Py_None;
4151 return resultobj;
4152 fail:
4153 return NULL;
4154 }
4155
4156
4157 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4158 PyObject *resultobj;
4159 wxGauge *arg1 = (wxGauge *) 0 ;
4160 int result;
4161 PyObject * obj0 = 0 ;
4162 char *kwnames[] = {
4163 (char *) "self", NULL
4164 };
4165
4166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4169 {
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4172
4173 wxPyEndAllowThreads(__tstate);
4174 if (PyErr_Occurred()) SWIG_fail;
4175 }
4176 resultobj = SWIG_FromInt((int)result);
4177 return resultobj;
4178 fail:
4179 return NULL;
4180 }
4181
4182
4183 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj;
4185 wxGauge *arg1 = (wxGauge *) 0 ;
4186 int arg2 ;
4187 PyObject * obj0 = 0 ;
4188 PyObject * obj1 = 0 ;
4189 char *kwnames[] = {
4190 (char *) "self",(char *) "w", NULL
4191 };
4192
4193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4196 arg2 = (int) SWIG_AsInt(obj1);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 {
4199 PyThreadState* __tstate = wxPyBeginAllowThreads();
4200 (arg1)->SetBezelFace(arg2);
4201
4202 wxPyEndAllowThreads(__tstate);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 Py_INCREF(Py_None); resultobj = Py_None;
4206 return resultobj;
4207 fail:
4208 return NULL;
4209 }
4210
4211
4212 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4213 PyObject *resultobj;
4214 wxGauge *arg1 = (wxGauge *) 0 ;
4215 int result;
4216 PyObject * obj0 = 0 ;
4217 char *kwnames[] = {
4218 (char *) "self", NULL
4219 };
4220
4221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4227
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_FromInt((int)result);
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj;
4240 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4241 wxVisualAttributes result;
4242 PyObject * obj0 = 0 ;
4243 char *kwnames[] = {
4244 (char *) "variant", NULL
4245 };
4246
4247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4248 if (obj0) {
4249 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 {
4253 PyThreadState* __tstate = wxPyBeginAllowThreads();
4254 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4255
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 {
4260 wxVisualAttributes * resultptr;
4261 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4262 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4263 }
4264 return resultobj;
4265 fail:
4266 return NULL;
4267 }
4268
4269
4270 static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
4271 PyObject *obj;
4272 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4273 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4274 Py_INCREF(obj);
4275 return Py_BuildValue((char *)"");
4276 }
4277 static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
4278 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4279 return 1;
4280 }
4281
4282
4283 static PyObject *_wrap_StaticBitmapNameStr_get() {
4284 PyObject *pyobj;
4285
4286 {
4287 #if wxUSE_UNICODE
4288 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4289 #else
4290 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4291 #endif
4292 }
4293 return pyobj;
4294 }
4295
4296
4297 static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
4298 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4299 return 1;
4300 }
4301
4302
4303 static PyObject *_wrap_StaticBoxNameStr_get() {
4304 PyObject *pyobj;
4305
4306 {
4307 #if wxUSE_UNICODE
4308 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4309 #else
4310 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4311 #endif
4312 }
4313 return pyobj;
4314 }
4315
4316
4317 static int _wrap_StaticTextNameStr_set(PyObject *_val) {
4318 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4319 return 1;
4320 }
4321
4322
4323 static PyObject *_wrap_StaticTextNameStr_get() {
4324 PyObject *pyobj;
4325
4326 {
4327 #if wxUSE_UNICODE
4328 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4329 #else
4330 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4331 #endif
4332 }
4333 return pyobj;
4334 }
4335
4336
4337 static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4338 PyObject *resultobj;
4339 wxWindow *arg1 = (wxWindow *) 0 ;
4340 int arg2 ;
4341 wxString *arg3 = 0 ;
4342 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4343 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4344 wxSize const &arg5_defvalue = wxDefaultSize ;
4345 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4346 long arg6 = (long) 0 ;
4347 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4348 wxString *arg7 = (wxString *) &arg7_defvalue ;
4349 wxStaticBox *result;
4350 bool temp3 = False ;
4351 wxPoint temp4 ;
4352 wxSize temp5 ;
4353 bool temp7 = False ;
4354 PyObject * obj0 = 0 ;
4355 PyObject * obj1 = 0 ;
4356 PyObject * obj2 = 0 ;
4357 PyObject * obj3 = 0 ;
4358 PyObject * obj4 = 0 ;
4359 PyObject * obj5 = 0 ;
4360 PyObject * obj6 = 0 ;
4361 char *kwnames[] = {
4362 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4363 };
4364
4365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4368 arg2 = (int) SWIG_AsInt(obj1);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 {
4371 arg3 = wxString_in_helper(obj2);
4372 if (arg3 == NULL) SWIG_fail;
4373 temp3 = True;
4374 }
4375 if (obj3) {
4376 {
4377 arg4 = &temp4;
4378 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4379 }
4380 }
4381 if (obj4) {
4382 {
4383 arg5 = &temp5;
4384 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4385 }
4386 }
4387 if (obj5) {
4388 arg6 = (long) SWIG_AsLong(obj5);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 if (obj6) {
4392 {
4393 arg7 = wxString_in_helper(obj6);
4394 if (arg7 == NULL) SWIG_fail;
4395 temp7 = True;
4396 }
4397 }
4398 {
4399 PyThreadState* __tstate = wxPyBeginAllowThreads();
4400 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4401
4402 wxPyEndAllowThreads(__tstate);
4403 if (PyErr_Occurred()) SWIG_fail;
4404 }
4405 {
4406 resultobj = wxPyMake_wxObject(result);
4407 }
4408 {
4409 if (temp3)
4410 delete arg3;
4411 }
4412 {
4413 if (temp7)
4414 delete arg7;
4415 }
4416 return resultobj;
4417 fail:
4418 {
4419 if (temp3)
4420 delete arg3;
4421 }
4422 {
4423 if (temp7)
4424 delete arg7;
4425 }
4426 return NULL;
4427 }
4428
4429
4430 static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4431 PyObject *resultobj;
4432 wxStaticBox *result;
4433 char *kwnames[] = {
4434 NULL
4435 };
4436
4437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 result = (wxStaticBox *)new wxStaticBox();
4441
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 {
4446 resultobj = wxPyMake_wxObject(result);
4447 }
4448 return resultobj;
4449 fail:
4450 return NULL;
4451 }
4452
4453
4454 static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4455 PyObject *resultobj;
4456 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4457 wxWindow *arg2 = (wxWindow *) 0 ;
4458 int arg3 ;
4459 wxString *arg4 = 0 ;
4460 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4461 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4462 wxSize const &arg6_defvalue = wxDefaultSize ;
4463 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4464 long arg7 = (long) 0 ;
4465 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4466 wxString *arg8 = (wxString *) &arg8_defvalue ;
4467 bool result;
4468 bool temp4 = False ;
4469 wxPoint temp5 ;
4470 wxSize temp6 ;
4471 bool temp8 = False ;
4472 PyObject * obj0 = 0 ;
4473 PyObject * obj1 = 0 ;
4474 PyObject * obj2 = 0 ;
4475 PyObject * obj3 = 0 ;
4476 PyObject * obj4 = 0 ;
4477 PyObject * obj5 = 0 ;
4478 PyObject * obj6 = 0 ;
4479 PyObject * obj7 = 0 ;
4480 char *kwnames[] = {
4481 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4482 };
4483
4484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4489 arg3 = (int) SWIG_AsInt(obj2);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 {
4492 arg4 = wxString_in_helper(obj3);
4493 if (arg4 == NULL) SWIG_fail;
4494 temp4 = True;
4495 }
4496 if (obj4) {
4497 {
4498 arg5 = &temp5;
4499 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4500 }
4501 }
4502 if (obj5) {
4503 {
4504 arg6 = &temp6;
4505 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4506 }
4507 }
4508 if (obj6) {
4509 arg7 = (long) SWIG_AsLong(obj6);
4510 if (PyErr_Occurred()) SWIG_fail;
4511 }
4512 if (obj7) {
4513 {
4514 arg8 = wxString_in_helper(obj7);
4515 if (arg8 == NULL) SWIG_fail;
4516 temp8 = True;
4517 }
4518 }
4519 {
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
4521 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4522
4523 wxPyEndAllowThreads(__tstate);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 }
4526 {
4527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4528 }
4529 {
4530 if (temp4)
4531 delete arg4;
4532 }
4533 {
4534 if (temp8)
4535 delete arg8;
4536 }
4537 return resultobj;
4538 fail:
4539 {
4540 if (temp4)
4541 delete arg4;
4542 }
4543 {
4544 if (temp8)
4545 delete arg8;
4546 }
4547 return NULL;
4548 }
4549
4550
4551 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4552 PyObject *resultobj;
4553 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4554 wxVisualAttributes result;
4555 PyObject * obj0 = 0 ;
4556 char *kwnames[] = {
4557 (char *) "variant", NULL
4558 };
4559
4560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4561 if (obj0) {
4562 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4563 if (PyErr_Occurred()) SWIG_fail;
4564 }
4565 {
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4568
4569 wxPyEndAllowThreads(__tstate);
4570 if (PyErr_Occurred()) SWIG_fail;
4571 }
4572 {
4573 wxVisualAttributes * resultptr;
4574 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4575 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4576 }
4577 return resultobj;
4578 fail:
4579 return NULL;
4580 }
4581
4582
4583 static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4584 PyObject *obj;
4585 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4586 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4587 Py_INCREF(obj);
4588 return Py_BuildValue((char *)"");
4589 }
4590 static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4591 PyObject *resultobj;
4592 wxWindow *arg1 = (wxWindow *) 0 ;
4593 int arg2 ;
4594 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4595 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4596 wxSize const &arg4_defvalue = wxDefaultSize ;
4597 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4598 long arg5 = (long) wxLI_HORIZONTAL ;
4599 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4600 wxString *arg6 = (wxString *) &arg6_defvalue ;
4601 wxStaticLine *result;
4602 wxPoint temp3 ;
4603 wxSize temp4 ;
4604 bool temp6 = False ;
4605 PyObject * obj0 = 0 ;
4606 PyObject * obj1 = 0 ;
4607 PyObject * obj2 = 0 ;
4608 PyObject * obj3 = 0 ;
4609 PyObject * obj4 = 0 ;
4610 PyObject * obj5 = 0 ;
4611 char *kwnames[] = {
4612 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4613 };
4614
4615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4618 arg2 = (int) SWIG_AsInt(obj1);
4619 if (PyErr_Occurred()) SWIG_fail;
4620 if (obj2) {
4621 {
4622 arg3 = &temp3;
4623 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4624 }
4625 }
4626 if (obj3) {
4627 {
4628 arg4 = &temp4;
4629 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4630 }
4631 }
4632 if (obj4) {
4633 arg5 = (long) SWIG_AsLong(obj4);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 }
4636 if (obj5) {
4637 {
4638 arg6 = wxString_in_helper(obj5);
4639 if (arg6 == NULL) SWIG_fail;
4640 temp6 = True;
4641 }
4642 }
4643 {
4644 PyThreadState* __tstate = wxPyBeginAllowThreads();
4645 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4646
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4651 {
4652 if (temp6)
4653 delete arg6;
4654 }
4655 return resultobj;
4656 fail:
4657 {
4658 if (temp6)
4659 delete arg6;
4660 }
4661 return NULL;
4662 }
4663
4664
4665 static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj;
4667 wxStaticLine *result;
4668 char *kwnames[] = {
4669 NULL
4670 };
4671
4672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4673 {
4674 PyThreadState* __tstate = wxPyBeginAllowThreads();
4675 result = (wxStaticLine *)new wxStaticLine();
4676
4677 wxPyEndAllowThreads(__tstate);
4678 if (PyErr_Occurred()) SWIG_fail;
4679 }
4680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4681 return resultobj;
4682 fail:
4683 return NULL;
4684 }
4685
4686
4687 static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4688 PyObject *resultobj;
4689 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4690 wxWindow *arg2 = (wxWindow *) 0 ;
4691 int arg3 ;
4692 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4693 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4694 wxSize const &arg5_defvalue = wxDefaultSize ;
4695 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4696 long arg6 = (long) wxLI_HORIZONTAL ;
4697 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4698 wxString *arg7 = (wxString *) &arg7_defvalue ;
4699 bool result;
4700 wxPoint temp4 ;
4701 wxSize temp5 ;
4702 bool temp7 = False ;
4703 PyObject * obj0 = 0 ;
4704 PyObject * obj1 = 0 ;
4705 PyObject * obj2 = 0 ;
4706 PyObject * obj3 = 0 ;
4707 PyObject * obj4 = 0 ;
4708 PyObject * obj5 = 0 ;
4709 PyObject * obj6 = 0 ;
4710 char *kwnames[] = {
4711 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4712 };
4713
4714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4717 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4719 arg3 = (int) SWIG_AsInt(obj2);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 if (obj3) {
4722 {
4723 arg4 = &temp4;
4724 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4725 }
4726 }
4727 if (obj4) {
4728 {
4729 arg5 = &temp5;
4730 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4731 }
4732 }
4733 if (obj5) {
4734 arg6 = (long) SWIG_AsLong(obj5);
4735 if (PyErr_Occurred()) SWIG_fail;
4736 }
4737 if (obj6) {
4738 {
4739 arg7 = wxString_in_helper(obj6);
4740 if (arg7 == NULL) SWIG_fail;
4741 temp7 = True;
4742 }
4743 }
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4747
4748 wxPyEndAllowThreads(__tstate);
4749 if (PyErr_Occurred()) SWIG_fail;
4750 }
4751 {
4752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4753 }
4754 {
4755 if (temp7)
4756 delete arg7;
4757 }
4758 return resultobj;
4759 fail:
4760 {
4761 if (temp7)
4762 delete arg7;
4763 }
4764 return NULL;
4765 }
4766
4767
4768 static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4769 PyObject *resultobj;
4770 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4771 bool result;
4772 PyObject * obj0 = 0 ;
4773 char *kwnames[] = {
4774 (char *) "self", NULL
4775 };
4776
4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4780 {
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4783
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
4787 {
4788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4789 }
4790 return resultobj;
4791 fail:
4792 return NULL;
4793 }
4794
4795
4796 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4797 PyObject *resultobj;
4798 int result;
4799 char *kwnames[] = {
4800 NULL
4801 };
4802
4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4804 {
4805 PyThreadState* __tstate = wxPyBeginAllowThreads();
4806 result = (int)wxStaticLine::GetDefaultSize();
4807
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = SWIG_FromInt((int)result);
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj;
4820 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4821 wxVisualAttributes result;
4822 PyObject * obj0 = 0 ;
4823 char *kwnames[] = {
4824 (char *) "variant", NULL
4825 };
4826
4827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4828 if (obj0) {
4829 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 {
4833 PyThreadState* __tstate = wxPyBeginAllowThreads();
4834 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
4835
4836 wxPyEndAllowThreads(__tstate);
4837 if (PyErr_Occurred()) SWIG_fail;
4838 }
4839 {
4840 wxVisualAttributes * resultptr;
4841 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4842 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4843 }
4844 return resultobj;
4845 fail:
4846 return NULL;
4847 }
4848
4849
4850 static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4851 PyObject *obj;
4852 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4853 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4854 Py_INCREF(obj);
4855 return Py_BuildValue((char *)"");
4856 }
4857 static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4858 PyObject *resultobj;
4859 wxWindow *arg1 = (wxWindow *) 0 ;
4860 int arg2 ;
4861 wxString *arg3 = 0 ;
4862 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4863 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4864 wxSize const &arg5_defvalue = wxDefaultSize ;
4865 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4866 long arg6 = (long) 0 ;
4867 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4868 wxString *arg7 = (wxString *) &arg7_defvalue ;
4869 wxStaticText *result;
4870 bool temp3 = False ;
4871 wxPoint temp4 ;
4872 wxSize temp5 ;
4873 bool temp7 = False ;
4874 PyObject * obj0 = 0 ;
4875 PyObject * obj1 = 0 ;
4876 PyObject * obj2 = 0 ;
4877 PyObject * obj3 = 0 ;
4878 PyObject * obj4 = 0 ;
4879 PyObject * obj5 = 0 ;
4880 PyObject * obj6 = 0 ;
4881 char *kwnames[] = {
4882 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4883 };
4884
4885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4888 arg2 = (int) SWIG_AsInt(obj1);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 {
4891 arg3 = wxString_in_helper(obj2);
4892 if (arg3 == NULL) SWIG_fail;
4893 temp3 = True;
4894 }
4895 if (obj3) {
4896 {
4897 arg4 = &temp4;
4898 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4899 }
4900 }
4901 if (obj4) {
4902 {
4903 arg5 = &temp5;
4904 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4905 }
4906 }
4907 if (obj5) {
4908 arg6 = (long) SWIG_AsLong(obj5);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 if (obj6) {
4912 {
4913 arg7 = wxString_in_helper(obj6);
4914 if (arg7 == NULL) SWIG_fail;
4915 temp7 = True;
4916 }
4917 }
4918 {
4919 PyThreadState* __tstate = wxPyBeginAllowThreads();
4920 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4921
4922 wxPyEndAllowThreads(__tstate);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4926 {
4927 if (temp3)
4928 delete arg3;
4929 }
4930 {
4931 if (temp7)
4932 delete arg7;
4933 }
4934 return resultobj;
4935 fail:
4936 {
4937 if (temp3)
4938 delete arg3;
4939 }
4940 {
4941 if (temp7)
4942 delete arg7;
4943 }
4944 return NULL;
4945 }
4946
4947
4948 static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4949 PyObject *resultobj;
4950 wxStaticText *result;
4951 char *kwnames[] = {
4952 NULL
4953 };
4954
4955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 result = (wxStaticText *)new wxStaticText();
4959
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 }
4963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4964 return resultobj;
4965 fail:
4966 return NULL;
4967 }
4968
4969
4970 static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4971 PyObject *resultobj;
4972 wxStaticText *arg1 = (wxStaticText *) 0 ;
4973 wxWindow *arg2 = (wxWindow *) 0 ;
4974 int arg3 ;
4975 wxString *arg4 = 0 ;
4976 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4977 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4978 wxSize const &arg6_defvalue = wxDefaultSize ;
4979 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4980 long arg7 = (long) 0 ;
4981 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4982 wxString *arg8 = (wxString *) &arg8_defvalue ;
4983 bool result;
4984 bool temp4 = False ;
4985 wxPoint temp5 ;
4986 wxSize temp6 ;
4987 bool temp8 = False ;
4988 PyObject * obj0 = 0 ;
4989 PyObject * obj1 = 0 ;
4990 PyObject * obj2 = 0 ;
4991 PyObject * obj3 = 0 ;
4992 PyObject * obj4 = 0 ;
4993 PyObject * obj5 = 0 ;
4994 PyObject * obj6 = 0 ;
4995 PyObject * obj7 = 0 ;
4996 char *kwnames[] = {
4997 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4998 };
4999
5000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5003 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5005 arg3 = (int) SWIG_AsInt(obj2);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 {
5008 arg4 = wxString_in_helper(obj3);
5009 if (arg4 == NULL) SWIG_fail;
5010 temp4 = True;
5011 }
5012 if (obj4) {
5013 {
5014 arg5 = &temp5;
5015 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5016 }
5017 }
5018 if (obj5) {
5019 {
5020 arg6 = &temp6;
5021 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5022 }
5023 }
5024 if (obj6) {
5025 arg7 = (long) SWIG_AsLong(obj6);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 if (obj7) {
5029 {
5030 arg8 = wxString_in_helper(obj7);
5031 if (arg8 == NULL) SWIG_fail;
5032 temp8 = True;
5033 }
5034 }
5035 {
5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
5037 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5038
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 {
5043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5044 }
5045 {
5046 if (temp4)
5047 delete arg4;
5048 }
5049 {
5050 if (temp8)
5051 delete arg8;
5052 }
5053 return resultobj;
5054 fail:
5055 {
5056 if (temp4)
5057 delete arg4;
5058 }
5059 {
5060 if (temp8)
5061 delete arg8;
5062 }
5063 return NULL;
5064 }
5065
5066
5067 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5068 PyObject *resultobj;
5069 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5070 wxVisualAttributes result;
5071 PyObject * obj0 = 0 ;
5072 char *kwnames[] = {
5073 (char *) "variant", NULL
5074 };
5075
5076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5077 if (obj0) {
5078 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 {
5082 PyThreadState* __tstate = wxPyBeginAllowThreads();
5083 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5084
5085 wxPyEndAllowThreads(__tstate);
5086 if (PyErr_Occurred()) SWIG_fail;
5087 }
5088 {
5089 wxVisualAttributes * resultptr;
5090 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5091 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5092 }
5093 return resultobj;
5094 fail:
5095 return NULL;
5096 }
5097
5098
5099 static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
5100 PyObject *obj;
5101 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5102 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5103 Py_INCREF(obj);
5104 return Py_BuildValue((char *)"");
5105 }
5106 static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5107 PyObject *resultobj;
5108 wxWindow *arg1 = (wxWindow *) 0 ;
5109 int arg2 ;
5110 wxBitmap *arg3 = 0 ;
5111 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5112 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5113 wxSize const &arg5_defvalue = wxDefaultSize ;
5114 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5115 long arg6 = (long) 0 ;
5116 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5117 wxString *arg7 = (wxString *) &arg7_defvalue ;
5118 wxStaticBitmap *result;
5119 wxPoint temp4 ;
5120 wxSize temp5 ;
5121 bool temp7 = False ;
5122 PyObject * obj0 = 0 ;
5123 PyObject * obj1 = 0 ;
5124 PyObject * obj2 = 0 ;
5125 PyObject * obj3 = 0 ;
5126 PyObject * obj4 = 0 ;
5127 PyObject * obj5 = 0 ;
5128 PyObject * obj6 = 0 ;
5129 char *kwnames[] = {
5130 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5131 };
5132
5133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5136 arg2 = (int) SWIG_AsInt(obj1);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5139 SWIG_POINTER_EXCEPTION | 0)) == -1)
5140 SWIG_fail;
5141 if (arg3 == NULL) {
5142 PyErr_SetString(PyExc_TypeError,"null reference");
5143 SWIG_fail;
5144 }
5145 if (obj3) {
5146 {
5147 arg4 = &temp4;
5148 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5149 }
5150 }
5151 if (obj4) {
5152 {
5153 arg5 = &temp5;
5154 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5155 }
5156 }
5157 if (obj5) {
5158 arg6 = (long) SWIG_AsLong(obj5);
5159 if (PyErr_Occurred()) SWIG_fail;
5160 }
5161 if (obj6) {
5162 {
5163 arg7 = wxString_in_helper(obj6);
5164 if (arg7 == NULL) SWIG_fail;
5165 temp7 = True;
5166 }
5167 }
5168 {
5169 PyThreadState* __tstate = wxPyBeginAllowThreads();
5170 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5171
5172 wxPyEndAllowThreads(__tstate);
5173 if (PyErr_Occurred()) SWIG_fail;
5174 }
5175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5176 {
5177 if (temp7)
5178 delete arg7;
5179 }
5180 return resultobj;
5181 fail:
5182 {
5183 if (temp7)
5184 delete arg7;
5185 }
5186 return NULL;
5187 }
5188
5189
5190 static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5191 PyObject *resultobj;
5192 wxStaticBitmap *result;
5193 char *kwnames[] = {
5194 NULL
5195 };
5196
5197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5198 {
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxStaticBitmap *)new wxStaticBitmap();
5201
5202 wxPyEndAllowThreads(__tstate);
5203 if (PyErr_Occurred()) SWIG_fail;
5204 }
5205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5206 return resultobj;
5207 fail:
5208 return NULL;
5209 }
5210
5211
5212 static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5213 PyObject *resultobj;
5214 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5215 wxWindow *arg2 = (wxWindow *) 0 ;
5216 int arg3 ;
5217 wxBitmap *arg4 = 0 ;
5218 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5219 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5220 wxSize const &arg6_defvalue = wxDefaultSize ;
5221 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5222 long arg7 = (long) 0 ;
5223 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5224 wxString *arg8 = (wxString *) &arg8_defvalue ;
5225 bool result;
5226 wxPoint temp5 ;
5227 wxSize temp6 ;
5228 bool temp8 = False ;
5229 PyObject * obj0 = 0 ;
5230 PyObject * obj1 = 0 ;
5231 PyObject * obj2 = 0 ;
5232 PyObject * obj3 = 0 ;
5233 PyObject * obj4 = 0 ;
5234 PyObject * obj5 = 0 ;
5235 PyObject * obj6 = 0 ;
5236 PyObject * obj7 = 0 ;
5237 char *kwnames[] = {
5238 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5239 };
5240
5241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5244 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5246 arg3 = (int) SWIG_AsInt(obj2);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5249 SWIG_POINTER_EXCEPTION | 0)) == -1)
5250 SWIG_fail;
5251 if (arg4 == NULL) {
5252 PyErr_SetString(PyExc_TypeError,"null reference");
5253 SWIG_fail;
5254 }
5255 if (obj4) {
5256 {
5257 arg5 = &temp5;
5258 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5259 }
5260 }
5261 if (obj5) {
5262 {
5263 arg6 = &temp6;
5264 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5265 }
5266 }
5267 if (obj6) {
5268 arg7 = (long) SWIG_AsLong(obj6);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 }
5271 if (obj7) {
5272 {
5273 arg8 = wxString_in_helper(obj7);
5274 if (arg8 == NULL) SWIG_fail;
5275 temp8 = True;
5276 }
5277 }
5278 {
5279 PyThreadState* __tstate = wxPyBeginAllowThreads();
5280 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5281
5282 wxPyEndAllowThreads(__tstate);
5283 if (PyErr_Occurred()) SWIG_fail;
5284 }
5285 {
5286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5287 }
5288 {
5289 if (temp8)
5290 delete arg8;
5291 }
5292 return resultobj;
5293 fail:
5294 {
5295 if (temp8)
5296 delete arg8;
5297 }
5298 return NULL;
5299 }
5300
5301
5302 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5303 PyObject *resultobj;
5304 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5305 wxBitmap result;
5306 PyObject * obj0 = 0 ;
5307 char *kwnames[] = {
5308 (char *) "self", NULL
5309 };
5310
5311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5314 {
5315 PyThreadState* __tstate = wxPyBeginAllowThreads();
5316 result = (arg1)->GetBitmap();
5317
5318 wxPyEndAllowThreads(__tstate);
5319 if (PyErr_Occurred()) SWIG_fail;
5320 }
5321 {
5322 wxBitmap * resultptr;
5323 resultptr = new wxBitmap((wxBitmap &) result);
5324 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5325 }
5326 return resultobj;
5327 fail:
5328 return NULL;
5329 }
5330
5331
5332 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5333 PyObject *resultobj;
5334 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5335 wxBitmap *arg2 = 0 ;
5336 PyObject * obj0 = 0 ;
5337 PyObject * obj1 = 0 ;
5338 char *kwnames[] = {
5339 (char *) "self",(char *) "bitmap", NULL
5340 };
5341
5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5345 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5346 SWIG_POINTER_EXCEPTION | 0)) == -1)
5347 SWIG_fail;
5348 if (arg2 == NULL) {
5349 PyErr_SetString(PyExc_TypeError,"null reference");
5350 SWIG_fail;
5351 }
5352 {
5353 PyThreadState* __tstate = wxPyBeginAllowThreads();
5354 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5355
5356 wxPyEndAllowThreads(__tstate);
5357 if (PyErr_Occurred()) SWIG_fail;
5358 }
5359 Py_INCREF(Py_None); resultobj = Py_None;
5360 return resultobj;
5361 fail:
5362 return NULL;
5363 }
5364
5365
5366 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5367 PyObject *resultobj;
5368 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5369 wxIcon *arg2 = 0 ;
5370 PyObject * obj0 = 0 ;
5371 PyObject * obj1 = 0 ;
5372 char *kwnames[] = {
5373 (char *) "self",(char *) "icon", NULL
5374 };
5375
5376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5379 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5380 SWIG_POINTER_EXCEPTION | 0)) == -1)
5381 SWIG_fail;
5382 if (arg2 == NULL) {
5383 PyErr_SetString(PyExc_TypeError,"null reference");
5384 SWIG_fail;
5385 }
5386 {
5387 PyThreadState* __tstate = wxPyBeginAllowThreads();
5388 (arg1)->SetIcon((wxIcon const &)*arg2);
5389
5390 wxPyEndAllowThreads(__tstate);
5391 if (PyErr_Occurred()) SWIG_fail;
5392 }
5393 Py_INCREF(Py_None); resultobj = Py_None;
5394 return resultobj;
5395 fail:
5396 return NULL;
5397 }
5398
5399
5400 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5401 PyObject *resultobj;
5402 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5403 wxVisualAttributes result;
5404 PyObject * obj0 = 0 ;
5405 char *kwnames[] = {
5406 (char *) "variant", NULL
5407 };
5408
5409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5410 if (obj0) {
5411 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 {
5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
5416 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5417
5418 wxPyEndAllowThreads(__tstate);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 }
5421 {
5422 wxVisualAttributes * resultptr;
5423 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5424 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5425 }
5426 return resultobj;
5427 fail:
5428 return NULL;
5429 }
5430
5431
5432 static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
5433 PyObject *obj;
5434 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5435 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5436 Py_INCREF(obj);
5437 return Py_BuildValue((char *)"");
5438 }
5439 static int _wrap_ListBoxNameStr_set(PyObject *_val) {
5440 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5441 return 1;
5442 }
5443
5444
5445 static PyObject *_wrap_ListBoxNameStr_get() {
5446 PyObject *pyobj;
5447
5448 {
5449 #if wxUSE_UNICODE
5450 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5451 #else
5452 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5453 #endif
5454 }
5455 return pyobj;
5456 }
5457
5458
5459 static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5460 PyObject *resultobj;
5461 wxWindow *arg1 = (wxWindow *) 0 ;
5462 int arg2 ;
5463 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5464 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5465 wxSize const &arg4_defvalue = wxDefaultSize ;
5466 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5467 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5468 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5469 long arg6 = (long) 0 ;
5470 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5471 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5472 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5473 wxString *arg8 = (wxString *) &arg8_defvalue ;
5474 wxListBox *result;
5475 wxPoint temp3 ;
5476 wxSize temp4 ;
5477 bool temp5 = False ;
5478 bool temp8 = False ;
5479 PyObject * obj0 = 0 ;
5480 PyObject * obj1 = 0 ;
5481 PyObject * obj2 = 0 ;
5482 PyObject * obj3 = 0 ;
5483 PyObject * obj4 = 0 ;
5484 PyObject * obj5 = 0 ;
5485 PyObject * obj6 = 0 ;
5486 PyObject * obj7 = 0 ;
5487 char *kwnames[] = {
5488 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5489 };
5490
5491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5494 arg2 = (int) SWIG_AsInt(obj1);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 if (obj2) {
5497 {
5498 arg3 = &temp3;
5499 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5500 }
5501 }
5502 if (obj3) {
5503 {
5504 arg4 = &temp4;
5505 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5506 }
5507 }
5508 if (obj4) {
5509 {
5510 if (! PySequence_Check(obj4)) {
5511 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5512 SWIG_fail;
5513 }
5514 arg5 = new wxArrayString;
5515 temp5 = True;
5516 int i, len=PySequence_Length(obj4);
5517 for (i=0; i<len; i++) {
5518 PyObject* item = PySequence_GetItem(obj4, i);
5519 #if wxUSE_UNICODE
5520 PyObject* str = PyObject_Unicode(item);
5521 #else
5522 PyObject* str = PyObject_Str(item);
5523 #endif
5524 if (PyErr_Occurred()) SWIG_fail;
5525 arg5->Add(Py2wxString(str));
5526 Py_DECREF(item);
5527 Py_DECREF(str);
5528 }
5529 }
5530 }
5531 if (obj5) {
5532 arg6 = (long) SWIG_AsLong(obj5);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 }
5535 if (obj6) {
5536 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5537 SWIG_POINTER_EXCEPTION | 0)) == -1)
5538 SWIG_fail;
5539 if (arg7 == NULL) {
5540 PyErr_SetString(PyExc_TypeError,"null reference");
5541 SWIG_fail;
5542 }
5543 }
5544 if (obj7) {
5545 {
5546 arg8 = wxString_in_helper(obj7);
5547 if (arg8 == NULL) SWIG_fail;
5548 temp8 = True;
5549 }
5550 }
5551 {
5552 PyThreadState* __tstate = wxPyBeginAllowThreads();
5553 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5554
5555 wxPyEndAllowThreads(__tstate);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 }
5558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5559 {
5560 if (temp5) delete arg5;
5561 }
5562 {
5563 if (temp8)
5564 delete arg8;
5565 }
5566 return resultobj;
5567 fail:
5568 {
5569 if (temp5) delete arg5;
5570 }
5571 {
5572 if (temp8)
5573 delete arg8;
5574 }
5575 return NULL;
5576 }
5577
5578
5579 static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5580 PyObject *resultobj;
5581 wxListBox *result;
5582 char *kwnames[] = {
5583 NULL
5584 };
5585
5586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5587 {
5588 PyThreadState* __tstate = wxPyBeginAllowThreads();
5589 result = (wxListBox *)new wxListBox();
5590
5591 wxPyEndAllowThreads(__tstate);
5592 if (PyErr_Occurred()) SWIG_fail;
5593 }
5594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5595 return resultobj;
5596 fail:
5597 return NULL;
5598 }
5599
5600
5601 static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5602 PyObject *resultobj;
5603 wxListBox *arg1 = (wxListBox *) 0 ;
5604 wxWindow *arg2 = (wxWindow *) 0 ;
5605 int arg3 ;
5606 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5607 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5608 wxSize const &arg5_defvalue = wxDefaultSize ;
5609 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5610 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5611 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5612 long arg7 = (long) 0 ;
5613 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5614 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5615 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5616 wxString *arg9 = (wxString *) &arg9_defvalue ;
5617 bool result;
5618 wxPoint temp4 ;
5619 wxSize temp5 ;
5620 bool temp6 = False ;
5621 bool temp9 = False ;
5622 PyObject * obj0 = 0 ;
5623 PyObject * obj1 = 0 ;
5624 PyObject * obj2 = 0 ;
5625 PyObject * obj3 = 0 ;
5626 PyObject * obj4 = 0 ;
5627 PyObject * obj5 = 0 ;
5628 PyObject * obj6 = 0 ;
5629 PyObject * obj7 = 0 ;
5630 PyObject * obj8 = 0 ;
5631 char *kwnames[] = {
5632 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5633 };
5634
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5640 arg3 = (int) SWIG_AsInt(obj2);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 if (obj3) {
5643 {
5644 arg4 = &temp4;
5645 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5646 }
5647 }
5648 if (obj4) {
5649 {
5650 arg5 = &temp5;
5651 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5652 }
5653 }
5654 if (obj5) {
5655 {
5656 if (! PySequence_Check(obj5)) {
5657 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5658 SWIG_fail;
5659 }
5660 arg6 = new wxArrayString;
5661 temp6 = True;
5662 int i, len=PySequence_Length(obj5);
5663 for (i=0; i<len; i++) {
5664 PyObject* item = PySequence_GetItem(obj5, i);
5665 #if wxUSE_UNICODE
5666 PyObject* str = PyObject_Unicode(item);
5667 #else
5668 PyObject* str = PyObject_Str(item);
5669 #endif
5670 if (PyErr_Occurred()) SWIG_fail;
5671 arg6->Add(Py2wxString(str));
5672 Py_DECREF(item);
5673 Py_DECREF(str);
5674 }
5675 }
5676 }
5677 if (obj6) {
5678 arg7 = (long) SWIG_AsLong(obj6);
5679 if (PyErr_Occurred()) SWIG_fail;
5680 }
5681 if (obj7) {
5682 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5683 SWIG_POINTER_EXCEPTION | 0)) == -1)
5684 SWIG_fail;
5685 if (arg8 == NULL) {
5686 PyErr_SetString(PyExc_TypeError,"null reference");
5687 SWIG_fail;
5688 }
5689 }
5690 if (obj8) {
5691 {
5692 arg9 = wxString_in_helper(obj8);
5693 if (arg9 == NULL) SWIG_fail;
5694 temp9 = True;
5695 }
5696 }
5697 {
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5700
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 }
5704 {
5705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5706 }
5707 {
5708 if (temp6) delete arg6;
5709 }
5710 {
5711 if (temp9)
5712 delete arg9;
5713 }
5714 return resultobj;
5715 fail:
5716 {
5717 if (temp6) delete arg6;
5718 }
5719 {
5720 if (temp9)
5721 delete arg9;
5722 }
5723 return NULL;
5724 }
5725
5726
5727 static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5728 PyObject *resultobj;
5729 wxListBox *arg1 = (wxListBox *) 0 ;
5730 wxString *arg2 = 0 ;
5731 int arg3 ;
5732 PyObject *arg4 = (PyObject *) NULL ;
5733 bool temp2 = False ;
5734 PyObject * obj0 = 0 ;
5735 PyObject * obj1 = 0 ;
5736 PyObject * obj2 = 0 ;
5737 PyObject * obj3 = 0 ;
5738 char *kwnames[] = {
5739 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5740 };
5741
5742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5745 {
5746 arg2 = wxString_in_helper(obj1);
5747 if (arg2 == NULL) SWIG_fail;
5748 temp2 = True;
5749 }
5750 arg3 = (int) SWIG_AsInt(obj2);
5751 if (PyErr_Occurred()) SWIG_fail;
5752 if (obj3) {
5753 arg4 = obj3;
5754 }
5755 {
5756 PyThreadState* __tstate = wxPyBeginAllowThreads();
5757 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5758
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 Py_INCREF(Py_None); resultobj = Py_None;
5763 {
5764 if (temp2)
5765 delete arg2;
5766 }
5767 return resultobj;
5768 fail:
5769 {
5770 if (temp2)
5771 delete arg2;
5772 }
5773 return NULL;
5774 }
5775
5776
5777 static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj;
5779 wxListBox *arg1 = (wxListBox *) 0 ;
5780 wxArrayString *arg2 = 0 ;
5781 int arg3 ;
5782 bool temp2 = False ;
5783 PyObject * obj0 = 0 ;
5784 PyObject * obj1 = 0 ;
5785 PyObject * obj2 = 0 ;
5786 char *kwnames[] = {
5787 (char *) "self",(char *) "items",(char *) "pos", NULL
5788 };
5789
5790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5793 {
5794 if (! PySequence_Check(obj1)) {
5795 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5796 SWIG_fail;
5797 }
5798 arg2 = new wxArrayString;
5799 temp2 = True;
5800 int i, len=PySequence_Length(obj1);
5801 for (i=0; i<len; i++) {
5802 PyObject* item = PySequence_GetItem(obj1, i);
5803 #if wxUSE_UNICODE
5804 PyObject* str = PyObject_Unicode(item);
5805 #else
5806 PyObject* str = PyObject_Str(item);
5807 #endif
5808 if (PyErr_Occurred()) SWIG_fail;
5809 arg2->Add(Py2wxString(str));
5810 Py_DECREF(item);
5811 Py_DECREF(str);
5812 }
5813 }
5814 arg3 = (int) SWIG_AsInt(obj2);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 {
5817 PyThreadState* __tstate = wxPyBeginAllowThreads();
5818 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5819
5820 wxPyEndAllowThreads(__tstate);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 }
5823 Py_INCREF(Py_None); resultobj = Py_None;
5824 {
5825 if (temp2) delete arg2;
5826 }
5827 return resultobj;
5828 fail:
5829 {
5830 if (temp2) delete arg2;
5831 }
5832 return NULL;
5833 }
5834
5835
5836 static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5837 PyObject *resultobj;
5838 wxListBox *arg1 = (wxListBox *) 0 ;
5839 wxArrayString *arg2 = 0 ;
5840 bool temp2 = False ;
5841 PyObject * obj0 = 0 ;
5842 PyObject * obj1 = 0 ;
5843 char *kwnames[] = {
5844 (char *) "self",(char *) "items", NULL
5845 };
5846
5847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5850 {
5851 if (! PySequence_Check(obj1)) {
5852 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5853 SWIG_fail;
5854 }
5855 arg2 = new wxArrayString;
5856 temp2 = True;
5857 int i, len=PySequence_Length(obj1);
5858 for (i=0; i<len; i++) {
5859 PyObject* item = PySequence_GetItem(obj1, i);
5860 #if wxUSE_UNICODE
5861 PyObject* str = PyObject_Unicode(item);
5862 #else
5863 PyObject* str = PyObject_Str(item);
5864 #endif
5865 if (PyErr_Occurred()) SWIG_fail;
5866 arg2->Add(Py2wxString(str));
5867 Py_DECREF(item);
5868 Py_DECREF(str);
5869 }
5870 }
5871 {
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 (arg1)->Set((wxArrayString const &)*arg2);
5874
5875 wxPyEndAllowThreads(__tstate);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 Py_INCREF(Py_None); resultobj = Py_None;
5879 {
5880 if (temp2) delete arg2;
5881 }
5882 return resultobj;
5883 fail:
5884 {
5885 if (temp2) delete arg2;
5886 }
5887 return NULL;
5888 }
5889
5890
5891 static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5892 PyObject *resultobj;
5893 wxListBox *arg1 = (wxListBox *) 0 ;
5894 int arg2 ;
5895 bool result;
5896 PyObject * obj0 = 0 ;
5897 PyObject * obj1 = 0 ;
5898 char *kwnames[] = {
5899 (char *) "self",(char *) "n", NULL
5900 };
5901
5902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5905 arg2 = (int) SWIG_AsInt(obj1);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5910
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 {
5915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5916 }
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5924 PyObject *resultobj;
5925 wxListBox *arg1 = (wxListBox *) 0 ;
5926 int arg2 ;
5927 bool arg3 = (bool) True ;
5928 PyObject * obj0 = 0 ;
5929 PyObject * obj1 = 0 ;
5930 PyObject * obj2 = 0 ;
5931 char *kwnames[] = {
5932 (char *) "self",(char *) "n",(char *) "select", NULL
5933 };
5934
5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5938 arg2 = (int) SWIG_AsInt(obj1);
5939 if (PyErr_Occurred()) SWIG_fail;
5940 if (obj2) {
5941 arg3 = (bool) SWIG_AsBool(obj2);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 }
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 (arg1)->SetSelection(arg2,arg3);
5947
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 Py_INCREF(Py_None); resultobj = Py_None;
5952 return resultobj;
5953 fail:
5954 return NULL;
5955 }
5956
5957
5958 static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5959 PyObject *resultobj;
5960 wxListBox *arg1 = (wxListBox *) 0 ;
5961 int arg2 ;
5962 PyObject * obj0 = 0 ;
5963 PyObject * obj1 = 0 ;
5964 char *kwnames[] = {
5965 (char *) "self",(char *) "n", NULL
5966 };
5967
5968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5971 arg2 = (int) SWIG_AsInt(obj1);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 (arg1)->Select(arg2);
5976
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 Py_INCREF(Py_None); resultobj = Py_None;
5981 return resultobj;
5982 fail:
5983 return NULL;
5984 }
5985
5986
5987 static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5988 PyObject *resultobj;
5989 wxListBox *arg1 = (wxListBox *) 0 ;
5990 int arg2 ;
5991 PyObject * obj0 = 0 ;
5992 PyObject * obj1 = 0 ;
5993 char *kwnames[] = {
5994 (char *) "self",(char *) "n", NULL
5995 };
5996
5997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
5998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6000 arg2 = (int) SWIG_AsInt(obj1);
6001 if (PyErr_Occurred()) SWIG_fail;
6002 {
6003 PyThreadState* __tstate = wxPyBeginAllowThreads();
6004 (arg1)->Deselect(arg2);
6005
6006 wxPyEndAllowThreads(__tstate);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 Py_INCREF(Py_None); resultobj = Py_None;
6010 return resultobj;
6011 fail:
6012 return NULL;
6013 }
6014
6015
6016 static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
6017 PyObject *resultobj;
6018 wxListBox *arg1 = (wxListBox *) 0 ;
6019 int arg2 = (int) -1 ;
6020 PyObject * obj0 = 0 ;
6021 PyObject * obj1 = 0 ;
6022 char *kwnames[] = {
6023 (char *) "self",(char *) "itemToLeaveSelected", NULL
6024 };
6025
6026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6029 if (obj1) {
6030 arg2 = (int) SWIG_AsInt(obj1);
6031 if (PyErr_Occurred()) SWIG_fail;
6032 }
6033 {
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 (arg1)->DeselectAll(arg2);
6036
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 Py_INCREF(Py_None); resultobj = Py_None;
6041 return resultobj;
6042 fail:
6043 return NULL;
6044 }
6045
6046
6047 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6048 PyObject *resultobj;
6049 wxListBox *arg1 = (wxListBox *) 0 ;
6050 wxString *arg2 = 0 ;
6051 bool arg3 = (bool) True ;
6052 bool result;
6053 bool temp2 = False ;
6054 PyObject * obj0 = 0 ;
6055 PyObject * obj1 = 0 ;
6056 PyObject * obj2 = 0 ;
6057 char *kwnames[] = {
6058 (char *) "self",(char *) "s",(char *) "select", NULL
6059 };
6060
6061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6064 {
6065 arg2 = wxString_in_helper(obj1);
6066 if (arg2 == NULL) SWIG_fail;
6067 temp2 = True;
6068 }
6069 if (obj2) {
6070 arg3 = (bool) SWIG_AsBool(obj2);
6071 if (PyErr_Occurred()) SWIG_fail;
6072 }
6073 {
6074 PyThreadState* __tstate = wxPyBeginAllowThreads();
6075 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6076
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 {
6081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6082 }
6083 {
6084 if (temp2)
6085 delete arg2;
6086 }
6087 return resultobj;
6088 fail:
6089 {
6090 if (temp2)
6091 delete arg2;
6092 }
6093 return NULL;
6094 }
6095
6096
6097 static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
6098 PyObject *resultobj;
6099 wxListBox *arg1 = (wxListBox *) 0 ;
6100 PyObject *result;
6101 PyObject * obj0 = 0 ;
6102 char *kwnames[] = {
6103 (char *) "self", NULL
6104 };
6105
6106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6109 {
6110 PyThreadState* __tstate = wxPyBeginAllowThreads();
6111 result = (PyObject *)wxListBox_GetSelections(arg1);
6112
6113 wxPyEndAllowThreads(__tstate);
6114 if (PyErr_Occurred()) SWIG_fail;
6115 }
6116 resultobj = result;
6117 return resultobj;
6118 fail:
6119 return NULL;
6120 }
6121
6122
6123 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6124 PyObject *resultobj;
6125 wxListBox *arg1 = (wxListBox *) 0 ;
6126 int arg2 ;
6127 PyObject * obj0 = 0 ;
6128 PyObject * obj1 = 0 ;
6129 char *kwnames[] = {
6130 (char *) "self",(char *) "n", NULL
6131 };
6132
6133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6136 arg2 = (int) SWIG_AsInt(obj1);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 {
6139 PyThreadState* __tstate = wxPyBeginAllowThreads();
6140 (arg1)->SetFirstItem(arg2);
6141
6142 wxPyEndAllowThreads(__tstate);
6143 if (PyErr_Occurred()) SWIG_fail;
6144 }
6145 Py_INCREF(Py_None); resultobj = Py_None;
6146 return resultobj;
6147 fail:
6148 return NULL;
6149 }
6150
6151
6152 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
6153 PyObject *resultobj;
6154 wxListBox *arg1 = (wxListBox *) 0 ;
6155 wxString *arg2 = 0 ;
6156 bool temp2 = False ;
6157 PyObject * obj0 = 0 ;
6158 PyObject * obj1 = 0 ;
6159 char *kwnames[] = {
6160 (char *) "self",(char *) "s", NULL
6161 };
6162
6163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6166 {
6167 arg2 = wxString_in_helper(obj1);
6168 if (arg2 == NULL) SWIG_fail;
6169 temp2 = True;
6170 }
6171 {
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 (arg1)->SetFirstItem((wxString const &)*arg2);
6174
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 Py_INCREF(Py_None); resultobj = Py_None;
6179 {
6180 if (temp2)
6181 delete arg2;
6182 }
6183 return resultobj;
6184 fail:
6185 {
6186 if (temp2)
6187 delete arg2;
6188 }
6189 return NULL;
6190 }
6191
6192
6193 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6194 PyObject *resultobj;
6195 wxListBox *arg1 = (wxListBox *) 0 ;
6196 int arg2 ;
6197 PyObject * obj0 = 0 ;
6198 PyObject * obj1 = 0 ;
6199 char *kwnames[] = {
6200 (char *) "self",(char *) "n", NULL
6201 };
6202
6203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6206 arg2 = (int) SWIG_AsInt(obj1);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 {
6209 PyThreadState* __tstate = wxPyBeginAllowThreads();
6210 (arg1)->EnsureVisible(arg2);
6211
6212 wxPyEndAllowThreads(__tstate);
6213 if (PyErr_Occurred()) SWIG_fail;
6214 }
6215 Py_INCREF(Py_None); resultobj = Py_None;
6216 return resultobj;
6217 fail:
6218 return NULL;
6219 }
6220
6221
6222 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6223 PyObject *resultobj;
6224 wxListBox *arg1 = (wxListBox *) 0 ;
6225 wxString *arg2 = 0 ;
6226 bool temp2 = False ;
6227 PyObject * obj0 = 0 ;
6228 PyObject * obj1 = 0 ;
6229 char *kwnames[] = {
6230 (char *) "self",(char *) "s", NULL
6231 };
6232
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6236 {
6237 arg2 = wxString_in_helper(obj1);
6238 if (arg2 == NULL) SWIG_fail;
6239 temp2 = True;
6240 }
6241 {
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
6243 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6244
6245 wxPyEndAllowThreads(__tstate);
6246 if (PyErr_Occurred()) SWIG_fail;
6247 }
6248 Py_INCREF(Py_None); resultobj = Py_None;
6249 {
6250 if (temp2)
6251 delete arg2;
6252 }
6253 return resultobj;
6254 fail:
6255 {
6256 if (temp2)
6257 delete arg2;
6258 }
6259 return NULL;
6260 }
6261
6262
6263 static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
6264 PyObject *resultobj;
6265 wxListBox *arg1 = (wxListBox *) 0 ;
6266 bool result;
6267 PyObject * obj0 = 0 ;
6268 char *kwnames[] = {
6269 (char *) "self", NULL
6270 };
6271
6272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6275 {
6276 PyThreadState* __tstate = wxPyBeginAllowThreads();
6277 result = (bool)((wxListBox const *)arg1)->IsSorted();
6278
6279 wxPyEndAllowThreads(__tstate);
6280 if (PyErr_Occurred()) SWIG_fail;
6281 }
6282 {
6283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6284 }
6285 return resultobj;
6286 fail:
6287 return NULL;
6288 }
6289
6290
6291 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6292 PyObject *resultobj;
6293 wxListBox *arg1 = (wxListBox *) 0 ;
6294 int arg2 ;
6295 wxColour *arg3 = 0 ;
6296 wxColour temp3 ;
6297 PyObject * obj0 = 0 ;
6298 PyObject * obj1 = 0 ;
6299 PyObject * obj2 = 0 ;
6300 char *kwnames[] = {
6301 (char *) "self",(char *) "item",(char *) "c", NULL
6302 };
6303
6304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6307 arg2 = (int) SWIG_AsInt(obj1);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 {
6310 arg3 = &temp3;
6311 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6312 }
6313 {
6314 PyThreadState* __tstate = wxPyBeginAllowThreads();
6315 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6316
6317 wxPyEndAllowThreads(__tstate);
6318 if (PyErr_Occurred()) SWIG_fail;
6319 }
6320 Py_INCREF(Py_None); resultobj = Py_None;
6321 return resultobj;
6322 fail:
6323 return NULL;
6324 }
6325
6326
6327 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6328 PyObject *resultobj;
6329 wxListBox *arg1 = (wxListBox *) 0 ;
6330 int arg2 ;
6331 wxColour *arg3 = 0 ;
6332 wxColour temp3 ;
6333 PyObject * obj0 = 0 ;
6334 PyObject * obj1 = 0 ;
6335 PyObject * obj2 = 0 ;
6336 char *kwnames[] = {
6337 (char *) "self",(char *) "item",(char *) "c", NULL
6338 };
6339
6340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6343 arg2 = (int) SWIG_AsInt(obj1);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 {
6346 arg3 = &temp3;
6347 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6348 }
6349 {
6350 PyThreadState* __tstate = wxPyBeginAllowThreads();
6351 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6352
6353 wxPyEndAllowThreads(__tstate);
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
6356 Py_INCREF(Py_None); resultobj = Py_None;
6357 return resultobj;
6358 fail:
6359 return NULL;
6360 }
6361
6362
6363 static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6364 PyObject *resultobj;
6365 wxListBox *arg1 = (wxListBox *) 0 ;
6366 int arg2 ;
6367 wxFont *arg3 = 0 ;
6368 PyObject * obj0 = 0 ;
6369 PyObject * obj1 = 0 ;
6370 PyObject * obj2 = 0 ;
6371 char *kwnames[] = {
6372 (char *) "self",(char *) "item",(char *) "f", NULL
6373 };
6374
6375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6378 arg2 = (int) SWIG_AsInt(obj1);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6381 SWIG_POINTER_EXCEPTION | 0)) == -1)
6382 SWIG_fail;
6383 if (arg3 == NULL) {
6384 PyErr_SetString(PyExc_TypeError,"null reference");
6385 SWIG_fail;
6386 }
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6390
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 Py_INCREF(Py_None); resultobj = Py_None;
6395 return resultobj;
6396 fail:
6397 return NULL;
6398 }
6399
6400
6401 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6402 PyObject *resultobj;
6403 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6404 wxVisualAttributes result;
6405 PyObject * obj0 = 0 ;
6406 char *kwnames[] = {
6407 (char *) "variant", NULL
6408 };
6409
6410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6411 if (obj0) {
6412 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
6413 if (PyErr_Occurred()) SWIG_fail;
6414 }
6415 {
6416 PyThreadState* __tstate = wxPyBeginAllowThreads();
6417 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6418
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 {
6423 wxVisualAttributes * resultptr;
6424 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6425 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6426 }
6427 return resultobj;
6428 fail:
6429 return NULL;
6430 }
6431
6432
6433 static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
6434 PyObject *obj;
6435 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6436 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6437 Py_INCREF(obj);
6438 return Py_BuildValue((char *)"");
6439 }
6440 static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6441 PyObject *resultobj;
6442 wxWindow *arg1 = (wxWindow *) 0 ;
6443 int arg2 ;
6444 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6445 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6446 wxSize const &arg4_defvalue = wxDefaultSize ;
6447 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6448 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6449 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6450 long arg6 = (long) 0 ;
6451 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6452 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6453 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6454 wxString *arg8 = (wxString *) &arg8_defvalue ;
6455 wxCheckListBox *result;
6456 wxPoint temp3 ;
6457 wxSize temp4 ;
6458 bool temp5 = False ;
6459 bool temp8 = False ;
6460 PyObject * obj0 = 0 ;
6461 PyObject * obj1 = 0 ;
6462 PyObject * obj2 = 0 ;
6463 PyObject * obj3 = 0 ;
6464 PyObject * obj4 = 0 ;
6465 PyObject * obj5 = 0 ;
6466 PyObject * obj6 = 0 ;
6467 PyObject * obj7 = 0 ;
6468 char *kwnames[] = {
6469 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6470 };
6471
6472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6475 arg2 = (int) SWIG_AsInt(obj1);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 if (obj2) {
6478 {
6479 arg3 = &temp3;
6480 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6481 }
6482 }
6483 if (obj3) {
6484 {
6485 arg4 = &temp4;
6486 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6487 }
6488 }
6489 if (obj4) {
6490 {
6491 if (! PySequence_Check(obj4)) {
6492 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6493 SWIG_fail;
6494 }
6495 arg5 = new wxArrayString;
6496 temp5 = True;
6497 int i, len=PySequence_Length(obj4);
6498 for (i=0; i<len; i++) {
6499 PyObject* item = PySequence_GetItem(obj4, i);
6500 #if wxUSE_UNICODE
6501 PyObject* str = PyObject_Unicode(item);
6502 #else
6503 PyObject* str = PyObject_Str(item);
6504 #endif
6505 if (PyErr_Occurred()) SWIG_fail;
6506 arg5->Add(Py2wxString(str));
6507 Py_DECREF(item);
6508 Py_DECREF(str);
6509 }
6510 }
6511 }
6512 if (obj5) {
6513 arg6 = (long) SWIG_AsLong(obj5);
6514 if (PyErr_Occurred()) SWIG_fail;
6515 }
6516 if (obj6) {
6517 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6518 SWIG_POINTER_EXCEPTION | 0)) == -1)
6519 SWIG_fail;
6520 if (arg7 == NULL) {
6521 PyErr_SetString(PyExc_TypeError,"null reference");
6522 SWIG_fail;
6523 }
6524 }
6525 if (obj7) {
6526 {
6527 arg8 = wxString_in_helper(obj7);
6528 if (arg8 == NULL) SWIG_fail;
6529 temp8 = True;
6530 }
6531 }
6532 {
6533 PyThreadState* __tstate = wxPyBeginAllowThreads();
6534 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6535
6536 wxPyEndAllowThreads(__tstate);
6537 if (PyErr_Occurred()) SWIG_fail;
6538 }
6539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6540 {
6541 if (temp5) delete arg5;
6542 }
6543 {
6544 if (temp8)
6545 delete arg8;
6546 }
6547 return resultobj;
6548 fail:
6549 {
6550 if (temp5) delete arg5;
6551 }
6552 {
6553 if (temp8)
6554 delete arg8;
6555 }
6556 return NULL;
6557 }
6558
6559
6560 static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6561 PyObject *resultobj;
6562 wxCheckListBox *result;
6563 char *kwnames[] = {
6564 NULL
6565 };
6566
6567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6568 {
6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
6570 result = (wxCheckListBox *)new wxCheckListBox();
6571
6572 wxPyEndAllowThreads(__tstate);
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6576 return resultobj;
6577 fail:
6578 return NULL;
6579 }
6580
6581
6582 static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6583 PyObject *resultobj;
6584 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6585 wxWindow *arg2 = (wxWindow *) 0 ;
6586 int arg3 ;
6587 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6588 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6589 wxSize const &arg5_defvalue = wxDefaultSize ;
6590 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6591 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6592 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6593 long arg7 = (long) 0 ;
6594 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6595 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6596 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6597 wxString *arg9 = (wxString *) &arg9_defvalue ;
6598 bool result;
6599 wxPoint temp4 ;
6600 wxSize temp5 ;
6601 bool temp6 = False ;
6602 bool temp9 = False ;
6603 PyObject * obj0 = 0 ;
6604 PyObject * obj1 = 0 ;
6605 PyObject * obj2 = 0 ;
6606 PyObject * obj3 = 0 ;
6607 PyObject * obj4 = 0 ;
6608 PyObject * obj5 = 0 ;
6609 PyObject * obj6 = 0 ;
6610 PyObject * obj7 = 0 ;
6611 PyObject * obj8 = 0 ;
6612 char *kwnames[] = {
6613 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6614 };
6615
6616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6619 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6621 arg3 = (int) SWIG_AsInt(obj2);
6622 if (PyErr_Occurred()) SWIG_fail;
6623 if (obj3) {
6624 {
6625 arg4 = &temp4;
6626 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6627 }
6628 }
6629 if (obj4) {
6630 {
6631 arg5 = &temp5;
6632 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6633 }
6634 }
6635 if (obj5) {
6636 {
6637 if (! PySequence_Check(obj5)) {
6638 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6639 SWIG_fail;
6640 }
6641 arg6 = new wxArrayString;
6642 temp6 = True;
6643 int i, len=PySequence_Length(obj5);
6644 for (i=0; i<len; i++) {
6645 PyObject* item = PySequence_GetItem(obj5, i);
6646 #if wxUSE_UNICODE
6647 PyObject* str = PyObject_Unicode(item);
6648 #else
6649 PyObject* str = PyObject_Str(item);
6650 #endif
6651 if (PyErr_Occurred()) SWIG_fail;
6652 arg6->Add(Py2wxString(str));
6653 Py_DECREF(item);
6654 Py_DECREF(str);
6655 }
6656 }
6657 }
6658 if (obj6) {
6659 arg7 = (long) SWIG_AsLong(obj6);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 if (obj7) {
6663 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6664 SWIG_POINTER_EXCEPTION | 0)) == -1)
6665 SWIG_fail;
6666 if (arg8 == NULL) {
6667 PyErr_SetString(PyExc_TypeError,"null reference");
6668 SWIG_fail;
6669 }
6670 }
6671 if (obj8) {
6672 {
6673 arg9 = wxString_in_helper(obj8);
6674 if (arg9 == NULL) SWIG_fail;
6675 temp9 = True;
6676 }
6677 }
6678 {
6679 PyThreadState* __tstate = wxPyBeginAllowThreads();
6680 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6681
6682 wxPyEndAllowThreads(__tstate);
6683 if (PyErr_Occurred()) SWIG_fail;
6684 }
6685 {
6686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6687 }
6688 {
6689 if (temp6) delete arg6;
6690 }
6691 {
6692 if (temp9)
6693 delete arg9;
6694 }
6695 return resultobj;
6696 fail:
6697 {
6698 if (temp6) delete arg6;
6699 }
6700 {
6701 if (temp9)
6702 delete arg9;
6703 }
6704 return NULL;
6705 }
6706
6707
6708 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6709 PyObject *resultobj;
6710 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6711 int arg2 ;
6712 bool result;
6713 PyObject * obj0 = 0 ;
6714 PyObject * obj1 = 0 ;
6715 char *kwnames[] = {
6716 (char *) "self",(char *) "index", NULL
6717 };
6718
6719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6722 arg2 = (int) SWIG_AsInt(obj1);
6723 if (PyErr_Occurred()) SWIG_fail;
6724 {
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 result = (bool)(arg1)->IsChecked(arg2);
6727
6728 wxPyEndAllowThreads(__tstate);
6729 if (PyErr_Occurred()) SWIG_fail;
6730 }
6731 {
6732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6733 }
6734 return resultobj;
6735 fail:
6736 return NULL;
6737 }
6738
6739
6740 static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject *resultobj;
6742 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6743 int arg2 ;
6744 int arg3 = (int) True ;
6745 PyObject * obj0 = 0 ;
6746 PyObject * obj1 = 0 ;
6747 PyObject * obj2 = 0 ;
6748 char *kwnames[] = {
6749 (char *) "self",(char *) "index",(char *) "check", NULL
6750 };
6751
6752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6755 arg2 = (int) SWIG_AsInt(obj1);
6756 if (PyErr_Occurred()) SWIG_fail;
6757 if (obj2) {
6758 arg3 = (int) SWIG_AsInt(obj2);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 {
6762 PyThreadState* __tstate = wxPyBeginAllowThreads();
6763 (arg1)->Check(arg2,arg3);
6764
6765 wxPyEndAllowThreads(__tstate);
6766 if (PyErr_Occurred()) SWIG_fail;
6767 }
6768 Py_INCREF(Py_None); resultobj = Py_None;
6769 return resultobj;
6770 fail:
6771 return NULL;
6772 }
6773
6774
6775 static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6776 PyObject *resultobj;
6777 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6778 wxPoint *arg2 = 0 ;
6779 int result;
6780 wxPoint temp2 ;
6781 PyObject * obj0 = 0 ;
6782 PyObject * obj1 = 0 ;
6783 char *kwnames[] = {
6784 (char *) "self",(char *) "pt", NULL
6785 };
6786
6787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6790 {
6791 arg2 = &temp2;
6792 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6793 }
6794 {
6795 PyThreadState* __tstate = wxPyBeginAllowThreads();
6796 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6797
6798 wxPyEndAllowThreads(__tstate);
6799 if (PyErr_Occurred()) SWIG_fail;
6800 }
6801 resultobj = SWIG_FromInt((int)result);
6802 return resultobj;
6803 fail:
6804 return NULL;
6805 }
6806
6807
6808 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6809 PyObject *resultobj;
6810 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6811 int arg2 ;
6812 int arg3 ;
6813 int result;
6814 PyObject * obj0 = 0 ;
6815 PyObject * obj1 = 0 ;
6816 PyObject * obj2 = 0 ;
6817 char *kwnames[] = {
6818 (char *) "self",(char *) "x",(char *) "y", NULL
6819 };
6820
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6824 arg2 = (int) SWIG_AsInt(obj1);
6825 if (PyErr_Occurred()) SWIG_fail;
6826 arg3 = (int) SWIG_AsInt(obj2);
6827 if (PyErr_Occurred()) SWIG_fail;
6828 {
6829 PyThreadState* __tstate = wxPyBeginAllowThreads();
6830 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6831
6832 wxPyEndAllowThreads(__tstate);
6833 if (PyErr_Occurred()) SWIG_fail;
6834 }
6835 resultobj = SWIG_FromInt((int)result);
6836 return resultobj;
6837 fail:
6838 return NULL;
6839 }
6840
6841
6842 static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6843 PyObject *obj;
6844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6845 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6846 Py_INCREF(obj);
6847 return Py_BuildValue((char *)"");
6848 }
6849 static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6850 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6851 return 1;
6852 }
6853
6854
6855 static PyObject *_wrap_TextCtrlNameStr_get() {
6856 PyObject *pyobj;
6857
6858 {
6859 #if wxUSE_UNICODE
6860 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6861 #else
6862 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6863 #endif
6864 }
6865 return pyobj;
6866 }
6867
6868
6869 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6870 PyObject *resultobj;
6871 wxTextAttr *result;
6872
6873 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6874 {
6875 PyThreadState* __tstate = wxPyBeginAllowThreads();
6876 result = (wxTextAttr *)new wxTextAttr();
6877
6878 wxPyEndAllowThreads(__tstate);
6879 if (PyErr_Occurred()) SWIG_fail;
6880 }
6881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6882 return resultobj;
6883 fail:
6884 return NULL;
6885 }
6886
6887
6888 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6889 PyObject *resultobj;
6890 wxColour *arg1 = 0 ;
6891 wxColour const &arg2_defvalue = wxNullColour ;
6892 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6893 wxFont const &arg3_defvalue = wxNullFont ;
6894 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6895 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6896 wxTextAttr *result;
6897 wxColour temp1 ;
6898 wxColour temp2 ;
6899 PyObject * obj0 = 0 ;
6900 PyObject * obj1 = 0 ;
6901 PyObject * obj2 = 0 ;
6902 PyObject * obj3 = 0 ;
6903
6904 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6905 {
6906 arg1 = &temp1;
6907 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6908 }
6909 if (obj1) {
6910 {
6911 arg2 = &temp2;
6912 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6913 }
6914 }
6915 if (obj2) {
6916 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6917 SWIG_POINTER_EXCEPTION | 0)) == -1)
6918 SWIG_fail;
6919 if (arg3 == NULL) {
6920 PyErr_SetString(PyExc_TypeError,"null reference");
6921 SWIG_fail;
6922 }
6923 }
6924 if (obj3) {
6925 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
6928 {
6929 PyThreadState* __tstate = wxPyBeginAllowThreads();
6930 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6931
6932 wxPyEndAllowThreads(__tstate);
6933 if (PyErr_Occurred()) SWIG_fail;
6934 }
6935 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6936 return resultobj;
6937 fail:
6938 return NULL;
6939 }
6940
6941
6942 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6943 int argc;
6944 PyObject *argv[5];
6945 int ii;
6946
6947 argc = PyObject_Length(args);
6948 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6949 argv[ii] = PyTuple_GetItem(args,ii);
6950 }
6951 if (argc == 0) {
6952 return _wrap_new_TextAttr__SWIG_0(self,args);
6953 }
6954 if ((argc >= 1) && (argc <= 4)) {
6955 int _v;
6956 {
6957 _v = wxColour_typecheck(argv[0]);
6958 }
6959 if (_v) {
6960 if (argc <= 1) {
6961 return _wrap_new_TextAttr__SWIG_1(self,args);
6962 }
6963 {
6964 _v = wxColour_typecheck(argv[1]);
6965 }
6966 if (_v) {
6967 if (argc <= 2) {
6968 return _wrap_new_TextAttr__SWIG_1(self,args);
6969 }
6970 {
6971 void *ptr;
6972 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
6973 _v = 0;
6974 PyErr_Clear();
6975 } else {
6976 _v = 1;
6977 }
6978 }
6979 if (_v) {
6980 if (argc <= 3) {
6981 return _wrap_new_TextAttr__SWIG_1(self,args);
6982 }
6983 _v = SWIG_CheckInt(argv[3]);
6984 if (_v) {
6985 return _wrap_new_TextAttr__SWIG_1(self,args);
6986 }
6987 }
6988 }
6989 }
6990 }
6991
6992 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
6993 return NULL;
6994 }
6995
6996
6997 static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6998 PyObject *resultobj;
6999 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7000 PyObject * obj0 = 0 ;
7001 char *kwnames[] = {
7002 (char *) "self", NULL
7003 };
7004
7005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7008 {
7009 PyThreadState* __tstate = wxPyBeginAllowThreads();
7010 delete arg1;
7011
7012 wxPyEndAllowThreads(__tstate);
7013 if (PyErr_Occurred()) SWIG_fail;
7014 }
7015 Py_INCREF(Py_None); resultobj = Py_None;
7016 return resultobj;
7017 fail:
7018 return NULL;
7019 }
7020
7021
7022 static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
7023 PyObject *resultobj;
7024 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7025 PyObject * obj0 = 0 ;
7026 char *kwnames[] = {
7027 (char *) "self", NULL
7028 };
7029
7030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7033 {
7034 PyThreadState* __tstate = wxPyBeginAllowThreads();
7035 (arg1)->Init();
7036
7037 wxPyEndAllowThreads(__tstate);
7038 if (PyErr_Occurred()) SWIG_fail;
7039 }
7040 Py_INCREF(Py_None); resultobj = Py_None;
7041 return resultobj;
7042 fail:
7043 return NULL;
7044 }
7045
7046
7047 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj;
7049 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7050 wxColour *arg2 = 0 ;
7051 wxColour temp2 ;
7052 PyObject * obj0 = 0 ;
7053 PyObject * obj1 = 0 ;
7054 char *kwnames[] = {
7055 (char *) "self",(char *) "colText", NULL
7056 };
7057
7058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7061 {
7062 arg2 = &temp2;
7063 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7064 }
7065 {
7066 PyThreadState* __tstate = wxPyBeginAllowThreads();
7067 (arg1)->SetTextColour((wxColour const &)*arg2);
7068
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 Py_INCREF(Py_None); resultobj = Py_None;
7073 return resultobj;
7074 fail:
7075 return NULL;
7076 }
7077
7078
7079 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7080 PyObject *resultobj;
7081 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7082 wxColour *arg2 = 0 ;
7083 wxColour temp2 ;
7084 PyObject * obj0 = 0 ;
7085 PyObject * obj1 = 0 ;
7086 char *kwnames[] = {
7087 (char *) "self",(char *) "colBack", NULL
7088 };
7089
7090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7093 {
7094 arg2 = &temp2;
7095 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7096 }
7097 {
7098 PyThreadState* __tstate = wxPyBeginAllowThreads();
7099 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7100
7101 wxPyEndAllowThreads(__tstate);
7102 if (PyErr_Occurred()) SWIG_fail;
7103 }
7104 Py_INCREF(Py_None); resultobj = Py_None;
7105 return resultobj;
7106 fail:
7107 return NULL;
7108 }
7109
7110
7111 static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7112 PyObject *resultobj;
7113 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7114 wxFont *arg2 = 0 ;
7115 long arg3 = (long) wxTEXT_ATTR_FONT ;
7116 PyObject * obj0 = 0 ;
7117 PyObject * obj1 = 0 ;
7118 PyObject * obj2 = 0 ;
7119 char *kwnames[] = {
7120 (char *) "self",(char *) "font",(char *) "flags", NULL
7121 };
7122
7123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7127 SWIG_POINTER_EXCEPTION | 0)) == -1)
7128 SWIG_fail;
7129 if (arg2 == NULL) {
7130 PyErr_SetString(PyExc_TypeError,"null reference");
7131 SWIG_fail;
7132 }
7133 if (obj2) {
7134 arg3 = (long) SWIG_AsLong(obj2);
7135 if (PyErr_Occurred()) SWIG_fail;
7136 }
7137 {
7138 PyThreadState* __tstate = wxPyBeginAllowThreads();
7139 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7140
7141 wxPyEndAllowThreads(__tstate);
7142 if (PyErr_Occurred()) SWIG_fail;
7143 }
7144 Py_INCREF(Py_None); resultobj = Py_None;
7145 return resultobj;
7146 fail:
7147 return NULL;
7148 }
7149
7150
7151 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7152 PyObject *resultobj;
7153 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7154 int arg2 ;
7155 PyObject * obj0 = 0 ;
7156 PyObject * obj1 = 0 ;
7157 char *kwnames[] = {
7158 (char *) "self",(char *) "alignment", NULL
7159 };
7160
7161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7164 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 Py_INCREF(Py_None); resultobj = Py_None;
7174 return resultobj;
7175 fail:
7176 return NULL;
7177 }
7178
7179
7180 static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7181 PyObject *resultobj;
7182 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7183 wxArrayInt *arg2 = 0 ;
7184 bool temp2 = False ;
7185 PyObject * obj0 = 0 ;
7186 PyObject * obj1 = 0 ;
7187 char *kwnames[] = {
7188 (char *) "self",(char *) "tabs", NULL
7189 };
7190
7191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7194 {
7195 if (! PySequence_Check(obj1)) {
7196 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7197 SWIG_fail;
7198 }
7199 arg2 = new wxArrayInt;
7200 temp2 = True;
7201 int i, len=PySequence_Length(obj1);
7202 for (i=0; i<len; i++) {
7203 PyObject* item = PySequence_GetItem(obj1, i);
7204 PyObject* number = PyNumber_Int(item);
7205 arg2->Add(PyInt_AS_LONG(number));
7206 Py_DECREF(item);
7207 Py_DECREF(number);
7208 }
7209 }
7210 {
7211 PyThreadState* __tstate = wxPyBeginAllowThreads();
7212 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7213
7214 wxPyEndAllowThreads(__tstate);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 }
7217 Py_INCREF(Py_None); resultobj = Py_None;
7218 {
7219 if (temp2) delete arg2;
7220 }
7221 return resultobj;
7222 fail:
7223 {
7224 if (temp2) delete arg2;
7225 }
7226 return NULL;
7227 }
7228
7229
7230 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7231 PyObject *resultobj;
7232 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7233 int arg2 ;
7234 PyObject * obj0 = 0 ;
7235 PyObject * obj1 = 0 ;
7236 char *kwnames[] = {
7237 (char *) "self",(char *) "indent", NULL
7238 };
7239
7240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail;
7241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7243 arg2 = (int) SWIG_AsInt(obj1);
7244 if (PyErr_Occurred()) SWIG_fail;
7245 {
7246 PyThreadState* __tstate = wxPyBeginAllowThreads();
7247 (arg1)->SetLeftIndent(arg2);
7248
7249 wxPyEndAllowThreads(__tstate);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 }
7252 Py_INCREF(Py_None); resultobj = Py_None;
7253 return resultobj;
7254 fail:
7255 return NULL;
7256 }
7257
7258
7259 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7260 PyObject *resultobj;
7261 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7262 int arg2 ;
7263 PyObject * obj0 = 0 ;
7264 PyObject * obj1 = 0 ;
7265 char *kwnames[] = {
7266 (char *) "self",(char *) "indent", NULL
7267 };
7268
7269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7272 arg2 = (int) SWIG_AsInt(obj1);
7273 if (PyErr_Occurred()) SWIG_fail;
7274 {
7275 PyThreadState* __tstate = wxPyBeginAllowThreads();
7276 (arg1)->SetRightIndent(arg2);
7277
7278 wxPyEndAllowThreads(__tstate);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 }
7281 Py_INCREF(Py_None); resultobj = Py_None;
7282 return resultobj;
7283 fail:
7284 return NULL;
7285 }
7286
7287
7288 static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj;
7290 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7291 long arg2 ;
7292 PyObject * obj0 = 0 ;
7293 PyObject * obj1 = 0 ;
7294 char *kwnames[] = {
7295 (char *) "self",(char *) "flags", NULL
7296 };
7297
7298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7301 arg2 = (long) SWIG_AsLong(obj1);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 (arg1)->SetFlags(arg2);
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 Py_INCREF(Py_None); resultobj = Py_None;
7311 return resultobj;
7312 fail:
7313 return NULL;
7314 }
7315
7316
7317 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7318 PyObject *resultobj;
7319 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7320 bool result;
7321 PyObject * obj0 = 0 ;
7322 char *kwnames[] = {
7323 (char *) "self", NULL
7324 };
7325
7326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7329 {
7330 PyThreadState* __tstate = wxPyBeginAllowThreads();
7331 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7332
7333 wxPyEndAllowThreads(__tstate);
7334 if (PyErr_Occurred()) SWIG_fail;
7335 }
7336 {
7337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7338 }
7339 return resultobj;
7340 fail:
7341 return NULL;
7342 }
7343
7344
7345 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7346 PyObject *resultobj;
7347 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7348 bool result;
7349 PyObject * obj0 = 0 ;
7350 char *kwnames[] = {
7351 (char *) "self", NULL
7352 };
7353
7354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7357 {
7358 PyThreadState* __tstate = wxPyBeginAllowThreads();
7359 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7360
7361 wxPyEndAllowThreads(__tstate);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 {
7365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7366 }
7367 return resultobj;
7368 fail:
7369 return NULL;
7370 }
7371
7372
7373 static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7374 PyObject *resultobj;
7375 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7376 bool result;
7377 PyObject * obj0 = 0 ;
7378 char *kwnames[] = {
7379 (char *) "self", NULL
7380 };
7381
7382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7385 {
7386 PyThreadState* __tstate = wxPyBeginAllowThreads();
7387 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7388
7389 wxPyEndAllowThreads(__tstate);
7390 if (PyErr_Occurred()) SWIG_fail;
7391 }
7392 {
7393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7394 }
7395 return resultobj;
7396 fail:
7397 return NULL;
7398 }
7399
7400
7401 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7402 PyObject *resultobj;
7403 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7404 bool result;
7405 PyObject * obj0 = 0 ;
7406 char *kwnames[] = {
7407 (char *) "self", NULL
7408 };
7409
7410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7413 {
7414 PyThreadState* __tstate = wxPyBeginAllowThreads();
7415 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7416
7417 wxPyEndAllowThreads(__tstate);
7418 if (PyErr_Occurred()) SWIG_fail;
7419 }
7420 {
7421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7422 }
7423 return resultobj;
7424 fail:
7425 return NULL;
7426 }
7427
7428
7429 static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7430 PyObject *resultobj;
7431 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7432 bool result;
7433 PyObject * obj0 = 0 ;
7434 char *kwnames[] = {
7435 (char *) "self", NULL
7436 };
7437
7438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7441 {
7442 PyThreadState* __tstate = wxPyBeginAllowThreads();
7443 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7444
7445 wxPyEndAllowThreads(__tstate);
7446 if (PyErr_Occurred()) SWIG_fail;
7447 }
7448 {
7449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7450 }
7451 return resultobj;
7452 fail:
7453 return NULL;
7454 }
7455
7456
7457 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7458 PyObject *resultobj;
7459 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7460 bool result;
7461 PyObject * obj0 = 0 ;
7462 char *kwnames[] = {
7463 (char *) "self", NULL
7464 };
7465
7466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7469 {
7470 PyThreadState* __tstate = wxPyBeginAllowThreads();
7471 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7472
7473 wxPyEndAllowThreads(__tstate);
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 {
7477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7478 }
7479 return resultobj;
7480 fail:
7481 return NULL;
7482 }
7483
7484
7485 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7486 PyObject *resultobj;
7487 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7488 bool result;
7489 PyObject * obj0 = 0 ;
7490 char *kwnames[] = {
7491 (char *) "self", NULL
7492 };
7493
7494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7497 {
7498 PyThreadState* __tstate = wxPyBeginAllowThreads();
7499 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7500
7501 wxPyEndAllowThreads(__tstate);
7502 if (PyErr_Occurred()) SWIG_fail;
7503 }
7504 {
7505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7506 }
7507 return resultobj;
7508 fail:
7509 return NULL;
7510 }
7511
7512
7513 static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
7514 PyObject *resultobj;
7515 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7516 long arg2 ;
7517 bool result;
7518 PyObject * obj0 = 0 ;
7519 PyObject * obj1 = 0 ;
7520 char *kwnames[] = {
7521 (char *) "self",(char *) "flag", NULL
7522 };
7523
7524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7527 arg2 = (long) SWIG_AsLong(obj1);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 {
7530 PyThreadState* __tstate = wxPyBeginAllowThreads();
7531 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7532
7533 wxPyEndAllowThreads(__tstate);
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 {
7537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7538 }
7539 return resultobj;
7540 fail:
7541 return NULL;
7542 }
7543
7544
7545 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7546 PyObject *resultobj;
7547 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7548 wxColour *result;
7549 PyObject * obj0 = 0 ;
7550 char *kwnames[] = {
7551 (char *) "self", NULL
7552 };
7553
7554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7557 {
7558 PyThreadState* __tstate = wxPyBeginAllowThreads();
7559 {
7560 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7561 result = (wxColour *) &_result_ref;
7562 }
7563
7564 wxPyEndAllowThreads(__tstate);
7565 if (PyErr_Occurred()) SWIG_fail;
7566 }
7567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7568 return resultobj;
7569 fail:
7570 return NULL;
7571 }
7572
7573
7574 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7575 PyObject *resultobj;
7576 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7577 wxColour *result;
7578 PyObject * obj0 = 0 ;
7579 char *kwnames[] = {
7580 (char *) "self", NULL
7581 };
7582
7583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7586 {
7587 PyThreadState* __tstate = wxPyBeginAllowThreads();
7588 {
7589 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7590 result = (wxColour *) &_result_ref;
7591 }
7592
7593 wxPyEndAllowThreads(__tstate);
7594 if (PyErr_Occurred()) SWIG_fail;
7595 }
7596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7597 return resultobj;
7598 fail:
7599 return NULL;
7600 }
7601
7602
7603 static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7604 PyObject *resultobj;
7605 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7606 wxFont *result;
7607 PyObject * obj0 = 0 ;
7608 char *kwnames[] = {
7609 (char *) "self", NULL
7610 };
7611
7612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7615 {
7616 PyThreadState* __tstate = wxPyBeginAllowThreads();
7617 {
7618 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7619 result = (wxFont *) &_result_ref;
7620 }
7621
7622 wxPyEndAllowThreads(__tstate);
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 {
7626 wxFont* resultptr = new wxFont(*result);
7627 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7628 }
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj;
7637 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7638 int result;
7639 PyObject * obj0 = 0 ;
7640 char *kwnames[] = {
7641 (char *) "self", NULL
7642 };
7643
7644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7647 {
7648 PyThreadState* __tstate = wxPyBeginAllowThreads();
7649 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7650
7651 wxPyEndAllowThreads(__tstate);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 resultobj = SWIG_FromInt((int)result);
7655 return resultobj;
7656 fail:
7657 return NULL;
7658 }
7659
7660
7661 static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj;
7663 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7664 wxArrayInt *result;
7665 PyObject * obj0 = 0 ;
7666 char *kwnames[] = {
7667 (char *) "self", NULL
7668 };
7669
7670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7673 {
7674 PyThreadState* __tstate = wxPyBeginAllowThreads();
7675 {
7676 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7677 result = (wxArrayInt *) &_result_ref;
7678 }
7679
7680 wxPyEndAllowThreads(__tstate);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 {
7684 resultobj = PyList_New(0);
7685 size_t idx;
7686 for (idx = 0; idx < result->GetCount(); idx += 1) {
7687 PyObject* val = PyInt_FromLong( result->Item(idx) );
7688 PyList_Append(resultobj, val);
7689 Py_DECREF(val);
7690 }
7691 }
7692 return resultobj;
7693 fail:
7694 return NULL;
7695 }
7696
7697
7698 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7699 PyObject *resultobj;
7700 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7701 long result;
7702 PyObject * obj0 = 0 ;
7703 char *kwnames[] = {
7704 (char *) "self", NULL
7705 };
7706
7707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7710 {
7711 PyThreadState* __tstate = wxPyBeginAllowThreads();
7712 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7713
7714 wxPyEndAllowThreads(__tstate);
7715 if (PyErr_Occurred()) SWIG_fail;
7716 }
7717 resultobj = SWIG_FromLong((long)result);
7718 return resultobj;
7719 fail:
7720 return NULL;
7721 }
7722
7723
7724 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7725 PyObject *resultobj;
7726 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7727 long result;
7728 PyObject * obj0 = 0 ;
7729 char *kwnames[] = {
7730 (char *) "self", NULL
7731 };
7732
7733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7736 {
7737 PyThreadState* __tstate = wxPyBeginAllowThreads();
7738 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7739
7740 wxPyEndAllowThreads(__tstate);
7741 if (PyErr_Occurred()) SWIG_fail;
7742 }
7743 resultobj = SWIG_FromLong((long)result);
7744 return resultobj;
7745 fail:
7746 return NULL;
7747 }
7748
7749
7750 static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7751 PyObject *resultobj;
7752 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7753 long result;
7754 PyObject * obj0 = 0 ;
7755 char *kwnames[] = {
7756 (char *) "self", NULL
7757 };
7758
7759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7762 {
7763 PyThreadState* __tstate = wxPyBeginAllowThreads();
7764 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7765
7766 wxPyEndAllowThreads(__tstate);
7767 if (PyErr_Occurred()) SWIG_fail;
7768 }
7769 resultobj = SWIG_FromLong((long)result);
7770 return resultobj;
7771 fail:
7772 return NULL;
7773 }
7774
7775
7776 static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7777 PyObject *resultobj;
7778 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7779 bool result;
7780 PyObject * obj0 = 0 ;
7781 char *kwnames[] = {
7782 (char *) "self", NULL
7783 };
7784
7785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7788 {
7789 PyThreadState* __tstate = wxPyBeginAllowThreads();
7790 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7791
7792 wxPyEndAllowThreads(__tstate);
7793 if (PyErr_Occurred()) SWIG_fail;
7794 }
7795 {
7796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7797 }
7798 return resultobj;
7799 fail:
7800 return NULL;
7801 }
7802
7803
7804 static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj;
7806 wxTextAttr *arg1 = 0 ;
7807 wxTextAttr *arg2 = 0 ;
7808 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7809 wxTextAttr result;
7810 PyObject * obj0 = 0 ;
7811 PyObject * obj1 = 0 ;
7812 PyObject * obj2 = 0 ;
7813 char *kwnames[] = {
7814 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7815 };
7816
7817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7819 SWIG_POINTER_EXCEPTION | 0)) == -1)
7820 SWIG_fail;
7821 if (arg1 == NULL) {
7822 PyErr_SetString(PyExc_TypeError,"null reference");
7823 SWIG_fail;
7824 }
7825 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7826 SWIG_POINTER_EXCEPTION | 0)) == -1)
7827 SWIG_fail;
7828 if (arg2 == NULL) {
7829 PyErr_SetString(PyExc_TypeError,"null reference");
7830 SWIG_fail;
7831 }
7832 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7834 {
7835 PyThreadState* __tstate = wxPyBeginAllowThreads();
7836 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7837
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 {
7842 wxTextAttr * resultptr;
7843 resultptr = new wxTextAttr((wxTextAttr &) result);
7844 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7845 }
7846 return resultobj;
7847 fail:
7848 return NULL;
7849 }
7850
7851
7852 static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7853 PyObject *obj;
7854 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7855 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7856 Py_INCREF(obj);
7857 return Py_BuildValue((char *)"");
7858 }
7859 static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7860 PyObject *resultobj;
7861 wxWindow *arg1 = (wxWindow *) 0 ;
7862 int arg2 ;
7863 wxString const &arg3_defvalue = wxPyEmptyString ;
7864 wxString *arg3 = (wxString *) &arg3_defvalue ;
7865 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7866 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7867 wxSize const &arg5_defvalue = wxDefaultSize ;
7868 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7869 long arg6 = (long) 0 ;
7870 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7871 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7872 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7873 wxString *arg8 = (wxString *) &arg8_defvalue ;
7874 wxTextCtrl *result;
7875 bool temp3 = False ;
7876 wxPoint temp4 ;
7877 wxSize temp5 ;
7878 bool temp8 = False ;
7879 PyObject * obj0 = 0 ;
7880 PyObject * obj1 = 0 ;
7881 PyObject * obj2 = 0 ;
7882 PyObject * obj3 = 0 ;
7883 PyObject * obj4 = 0 ;
7884 PyObject * obj5 = 0 ;
7885 PyObject * obj6 = 0 ;
7886 PyObject * obj7 = 0 ;
7887 char *kwnames[] = {
7888 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7889 };
7890
7891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7894 arg2 = (int) SWIG_AsInt(obj1);
7895 if (PyErr_Occurred()) SWIG_fail;
7896 if (obj2) {
7897 {
7898 arg3 = wxString_in_helper(obj2);
7899 if (arg3 == NULL) SWIG_fail;
7900 temp3 = True;
7901 }
7902 }
7903 if (obj3) {
7904 {
7905 arg4 = &temp4;
7906 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7907 }
7908 }
7909 if (obj4) {
7910 {
7911 arg5 = &temp5;
7912 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7913 }
7914 }
7915 if (obj5) {
7916 arg6 = (long) SWIG_AsLong(obj5);
7917 if (PyErr_Occurred()) SWIG_fail;
7918 }
7919 if (obj6) {
7920 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7921 SWIG_POINTER_EXCEPTION | 0)) == -1)
7922 SWIG_fail;
7923 if (arg7 == NULL) {
7924 PyErr_SetString(PyExc_TypeError,"null reference");
7925 SWIG_fail;
7926 }
7927 }
7928 if (obj7) {
7929 {
7930 arg8 = wxString_in_helper(obj7);
7931 if (arg8 == NULL) SWIG_fail;
7932 temp8 = True;
7933 }
7934 }
7935 {
7936 PyThreadState* __tstate = wxPyBeginAllowThreads();
7937 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7938
7939 wxPyEndAllowThreads(__tstate);
7940 if (PyErr_Occurred()) SWIG_fail;
7941 }
7942 {
7943 resultobj = wxPyMake_wxObject(result);
7944 }
7945 {
7946 if (temp3)
7947 delete arg3;
7948 }
7949 {
7950 if (temp8)
7951 delete arg8;
7952 }
7953 return resultobj;
7954 fail:
7955 {
7956 if (temp3)
7957 delete arg3;
7958 }
7959 {
7960 if (temp8)
7961 delete arg8;
7962 }
7963 return NULL;
7964 }
7965
7966
7967 static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7968 PyObject *resultobj;
7969 wxTextCtrl *result;
7970 char *kwnames[] = {
7971 NULL
7972 };
7973
7974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
7975 {
7976 PyThreadState* __tstate = wxPyBeginAllowThreads();
7977 result = (wxTextCtrl *)new wxTextCtrl();
7978
7979 wxPyEndAllowThreads(__tstate);
7980 if (PyErr_Occurred()) SWIG_fail;
7981 }
7982 {
7983 resultobj = wxPyMake_wxObject(result);
7984 }
7985 return resultobj;
7986 fail:
7987 return NULL;
7988 }
7989
7990
7991 static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj;
7993 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7994 wxWindow *arg2 = (wxWindow *) 0 ;
7995 int arg3 ;
7996 wxString const &arg4_defvalue = wxPyEmptyString ;
7997 wxString *arg4 = (wxString *) &arg4_defvalue ;
7998 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7999 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8000 wxSize const &arg6_defvalue = wxDefaultSize ;
8001 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8002 long arg7 = (long) 0 ;
8003 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8004 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8005 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8006 wxString *arg9 = (wxString *) &arg9_defvalue ;
8007 bool result;
8008 bool temp4 = False ;
8009 wxPoint temp5 ;
8010 wxSize temp6 ;
8011 bool temp9 = False ;
8012 PyObject * obj0 = 0 ;
8013 PyObject * obj1 = 0 ;
8014 PyObject * obj2 = 0 ;
8015 PyObject * obj3 = 0 ;
8016 PyObject * obj4 = 0 ;
8017 PyObject * obj5 = 0 ;
8018 PyObject * obj6 = 0 ;
8019 PyObject * obj7 = 0 ;
8020 PyObject * obj8 = 0 ;
8021 char *kwnames[] = {
8022 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8023 };
8024
8025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8028 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8030 arg3 = (int) SWIG_AsInt(obj2);
8031 if (PyErr_Occurred()) SWIG_fail;
8032 if (obj3) {
8033 {
8034 arg4 = wxString_in_helper(obj3);
8035 if (arg4 == NULL) SWIG_fail;
8036 temp4 = True;
8037 }
8038 }
8039 if (obj4) {
8040 {
8041 arg5 = &temp5;
8042 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8043 }
8044 }
8045 if (obj5) {
8046 {
8047 arg6 = &temp6;
8048 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8049 }
8050 }
8051 if (obj6) {
8052 arg7 = (long) SWIG_AsLong(obj6);
8053 if (PyErr_Occurred()) SWIG_fail;
8054 }
8055 if (obj7) {
8056 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8057 SWIG_POINTER_EXCEPTION | 0)) == -1)
8058 SWIG_fail;
8059 if (arg8 == NULL) {
8060 PyErr_SetString(PyExc_TypeError,"null reference");
8061 SWIG_fail;
8062 }
8063 }
8064 if (obj8) {
8065 {
8066 arg9 = wxString_in_helper(obj8);
8067 if (arg9 == NULL) SWIG_fail;
8068 temp9 = True;
8069 }
8070 }
8071 {
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8074
8075 wxPyEndAllowThreads(__tstate);
8076 if (PyErr_Occurred()) SWIG_fail;
8077 }
8078 {
8079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8080 }
8081 {
8082 if (temp4)
8083 delete arg4;
8084 }
8085 {
8086 if (temp9)
8087 delete arg9;
8088 }
8089 return resultobj;
8090 fail:
8091 {
8092 if (temp4)
8093 delete arg4;
8094 }
8095 {
8096 if (temp9)
8097 delete arg9;
8098 }
8099 return NULL;
8100 }
8101
8102
8103 static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8104 PyObject *resultobj;
8105 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8106 wxString result;
8107 PyObject * obj0 = 0 ;
8108 char *kwnames[] = {
8109 (char *) "self", NULL
8110 };
8111
8112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8115 {
8116 PyThreadState* __tstate = wxPyBeginAllowThreads();
8117 result = ((wxTextCtrl const *)arg1)->GetValue();
8118
8119 wxPyEndAllowThreads(__tstate);
8120 if (PyErr_Occurred()) SWIG_fail;
8121 }
8122 {
8123 #if wxUSE_UNICODE
8124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8125 #else
8126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8127 #endif
8128 }
8129 return resultobj;
8130 fail:
8131 return NULL;
8132 }
8133
8134
8135 static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8136 PyObject *resultobj;
8137 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8138 wxString *arg2 = 0 ;
8139 bool temp2 = False ;
8140 PyObject * obj0 = 0 ;
8141 PyObject * obj1 = 0 ;
8142 char *kwnames[] = {
8143 (char *) "self",(char *) "value", NULL
8144 };
8145
8146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8149 {
8150 arg2 = wxString_in_helper(obj1);
8151 if (arg2 == NULL) SWIG_fail;
8152 temp2 = True;
8153 }
8154 {
8155 PyThreadState* __tstate = wxPyBeginAllowThreads();
8156 (arg1)->SetValue((wxString const &)*arg2);
8157
8158 wxPyEndAllowThreads(__tstate);
8159 if (PyErr_Occurred()) SWIG_fail;
8160 }
8161 Py_INCREF(Py_None); resultobj = Py_None;
8162 {
8163 if (temp2)
8164 delete arg2;
8165 }
8166 return resultobj;
8167 fail:
8168 {
8169 if (temp2)
8170 delete arg2;
8171 }
8172 return NULL;
8173 }
8174
8175
8176 static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8177 PyObject *resultobj;
8178 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8179 long arg2 ;
8180 long arg3 ;
8181 wxString result;
8182 PyObject * obj0 = 0 ;
8183 PyObject * obj1 = 0 ;
8184 PyObject * obj2 = 0 ;
8185 char *kwnames[] = {
8186 (char *) "self",(char *) "from",(char *) "to", NULL
8187 };
8188
8189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8192 arg2 = (long) SWIG_AsLong(obj1);
8193 if (PyErr_Occurred()) SWIG_fail;
8194 arg3 = (long) SWIG_AsLong(obj2);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 {
8197 PyThreadState* __tstate = wxPyBeginAllowThreads();
8198 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8199
8200 wxPyEndAllowThreads(__tstate);
8201 if (PyErr_Occurred()) SWIG_fail;
8202 }
8203 {
8204 #if wxUSE_UNICODE
8205 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8206 #else
8207 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8208 #endif
8209 }
8210 return resultobj;
8211 fail:
8212 return NULL;
8213 }
8214
8215
8216 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8217 PyObject *resultobj;
8218 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8219 long arg2 ;
8220 int result;
8221 PyObject * obj0 = 0 ;
8222 PyObject * obj1 = 0 ;
8223 char *kwnames[] = {
8224 (char *) "self",(char *) "lineNo", NULL
8225 };
8226
8227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8230 arg2 = (long) SWIG_AsLong(obj1);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 {
8233 PyThreadState* __tstate = wxPyBeginAllowThreads();
8234 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8235
8236 wxPyEndAllowThreads(__tstate);
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 resultobj = SWIG_FromInt((int)result);
8240 return resultobj;
8241 fail:
8242 return NULL;
8243 }
8244
8245
8246 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
8247 PyObject *resultobj;
8248 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8249 long arg2 ;
8250 wxString result;
8251 PyObject * obj0 = 0 ;
8252 PyObject * obj1 = 0 ;
8253 char *kwnames[] = {
8254 (char *) "self",(char *) "lineNo", NULL
8255 };
8256
8257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8260 arg2 = (long) SWIG_AsLong(obj1);
8261 if (PyErr_Occurred()) SWIG_fail;
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8265
8266 wxPyEndAllowThreads(__tstate);
8267 if (PyErr_Occurred()) SWIG_fail;
8268 }
8269 {
8270 #if wxUSE_UNICODE
8271 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8272 #else
8273 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8274 #endif
8275 }
8276 return resultobj;
8277 fail:
8278 return NULL;
8279 }
8280
8281
8282 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
8283 PyObject *resultobj;
8284 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8285 int result;
8286 PyObject * obj0 = 0 ;
8287 char *kwnames[] = {
8288 (char *) "self", NULL
8289 };
8290
8291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 resultobj = SWIG_FromInt((int)result);
8302 return resultobj;
8303 fail:
8304 return NULL;
8305 }
8306
8307
8308 static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
8309 PyObject *resultobj;
8310 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8311 bool result;
8312 PyObject * obj0 = 0 ;
8313 char *kwnames[] = {
8314 (char *) "self", NULL
8315 };
8316
8317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8320 {
8321 PyThreadState* __tstate = wxPyBeginAllowThreads();
8322 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8323
8324 wxPyEndAllowThreads(__tstate);
8325 if (PyErr_Occurred()) SWIG_fail;
8326 }
8327 {
8328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8329 }
8330 return resultobj;
8331 fail:
8332 return NULL;
8333 }
8334
8335
8336 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8337 PyObject *resultobj;
8338 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8339 bool result;
8340 PyObject * obj0 = 0 ;
8341 char *kwnames[] = {
8342 (char *) "self", NULL
8343 };
8344
8345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8348 {
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8351
8352 wxPyEndAllowThreads(__tstate);
8353 if (PyErr_Occurred()) SWIG_fail;
8354 }
8355 {
8356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8357 }
8358 return resultobj;
8359 fail:
8360 return NULL;
8361 }
8362
8363
8364 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8365 PyObject *resultobj;
8366 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8367 bool result;
8368 PyObject * obj0 = 0 ;
8369 char *kwnames[] = {
8370 (char *) "self", NULL
8371 };
8372
8373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8376 {
8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
8378 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8379
8380 wxPyEndAllowThreads(__tstate);
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 {
8384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8385 }
8386 return resultobj;
8387 fail:
8388 return NULL;
8389 }
8390
8391
8392 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8393 PyObject *resultobj;
8394 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8395 bool result;
8396 PyObject * obj0 = 0 ;
8397 char *kwnames[] = {
8398 (char *) "self", NULL
8399 };
8400
8401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8404 {
8405 PyThreadState* __tstate = wxPyBeginAllowThreads();
8406 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8407
8408 wxPyEndAllowThreads(__tstate);
8409 if (PyErr_Occurred()) SWIG_fail;
8410 }
8411 {
8412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8413 }
8414 return resultobj;
8415 fail:
8416 return NULL;
8417 }
8418
8419
8420 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8421 PyObject *resultobj;
8422 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8423 long *arg2 = (long *) 0 ;
8424 long *arg3 = (long *) 0 ;
8425 long temp2 ;
8426 long temp3 ;
8427 PyObject * obj0 = 0 ;
8428 char *kwnames[] = {
8429 (char *) "self", NULL
8430 };
8431
8432 arg2 = &temp2;
8433 arg3 = &temp3;
8434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8437 {
8438 PyThreadState* __tstate = wxPyBeginAllowThreads();
8439 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8440
8441 wxPyEndAllowThreads(__tstate);
8442 if (PyErr_Occurred()) SWIG_fail;
8443 }
8444 Py_INCREF(Py_None); resultobj = Py_None;
8445 {
8446 PyObject *o = PyInt_FromLong((long) (*arg2));
8447 resultobj = t_output_helper(resultobj,o);
8448 }
8449 {
8450 PyObject *o = PyInt_FromLong((long) (*arg3));
8451 resultobj = t_output_helper(resultobj,o);
8452 }
8453 return resultobj;
8454 fail:
8455 return NULL;
8456 }
8457
8458
8459 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8460 PyObject *resultobj;
8461 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8462 wxString result;
8463 PyObject * obj0 = 0 ;
8464 char *kwnames[] = {
8465 (char *) "self", NULL
8466 };
8467
8468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8471 {
8472 PyThreadState* __tstate = wxPyBeginAllowThreads();
8473 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8474
8475 wxPyEndAllowThreads(__tstate);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 {
8479 #if wxUSE_UNICODE
8480 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8481 #else
8482 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8483 #endif
8484 }
8485 return resultobj;
8486 fail:
8487 return NULL;
8488 }
8489
8490
8491 static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8492 PyObject *resultobj;
8493 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8494 PyObject * obj0 = 0 ;
8495 char *kwnames[] = {
8496 (char *) "self", NULL
8497 };
8498
8499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8502 {
8503 PyThreadState* __tstate = wxPyBeginAllowThreads();
8504 (arg1)->Clear();
8505
8506 wxPyEndAllowThreads(__tstate);
8507 if (PyErr_Occurred()) SWIG_fail;
8508 }
8509 Py_INCREF(Py_None); resultobj = Py_None;
8510 return resultobj;
8511 fail:
8512 return NULL;
8513 }
8514
8515
8516 static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8517 PyObject *resultobj;
8518 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8519 long arg2 ;
8520 long arg3 ;
8521 wxString *arg4 = 0 ;
8522 bool temp4 = False ;
8523 PyObject * obj0 = 0 ;
8524 PyObject * obj1 = 0 ;
8525 PyObject * obj2 = 0 ;
8526 PyObject * obj3 = 0 ;
8527 char *kwnames[] = {
8528 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8529 };
8530
8531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8534 arg2 = (long) SWIG_AsLong(obj1);
8535 if (PyErr_Occurred()) SWIG_fail;
8536 arg3 = (long) SWIG_AsLong(obj2);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 {
8539 arg4 = wxString_in_helper(obj3);
8540 if (arg4 == NULL) SWIG_fail;
8541 temp4 = True;
8542 }
8543 {
8544 PyThreadState* __tstate = wxPyBeginAllowThreads();
8545 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8546
8547 wxPyEndAllowThreads(__tstate);
8548 if (PyErr_Occurred()) SWIG_fail;
8549 }
8550 Py_INCREF(Py_None); resultobj = Py_None;
8551 {
8552 if (temp4)
8553 delete arg4;
8554 }
8555 return resultobj;
8556 fail:
8557 {
8558 if (temp4)
8559 delete arg4;
8560 }
8561 return NULL;
8562 }
8563
8564
8565 static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8566 PyObject *resultobj;
8567 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8568 long arg2 ;
8569 long arg3 ;
8570 PyObject * obj0 = 0 ;
8571 PyObject * obj1 = 0 ;
8572 PyObject * obj2 = 0 ;
8573 char *kwnames[] = {
8574 (char *) "self",(char *) "from",(char *) "to", NULL
8575 };
8576
8577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8580 arg2 = (long) SWIG_AsLong(obj1);
8581 if (PyErr_Occurred()) SWIG_fail;
8582 arg3 = (long) SWIG_AsLong(obj2);
8583 if (PyErr_Occurred()) SWIG_fail;
8584 {
8585 PyThreadState* __tstate = wxPyBeginAllowThreads();
8586 (arg1)->Remove(arg2,arg3);
8587
8588 wxPyEndAllowThreads(__tstate);
8589 if (PyErr_Occurred()) SWIG_fail;
8590 }
8591 Py_INCREF(Py_None); resultobj = Py_None;
8592 return resultobj;
8593 fail:
8594 return NULL;
8595 }
8596
8597
8598 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8599 PyObject *resultobj;
8600 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8601 wxString *arg2 = 0 ;
8602 bool result;
8603 bool temp2 = False ;
8604 PyObject * obj0 = 0 ;
8605 PyObject * obj1 = 0 ;
8606 char *kwnames[] = {
8607 (char *) "self",(char *) "file", NULL
8608 };
8609
8610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8613 {
8614 arg2 = wxString_in_helper(obj1);
8615 if (arg2 == NULL) SWIG_fail;
8616 temp2 = True;
8617 }
8618 {
8619 PyThreadState* __tstate = wxPyBeginAllowThreads();
8620 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8621
8622 wxPyEndAllowThreads(__tstate);
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
8625 {
8626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8627 }
8628 {
8629 if (temp2)
8630 delete arg2;
8631 }
8632 return resultobj;
8633 fail:
8634 {
8635 if (temp2)
8636 delete arg2;
8637 }
8638 return NULL;
8639 }
8640
8641
8642 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8643 PyObject *resultobj;
8644 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8645 wxString const &arg2_defvalue = wxPyEmptyString ;
8646 wxString *arg2 = (wxString *) &arg2_defvalue ;
8647 bool result;
8648 bool temp2 = False ;
8649 PyObject * obj0 = 0 ;
8650 PyObject * obj1 = 0 ;
8651 char *kwnames[] = {
8652 (char *) "self",(char *) "file", NULL
8653 };
8654
8655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8658 if (obj1) {
8659 {
8660 arg2 = wxString_in_helper(obj1);
8661 if (arg2 == NULL) SWIG_fail;
8662 temp2 = True;
8663 }
8664 }
8665 {
8666 PyThreadState* __tstate = wxPyBeginAllowThreads();
8667 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8668
8669 wxPyEndAllowThreads(__tstate);
8670 if (PyErr_Occurred()) SWIG_fail;
8671 }
8672 {
8673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8674 }
8675 {
8676 if (temp2)
8677 delete arg2;
8678 }
8679 return resultobj;
8680 fail:
8681 {
8682 if (temp2)
8683 delete arg2;
8684 }
8685 return NULL;
8686 }
8687
8688
8689 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8690 PyObject *resultobj;
8691 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8692 PyObject * obj0 = 0 ;
8693 char *kwnames[] = {
8694 (char *) "self", NULL
8695 };
8696
8697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8700 {
8701 PyThreadState* __tstate = wxPyBeginAllowThreads();
8702 (arg1)->MarkDirty();
8703
8704 wxPyEndAllowThreads(__tstate);
8705 if (PyErr_Occurred()) SWIG_fail;
8706 }
8707 Py_INCREF(Py_None); resultobj = Py_None;
8708 return resultobj;
8709 fail:
8710 return NULL;
8711 }
8712
8713
8714 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8715 PyObject *resultobj;
8716 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8717 PyObject * obj0 = 0 ;
8718 char *kwnames[] = {
8719 (char *) "self", NULL
8720 };
8721
8722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8725 {
8726 PyThreadState* __tstate = wxPyBeginAllowThreads();
8727 (arg1)->DiscardEdits();
8728
8729 wxPyEndAllowThreads(__tstate);
8730 if (PyErr_Occurred()) SWIG_fail;
8731 }
8732 Py_INCREF(Py_None); resultobj = Py_None;
8733 return resultobj;
8734 fail:
8735 return NULL;
8736 }
8737
8738
8739 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8740 PyObject *resultobj;
8741 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8742 unsigned long arg2 ;
8743 PyObject * obj0 = 0 ;
8744 PyObject * obj1 = 0 ;
8745 char *kwnames[] = {
8746 (char *) "self",(char *) "len", NULL
8747 };
8748
8749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8752 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8753 if (PyErr_Occurred()) SWIG_fail;
8754 {
8755 PyThreadState* __tstate = wxPyBeginAllowThreads();
8756 (arg1)->SetMaxLength(arg2);
8757
8758 wxPyEndAllowThreads(__tstate);
8759 if (PyErr_Occurred()) SWIG_fail;
8760 }
8761 Py_INCREF(Py_None); resultobj = Py_None;
8762 return resultobj;
8763 fail:
8764 return NULL;
8765 }
8766
8767
8768 static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8769 PyObject *resultobj;
8770 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8771 wxString *arg2 = 0 ;
8772 bool temp2 = False ;
8773 PyObject * obj0 = 0 ;
8774 PyObject * obj1 = 0 ;
8775 char *kwnames[] = {
8776 (char *) "self",(char *) "text", NULL
8777 };
8778
8779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8782 {
8783 arg2 = wxString_in_helper(obj1);
8784 if (arg2 == NULL) SWIG_fail;
8785 temp2 = True;
8786 }
8787 {
8788 PyThreadState* __tstate = wxPyBeginAllowThreads();
8789 (arg1)->WriteText((wxString const &)*arg2);
8790
8791 wxPyEndAllowThreads(__tstate);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 Py_INCREF(Py_None); resultobj = Py_None;
8795 {
8796 if (temp2)
8797 delete arg2;
8798 }
8799 return resultobj;
8800 fail:
8801 {
8802 if (temp2)
8803 delete arg2;
8804 }
8805 return NULL;
8806 }
8807
8808
8809 static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8810 PyObject *resultobj;
8811 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8812 wxString *arg2 = 0 ;
8813 bool temp2 = False ;
8814 PyObject * obj0 = 0 ;
8815 PyObject * obj1 = 0 ;
8816 char *kwnames[] = {
8817 (char *) "self",(char *) "text", NULL
8818 };
8819
8820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8823 {
8824 arg2 = wxString_in_helper(obj1);
8825 if (arg2 == NULL) SWIG_fail;
8826 temp2 = True;
8827 }
8828 {
8829 PyThreadState* __tstate = wxPyBeginAllowThreads();
8830 (arg1)->AppendText((wxString const &)*arg2);
8831
8832 wxPyEndAllowThreads(__tstate);
8833 if (PyErr_Occurred()) SWIG_fail;
8834 }
8835 Py_INCREF(Py_None); resultobj = Py_None;
8836 {
8837 if (temp2)
8838 delete arg2;
8839 }
8840 return resultobj;
8841 fail:
8842 {
8843 if (temp2)
8844 delete arg2;
8845 }
8846 return NULL;
8847 }
8848
8849
8850 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8851 PyObject *resultobj;
8852 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8853 wxKeyEvent *arg2 = 0 ;
8854 bool result;
8855 PyObject * obj0 = 0 ;
8856 PyObject * obj1 = 0 ;
8857 char *kwnames[] = {
8858 (char *) "self",(char *) "event", NULL
8859 };
8860
8861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8864 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8865 SWIG_POINTER_EXCEPTION | 0)) == -1)
8866 SWIG_fail;
8867 if (arg2 == NULL) {
8868 PyErr_SetString(PyExc_TypeError,"null reference");
8869 SWIG_fail;
8870 }
8871 {
8872 PyThreadState* __tstate = wxPyBeginAllowThreads();
8873 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8874
8875 wxPyEndAllowThreads(__tstate);
8876 if (PyErr_Occurred()) SWIG_fail;
8877 }
8878 {
8879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8880 }
8881 return resultobj;
8882 fail:
8883 return NULL;
8884 }
8885
8886
8887 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8888 PyObject *resultobj;
8889 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8890 long arg2 ;
8891 long arg3 ;
8892 wxTextAttr *arg4 = 0 ;
8893 bool result;
8894 PyObject * obj0 = 0 ;
8895 PyObject * obj1 = 0 ;
8896 PyObject * obj2 = 0 ;
8897 PyObject * obj3 = 0 ;
8898 char *kwnames[] = {
8899 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8900 };
8901
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8905 arg2 = (long) SWIG_AsLong(obj1);
8906 if (PyErr_Occurred()) SWIG_fail;
8907 arg3 = (long) SWIG_AsLong(obj2);
8908 if (PyErr_Occurred()) SWIG_fail;
8909 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8910 SWIG_POINTER_EXCEPTION | 0)) == -1)
8911 SWIG_fail;
8912 if (arg4 == NULL) {
8913 PyErr_SetString(PyExc_TypeError,"null reference");
8914 SWIG_fail;
8915 }
8916 {
8917 PyThreadState* __tstate = wxPyBeginAllowThreads();
8918 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8919
8920 wxPyEndAllowThreads(__tstate);
8921 if (PyErr_Occurred()) SWIG_fail;
8922 }
8923 {
8924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8925 }
8926 return resultobj;
8927 fail:
8928 return NULL;
8929 }
8930
8931
8932 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8933 PyObject *resultobj;
8934 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8935 long arg2 ;
8936 wxTextAttr *arg3 = 0 ;
8937 bool result;
8938 PyObject * obj0 = 0 ;
8939 PyObject * obj1 = 0 ;
8940 PyObject * obj2 = 0 ;
8941 char *kwnames[] = {
8942 (char *) "self",(char *) "position",(char *) "style", NULL
8943 };
8944
8945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8948 arg2 = (long) SWIG_AsLong(obj1);
8949 if (PyErr_Occurred()) SWIG_fail;
8950 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
8951 SWIG_POINTER_EXCEPTION | 0)) == -1)
8952 SWIG_fail;
8953 if (arg3 == NULL) {
8954 PyErr_SetString(PyExc_TypeError,"null reference");
8955 SWIG_fail;
8956 }
8957 {
8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
8959 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8960
8961 wxPyEndAllowThreads(__tstate);
8962 if (PyErr_Occurred()) SWIG_fail;
8963 }
8964 {
8965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8966 }
8967 return resultobj;
8968 fail:
8969 return NULL;
8970 }
8971
8972
8973 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8974 PyObject *resultobj;
8975 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8976 wxTextAttr *arg2 = 0 ;
8977 bool result;
8978 PyObject * obj0 = 0 ;
8979 PyObject * obj1 = 0 ;
8980 char *kwnames[] = {
8981 (char *) "self",(char *) "style", NULL
8982 };
8983
8984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
8985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8987 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8988 SWIG_POINTER_EXCEPTION | 0)) == -1)
8989 SWIG_fail;
8990 if (arg2 == NULL) {
8991 PyErr_SetString(PyExc_TypeError,"null reference");
8992 SWIG_fail;
8993 }
8994 {
8995 PyThreadState* __tstate = wxPyBeginAllowThreads();
8996 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
8997
8998 wxPyEndAllowThreads(__tstate);
8999 if (PyErr_Occurred()) SWIG_fail;
9000 }
9001 {
9002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9003 }
9004 return resultobj;
9005 fail:
9006 return NULL;
9007 }
9008
9009
9010 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9011 PyObject *resultobj;
9012 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9013 wxTextAttr *result;
9014 PyObject * obj0 = 0 ;
9015 char *kwnames[] = {
9016 (char *) "self", NULL
9017 };
9018
9019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9022 {
9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
9024 {
9025 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9026 result = (wxTextAttr *) &_result_ref;
9027 }
9028
9029 wxPyEndAllowThreads(__tstate);
9030 if (PyErr_Occurred()) SWIG_fail;
9031 }
9032 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9033 return resultobj;
9034 fail:
9035 return NULL;
9036 }
9037
9038
9039 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9040 PyObject *resultobj;
9041 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9042 long arg2 ;
9043 long arg3 ;
9044 long result;
9045 PyObject * obj0 = 0 ;
9046 PyObject * obj1 = 0 ;
9047 PyObject * obj2 = 0 ;
9048 char *kwnames[] = {
9049 (char *) "self",(char *) "x",(char *) "y", NULL
9050 };
9051
9052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9055 arg2 = (long) SWIG_AsLong(obj1);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 arg3 = (long) SWIG_AsLong(obj2);
9058 if (PyErr_Occurred()) SWIG_fail;
9059 {
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9062
9063 wxPyEndAllowThreads(__tstate);
9064 if (PyErr_Occurred()) SWIG_fail;
9065 }
9066 resultobj = SWIG_FromLong((long)result);
9067 return resultobj;
9068 fail:
9069 return NULL;
9070 }
9071
9072
9073 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9074 PyObject *resultobj;
9075 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9076 long arg2 ;
9077 long *arg3 = (long *) 0 ;
9078 long *arg4 = (long *) 0 ;
9079 long temp3 ;
9080 long temp4 ;
9081 PyObject * obj0 = 0 ;
9082 PyObject * obj1 = 0 ;
9083 char *kwnames[] = {
9084 (char *) "self",(char *) "pos", NULL
9085 };
9086
9087 arg3 = &temp3;
9088 arg4 = &temp4;
9089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9092 arg2 = (long) SWIG_AsLong(obj1);
9093 if (PyErr_Occurred()) SWIG_fail;
9094 {
9095 PyThreadState* __tstate = wxPyBeginAllowThreads();
9096 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9097
9098 wxPyEndAllowThreads(__tstate);
9099 if (PyErr_Occurred()) SWIG_fail;
9100 }
9101 Py_INCREF(Py_None); resultobj = Py_None;
9102 {
9103 PyObject *o = PyInt_FromLong((long) (*arg3));
9104 resultobj = t_output_helper(resultobj,o);
9105 }
9106 {
9107 PyObject *o = PyInt_FromLong((long) (*arg4));
9108 resultobj = t_output_helper(resultobj,o);
9109 }
9110 return resultobj;
9111 fail:
9112 return NULL;
9113 }
9114
9115
9116 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9117 PyObject *resultobj;
9118 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9119 long arg2 ;
9120 PyObject * obj0 = 0 ;
9121 PyObject * obj1 = 0 ;
9122 char *kwnames[] = {
9123 (char *) "self",(char *) "pos", NULL
9124 };
9125
9126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9129 arg2 = (long) SWIG_AsLong(obj1);
9130 if (PyErr_Occurred()) SWIG_fail;
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 (arg1)->ShowPosition(arg2);
9134
9135 wxPyEndAllowThreads(__tstate);
9136 if (PyErr_Occurred()) SWIG_fail;
9137 }
9138 Py_INCREF(Py_None); resultobj = Py_None;
9139 return resultobj;
9140 fail:
9141 return NULL;
9142 }
9143
9144
9145 static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
9146 PyObject *resultobj;
9147 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9148 wxPoint *arg2 = 0 ;
9149 long *arg3 = (long *) 0 ;
9150 long *arg4 = (long *) 0 ;
9151 int result;
9152 wxPoint temp2 ;
9153 long temp3 ;
9154 long temp4 ;
9155 PyObject * obj0 = 0 ;
9156 PyObject * obj1 = 0 ;
9157 char *kwnames[] = {
9158 (char *) "self",(char *) "pt", NULL
9159 };
9160
9161 arg3 = &temp3;
9162 arg4 = &temp4;
9163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9166 {
9167 arg2 = &temp2;
9168 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9169 }
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9173
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 resultobj = SWIG_FromInt((int)result);
9178 {
9179 PyObject *o = PyInt_FromLong((long) (*arg3));
9180 resultobj = t_output_helper(resultobj,o);
9181 }
9182 {
9183 PyObject *o = PyInt_FromLong((long) (*arg4));
9184 resultobj = t_output_helper(resultobj,o);
9185 }
9186 return resultobj;
9187 fail:
9188 return NULL;
9189 }
9190
9191
9192 static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
9193 PyObject *resultobj;
9194 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9195 PyObject * obj0 = 0 ;
9196 char *kwnames[] = {
9197 (char *) "self", NULL
9198 };
9199
9200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9203 {
9204 PyThreadState* __tstate = wxPyBeginAllowThreads();
9205 (arg1)->Copy();
9206
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 Py_INCREF(Py_None); resultobj = Py_None;
9211 return resultobj;
9212 fail:
9213 return NULL;
9214 }
9215
9216
9217 static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
9218 PyObject *resultobj;
9219 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9220 PyObject * obj0 = 0 ;
9221 char *kwnames[] = {
9222 (char *) "self", NULL
9223 };
9224
9225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
9230 (arg1)->Cut();
9231
9232 wxPyEndAllowThreads(__tstate);
9233 if (PyErr_Occurred()) SWIG_fail;
9234 }
9235 Py_INCREF(Py_None); resultobj = Py_None;
9236 return resultobj;
9237 fail:
9238 return NULL;
9239 }
9240
9241
9242 static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
9243 PyObject *resultobj;
9244 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9245 PyObject * obj0 = 0 ;
9246 char *kwnames[] = {
9247 (char *) "self", NULL
9248 };
9249
9250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9253 {
9254 PyThreadState* __tstate = wxPyBeginAllowThreads();
9255 (arg1)->Paste();
9256
9257 wxPyEndAllowThreads(__tstate);
9258 if (PyErr_Occurred()) SWIG_fail;
9259 }
9260 Py_INCREF(Py_None); resultobj = Py_None;
9261 return resultobj;
9262 fail:
9263 return NULL;
9264 }
9265
9266
9267 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
9268 PyObject *resultobj;
9269 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9270 bool result;
9271 PyObject * obj0 = 0 ;
9272 char *kwnames[] = {
9273 (char *) "self", NULL
9274 };
9275
9276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9279 {
9280 PyThreadState* __tstate = wxPyBeginAllowThreads();
9281 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9282
9283 wxPyEndAllowThreads(__tstate);
9284 if (PyErr_Occurred()) SWIG_fail;
9285 }
9286 {
9287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9288 }
9289 return resultobj;
9290 fail:
9291 return NULL;
9292 }
9293
9294
9295 static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
9296 PyObject *resultobj;
9297 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9298 bool result;
9299 PyObject * obj0 = 0 ;
9300 char *kwnames[] = {
9301 (char *) "self", NULL
9302 };
9303
9304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9307 {
9308 PyThreadState* __tstate = wxPyBeginAllowThreads();
9309 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9310
9311 wxPyEndAllowThreads(__tstate);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 }
9314 {
9315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9316 }
9317 return resultobj;
9318 fail:
9319 return NULL;
9320 }
9321
9322
9323 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
9324 PyObject *resultobj;
9325 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9326 bool result;
9327 PyObject * obj0 = 0 ;
9328 char *kwnames[] = {
9329 (char *) "self", NULL
9330 };
9331
9332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9335 {
9336 PyThreadState* __tstate = wxPyBeginAllowThreads();
9337 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9338
9339 wxPyEndAllowThreads(__tstate);
9340 if (PyErr_Occurred()) SWIG_fail;
9341 }
9342 {
9343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9344 }
9345 return resultobj;
9346 fail:
9347 return NULL;
9348 }
9349
9350
9351 static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
9352 PyObject *resultobj;
9353 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9354 PyObject * obj0 = 0 ;
9355 char *kwnames[] = {
9356 (char *) "self", NULL
9357 };
9358
9359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9362 {
9363 PyThreadState* __tstate = wxPyBeginAllowThreads();
9364 (arg1)->Undo();
9365
9366 wxPyEndAllowThreads(__tstate);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 }
9369 Py_INCREF(Py_None); resultobj = Py_None;
9370 return resultobj;
9371 fail:
9372 return NULL;
9373 }
9374
9375
9376 static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
9377 PyObject *resultobj;
9378 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9379 PyObject * obj0 = 0 ;
9380 char *kwnames[] = {
9381 (char *) "self", NULL
9382 };
9383
9384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9387 {
9388 PyThreadState* __tstate = wxPyBeginAllowThreads();
9389 (arg1)->Redo();
9390
9391 wxPyEndAllowThreads(__tstate);
9392 if (PyErr_Occurred()) SWIG_fail;
9393 }
9394 Py_INCREF(Py_None); resultobj = Py_None;
9395 return resultobj;
9396 fail:
9397 return NULL;
9398 }
9399
9400
9401 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
9402 PyObject *resultobj;
9403 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9404 bool result;
9405 PyObject * obj0 = 0 ;
9406 char *kwnames[] = {
9407 (char *) "self", NULL
9408 };
9409
9410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9413 {
9414 PyThreadState* __tstate = wxPyBeginAllowThreads();
9415 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9416
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 }
9420 {
9421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9422 }
9423 return resultobj;
9424 fail:
9425 return NULL;
9426 }
9427
9428
9429 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
9430 PyObject *resultobj;
9431 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9432 bool result;
9433 PyObject * obj0 = 0 ;
9434 char *kwnames[] = {
9435 (char *) "self", NULL
9436 };
9437
9438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9441 {
9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
9443 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9444
9445 wxPyEndAllowThreads(__tstate);
9446 if (PyErr_Occurred()) SWIG_fail;
9447 }
9448 {
9449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9450 }
9451 return resultobj;
9452 fail:
9453 return NULL;
9454 }
9455
9456
9457 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj;
9459 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9460 long arg2 ;
9461 PyObject * obj0 = 0 ;
9462 PyObject * obj1 = 0 ;
9463 char *kwnames[] = {
9464 (char *) "self",(char *) "pos", NULL
9465 };
9466
9467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9470 arg2 = (long) SWIG_AsLong(obj1);
9471 if (PyErr_Occurred()) SWIG_fail;
9472 {
9473 PyThreadState* __tstate = wxPyBeginAllowThreads();
9474 (arg1)->SetInsertionPoint(arg2);
9475
9476 wxPyEndAllowThreads(__tstate);
9477 if (PyErr_Occurred()) SWIG_fail;
9478 }
9479 Py_INCREF(Py_None); resultobj = Py_None;
9480 return resultobj;
9481 fail:
9482 return NULL;
9483 }
9484
9485
9486 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9487 PyObject *resultobj;
9488 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9489 PyObject * obj0 = 0 ;
9490 char *kwnames[] = {
9491 (char *) "self", NULL
9492 };
9493
9494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9497 {
9498 PyThreadState* __tstate = wxPyBeginAllowThreads();
9499 (arg1)->SetInsertionPointEnd();
9500
9501 wxPyEndAllowThreads(__tstate);
9502 if (PyErr_Occurred()) SWIG_fail;
9503 }
9504 Py_INCREF(Py_None); resultobj = Py_None;
9505 return resultobj;
9506 fail:
9507 return NULL;
9508 }
9509
9510
9511 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9512 PyObject *resultobj;
9513 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9514 long result;
9515 PyObject * obj0 = 0 ;
9516 char *kwnames[] = {
9517 (char *) "self", NULL
9518 };
9519
9520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9523 {
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9526
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 resultobj = SWIG_FromLong((long)result);
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9538 PyObject *resultobj;
9539 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9540 long result;
9541 PyObject * obj0 = 0 ;
9542 char *kwnames[] = {
9543 (char *) "self", NULL
9544 };
9545
9546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9549 {
9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
9551 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9552
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 resultobj = SWIG_FromLong((long)result);
9557 return resultobj;
9558 fail:
9559 return NULL;
9560 }
9561
9562
9563 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9564 PyObject *resultobj;
9565 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9566 long arg2 ;
9567 long arg3 ;
9568 PyObject * obj0 = 0 ;
9569 PyObject * obj1 = 0 ;
9570 PyObject * obj2 = 0 ;
9571 char *kwnames[] = {
9572 (char *) "self",(char *) "from",(char *) "to", NULL
9573 };
9574
9575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9578 arg2 = (long) SWIG_AsLong(obj1);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 arg3 = (long) SWIG_AsLong(obj2);
9581 if (PyErr_Occurred()) SWIG_fail;
9582 {
9583 PyThreadState* __tstate = wxPyBeginAllowThreads();
9584 (arg1)->SetSelection(arg2,arg3);
9585
9586 wxPyEndAllowThreads(__tstate);
9587 if (PyErr_Occurred()) SWIG_fail;
9588 }
9589 Py_INCREF(Py_None); resultobj = Py_None;
9590 return resultobj;
9591 fail:
9592 return NULL;
9593 }
9594
9595
9596 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9597 PyObject *resultobj;
9598 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9599 PyObject * obj0 = 0 ;
9600 char *kwnames[] = {
9601 (char *) "self", NULL
9602 };
9603
9604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 (arg1)->SelectAll();
9610
9611 wxPyEndAllowThreads(__tstate);
9612 if (PyErr_Occurred()) SWIG_fail;
9613 }
9614 Py_INCREF(Py_None); resultobj = Py_None;
9615 return resultobj;
9616 fail:
9617 return NULL;
9618 }
9619
9620
9621 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9622 PyObject *resultobj;
9623 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9624 bool arg2 ;
9625 PyObject * obj0 = 0 ;
9626 PyObject * obj1 = 0 ;
9627 char *kwnames[] = {
9628 (char *) "self",(char *) "editable", NULL
9629 };
9630
9631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9634 arg2 = (bool) SWIG_AsBool(obj1);
9635 if (PyErr_Occurred()) SWIG_fail;
9636 {
9637 PyThreadState* __tstate = wxPyBeginAllowThreads();
9638 (arg1)->SetEditable(arg2);
9639
9640 wxPyEndAllowThreads(__tstate);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 Py_INCREF(Py_None); resultobj = Py_None;
9644 return resultobj;
9645 fail:
9646 return NULL;
9647 }
9648
9649
9650 static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9651 PyObject *resultobj;
9652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9653 wxString *arg2 = 0 ;
9654 bool temp2 = False ;
9655 PyObject * obj0 = 0 ;
9656 PyObject * obj1 = 0 ;
9657 char *kwnames[] = {
9658 (char *) "self",(char *) "text", NULL
9659 };
9660
9661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9664 {
9665 arg2 = wxString_in_helper(obj1);
9666 if (arg2 == NULL) SWIG_fail;
9667 temp2 = True;
9668 }
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9672
9673 wxPyEndAllowThreads(__tstate);
9674 if (PyErr_Occurred()) SWIG_fail;
9675 }
9676 Py_INCREF(Py_None); resultobj = Py_None;
9677 {
9678 if (temp2)
9679 delete arg2;
9680 }
9681 return resultobj;
9682 fail:
9683 {
9684 if (temp2)
9685 delete arg2;
9686 }
9687 return NULL;
9688 }
9689
9690
9691 static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9692 PyObject *resultobj;
9693 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9694 long arg2 ;
9695 long arg3 ;
9696 wxString result;
9697 PyObject * obj0 = 0 ;
9698 PyObject * obj1 = 0 ;
9699 PyObject * obj2 = 0 ;
9700 char *kwnames[] = {
9701 (char *) "self",(char *) "from",(char *) "to", NULL
9702 };
9703
9704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9707 arg2 = (long) SWIG_AsLong(obj1);
9708 if (PyErr_Occurred()) SWIG_fail;
9709 arg3 = (long) SWIG_AsLong(obj2);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 {
9712 PyThreadState* __tstate = wxPyBeginAllowThreads();
9713 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9714
9715 wxPyEndAllowThreads(__tstate);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 }
9718 {
9719 #if wxUSE_UNICODE
9720 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9721 #else
9722 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9723 #endif
9724 }
9725 return resultobj;
9726 fail:
9727 return NULL;
9728 }
9729
9730
9731 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
9732 PyObject *resultobj;
9733 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
9734 wxVisualAttributes result;
9735 PyObject * obj0 = 0 ;
9736 char *kwnames[] = {
9737 (char *) "variant", NULL
9738 };
9739
9740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
9741 if (obj0) {
9742 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
9743 if (PyErr_Occurred()) SWIG_fail;
9744 }
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
9748
9749 wxPyEndAllowThreads(__tstate);
9750 if (PyErr_Occurred()) SWIG_fail;
9751 }
9752 {
9753 wxVisualAttributes * resultptr;
9754 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
9755 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
9756 }
9757 return resultobj;
9758 fail:
9759 return NULL;
9760 }
9761
9762
9763 static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9764 PyObject *obj;
9765 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9766 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9767 Py_INCREF(obj);
9768 return Py_BuildValue((char *)"");
9769 }
9770 static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9771 PyObject *resultobj;
9772 int arg1 ;
9773 wxMouseEvent *arg2 = 0 ;
9774 long arg3 ;
9775 long arg4 ;
9776 wxTextUrlEvent *result;
9777 PyObject * obj0 = 0 ;
9778 PyObject * obj1 = 0 ;
9779 PyObject * obj2 = 0 ;
9780 PyObject * obj3 = 0 ;
9781 char *kwnames[] = {
9782 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9783 };
9784
9785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9786 arg1 = (int) SWIG_AsInt(obj0);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9789 SWIG_POINTER_EXCEPTION | 0)) == -1)
9790 SWIG_fail;
9791 if (arg2 == NULL) {
9792 PyErr_SetString(PyExc_TypeError,"null reference");
9793 SWIG_fail;
9794 }
9795 arg3 = (long) SWIG_AsLong(obj2);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 arg4 = (long) SWIG_AsLong(obj3);
9798 if (PyErr_Occurred()) SWIG_fail;
9799 {
9800 PyThreadState* __tstate = wxPyBeginAllowThreads();
9801 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9802
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) SWIG_fail;
9805 }
9806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9807 return resultobj;
9808 fail:
9809 return NULL;
9810 }
9811
9812
9813 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9814 PyObject *resultobj;
9815 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9816 wxMouseEvent *result;
9817 PyObject * obj0 = 0 ;
9818 char *kwnames[] = {
9819 (char *) "self", NULL
9820 };
9821
9822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9825 {
9826 PyThreadState* __tstate = wxPyBeginAllowThreads();
9827 {
9828 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9829 result = (wxMouseEvent *) &_result_ref;
9830 }
9831
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 }
9835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9836 return resultobj;
9837 fail:
9838 return NULL;
9839 }
9840
9841
9842 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj;
9844 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9845 long result;
9846 PyObject * obj0 = 0 ;
9847 char *kwnames[] = {
9848 (char *) "self", NULL
9849 };
9850
9851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9854 {
9855 PyThreadState* __tstate = wxPyBeginAllowThreads();
9856 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9857
9858 wxPyEndAllowThreads(__tstate);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
9861 resultobj = SWIG_FromLong((long)result);
9862 return resultobj;
9863 fail:
9864 return NULL;
9865 }
9866
9867
9868 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj;
9870 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9871 long result;
9872 PyObject * obj0 = 0 ;
9873 char *kwnames[] = {
9874 (char *) "self", NULL
9875 };
9876
9877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9880 {
9881 PyThreadState* __tstate = wxPyBeginAllowThreads();
9882 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9883
9884 wxPyEndAllowThreads(__tstate);
9885 if (PyErr_Occurred()) SWIG_fail;
9886 }
9887 resultobj = SWIG_FromLong((long)result);
9888 return resultobj;
9889 fail:
9890 return NULL;
9891 }
9892
9893
9894 static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
9895 PyObject *obj;
9896 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9897 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9898 Py_INCREF(obj);
9899 return Py_BuildValue((char *)"");
9900 }
9901 static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
9902 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9903 return 1;
9904 }
9905
9906
9907 static PyObject *_wrap_ScrollBarNameStr_get() {
9908 PyObject *pyobj;
9909
9910 {
9911 #if wxUSE_UNICODE
9912 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9913 #else
9914 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9915 #endif
9916 }
9917 return pyobj;
9918 }
9919
9920
9921 static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9922 PyObject *resultobj;
9923 wxWindow *arg1 = (wxWindow *) 0 ;
9924 int arg2 = (int) -1 ;
9925 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9926 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9927 wxSize const &arg4_defvalue = wxDefaultSize ;
9928 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9929 long arg5 = (long) wxSB_HORIZONTAL ;
9930 wxValidator const &arg6_defvalue = wxDefaultValidator ;
9931 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
9932 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
9933 wxString *arg7 = (wxString *) &arg7_defvalue ;
9934 wxScrollBar *result;
9935 wxPoint temp3 ;
9936 wxSize temp4 ;
9937 bool temp7 = False ;
9938 PyObject * obj0 = 0 ;
9939 PyObject * obj1 = 0 ;
9940 PyObject * obj2 = 0 ;
9941 PyObject * obj3 = 0 ;
9942 PyObject * obj4 = 0 ;
9943 PyObject * obj5 = 0 ;
9944 PyObject * obj6 = 0 ;
9945 char *kwnames[] = {
9946 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9947 };
9948
9949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9952 if (obj1) {
9953 arg2 = (int) SWIG_AsInt(obj1);
9954 if (PyErr_Occurred()) SWIG_fail;
9955 }
9956 if (obj2) {
9957 {
9958 arg3 = &temp3;
9959 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9960 }
9961 }
9962 if (obj3) {
9963 {
9964 arg4 = &temp4;
9965 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9966 }
9967 }
9968 if (obj4) {
9969 arg5 = (long) SWIG_AsLong(obj4);
9970 if (PyErr_Occurred()) SWIG_fail;
9971 }
9972 if (obj5) {
9973 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
9974 SWIG_POINTER_EXCEPTION | 0)) == -1)
9975 SWIG_fail;
9976 if (arg6 == NULL) {
9977 PyErr_SetString(PyExc_TypeError,"null reference");
9978 SWIG_fail;
9979 }
9980 }
9981 if (obj6) {
9982 {
9983 arg7 = wxString_in_helper(obj6);
9984 if (arg7 == NULL) SWIG_fail;
9985 temp7 = True;
9986 }
9987 }
9988 {
9989 PyThreadState* __tstate = wxPyBeginAllowThreads();
9990 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
9991
9992 wxPyEndAllowThreads(__tstate);
9993 if (PyErr_Occurred()) SWIG_fail;
9994 }
9995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
9996 {
9997 if (temp7)
9998 delete arg7;
9999 }
10000 return resultobj;
10001 fail:
10002 {
10003 if (temp7)
10004 delete arg7;
10005 }
10006 return NULL;
10007 }
10008
10009
10010 static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
10011 PyObject *resultobj;
10012 wxScrollBar *result;
10013 char *kwnames[] = {
10014 NULL
10015 };
10016
10017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10018 {
10019 PyThreadState* __tstate = wxPyBeginAllowThreads();
10020 result = (wxScrollBar *)new wxScrollBar();
10021
10022 wxPyEndAllowThreads(__tstate);
10023 if (PyErr_Occurred()) SWIG_fail;
10024 }
10025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10026 return resultobj;
10027 fail:
10028 return NULL;
10029 }
10030
10031
10032 static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10033 PyObject *resultobj;
10034 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10035 wxWindow *arg2 = (wxWindow *) 0 ;
10036 int arg3 = (int) -1 ;
10037 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10038 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10039 wxSize const &arg5_defvalue = wxDefaultSize ;
10040 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10041 long arg6 = (long) wxSB_HORIZONTAL ;
10042 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10043 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10044 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10045 wxString *arg8 = (wxString *) &arg8_defvalue ;
10046 bool result;
10047 wxPoint temp4 ;
10048 wxSize temp5 ;
10049 bool temp8 = False ;
10050 PyObject * obj0 = 0 ;
10051 PyObject * obj1 = 0 ;
10052 PyObject * obj2 = 0 ;
10053 PyObject * obj3 = 0 ;
10054 PyObject * obj4 = 0 ;
10055 PyObject * obj5 = 0 ;
10056 PyObject * obj6 = 0 ;
10057 PyObject * obj7 = 0 ;
10058 char *kwnames[] = {
10059 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10060 };
10061
10062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10065 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10067 if (obj2) {
10068 arg3 = (int) SWIG_AsInt(obj2);
10069 if (PyErr_Occurred()) SWIG_fail;
10070 }
10071 if (obj3) {
10072 {
10073 arg4 = &temp4;
10074 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10075 }
10076 }
10077 if (obj4) {
10078 {
10079 arg5 = &temp5;
10080 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10081 }
10082 }
10083 if (obj5) {
10084 arg6 = (long) SWIG_AsLong(obj5);
10085 if (PyErr_Occurred()) SWIG_fail;
10086 }
10087 if (obj6) {
10088 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10089 SWIG_POINTER_EXCEPTION | 0)) == -1)
10090 SWIG_fail;
10091 if (arg7 == NULL) {
10092 PyErr_SetString(PyExc_TypeError,"null reference");
10093 SWIG_fail;
10094 }
10095 }
10096 if (obj7) {
10097 {
10098 arg8 = wxString_in_helper(obj7);
10099 if (arg8 == NULL) SWIG_fail;
10100 temp8 = True;
10101 }
10102 }
10103 {
10104 PyThreadState* __tstate = wxPyBeginAllowThreads();
10105 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10106
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 {
10111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10112 }
10113 {
10114 if (temp8)
10115 delete arg8;
10116 }
10117 return resultobj;
10118 fail:
10119 {
10120 if (temp8)
10121 delete arg8;
10122 }
10123 return NULL;
10124 }
10125
10126
10127 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10128 PyObject *resultobj;
10129 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10130 int result;
10131 PyObject * obj0 = 0 ;
10132 char *kwnames[] = {
10133 (char *) "self", NULL
10134 };
10135
10136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10139 {
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10142
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 resultobj = SWIG_FromInt((int)result);
10147 return resultobj;
10148 fail:
10149 return NULL;
10150 }
10151
10152
10153 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10154 PyObject *resultobj;
10155 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10156 int result;
10157 PyObject * obj0 = 0 ;
10158 char *kwnames[] = {
10159 (char *) "self", NULL
10160 };
10161
10162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10165 {
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10168
10169 wxPyEndAllowThreads(__tstate);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 }
10172 resultobj = SWIG_FromInt((int)result);
10173 return resultobj;
10174 fail:
10175 return NULL;
10176 }
10177
10178
10179 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10180 PyObject *resultobj;
10181 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10182 int result;
10183 PyObject * obj0 = 0 ;
10184 char *kwnames[] = {
10185 (char *) "self", NULL
10186 };
10187
10188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10191 {
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10194
10195 wxPyEndAllowThreads(__tstate);
10196 if (PyErr_Occurred()) SWIG_fail;
10197 }
10198 resultobj = SWIG_FromInt((int)result);
10199 return resultobj;
10200 fail:
10201 return NULL;
10202 }
10203
10204
10205 static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10206 PyObject *resultobj;
10207 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10208 int result;
10209 PyObject * obj0 = 0 ;
10210 char *kwnames[] = {
10211 (char *) "self", NULL
10212 };
10213
10214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10217 {
10218 PyThreadState* __tstate = wxPyBeginAllowThreads();
10219 result = (int)((wxScrollBar const *)arg1)->GetRange();
10220
10221 wxPyEndAllowThreads(__tstate);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 }
10224 resultobj = SWIG_FromInt((int)result);
10225 return resultobj;
10226 fail:
10227 return NULL;
10228 }
10229
10230
10231 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10232 PyObject *resultobj;
10233 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10234 bool result;
10235 PyObject * obj0 = 0 ;
10236 char *kwnames[] = {
10237 (char *) "self", NULL
10238 };
10239
10240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10243 {
10244 PyThreadState* __tstate = wxPyBeginAllowThreads();
10245 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10246
10247 wxPyEndAllowThreads(__tstate);
10248 if (PyErr_Occurred()) SWIG_fail;
10249 }
10250 {
10251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10252 }
10253 return resultobj;
10254 fail:
10255 return NULL;
10256 }
10257
10258
10259 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10260 PyObject *resultobj;
10261 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10262 int arg2 ;
10263 PyObject * obj0 = 0 ;
10264 PyObject * obj1 = 0 ;
10265 char *kwnames[] = {
10266 (char *) "self",(char *) "viewStart", NULL
10267 };
10268
10269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10272 arg2 = (int) SWIG_AsInt(obj1);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 {
10275 PyThreadState* __tstate = wxPyBeginAllowThreads();
10276 (arg1)->SetThumbPosition(arg2);
10277
10278 wxPyEndAllowThreads(__tstate);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
10281 Py_INCREF(Py_None); resultobj = Py_None;
10282 return resultobj;
10283 fail:
10284 return NULL;
10285 }
10286
10287
10288 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
10289 PyObject *resultobj;
10290 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10291 int arg2 ;
10292 int arg3 ;
10293 int arg4 ;
10294 int arg5 ;
10295 bool arg6 = (bool) True ;
10296 PyObject * obj0 = 0 ;
10297 PyObject * obj1 = 0 ;
10298 PyObject * obj2 = 0 ;
10299 PyObject * obj3 = 0 ;
10300 PyObject * obj4 = 0 ;
10301 PyObject * obj5 = 0 ;
10302 char *kwnames[] = {
10303 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10304 };
10305
10306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10309 arg2 = (int) SWIG_AsInt(obj1);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 arg3 = (int) SWIG_AsInt(obj2);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 arg4 = (int) SWIG_AsInt(obj3);
10314 if (PyErr_Occurred()) SWIG_fail;
10315 arg5 = (int) SWIG_AsInt(obj4);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 if (obj5) {
10318 arg6 = (bool) SWIG_AsBool(obj5);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 }
10321 {
10322 PyThreadState* __tstate = wxPyBeginAllowThreads();
10323 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10324
10325 wxPyEndAllowThreads(__tstate);
10326 if (PyErr_Occurred()) SWIG_fail;
10327 }
10328 Py_INCREF(Py_None); resultobj = Py_None;
10329 return resultobj;
10330 fail:
10331 return NULL;
10332 }
10333
10334
10335 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10336 PyObject *resultobj;
10337 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10338 wxVisualAttributes result;
10339 PyObject * obj0 = 0 ;
10340 char *kwnames[] = {
10341 (char *) "variant", NULL
10342 };
10343
10344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10345 if (obj0) {
10346 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10347 if (PyErr_Occurred()) SWIG_fail;
10348 }
10349 {
10350 PyThreadState* __tstate = wxPyBeginAllowThreads();
10351 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10352
10353 wxPyEndAllowThreads(__tstate);
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
10356 {
10357 wxVisualAttributes * resultptr;
10358 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10359 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10360 }
10361 return resultobj;
10362 fail:
10363 return NULL;
10364 }
10365
10366
10367 static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
10368 PyObject *obj;
10369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10370 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10371 Py_INCREF(obj);
10372 return Py_BuildValue((char *)"");
10373 }
10374 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
10375 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10376 return 1;
10377 }
10378
10379
10380 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10381 PyObject *pyobj;
10382
10383 {
10384 #if wxUSE_UNICODE
10385 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10386 #else
10387 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10388 #endif
10389 }
10390 return pyobj;
10391 }
10392
10393
10394 static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
10395 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10396 return 1;
10397 }
10398
10399
10400 static PyObject *_wrap_SpinCtrlNameStr_get() {
10401 PyObject *pyobj;
10402
10403 {
10404 #if wxUSE_UNICODE
10405 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10406 #else
10407 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10408 #endif
10409 }
10410 return pyobj;
10411 }
10412
10413
10414 static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10415 PyObject *resultobj;
10416 wxWindow *arg1 = (wxWindow *) 0 ;
10417 int arg2 = (int) -1 ;
10418 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10419 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10420 wxSize const &arg4_defvalue = wxDefaultSize ;
10421 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10422 long arg5 = (long) wxSP_HORIZONTAL ;
10423 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10424 wxString *arg6 = (wxString *) &arg6_defvalue ;
10425 wxSpinButton *result;
10426 wxPoint temp3 ;
10427 wxSize temp4 ;
10428 bool temp6 = False ;
10429 PyObject * obj0 = 0 ;
10430 PyObject * obj1 = 0 ;
10431 PyObject * obj2 = 0 ;
10432 PyObject * obj3 = 0 ;
10433 PyObject * obj4 = 0 ;
10434 PyObject * obj5 = 0 ;
10435 char *kwnames[] = {
10436 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10437 };
10438
10439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10442 if (obj1) {
10443 arg2 = (int) SWIG_AsInt(obj1);
10444 if (PyErr_Occurred()) SWIG_fail;
10445 }
10446 if (obj2) {
10447 {
10448 arg3 = &temp3;
10449 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10450 }
10451 }
10452 if (obj3) {
10453 {
10454 arg4 = &temp4;
10455 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10456 }
10457 }
10458 if (obj4) {
10459 arg5 = (long) SWIG_AsLong(obj4);
10460 if (PyErr_Occurred()) SWIG_fail;
10461 }
10462 if (obj5) {
10463 {
10464 arg6 = wxString_in_helper(obj5);
10465 if (arg6 == NULL) SWIG_fail;
10466 temp6 = True;
10467 }
10468 }
10469 {
10470 PyThreadState* __tstate = wxPyBeginAllowThreads();
10471 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10472
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10477 {
10478 if (temp6)
10479 delete arg6;
10480 }
10481 return resultobj;
10482 fail:
10483 {
10484 if (temp6)
10485 delete arg6;
10486 }
10487 return NULL;
10488 }
10489
10490
10491 static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10492 PyObject *resultobj;
10493 wxSpinButton *result;
10494 char *kwnames[] = {
10495 NULL
10496 };
10497
10498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10499 {
10500 PyThreadState* __tstate = wxPyBeginAllowThreads();
10501 result = (wxSpinButton *)new wxSpinButton();
10502
10503 wxPyEndAllowThreads(__tstate);
10504 if (PyErr_Occurred()) SWIG_fail;
10505 }
10506 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10507 return resultobj;
10508 fail:
10509 return NULL;
10510 }
10511
10512
10513 static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10514 PyObject *resultobj;
10515 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10516 wxWindow *arg2 = (wxWindow *) 0 ;
10517 int arg3 = (int) -1 ;
10518 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10519 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10520 wxSize const &arg5_defvalue = wxDefaultSize ;
10521 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10522 long arg6 = (long) wxSP_HORIZONTAL ;
10523 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10524 wxString *arg7 = (wxString *) &arg7_defvalue ;
10525 bool result;
10526 wxPoint temp4 ;
10527 wxSize temp5 ;
10528 bool temp7 = False ;
10529 PyObject * obj0 = 0 ;
10530 PyObject * obj1 = 0 ;
10531 PyObject * obj2 = 0 ;
10532 PyObject * obj3 = 0 ;
10533 PyObject * obj4 = 0 ;
10534 PyObject * obj5 = 0 ;
10535 PyObject * obj6 = 0 ;
10536 char *kwnames[] = {
10537 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10538 };
10539
10540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10543 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10545 if (obj2) {
10546 arg3 = (int) SWIG_AsInt(obj2);
10547 if (PyErr_Occurred()) SWIG_fail;
10548 }
10549 if (obj3) {
10550 {
10551 arg4 = &temp4;
10552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10553 }
10554 }
10555 if (obj4) {
10556 {
10557 arg5 = &temp5;
10558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10559 }
10560 }
10561 if (obj5) {
10562 arg6 = (long) SWIG_AsLong(obj5);
10563 if (PyErr_Occurred()) SWIG_fail;
10564 }
10565 if (obj6) {
10566 {
10567 arg7 = wxString_in_helper(obj6);
10568 if (arg7 == NULL) SWIG_fail;
10569 temp7 = True;
10570 }
10571 }
10572 {
10573 PyThreadState* __tstate = wxPyBeginAllowThreads();
10574 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10575
10576 wxPyEndAllowThreads(__tstate);
10577 if (PyErr_Occurred()) SWIG_fail;
10578 }
10579 {
10580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10581 }
10582 {
10583 if (temp7)
10584 delete arg7;
10585 }
10586 return resultobj;
10587 fail:
10588 {
10589 if (temp7)
10590 delete arg7;
10591 }
10592 return NULL;
10593 }
10594
10595
10596 static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10597 PyObject *resultobj;
10598 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10599 int result;
10600 PyObject * obj0 = 0 ;
10601 char *kwnames[] = {
10602 (char *) "self", NULL
10603 };
10604
10605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 result = (int)((wxSpinButton const *)arg1)->GetValue();
10611
10612 wxPyEndAllowThreads(__tstate);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 }
10615 resultobj = SWIG_FromInt((int)result);
10616 return resultobj;
10617 fail:
10618 return NULL;
10619 }
10620
10621
10622 static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10623 PyObject *resultobj;
10624 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10625 int result;
10626 PyObject * obj0 = 0 ;
10627 char *kwnames[] = {
10628 (char *) "self", NULL
10629 };
10630
10631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10634 {
10635 PyThreadState* __tstate = wxPyBeginAllowThreads();
10636 result = (int)((wxSpinButton const *)arg1)->GetMin();
10637
10638 wxPyEndAllowThreads(__tstate);
10639 if (PyErr_Occurred()) SWIG_fail;
10640 }
10641 resultobj = SWIG_FromInt((int)result);
10642 return resultobj;
10643 fail:
10644 return NULL;
10645 }
10646
10647
10648 static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10649 PyObject *resultobj;
10650 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10651 int result;
10652 PyObject * obj0 = 0 ;
10653 char *kwnames[] = {
10654 (char *) "self", NULL
10655 };
10656
10657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10660 {
10661 PyThreadState* __tstate = wxPyBeginAllowThreads();
10662 result = (int)((wxSpinButton const *)arg1)->GetMax();
10663
10664 wxPyEndAllowThreads(__tstate);
10665 if (PyErr_Occurred()) SWIG_fail;
10666 }
10667 resultobj = SWIG_FromInt((int)result);
10668 return resultobj;
10669 fail:
10670 return NULL;
10671 }
10672
10673
10674 static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10675 PyObject *resultobj;
10676 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10677 int arg2 ;
10678 PyObject * obj0 = 0 ;
10679 PyObject * obj1 = 0 ;
10680 char *kwnames[] = {
10681 (char *) "self",(char *) "val", NULL
10682 };
10683
10684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10687 arg2 = (int) SWIG_AsInt(obj1);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 {
10690 PyThreadState* __tstate = wxPyBeginAllowThreads();
10691 (arg1)->SetValue(arg2);
10692
10693 wxPyEndAllowThreads(__tstate);
10694 if (PyErr_Occurred()) SWIG_fail;
10695 }
10696 Py_INCREF(Py_None); resultobj = Py_None;
10697 return resultobj;
10698 fail:
10699 return NULL;
10700 }
10701
10702
10703 static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10704 PyObject *resultobj;
10705 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10706 int arg2 ;
10707 PyObject * obj0 = 0 ;
10708 PyObject * obj1 = 0 ;
10709 char *kwnames[] = {
10710 (char *) "self",(char *) "minVal", NULL
10711 };
10712
10713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10716 arg2 = (int) SWIG_AsInt(obj1);
10717 if (PyErr_Occurred()) SWIG_fail;
10718 {
10719 PyThreadState* __tstate = wxPyBeginAllowThreads();
10720 (arg1)->SetMin(arg2);
10721
10722 wxPyEndAllowThreads(__tstate);
10723 if (PyErr_Occurred()) SWIG_fail;
10724 }
10725 Py_INCREF(Py_None); resultobj = Py_None;
10726 return resultobj;
10727 fail:
10728 return NULL;
10729 }
10730
10731
10732 static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10733 PyObject *resultobj;
10734 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10735 int arg2 ;
10736 PyObject * obj0 = 0 ;
10737 PyObject * obj1 = 0 ;
10738 char *kwnames[] = {
10739 (char *) "self",(char *) "maxVal", NULL
10740 };
10741
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10745 arg2 = (int) SWIG_AsInt(obj1);
10746 if (PyErr_Occurred()) SWIG_fail;
10747 {
10748 PyThreadState* __tstate = wxPyBeginAllowThreads();
10749 (arg1)->SetMax(arg2);
10750
10751 wxPyEndAllowThreads(__tstate);
10752 if (PyErr_Occurred()) SWIG_fail;
10753 }
10754 Py_INCREF(Py_None); resultobj = Py_None;
10755 return resultobj;
10756 fail:
10757 return NULL;
10758 }
10759
10760
10761 static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10762 PyObject *resultobj;
10763 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10764 int arg2 ;
10765 int arg3 ;
10766 PyObject * obj0 = 0 ;
10767 PyObject * obj1 = 0 ;
10768 PyObject * obj2 = 0 ;
10769 char *kwnames[] = {
10770 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10771 };
10772
10773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10776 arg2 = (int) SWIG_AsInt(obj1);
10777 if (PyErr_Occurred()) SWIG_fail;
10778 arg3 = (int) SWIG_AsInt(obj2);
10779 if (PyErr_Occurred()) SWIG_fail;
10780 {
10781 PyThreadState* __tstate = wxPyBeginAllowThreads();
10782 (arg1)->SetRange(arg2,arg3);
10783
10784 wxPyEndAllowThreads(__tstate);
10785 if (PyErr_Occurred()) SWIG_fail;
10786 }
10787 Py_INCREF(Py_None); resultobj = Py_None;
10788 return resultobj;
10789 fail:
10790 return NULL;
10791 }
10792
10793
10794 static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10795 PyObject *resultobj;
10796 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10797 bool result;
10798 PyObject * obj0 = 0 ;
10799 char *kwnames[] = {
10800 (char *) "self", NULL
10801 };
10802
10803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10806 {
10807 PyThreadState* __tstate = wxPyBeginAllowThreads();
10808 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10809
10810 wxPyEndAllowThreads(__tstate);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 }
10813 {
10814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10815 }
10816 return resultobj;
10817 fail:
10818 return NULL;
10819 }
10820
10821
10822 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10823 PyObject *resultobj;
10824 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10825 wxVisualAttributes result;
10826 PyObject * obj0 = 0 ;
10827 char *kwnames[] = {
10828 (char *) "variant", NULL
10829 };
10830
10831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10832 if (obj0) {
10833 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 {
10837 PyThreadState* __tstate = wxPyBeginAllowThreads();
10838 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
10839
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 {
10844 wxVisualAttributes * resultptr;
10845 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10846 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10847 }
10848 return resultobj;
10849 fail:
10850 return NULL;
10851 }
10852
10853
10854 static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10855 PyObject *obj;
10856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10857 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10858 Py_INCREF(obj);
10859 return Py_BuildValue((char *)"");
10860 }
10861 static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10862 PyObject *resultobj;
10863 wxWindow *arg1 = (wxWindow *) 0 ;
10864 int arg2 = (int) -1 ;
10865 wxString const &arg3_defvalue = wxPyEmptyString ;
10866 wxString *arg3 = (wxString *) &arg3_defvalue ;
10867 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10868 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10869 wxSize const &arg5_defvalue = wxDefaultSize ;
10870 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10871 long arg6 = (long) wxSP_ARROW_KEYS ;
10872 int arg7 = (int) 0 ;
10873 int arg8 = (int) 100 ;
10874 int arg9 = (int) 0 ;
10875 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10876 wxString *arg10 = (wxString *) &arg10_defvalue ;
10877 wxSpinCtrl *result;
10878 bool temp3 = False ;
10879 wxPoint temp4 ;
10880 wxSize temp5 ;
10881 bool temp10 = False ;
10882 PyObject * obj0 = 0 ;
10883 PyObject * obj1 = 0 ;
10884 PyObject * obj2 = 0 ;
10885 PyObject * obj3 = 0 ;
10886 PyObject * obj4 = 0 ;
10887 PyObject * obj5 = 0 ;
10888 PyObject * obj6 = 0 ;
10889 PyObject * obj7 = 0 ;
10890 PyObject * obj8 = 0 ;
10891 PyObject * obj9 = 0 ;
10892 char *kwnames[] = {
10893 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10894 };
10895
10896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10899 if (obj1) {
10900 arg2 = (int) SWIG_AsInt(obj1);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 }
10903 if (obj2) {
10904 {
10905 arg3 = wxString_in_helper(obj2);
10906 if (arg3 == NULL) SWIG_fail;
10907 temp3 = True;
10908 }
10909 }
10910 if (obj3) {
10911 {
10912 arg4 = &temp4;
10913 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10914 }
10915 }
10916 if (obj4) {
10917 {
10918 arg5 = &temp5;
10919 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10920 }
10921 }
10922 if (obj5) {
10923 arg6 = (long) SWIG_AsLong(obj5);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 if (obj6) {
10927 arg7 = (int) SWIG_AsInt(obj6);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 }
10930 if (obj7) {
10931 arg8 = (int) SWIG_AsInt(obj7);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 if (obj8) {
10935 arg9 = (int) SWIG_AsInt(obj8);
10936 if (PyErr_Occurred()) SWIG_fail;
10937 }
10938 if (obj9) {
10939 {
10940 arg10 = wxString_in_helper(obj9);
10941 if (arg10 == NULL) SWIG_fail;
10942 temp10 = True;
10943 }
10944 }
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
10948
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10953 {
10954 if (temp3)
10955 delete arg3;
10956 }
10957 {
10958 if (temp10)
10959 delete arg10;
10960 }
10961 return resultobj;
10962 fail:
10963 {
10964 if (temp3)
10965 delete arg3;
10966 }
10967 {
10968 if (temp10)
10969 delete arg10;
10970 }
10971 return NULL;
10972 }
10973
10974
10975 static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10976 PyObject *resultobj;
10977 wxSpinCtrl *result;
10978 char *kwnames[] = {
10979 NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
10983 {
10984 PyThreadState* __tstate = wxPyBeginAllowThreads();
10985 result = (wxSpinCtrl *)new wxSpinCtrl();
10986
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10991 return resultobj;
10992 fail:
10993 return NULL;
10994 }
10995
10996
10997 static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10998 PyObject *resultobj;
10999 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11000 wxWindow *arg2 = (wxWindow *) 0 ;
11001 int arg3 = (int) -1 ;
11002 wxString const &arg4_defvalue = wxPyEmptyString ;
11003 wxString *arg4 = (wxString *) &arg4_defvalue ;
11004 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11005 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11006 wxSize const &arg6_defvalue = wxDefaultSize ;
11007 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11008 long arg7 = (long) wxSP_ARROW_KEYS ;
11009 int arg8 = (int) 0 ;
11010 int arg9 = (int) 100 ;
11011 int arg10 = (int) 0 ;
11012 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11013 wxString *arg11 = (wxString *) &arg11_defvalue ;
11014 bool result;
11015 bool temp4 = False ;
11016 wxPoint temp5 ;
11017 wxSize temp6 ;
11018 bool temp11 = False ;
11019 PyObject * obj0 = 0 ;
11020 PyObject * obj1 = 0 ;
11021 PyObject * obj2 = 0 ;
11022 PyObject * obj3 = 0 ;
11023 PyObject * obj4 = 0 ;
11024 PyObject * obj5 = 0 ;
11025 PyObject * obj6 = 0 ;
11026 PyObject * obj7 = 0 ;
11027 PyObject * obj8 = 0 ;
11028 PyObject * obj9 = 0 ;
11029 PyObject * obj10 = 0 ;
11030 char *kwnames[] = {
11031 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11032 };
11033
11034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11039 if (obj2) {
11040 arg3 = (int) SWIG_AsInt(obj2);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 if (obj3) {
11044 {
11045 arg4 = wxString_in_helper(obj3);
11046 if (arg4 == NULL) SWIG_fail;
11047 temp4 = True;
11048 }
11049 }
11050 if (obj4) {
11051 {
11052 arg5 = &temp5;
11053 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11054 }
11055 }
11056 if (obj5) {
11057 {
11058 arg6 = &temp6;
11059 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11060 }
11061 }
11062 if (obj6) {
11063 arg7 = (long) SWIG_AsLong(obj6);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 if (obj7) {
11067 arg8 = (int) SWIG_AsInt(obj7);
11068 if (PyErr_Occurred()) SWIG_fail;
11069 }
11070 if (obj8) {
11071 arg9 = (int) SWIG_AsInt(obj8);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 if (obj9) {
11075 arg10 = (int) SWIG_AsInt(obj9);
11076 if (PyErr_Occurred()) SWIG_fail;
11077 }
11078 if (obj10) {
11079 {
11080 arg11 = wxString_in_helper(obj10);
11081 if (arg11 == NULL) SWIG_fail;
11082 temp11 = True;
11083 }
11084 }
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11088
11089 wxPyEndAllowThreads(__tstate);
11090 if (PyErr_Occurred()) SWIG_fail;
11091 }
11092 {
11093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11094 }
11095 {
11096 if (temp4)
11097 delete arg4;
11098 }
11099 {
11100 if (temp11)
11101 delete arg11;
11102 }
11103 return resultobj;
11104 fail:
11105 {
11106 if (temp4)
11107 delete arg4;
11108 }
11109 {
11110 if (temp11)
11111 delete arg11;
11112 }
11113 return NULL;
11114 }
11115
11116
11117 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11118 PyObject *resultobj;
11119 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11120 int result;
11121 PyObject * obj0 = 0 ;
11122 char *kwnames[] = {
11123 (char *) "self", NULL
11124 };
11125
11126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11129 {
11130 PyThreadState* __tstate = wxPyBeginAllowThreads();
11131 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11132
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 resultobj = SWIG_FromInt((int)result);
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj;
11145 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11146 int arg2 ;
11147 PyObject * obj0 = 0 ;
11148 PyObject * obj1 = 0 ;
11149 char *kwnames[] = {
11150 (char *) "self",(char *) "value", NULL
11151 };
11152
11153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11156 arg2 = (int) SWIG_AsInt(obj1);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 (arg1)->SetValue(arg2);
11161
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 Py_INCREF(Py_None); resultobj = Py_None;
11166 return resultobj;
11167 fail:
11168 return NULL;
11169 }
11170
11171
11172 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
11173 PyObject *resultobj;
11174 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11175 wxString *arg2 = 0 ;
11176 bool temp2 = False ;
11177 PyObject * obj0 = 0 ;
11178 PyObject * obj1 = 0 ;
11179 char *kwnames[] = {
11180 (char *) "self",(char *) "text", NULL
11181 };
11182
11183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11186 {
11187 arg2 = wxString_in_helper(obj1);
11188 if (arg2 == NULL) SWIG_fail;
11189 temp2 = True;
11190 }
11191 {
11192 PyThreadState* __tstate = wxPyBeginAllowThreads();
11193 (arg1)->SetValue((wxString const &)*arg2);
11194
11195 wxPyEndAllowThreads(__tstate);
11196 if (PyErr_Occurred()) SWIG_fail;
11197 }
11198 Py_INCREF(Py_None); resultobj = Py_None;
11199 {
11200 if (temp2)
11201 delete arg2;
11202 }
11203 return resultobj;
11204 fail:
11205 {
11206 if (temp2)
11207 delete arg2;
11208 }
11209 return NULL;
11210 }
11211
11212
11213 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
11214 PyObject *resultobj;
11215 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11216 int arg2 ;
11217 int arg3 ;
11218 PyObject * obj0 = 0 ;
11219 PyObject * obj1 = 0 ;
11220 PyObject * obj2 = 0 ;
11221 char *kwnames[] = {
11222 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11223 };
11224
11225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11228 arg2 = (int) SWIG_AsInt(obj1);
11229 if (PyErr_Occurred()) SWIG_fail;
11230 arg3 = (int) SWIG_AsInt(obj2);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 {
11233 PyThreadState* __tstate = wxPyBeginAllowThreads();
11234 (arg1)->SetRange(arg2,arg3);
11235
11236 wxPyEndAllowThreads(__tstate);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 }
11239 Py_INCREF(Py_None); resultobj = Py_None;
11240 return resultobj;
11241 fail:
11242 return NULL;
11243 }
11244
11245
11246 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
11247 PyObject *resultobj;
11248 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11249 int result;
11250 PyObject * obj0 = 0 ;
11251 char *kwnames[] = {
11252 (char *) "self", NULL
11253 };
11254
11255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11258 {
11259 PyThreadState* __tstate = wxPyBeginAllowThreads();
11260 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11261
11262 wxPyEndAllowThreads(__tstate);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 }
11265 resultobj = SWIG_FromInt((int)result);
11266 return resultobj;
11267 fail:
11268 return NULL;
11269 }
11270
11271
11272 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
11273 PyObject *resultobj;
11274 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11275 int result;
11276 PyObject * obj0 = 0 ;
11277 char *kwnames[] = {
11278 (char *) "self", NULL
11279 };
11280
11281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11284 {
11285 PyThreadState* __tstate = wxPyBeginAllowThreads();
11286 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11287
11288 wxPyEndAllowThreads(__tstate);
11289 if (PyErr_Occurred()) SWIG_fail;
11290 }
11291 resultobj = SWIG_FromInt((int)result);
11292 return resultobj;
11293 fail:
11294 return NULL;
11295 }
11296
11297
11298 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11299 PyObject *resultobj;
11300 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11301 long arg2 ;
11302 long arg3 ;
11303 PyObject * obj0 = 0 ;
11304 PyObject * obj1 = 0 ;
11305 PyObject * obj2 = 0 ;
11306 char *kwnames[] = {
11307 (char *) "self",(char *) "from",(char *) "to", NULL
11308 };
11309
11310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11313 arg2 = (long) SWIG_AsLong(obj1);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 arg3 = (long) SWIG_AsLong(obj2);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 {
11318 PyThreadState* __tstate = wxPyBeginAllowThreads();
11319 (arg1)->SetSelection(arg2,arg3);
11320
11321 wxPyEndAllowThreads(__tstate);
11322 if (PyErr_Occurred()) SWIG_fail;
11323 }
11324 Py_INCREF(Py_None); resultobj = Py_None;
11325 return resultobj;
11326 fail:
11327 return NULL;
11328 }
11329
11330
11331 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
11332 PyObject *resultobj;
11333 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11334 wxVisualAttributes result;
11335 PyObject * obj0 = 0 ;
11336 char *kwnames[] = {
11337 (char *) "variant", NULL
11338 };
11339
11340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11341 if (obj0) {
11342 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
11343 if (PyErr_Occurred()) SWIG_fail;
11344 }
11345 {
11346 PyThreadState* __tstate = wxPyBeginAllowThreads();
11347 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11348
11349 wxPyEndAllowThreads(__tstate);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 }
11352 {
11353 wxVisualAttributes * resultptr;
11354 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11355 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11356 }
11357 return resultobj;
11358 fail:
11359 return NULL;
11360 }
11361
11362
11363 static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
11364 PyObject *obj;
11365 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11366 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11367 Py_INCREF(obj);
11368 return Py_BuildValue((char *)"");
11369 }
11370 static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11371 PyObject *resultobj;
11372 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11373 int arg2 = (int) 0 ;
11374 wxSpinEvent *result;
11375 PyObject * obj0 = 0 ;
11376 PyObject * obj1 = 0 ;
11377 char *kwnames[] = {
11378 (char *) "commandType",(char *) "winid", NULL
11379 };
11380
11381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11382 if (obj0) {
11383 arg1 = (wxEventType) SWIG_AsInt(obj0);
11384 if (PyErr_Occurred()) SWIG_fail;
11385 }
11386 if (obj1) {
11387 arg2 = (int) SWIG_AsInt(obj1);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11393
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11398 return resultobj;
11399 fail:
11400 return NULL;
11401 }
11402
11403
11404 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11405 PyObject *resultobj;
11406 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11407 int result;
11408 PyObject * obj0 = 0 ;
11409 char *kwnames[] = {
11410 (char *) "self", NULL
11411 };
11412
11413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11416 {
11417 PyThreadState* __tstate = wxPyBeginAllowThreads();
11418 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11419
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 resultobj = SWIG_FromInt((int)result);
11424 return resultobj;
11425 fail:
11426 return NULL;
11427 }
11428
11429
11430 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11431 PyObject *resultobj;
11432 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11433 int arg2 ;
11434 PyObject * obj0 = 0 ;
11435 PyObject * obj1 = 0 ;
11436 char *kwnames[] = {
11437 (char *) "self",(char *) "pos", NULL
11438 };
11439
11440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11443 arg2 = (int) SWIG_AsInt(obj1);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 (arg1)->SetPosition(arg2);
11448
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 Py_INCREF(Py_None); resultobj = Py_None;
11453 return resultobj;
11454 fail:
11455 return NULL;
11456 }
11457
11458
11459 static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
11460 PyObject *obj;
11461 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11462 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11463 Py_INCREF(obj);
11464 return Py_BuildValue((char *)"");
11465 }
11466 static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
11467 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11468 return 1;
11469 }
11470
11471
11472 static PyObject *_wrap_RadioBoxNameStr_get() {
11473 PyObject *pyobj;
11474
11475 {
11476 #if wxUSE_UNICODE
11477 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11478 #else
11479 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11480 #endif
11481 }
11482 return pyobj;
11483 }
11484
11485
11486 static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
11487 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11488 return 1;
11489 }
11490
11491
11492 static PyObject *_wrap_RadioButtonNameStr_get() {
11493 PyObject *pyobj;
11494
11495 {
11496 #if wxUSE_UNICODE
11497 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11498 #else
11499 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11500 #endif
11501 }
11502 return pyobj;
11503 }
11504
11505
11506 static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11507 PyObject *resultobj;
11508 wxWindow *arg1 = (wxWindow *) 0 ;
11509 int arg2 ;
11510 wxString *arg3 = 0 ;
11511 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11512 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11513 wxSize const &arg5_defvalue = wxDefaultSize ;
11514 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11515 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11516 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11517 int arg7 = (int) 0 ;
11518 long arg8 = (long) wxRA_HORIZONTAL ;
11519 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11520 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11521 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11522 wxString *arg10 = (wxString *) &arg10_defvalue ;
11523 wxRadioBox *result;
11524 bool temp3 = False ;
11525 wxPoint temp4 ;
11526 wxSize temp5 ;
11527 bool temp6 = False ;
11528 bool temp10 = False ;
11529 PyObject * obj0 = 0 ;
11530 PyObject * obj1 = 0 ;
11531 PyObject * obj2 = 0 ;
11532 PyObject * obj3 = 0 ;
11533 PyObject * obj4 = 0 ;
11534 PyObject * obj5 = 0 ;
11535 PyObject * obj6 = 0 ;
11536 PyObject * obj7 = 0 ;
11537 PyObject * obj8 = 0 ;
11538 PyObject * obj9 = 0 ;
11539 char *kwnames[] = {
11540 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11541 };
11542
11543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11546 arg2 = (int) SWIG_AsInt(obj1);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 {
11549 arg3 = wxString_in_helper(obj2);
11550 if (arg3 == NULL) SWIG_fail;
11551 temp3 = True;
11552 }
11553 if (obj3) {
11554 {
11555 arg4 = &temp4;
11556 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11557 }
11558 }
11559 if (obj4) {
11560 {
11561 arg5 = &temp5;
11562 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11563 }
11564 }
11565 if (obj5) {
11566 {
11567 if (! PySequence_Check(obj5)) {
11568 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11569 SWIG_fail;
11570 }
11571 arg6 = new wxArrayString;
11572 temp6 = True;
11573 int i, len=PySequence_Length(obj5);
11574 for (i=0; i<len; i++) {
11575 PyObject* item = PySequence_GetItem(obj5, i);
11576 #if wxUSE_UNICODE
11577 PyObject* str = PyObject_Unicode(item);
11578 #else
11579 PyObject* str = PyObject_Str(item);
11580 #endif
11581 if (PyErr_Occurred()) SWIG_fail;
11582 arg6->Add(Py2wxString(str));
11583 Py_DECREF(item);
11584 Py_DECREF(str);
11585 }
11586 }
11587 }
11588 if (obj6) {
11589 arg7 = (int) SWIG_AsInt(obj6);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 if (obj7) {
11593 arg8 = (long) SWIG_AsLong(obj7);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 if (obj8) {
11597 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11598 SWIG_POINTER_EXCEPTION | 0)) == -1)
11599 SWIG_fail;
11600 if (arg9 == NULL) {
11601 PyErr_SetString(PyExc_TypeError,"null reference");
11602 SWIG_fail;
11603 }
11604 }
11605 if (obj9) {
11606 {
11607 arg10 = wxString_in_helper(obj9);
11608 if (arg10 == NULL) SWIG_fail;
11609 temp10 = True;
11610 }
11611 }
11612 {
11613 PyThreadState* __tstate = wxPyBeginAllowThreads();
11614 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);
11615
11616 wxPyEndAllowThreads(__tstate);
11617 if (PyErr_Occurred()) SWIG_fail;
11618 }
11619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11620 {
11621 if (temp3)
11622 delete arg3;
11623 }
11624 {
11625 if (temp6) delete arg6;
11626 }
11627 {
11628 if (temp10)
11629 delete arg10;
11630 }
11631 return resultobj;
11632 fail:
11633 {
11634 if (temp3)
11635 delete arg3;
11636 }
11637 {
11638 if (temp6) delete arg6;
11639 }
11640 {
11641 if (temp10)
11642 delete arg10;
11643 }
11644 return NULL;
11645 }
11646
11647
11648 static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11649 PyObject *resultobj;
11650 wxRadioBox *result;
11651 char *kwnames[] = {
11652 NULL
11653 };
11654
11655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11656 {
11657 PyThreadState* __tstate = wxPyBeginAllowThreads();
11658 result = (wxRadioBox *)new wxRadioBox();
11659
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11664 return resultobj;
11665 fail:
11666 return NULL;
11667 }
11668
11669
11670 static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11671 PyObject *resultobj;
11672 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11673 wxWindow *arg2 = (wxWindow *) 0 ;
11674 int arg3 ;
11675 wxString *arg4 = 0 ;
11676 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11677 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11678 wxSize const &arg6_defvalue = wxDefaultSize ;
11679 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11680 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11681 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11682 int arg8 = (int) 0 ;
11683 long arg9 = (long) wxRA_HORIZONTAL ;
11684 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11685 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11686 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11687 wxString *arg11 = (wxString *) &arg11_defvalue ;
11688 bool result;
11689 bool temp4 = False ;
11690 wxPoint temp5 ;
11691 wxSize temp6 ;
11692 bool temp7 = False ;
11693 bool temp11 = False ;
11694 PyObject * obj0 = 0 ;
11695 PyObject * obj1 = 0 ;
11696 PyObject * obj2 = 0 ;
11697 PyObject * obj3 = 0 ;
11698 PyObject * obj4 = 0 ;
11699 PyObject * obj5 = 0 ;
11700 PyObject * obj6 = 0 ;
11701 PyObject * obj7 = 0 ;
11702 PyObject * obj8 = 0 ;
11703 PyObject * obj9 = 0 ;
11704 PyObject * obj10 = 0 ;
11705 char *kwnames[] = {
11706 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11707 };
11708
11709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11712 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11714 arg3 = (int) SWIG_AsInt(obj2);
11715 if (PyErr_Occurred()) SWIG_fail;
11716 {
11717 arg4 = wxString_in_helper(obj3);
11718 if (arg4 == NULL) SWIG_fail;
11719 temp4 = True;
11720 }
11721 if (obj4) {
11722 {
11723 arg5 = &temp5;
11724 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11725 }
11726 }
11727 if (obj5) {
11728 {
11729 arg6 = &temp6;
11730 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11731 }
11732 }
11733 if (obj6) {
11734 {
11735 if (! PySequence_Check(obj6)) {
11736 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11737 SWIG_fail;
11738 }
11739 arg7 = new wxArrayString;
11740 temp7 = True;
11741 int i, len=PySequence_Length(obj6);
11742 for (i=0; i<len; i++) {
11743 PyObject* item = PySequence_GetItem(obj6, i);
11744 #if wxUSE_UNICODE
11745 PyObject* str = PyObject_Unicode(item);
11746 #else
11747 PyObject* str = PyObject_Str(item);
11748 #endif
11749 if (PyErr_Occurred()) SWIG_fail;
11750 arg7->Add(Py2wxString(str));
11751 Py_DECREF(item);
11752 Py_DECREF(str);
11753 }
11754 }
11755 }
11756 if (obj7) {
11757 arg8 = (int) SWIG_AsInt(obj7);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 if (obj8) {
11761 arg9 = (long) SWIG_AsLong(obj8);
11762 if (PyErr_Occurred()) SWIG_fail;
11763 }
11764 if (obj9) {
11765 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11766 SWIG_POINTER_EXCEPTION | 0)) == -1)
11767 SWIG_fail;
11768 if (arg10 == NULL) {
11769 PyErr_SetString(PyExc_TypeError,"null reference");
11770 SWIG_fail;
11771 }
11772 }
11773 if (obj10) {
11774 {
11775 arg11 = wxString_in_helper(obj10);
11776 if (arg11 == NULL) SWIG_fail;
11777 temp11 = True;
11778 }
11779 }
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 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);
11783
11784 wxPyEndAllowThreads(__tstate);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 {
11788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11789 }
11790 {
11791 if (temp4)
11792 delete arg4;
11793 }
11794 {
11795 if (temp7) delete arg7;
11796 }
11797 {
11798 if (temp11)
11799 delete arg11;
11800 }
11801 return resultobj;
11802 fail:
11803 {
11804 if (temp4)
11805 delete arg4;
11806 }
11807 {
11808 if (temp7) delete arg7;
11809 }
11810 {
11811 if (temp11)
11812 delete arg11;
11813 }
11814 return NULL;
11815 }
11816
11817
11818 static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11819 PyObject *resultobj;
11820 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11821 int arg2 ;
11822 PyObject * obj0 = 0 ;
11823 PyObject * obj1 = 0 ;
11824 char *kwnames[] = {
11825 (char *) "self",(char *) "n", NULL
11826 };
11827
11828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11831 arg2 = (int) SWIG_AsInt(obj1);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 {
11834 PyThreadState* __tstate = wxPyBeginAllowThreads();
11835 (arg1)->SetSelection(arg2);
11836
11837 wxPyEndAllowThreads(__tstate);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 }
11840 Py_INCREF(Py_None); resultobj = Py_None;
11841 return resultobj;
11842 fail:
11843 return NULL;
11844 }
11845
11846
11847 static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11848 PyObject *resultobj;
11849 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11850 int result;
11851 PyObject * obj0 = 0 ;
11852 char *kwnames[] = {
11853 (char *) "self", NULL
11854 };
11855
11856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11859 {
11860 PyThreadState* __tstate = wxPyBeginAllowThreads();
11861 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11862
11863 wxPyEndAllowThreads(__tstate);
11864 if (PyErr_Occurred()) SWIG_fail;
11865 }
11866 resultobj = SWIG_FromInt((int)result);
11867 return resultobj;
11868 fail:
11869 return NULL;
11870 }
11871
11872
11873 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11874 PyObject *resultobj;
11875 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11876 wxString result;
11877 PyObject * obj0 = 0 ;
11878 char *kwnames[] = {
11879 (char *) "self", NULL
11880 };
11881
11882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11885 {
11886 PyThreadState* __tstate = wxPyBeginAllowThreads();
11887 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11888
11889 wxPyEndAllowThreads(__tstate);
11890 if (PyErr_Occurred()) SWIG_fail;
11891 }
11892 {
11893 #if wxUSE_UNICODE
11894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11895 #else
11896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11897 #endif
11898 }
11899 return resultobj;
11900 fail:
11901 return NULL;
11902 }
11903
11904
11905 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11906 PyObject *resultobj;
11907 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11908 wxString *arg2 = 0 ;
11909 bool result;
11910 bool temp2 = False ;
11911 PyObject * obj0 = 0 ;
11912 PyObject * obj1 = 0 ;
11913 char *kwnames[] = {
11914 (char *) "self",(char *) "s", NULL
11915 };
11916
11917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
11918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11920 {
11921 arg2 = wxString_in_helper(obj1);
11922 if (arg2 == NULL) SWIG_fail;
11923 temp2 = True;
11924 }
11925 {
11926 PyThreadState* __tstate = wxPyBeginAllowThreads();
11927 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
11928
11929 wxPyEndAllowThreads(__tstate);
11930 if (PyErr_Occurred()) SWIG_fail;
11931 }
11932 {
11933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11934 }
11935 {
11936 if (temp2)
11937 delete arg2;
11938 }
11939 return resultobj;
11940 fail:
11941 {
11942 if (temp2)
11943 delete arg2;
11944 }
11945 return NULL;
11946 }
11947
11948
11949 static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11950 PyObject *resultobj;
11951 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11952 int result;
11953 PyObject * obj0 = 0 ;
11954 char *kwnames[] = {
11955 (char *) "self", NULL
11956 };
11957
11958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
11959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11961 {
11962 PyThreadState* __tstate = wxPyBeginAllowThreads();
11963 result = (int)((wxRadioBox const *)arg1)->GetCount();
11964
11965 wxPyEndAllowThreads(__tstate);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 resultobj = SWIG_FromInt((int)result);
11969 return resultobj;
11970 fail:
11971 return NULL;
11972 }
11973
11974
11975 static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
11976 PyObject *resultobj;
11977 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11978 wxString *arg2 = 0 ;
11979 int result;
11980 bool temp2 = False ;
11981 PyObject * obj0 = 0 ;
11982 PyObject * obj1 = 0 ;
11983 char *kwnames[] = {
11984 (char *) "self",(char *) "s", NULL
11985 };
11986
11987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
11988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11990 {
11991 arg2 = wxString_in_helper(obj1);
11992 if (arg2 == NULL) SWIG_fail;
11993 temp2 = True;
11994 }
11995 {
11996 PyThreadState* __tstate = wxPyBeginAllowThreads();
11997 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
11998
11999 wxPyEndAllowThreads(__tstate);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 resultobj = SWIG_FromInt((int)result);
12003 {
12004 if (temp2)
12005 delete arg2;
12006 }
12007 return resultobj;
12008 fail:
12009 {
12010 if (temp2)
12011 delete arg2;
12012 }
12013 return NULL;
12014 }
12015
12016
12017 static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12018 PyObject *resultobj;
12019 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12020 int arg2 ;
12021 wxString result;
12022 PyObject * obj0 = 0 ;
12023 PyObject * obj1 = 0 ;
12024 char *kwnames[] = {
12025 (char *) "self",(char *) "n", NULL
12026 };
12027
12028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12031 arg2 = (int) SWIG_AsInt(obj1);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 {
12034 PyThreadState* __tstate = wxPyBeginAllowThreads();
12035 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12036
12037 wxPyEndAllowThreads(__tstate);
12038 if (PyErr_Occurred()) SWIG_fail;
12039 }
12040 {
12041 #if wxUSE_UNICODE
12042 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12043 #else
12044 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12045 #endif
12046 }
12047 return resultobj;
12048 fail:
12049 return NULL;
12050 }
12051
12052
12053 static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12054 PyObject *resultobj;
12055 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12056 int arg2 ;
12057 wxString *arg3 = 0 ;
12058 bool temp3 = False ;
12059 PyObject * obj0 = 0 ;
12060 PyObject * obj1 = 0 ;
12061 PyObject * obj2 = 0 ;
12062 char *kwnames[] = {
12063 (char *) "self",(char *) "n",(char *) "label", NULL
12064 };
12065
12066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12069 arg2 = (int) SWIG_AsInt(obj1);
12070 if (PyErr_Occurred()) SWIG_fail;
12071 {
12072 arg3 = wxString_in_helper(obj2);
12073 if (arg3 == NULL) SWIG_fail;
12074 temp3 = True;
12075 }
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 (arg1)->SetString(arg2,(wxString const &)*arg3);
12079
12080 wxPyEndAllowThreads(__tstate);
12081 if (PyErr_Occurred()) SWIG_fail;
12082 }
12083 Py_INCREF(Py_None); resultobj = Py_None;
12084 {
12085 if (temp3)
12086 delete arg3;
12087 }
12088 return resultobj;
12089 fail:
12090 {
12091 if (temp3)
12092 delete arg3;
12093 }
12094 return NULL;
12095 }
12096
12097
12098 static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12099 PyObject *resultobj;
12100 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12101 int arg2 ;
12102 bool arg3 = (bool) True ;
12103 PyObject * obj0 = 0 ;
12104 PyObject * obj1 = 0 ;
12105 PyObject * obj2 = 0 ;
12106 char *kwnames[] = {
12107 (char *) "self",(char *) "n",(char *) "enable", NULL
12108 };
12109
12110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12113 arg2 = (int) SWIG_AsInt(obj1);
12114 if (PyErr_Occurred()) SWIG_fail;
12115 if (obj2) {
12116 arg3 = (bool) SWIG_AsBool(obj2);
12117 if (PyErr_Occurred()) SWIG_fail;
12118 }
12119 {
12120 PyThreadState* __tstate = wxPyBeginAllowThreads();
12121 (arg1)->Enable(arg2,arg3);
12122
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 Py_INCREF(Py_None); resultobj = Py_None;
12127 return resultobj;
12128 fail:
12129 return NULL;
12130 }
12131
12132
12133 static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12134 PyObject *resultobj;
12135 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12136 int arg2 ;
12137 bool arg3 = (bool) True ;
12138 PyObject * obj0 = 0 ;
12139 PyObject * obj1 = 0 ;
12140 PyObject * obj2 = 0 ;
12141 char *kwnames[] = {
12142 (char *) "self",(char *) "n",(char *) "show", NULL
12143 };
12144
12145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12148 arg2 = (int) SWIG_AsInt(obj1);
12149 if (PyErr_Occurred()) SWIG_fail;
12150 if (obj2) {
12151 arg3 = (bool) SWIG_AsBool(obj2);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 {
12155 PyThreadState* __tstate = wxPyBeginAllowThreads();
12156 (arg1)->Show(arg2,arg3);
12157
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 Py_INCREF(Py_None); resultobj = Py_None;
12162 return resultobj;
12163 fail:
12164 return NULL;
12165 }
12166
12167
12168 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12169 PyObject *resultobj;
12170 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12171 int result;
12172 PyObject * obj0 = 0 ;
12173 char *kwnames[] = {
12174 (char *) "self", NULL
12175 };
12176
12177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12180 {
12181 PyThreadState* __tstate = wxPyBeginAllowThreads();
12182 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12183
12184 wxPyEndAllowThreads(__tstate);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 resultobj = SWIG_FromInt((int)result);
12188 return resultobj;
12189 fail:
12190 return NULL;
12191 }
12192
12193
12194 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12195 PyObject *resultobj;
12196 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12197 int result;
12198 PyObject * obj0 = 0 ;
12199 char *kwnames[] = {
12200 (char *) "self", NULL
12201 };
12202
12203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12206 {
12207 PyThreadState* __tstate = wxPyBeginAllowThreads();
12208 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12209
12210 wxPyEndAllowThreads(__tstate);
12211 if (PyErr_Occurred()) SWIG_fail;
12212 }
12213 resultobj = SWIG_FromInt((int)result);
12214 return resultobj;
12215 fail:
12216 return NULL;
12217 }
12218
12219
12220 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12221 PyObject *resultobj;
12222 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12223 int arg2 ;
12224 int arg3 ;
12225 long arg4 ;
12226 int result;
12227 PyObject * obj0 = 0 ;
12228 PyObject * obj1 = 0 ;
12229 PyObject * obj2 = 0 ;
12230 PyObject * obj3 = 0 ;
12231 char *kwnames[] = {
12232 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12233 };
12234
12235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12238 arg2 = (int) SWIG_AsInt(obj1);
12239 if (PyErr_Occurred()) SWIG_fail;
12240 arg3 = (wxDirection) SWIG_AsInt(obj2);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 arg4 = (long) SWIG_AsLong(obj3);
12243 if (PyErr_Occurred()) SWIG_fail;
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12247
12248 wxPyEndAllowThreads(__tstate);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 resultobj = SWIG_FromInt((int)result);
12252 return resultobj;
12253 fail:
12254 return NULL;
12255 }
12256
12257
12258 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj;
12260 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12261 wxVisualAttributes result;
12262 PyObject * obj0 = 0 ;
12263 char *kwnames[] = {
12264 (char *) "variant", NULL
12265 };
12266
12267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12268 if (obj0) {
12269 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12270 if (PyErr_Occurred()) SWIG_fail;
12271 }
12272 {
12273 PyThreadState* __tstate = wxPyBeginAllowThreads();
12274 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12275
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 {
12280 wxVisualAttributes * resultptr;
12281 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12282 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12283 }
12284 return resultobj;
12285 fail:
12286 return NULL;
12287 }
12288
12289
12290 static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
12291 PyObject *obj;
12292 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12293 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12294 Py_INCREF(obj);
12295 return Py_BuildValue((char *)"");
12296 }
12297 static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12298 PyObject *resultobj;
12299 wxWindow *arg1 = (wxWindow *) 0 ;
12300 int arg2 ;
12301 wxString *arg3 = 0 ;
12302 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12303 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12304 wxSize const &arg5_defvalue = wxDefaultSize ;
12305 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12306 long arg6 = (long) 0 ;
12307 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12308 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12309 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12310 wxString *arg8 = (wxString *) &arg8_defvalue ;
12311 wxRadioButton *result;
12312 bool temp3 = False ;
12313 wxPoint temp4 ;
12314 wxSize temp5 ;
12315 bool temp8 = False ;
12316 PyObject * obj0 = 0 ;
12317 PyObject * obj1 = 0 ;
12318 PyObject * obj2 = 0 ;
12319 PyObject * obj3 = 0 ;
12320 PyObject * obj4 = 0 ;
12321 PyObject * obj5 = 0 ;
12322 PyObject * obj6 = 0 ;
12323 PyObject * obj7 = 0 ;
12324 char *kwnames[] = {
12325 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12326 };
12327
12328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12331 arg2 = (int) SWIG_AsInt(obj1);
12332 if (PyErr_Occurred()) SWIG_fail;
12333 {
12334 arg3 = wxString_in_helper(obj2);
12335 if (arg3 == NULL) SWIG_fail;
12336 temp3 = True;
12337 }
12338 if (obj3) {
12339 {
12340 arg4 = &temp4;
12341 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12342 }
12343 }
12344 if (obj4) {
12345 {
12346 arg5 = &temp5;
12347 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12348 }
12349 }
12350 if (obj5) {
12351 arg6 = (long) SWIG_AsLong(obj5);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 if (obj6) {
12355 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12356 SWIG_POINTER_EXCEPTION | 0)) == -1)
12357 SWIG_fail;
12358 if (arg7 == NULL) {
12359 PyErr_SetString(PyExc_TypeError,"null reference");
12360 SWIG_fail;
12361 }
12362 }
12363 if (obj7) {
12364 {
12365 arg8 = wxString_in_helper(obj7);
12366 if (arg8 == NULL) SWIG_fail;
12367 temp8 = True;
12368 }
12369 }
12370 {
12371 PyThreadState* __tstate = wxPyBeginAllowThreads();
12372 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12373
12374 wxPyEndAllowThreads(__tstate);
12375 if (PyErr_Occurred()) SWIG_fail;
12376 }
12377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12378 {
12379 if (temp3)
12380 delete arg3;
12381 }
12382 {
12383 if (temp8)
12384 delete arg8;
12385 }
12386 return resultobj;
12387 fail:
12388 {
12389 if (temp3)
12390 delete arg3;
12391 }
12392 {
12393 if (temp8)
12394 delete arg8;
12395 }
12396 return NULL;
12397 }
12398
12399
12400 static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12401 PyObject *resultobj;
12402 wxRadioButton *result;
12403 char *kwnames[] = {
12404 NULL
12405 };
12406
12407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12408 {
12409 PyThreadState* __tstate = wxPyBeginAllowThreads();
12410 result = (wxRadioButton *)new wxRadioButton();
12411
12412 wxPyEndAllowThreads(__tstate);
12413 if (PyErr_Occurred()) SWIG_fail;
12414 }
12415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12416 return resultobj;
12417 fail:
12418 return NULL;
12419 }
12420
12421
12422 static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12423 PyObject *resultobj;
12424 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12425 wxWindow *arg2 = (wxWindow *) 0 ;
12426 int arg3 ;
12427 wxString *arg4 = 0 ;
12428 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12429 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12430 wxSize const &arg6_defvalue = wxDefaultSize ;
12431 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12432 long arg7 = (long) 0 ;
12433 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12434 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12435 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12436 wxString *arg9 = (wxString *) &arg9_defvalue ;
12437 bool result;
12438 bool temp4 = False ;
12439 wxPoint temp5 ;
12440 wxSize temp6 ;
12441 bool temp9 = False ;
12442 PyObject * obj0 = 0 ;
12443 PyObject * obj1 = 0 ;
12444 PyObject * obj2 = 0 ;
12445 PyObject * obj3 = 0 ;
12446 PyObject * obj4 = 0 ;
12447 PyObject * obj5 = 0 ;
12448 PyObject * obj6 = 0 ;
12449 PyObject * obj7 = 0 ;
12450 PyObject * obj8 = 0 ;
12451 char *kwnames[] = {
12452 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12453 };
12454
12455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12458 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12460 arg3 = (int) SWIG_AsInt(obj2);
12461 if (PyErr_Occurred()) SWIG_fail;
12462 {
12463 arg4 = wxString_in_helper(obj3);
12464 if (arg4 == NULL) SWIG_fail;
12465 temp4 = True;
12466 }
12467 if (obj4) {
12468 {
12469 arg5 = &temp5;
12470 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12471 }
12472 }
12473 if (obj5) {
12474 {
12475 arg6 = &temp6;
12476 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12477 }
12478 }
12479 if (obj6) {
12480 arg7 = (long) SWIG_AsLong(obj6);
12481 if (PyErr_Occurred()) SWIG_fail;
12482 }
12483 if (obj7) {
12484 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12485 SWIG_POINTER_EXCEPTION | 0)) == -1)
12486 SWIG_fail;
12487 if (arg8 == NULL) {
12488 PyErr_SetString(PyExc_TypeError,"null reference");
12489 SWIG_fail;
12490 }
12491 }
12492 if (obj8) {
12493 {
12494 arg9 = wxString_in_helper(obj8);
12495 if (arg9 == NULL) SWIG_fail;
12496 temp9 = True;
12497 }
12498 }
12499 {
12500 PyThreadState* __tstate = wxPyBeginAllowThreads();
12501 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12502
12503 wxPyEndAllowThreads(__tstate);
12504 if (PyErr_Occurred()) SWIG_fail;
12505 }
12506 {
12507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12508 }
12509 {
12510 if (temp4)
12511 delete arg4;
12512 }
12513 {
12514 if (temp9)
12515 delete arg9;
12516 }
12517 return resultobj;
12518 fail:
12519 {
12520 if (temp4)
12521 delete arg4;
12522 }
12523 {
12524 if (temp9)
12525 delete arg9;
12526 }
12527 return NULL;
12528 }
12529
12530
12531 static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12532 PyObject *resultobj;
12533 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12534 bool result;
12535 PyObject * obj0 = 0 ;
12536 char *kwnames[] = {
12537 (char *) "self", NULL
12538 };
12539
12540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12543 {
12544 PyThreadState* __tstate = wxPyBeginAllowThreads();
12545 result = (bool)(arg1)->GetValue();
12546
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 {
12551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12552 }
12553 return resultobj;
12554 fail:
12555 return NULL;
12556 }
12557
12558
12559 static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12560 PyObject *resultobj;
12561 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12562 bool arg2 ;
12563 PyObject * obj0 = 0 ;
12564 PyObject * obj1 = 0 ;
12565 char *kwnames[] = {
12566 (char *) "self",(char *) "value", NULL
12567 };
12568
12569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12572 arg2 = (bool) SWIG_AsBool(obj1);
12573 if (PyErr_Occurred()) SWIG_fail;
12574 {
12575 PyThreadState* __tstate = wxPyBeginAllowThreads();
12576 (arg1)->SetValue(arg2);
12577
12578 wxPyEndAllowThreads(__tstate);
12579 if (PyErr_Occurred()) SWIG_fail;
12580 }
12581 Py_INCREF(Py_None); resultobj = Py_None;
12582 return resultobj;
12583 fail:
12584 return NULL;
12585 }
12586
12587
12588 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12589 PyObject *resultobj;
12590 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12591 wxVisualAttributes result;
12592 PyObject * obj0 = 0 ;
12593 char *kwnames[] = {
12594 (char *) "variant", NULL
12595 };
12596
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12598 if (obj0) {
12599 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12600 if (PyErr_Occurred()) SWIG_fail;
12601 }
12602 {
12603 PyThreadState* __tstate = wxPyBeginAllowThreads();
12604 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12605
12606 wxPyEndAllowThreads(__tstate);
12607 if (PyErr_Occurred()) SWIG_fail;
12608 }
12609 {
12610 wxVisualAttributes * resultptr;
12611 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12612 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12613 }
12614 return resultobj;
12615 fail:
12616 return NULL;
12617 }
12618
12619
12620 static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
12621 PyObject *obj;
12622 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12623 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12624 Py_INCREF(obj);
12625 return Py_BuildValue((char *)"");
12626 }
12627 static int _wrap_SliderNameStr_set(PyObject *_val) {
12628 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12629 return 1;
12630 }
12631
12632
12633 static PyObject *_wrap_SliderNameStr_get() {
12634 PyObject *pyobj;
12635
12636 {
12637 #if wxUSE_UNICODE
12638 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12639 #else
12640 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12641 #endif
12642 }
12643 return pyobj;
12644 }
12645
12646
12647 static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj;
12649 wxWindow *arg1 = (wxWindow *) 0 ;
12650 int arg2 ;
12651 int arg3 ;
12652 int arg4 ;
12653 int arg5 ;
12654 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12655 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12656 wxSize const &arg7_defvalue = wxDefaultSize ;
12657 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12658 long arg8 = (long) wxSL_HORIZONTAL ;
12659 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12660 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12661 wxString const &arg10_defvalue = wxPySliderNameStr ;
12662 wxString *arg10 = (wxString *) &arg10_defvalue ;
12663 wxSlider *result;
12664 wxPoint temp6 ;
12665 wxSize temp7 ;
12666 bool temp10 = False ;
12667 PyObject * obj0 = 0 ;
12668 PyObject * obj1 = 0 ;
12669 PyObject * obj2 = 0 ;
12670 PyObject * obj3 = 0 ;
12671 PyObject * obj4 = 0 ;
12672 PyObject * obj5 = 0 ;
12673 PyObject * obj6 = 0 ;
12674 PyObject * obj7 = 0 ;
12675 PyObject * obj8 = 0 ;
12676 PyObject * obj9 = 0 ;
12677 char *kwnames[] = {
12678 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12679 };
12680
12681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12684 arg2 = (int) SWIG_AsInt(obj1);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 arg3 = (int) SWIG_AsInt(obj2);
12687 if (PyErr_Occurred()) SWIG_fail;
12688 arg4 = (int) SWIG_AsInt(obj3);
12689 if (PyErr_Occurred()) SWIG_fail;
12690 arg5 = (int) SWIG_AsInt(obj4);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 if (obj5) {
12693 {
12694 arg6 = &temp6;
12695 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12696 }
12697 }
12698 if (obj6) {
12699 {
12700 arg7 = &temp7;
12701 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12702 }
12703 }
12704 if (obj7) {
12705 arg8 = (long) SWIG_AsLong(obj7);
12706 if (PyErr_Occurred()) SWIG_fail;
12707 }
12708 if (obj8) {
12709 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12710 SWIG_POINTER_EXCEPTION | 0)) == -1)
12711 SWIG_fail;
12712 if (arg9 == NULL) {
12713 PyErr_SetString(PyExc_TypeError,"null reference");
12714 SWIG_fail;
12715 }
12716 }
12717 if (obj9) {
12718 {
12719 arg10 = wxString_in_helper(obj9);
12720 if (arg10 == NULL) SWIG_fail;
12721 temp10 = True;
12722 }
12723 }
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12727
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12732 {
12733 if (temp10)
12734 delete arg10;
12735 }
12736 return resultobj;
12737 fail:
12738 {
12739 if (temp10)
12740 delete arg10;
12741 }
12742 return NULL;
12743 }
12744
12745
12746 static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
12747 PyObject *resultobj;
12748 wxSlider *result;
12749 char *kwnames[] = {
12750 NULL
12751 };
12752
12753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12754 {
12755 PyThreadState* __tstate = wxPyBeginAllowThreads();
12756 result = (wxSlider *)new wxSlider();
12757
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12762 return resultobj;
12763 fail:
12764 return NULL;
12765 }
12766
12767
12768 static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12769 PyObject *resultobj;
12770 wxSlider *arg1 = (wxSlider *) 0 ;
12771 wxWindow *arg2 = (wxWindow *) 0 ;
12772 int arg3 ;
12773 int arg4 ;
12774 int arg5 ;
12775 int arg6 ;
12776 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12777 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12778 wxSize const &arg8_defvalue = wxDefaultSize ;
12779 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12780 long arg9 = (long) wxSL_HORIZONTAL ;
12781 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12782 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12783 wxString const &arg11_defvalue = wxPySliderNameStr ;
12784 wxString *arg11 = (wxString *) &arg11_defvalue ;
12785 bool result;
12786 wxPoint temp7 ;
12787 wxSize temp8 ;
12788 bool temp11 = False ;
12789 PyObject * obj0 = 0 ;
12790 PyObject * obj1 = 0 ;
12791 PyObject * obj2 = 0 ;
12792 PyObject * obj3 = 0 ;
12793 PyObject * obj4 = 0 ;
12794 PyObject * obj5 = 0 ;
12795 PyObject * obj6 = 0 ;
12796 PyObject * obj7 = 0 ;
12797 PyObject * obj8 = 0 ;
12798 PyObject * obj9 = 0 ;
12799 PyObject * obj10 = 0 ;
12800 char *kwnames[] = {
12801 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12802 };
12803
12804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12807 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12809 arg3 = (int) SWIG_AsInt(obj2);
12810 if (PyErr_Occurred()) SWIG_fail;
12811 arg4 = (int) SWIG_AsInt(obj3);
12812 if (PyErr_Occurred()) SWIG_fail;
12813 arg5 = (int) SWIG_AsInt(obj4);
12814 if (PyErr_Occurred()) SWIG_fail;
12815 arg6 = (int) SWIG_AsInt(obj5);
12816 if (PyErr_Occurred()) SWIG_fail;
12817 if (obj6) {
12818 {
12819 arg7 = &temp7;
12820 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12821 }
12822 }
12823 if (obj7) {
12824 {
12825 arg8 = &temp8;
12826 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12827 }
12828 }
12829 if (obj8) {
12830 arg9 = (long) SWIG_AsLong(obj8);
12831 if (PyErr_Occurred()) SWIG_fail;
12832 }
12833 if (obj9) {
12834 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12835 SWIG_POINTER_EXCEPTION | 0)) == -1)
12836 SWIG_fail;
12837 if (arg10 == NULL) {
12838 PyErr_SetString(PyExc_TypeError,"null reference");
12839 SWIG_fail;
12840 }
12841 }
12842 if (obj10) {
12843 {
12844 arg11 = wxString_in_helper(obj10);
12845 if (arg11 == NULL) SWIG_fail;
12846 temp11 = True;
12847 }
12848 }
12849 {
12850 PyThreadState* __tstate = wxPyBeginAllowThreads();
12851 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12852
12853 wxPyEndAllowThreads(__tstate);
12854 if (PyErr_Occurred()) SWIG_fail;
12855 }
12856 {
12857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12858 }
12859 {
12860 if (temp11)
12861 delete arg11;
12862 }
12863 return resultobj;
12864 fail:
12865 {
12866 if (temp11)
12867 delete arg11;
12868 }
12869 return NULL;
12870 }
12871
12872
12873 static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12874 PyObject *resultobj;
12875 wxSlider *arg1 = (wxSlider *) 0 ;
12876 int result;
12877 PyObject * obj0 = 0 ;
12878 char *kwnames[] = {
12879 (char *) "self", NULL
12880 };
12881
12882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12885 {
12886 PyThreadState* __tstate = wxPyBeginAllowThreads();
12887 result = (int)((wxSlider const *)arg1)->GetValue();
12888
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 resultobj = SWIG_FromInt((int)result);
12893 return resultobj;
12894 fail:
12895 return NULL;
12896 }
12897
12898
12899 static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12900 PyObject *resultobj;
12901 wxSlider *arg1 = (wxSlider *) 0 ;
12902 int arg2 ;
12903 PyObject * obj0 = 0 ;
12904 PyObject * obj1 = 0 ;
12905 char *kwnames[] = {
12906 (char *) "self",(char *) "value", NULL
12907 };
12908
12909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12912 arg2 = (int) SWIG_AsInt(obj1);
12913 if (PyErr_Occurred()) SWIG_fail;
12914 {
12915 PyThreadState* __tstate = wxPyBeginAllowThreads();
12916 (arg1)->SetValue(arg2);
12917
12918 wxPyEndAllowThreads(__tstate);
12919 if (PyErr_Occurred()) SWIG_fail;
12920 }
12921 Py_INCREF(Py_None); resultobj = Py_None;
12922 return resultobj;
12923 fail:
12924 return NULL;
12925 }
12926
12927
12928 static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
12929 PyObject *resultobj;
12930 wxSlider *arg1 = (wxSlider *) 0 ;
12931 int arg2 ;
12932 int arg3 ;
12933 PyObject * obj0 = 0 ;
12934 PyObject * obj1 = 0 ;
12935 PyObject * obj2 = 0 ;
12936 char *kwnames[] = {
12937 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
12938 };
12939
12940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
12941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12943 arg2 = (int) SWIG_AsInt(obj1);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 arg3 = (int) SWIG_AsInt(obj2);
12946 if (PyErr_Occurred()) SWIG_fail;
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 (arg1)->SetRange(arg2,arg3);
12950
12951 wxPyEndAllowThreads(__tstate);
12952 if (PyErr_Occurred()) SWIG_fail;
12953 }
12954 Py_INCREF(Py_None); resultobj = Py_None;
12955 return resultobj;
12956 fail:
12957 return NULL;
12958 }
12959
12960
12961 static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12962 PyObject *resultobj;
12963 wxSlider *arg1 = (wxSlider *) 0 ;
12964 int result;
12965 PyObject * obj0 = 0 ;
12966 char *kwnames[] = {
12967 (char *) "self", NULL
12968 };
12969
12970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
12971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 result = (int)((wxSlider const *)arg1)->GetMin();
12976
12977 wxPyEndAllowThreads(__tstate);
12978 if (PyErr_Occurred()) SWIG_fail;
12979 }
12980 resultobj = SWIG_FromInt((int)result);
12981 return resultobj;
12982 fail:
12983 return NULL;
12984 }
12985
12986
12987 static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj;
12989 wxSlider *arg1 = (wxSlider *) 0 ;
12990 int result;
12991 PyObject * obj0 = 0 ;
12992 char *kwnames[] = {
12993 (char *) "self", NULL
12994 };
12995
12996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
12997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12999 {
13000 PyThreadState* __tstate = wxPyBeginAllowThreads();
13001 result = (int)((wxSlider const *)arg1)->GetMax();
13002
13003 wxPyEndAllowThreads(__tstate);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 resultobj = SWIG_FromInt((int)result);
13007 return resultobj;
13008 fail:
13009 return NULL;
13010 }
13011
13012
13013 static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
13014 PyObject *resultobj;
13015 wxSlider *arg1 = (wxSlider *) 0 ;
13016 int arg2 ;
13017 PyObject * obj0 = 0 ;
13018 PyObject * obj1 = 0 ;
13019 char *kwnames[] = {
13020 (char *) "self",(char *) "minValue", NULL
13021 };
13022
13023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13026 arg2 = (int) SWIG_AsInt(obj1);
13027 if (PyErr_Occurred()) SWIG_fail;
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 (arg1)->SetMin(arg2);
13031
13032 wxPyEndAllowThreads(__tstate);
13033 if (PyErr_Occurred()) SWIG_fail;
13034 }
13035 Py_INCREF(Py_None); resultobj = Py_None;
13036 return resultobj;
13037 fail:
13038 return NULL;
13039 }
13040
13041
13042 static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13043 PyObject *resultobj;
13044 wxSlider *arg1 = (wxSlider *) 0 ;
13045 int arg2 ;
13046 PyObject * obj0 = 0 ;
13047 PyObject * obj1 = 0 ;
13048 char *kwnames[] = {
13049 (char *) "self",(char *) "maxValue", NULL
13050 };
13051
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13055 arg2 = (int) SWIG_AsInt(obj1);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 (arg1)->SetMax(arg2);
13060
13061 wxPyEndAllowThreads(__tstate);
13062 if (PyErr_Occurred()) SWIG_fail;
13063 }
13064 Py_INCREF(Py_None); resultobj = Py_None;
13065 return resultobj;
13066 fail:
13067 return NULL;
13068 }
13069
13070
13071 static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13072 PyObject *resultobj;
13073 wxSlider *arg1 = (wxSlider *) 0 ;
13074 int arg2 ;
13075 PyObject * obj0 = 0 ;
13076 PyObject * obj1 = 0 ;
13077 char *kwnames[] = {
13078 (char *) "self",(char *) "lineSize", NULL
13079 };
13080
13081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13084 arg2 = (int) SWIG_AsInt(obj1);
13085 if (PyErr_Occurred()) SWIG_fail;
13086 {
13087 PyThreadState* __tstate = wxPyBeginAllowThreads();
13088 (arg1)->SetLineSize(arg2);
13089
13090 wxPyEndAllowThreads(__tstate);
13091 if (PyErr_Occurred()) SWIG_fail;
13092 }
13093 Py_INCREF(Py_None); resultobj = Py_None;
13094 return resultobj;
13095 fail:
13096 return NULL;
13097 }
13098
13099
13100 static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13101 PyObject *resultobj;
13102 wxSlider *arg1 = (wxSlider *) 0 ;
13103 int arg2 ;
13104 PyObject * obj0 = 0 ;
13105 PyObject * obj1 = 0 ;
13106 char *kwnames[] = {
13107 (char *) "self",(char *) "pageSize", NULL
13108 };
13109
13110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13113 arg2 = (int) SWIG_AsInt(obj1);
13114 if (PyErr_Occurred()) SWIG_fail;
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 (arg1)->SetPageSize(arg2);
13118
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 Py_INCREF(Py_None); resultobj = Py_None;
13123 return resultobj;
13124 fail:
13125 return NULL;
13126 }
13127
13128
13129 static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13130 PyObject *resultobj;
13131 wxSlider *arg1 = (wxSlider *) 0 ;
13132 int result;
13133 PyObject * obj0 = 0 ;
13134 char *kwnames[] = {
13135 (char *) "self", NULL
13136 };
13137
13138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13141 {
13142 PyThreadState* __tstate = wxPyBeginAllowThreads();
13143 result = (int)((wxSlider const *)arg1)->GetLineSize();
13144
13145 wxPyEndAllowThreads(__tstate);
13146 if (PyErr_Occurred()) SWIG_fail;
13147 }
13148 resultobj = SWIG_FromInt((int)result);
13149 return resultobj;
13150 fail:
13151 return NULL;
13152 }
13153
13154
13155 static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13156 PyObject *resultobj;
13157 wxSlider *arg1 = (wxSlider *) 0 ;
13158 int result;
13159 PyObject * obj0 = 0 ;
13160 char *kwnames[] = {
13161 (char *) "self", NULL
13162 };
13163
13164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13167 {
13168 PyThreadState* __tstate = wxPyBeginAllowThreads();
13169 result = (int)((wxSlider const *)arg1)->GetPageSize();
13170
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 resultobj = SWIG_FromInt((int)result);
13175 return resultobj;
13176 fail:
13177 return NULL;
13178 }
13179
13180
13181 static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13182 PyObject *resultobj;
13183 wxSlider *arg1 = (wxSlider *) 0 ;
13184 int arg2 ;
13185 PyObject * obj0 = 0 ;
13186 PyObject * obj1 = 0 ;
13187 char *kwnames[] = {
13188 (char *) "self",(char *) "lenPixels", NULL
13189 };
13190
13191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13194 arg2 = (int) SWIG_AsInt(obj1);
13195 if (PyErr_Occurred()) SWIG_fail;
13196 {
13197 PyThreadState* __tstate = wxPyBeginAllowThreads();
13198 (arg1)->SetThumbLength(arg2);
13199
13200 wxPyEndAllowThreads(__tstate);
13201 if (PyErr_Occurred()) SWIG_fail;
13202 }
13203 Py_INCREF(Py_None); resultobj = Py_None;
13204 return resultobj;
13205 fail:
13206 return NULL;
13207 }
13208
13209
13210 static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13211 PyObject *resultobj;
13212 wxSlider *arg1 = (wxSlider *) 0 ;
13213 int result;
13214 PyObject * obj0 = 0 ;
13215 char *kwnames[] = {
13216 (char *) "self", NULL
13217 };
13218
13219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13225
13226 wxPyEndAllowThreads(__tstate);
13227 if (PyErr_Occurred()) SWIG_fail;
13228 }
13229 resultobj = SWIG_FromInt((int)result);
13230 return resultobj;
13231 fail:
13232 return NULL;
13233 }
13234
13235
13236 static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13237 PyObject *resultobj;
13238 wxSlider *arg1 = (wxSlider *) 0 ;
13239 int arg2 ;
13240 int arg3 = (int) 1 ;
13241 PyObject * obj0 = 0 ;
13242 PyObject * obj1 = 0 ;
13243 PyObject * obj2 = 0 ;
13244 char *kwnames[] = {
13245 (char *) "self",(char *) "n",(char *) "pos", NULL
13246 };
13247
13248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13251 arg2 = (int) SWIG_AsInt(obj1);
13252 if (PyErr_Occurred()) SWIG_fail;
13253 if (obj2) {
13254 arg3 = (int) SWIG_AsInt(obj2);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 }
13257 {
13258 PyThreadState* __tstate = wxPyBeginAllowThreads();
13259 (arg1)->SetTickFreq(arg2,arg3);
13260
13261 wxPyEndAllowThreads(__tstate);
13262 if (PyErr_Occurred()) SWIG_fail;
13263 }
13264 Py_INCREF(Py_None); resultobj = Py_None;
13265 return resultobj;
13266 fail:
13267 return NULL;
13268 }
13269
13270
13271 static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13272 PyObject *resultobj;
13273 wxSlider *arg1 = (wxSlider *) 0 ;
13274 int result;
13275 PyObject * obj0 = 0 ;
13276 char *kwnames[] = {
13277 (char *) "self", NULL
13278 };
13279
13280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13283 {
13284 PyThreadState* __tstate = wxPyBeginAllowThreads();
13285 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13286
13287 wxPyEndAllowThreads(__tstate);
13288 if (PyErr_Occurred()) SWIG_fail;
13289 }
13290 resultobj = SWIG_FromInt((int)result);
13291 return resultobj;
13292 fail:
13293 return NULL;
13294 }
13295
13296
13297 static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
13298 PyObject *resultobj;
13299 wxSlider *arg1 = (wxSlider *) 0 ;
13300 PyObject * obj0 = 0 ;
13301 char *kwnames[] = {
13302 (char *) "self", NULL
13303 };
13304
13305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 (arg1)->ClearTicks();
13311
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 Py_INCREF(Py_None); resultobj = Py_None;
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj;
13324 wxSlider *arg1 = (wxSlider *) 0 ;
13325 int arg2 ;
13326 PyObject * obj0 = 0 ;
13327 PyObject * obj1 = 0 ;
13328 char *kwnames[] = {
13329 (char *) "self",(char *) "tickPos", NULL
13330 };
13331
13332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13335 arg2 = (int) SWIG_AsInt(obj1);
13336 if (PyErr_Occurred()) SWIG_fail;
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 (arg1)->SetTick(arg2);
13340
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 Py_INCREF(Py_None); resultobj = Py_None;
13345 return resultobj;
13346 fail:
13347 return NULL;
13348 }
13349
13350
13351 static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
13352 PyObject *resultobj;
13353 wxSlider *arg1 = (wxSlider *) 0 ;
13354 PyObject * obj0 = 0 ;
13355 char *kwnames[] = {
13356 (char *) "self", NULL
13357 };
13358
13359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13362 {
13363 PyThreadState* __tstate = wxPyBeginAllowThreads();
13364 (arg1)->ClearSel();
13365
13366 wxPyEndAllowThreads(__tstate);
13367 if (PyErr_Occurred()) SWIG_fail;
13368 }
13369 Py_INCREF(Py_None); resultobj = Py_None;
13370 return resultobj;
13371 fail:
13372 return NULL;
13373 }
13374
13375
13376 static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
13377 PyObject *resultobj;
13378 wxSlider *arg1 = (wxSlider *) 0 ;
13379 int result;
13380 PyObject * obj0 = 0 ;
13381 char *kwnames[] = {
13382 (char *) "self", NULL
13383 };
13384
13385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13388 {
13389 PyThreadState* __tstate = wxPyBeginAllowThreads();
13390 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13391
13392 wxPyEndAllowThreads(__tstate);
13393 if (PyErr_Occurred()) SWIG_fail;
13394 }
13395 resultobj = SWIG_FromInt((int)result);
13396 return resultobj;
13397 fail:
13398 return NULL;
13399 }
13400
13401
13402 static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
13403 PyObject *resultobj;
13404 wxSlider *arg1 = (wxSlider *) 0 ;
13405 int result;
13406 PyObject * obj0 = 0 ;
13407 char *kwnames[] = {
13408 (char *) "self", NULL
13409 };
13410
13411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13414 {
13415 PyThreadState* __tstate = wxPyBeginAllowThreads();
13416 result = (int)((wxSlider const *)arg1)->GetSelStart();
13417
13418 wxPyEndAllowThreads(__tstate);
13419 if (PyErr_Occurred()) SWIG_fail;
13420 }
13421 resultobj = SWIG_FromInt((int)result);
13422 return resultobj;
13423 fail:
13424 return NULL;
13425 }
13426
13427
13428 static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13429 PyObject *resultobj;
13430 wxSlider *arg1 = (wxSlider *) 0 ;
13431 int arg2 ;
13432 int arg3 ;
13433 PyObject * obj0 = 0 ;
13434 PyObject * obj1 = 0 ;
13435 PyObject * obj2 = 0 ;
13436 char *kwnames[] = {
13437 (char *) "self",(char *) "min",(char *) "max", NULL
13438 };
13439
13440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13443 arg2 = (int) SWIG_AsInt(obj1);
13444 if (PyErr_Occurred()) SWIG_fail;
13445 arg3 = (int) SWIG_AsInt(obj2);
13446 if (PyErr_Occurred()) SWIG_fail;
13447 {
13448 PyThreadState* __tstate = wxPyBeginAllowThreads();
13449 (arg1)->SetSelection(arg2,arg3);
13450
13451 wxPyEndAllowThreads(__tstate);
13452 if (PyErr_Occurred()) SWIG_fail;
13453 }
13454 Py_INCREF(Py_None); resultobj = Py_None;
13455 return resultobj;
13456 fail:
13457 return NULL;
13458 }
13459
13460
13461 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13462 PyObject *resultobj;
13463 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13464 wxVisualAttributes result;
13465 PyObject * obj0 = 0 ;
13466 char *kwnames[] = {
13467 (char *) "variant", NULL
13468 };
13469
13470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13471 if (obj0) {
13472 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13473 if (PyErr_Occurred()) SWIG_fail;
13474 }
13475 {
13476 PyThreadState* __tstate = wxPyBeginAllowThreads();
13477 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13478
13479 wxPyEndAllowThreads(__tstate);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 }
13482 {
13483 wxVisualAttributes * resultptr;
13484 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13485 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13486 }
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
13494 PyObject *obj;
13495 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13496 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13497 Py_INCREF(obj);
13498 return Py_BuildValue((char *)"");
13499 }
13500 static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
13501 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13502 return 1;
13503 }
13504
13505
13506 static PyObject *_wrap_ToggleButtonNameStr_get() {
13507 PyObject *pyobj;
13508
13509 {
13510 #if wxUSE_UNICODE
13511 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13512 #else
13513 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13514 #endif
13515 }
13516 return pyobj;
13517 }
13518
13519
13520 static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13521 PyObject *resultobj;
13522 wxWindow *arg1 = (wxWindow *) 0 ;
13523 int arg2 ;
13524 wxString *arg3 = 0 ;
13525 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13526 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13527 wxSize const &arg5_defvalue = wxDefaultSize ;
13528 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13529 long arg6 = (long) 0 ;
13530 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13531 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13532 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13533 wxString *arg8 = (wxString *) &arg8_defvalue ;
13534 wxToggleButton *result;
13535 bool temp3 = False ;
13536 wxPoint temp4 ;
13537 wxSize temp5 ;
13538 bool temp8 = False ;
13539 PyObject * obj0 = 0 ;
13540 PyObject * obj1 = 0 ;
13541 PyObject * obj2 = 0 ;
13542 PyObject * obj3 = 0 ;
13543 PyObject * obj4 = 0 ;
13544 PyObject * obj5 = 0 ;
13545 PyObject * obj6 = 0 ;
13546 PyObject * obj7 = 0 ;
13547 char *kwnames[] = {
13548 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13549 };
13550
13551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13554 arg2 = (int) SWIG_AsInt(obj1);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 {
13557 arg3 = wxString_in_helper(obj2);
13558 if (arg3 == NULL) SWIG_fail;
13559 temp3 = True;
13560 }
13561 if (obj3) {
13562 {
13563 arg4 = &temp4;
13564 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13565 }
13566 }
13567 if (obj4) {
13568 {
13569 arg5 = &temp5;
13570 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13571 }
13572 }
13573 if (obj5) {
13574 arg6 = (long) SWIG_AsLong(obj5);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 if (obj6) {
13578 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13579 SWIG_POINTER_EXCEPTION | 0)) == -1)
13580 SWIG_fail;
13581 if (arg7 == NULL) {
13582 PyErr_SetString(PyExc_TypeError,"null reference");
13583 SWIG_fail;
13584 }
13585 }
13586 if (obj7) {
13587 {
13588 arg8 = wxString_in_helper(obj7);
13589 if (arg8 == NULL) SWIG_fail;
13590 temp8 = True;
13591 }
13592 }
13593 {
13594 PyThreadState* __tstate = wxPyBeginAllowThreads();
13595 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13596
13597 wxPyEndAllowThreads(__tstate);
13598 if (PyErr_Occurred()) SWIG_fail;
13599 }
13600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13601 {
13602 if (temp3)
13603 delete arg3;
13604 }
13605 {
13606 if (temp8)
13607 delete arg8;
13608 }
13609 return resultobj;
13610 fail:
13611 {
13612 if (temp3)
13613 delete arg3;
13614 }
13615 {
13616 if (temp8)
13617 delete arg8;
13618 }
13619 return NULL;
13620 }
13621
13622
13623 static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13624 PyObject *resultobj;
13625 wxToggleButton *result;
13626 char *kwnames[] = {
13627 NULL
13628 };
13629
13630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
13631 {
13632 PyThreadState* __tstate = wxPyBeginAllowThreads();
13633 result = (wxToggleButton *)new wxToggleButton();
13634
13635 wxPyEndAllowThreads(__tstate);
13636 if (PyErr_Occurred()) SWIG_fail;
13637 }
13638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13639 return resultobj;
13640 fail:
13641 return NULL;
13642 }
13643
13644
13645 static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13646 PyObject *resultobj;
13647 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13648 wxWindow *arg2 = (wxWindow *) 0 ;
13649 int arg3 ;
13650 wxString *arg4 = 0 ;
13651 wxPoint const &arg5_defvalue = wxDefaultPosition ;
13652 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
13653 wxSize const &arg6_defvalue = wxDefaultSize ;
13654 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
13655 long arg7 = (long) 0 ;
13656 wxValidator const &arg8_defvalue = wxDefaultValidator ;
13657 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
13658 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
13659 wxString *arg9 = (wxString *) &arg9_defvalue ;
13660 bool result;
13661 bool temp4 = False ;
13662 wxPoint temp5 ;
13663 wxSize temp6 ;
13664 bool temp9 = False ;
13665 PyObject * obj0 = 0 ;
13666 PyObject * obj1 = 0 ;
13667 PyObject * obj2 = 0 ;
13668 PyObject * obj3 = 0 ;
13669 PyObject * obj4 = 0 ;
13670 PyObject * obj5 = 0 ;
13671 PyObject * obj6 = 0 ;
13672 PyObject * obj7 = 0 ;
13673 PyObject * obj8 = 0 ;
13674 char *kwnames[] = {
13675 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13676 };
13677
13678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
13679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13681 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13683 arg3 = (int) SWIG_AsInt(obj2);
13684 if (PyErr_Occurred()) SWIG_fail;
13685 {
13686 arg4 = wxString_in_helper(obj3);
13687 if (arg4 == NULL) SWIG_fail;
13688 temp4 = True;
13689 }
13690 if (obj4) {
13691 {
13692 arg5 = &temp5;
13693 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13694 }
13695 }
13696 if (obj5) {
13697 {
13698 arg6 = &temp6;
13699 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13700 }
13701 }
13702 if (obj6) {
13703 arg7 = (long) SWIG_AsLong(obj6);
13704 if (PyErr_Occurred()) SWIG_fail;
13705 }
13706 if (obj7) {
13707 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13708 SWIG_POINTER_EXCEPTION | 0)) == -1)
13709 SWIG_fail;
13710 if (arg8 == NULL) {
13711 PyErr_SetString(PyExc_TypeError,"null reference");
13712 SWIG_fail;
13713 }
13714 }
13715 if (obj8) {
13716 {
13717 arg9 = wxString_in_helper(obj8);
13718 if (arg9 == NULL) SWIG_fail;
13719 temp9 = True;
13720 }
13721 }
13722 {
13723 PyThreadState* __tstate = wxPyBeginAllowThreads();
13724 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13725
13726 wxPyEndAllowThreads(__tstate);
13727 if (PyErr_Occurred()) SWIG_fail;
13728 }
13729 {
13730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13731 }
13732 {
13733 if (temp4)
13734 delete arg4;
13735 }
13736 {
13737 if (temp9)
13738 delete arg9;
13739 }
13740 return resultobj;
13741 fail:
13742 {
13743 if (temp4)
13744 delete arg4;
13745 }
13746 {
13747 if (temp9)
13748 delete arg9;
13749 }
13750 return NULL;
13751 }
13752
13753
13754 static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13755 PyObject *resultobj;
13756 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13757 bool arg2 ;
13758 PyObject * obj0 = 0 ;
13759 PyObject * obj1 = 0 ;
13760 char *kwnames[] = {
13761 (char *) "self",(char *) "value", NULL
13762 };
13763
13764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13767 arg2 = (bool) SWIG_AsBool(obj1);
13768 if (PyErr_Occurred()) SWIG_fail;
13769 {
13770 PyThreadState* __tstate = wxPyBeginAllowThreads();
13771 (arg1)->SetValue(arg2);
13772
13773 wxPyEndAllowThreads(__tstate);
13774 if (PyErr_Occurred()) SWIG_fail;
13775 }
13776 Py_INCREF(Py_None); resultobj = Py_None;
13777 return resultobj;
13778 fail:
13779 return NULL;
13780 }
13781
13782
13783 static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13784 PyObject *resultobj;
13785 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13786 bool result;
13787 PyObject * obj0 = 0 ;
13788 char *kwnames[] = {
13789 (char *) "self", NULL
13790 };
13791
13792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
13793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13795 {
13796 PyThreadState* __tstate = wxPyBeginAllowThreads();
13797 result = (bool)((wxToggleButton const *)arg1)->GetValue();
13798
13799 wxPyEndAllowThreads(__tstate);
13800 if (PyErr_Occurred()) SWIG_fail;
13801 }
13802 {
13803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13804 }
13805 return resultobj;
13806 fail:
13807 return NULL;
13808 }
13809
13810
13811 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
13812 PyObject *resultobj;
13813 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13814 wxString *arg2 = 0 ;
13815 bool temp2 = False ;
13816 PyObject * obj0 = 0 ;
13817 PyObject * obj1 = 0 ;
13818 char *kwnames[] = {
13819 (char *) "self",(char *) "label", NULL
13820 };
13821
13822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
13823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13825 {
13826 arg2 = wxString_in_helper(obj1);
13827 if (arg2 == NULL) SWIG_fail;
13828 temp2 = True;
13829 }
13830 {
13831 PyThreadState* __tstate = wxPyBeginAllowThreads();
13832 (arg1)->SetLabel((wxString const &)*arg2);
13833
13834 wxPyEndAllowThreads(__tstate);
13835 if (PyErr_Occurred()) SWIG_fail;
13836 }
13837 Py_INCREF(Py_None); resultobj = Py_None;
13838 {
13839 if (temp2)
13840 delete arg2;
13841 }
13842 return resultobj;
13843 fail:
13844 {
13845 if (temp2)
13846 delete arg2;
13847 }
13848 return NULL;
13849 }
13850
13851
13852 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13853 PyObject *resultobj;
13854 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13855 wxVisualAttributes result;
13856 PyObject * obj0 = 0 ;
13857 char *kwnames[] = {
13858 (char *) "variant", NULL
13859 };
13860
13861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13862 if (obj0) {
13863 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 {
13867 PyThreadState* __tstate = wxPyBeginAllowThreads();
13868 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
13869
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 {
13874 wxVisualAttributes * resultptr;
13875 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13876 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13877 }
13878 return resultobj;
13879 fail:
13880 return NULL;
13881 }
13882
13883
13884 static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
13885 PyObject *obj;
13886 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13887 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
13888 Py_INCREF(obj);
13889 return Py_BuildValue((char *)"");
13890 }
13891 static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
13892 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
13893 return 1;
13894 }
13895
13896
13897 static PyObject *_wrap_NOTEBOOK_NAME_get() {
13898 PyObject *pyobj;
13899
13900 {
13901 #if wxUSE_UNICODE
13902 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13903 #else
13904 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13905 #endif
13906 }
13907 return pyobj;
13908 }
13909
13910
13911 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13912 PyObject *resultobj;
13913 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13914 size_t result;
13915 PyObject * obj0 = 0 ;
13916 char *kwnames[] = {
13917 (char *) "self", NULL
13918 };
13919
13920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
13921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13923 {
13924 PyThreadState* __tstate = wxPyBeginAllowThreads();
13925 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
13926
13927 wxPyEndAllowThreads(__tstate);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 }
13930 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
13931 return resultobj;
13932 fail:
13933 return NULL;
13934 }
13935
13936
13937 static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13938 PyObject *resultobj;
13939 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13940 size_t arg2 ;
13941 wxWindow *result;
13942 PyObject * obj0 = 0 ;
13943 PyObject * obj1 = 0 ;
13944 char *kwnames[] = {
13945 (char *) "self",(char *) "n", NULL
13946 };
13947
13948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
13949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13951 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (wxWindow *)(arg1)->GetPage(arg2);
13956
13957 wxPyEndAllowThreads(__tstate);
13958 if (PyErr_Occurred()) SWIG_fail;
13959 }
13960 {
13961 resultobj = wxPyMake_wxObject(result);
13962 }
13963 return resultobj;
13964 fail:
13965 return NULL;
13966 }
13967
13968
13969 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13970 PyObject *resultobj;
13971 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13972 int result;
13973 PyObject * obj0 = 0 ;
13974 char *kwnames[] = {
13975 (char *) "self", NULL
13976 };
13977
13978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
13979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13981 {
13982 PyThreadState* __tstate = wxPyBeginAllowThreads();
13983 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
13984
13985 wxPyEndAllowThreads(__tstate);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 }
13988 resultobj = SWIG_FromInt((int)result);
13989 return resultobj;
13990 fail:
13991 return NULL;
13992 }
13993
13994
13995 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13996 PyObject *resultobj;
13997 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13998 size_t arg2 ;
13999 wxString *arg3 = 0 ;
14000 bool result;
14001 bool temp3 = False ;
14002 PyObject * obj0 = 0 ;
14003 PyObject * obj1 = 0 ;
14004 PyObject * obj2 = 0 ;
14005 char *kwnames[] = {
14006 (char *) "self",(char *) "n",(char *) "strText", NULL
14007 };
14008
14009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14012 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14013 if (PyErr_Occurred()) SWIG_fail;
14014 {
14015 arg3 = wxString_in_helper(obj2);
14016 if (arg3 == NULL) SWIG_fail;
14017 temp3 = True;
14018 }
14019 {
14020 PyThreadState* __tstate = wxPyBeginAllowThreads();
14021 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14022
14023 wxPyEndAllowThreads(__tstate);
14024 if (PyErr_Occurred()) SWIG_fail;
14025 }
14026 {
14027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14028 }
14029 {
14030 if (temp3)
14031 delete arg3;
14032 }
14033 return resultobj;
14034 fail:
14035 {
14036 if (temp3)
14037 delete arg3;
14038 }
14039 return NULL;
14040 }
14041
14042
14043 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj;
14045 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14046 size_t arg2 ;
14047 wxString result;
14048 PyObject * obj0 = 0 ;
14049 PyObject * obj1 = 0 ;
14050 char *kwnames[] = {
14051 (char *) "self",(char *) "n", NULL
14052 };
14053
14054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14057 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14058 if (PyErr_Occurred()) SWIG_fail;
14059 {
14060 PyThreadState* __tstate = wxPyBeginAllowThreads();
14061 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14062
14063 wxPyEndAllowThreads(__tstate);
14064 if (PyErr_Occurred()) SWIG_fail;
14065 }
14066 {
14067 #if wxUSE_UNICODE
14068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14069 #else
14070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14071 #endif
14072 }
14073 return resultobj;
14074 fail:
14075 return NULL;
14076 }
14077
14078
14079 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14080 PyObject *resultobj;
14081 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14082 wxImageList *arg2 = (wxImageList *) 0 ;
14083 PyObject * obj0 = 0 ;
14084 PyObject * obj1 = 0 ;
14085 char *kwnames[] = {
14086 (char *) "self",(char *) "imageList", NULL
14087 };
14088
14089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14092 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 (arg1)->SetImageList(arg2);
14097
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 Py_INCREF(Py_None); resultobj = Py_None;
14102 return resultobj;
14103 fail:
14104 return NULL;
14105 }
14106
14107
14108 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj;
14110 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14111 wxImageList *arg2 = (wxImageList *) 0 ;
14112 PyObject * obj0 = 0 ;
14113 PyObject * obj1 = 0 ;
14114 char *kwnames[] = {
14115 (char *) "self",(char *) "imageList", NULL
14116 };
14117
14118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14122 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14123 {
14124 PyThreadState* __tstate = wxPyBeginAllowThreads();
14125 (arg1)->AssignImageList(arg2);
14126
14127 wxPyEndAllowThreads(__tstate);
14128 if (PyErr_Occurred()) SWIG_fail;
14129 }
14130 Py_INCREF(Py_None); resultobj = Py_None;
14131 return resultobj;
14132 fail:
14133 return NULL;
14134 }
14135
14136
14137 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14138 PyObject *resultobj;
14139 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14140 wxImageList *result;
14141 PyObject * obj0 = 0 ;
14142 char *kwnames[] = {
14143 (char *) "self", NULL
14144 };
14145
14146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14149 {
14150 PyThreadState* __tstate = wxPyBeginAllowThreads();
14151 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14152
14153 wxPyEndAllowThreads(__tstate);
14154 if (PyErr_Occurred()) SWIG_fail;
14155 }
14156 {
14157 resultobj = wxPyMake_wxObject(result);
14158 }
14159 return resultobj;
14160 fail:
14161 return NULL;
14162 }
14163
14164
14165 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14166 PyObject *resultobj;
14167 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14168 size_t arg2 ;
14169 int result;
14170 PyObject * obj0 = 0 ;
14171 PyObject * obj1 = 0 ;
14172 char *kwnames[] = {
14173 (char *) "self",(char *) "n", NULL
14174 };
14175
14176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14179 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14180 if (PyErr_Occurred()) SWIG_fail;
14181 {
14182 PyThreadState* __tstate = wxPyBeginAllowThreads();
14183 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14184
14185 wxPyEndAllowThreads(__tstate);
14186 if (PyErr_Occurred()) SWIG_fail;
14187 }
14188 resultobj = SWIG_FromInt((int)result);
14189 return resultobj;
14190 fail:
14191 return NULL;
14192 }
14193
14194
14195 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14196 PyObject *resultobj;
14197 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14198 size_t arg2 ;
14199 int arg3 ;
14200 bool result;
14201 PyObject * obj0 = 0 ;
14202 PyObject * obj1 = 0 ;
14203 PyObject * obj2 = 0 ;
14204 char *kwnames[] = {
14205 (char *) "self",(char *) "n",(char *) "imageId", NULL
14206 };
14207
14208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14211 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14212 if (PyErr_Occurred()) SWIG_fail;
14213 arg3 = (int) SWIG_AsInt(obj2);
14214 if (PyErr_Occurred()) SWIG_fail;
14215 {
14216 PyThreadState* __tstate = wxPyBeginAllowThreads();
14217 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14218
14219 wxPyEndAllowThreads(__tstate);
14220 if (PyErr_Occurred()) SWIG_fail;
14221 }
14222 {
14223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14224 }
14225 return resultobj;
14226 fail:
14227 return NULL;
14228 }
14229
14230
14231 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14232 PyObject *resultobj;
14233 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14234 wxSize *arg2 = 0 ;
14235 wxSize temp2 ;
14236 PyObject * obj0 = 0 ;
14237 PyObject * obj1 = 0 ;
14238 char *kwnames[] = {
14239 (char *) "self",(char *) "size", NULL
14240 };
14241
14242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14245 {
14246 arg2 = &temp2;
14247 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14248 }
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 (arg1)->SetPageSize((wxSize const &)*arg2);
14252
14253 wxPyEndAllowThreads(__tstate);
14254 if (PyErr_Occurred()) SWIG_fail;
14255 }
14256 Py_INCREF(Py_None); resultobj = Py_None;
14257 return resultobj;
14258 fail:
14259 return NULL;
14260 }
14261
14262
14263 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14264 PyObject *resultobj;
14265 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14266 wxSize *arg2 = 0 ;
14267 wxSize result;
14268 wxSize temp2 ;
14269 PyObject * obj0 = 0 ;
14270 PyObject * obj1 = 0 ;
14271 char *kwnames[] = {
14272 (char *) "self",(char *) "sizePage", NULL
14273 };
14274
14275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14278 {
14279 arg2 = &temp2;
14280 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14281 }
14282 {
14283 PyThreadState* __tstate = wxPyBeginAllowThreads();
14284 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14285
14286 wxPyEndAllowThreads(__tstate);
14287 if (PyErr_Occurred()) SWIG_fail;
14288 }
14289 {
14290 wxSize * resultptr;
14291 resultptr = new wxSize((wxSize &) result);
14292 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14293 }
14294 return resultobj;
14295 fail:
14296 return NULL;
14297 }
14298
14299
14300 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14301 PyObject *resultobj;
14302 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14303 size_t arg2 ;
14304 bool result;
14305 PyObject * obj0 = 0 ;
14306 PyObject * obj1 = 0 ;
14307 char *kwnames[] = {
14308 (char *) "self",(char *) "n", NULL
14309 };
14310
14311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14314 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14315 if (PyErr_Occurred()) SWIG_fail;
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 result = (bool)(arg1)->DeletePage(arg2);
14319
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 {
14324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14325 }
14326 return resultobj;
14327 fail:
14328 return NULL;
14329 }
14330
14331
14332 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14333 PyObject *resultobj;
14334 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14335 size_t arg2 ;
14336 bool result;
14337 PyObject * obj0 = 0 ;
14338 PyObject * obj1 = 0 ;
14339 char *kwnames[] = {
14340 (char *) "self",(char *) "n", NULL
14341 };
14342
14343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14346 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14347 if (PyErr_Occurred()) SWIG_fail;
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 result = (bool)(arg1)->RemovePage(arg2);
14351
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 {
14356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14357 }
14358 return resultobj;
14359 fail:
14360 return NULL;
14361 }
14362
14363
14364 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
14365 PyObject *resultobj;
14366 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14367 bool result;
14368 PyObject * obj0 = 0 ;
14369 char *kwnames[] = {
14370 (char *) "self", NULL
14371 };
14372
14373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14376 {
14377 PyThreadState* __tstate = wxPyBeginAllowThreads();
14378 result = (bool)(arg1)->DeleteAllPages();
14379
14380 wxPyEndAllowThreads(__tstate);
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
14383 {
14384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14385 }
14386 return resultobj;
14387 fail:
14388 return NULL;
14389 }
14390
14391
14392 static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14393 PyObject *resultobj;
14394 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14395 wxWindow *arg2 = (wxWindow *) 0 ;
14396 wxString *arg3 = 0 ;
14397 bool arg4 = (bool) False ;
14398 int arg5 = (int) -1 ;
14399 bool result;
14400 bool temp3 = False ;
14401 PyObject * obj0 = 0 ;
14402 PyObject * obj1 = 0 ;
14403 PyObject * obj2 = 0 ;
14404 PyObject * obj3 = 0 ;
14405 PyObject * obj4 = 0 ;
14406 char *kwnames[] = {
14407 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14408 };
14409
14410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14413 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14415 {
14416 arg3 = wxString_in_helper(obj2);
14417 if (arg3 == NULL) SWIG_fail;
14418 temp3 = True;
14419 }
14420 if (obj3) {
14421 arg4 = (bool) SWIG_AsBool(obj3);
14422 if (PyErr_Occurred()) SWIG_fail;
14423 }
14424 if (obj4) {
14425 arg5 = (int) SWIG_AsInt(obj4);
14426 if (PyErr_Occurred()) SWIG_fail;
14427 }
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14431
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 {
14436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14437 }
14438 {
14439 if (temp3)
14440 delete arg3;
14441 }
14442 return resultobj;
14443 fail:
14444 {
14445 if (temp3)
14446 delete arg3;
14447 }
14448 return NULL;
14449 }
14450
14451
14452 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14453 PyObject *resultobj;
14454 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14455 size_t arg2 ;
14456 wxWindow *arg3 = (wxWindow *) 0 ;
14457 wxString *arg4 = 0 ;
14458 bool arg5 = (bool) False ;
14459 int arg6 = (int) -1 ;
14460 bool result;
14461 bool temp4 = False ;
14462 PyObject * obj0 = 0 ;
14463 PyObject * obj1 = 0 ;
14464 PyObject * obj2 = 0 ;
14465 PyObject * obj3 = 0 ;
14466 PyObject * obj4 = 0 ;
14467 PyObject * obj5 = 0 ;
14468 char *kwnames[] = {
14469 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14470 };
14471
14472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14475 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14479 {
14480 arg4 = wxString_in_helper(obj3);
14481 if (arg4 == NULL) SWIG_fail;
14482 temp4 = True;
14483 }
14484 if (obj4) {
14485 arg5 = (bool) SWIG_AsBool(obj4);
14486 if (PyErr_Occurred()) SWIG_fail;
14487 }
14488 if (obj5) {
14489 arg6 = (int) SWIG_AsInt(obj5);
14490 if (PyErr_Occurred()) SWIG_fail;
14491 }
14492 {
14493 PyThreadState* __tstate = wxPyBeginAllowThreads();
14494 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14495
14496 wxPyEndAllowThreads(__tstate);
14497 if (PyErr_Occurred()) SWIG_fail;
14498 }
14499 {
14500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14501 }
14502 {
14503 if (temp4)
14504 delete arg4;
14505 }
14506 return resultobj;
14507 fail:
14508 {
14509 if (temp4)
14510 delete arg4;
14511 }
14512 return NULL;
14513 }
14514
14515
14516 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14517 PyObject *resultobj;
14518 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14519 size_t arg2 ;
14520 int result;
14521 PyObject * obj0 = 0 ;
14522 PyObject * obj1 = 0 ;
14523 char *kwnames[] = {
14524 (char *) "self",(char *) "n", NULL
14525 };
14526
14527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14530 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 {
14533 PyThreadState* __tstate = wxPyBeginAllowThreads();
14534 result = (int)(arg1)->SetSelection(arg2);
14535
14536 wxPyEndAllowThreads(__tstate);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 }
14539 resultobj = SWIG_FromInt((int)result);
14540 return resultobj;
14541 fail:
14542 return NULL;
14543 }
14544
14545
14546 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14547 PyObject *resultobj;
14548 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14549 bool arg2 = (bool) True ;
14550 PyObject * obj0 = 0 ;
14551 PyObject * obj1 = 0 ;
14552 char *kwnames[] = {
14553 (char *) "self",(char *) "forward", NULL
14554 };
14555
14556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14559 if (obj1) {
14560 arg2 = (bool) SWIG_AsBool(obj1);
14561 if (PyErr_Occurred()) SWIG_fail;
14562 }
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
14565 (arg1)->AdvanceSelection(arg2);
14566
14567 wxPyEndAllowThreads(__tstate);
14568 if (PyErr_Occurred()) SWIG_fail;
14569 }
14570 Py_INCREF(Py_None); resultobj = Py_None;
14571 return resultobj;
14572 fail:
14573 return NULL;
14574 }
14575
14576
14577 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
14578 PyObject *resultobj;
14579 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14580 wxVisualAttributes result;
14581 PyObject * obj0 = 0 ;
14582 char *kwnames[] = {
14583 (char *) "variant", NULL
14584 };
14585
14586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14587 if (obj0) {
14588 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
14589 if (PyErr_Occurred()) SWIG_fail;
14590 }
14591 {
14592 PyThreadState* __tstate = wxPyBeginAllowThreads();
14593 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14594
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 {
14599 wxVisualAttributes * resultptr;
14600 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14601 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14602 }
14603 return resultobj;
14604 fail:
14605 return NULL;
14606 }
14607
14608
14609 static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
14610 PyObject *obj;
14611 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14612 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
14613 Py_INCREF(obj);
14614 return Py_BuildValue((char *)"");
14615 }
14616 static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14617 PyObject *resultobj;
14618 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14619 int arg2 = (int) 0 ;
14620 int arg3 = (int) -1 ;
14621 int arg4 = (int) -1 ;
14622 wxBookCtrlEvent *result;
14623 PyObject * obj0 = 0 ;
14624 PyObject * obj1 = 0 ;
14625 PyObject * obj2 = 0 ;
14626 PyObject * obj3 = 0 ;
14627 char *kwnames[] = {
14628 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14629 };
14630
14631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14632 if (obj0) {
14633 arg1 = (wxEventType) SWIG_AsInt(obj0);
14634 if (PyErr_Occurred()) SWIG_fail;
14635 }
14636 if (obj1) {
14637 arg2 = (int) SWIG_AsInt(obj1);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 if (obj2) {
14641 arg3 = (int) SWIG_AsInt(obj2);
14642 if (PyErr_Occurred()) SWIG_fail;
14643 }
14644 if (obj3) {
14645 arg4 = (int) SWIG_AsInt(obj3);
14646 if (PyErr_Occurred()) SWIG_fail;
14647 }
14648 {
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
14650 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
14651
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
14656 return resultobj;
14657 fail:
14658 return NULL;
14659 }
14660
14661
14662 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14663 PyObject *resultobj;
14664 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14665 int result;
14666 PyObject * obj0 = 0 ;
14667 char *kwnames[] = {
14668 (char *) "self", NULL
14669 };
14670
14671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
14672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14674 {
14675 PyThreadState* __tstate = wxPyBeginAllowThreads();
14676 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
14677
14678 wxPyEndAllowThreads(__tstate);
14679 if (PyErr_Occurred()) SWIG_fail;
14680 }
14681 resultobj = SWIG_FromInt((int)result);
14682 return resultobj;
14683 fail:
14684 return NULL;
14685 }
14686
14687
14688 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14689 PyObject *resultobj;
14690 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14691 int arg2 ;
14692 PyObject * obj0 = 0 ;
14693 PyObject * obj1 = 0 ;
14694 char *kwnames[] = {
14695 (char *) "self",(char *) "nSel", NULL
14696 };
14697
14698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14701 arg2 = (int) SWIG_AsInt(obj1);
14702 if (PyErr_Occurred()) SWIG_fail;
14703 {
14704 PyThreadState* __tstate = wxPyBeginAllowThreads();
14705 (arg1)->SetSelection(arg2);
14706
14707 wxPyEndAllowThreads(__tstate);
14708 if (PyErr_Occurred()) SWIG_fail;
14709 }
14710 Py_INCREF(Py_None); resultobj = Py_None;
14711 return resultobj;
14712 fail:
14713 return NULL;
14714 }
14715
14716
14717 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14718 PyObject *resultobj;
14719 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14720 int result;
14721 PyObject * obj0 = 0 ;
14722 char *kwnames[] = {
14723 (char *) "self", NULL
14724 };
14725
14726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
14727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14729 {
14730 PyThreadState* __tstate = wxPyBeginAllowThreads();
14731 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
14732
14733 wxPyEndAllowThreads(__tstate);
14734 if (PyErr_Occurred()) SWIG_fail;
14735 }
14736 resultobj = SWIG_FromInt((int)result);
14737 return resultobj;
14738 fail:
14739 return NULL;
14740 }
14741
14742
14743 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14744 PyObject *resultobj;
14745 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14746 int arg2 ;
14747 PyObject * obj0 = 0 ;
14748 PyObject * obj1 = 0 ;
14749 char *kwnames[] = {
14750 (char *) "self",(char *) "nOldSel", NULL
14751 };
14752
14753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
14754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14756 arg2 = (int) SWIG_AsInt(obj1);
14757 if (PyErr_Occurred()) SWIG_fail;
14758 {
14759 PyThreadState* __tstate = wxPyBeginAllowThreads();
14760 (arg1)->SetOldSelection(arg2);
14761
14762 wxPyEndAllowThreads(__tstate);
14763 if (PyErr_Occurred()) SWIG_fail;
14764 }
14765 Py_INCREF(Py_None); resultobj = Py_None;
14766 return resultobj;
14767 fail:
14768 return NULL;
14769 }
14770
14771
14772 static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
14773 PyObject *obj;
14774 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14775 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
14776 Py_INCREF(obj);
14777 return Py_BuildValue((char *)"");
14778 }
14779 static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14780 PyObject *resultobj;
14781 wxWindow *arg1 = (wxWindow *) 0 ;
14782 int arg2 = (int) -1 ;
14783 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14784 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14785 wxSize const &arg4_defvalue = wxDefaultSize ;
14786 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14787 long arg5 = (long) 0 ;
14788 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
14789 wxString *arg6 = (wxString *) &arg6_defvalue ;
14790 wxNotebook *result;
14791 wxPoint temp3 ;
14792 wxSize temp4 ;
14793 bool temp6 = False ;
14794 PyObject * obj0 = 0 ;
14795 PyObject * obj1 = 0 ;
14796 PyObject * obj2 = 0 ;
14797 PyObject * obj3 = 0 ;
14798 PyObject * obj4 = 0 ;
14799 PyObject * obj5 = 0 ;
14800 char *kwnames[] = {
14801 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14802 };
14803
14804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14807 if (obj1) {
14808 arg2 = (int) SWIG_AsInt(obj1);
14809 if (PyErr_Occurred()) SWIG_fail;
14810 }
14811 if (obj2) {
14812 {
14813 arg3 = &temp3;
14814 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14815 }
14816 }
14817 if (obj3) {
14818 {
14819 arg4 = &temp4;
14820 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14821 }
14822 }
14823 if (obj4) {
14824 arg5 = (long) SWIG_AsLong(obj4);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 }
14827 if (obj5) {
14828 {
14829 arg6 = wxString_in_helper(obj5);
14830 if (arg6 == NULL) SWIG_fail;
14831 temp6 = True;
14832 }
14833 }
14834 {
14835 PyThreadState* __tstate = wxPyBeginAllowThreads();
14836 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14837
14838 wxPyEndAllowThreads(__tstate);
14839 if (PyErr_Occurred()) SWIG_fail;
14840 }
14841 {
14842 resultobj = wxPyMake_wxObject(result);
14843 }
14844 {
14845 if (temp6)
14846 delete arg6;
14847 }
14848 return resultobj;
14849 fail:
14850 {
14851 if (temp6)
14852 delete arg6;
14853 }
14854 return NULL;
14855 }
14856
14857
14858 static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14859 PyObject *resultobj;
14860 wxNotebook *result;
14861 char *kwnames[] = {
14862 NULL
14863 };
14864
14865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
14866 {
14867 PyThreadState* __tstate = wxPyBeginAllowThreads();
14868 result = (wxNotebook *)new wxNotebook();
14869
14870 wxPyEndAllowThreads(__tstate);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 }
14873 {
14874 resultobj = wxPyMake_wxObject(result);
14875 }
14876 return resultobj;
14877 fail:
14878 return NULL;
14879 }
14880
14881
14882 static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14883 PyObject *resultobj;
14884 wxNotebook *arg1 = (wxNotebook *) 0 ;
14885 wxWindow *arg2 = (wxWindow *) 0 ;
14886 int arg3 ;
14887 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14888 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14889 wxSize const &arg5_defvalue = wxDefaultSize ;
14890 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14891 long arg6 = (long) 0 ;
14892 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
14893 wxString *arg7 = (wxString *) &arg7_defvalue ;
14894 bool result;
14895 wxPoint temp4 ;
14896 wxSize temp5 ;
14897 bool temp7 = False ;
14898 PyObject * obj0 = 0 ;
14899 PyObject * obj1 = 0 ;
14900 PyObject * obj2 = 0 ;
14901 PyObject * obj3 = 0 ;
14902 PyObject * obj4 = 0 ;
14903 PyObject * obj5 = 0 ;
14904 PyObject * obj6 = 0 ;
14905 char *kwnames[] = {
14906 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14907 };
14908
14909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14914 arg3 = (int) SWIG_AsInt(obj2);
14915 if (PyErr_Occurred()) SWIG_fail;
14916 if (obj3) {
14917 {
14918 arg4 = &temp4;
14919 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14920 }
14921 }
14922 if (obj4) {
14923 {
14924 arg5 = &temp5;
14925 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14926 }
14927 }
14928 if (obj5) {
14929 arg6 = (long) SWIG_AsLong(obj5);
14930 if (PyErr_Occurred()) SWIG_fail;
14931 }
14932 if (obj6) {
14933 {
14934 arg7 = wxString_in_helper(obj6);
14935 if (arg7 == NULL) SWIG_fail;
14936 temp7 = True;
14937 }
14938 }
14939 {
14940 PyThreadState* __tstate = wxPyBeginAllowThreads();
14941 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14942
14943 wxPyEndAllowThreads(__tstate);
14944 if (PyErr_Occurred()) SWIG_fail;
14945 }
14946 {
14947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14948 }
14949 {
14950 if (temp7)
14951 delete arg7;
14952 }
14953 return resultobj;
14954 fail:
14955 {
14956 if (temp7)
14957 delete arg7;
14958 }
14959 return NULL;
14960 }
14961
14962
14963 static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14964 PyObject *resultobj;
14965 wxNotebook *arg1 = (wxNotebook *) 0 ;
14966 int result;
14967 PyObject * obj0 = 0 ;
14968 char *kwnames[] = {
14969 (char *) "self", NULL
14970 };
14971
14972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
14973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14975 {
14976 PyThreadState* __tstate = wxPyBeginAllowThreads();
14977 result = (int)((wxNotebook const *)arg1)->GetRowCount();
14978
14979 wxPyEndAllowThreads(__tstate);
14980 if (PyErr_Occurred()) SWIG_fail;
14981 }
14982 resultobj = SWIG_FromInt((int)result);
14983 return resultobj;
14984 fail:
14985 return NULL;
14986 }
14987
14988
14989 static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
14990 PyObject *resultobj;
14991 wxNotebook *arg1 = (wxNotebook *) 0 ;
14992 wxSize *arg2 = 0 ;
14993 wxSize temp2 ;
14994 PyObject * obj0 = 0 ;
14995 PyObject * obj1 = 0 ;
14996 char *kwnames[] = {
14997 (char *) "self",(char *) "padding", NULL
14998 };
14999
15000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15003 {
15004 arg2 = &temp2;
15005 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15006 }
15007 {
15008 PyThreadState* __tstate = wxPyBeginAllowThreads();
15009 (arg1)->SetPadding((wxSize const &)*arg2);
15010
15011 wxPyEndAllowThreads(__tstate);
15012 if (PyErr_Occurred()) SWIG_fail;
15013 }
15014 Py_INCREF(Py_None); resultobj = Py_None;
15015 return resultobj;
15016 fail:
15017 return NULL;
15018 }
15019
15020
15021 static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15022 PyObject *resultobj;
15023 wxNotebook *arg1 = (wxNotebook *) 0 ;
15024 wxSize *arg2 = 0 ;
15025 wxSize temp2 ;
15026 PyObject * obj0 = 0 ;
15027 PyObject * obj1 = 0 ;
15028 char *kwnames[] = {
15029 (char *) "self",(char *) "sz", NULL
15030 };
15031
15032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15035 {
15036 arg2 = &temp2;
15037 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15038 }
15039 {
15040 PyThreadState* __tstate = wxPyBeginAllowThreads();
15041 (arg1)->SetTabSize((wxSize const &)*arg2);
15042
15043 wxPyEndAllowThreads(__tstate);
15044 if (PyErr_Occurred()) SWIG_fail;
15045 }
15046 Py_INCREF(Py_None); resultobj = Py_None;
15047 return resultobj;
15048 fail:
15049 return NULL;
15050 }
15051
15052
15053 static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
15054 PyObject *resultobj;
15055 wxNotebook *arg1 = (wxNotebook *) 0 ;
15056 wxPoint *arg2 = 0 ;
15057 long *arg3 = (long *) 0 ;
15058 int result;
15059 wxPoint temp2 ;
15060 long temp3 ;
15061 PyObject * obj0 = 0 ;
15062 PyObject * obj1 = 0 ;
15063 char *kwnames[] = {
15064 (char *) "self",(char *) "pt", NULL
15065 };
15066
15067 arg3 = &temp3;
15068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",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 ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15074 }
15075 {
15076 PyThreadState* __tstate = wxPyBeginAllowThreads();
15077 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15078
15079 wxPyEndAllowThreads(__tstate);
15080 if (PyErr_Occurred()) SWIG_fail;
15081 }
15082 resultobj = SWIG_FromInt((int)result);
15083 {
15084 PyObject *o = PyInt_FromLong((long) (*arg3));
15085 resultobj = t_output_helper(resultobj,o);
15086 }
15087 return resultobj;
15088 fail:
15089 return NULL;
15090 }
15091
15092
15093 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
15094 PyObject *resultobj;
15095 wxNotebook *arg1 = (wxNotebook *) 0 ;
15096 wxSize *arg2 = 0 ;
15097 wxSize result;
15098 wxSize temp2 ;
15099 PyObject * obj0 = 0 ;
15100 PyObject * obj1 = 0 ;
15101 char *kwnames[] = {
15102 (char *) "self",(char *) "sizePage", NULL
15103 };
15104
15105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15108 {
15109 arg2 = &temp2;
15110 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15111 }
15112 {
15113 PyThreadState* __tstate = wxPyBeginAllowThreads();
15114 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15115
15116 wxPyEndAllowThreads(__tstate);
15117 if (PyErr_Occurred()) SWIG_fail;
15118 }
15119 {
15120 wxSize * resultptr;
15121 resultptr = new wxSize((wxSize &) result);
15122 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15123 }
15124 return resultobj;
15125 fail:
15126 return NULL;
15127 }
15128
15129
15130 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
15131 PyObject *resultobj;
15132 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15133 wxVisualAttributes result;
15134 PyObject * obj0 = 0 ;
15135 char *kwnames[] = {
15136 (char *) "variant", NULL
15137 };
15138
15139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15140 if (obj0) {
15141 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
15142 if (PyErr_Occurred()) SWIG_fail;
15143 }
15144 {
15145 PyThreadState* __tstate = wxPyBeginAllowThreads();
15146 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15147
15148 wxPyEndAllowThreads(__tstate);
15149 if (PyErr_Occurred()) SWIG_fail;
15150 }
15151 {
15152 wxVisualAttributes * resultptr;
15153 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15154 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15155 }
15156 return resultobj;
15157 fail:
15158 return NULL;
15159 }
15160
15161
15162 static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
15163 PyObject *obj;
15164 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15165 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15166 Py_INCREF(obj);
15167 return Py_BuildValue((char *)"");
15168 }
15169 static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15170 PyObject *resultobj;
15171 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15172 int arg2 = (int) 0 ;
15173 int arg3 = (int) -1 ;
15174 int arg4 = (int) -1 ;
15175 wxNotebookEvent *result;
15176 PyObject * obj0 = 0 ;
15177 PyObject * obj1 = 0 ;
15178 PyObject * obj2 = 0 ;
15179 PyObject * obj3 = 0 ;
15180 char *kwnames[] = {
15181 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15182 };
15183
15184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15185 if (obj0) {
15186 arg1 = (wxEventType) SWIG_AsInt(obj0);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 if (obj1) {
15190 arg2 = (int) SWIG_AsInt(obj1);
15191 if (PyErr_Occurred()) SWIG_fail;
15192 }
15193 if (obj2) {
15194 arg3 = (int) SWIG_AsInt(obj2);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 if (obj3) {
15198 arg4 = (int) SWIG_AsInt(obj3);
15199 if (PyErr_Occurred()) SWIG_fail;
15200 }
15201 {
15202 PyThreadState* __tstate = wxPyBeginAllowThreads();
15203 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15204
15205 wxPyEndAllowThreads(__tstate);
15206 if (PyErr_Occurred()) SWIG_fail;
15207 }
15208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15209 return resultobj;
15210 fail:
15211 return NULL;
15212 }
15213
15214
15215 static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
15216 PyObject *obj;
15217 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15218 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15219 Py_INCREF(obj);
15220 return Py_BuildValue((char *)"");
15221 }
15222 static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15223 PyObject *resultobj;
15224 wxWindow *arg1 = (wxWindow *) 0 ;
15225 int arg2 = (int) -1 ;
15226 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15227 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15228 wxSize const &arg4_defvalue = wxDefaultSize ;
15229 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15230 long arg5 = (long) 0 ;
15231 wxString const &arg6_defvalue = wxPyEmptyString ;
15232 wxString *arg6 = (wxString *) &arg6_defvalue ;
15233 wxListbook *result;
15234 wxPoint temp3 ;
15235 wxSize temp4 ;
15236 bool temp6 = False ;
15237 PyObject * obj0 = 0 ;
15238 PyObject * obj1 = 0 ;
15239 PyObject * obj2 = 0 ;
15240 PyObject * obj3 = 0 ;
15241 PyObject * obj4 = 0 ;
15242 PyObject * obj5 = 0 ;
15243 char *kwnames[] = {
15244 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15245 };
15246
15247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15250 if (obj1) {
15251 arg2 = (int) SWIG_AsInt(obj1);
15252 if (PyErr_Occurred()) SWIG_fail;
15253 }
15254 if (obj2) {
15255 {
15256 arg3 = &temp3;
15257 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15258 }
15259 }
15260 if (obj3) {
15261 {
15262 arg4 = &temp4;
15263 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15264 }
15265 }
15266 if (obj4) {
15267 arg5 = (long) SWIG_AsLong(obj4);
15268 if (PyErr_Occurred()) SWIG_fail;
15269 }
15270 if (obj5) {
15271 {
15272 arg6 = wxString_in_helper(obj5);
15273 if (arg6 == NULL) SWIG_fail;
15274 temp6 = True;
15275 }
15276 }
15277 {
15278 PyThreadState* __tstate = wxPyBeginAllowThreads();
15279 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15280
15281 wxPyEndAllowThreads(__tstate);
15282 if (PyErr_Occurred()) SWIG_fail;
15283 }
15284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15285 {
15286 if (temp6)
15287 delete arg6;
15288 }
15289 return resultobj;
15290 fail:
15291 {
15292 if (temp6)
15293 delete arg6;
15294 }
15295 return NULL;
15296 }
15297
15298
15299 static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15300 PyObject *resultobj;
15301 wxListbook *result;
15302 char *kwnames[] = {
15303 NULL
15304 };
15305
15306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15307 {
15308 PyThreadState* __tstate = wxPyBeginAllowThreads();
15309 result = (wxListbook *)new wxListbook();
15310
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15315 return resultobj;
15316 fail:
15317 return NULL;
15318 }
15319
15320
15321 static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
15322 PyObject *resultobj;
15323 wxListbook *arg1 = (wxListbook *) 0 ;
15324 wxWindow *arg2 = (wxWindow *) 0 ;
15325 int arg3 ;
15326 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15327 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15328 wxSize const &arg5_defvalue = wxDefaultSize ;
15329 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15330 long arg6 = (long) 0 ;
15331 wxString const &arg7_defvalue = wxPyEmptyString ;
15332 wxString *arg7 = (wxString *) &arg7_defvalue ;
15333 bool result;
15334 wxPoint temp4 ;
15335 wxSize temp5 ;
15336 bool temp7 = False ;
15337 PyObject * obj0 = 0 ;
15338 PyObject * obj1 = 0 ;
15339 PyObject * obj2 = 0 ;
15340 PyObject * obj3 = 0 ;
15341 PyObject * obj4 = 0 ;
15342 PyObject * obj5 = 0 ;
15343 PyObject * obj6 = 0 ;
15344 char *kwnames[] = {
15345 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15346 };
15347
15348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15351 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15353 arg3 = (int) SWIG_AsInt(obj2);
15354 if (PyErr_Occurred()) SWIG_fail;
15355 if (obj3) {
15356 {
15357 arg4 = &temp4;
15358 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15359 }
15360 }
15361 if (obj4) {
15362 {
15363 arg5 = &temp5;
15364 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15365 }
15366 }
15367 if (obj5) {
15368 arg6 = (long) SWIG_AsLong(obj5);
15369 if (PyErr_Occurred()) SWIG_fail;
15370 }
15371 if (obj6) {
15372 {
15373 arg7 = wxString_in_helper(obj6);
15374 if (arg7 == NULL) SWIG_fail;
15375 temp7 = True;
15376 }
15377 }
15378 {
15379 PyThreadState* __tstate = wxPyBeginAllowThreads();
15380 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15381
15382 wxPyEndAllowThreads(__tstate);
15383 if (PyErr_Occurred()) SWIG_fail;
15384 }
15385 {
15386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15387 }
15388 {
15389 if (temp7)
15390 delete arg7;
15391 }
15392 return resultobj;
15393 fail:
15394 {
15395 if (temp7)
15396 delete arg7;
15397 }
15398 return NULL;
15399 }
15400
15401
15402 static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
15403 PyObject *resultobj;
15404 wxListbook *arg1 = (wxListbook *) 0 ;
15405 bool result;
15406 PyObject * obj0 = 0 ;
15407 char *kwnames[] = {
15408 (char *) "self", NULL
15409 };
15410
15411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15414 {
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
15416 result = (bool)((wxListbook const *)arg1)->IsVertical();
15417
15418 wxPyEndAllowThreads(__tstate);
15419 if (PyErr_Occurred()) SWIG_fail;
15420 }
15421 {
15422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15423 }
15424 return resultobj;
15425 fail:
15426 return NULL;
15427 }
15428
15429
15430 static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
15431 PyObject *obj;
15432 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15433 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15434 Py_INCREF(obj);
15435 return Py_BuildValue((char *)"");
15436 }
15437 static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15438 PyObject *resultobj;
15439 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15440 int arg2 = (int) 0 ;
15441 int arg3 = (int) -1 ;
15442 int arg4 = (int) -1 ;
15443 wxListbookEvent *result;
15444 PyObject * obj0 = 0 ;
15445 PyObject * obj1 = 0 ;
15446 PyObject * obj2 = 0 ;
15447 PyObject * obj3 = 0 ;
15448 char *kwnames[] = {
15449 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15450 };
15451
15452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15453 if (obj0) {
15454 arg1 = (wxEventType) SWIG_AsInt(obj0);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 if (obj1) {
15458 arg2 = (int) SWIG_AsInt(obj1);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 if (obj2) {
15462 arg3 = (int) SWIG_AsInt(obj2);
15463 if (PyErr_Occurred()) SWIG_fail;
15464 }
15465 if (obj3) {
15466 arg4 = (int) SWIG_AsInt(obj3);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 {
15470 PyThreadState* __tstate = wxPyBeginAllowThreads();
15471 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15472
15473 wxPyEndAllowThreads(__tstate);
15474 if (PyErr_Occurred()) SWIG_fail;
15475 }
15476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15477 return resultobj;
15478 fail:
15479 return NULL;
15480 }
15481
15482
15483 static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
15484 PyObject *obj;
15485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15486 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15487 Py_INCREF(obj);
15488 return Py_BuildValue((char *)"");
15489 }
15490 static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15491 PyObject *resultobj;
15492 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15493 wxBookCtrlSizer *result;
15494 PyObject * obj0 = 0 ;
15495 char *kwnames[] = {
15496 (char *) "nb", NULL
15497 };
15498
15499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15502 {
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15505
15506 wxPyEndAllowThreads(__tstate);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15510 return resultobj;
15511 fail:
15512 return NULL;
15513 }
15514
15515
15516 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj;
15518 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15519 PyObject * obj0 = 0 ;
15520 char *kwnames[] = {
15521 (char *) "self", NULL
15522 };
15523
15524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15527 {
15528 PyThreadState* __tstate = wxPyBeginAllowThreads();
15529 (arg1)->RecalcSizes();
15530
15531 wxPyEndAllowThreads(__tstate);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 Py_INCREF(Py_None); resultobj = Py_None;
15535 return resultobj;
15536 fail:
15537 return NULL;
15538 }
15539
15540
15541 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj;
15543 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15544 wxSize result;
15545 PyObject * obj0 = 0 ;
15546 char *kwnames[] = {
15547 (char *) "self", NULL
15548 };
15549
15550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
15551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15553 {
15554 PyThreadState* __tstate = wxPyBeginAllowThreads();
15555 result = (arg1)->CalcMin();
15556
15557 wxPyEndAllowThreads(__tstate);
15558 if (PyErr_Occurred()) SWIG_fail;
15559 }
15560 {
15561 wxSize * resultptr;
15562 resultptr = new wxSize((wxSize &) result);
15563 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15564 }
15565 return resultobj;
15566 fail:
15567 return NULL;
15568 }
15569
15570
15571 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15572 PyObject *resultobj;
15573 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15574 wxBookCtrl *result;
15575 PyObject * obj0 = 0 ;
15576 char *kwnames[] = {
15577 (char *) "self", NULL
15578 };
15579
15580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
15581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15583 {
15584 PyThreadState* __tstate = wxPyBeginAllowThreads();
15585 result = (wxBookCtrl *)(arg1)->GetControl();
15586
15587 wxPyEndAllowThreads(__tstate);
15588 if (PyErr_Occurred()) SWIG_fail;
15589 }
15590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
15591 return resultobj;
15592 fail:
15593 return NULL;
15594 }
15595
15596
15597 static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
15598 PyObject *obj;
15599 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15600 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
15601 Py_INCREF(obj);
15602 return Py_BuildValue((char *)"");
15603 }
15604 static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15605 PyObject *resultobj;
15606 wxNotebook *arg1 = (wxNotebook *) 0 ;
15607 wxNotebookSizer *result;
15608 PyObject * obj0 = 0 ;
15609 char *kwnames[] = {
15610 (char *) "nb", NULL
15611 };
15612
15613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
15614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15616 {
15617 PyThreadState* __tstate = wxPyBeginAllowThreads();
15618 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
15619
15620 wxPyEndAllowThreads(__tstate);
15621 if (PyErr_Occurred()) SWIG_fail;
15622 }
15623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
15624 return resultobj;
15625 fail:
15626 return NULL;
15627 }
15628
15629
15630 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15631 PyObject *resultobj;
15632 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15633 PyObject * obj0 = 0 ;
15634 char *kwnames[] = {
15635 (char *) "self", NULL
15636 };
15637
15638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15641 {
15642 PyThreadState* __tstate = wxPyBeginAllowThreads();
15643 (arg1)->RecalcSizes();
15644
15645 wxPyEndAllowThreads(__tstate);
15646 if (PyErr_Occurred()) SWIG_fail;
15647 }
15648 Py_INCREF(Py_None); resultobj = Py_None;
15649 return resultobj;
15650 fail:
15651 return NULL;
15652 }
15653
15654
15655 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15656 PyObject *resultobj;
15657 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15658 wxSize result;
15659 PyObject * obj0 = 0 ;
15660 char *kwnames[] = {
15661 (char *) "self", NULL
15662 };
15663
15664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
15665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15667 {
15668 PyThreadState* __tstate = wxPyBeginAllowThreads();
15669 result = (arg1)->CalcMin();
15670
15671 wxPyEndAllowThreads(__tstate);
15672 if (PyErr_Occurred()) SWIG_fail;
15673 }
15674 {
15675 wxSize * resultptr;
15676 resultptr = new wxSize((wxSize &) result);
15677 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15678 }
15679 return resultobj;
15680 fail:
15681 return NULL;
15682 }
15683
15684
15685 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
15686 PyObject *resultobj;
15687 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15688 wxNotebook *result;
15689 PyObject * obj0 = 0 ;
15690 char *kwnames[] = {
15691 (char *) "self", NULL
15692 };
15693
15694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
15695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15697 {
15698 PyThreadState* __tstate = wxPyBeginAllowThreads();
15699 result = (wxNotebook *)(arg1)->GetNotebook();
15700
15701 wxPyEndAllowThreads(__tstate);
15702 if (PyErr_Occurred()) SWIG_fail;
15703 }
15704 {
15705 resultobj = wxPyMake_wxObject(result);
15706 }
15707 return resultobj;
15708 fail:
15709 return NULL;
15710 }
15711
15712
15713 static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
15714 PyObject *obj;
15715 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15716 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
15717 Py_INCREF(obj);
15718 return Py_BuildValue((char *)"");
15719 }
15720 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
15721 PyObject *resultobj;
15722 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15723 int result;
15724 PyObject * obj0 = 0 ;
15725 char *kwnames[] = {
15726 (char *) "self", NULL
15727 };
15728
15729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
15730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15732 {
15733 PyThreadState* __tstate = wxPyBeginAllowThreads();
15734 result = (int)(arg1)->GetId();
15735
15736 wxPyEndAllowThreads(__tstate);
15737 if (PyErr_Occurred()) SWIG_fail;
15738 }
15739 resultobj = SWIG_FromInt((int)result);
15740 return resultobj;
15741 fail:
15742 return NULL;
15743 }
15744
15745
15746 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15747 PyObject *resultobj;
15748 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15749 wxControl *result;
15750 PyObject * obj0 = 0 ;
15751 char *kwnames[] = {
15752 (char *) "self", NULL
15753 };
15754
15755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
15756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15758 {
15759 PyThreadState* __tstate = wxPyBeginAllowThreads();
15760 result = (wxControl *)(arg1)->GetControl();
15761
15762 wxPyEndAllowThreads(__tstate);
15763 if (PyErr_Occurred()) SWIG_fail;
15764 }
15765 {
15766 resultobj = wxPyMake_wxObject(result);
15767 }
15768 return resultobj;
15769 fail:
15770 return NULL;
15771 }
15772
15773
15774 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
15775 PyObject *resultobj;
15776 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15777 wxToolBarBase *result;
15778 PyObject * obj0 = 0 ;
15779 char *kwnames[] = {
15780 (char *) "self", NULL
15781 };
15782
15783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
15784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15786 {
15787 PyThreadState* __tstate = wxPyBeginAllowThreads();
15788 result = (wxToolBarBase *)(arg1)->GetToolBar();
15789
15790 wxPyEndAllowThreads(__tstate);
15791 if (PyErr_Occurred()) SWIG_fail;
15792 }
15793 {
15794 resultobj = wxPyMake_wxObject(result);
15795 }
15796 return resultobj;
15797 fail:
15798 return NULL;
15799 }
15800
15801
15802 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
15803 PyObject *resultobj;
15804 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15805 int result;
15806 PyObject * obj0 = 0 ;
15807 char *kwnames[] = {
15808 (char *) "self", NULL
15809 };
15810
15811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
15812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15814 {
15815 PyThreadState* __tstate = wxPyBeginAllowThreads();
15816 result = (int)(arg1)->IsButton();
15817
15818 wxPyEndAllowThreads(__tstate);
15819 if (PyErr_Occurred()) SWIG_fail;
15820 }
15821 resultobj = SWIG_FromInt((int)result);
15822 return resultobj;
15823 fail:
15824 return NULL;
15825 }
15826
15827
15828 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15829 PyObject *resultobj;
15830 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15831 int result;
15832 PyObject * obj0 = 0 ;
15833 char *kwnames[] = {
15834 (char *) "self", NULL
15835 };
15836
15837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
15838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15840 {
15841 PyThreadState* __tstate = wxPyBeginAllowThreads();
15842 result = (int)(arg1)->IsControl();
15843
15844 wxPyEndAllowThreads(__tstate);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 resultobj = SWIG_FromInt((int)result);
15848 return resultobj;
15849 fail:
15850 return NULL;
15851 }
15852
15853
15854 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
15855 PyObject *resultobj;
15856 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15857 int result;
15858 PyObject * obj0 = 0 ;
15859 char *kwnames[] = {
15860 (char *) "self", NULL
15861 };
15862
15863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
15864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15866 {
15867 PyThreadState* __tstate = wxPyBeginAllowThreads();
15868 result = (int)(arg1)->IsSeparator();
15869
15870 wxPyEndAllowThreads(__tstate);
15871 if (PyErr_Occurred()) SWIG_fail;
15872 }
15873 resultobj = SWIG_FromInt((int)result);
15874 return resultobj;
15875 fail:
15876 return NULL;
15877 }
15878
15879
15880 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15881 PyObject *resultobj;
15882 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15883 int result;
15884 PyObject * obj0 = 0 ;
15885 char *kwnames[] = {
15886 (char *) "self", NULL
15887 };
15888
15889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
15890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15892 {
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = (int)(arg1)->GetStyle();
15895
15896 wxPyEndAllowThreads(__tstate);
15897 if (PyErr_Occurred()) SWIG_fail;
15898 }
15899 resultobj = SWIG_FromInt((int)result);
15900 return resultobj;
15901 fail:
15902 return NULL;
15903 }
15904
15905
15906 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
15907 PyObject *resultobj;
15908 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15909 int result;
15910 PyObject * obj0 = 0 ;
15911 char *kwnames[] = {
15912 (char *) "self", NULL
15913 };
15914
15915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
15916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15918 {
15919 PyThreadState* __tstate = wxPyBeginAllowThreads();
15920 result = (int)(arg1)->GetKind();
15921
15922 wxPyEndAllowThreads(__tstate);
15923 if (PyErr_Occurred()) SWIG_fail;
15924 }
15925 resultobj = SWIG_FromInt((int)result);
15926 return resultobj;
15927 fail:
15928 return NULL;
15929 }
15930
15931
15932 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
15933 PyObject *resultobj;
15934 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15935 bool result;
15936 PyObject * obj0 = 0 ;
15937 char *kwnames[] = {
15938 (char *) "self", NULL
15939 };
15940
15941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
15942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15944 {
15945 PyThreadState* __tstate = wxPyBeginAllowThreads();
15946 result = (bool)(arg1)->IsEnabled();
15947
15948 wxPyEndAllowThreads(__tstate);
15949 if (PyErr_Occurred()) SWIG_fail;
15950 }
15951 {
15952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15953 }
15954 return resultobj;
15955 fail:
15956 return NULL;
15957 }
15958
15959
15960 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15961 PyObject *resultobj;
15962 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15963 bool result;
15964 PyObject * obj0 = 0 ;
15965 char *kwnames[] = {
15966 (char *) "self", NULL
15967 };
15968
15969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
15970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15972 {
15973 PyThreadState* __tstate = wxPyBeginAllowThreads();
15974 result = (bool)(arg1)->IsToggled();
15975
15976 wxPyEndAllowThreads(__tstate);
15977 if (PyErr_Occurred()) SWIG_fail;
15978 }
15979 {
15980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15981 }
15982 return resultobj;
15983 fail:
15984 return NULL;
15985 }
15986
15987
15988 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15989 PyObject *resultobj;
15990 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15991 bool result;
15992 PyObject * obj0 = 0 ;
15993 char *kwnames[] = {
15994 (char *) "self", NULL
15995 };
15996
15997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
15998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16000 {
16001 PyThreadState* __tstate = wxPyBeginAllowThreads();
16002 result = (bool)(arg1)->CanBeToggled();
16003
16004 wxPyEndAllowThreads(__tstate);
16005 if (PyErr_Occurred()) SWIG_fail;
16006 }
16007 {
16008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16009 }
16010 return resultobj;
16011 fail:
16012 return NULL;
16013 }
16014
16015
16016 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16017 PyObject *resultobj;
16018 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16019 wxBitmap *result;
16020 PyObject * obj0 = 0 ;
16021 char *kwnames[] = {
16022 (char *) "self", NULL
16023 };
16024
16025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16028 {
16029 PyThreadState* __tstate = wxPyBeginAllowThreads();
16030 {
16031 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16032 result = (wxBitmap *) &_result_ref;
16033 }
16034
16035 wxPyEndAllowThreads(__tstate);
16036 if (PyErr_Occurred()) SWIG_fail;
16037 }
16038 {
16039 wxBitmap* resultptr = new wxBitmap(*result);
16040 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16041 }
16042 return resultobj;
16043 fail:
16044 return NULL;
16045 }
16046
16047
16048 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16049 PyObject *resultobj;
16050 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16051 wxBitmap *result;
16052 PyObject * obj0 = 0 ;
16053 char *kwnames[] = {
16054 (char *) "self", NULL
16055 };
16056
16057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16060 {
16061 PyThreadState* __tstate = wxPyBeginAllowThreads();
16062 {
16063 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16064 result = (wxBitmap *) &_result_ref;
16065 }
16066
16067 wxPyEndAllowThreads(__tstate);
16068 if (PyErr_Occurred()) SWIG_fail;
16069 }
16070 {
16071 wxBitmap* resultptr = new wxBitmap(*result);
16072 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16073 }
16074 return resultobj;
16075 fail:
16076 return NULL;
16077 }
16078
16079
16080 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16081 PyObject *resultobj;
16082 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16083 wxBitmap result;
16084 PyObject * obj0 = 0 ;
16085 char *kwnames[] = {
16086 (char *) "self", NULL
16087 };
16088
16089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16092 {
16093 PyThreadState* __tstate = wxPyBeginAllowThreads();
16094 result = (arg1)->GetBitmap();
16095
16096 wxPyEndAllowThreads(__tstate);
16097 if (PyErr_Occurred()) SWIG_fail;
16098 }
16099 {
16100 wxBitmap * resultptr;
16101 resultptr = new wxBitmap((wxBitmap &) result);
16102 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16103 }
16104 return resultobj;
16105 fail:
16106 return NULL;
16107 }
16108
16109
16110 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16111 PyObject *resultobj;
16112 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16113 wxString result;
16114 PyObject * obj0 = 0 ;
16115 char *kwnames[] = {
16116 (char *) "self", NULL
16117 };
16118
16119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16122 {
16123 PyThreadState* __tstate = wxPyBeginAllowThreads();
16124 result = (arg1)->GetLabel();
16125
16126 wxPyEndAllowThreads(__tstate);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 }
16129 {
16130 #if wxUSE_UNICODE
16131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16132 #else
16133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16134 #endif
16135 }
16136 return resultobj;
16137 fail:
16138 return NULL;
16139 }
16140
16141
16142 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16143 PyObject *resultobj;
16144 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16145 wxString result;
16146 PyObject * obj0 = 0 ;
16147 char *kwnames[] = {
16148 (char *) "self", NULL
16149 };
16150
16151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16154 {
16155 PyThreadState* __tstate = wxPyBeginAllowThreads();
16156 result = (arg1)->GetShortHelp();
16157
16158 wxPyEndAllowThreads(__tstate);
16159 if (PyErr_Occurred()) SWIG_fail;
16160 }
16161 {
16162 #if wxUSE_UNICODE
16163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16164 #else
16165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16166 #endif
16167 }
16168 return resultobj;
16169 fail:
16170 return NULL;
16171 }
16172
16173
16174 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16175 PyObject *resultobj;
16176 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16177 wxString result;
16178 PyObject * obj0 = 0 ;
16179 char *kwnames[] = {
16180 (char *) "self", NULL
16181 };
16182
16183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16186 {
16187 PyThreadState* __tstate = wxPyBeginAllowThreads();
16188 result = (arg1)->GetLongHelp();
16189
16190 wxPyEndAllowThreads(__tstate);
16191 if (PyErr_Occurred()) SWIG_fail;
16192 }
16193 {
16194 #if wxUSE_UNICODE
16195 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16196 #else
16197 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16198 #endif
16199 }
16200 return resultobj;
16201 fail:
16202 return NULL;
16203 }
16204
16205
16206 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
16207 PyObject *resultobj;
16208 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16209 bool arg2 ;
16210 bool result;
16211 PyObject * obj0 = 0 ;
16212 PyObject * obj1 = 0 ;
16213 char *kwnames[] = {
16214 (char *) "self",(char *) "enable", NULL
16215 };
16216
16217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16220 arg2 = (bool) SWIG_AsBool(obj1);
16221 if (PyErr_Occurred()) SWIG_fail;
16222 {
16223 PyThreadState* __tstate = wxPyBeginAllowThreads();
16224 result = (bool)(arg1)->Enable(arg2);
16225
16226 wxPyEndAllowThreads(__tstate);
16227 if (PyErr_Occurred()) SWIG_fail;
16228 }
16229 {
16230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16231 }
16232 return resultobj;
16233 fail:
16234 return NULL;
16235 }
16236
16237
16238 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16239 PyObject *resultobj;
16240 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16241 PyObject * obj0 = 0 ;
16242 char *kwnames[] = {
16243 (char *) "self", NULL
16244 };
16245
16246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16249 {
16250 PyThreadState* __tstate = wxPyBeginAllowThreads();
16251 (arg1)->Toggle();
16252
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 Py_INCREF(Py_None); resultobj = Py_None;
16257 return resultobj;
16258 fail:
16259 return NULL;
16260 }
16261
16262
16263 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16264 PyObject *resultobj;
16265 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16266 bool arg2 ;
16267 bool result;
16268 PyObject * obj0 = 0 ;
16269 PyObject * obj1 = 0 ;
16270 char *kwnames[] = {
16271 (char *) "self",(char *) "toggle", NULL
16272 };
16273
16274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16277 arg2 = (bool) SWIG_AsBool(obj1);
16278 if (PyErr_Occurred()) SWIG_fail;
16279 {
16280 PyThreadState* __tstate = wxPyBeginAllowThreads();
16281 result = (bool)(arg1)->SetToggle(arg2);
16282
16283 wxPyEndAllowThreads(__tstate);
16284 if (PyErr_Occurred()) SWIG_fail;
16285 }
16286 {
16287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16288 }
16289 return resultobj;
16290 fail:
16291 return NULL;
16292 }
16293
16294
16295 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16296 PyObject *resultobj;
16297 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16298 wxString *arg2 = 0 ;
16299 bool result;
16300 bool temp2 = False ;
16301 PyObject * obj0 = 0 ;
16302 PyObject * obj1 = 0 ;
16303 char *kwnames[] = {
16304 (char *) "self",(char *) "help", NULL
16305 };
16306
16307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16310 {
16311 arg2 = wxString_in_helper(obj1);
16312 if (arg2 == NULL) SWIG_fail;
16313 temp2 = True;
16314 }
16315 {
16316 PyThreadState* __tstate = wxPyBeginAllowThreads();
16317 result = (bool)(arg1)->SetShortHelp((wxString const &)*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 {
16326 if (temp2)
16327 delete arg2;
16328 }
16329 return resultobj;
16330 fail:
16331 {
16332 if (temp2)
16333 delete arg2;
16334 }
16335 return NULL;
16336 }
16337
16338
16339 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16340 PyObject *resultobj;
16341 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16342 wxString *arg2 = 0 ;
16343 bool result;
16344 bool temp2 = False ;
16345 PyObject * obj0 = 0 ;
16346 PyObject * obj1 = 0 ;
16347 char *kwnames[] = {
16348 (char *) "self",(char *) "help", NULL
16349 };
16350
16351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16354 {
16355 arg2 = wxString_in_helper(obj1);
16356 if (arg2 == NULL) SWIG_fail;
16357 temp2 = True;
16358 }
16359 {
16360 PyThreadState* __tstate = wxPyBeginAllowThreads();
16361 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16362
16363 wxPyEndAllowThreads(__tstate);
16364 if (PyErr_Occurred()) SWIG_fail;
16365 }
16366 {
16367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16368 }
16369 {
16370 if (temp2)
16371 delete arg2;
16372 }
16373 return resultobj;
16374 fail:
16375 {
16376 if (temp2)
16377 delete arg2;
16378 }
16379 return NULL;
16380 }
16381
16382
16383 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16384 PyObject *resultobj;
16385 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16386 wxBitmap *arg2 = 0 ;
16387 PyObject * obj0 = 0 ;
16388 PyObject * obj1 = 0 ;
16389 char *kwnames[] = {
16390 (char *) "self",(char *) "bmp", NULL
16391 };
16392
16393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16396 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16397 SWIG_POINTER_EXCEPTION | 0)) == -1)
16398 SWIG_fail;
16399 if (arg2 == NULL) {
16400 PyErr_SetString(PyExc_TypeError,"null reference");
16401 SWIG_fail;
16402 }
16403 {
16404 PyThreadState* __tstate = wxPyBeginAllowThreads();
16405 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16406
16407 wxPyEndAllowThreads(__tstate);
16408 if (PyErr_Occurred()) SWIG_fail;
16409 }
16410 Py_INCREF(Py_None); resultobj = Py_None;
16411 return resultobj;
16412 fail:
16413 return NULL;
16414 }
16415
16416
16417 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16418 PyObject *resultobj;
16419 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16420 wxBitmap *arg2 = 0 ;
16421 PyObject * obj0 = 0 ;
16422 PyObject * obj1 = 0 ;
16423 char *kwnames[] = {
16424 (char *) "self",(char *) "bmp", NULL
16425 };
16426
16427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16430 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16431 SWIG_POINTER_EXCEPTION | 0)) == -1)
16432 SWIG_fail;
16433 if (arg2 == NULL) {
16434 PyErr_SetString(PyExc_TypeError,"null reference");
16435 SWIG_fail;
16436 }
16437 {
16438 PyThreadState* __tstate = wxPyBeginAllowThreads();
16439 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16440
16441 wxPyEndAllowThreads(__tstate);
16442 if (PyErr_Occurred()) SWIG_fail;
16443 }
16444 Py_INCREF(Py_None); resultobj = Py_None;
16445 return resultobj;
16446 fail:
16447 return NULL;
16448 }
16449
16450
16451 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16452 PyObject *resultobj;
16453 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16454 wxString *arg2 = 0 ;
16455 bool temp2 = False ;
16456 PyObject * obj0 = 0 ;
16457 PyObject * obj1 = 0 ;
16458 char *kwnames[] = {
16459 (char *) "self",(char *) "label", NULL
16460 };
16461
16462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16465 {
16466 arg2 = wxString_in_helper(obj1);
16467 if (arg2 == NULL) SWIG_fail;
16468 temp2 = True;
16469 }
16470 {
16471 PyThreadState* __tstate = wxPyBeginAllowThreads();
16472 (arg1)->SetLabel((wxString const &)*arg2);
16473
16474 wxPyEndAllowThreads(__tstate);
16475 if (PyErr_Occurred()) SWIG_fail;
16476 }
16477 Py_INCREF(Py_None); resultobj = Py_None;
16478 {
16479 if (temp2)
16480 delete arg2;
16481 }
16482 return resultobj;
16483 fail:
16484 {
16485 if (temp2)
16486 delete arg2;
16487 }
16488 return NULL;
16489 }
16490
16491
16492 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
16493 PyObject *resultobj;
16494 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16495 PyObject * obj0 = 0 ;
16496 char *kwnames[] = {
16497 (char *) "self", NULL
16498 };
16499
16500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16503 {
16504 PyThreadState* __tstate = wxPyBeginAllowThreads();
16505 (arg1)->Detach();
16506
16507 wxPyEndAllowThreads(__tstate);
16508 if (PyErr_Occurred()) SWIG_fail;
16509 }
16510 Py_INCREF(Py_None); resultobj = Py_None;
16511 return resultobj;
16512 fail:
16513 return NULL;
16514 }
16515
16516
16517 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
16518 PyObject *resultobj;
16519 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16520 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16521 PyObject * obj0 = 0 ;
16522 PyObject * obj1 = 0 ;
16523 char *kwnames[] = {
16524 (char *) "self",(char *) "tbar", NULL
16525 };
16526
16527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16532 {
16533 PyThreadState* __tstate = wxPyBeginAllowThreads();
16534 (arg1)->Attach(arg2);
16535
16536 wxPyEndAllowThreads(__tstate);
16537 if (PyErr_Occurred()) SWIG_fail;
16538 }
16539 Py_INCREF(Py_None); resultobj = Py_None;
16540 return resultobj;
16541 fail:
16542 return NULL;
16543 }
16544
16545
16546 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16547 PyObject *resultobj;
16548 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16549 PyObject *result;
16550 PyObject * obj0 = 0 ;
16551 char *kwnames[] = {
16552 (char *) "self", NULL
16553 };
16554
16555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
16556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16558 {
16559 PyThreadState* __tstate = wxPyBeginAllowThreads();
16560 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
16561
16562 wxPyEndAllowThreads(__tstate);
16563 if (PyErr_Occurred()) SWIG_fail;
16564 }
16565 resultobj = result;
16566 return resultobj;
16567 fail:
16568 return NULL;
16569 }
16570
16571
16572 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16573 PyObject *resultobj;
16574 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16575 PyObject *arg2 = (PyObject *) 0 ;
16576 PyObject * obj0 = 0 ;
16577 PyObject * obj1 = 0 ;
16578 char *kwnames[] = {
16579 (char *) "self",(char *) "clientData", NULL
16580 };
16581
16582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
16583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16585 arg2 = obj1;
16586 {
16587 PyThreadState* __tstate = wxPyBeginAllowThreads();
16588 wxToolBarToolBase_SetClientData(arg1,arg2);
16589
16590 wxPyEndAllowThreads(__tstate);
16591 if (PyErr_Occurred()) SWIG_fail;
16592 }
16593 Py_INCREF(Py_None); resultobj = Py_None;
16594 return resultobj;
16595 fail:
16596 return NULL;
16597 }
16598
16599
16600 static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
16601 PyObject *obj;
16602 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16603 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
16604 Py_INCREF(obj);
16605 return Py_BuildValue((char *)"");
16606 }
16607 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16608 PyObject *resultobj;
16609 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16610 int arg2 ;
16611 wxString *arg3 = 0 ;
16612 wxBitmap *arg4 = 0 ;
16613 wxBitmap const &arg5_defvalue = wxNullBitmap ;
16614 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
16615 int arg6 = (int) wxITEM_NORMAL ;
16616 wxString const &arg7_defvalue = wxPyEmptyString ;
16617 wxString *arg7 = (wxString *) &arg7_defvalue ;
16618 wxString const &arg8_defvalue = wxPyEmptyString ;
16619 wxString *arg8 = (wxString *) &arg8_defvalue ;
16620 PyObject *arg9 = (PyObject *) NULL ;
16621 wxToolBarToolBase *result;
16622 bool temp3 = False ;
16623 bool temp7 = False ;
16624 bool temp8 = False ;
16625 PyObject * obj0 = 0 ;
16626 PyObject * obj1 = 0 ;
16627 PyObject * obj2 = 0 ;
16628 PyObject * obj3 = 0 ;
16629 PyObject * obj4 = 0 ;
16630 PyObject * obj5 = 0 ;
16631 PyObject * obj6 = 0 ;
16632 PyObject * obj7 = 0 ;
16633 PyObject * obj8 = 0 ;
16634 char *kwnames[] = {
16635 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16636 };
16637
16638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
16639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16641 arg2 = (int) SWIG_AsInt(obj1);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 {
16644 arg3 = wxString_in_helper(obj2);
16645 if (arg3 == NULL) SWIG_fail;
16646 temp3 = True;
16647 }
16648 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16649 SWIG_POINTER_EXCEPTION | 0)) == -1)
16650 SWIG_fail;
16651 if (arg4 == NULL) {
16652 PyErr_SetString(PyExc_TypeError,"null reference");
16653 SWIG_fail;
16654 }
16655 if (obj4) {
16656 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16657 SWIG_POINTER_EXCEPTION | 0)) == -1)
16658 SWIG_fail;
16659 if (arg5 == NULL) {
16660 PyErr_SetString(PyExc_TypeError,"null reference");
16661 SWIG_fail;
16662 }
16663 }
16664 if (obj5) {
16665 arg6 = (wxItemKind) SWIG_AsInt(obj5);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 if (obj6) {
16669 {
16670 arg7 = wxString_in_helper(obj6);
16671 if (arg7 == NULL) SWIG_fail;
16672 temp7 = True;
16673 }
16674 }
16675 if (obj7) {
16676 {
16677 arg8 = wxString_in_helper(obj7);
16678 if (arg8 == NULL) SWIG_fail;
16679 temp8 = True;
16680 }
16681 }
16682 if (obj8) {
16683 arg9 = obj8;
16684 }
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
16688
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 {
16693 resultobj = wxPyMake_wxObject(result);
16694 }
16695 {
16696 if (temp3)
16697 delete arg3;
16698 }
16699 {
16700 if (temp7)
16701 delete arg7;
16702 }
16703 {
16704 if (temp8)
16705 delete arg8;
16706 }
16707 return resultobj;
16708 fail:
16709 {
16710 if (temp3)
16711 delete arg3;
16712 }
16713 {
16714 if (temp7)
16715 delete arg7;
16716 }
16717 {
16718 if (temp8)
16719 delete arg8;
16720 }
16721 return NULL;
16722 }
16723
16724
16725 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16726 PyObject *resultobj;
16727 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16728 size_t arg2 ;
16729 int arg3 ;
16730 wxString *arg4 = 0 ;
16731 wxBitmap *arg5 = 0 ;
16732 wxBitmap const &arg6_defvalue = wxNullBitmap ;
16733 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
16734 int arg7 = (int) wxITEM_NORMAL ;
16735 wxString const &arg8_defvalue = wxPyEmptyString ;
16736 wxString *arg8 = (wxString *) &arg8_defvalue ;
16737 wxString const &arg9_defvalue = wxPyEmptyString ;
16738 wxString *arg9 = (wxString *) &arg9_defvalue ;
16739 PyObject *arg10 = (PyObject *) NULL ;
16740 wxToolBarToolBase *result;
16741 bool temp4 = False ;
16742 bool temp8 = False ;
16743 bool temp9 = False ;
16744 PyObject * obj0 = 0 ;
16745 PyObject * obj1 = 0 ;
16746 PyObject * obj2 = 0 ;
16747 PyObject * obj3 = 0 ;
16748 PyObject * obj4 = 0 ;
16749 PyObject * obj5 = 0 ;
16750 PyObject * obj6 = 0 ;
16751 PyObject * obj7 = 0 ;
16752 PyObject * obj8 = 0 ;
16753 PyObject * obj9 = 0 ;
16754 char *kwnames[] = {
16755 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16756 };
16757
16758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
16759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16761 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16762 if (PyErr_Occurred()) SWIG_fail;
16763 arg3 = (int) SWIG_AsInt(obj2);
16764 if (PyErr_Occurred()) SWIG_fail;
16765 {
16766 arg4 = wxString_in_helper(obj3);
16767 if (arg4 == NULL) SWIG_fail;
16768 temp4 = True;
16769 }
16770 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16771 SWIG_POINTER_EXCEPTION | 0)) == -1)
16772 SWIG_fail;
16773 if (arg5 == NULL) {
16774 PyErr_SetString(PyExc_TypeError,"null reference");
16775 SWIG_fail;
16776 }
16777 if (obj5) {
16778 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
16779 SWIG_POINTER_EXCEPTION | 0)) == -1)
16780 SWIG_fail;
16781 if (arg6 == NULL) {
16782 PyErr_SetString(PyExc_TypeError,"null reference");
16783 SWIG_fail;
16784 }
16785 }
16786 if (obj6) {
16787 arg7 = (wxItemKind) SWIG_AsInt(obj6);
16788 if (PyErr_Occurred()) SWIG_fail;
16789 }
16790 if (obj7) {
16791 {
16792 arg8 = wxString_in_helper(obj7);
16793 if (arg8 == NULL) SWIG_fail;
16794 temp8 = True;
16795 }
16796 }
16797 if (obj8) {
16798 {
16799 arg9 = wxString_in_helper(obj8);
16800 if (arg9 == NULL) SWIG_fail;
16801 temp9 = True;
16802 }
16803 }
16804 if (obj9) {
16805 arg10 = obj9;
16806 }
16807 {
16808 PyThreadState* __tstate = wxPyBeginAllowThreads();
16809 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);
16810
16811 wxPyEndAllowThreads(__tstate);
16812 if (PyErr_Occurred()) SWIG_fail;
16813 }
16814 {
16815 resultobj = wxPyMake_wxObject(result);
16816 }
16817 {
16818 if (temp4)
16819 delete arg4;
16820 }
16821 {
16822 if (temp8)
16823 delete arg8;
16824 }
16825 {
16826 if (temp9)
16827 delete arg9;
16828 }
16829 return resultobj;
16830 fail:
16831 {
16832 if (temp4)
16833 delete arg4;
16834 }
16835 {
16836 if (temp8)
16837 delete arg8;
16838 }
16839 {
16840 if (temp9)
16841 delete arg9;
16842 }
16843 return NULL;
16844 }
16845
16846
16847 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16848 PyObject *resultobj;
16849 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16850 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
16851 wxToolBarToolBase *result;
16852 PyObject * obj0 = 0 ;
16853 PyObject * obj1 = 0 ;
16854 char *kwnames[] = {
16855 (char *) "self",(char *) "tool", NULL
16856 };
16857
16858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
16859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16861 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
16862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16863 {
16864 PyThreadState* __tstate = wxPyBeginAllowThreads();
16865 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
16866
16867 wxPyEndAllowThreads(__tstate);
16868 if (PyErr_Occurred()) SWIG_fail;
16869 }
16870 {
16871 resultobj = wxPyMake_wxObject(result);
16872 }
16873 return resultobj;
16874 fail:
16875 return NULL;
16876 }
16877
16878
16879 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16880 PyObject *resultobj;
16881 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16882 size_t arg2 ;
16883 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
16884 wxToolBarToolBase *result;
16885 PyObject * obj0 = 0 ;
16886 PyObject * obj1 = 0 ;
16887 PyObject * obj2 = 0 ;
16888 char *kwnames[] = {
16889 (char *) "self",(char *) "pos",(char *) "tool", NULL
16890 };
16891
16892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
16893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16895 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16896 if (PyErr_Occurred()) SWIG_fail;
16897 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
16898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
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_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16916 PyObject *resultobj;
16917 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16918 wxControl *arg2 = (wxControl *) 0 ;
16919 wxToolBarToolBase *result;
16920 PyObject * obj0 = 0 ;
16921 PyObject * obj1 = 0 ;
16922 char *kwnames[] = {
16923 (char *) "self",(char *) "control", NULL
16924 };
16925
16926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
16927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16929 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
16930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
16934
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 {
16939 resultobj = wxPyMake_wxObject(result);
16940 }
16941 return resultobj;
16942 fail:
16943 return NULL;
16944 }
16945
16946
16947 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16948 PyObject *resultobj;
16949 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16950 size_t arg2 ;
16951 wxControl *arg3 = (wxControl *) 0 ;
16952 wxToolBarToolBase *result;
16953 PyObject * obj0 = 0 ;
16954 PyObject * obj1 = 0 ;
16955 PyObject * obj2 = 0 ;
16956 char *kwnames[] = {
16957 (char *) "self",(char *) "pos",(char *) "control", NULL
16958 };
16959
16960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
16961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16963 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
16966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16967 {
16968 PyThreadState* __tstate = wxPyBeginAllowThreads();
16969 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
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_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16984 PyObject *resultobj;
16985 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16986 int arg2 ;
16987 wxControl *result;
16988 PyObject * obj0 = 0 ;
16989 PyObject * obj1 = 0 ;
16990 char *kwnames[] = {
16991 (char *) "self",(char *) "id", NULL
16992 };
16993
16994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
16995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16997 arg2 = (int) SWIG_AsInt(obj1);
16998 if (PyErr_Occurred()) SWIG_fail;
16999 {
17000 PyThreadState* __tstate = wxPyBeginAllowThreads();
17001 result = (wxControl *)(arg1)->FindControl(arg2);
17002
17003 wxPyEndAllowThreads(__tstate);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 }
17006 {
17007 resultobj = wxPyMake_wxObject(result);
17008 }
17009 return resultobj;
17010 fail:
17011 return NULL;
17012 }
17013
17014
17015 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17016 PyObject *resultobj;
17017 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17018 wxToolBarToolBase *result;
17019 PyObject * obj0 = 0 ;
17020 char *kwnames[] = {
17021 (char *) "self", NULL
17022 };
17023
17024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17027 {
17028 PyThreadState* __tstate = wxPyBeginAllowThreads();
17029 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17030
17031 wxPyEndAllowThreads(__tstate);
17032 if (PyErr_Occurred()) SWIG_fail;
17033 }
17034 {
17035 resultobj = wxPyMake_wxObject(result);
17036 }
17037 return resultobj;
17038 fail:
17039 return NULL;
17040 }
17041
17042
17043 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17044 PyObject *resultobj;
17045 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17046 size_t arg2 ;
17047 wxToolBarToolBase *result;
17048 PyObject * obj0 = 0 ;
17049 PyObject * obj1 = 0 ;
17050 char *kwnames[] = {
17051 (char *) "self",(char *) "pos", NULL
17052 };
17053
17054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17057 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17058 if (PyErr_Occurred()) SWIG_fail;
17059 {
17060 PyThreadState* __tstate = wxPyBeginAllowThreads();
17061 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17062
17063 wxPyEndAllowThreads(__tstate);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 {
17067 resultobj = wxPyMake_wxObject(result);
17068 }
17069 return resultobj;
17070 fail:
17071 return NULL;
17072 }
17073
17074
17075 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17076 PyObject *resultobj;
17077 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17078 int arg2 ;
17079 wxToolBarToolBase *result;
17080 PyObject * obj0 = 0 ;
17081 PyObject * obj1 = 0 ;
17082 char *kwnames[] = {
17083 (char *) "self",(char *) "id", NULL
17084 };
17085
17086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17089 arg2 = (int) SWIG_AsInt(obj1);
17090 if (PyErr_Occurred()) SWIG_fail;
17091 {
17092 PyThreadState* __tstate = wxPyBeginAllowThreads();
17093 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17094
17095 wxPyEndAllowThreads(__tstate);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 {
17099 resultobj = wxPyMake_wxObject(result);
17100 }
17101 return resultobj;
17102 fail:
17103 return NULL;
17104 }
17105
17106
17107 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17108 PyObject *resultobj;
17109 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17110 size_t arg2 ;
17111 bool result;
17112 PyObject * obj0 = 0 ;
17113 PyObject * obj1 = 0 ;
17114 char *kwnames[] = {
17115 (char *) "self",(char *) "pos", NULL
17116 };
17117
17118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17121 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17122 if (PyErr_Occurred()) SWIG_fail;
17123 {
17124 PyThreadState* __tstate = wxPyBeginAllowThreads();
17125 result = (bool)(arg1)->DeleteToolByPos(arg2);
17126
17127 wxPyEndAllowThreads(__tstate);
17128 if (PyErr_Occurred()) SWIG_fail;
17129 }
17130 {
17131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17132 }
17133 return resultobj;
17134 fail:
17135 return NULL;
17136 }
17137
17138
17139 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17140 PyObject *resultobj;
17141 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17142 int arg2 ;
17143 bool result;
17144 PyObject * obj0 = 0 ;
17145 PyObject * obj1 = 0 ;
17146 char *kwnames[] = {
17147 (char *) "self",(char *) "id", NULL
17148 };
17149
17150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17153 arg2 = (int) SWIG_AsInt(obj1);
17154 if (PyErr_Occurred()) SWIG_fail;
17155 {
17156 PyThreadState* __tstate = wxPyBeginAllowThreads();
17157 result = (bool)(arg1)->DeleteTool(arg2);
17158
17159 wxPyEndAllowThreads(__tstate);
17160 if (PyErr_Occurred()) SWIG_fail;
17161 }
17162 {
17163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17164 }
17165 return resultobj;
17166 fail:
17167 return NULL;
17168 }
17169
17170
17171 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
17172 PyObject *resultobj;
17173 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17174 PyObject * obj0 = 0 ;
17175 char *kwnames[] = {
17176 (char *) "self", NULL
17177 };
17178
17179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17182 {
17183 PyThreadState* __tstate = wxPyBeginAllowThreads();
17184 (arg1)->ClearTools();
17185
17186 wxPyEndAllowThreads(__tstate);
17187 if (PyErr_Occurred()) SWIG_fail;
17188 }
17189 Py_INCREF(Py_None); resultobj = Py_None;
17190 return resultobj;
17191 fail:
17192 return NULL;
17193 }
17194
17195
17196 static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
17197 PyObject *resultobj;
17198 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17199 bool result;
17200 PyObject * obj0 = 0 ;
17201 char *kwnames[] = {
17202 (char *) "self", NULL
17203 };
17204
17205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17208 {
17209 PyThreadState* __tstate = wxPyBeginAllowThreads();
17210 result = (bool)(arg1)->Realize();
17211
17212 wxPyEndAllowThreads(__tstate);
17213 if (PyErr_Occurred()) SWIG_fail;
17214 }
17215 {
17216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17217 }
17218 return resultobj;
17219 fail:
17220 return NULL;
17221 }
17222
17223
17224 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17225 PyObject *resultobj;
17226 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17227 int arg2 ;
17228 bool arg3 ;
17229 PyObject * obj0 = 0 ;
17230 PyObject * obj1 = 0 ;
17231 PyObject * obj2 = 0 ;
17232 char *kwnames[] = {
17233 (char *) "self",(char *) "id",(char *) "enable", NULL
17234 };
17235
17236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17239 arg2 = (int) SWIG_AsInt(obj1);
17240 if (PyErr_Occurred()) SWIG_fail;
17241 arg3 = (bool) SWIG_AsBool(obj2);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 {
17244 PyThreadState* __tstate = wxPyBeginAllowThreads();
17245 (arg1)->EnableTool(arg2,arg3);
17246
17247 wxPyEndAllowThreads(__tstate);
17248 if (PyErr_Occurred()) SWIG_fail;
17249 }
17250 Py_INCREF(Py_None); resultobj = Py_None;
17251 return resultobj;
17252 fail:
17253 return NULL;
17254 }
17255
17256
17257 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17258 PyObject *resultobj;
17259 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17260 int arg2 ;
17261 bool arg3 ;
17262 PyObject * obj0 = 0 ;
17263 PyObject * obj1 = 0 ;
17264 PyObject * obj2 = 0 ;
17265 char *kwnames[] = {
17266 (char *) "self",(char *) "id",(char *) "toggle", NULL
17267 };
17268
17269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17272 arg2 = (int) SWIG_AsInt(obj1);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 arg3 = (bool) SWIG_AsBool(obj2);
17275 if (PyErr_Occurred()) SWIG_fail;
17276 {
17277 PyThreadState* __tstate = wxPyBeginAllowThreads();
17278 (arg1)->ToggleTool(arg2,arg3);
17279
17280 wxPyEndAllowThreads(__tstate);
17281 if (PyErr_Occurred()) SWIG_fail;
17282 }
17283 Py_INCREF(Py_None); resultobj = Py_None;
17284 return resultobj;
17285 fail:
17286 return NULL;
17287 }
17288
17289
17290 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
17291 PyObject *resultobj;
17292 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17293 int arg2 ;
17294 bool arg3 ;
17295 PyObject * obj0 = 0 ;
17296 PyObject * obj1 = 0 ;
17297 PyObject * obj2 = 0 ;
17298 char *kwnames[] = {
17299 (char *) "self",(char *) "id",(char *) "toggle", NULL
17300 };
17301
17302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17305 arg2 = (int) SWIG_AsInt(obj1);
17306 if (PyErr_Occurred()) SWIG_fail;
17307 arg3 = (bool) SWIG_AsBool(obj2);
17308 if (PyErr_Occurred()) SWIG_fail;
17309 {
17310 PyThreadState* __tstate = wxPyBeginAllowThreads();
17311 (arg1)->SetToggle(arg2,arg3);
17312
17313 wxPyEndAllowThreads(__tstate);
17314 if (PyErr_Occurred()) SWIG_fail;
17315 }
17316 Py_INCREF(Py_None); resultobj = Py_None;
17317 return resultobj;
17318 fail:
17319 return NULL;
17320 }
17321
17322
17323 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17324 PyObject *resultobj;
17325 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17326 int arg2 ;
17327 PyObject *result;
17328 PyObject * obj0 = 0 ;
17329 PyObject * obj1 = 0 ;
17330 char *kwnames[] = {
17331 (char *) "self",(char *) "id", NULL
17332 };
17333
17334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17337 arg2 = (int) SWIG_AsInt(obj1);
17338 if (PyErr_Occurred()) SWIG_fail;
17339 {
17340 PyThreadState* __tstate = wxPyBeginAllowThreads();
17341 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17342
17343 wxPyEndAllowThreads(__tstate);
17344 if (PyErr_Occurred()) SWIG_fail;
17345 }
17346 resultobj = result;
17347 return resultobj;
17348 fail:
17349 return NULL;
17350 }
17351
17352
17353 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17354 PyObject *resultobj;
17355 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17356 int arg2 ;
17357 PyObject *arg3 = (PyObject *) 0 ;
17358 PyObject * obj0 = 0 ;
17359 PyObject * obj1 = 0 ;
17360 PyObject * obj2 = 0 ;
17361 char *kwnames[] = {
17362 (char *) "self",(char *) "id",(char *) "clientData", NULL
17363 };
17364
17365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17368 arg2 = (int) SWIG_AsInt(obj1);
17369 if (PyErr_Occurred()) SWIG_fail;
17370 arg3 = obj2;
17371 {
17372 PyThreadState* __tstate = wxPyBeginAllowThreads();
17373 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17374
17375 wxPyEndAllowThreads(__tstate);
17376 if (PyErr_Occurred()) SWIG_fail;
17377 }
17378 Py_INCREF(Py_None); resultobj = Py_None;
17379 return resultobj;
17380 fail:
17381 return NULL;
17382 }
17383
17384
17385 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17386 PyObject *resultobj;
17387 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17388 int arg2 ;
17389 int result;
17390 PyObject * obj0 = 0 ;
17391 PyObject * obj1 = 0 ;
17392 char *kwnames[] = {
17393 (char *) "self",(char *) "id", NULL
17394 };
17395
17396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17399 arg2 = (int) SWIG_AsInt(obj1);
17400 if (PyErr_Occurred()) SWIG_fail;
17401 {
17402 PyThreadState* __tstate = wxPyBeginAllowThreads();
17403 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17404
17405 wxPyEndAllowThreads(__tstate);
17406 if (PyErr_Occurred()) SWIG_fail;
17407 }
17408 resultobj = SWIG_FromInt((int)result);
17409 return resultobj;
17410 fail:
17411 return NULL;
17412 }
17413
17414
17415 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
17416 PyObject *resultobj;
17417 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17418 int arg2 ;
17419 bool result;
17420 PyObject * obj0 = 0 ;
17421 PyObject * obj1 = 0 ;
17422 char *kwnames[] = {
17423 (char *) "self",(char *) "id", NULL
17424 };
17425
17426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17429 arg2 = (int) SWIG_AsInt(obj1);
17430 if (PyErr_Occurred()) SWIG_fail;
17431 {
17432 PyThreadState* __tstate = wxPyBeginAllowThreads();
17433 result = (bool)(arg1)->GetToolState(arg2);
17434
17435 wxPyEndAllowThreads(__tstate);
17436 if (PyErr_Occurred()) SWIG_fail;
17437 }
17438 {
17439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17440 }
17441 return resultobj;
17442 fail:
17443 return NULL;
17444 }
17445
17446
17447 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17448 PyObject *resultobj;
17449 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17450 int arg2 ;
17451 bool result;
17452 PyObject * obj0 = 0 ;
17453 PyObject * obj1 = 0 ;
17454 char *kwnames[] = {
17455 (char *) "self",(char *) "id", NULL
17456 };
17457
17458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17461 arg2 = (int) SWIG_AsInt(obj1);
17462 if (PyErr_Occurred()) SWIG_fail;
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 result = (bool)(arg1)->GetToolEnabled(arg2);
17466
17467 wxPyEndAllowThreads(__tstate);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 {
17471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17472 }
17473 return resultobj;
17474 fail:
17475 return NULL;
17476 }
17477
17478
17479 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17480 PyObject *resultobj;
17481 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17482 int arg2 ;
17483 wxString *arg3 = 0 ;
17484 bool temp3 = False ;
17485 PyObject * obj0 = 0 ;
17486 PyObject * obj1 = 0 ;
17487 PyObject * obj2 = 0 ;
17488 char *kwnames[] = {
17489 (char *) "self",(char *) "id",(char *) "helpString", NULL
17490 };
17491
17492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17495 arg2 = (int) SWIG_AsInt(obj1);
17496 if (PyErr_Occurred()) SWIG_fail;
17497 {
17498 arg3 = wxString_in_helper(obj2);
17499 if (arg3 == NULL) SWIG_fail;
17500 temp3 = True;
17501 }
17502 {
17503 PyThreadState* __tstate = wxPyBeginAllowThreads();
17504 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17505
17506 wxPyEndAllowThreads(__tstate);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 }
17509 Py_INCREF(Py_None); resultobj = Py_None;
17510 {
17511 if (temp3)
17512 delete arg3;
17513 }
17514 return resultobj;
17515 fail:
17516 {
17517 if (temp3)
17518 delete arg3;
17519 }
17520 return NULL;
17521 }
17522
17523
17524 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17525 PyObject *resultobj;
17526 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17527 int arg2 ;
17528 wxString result;
17529 PyObject * obj0 = 0 ;
17530 PyObject * obj1 = 0 ;
17531 char *kwnames[] = {
17532 (char *) "self",(char *) "id", NULL
17533 };
17534
17535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17538 arg2 = (int) SWIG_AsInt(obj1);
17539 if (PyErr_Occurred()) SWIG_fail;
17540 {
17541 PyThreadState* __tstate = wxPyBeginAllowThreads();
17542 result = (arg1)->GetToolShortHelp(arg2);
17543
17544 wxPyEndAllowThreads(__tstate);
17545 if (PyErr_Occurred()) SWIG_fail;
17546 }
17547 {
17548 #if wxUSE_UNICODE
17549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17550 #else
17551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17552 #endif
17553 }
17554 return resultobj;
17555 fail:
17556 return NULL;
17557 }
17558
17559
17560 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17561 PyObject *resultobj;
17562 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17563 int arg2 ;
17564 wxString *arg3 = 0 ;
17565 bool temp3 = False ;
17566 PyObject * obj0 = 0 ;
17567 PyObject * obj1 = 0 ;
17568 PyObject * obj2 = 0 ;
17569 char *kwnames[] = {
17570 (char *) "self",(char *) "id",(char *) "helpString", NULL
17571 };
17572
17573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17576 arg2 = (int) SWIG_AsInt(obj1);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 {
17579 arg3 = wxString_in_helper(obj2);
17580 if (arg3 == NULL) SWIG_fail;
17581 temp3 = True;
17582 }
17583 {
17584 PyThreadState* __tstate = wxPyBeginAllowThreads();
17585 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
17586
17587 wxPyEndAllowThreads(__tstate);
17588 if (PyErr_Occurred()) SWIG_fail;
17589 }
17590 Py_INCREF(Py_None); resultobj = Py_None;
17591 {
17592 if (temp3)
17593 delete arg3;
17594 }
17595 return resultobj;
17596 fail:
17597 {
17598 if (temp3)
17599 delete arg3;
17600 }
17601 return NULL;
17602 }
17603
17604
17605 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17606 PyObject *resultobj;
17607 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17608 int arg2 ;
17609 wxString result;
17610 PyObject * obj0 = 0 ;
17611 PyObject * obj1 = 0 ;
17612 char *kwnames[] = {
17613 (char *) "self",(char *) "id", NULL
17614 };
17615
17616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
17617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17619 arg2 = (int) SWIG_AsInt(obj1);
17620 if (PyErr_Occurred()) SWIG_fail;
17621 {
17622 PyThreadState* __tstate = wxPyBeginAllowThreads();
17623 result = (arg1)->GetToolLongHelp(arg2);
17624
17625 wxPyEndAllowThreads(__tstate);
17626 if (PyErr_Occurred()) SWIG_fail;
17627 }
17628 {
17629 #if wxUSE_UNICODE
17630 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17631 #else
17632 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17633 #endif
17634 }
17635 return resultobj;
17636 fail:
17637 return NULL;
17638 }
17639
17640
17641 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
17642 PyObject *resultobj;
17643 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17644 int arg2 ;
17645 int arg3 ;
17646 PyObject * obj0 = 0 ;
17647 PyObject * obj1 = 0 ;
17648 PyObject * obj2 = 0 ;
17649 char *kwnames[] = {
17650 (char *) "self",(char *) "x",(char *) "y", NULL
17651 };
17652
17653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
17654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17656 arg2 = (int) SWIG_AsInt(obj1);
17657 if (PyErr_Occurred()) SWIG_fail;
17658 arg3 = (int) SWIG_AsInt(obj2);
17659 if (PyErr_Occurred()) SWIG_fail;
17660 {
17661 PyThreadState* __tstate = wxPyBeginAllowThreads();
17662 (arg1)->SetMargins(arg2,arg3);
17663
17664 wxPyEndAllowThreads(__tstate);
17665 if (PyErr_Occurred()) SWIG_fail;
17666 }
17667 Py_INCREF(Py_None); resultobj = Py_None;
17668 return resultobj;
17669 fail:
17670 return NULL;
17671 }
17672
17673
17674 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17675 PyObject *resultobj;
17676 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17677 wxSize *arg2 = 0 ;
17678 wxSize temp2 ;
17679 PyObject * obj0 = 0 ;
17680 PyObject * obj1 = 0 ;
17681 char *kwnames[] = {
17682 (char *) "self",(char *) "size", NULL
17683 };
17684
17685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
17686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17688 {
17689 arg2 = &temp2;
17690 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17691 }
17692 {
17693 PyThreadState* __tstate = wxPyBeginAllowThreads();
17694 (arg1)->SetMargins((wxSize const &)*arg2);
17695
17696 wxPyEndAllowThreads(__tstate);
17697 if (PyErr_Occurred()) SWIG_fail;
17698 }
17699 Py_INCREF(Py_None); resultobj = Py_None;
17700 return resultobj;
17701 fail:
17702 return NULL;
17703 }
17704
17705
17706 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17707 PyObject *resultobj;
17708 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17709 int arg2 ;
17710 PyObject * obj0 = 0 ;
17711 PyObject * obj1 = 0 ;
17712 char *kwnames[] = {
17713 (char *) "self",(char *) "packing", NULL
17714 };
17715
17716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
17717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17719 arg2 = (int) SWIG_AsInt(obj1);
17720 if (PyErr_Occurred()) SWIG_fail;
17721 {
17722 PyThreadState* __tstate = wxPyBeginAllowThreads();
17723 (arg1)->SetToolPacking(arg2);
17724
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 Py_INCREF(Py_None); resultobj = Py_None;
17729 return resultobj;
17730 fail:
17731 return NULL;
17732 }
17733
17734
17735 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj;
17737 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17738 int arg2 ;
17739 PyObject * obj0 = 0 ;
17740 PyObject * obj1 = 0 ;
17741 char *kwnames[] = {
17742 (char *) "self",(char *) "separation", NULL
17743 };
17744
17745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
17746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17748 arg2 = (int) SWIG_AsInt(obj1);
17749 if (PyErr_Occurred()) SWIG_fail;
17750 {
17751 PyThreadState* __tstate = wxPyBeginAllowThreads();
17752 (arg1)->SetToolSeparation(arg2);
17753
17754 wxPyEndAllowThreads(__tstate);
17755 if (PyErr_Occurred()) SWIG_fail;
17756 }
17757 Py_INCREF(Py_None); resultobj = Py_None;
17758 return resultobj;
17759 fail:
17760 return NULL;
17761 }
17762
17763
17764 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17765 PyObject *resultobj;
17766 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17767 wxSize result;
17768 PyObject * obj0 = 0 ;
17769 char *kwnames[] = {
17770 (char *) "self", NULL
17771 };
17772
17773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
17774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17776 {
17777 PyThreadState* __tstate = wxPyBeginAllowThreads();
17778 result = (arg1)->GetToolMargins();
17779
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 {
17784 wxSize * resultptr;
17785 resultptr = new wxSize((wxSize &) result);
17786 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17787 }
17788 return resultobj;
17789 fail:
17790 return NULL;
17791 }
17792
17793
17794 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17795 PyObject *resultobj;
17796 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17797 wxSize result;
17798 PyObject * obj0 = 0 ;
17799 char *kwnames[] = {
17800 (char *) "self", NULL
17801 };
17802
17803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
17804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17806 {
17807 PyThreadState* __tstate = wxPyBeginAllowThreads();
17808 result = (arg1)->GetMargins();
17809
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 {
17814 wxSize * resultptr;
17815 resultptr = new wxSize((wxSize &) result);
17816 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17817 }
17818 return resultobj;
17819 fail:
17820 return NULL;
17821 }
17822
17823
17824 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17825 PyObject *resultobj;
17826 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17827 int result;
17828 PyObject * obj0 = 0 ;
17829 char *kwnames[] = {
17830 (char *) "self", NULL
17831 };
17832
17833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
17834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17836 {
17837 PyThreadState* __tstate = wxPyBeginAllowThreads();
17838 result = (int)(arg1)->GetToolPacking();
17839
17840 wxPyEndAllowThreads(__tstate);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 }
17843 resultobj = SWIG_FromInt((int)result);
17844 return resultobj;
17845 fail:
17846 return NULL;
17847 }
17848
17849
17850 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17851 PyObject *resultobj;
17852 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17853 int result;
17854 PyObject * obj0 = 0 ;
17855 char *kwnames[] = {
17856 (char *) "self", NULL
17857 };
17858
17859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
17860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17862 {
17863 PyThreadState* __tstate = wxPyBeginAllowThreads();
17864 result = (int)(arg1)->GetToolSeparation();
17865
17866 wxPyEndAllowThreads(__tstate);
17867 if (PyErr_Occurred()) SWIG_fail;
17868 }
17869 resultobj = SWIG_FromInt((int)result);
17870 return resultobj;
17871 fail:
17872 return NULL;
17873 }
17874
17875
17876 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17877 PyObject *resultobj;
17878 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17879 int arg2 ;
17880 PyObject * obj0 = 0 ;
17881 PyObject * obj1 = 0 ;
17882 char *kwnames[] = {
17883 (char *) "self",(char *) "nRows", NULL
17884 };
17885
17886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
17887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17889 arg2 = (int) SWIG_AsInt(obj1);
17890 if (PyErr_Occurred()) SWIG_fail;
17891 {
17892 PyThreadState* __tstate = wxPyBeginAllowThreads();
17893 (arg1)->SetRows(arg2);
17894
17895 wxPyEndAllowThreads(__tstate);
17896 if (PyErr_Occurred()) SWIG_fail;
17897 }
17898 Py_INCREF(Py_None); resultobj = Py_None;
17899 return resultobj;
17900 fail:
17901 return NULL;
17902 }
17903
17904
17905 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17906 PyObject *resultobj;
17907 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17908 int arg2 ;
17909 int arg3 ;
17910 PyObject * obj0 = 0 ;
17911 PyObject * obj1 = 0 ;
17912 PyObject * obj2 = 0 ;
17913 char *kwnames[] = {
17914 (char *) "self",(char *) "rows",(char *) "cols", NULL
17915 };
17916
17917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
17918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17920 arg2 = (int) SWIG_AsInt(obj1);
17921 if (PyErr_Occurred()) SWIG_fail;
17922 arg3 = (int) SWIG_AsInt(obj2);
17923 if (PyErr_Occurred()) SWIG_fail;
17924 {
17925 PyThreadState* __tstate = wxPyBeginAllowThreads();
17926 (arg1)->SetMaxRowsCols(arg2,arg3);
17927
17928 wxPyEndAllowThreads(__tstate);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 }
17931 Py_INCREF(Py_None); resultobj = Py_None;
17932 return resultobj;
17933 fail:
17934 return NULL;
17935 }
17936
17937
17938 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17939 PyObject *resultobj;
17940 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17941 int result;
17942 PyObject * obj0 = 0 ;
17943 char *kwnames[] = {
17944 (char *) "self", NULL
17945 };
17946
17947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
17948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17950 {
17951 PyThreadState* __tstate = wxPyBeginAllowThreads();
17952 result = (int)(arg1)->GetMaxRows();
17953
17954 wxPyEndAllowThreads(__tstate);
17955 if (PyErr_Occurred()) SWIG_fail;
17956 }
17957 resultobj = SWIG_FromInt((int)result);
17958 return resultobj;
17959 fail:
17960 return NULL;
17961 }
17962
17963
17964 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17965 PyObject *resultobj;
17966 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17967 int result;
17968 PyObject * obj0 = 0 ;
17969 char *kwnames[] = {
17970 (char *) "self", NULL
17971 };
17972
17973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
17974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17976 {
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 result = (int)(arg1)->GetMaxCols();
17979
17980 wxPyEndAllowThreads(__tstate);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 }
17983 resultobj = SWIG_FromInt((int)result);
17984 return resultobj;
17985 fail:
17986 return NULL;
17987 }
17988
17989
17990 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17991 PyObject *resultobj;
17992 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17993 wxSize *arg2 = 0 ;
17994 wxSize temp2 ;
17995 PyObject * obj0 = 0 ;
17996 PyObject * obj1 = 0 ;
17997 char *kwnames[] = {
17998 (char *) "self",(char *) "size", NULL
17999 };
18000
18001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18004 {
18005 arg2 = &temp2;
18006 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18007 }
18008 {
18009 PyThreadState* __tstate = wxPyBeginAllowThreads();
18010 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18011
18012 wxPyEndAllowThreads(__tstate);
18013 if (PyErr_Occurred()) SWIG_fail;
18014 }
18015 Py_INCREF(Py_None); resultobj = Py_None;
18016 return resultobj;
18017 fail:
18018 return NULL;
18019 }
18020
18021
18022 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18023 PyObject *resultobj;
18024 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18025 wxSize result;
18026 PyObject * obj0 = 0 ;
18027 char *kwnames[] = {
18028 (char *) "self", NULL
18029 };
18030
18031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18034 {
18035 PyThreadState* __tstate = wxPyBeginAllowThreads();
18036 result = (arg1)->GetToolBitmapSize();
18037
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 {
18042 wxSize * resultptr;
18043 resultptr = new wxSize((wxSize &) result);
18044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18045 }
18046 return resultobj;
18047 fail:
18048 return NULL;
18049 }
18050
18051
18052 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18053 PyObject *resultobj;
18054 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18055 wxSize result;
18056 PyObject * obj0 = 0 ;
18057 char *kwnames[] = {
18058 (char *) "self", NULL
18059 };
18060
18061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18064 {
18065 PyThreadState* __tstate = wxPyBeginAllowThreads();
18066 result = (arg1)->GetToolSize();
18067
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 {
18072 wxSize * resultptr;
18073 resultptr = new wxSize((wxSize &) result);
18074 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18075 }
18076 return resultobj;
18077 fail:
18078 return NULL;
18079 }
18080
18081
18082 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18083 PyObject *resultobj;
18084 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18085 int arg2 ;
18086 int arg3 ;
18087 wxToolBarToolBase *result;
18088 PyObject * obj0 = 0 ;
18089 PyObject * obj1 = 0 ;
18090 PyObject * obj2 = 0 ;
18091 char *kwnames[] = {
18092 (char *) "self",(char *) "x",(char *) "y", NULL
18093 };
18094
18095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18098 arg2 = (int) SWIG_AsInt(obj1);
18099 if (PyErr_Occurred()) SWIG_fail;
18100 arg3 = (int) SWIG_AsInt(obj2);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 {
18103 PyThreadState* __tstate = wxPyBeginAllowThreads();
18104 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18105
18106 wxPyEndAllowThreads(__tstate);
18107 if (PyErr_Occurred()) SWIG_fail;
18108 }
18109 {
18110 resultobj = wxPyMake_wxObject(result);
18111 }
18112 return resultobj;
18113 fail:
18114 return NULL;
18115 }
18116
18117
18118 static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
18119 PyObject *resultobj;
18120 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18121 int arg2 ;
18122 wxToolBarToolBase *result;
18123 PyObject * obj0 = 0 ;
18124 PyObject * obj1 = 0 ;
18125 char *kwnames[] = {
18126 (char *) "self",(char *) "toolid", NULL
18127 };
18128
18129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18132 arg2 = (int) SWIG_AsInt(obj1);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 {
18135 PyThreadState* __tstate = wxPyBeginAllowThreads();
18136 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18137
18138 wxPyEndAllowThreads(__tstate);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 }
18141 {
18142 resultobj = wxPyMake_wxObject(result);
18143 }
18144 return resultobj;
18145 fail:
18146 return NULL;
18147 }
18148
18149
18150 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
18151 PyObject *resultobj;
18152 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18153 bool result;
18154 PyObject * obj0 = 0 ;
18155 char *kwnames[] = {
18156 (char *) "self", NULL
18157 };
18158
18159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 result = (bool)(arg1)->IsVertical();
18165
18166 wxPyEndAllowThreads(__tstate);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 }
18169 {
18170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18171 }
18172 return resultobj;
18173 fail:
18174 return NULL;
18175 }
18176
18177
18178 static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
18179 PyObject *obj;
18180 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18181 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18182 Py_INCREF(obj);
18183 return Py_BuildValue((char *)"");
18184 }
18185 static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18186 PyObject *resultobj;
18187 wxWindow *arg1 = (wxWindow *) 0 ;
18188 int arg2 ;
18189 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18190 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18191 wxSize const &arg4_defvalue = wxDefaultSize ;
18192 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18193 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18194 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18195 wxString *arg6 = (wxString *) &arg6_defvalue ;
18196 wxToolBar *result;
18197 wxPoint temp3 ;
18198 wxSize temp4 ;
18199 bool temp6 = False ;
18200 PyObject * obj0 = 0 ;
18201 PyObject * obj1 = 0 ;
18202 PyObject * obj2 = 0 ;
18203 PyObject * obj3 = 0 ;
18204 PyObject * obj4 = 0 ;
18205 PyObject * obj5 = 0 ;
18206 char *kwnames[] = {
18207 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18208 };
18209
18210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18213 arg2 = (int) SWIG_AsInt(obj1);
18214 if (PyErr_Occurred()) SWIG_fail;
18215 if (obj2) {
18216 {
18217 arg3 = &temp3;
18218 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18219 }
18220 }
18221 if (obj3) {
18222 {
18223 arg4 = &temp4;
18224 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18225 }
18226 }
18227 if (obj4) {
18228 arg5 = (long) SWIG_AsLong(obj4);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
18231 if (obj5) {
18232 {
18233 arg6 = wxString_in_helper(obj5);
18234 if (arg6 == NULL) SWIG_fail;
18235 temp6 = True;
18236 }
18237 }
18238 {
18239 PyThreadState* __tstate = wxPyBeginAllowThreads();
18240 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18241
18242 wxPyEndAllowThreads(__tstate);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 }
18245 {
18246 resultobj = wxPyMake_wxObject(result);
18247 }
18248 {
18249 if (temp6)
18250 delete arg6;
18251 }
18252 return resultobj;
18253 fail:
18254 {
18255 if (temp6)
18256 delete arg6;
18257 }
18258 return NULL;
18259 }
18260
18261
18262 static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18263 PyObject *resultobj;
18264 wxToolBar *result;
18265 char *kwnames[] = {
18266 NULL
18267 };
18268
18269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18270 {
18271 PyThreadState* __tstate = wxPyBeginAllowThreads();
18272 result = (wxToolBar *)new wxToolBar();
18273
18274 wxPyEndAllowThreads(__tstate);
18275 if (PyErr_Occurred()) SWIG_fail;
18276 }
18277 {
18278 resultobj = wxPyMake_wxObject(result);
18279 }
18280 return resultobj;
18281 fail:
18282 return NULL;
18283 }
18284
18285
18286 static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
18287 PyObject *resultobj;
18288 wxToolBar *arg1 = (wxToolBar *) 0 ;
18289 wxWindow *arg2 = (wxWindow *) 0 ;
18290 int arg3 ;
18291 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18292 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18293 wxSize const &arg5_defvalue = wxDefaultSize ;
18294 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18295 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18296 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18297 wxString *arg7 = (wxString *) &arg7_defvalue ;
18298 bool result;
18299 wxPoint temp4 ;
18300 wxSize temp5 ;
18301 bool temp7 = False ;
18302 PyObject * obj0 = 0 ;
18303 PyObject * obj1 = 0 ;
18304 PyObject * obj2 = 0 ;
18305 PyObject * obj3 = 0 ;
18306 PyObject * obj4 = 0 ;
18307 PyObject * obj5 = 0 ;
18308 PyObject * obj6 = 0 ;
18309 char *kwnames[] = {
18310 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18311 };
18312
18313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18316 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18318 arg3 = (int) SWIG_AsInt(obj2);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 if (obj3) {
18321 {
18322 arg4 = &temp4;
18323 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18324 }
18325 }
18326 if (obj4) {
18327 {
18328 arg5 = &temp5;
18329 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18330 }
18331 }
18332 if (obj5) {
18333 arg6 = (long) SWIG_AsLong(obj5);
18334 if (PyErr_Occurred()) SWIG_fail;
18335 }
18336 if (obj6) {
18337 {
18338 arg7 = wxString_in_helper(obj6);
18339 if (arg7 == NULL) SWIG_fail;
18340 temp7 = True;
18341 }
18342 }
18343 {
18344 PyThreadState* __tstate = wxPyBeginAllowThreads();
18345 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18346
18347 wxPyEndAllowThreads(__tstate);
18348 if (PyErr_Occurred()) SWIG_fail;
18349 }
18350 {
18351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18352 }
18353 {
18354 if (temp7)
18355 delete arg7;
18356 }
18357 return resultobj;
18358 fail:
18359 {
18360 if (temp7)
18361 delete arg7;
18362 }
18363 return NULL;
18364 }
18365
18366
18367 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18368 PyObject *resultobj;
18369 wxToolBar *arg1 = (wxToolBar *) 0 ;
18370 int arg2 ;
18371 int arg3 ;
18372 wxToolBarToolBase *result;
18373 PyObject * obj0 = 0 ;
18374 PyObject * obj1 = 0 ;
18375 PyObject * obj2 = 0 ;
18376 char *kwnames[] = {
18377 (char *) "self",(char *) "x",(char *) "y", NULL
18378 };
18379
18380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18383 arg2 = (int) SWIG_AsInt(obj1);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 arg3 = (int) SWIG_AsInt(obj2);
18386 if (PyErr_Occurred()) SWIG_fail;
18387 {
18388 PyThreadState* __tstate = wxPyBeginAllowThreads();
18389 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18390
18391 wxPyEndAllowThreads(__tstate);
18392 if (PyErr_Occurred()) SWIG_fail;
18393 }
18394 {
18395 resultobj = wxPyMake_wxObject(result);
18396 }
18397 return resultobj;
18398 fail:
18399 return NULL;
18400 }
18401
18402
18403 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18404 PyObject *resultobj;
18405 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18406 wxVisualAttributes result;
18407 PyObject * obj0 = 0 ;
18408 char *kwnames[] = {
18409 (char *) "variant", NULL
18410 };
18411
18412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18413 if (obj0) {
18414 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
18415 if (PyErr_Occurred()) SWIG_fail;
18416 }
18417 {
18418 PyThreadState* __tstate = wxPyBeginAllowThreads();
18419 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18420
18421 wxPyEndAllowThreads(__tstate);
18422 if (PyErr_Occurred()) SWIG_fail;
18423 }
18424 {
18425 wxVisualAttributes * resultptr;
18426 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18427 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18428 }
18429 return resultobj;
18430 fail:
18431 return NULL;
18432 }
18433
18434
18435 static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
18436 PyObject *obj;
18437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18438 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18439 Py_INCREF(obj);
18440 return Py_BuildValue((char *)"");
18441 }
18442 static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
18443 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18444 return 1;
18445 }
18446
18447
18448 static PyObject *_wrap_ListCtrlNameStr_get() {
18449 PyObject *pyobj;
18450
18451 {
18452 #if wxUSE_UNICODE
18453 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18454 #else
18455 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18456 #endif
18457 }
18458 return pyobj;
18459 }
18460
18461
18462 static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
18463 PyObject *resultobj;
18464 wxColour const &arg1_defvalue = wxNullColour ;
18465 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18466 wxColour const &arg2_defvalue = wxNullColour ;
18467 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18468 wxFont const &arg3_defvalue = wxNullFont ;
18469 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18470 wxListItemAttr *result;
18471 wxColour temp1 ;
18472 wxColour temp2 ;
18473 PyObject * obj0 = 0 ;
18474 PyObject * obj1 = 0 ;
18475 PyObject * obj2 = 0 ;
18476 char *kwnames[] = {
18477 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18478 };
18479
18480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18481 if (obj0) {
18482 {
18483 arg1 = &temp1;
18484 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18485 }
18486 }
18487 if (obj1) {
18488 {
18489 arg2 = &temp2;
18490 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18491 }
18492 }
18493 if (obj2) {
18494 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18495 SWIG_POINTER_EXCEPTION | 0)) == -1)
18496 SWIG_fail;
18497 if (arg3 == NULL) {
18498 PyErr_SetString(PyExc_TypeError,"null reference");
18499 SWIG_fail;
18500 }
18501 }
18502 {
18503 PyThreadState* __tstate = wxPyBeginAllowThreads();
18504 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18505
18506 wxPyEndAllowThreads(__tstate);
18507 if (PyErr_Occurred()) SWIG_fail;
18508 }
18509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18510 return resultobj;
18511 fail:
18512 return NULL;
18513 }
18514
18515
18516 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18517 PyObject *resultobj;
18518 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18519 wxColour *arg2 = 0 ;
18520 wxColour temp2 ;
18521 PyObject * obj0 = 0 ;
18522 PyObject * obj1 = 0 ;
18523 char *kwnames[] = {
18524 (char *) "self",(char *) "colText", NULL
18525 };
18526
18527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18530 {
18531 arg2 = &temp2;
18532 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18533 }
18534 {
18535 PyThreadState* __tstate = wxPyBeginAllowThreads();
18536 (arg1)->SetTextColour((wxColour const &)*arg2);
18537
18538 wxPyEndAllowThreads(__tstate);
18539 if (PyErr_Occurred()) SWIG_fail;
18540 }
18541 Py_INCREF(Py_None); resultobj = Py_None;
18542 return resultobj;
18543 fail:
18544 return NULL;
18545 }
18546
18547
18548 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18549 PyObject *resultobj;
18550 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18551 wxColour *arg2 = 0 ;
18552 wxColour temp2 ;
18553 PyObject * obj0 = 0 ;
18554 PyObject * obj1 = 0 ;
18555 char *kwnames[] = {
18556 (char *) "self",(char *) "colBack", NULL
18557 };
18558
18559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18562 {
18563 arg2 = &temp2;
18564 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18565 }
18566 {
18567 PyThreadState* __tstate = wxPyBeginAllowThreads();
18568 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18569
18570 wxPyEndAllowThreads(__tstate);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 }
18573 Py_INCREF(Py_None); resultobj = Py_None;
18574 return resultobj;
18575 fail:
18576 return NULL;
18577 }
18578
18579
18580 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18581 PyObject *resultobj;
18582 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18583 wxFont *arg2 = 0 ;
18584 PyObject * obj0 = 0 ;
18585 PyObject * obj1 = 0 ;
18586 char *kwnames[] = {
18587 (char *) "self",(char *) "font", NULL
18588 };
18589
18590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
18591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18593 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18594 SWIG_POINTER_EXCEPTION | 0)) == -1)
18595 SWIG_fail;
18596 if (arg2 == NULL) {
18597 PyErr_SetString(PyExc_TypeError,"null reference");
18598 SWIG_fail;
18599 }
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 (arg1)->SetFont((wxFont const &)*arg2);
18603
18604 wxPyEndAllowThreads(__tstate);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 Py_INCREF(Py_None); resultobj = Py_None;
18608 return resultobj;
18609 fail:
18610 return NULL;
18611 }
18612
18613
18614 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18615 PyObject *resultobj;
18616 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18617 bool result;
18618 PyObject * obj0 = 0 ;
18619 char *kwnames[] = {
18620 (char *) "self", NULL
18621 };
18622
18623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
18624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18626 {
18627 PyThreadState* __tstate = wxPyBeginAllowThreads();
18628 result = (bool)(arg1)->HasTextColour();
18629
18630 wxPyEndAllowThreads(__tstate);
18631 if (PyErr_Occurred()) SWIG_fail;
18632 }
18633 {
18634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18635 }
18636 return resultobj;
18637 fail:
18638 return NULL;
18639 }
18640
18641
18642 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18643 PyObject *resultobj;
18644 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18645 bool result;
18646 PyObject * obj0 = 0 ;
18647 char *kwnames[] = {
18648 (char *) "self", NULL
18649 };
18650
18651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
18652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18654 {
18655 PyThreadState* __tstate = wxPyBeginAllowThreads();
18656 result = (bool)(arg1)->HasBackgroundColour();
18657
18658 wxPyEndAllowThreads(__tstate);
18659 if (PyErr_Occurred()) SWIG_fail;
18660 }
18661 {
18662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18663 }
18664 return resultobj;
18665 fail:
18666 return NULL;
18667 }
18668
18669
18670 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18671 PyObject *resultobj;
18672 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18673 bool result;
18674 PyObject * obj0 = 0 ;
18675 char *kwnames[] = {
18676 (char *) "self", NULL
18677 };
18678
18679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
18680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18682 {
18683 PyThreadState* __tstate = wxPyBeginAllowThreads();
18684 result = (bool)(arg1)->HasFont();
18685
18686 wxPyEndAllowThreads(__tstate);
18687 if (PyErr_Occurred()) SWIG_fail;
18688 }
18689 {
18690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18691 }
18692 return resultobj;
18693 fail:
18694 return NULL;
18695 }
18696
18697
18698 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18699 PyObject *resultobj;
18700 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18701 wxColour result;
18702 PyObject * obj0 = 0 ;
18703 char *kwnames[] = {
18704 (char *) "self", NULL
18705 };
18706
18707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
18708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18710 {
18711 PyThreadState* __tstate = wxPyBeginAllowThreads();
18712 result = (arg1)->GetTextColour();
18713
18714 wxPyEndAllowThreads(__tstate);
18715 if (PyErr_Occurred()) SWIG_fail;
18716 }
18717 {
18718 wxColour * resultptr;
18719 resultptr = new wxColour((wxColour &) result);
18720 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18721 }
18722 return resultobj;
18723 fail:
18724 return NULL;
18725 }
18726
18727
18728 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18729 PyObject *resultobj;
18730 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18731 wxColour result;
18732 PyObject * obj0 = 0 ;
18733 char *kwnames[] = {
18734 (char *) "self", NULL
18735 };
18736
18737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
18738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18740 {
18741 PyThreadState* __tstate = wxPyBeginAllowThreads();
18742 result = (arg1)->GetBackgroundColour();
18743
18744 wxPyEndAllowThreads(__tstate);
18745 if (PyErr_Occurred()) SWIG_fail;
18746 }
18747 {
18748 wxColour * resultptr;
18749 resultptr = new wxColour((wxColour &) result);
18750 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18751 }
18752 return resultobj;
18753 fail:
18754 return NULL;
18755 }
18756
18757
18758 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18759 PyObject *resultobj;
18760 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18761 wxFont result;
18762 PyObject * obj0 = 0 ;
18763 char *kwnames[] = {
18764 (char *) "self", NULL
18765 };
18766
18767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
18768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18770 {
18771 PyThreadState* __tstate = wxPyBeginAllowThreads();
18772 result = (arg1)->GetFont();
18773
18774 wxPyEndAllowThreads(__tstate);
18775 if (PyErr_Occurred()) SWIG_fail;
18776 }
18777 {
18778 wxFont * resultptr;
18779 resultptr = new wxFont((wxFont &) result);
18780 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18781 }
18782 return resultobj;
18783 fail:
18784 return NULL;
18785 }
18786
18787
18788 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
18789 PyObject *resultobj;
18790 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18791 PyObject * obj0 = 0 ;
18792 char *kwnames[] = {
18793 (char *) "self", NULL
18794 };
18795
18796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
18797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18799 {
18800 PyThreadState* __tstate = wxPyBeginAllowThreads();
18801 wxListItemAttr_Destroy(arg1);
18802
18803 wxPyEndAllowThreads(__tstate);
18804 if (PyErr_Occurred()) SWIG_fail;
18805 }
18806 Py_INCREF(Py_None); resultobj = Py_None;
18807 return resultobj;
18808 fail:
18809 return NULL;
18810 }
18811
18812
18813 static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
18814 PyObject *obj;
18815 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18816 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
18817 Py_INCREF(obj);
18818 return Py_BuildValue((char *)"");
18819 }
18820 static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18821 PyObject *resultobj;
18822 wxListItem *result;
18823 char *kwnames[] = {
18824 NULL
18825 };
18826
18827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
18828 {
18829 PyThreadState* __tstate = wxPyBeginAllowThreads();
18830 result = (wxListItem *)new wxListItem();
18831
18832 wxPyEndAllowThreads(__tstate);
18833 if (PyErr_Occurred()) SWIG_fail;
18834 }
18835 {
18836 resultobj = wxPyMake_wxObject(result);
18837 }
18838 return resultobj;
18839 fail:
18840 return NULL;
18841 }
18842
18843
18844 static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18845 PyObject *resultobj;
18846 wxListItem *arg1 = (wxListItem *) 0 ;
18847 PyObject * obj0 = 0 ;
18848 char *kwnames[] = {
18849 (char *) "self", NULL
18850 };
18851
18852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
18853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18855 {
18856 PyThreadState* __tstate = wxPyBeginAllowThreads();
18857 delete arg1;
18858
18859 wxPyEndAllowThreads(__tstate);
18860 if (PyErr_Occurred()) SWIG_fail;
18861 }
18862 Py_INCREF(Py_None); resultobj = Py_None;
18863 return resultobj;
18864 fail:
18865 return NULL;
18866 }
18867
18868
18869 static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
18870 PyObject *resultobj;
18871 wxListItem *arg1 = (wxListItem *) 0 ;
18872 PyObject * obj0 = 0 ;
18873 char *kwnames[] = {
18874 (char *) "self", NULL
18875 };
18876
18877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
18878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18880 {
18881 PyThreadState* __tstate = wxPyBeginAllowThreads();
18882 (arg1)->Clear();
18883
18884 wxPyEndAllowThreads(__tstate);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 Py_INCREF(Py_None); resultobj = Py_None;
18888 return resultobj;
18889 fail:
18890 return NULL;
18891 }
18892
18893
18894 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18895 PyObject *resultobj;
18896 wxListItem *arg1 = (wxListItem *) 0 ;
18897 PyObject * obj0 = 0 ;
18898 char *kwnames[] = {
18899 (char *) "self", NULL
18900 };
18901
18902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
18903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18905 {
18906 PyThreadState* __tstate = wxPyBeginAllowThreads();
18907 (arg1)->ClearAttributes();
18908
18909 wxPyEndAllowThreads(__tstate);
18910 if (PyErr_Occurred()) SWIG_fail;
18911 }
18912 Py_INCREF(Py_None); resultobj = Py_None;
18913 return resultobj;
18914 fail:
18915 return NULL;
18916 }
18917
18918
18919 static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18920 PyObject *resultobj;
18921 wxListItem *arg1 = (wxListItem *) 0 ;
18922 long arg2 ;
18923 PyObject * obj0 = 0 ;
18924 PyObject * obj1 = 0 ;
18925 char *kwnames[] = {
18926 (char *) "self",(char *) "mask", NULL
18927 };
18928
18929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
18930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18932 arg2 = (long) SWIG_AsLong(obj1);
18933 if (PyErr_Occurred()) SWIG_fail;
18934 {
18935 PyThreadState* __tstate = wxPyBeginAllowThreads();
18936 (arg1)->SetMask(arg2);
18937
18938 wxPyEndAllowThreads(__tstate);
18939 if (PyErr_Occurred()) SWIG_fail;
18940 }
18941 Py_INCREF(Py_None); resultobj = Py_None;
18942 return resultobj;
18943 fail:
18944 return NULL;
18945 }
18946
18947
18948 static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18949 PyObject *resultobj;
18950 wxListItem *arg1 = (wxListItem *) 0 ;
18951 long arg2 ;
18952 PyObject * obj0 = 0 ;
18953 PyObject * obj1 = 0 ;
18954 char *kwnames[] = {
18955 (char *) "self",(char *) "id", NULL
18956 };
18957
18958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
18959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18961 arg2 = (long) SWIG_AsLong(obj1);
18962 if (PyErr_Occurred()) SWIG_fail;
18963 {
18964 PyThreadState* __tstate = wxPyBeginAllowThreads();
18965 (arg1)->SetId(arg2);
18966
18967 wxPyEndAllowThreads(__tstate);
18968 if (PyErr_Occurred()) SWIG_fail;
18969 }
18970 Py_INCREF(Py_None); resultobj = Py_None;
18971 return resultobj;
18972 fail:
18973 return NULL;
18974 }
18975
18976
18977 static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
18978 PyObject *resultobj;
18979 wxListItem *arg1 = (wxListItem *) 0 ;
18980 int arg2 ;
18981 PyObject * obj0 = 0 ;
18982 PyObject * obj1 = 0 ;
18983 char *kwnames[] = {
18984 (char *) "self",(char *) "col", NULL
18985 };
18986
18987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
18988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18990 arg2 = (int) SWIG_AsInt(obj1);
18991 if (PyErr_Occurred()) SWIG_fail;
18992 {
18993 PyThreadState* __tstate = wxPyBeginAllowThreads();
18994 (arg1)->SetColumn(arg2);
18995
18996 wxPyEndAllowThreads(__tstate);
18997 if (PyErr_Occurred()) SWIG_fail;
18998 }
18999 Py_INCREF(Py_None); resultobj = Py_None;
19000 return resultobj;
19001 fail:
19002 return NULL;
19003 }
19004
19005
19006 static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19007 PyObject *resultobj;
19008 wxListItem *arg1 = (wxListItem *) 0 ;
19009 long arg2 ;
19010 PyObject * obj0 = 0 ;
19011 PyObject * obj1 = 0 ;
19012 char *kwnames[] = {
19013 (char *) "self",(char *) "state", NULL
19014 };
19015
19016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19019 arg2 = (long) SWIG_AsLong(obj1);
19020 if (PyErr_Occurred()) SWIG_fail;
19021 {
19022 PyThreadState* __tstate = wxPyBeginAllowThreads();
19023 (arg1)->SetState(arg2);
19024
19025 wxPyEndAllowThreads(__tstate);
19026 if (PyErr_Occurred()) SWIG_fail;
19027 }
19028 Py_INCREF(Py_None); resultobj = Py_None;
19029 return resultobj;
19030 fail:
19031 return NULL;
19032 }
19033
19034
19035 static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19036 PyObject *resultobj;
19037 wxListItem *arg1 = (wxListItem *) 0 ;
19038 long arg2 ;
19039 PyObject * obj0 = 0 ;
19040 PyObject * obj1 = 0 ;
19041 char *kwnames[] = {
19042 (char *) "self",(char *) "stateMask", NULL
19043 };
19044
19045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19048 arg2 = (long) SWIG_AsLong(obj1);
19049 if (PyErr_Occurred()) SWIG_fail;
19050 {
19051 PyThreadState* __tstate = wxPyBeginAllowThreads();
19052 (arg1)->SetStateMask(arg2);
19053
19054 wxPyEndAllowThreads(__tstate);
19055 if (PyErr_Occurred()) SWIG_fail;
19056 }
19057 Py_INCREF(Py_None); resultobj = Py_None;
19058 return resultobj;
19059 fail:
19060 return NULL;
19061 }
19062
19063
19064 static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19065 PyObject *resultobj;
19066 wxListItem *arg1 = (wxListItem *) 0 ;
19067 wxString *arg2 = 0 ;
19068 bool temp2 = False ;
19069 PyObject * obj0 = 0 ;
19070 PyObject * obj1 = 0 ;
19071 char *kwnames[] = {
19072 (char *) "self",(char *) "text", NULL
19073 };
19074
19075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19078 {
19079 arg2 = wxString_in_helper(obj1);
19080 if (arg2 == NULL) SWIG_fail;
19081 temp2 = True;
19082 }
19083 {
19084 PyThreadState* __tstate = wxPyBeginAllowThreads();
19085 (arg1)->SetText((wxString const &)*arg2);
19086
19087 wxPyEndAllowThreads(__tstate);
19088 if (PyErr_Occurred()) SWIG_fail;
19089 }
19090 Py_INCREF(Py_None); resultobj = Py_None;
19091 {
19092 if (temp2)
19093 delete arg2;
19094 }
19095 return resultobj;
19096 fail:
19097 {
19098 if (temp2)
19099 delete arg2;
19100 }
19101 return NULL;
19102 }
19103
19104
19105 static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19106 PyObject *resultobj;
19107 wxListItem *arg1 = (wxListItem *) 0 ;
19108 int arg2 ;
19109 PyObject * obj0 = 0 ;
19110 PyObject * obj1 = 0 ;
19111 char *kwnames[] = {
19112 (char *) "self",(char *) "image", NULL
19113 };
19114
19115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19118 arg2 = (int) SWIG_AsInt(obj1);
19119 if (PyErr_Occurred()) SWIG_fail;
19120 {
19121 PyThreadState* __tstate = wxPyBeginAllowThreads();
19122 (arg1)->SetImage(arg2);
19123
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 Py_INCREF(Py_None); resultobj = Py_None;
19128 return resultobj;
19129 fail:
19130 return NULL;
19131 }
19132
19133
19134 static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19135 PyObject *resultobj;
19136 wxListItem *arg1 = (wxListItem *) 0 ;
19137 long arg2 ;
19138 PyObject * obj0 = 0 ;
19139 PyObject * obj1 = 0 ;
19140 char *kwnames[] = {
19141 (char *) "self",(char *) "data", NULL
19142 };
19143
19144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19147 arg2 = (long) SWIG_AsLong(obj1);
19148 if (PyErr_Occurred()) SWIG_fail;
19149 {
19150 PyThreadState* __tstate = wxPyBeginAllowThreads();
19151 (arg1)->SetData(arg2);
19152
19153 wxPyEndAllowThreads(__tstate);
19154 if (PyErr_Occurred()) SWIG_fail;
19155 }
19156 Py_INCREF(Py_None); resultobj = Py_None;
19157 return resultobj;
19158 fail:
19159 return NULL;
19160 }
19161
19162
19163 static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19164 PyObject *resultobj;
19165 wxListItem *arg1 = (wxListItem *) 0 ;
19166 int arg2 ;
19167 PyObject * obj0 = 0 ;
19168 PyObject * obj1 = 0 ;
19169 char *kwnames[] = {
19170 (char *) "self",(char *) "width", NULL
19171 };
19172
19173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19176 arg2 = (int) SWIG_AsInt(obj1);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 {
19179 PyThreadState* __tstate = wxPyBeginAllowThreads();
19180 (arg1)->SetWidth(arg2);
19181
19182 wxPyEndAllowThreads(__tstate);
19183 if (PyErr_Occurred()) SWIG_fail;
19184 }
19185 Py_INCREF(Py_None); resultobj = Py_None;
19186 return resultobj;
19187 fail:
19188 return NULL;
19189 }
19190
19191
19192 static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19193 PyObject *resultobj;
19194 wxListItem *arg1 = (wxListItem *) 0 ;
19195 int arg2 ;
19196 PyObject * obj0 = 0 ;
19197 PyObject * obj1 = 0 ;
19198 char *kwnames[] = {
19199 (char *) "self",(char *) "align", NULL
19200 };
19201
19202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19205 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
19206 if (PyErr_Occurred()) SWIG_fail;
19207 {
19208 PyThreadState* __tstate = wxPyBeginAllowThreads();
19209 (arg1)->SetAlign((wxListColumnFormat )arg2);
19210
19211 wxPyEndAllowThreads(__tstate);
19212 if (PyErr_Occurred()) SWIG_fail;
19213 }
19214 Py_INCREF(Py_None); resultobj = Py_None;
19215 return resultobj;
19216 fail:
19217 return NULL;
19218 }
19219
19220
19221 static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19222 PyObject *resultobj;
19223 wxListItem *arg1 = (wxListItem *) 0 ;
19224 wxColour *arg2 = 0 ;
19225 wxColour temp2 ;
19226 PyObject * obj0 = 0 ;
19227 PyObject * obj1 = 0 ;
19228 char *kwnames[] = {
19229 (char *) "self",(char *) "colText", NULL
19230 };
19231
19232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19235 {
19236 arg2 = &temp2;
19237 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19238 }
19239 {
19240 PyThreadState* __tstate = wxPyBeginAllowThreads();
19241 (arg1)->SetTextColour((wxColour const &)*arg2);
19242
19243 wxPyEndAllowThreads(__tstate);
19244 if (PyErr_Occurred()) SWIG_fail;
19245 }
19246 Py_INCREF(Py_None); resultobj = Py_None;
19247 return resultobj;
19248 fail:
19249 return NULL;
19250 }
19251
19252
19253 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19254 PyObject *resultobj;
19255 wxListItem *arg1 = (wxListItem *) 0 ;
19256 wxColour *arg2 = 0 ;
19257 wxColour temp2 ;
19258 PyObject * obj0 = 0 ;
19259 PyObject * obj1 = 0 ;
19260 char *kwnames[] = {
19261 (char *) "self",(char *) "colBack", NULL
19262 };
19263
19264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19267 {
19268 arg2 = &temp2;
19269 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19270 }
19271 {
19272 PyThreadState* __tstate = wxPyBeginAllowThreads();
19273 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19274
19275 wxPyEndAllowThreads(__tstate);
19276 if (PyErr_Occurred()) SWIG_fail;
19277 }
19278 Py_INCREF(Py_None); resultobj = Py_None;
19279 return resultobj;
19280 fail:
19281 return NULL;
19282 }
19283
19284
19285 static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19286 PyObject *resultobj;
19287 wxListItem *arg1 = (wxListItem *) 0 ;
19288 wxFont *arg2 = 0 ;
19289 PyObject * obj0 = 0 ;
19290 PyObject * obj1 = 0 ;
19291 char *kwnames[] = {
19292 (char *) "self",(char *) "font", NULL
19293 };
19294
19295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19298 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19299 SWIG_POINTER_EXCEPTION | 0)) == -1)
19300 SWIG_fail;
19301 if (arg2 == NULL) {
19302 PyErr_SetString(PyExc_TypeError,"null reference");
19303 SWIG_fail;
19304 }
19305 {
19306 PyThreadState* __tstate = wxPyBeginAllowThreads();
19307 (arg1)->SetFont((wxFont const &)*arg2);
19308
19309 wxPyEndAllowThreads(__tstate);
19310 if (PyErr_Occurred()) SWIG_fail;
19311 }
19312 Py_INCREF(Py_None); resultobj = Py_None;
19313 return resultobj;
19314 fail:
19315 return NULL;
19316 }
19317
19318
19319 static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19320 PyObject *resultobj;
19321 wxListItem *arg1 = (wxListItem *) 0 ;
19322 long result;
19323 PyObject * obj0 = 0 ;
19324 char *kwnames[] = {
19325 (char *) "self", NULL
19326 };
19327
19328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19331 {
19332 PyThreadState* __tstate = wxPyBeginAllowThreads();
19333 result = (long)(arg1)->GetMask();
19334
19335 wxPyEndAllowThreads(__tstate);
19336 if (PyErr_Occurred()) SWIG_fail;
19337 }
19338 resultobj = SWIG_FromLong((long)result);
19339 return resultobj;
19340 fail:
19341 return NULL;
19342 }
19343
19344
19345 static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
19346 PyObject *resultobj;
19347 wxListItem *arg1 = (wxListItem *) 0 ;
19348 long result;
19349 PyObject * obj0 = 0 ;
19350 char *kwnames[] = {
19351 (char *) "self", NULL
19352 };
19353
19354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19357 {
19358 PyThreadState* __tstate = wxPyBeginAllowThreads();
19359 result = (long)(arg1)->GetId();
19360
19361 wxPyEndAllowThreads(__tstate);
19362 if (PyErr_Occurred()) SWIG_fail;
19363 }
19364 resultobj = SWIG_FromLong((long)result);
19365 return resultobj;
19366 fail:
19367 return NULL;
19368 }
19369
19370
19371 static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19372 PyObject *resultobj;
19373 wxListItem *arg1 = (wxListItem *) 0 ;
19374 int result;
19375 PyObject * obj0 = 0 ;
19376 char *kwnames[] = {
19377 (char *) "self", NULL
19378 };
19379
19380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19383 {
19384 PyThreadState* __tstate = wxPyBeginAllowThreads();
19385 result = (int)(arg1)->GetColumn();
19386
19387 wxPyEndAllowThreads(__tstate);
19388 if (PyErr_Occurred()) SWIG_fail;
19389 }
19390 resultobj = SWIG_FromInt((int)result);
19391 return resultobj;
19392 fail:
19393 return NULL;
19394 }
19395
19396
19397 static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19398 PyObject *resultobj;
19399 wxListItem *arg1 = (wxListItem *) 0 ;
19400 long result;
19401 PyObject * obj0 = 0 ;
19402 char *kwnames[] = {
19403 (char *) "self", NULL
19404 };
19405
19406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19409 {
19410 PyThreadState* __tstate = wxPyBeginAllowThreads();
19411 result = (long)(arg1)->GetState();
19412
19413 wxPyEndAllowThreads(__tstate);
19414 if (PyErr_Occurred()) SWIG_fail;
19415 }
19416 resultobj = SWIG_FromLong((long)result);
19417 return resultobj;
19418 fail:
19419 return NULL;
19420 }
19421
19422
19423 static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19424 PyObject *resultobj;
19425 wxListItem *arg1 = (wxListItem *) 0 ;
19426 wxString *result;
19427 PyObject * obj0 = 0 ;
19428 char *kwnames[] = {
19429 (char *) "self", NULL
19430 };
19431
19432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19435 {
19436 PyThreadState* __tstate = wxPyBeginAllowThreads();
19437 {
19438 wxString const &_result_ref = (arg1)->GetText();
19439 result = (wxString *) &_result_ref;
19440 }
19441
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 {
19446 #if wxUSE_UNICODE
19447 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19448 #else
19449 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19450 #endif
19451 }
19452 return resultobj;
19453 fail:
19454 return NULL;
19455 }
19456
19457
19458 static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19459 PyObject *resultobj;
19460 wxListItem *arg1 = (wxListItem *) 0 ;
19461 int result;
19462 PyObject * obj0 = 0 ;
19463 char *kwnames[] = {
19464 (char *) "self", NULL
19465 };
19466
19467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19470 {
19471 PyThreadState* __tstate = wxPyBeginAllowThreads();
19472 result = (int)(arg1)->GetImage();
19473
19474 wxPyEndAllowThreads(__tstate);
19475 if (PyErr_Occurred()) SWIG_fail;
19476 }
19477 resultobj = SWIG_FromInt((int)result);
19478 return resultobj;
19479 fail:
19480 return NULL;
19481 }
19482
19483
19484 static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19485 PyObject *resultobj;
19486 wxListItem *arg1 = (wxListItem *) 0 ;
19487 long result;
19488 PyObject * obj0 = 0 ;
19489 char *kwnames[] = {
19490 (char *) "self", NULL
19491 };
19492
19493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19496 {
19497 PyThreadState* __tstate = wxPyBeginAllowThreads();
19498 result = (long)(arg1)->GetData();
19499
19500 wxPyEndAllowThreads(__tstate);
19501 if (PyErr_Occurred()) SWIG_fail;
19502 }
19503 resultobj = SWIG_FromLong((long)result);
19504 return resultobj;
19505 fail:
19506 return NULL;
19507 }
19508
19509
19510 static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19511 PyObject *resultobj;
19512 wxListItem *arg1 = (wxListItem *) 0 ;
19513 int result;
19514 PyObject * obj0 = 0 ;
19515 char *kwnames[] = {
19516 (char *) "self", NULL
19517 };
19518
19519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19522 {
19523 PyThreadState* __tstate = wxPyBeginAllowThreads();
19524 result = (int)(arg1)->GetWidth();
19525
19526 wxPyEndAllowThreads(__tstate);
19527 if (PyErr_Occurred()) SWIG_fail;
19528 }
19529 resultobj = SWIG_FromInt((int)result);
19530 return resultobj;
19531 fail:
19532 return NULL;
19533 }
19534
19535
19536 static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19537 PyObject *resultobj;
19538 wxListItem *arg1 = (wxListItem *) 0 ;
19539 int result;
19540 PyObject * obj0 = 0 ;
19541 char *kwnames[] = {
19542 (char *) "self", NULL
19543 };
19544
19545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
19546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19548 {
19549 PyThreadState* __tstate = wxPyBeginAllowThreads();
19550 result = (int)(arg1)->GetAlign();
19551
19552 wxPyEndAllowThreads(__tstate);
19553 if (PyErr_Occurred()) SWIG_fail;
19554 }
19555 resultobj = SWIG_FromInt((int)result);
19556 return resultobj;
19557 fail:
19558 return NULL;
19559 }
19560
19561
19562 static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19563 PyObject *resultobj;
19564 wxListItem *arg1 = (wxListItem *) 0 ;
19565 wxListItemAttr *result;
19566 PyObject * obj0 = 0 ;
19567 char *kwnames[] = {
19568 (char *) "self", NULL
19569 };
19570
19571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
19572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19574 {
19575 PyThreadState* __tstate = wxPyBeginAllowThreads();
19576 result = (wxListItemAttr *)(arg1)->GetAttributes();
19577
19578 wxPyEndAllowThreads(__tstate);
19579 if (PyErr_Occurred()) SWIG_fail;
19580 }
19581 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
19582 return resultobj;
19583 fail:
19584 return NULL;
19585 }
19586
19587
19588 static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19589 PyObject *resultobj;
19590 wxListItem *arg1 = (wxListItem *) 0 ;
19591 bool result;
19592 PyObject * obj0 = 0 ;
19593 char *kwnames[] = {
19594 (char *) "self", NULL
19595 };
19596
19597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
19598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19600 {
19601 PyThreadState* __tstate = wxPyBeginAllowThreads();
19602 result = (bool)(arg1)->HasAttributes();
19603
19604 wxPyEndAllowThreads(__tstate);
19605 if (PyErr_Occurred()) SWIG_fail;
19606 }
19607 {
19608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19609 }
19610 return resultobj;
19611 fail:
19612 return NULL;
19613 }
19614
19615
19616 static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19617 PyObject *resultobj;
19618 wxListItem *arg1 = (wxListItem *) 0 ;
19619 wxColour result;
19620 PyObject * obj0 = 0 ;
19621 char *kwnames[] = {
19622 (char *) "self", NULL
19623 };
19624
19625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
19626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19628 {
19629 PyThreadState* __tstate = wxPyBeginAllowThreads();
19630 result = ((wxListItem const *)arg1)->GetTextColour();
19631
19632 wxPyEndAllowThreads(__tstate);
19633 if (PyErr_Occurred()) SWIG_fail;
19634 }
19635 {
19636 wxColour * resultptr;
19637 resultptr = new wxColour((wxColour &) result);
19638 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19639 }
19640 return resultobj;
19641 fail:
19642 return NULL;
19643 }
19644
19645
19646 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19647 PyObject *resultobj;
19648 wxListItem *arg1 = (wxListItem *) 0 ;
19649 wxColour result;
19650 PyObject * obj0 = 0 ;
19651 char *kwnames[] = {
19652 (char *) "self", NULL
19653 };
19654
19655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
19656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19658 {
19659 PyThreadState* __tstate = wxPyBeginAllowThreads();
19660 result = ((wxListItem const *)arg1)->GetBackgroundColour();
19661
19662 wxPyEndAllowThreads(__tstate);
19663 if (PyErr_Occurred()) SWIG_fail;
19664 }
19665 {
19666 wxColour * resultptr;
19667 resultptr = new wxColour((wxColour &) result);
19668 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19669 }
19670 return resultobj;
19671 fail:
19672 return NULL;
19673 }
19674
19675
19676 static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19677 PyObject *resultobj;
19678 wxListItem *arg1 = (wxListItem *) 0 ;
19679 wxFont result;
19680 PyObject * obj0 = 0 ;
19681 char *kwnames[] = {
19682 (char *) "self", NULL
19683 };
19684
19685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
19686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19688 {
19689 PyThreadState* __tstate = wxPyBeginAllowThreads();
19690 result = ((wxListItem const *)arg1)->GetFont();
19691
19692 wxPyEndAllowThreads(__tstate);
19693 if (PyErr_Occurred()) SWIG_fail;
19694 }
19695 {
19696 wxFont * resultptr;
19697 resultptr = new wxFont((wxFont &) result);
19698 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19699 }
19700 return resultobj;
19701 fail:
19702 return NULL;
19703 }
19704
19705
19706 static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19707 PyObject *resultobj;
19708 wxListItem *arg1 = (wxListItem *) 0 ;
19709 long arg2 ;
19710 PyObject * obj0 = 0 ;
19711 PyObject * obj1 = 0 ;
19712 char *kwnames[] = {
19713 (char *) "self",(char *) "m_mask", NULL
19714 };
19715
19716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
19717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19719 arg2 = (long) SWIG_AsLong(obj1);
19720 if (PyErr_Occurred()) SWIG_fail;
19721 if (arg1) (arg1)->m_mask = arg2;
19722
19723 Py_INCREF(Py_None); resultobj = Py_None;
19724 return resultobj;
19725 fail:
19726 return NULL;
19727 }
19728
19729
19730 static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19731 PyObject *resultobj;
19732 wxListItem *arg1 = (wxListItem *) 0 ;
19733 long result;
19734 PyObject * obj0 = 0 ;
19735 char *kwnames[] = {
19736 (char *) "self", NULL
19737 };
19738
19739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
19740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19742 result = (long) ((arg1)->m_mask);
19743
19744 resultobj = SWIG_FromLong((long)result);
19745 return resultobj;
19746 fail:
19747 return NULL;
19748 }
19749
19750
19751 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19752 PyObject *resultobj;
19753 wxListItem *arg1 = (wxListItem *) 0 ;
19754 long arg2 ;
19755 PyObject * obj0 = 0 ;
19756 PyObject * obj1 = 0 ;
19757 char *kwnames[] = {
19758 (char *) "self",(char *) "m_itemId", NULL
19759 };
19760
19761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
19762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19764 arg2 = (long) SWIG_AsLong(obj1);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 if (arg1) (arg1)->m_itemId = arg2;
19767
19768 Py_INCREF(Py_None); resultobj = Py_None;
19769 return resultobj;
19770 fail:
19771 return NULL;
19772 }
19773
19774
19775 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19776 PyObject *resultobj;
19777 wxListItem *arg1 = (wxListItem *) 0 ;
19778 long result;
19779 PyObject * obj0 = 0 ;
19780 char *kwnames[] = {
19781 (char *) "self", NULL
19782 };
19783
19784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
19785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19787 result = (long) ((arg1)->m_itemId);
19788
19789 resultobj = SWIG_FromLong((long)result);
19790 return resultobj;
19791 fail:
19792 return NULL;
19793 }
19794
19795
19796 static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19797 PyObject *resultobj;
19798 wxListItem *arg1 = (wxListItem *) 0 ;
19799 int arg2 ;
19800 PyObject * obj0 = 0 ;
19801 PyObject * obj1 = 0 ;
19802 char *kwnames[] = {
19803 (char *) "self",(char *) "m_col", NULL
19804 };
19805
19806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19809 arg2 = (int) SWIG_AsInt(obj1);
19810 if (PyErr_Occurred()) SWIG_fail;
19811 if (arg1) (arg1)->m_col = arg2;
19812
19813 Py_INCREF(Py_None); resultobj = Py_None;
19814 return resultobj;
19815 fail:
19816 return NULL;
19817 }
19818
19819
19820 static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19821 PyObject *resultobj;
19822 wxListItem *arg1 = (wxListItem *) 0 ;
19823 int result;
19824 PyObject * obj0 = 0 ;
19825 char *kwnames[] = {
19826 (char *) "self", NULL
19827 };
19828
19829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
19830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19832 result = (int) ((arg1)->m_col);
19833
19834 resultobj = SWIG_FromInt((int)result);
19835 return resultobj;
19836 fail:
19837 return NULL;
19838 }
19839
19840
19841 static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19842 PyObject *resultobj;
19843 wxListItem *arg1 = (wxListItem *) 0 ;
19844 long arg2 ;
19845 PyObject * obj0 = 0 ;
19846 PyObject * obj1 = 0 ;
19847 char *kwnames[] = {
19848 (char *) "self",(char *) "m_state", NULL
19849 };
19850
19851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
19852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19854 arg2 = (long) SWIG_AsLong(obj1);
19855 if (PyErr_Occurred()) SWIG_fail;
19856 if (arg1) (arg1)->m_state = arg2;
19857
19858 Py_INCREF(Py_None); resultobj = Py_None;
19859 return resultobj;
19860 fail:
19861 return NULL;
19862 }
19863
19864
19865 static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19866 PyObject *resultobj;
19867 wxListItem *arg1 = (wxListItem *) 0 ;
19868 long result;
19869 PyObject * obj0 = 0 ;
19870 char *kwnames[] = {
19871 (char *) "self", NULL
19872 };
19873
19874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
19875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19877 result = (long) ((arg1)->m_state);
19878
19879 resultobj = SWIG_FromLong((long)result);
19880 return resultobj;
19881 fail:
19882 return NULL;
19883 }
19884
19885
19886 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19887 PyObject *resultobj;
19888 wxListItem *arg1 = (wxListItem *) 0 ;
19889 long arg2 ;
19890 PyObject * obj0 = 0 ;
19891 PyObject * obj1 = 0 ;
19892 char *kwnames[] = {
19893 (char *) "self",(char *) "m_stateMask", NULL
19894 };
19895
19896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
19897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19899 arg2 = (long) SWIG_AsLong(obj1);
19900 if (PyErr_Occurred()) SWIG_fail;
19901 if (arg1) (arg1)->m_stateMask = arg2;
19902
19903 Py_INCREF(Py_None); resultobj = Py_None;
19904 return resultobj;
19905 fail:
19906 return NULL;
19907 }
19908
19909
19910 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19911 PyObject *resultobj;
19912 wxListItem *arg1 = (wxListItem *) 0 ;
19913 long result;
19914 PyObject * obj0 = 0 ;
19915 char *kwnames[] = {
19916 (char *) "self", NULL
19917 };
19918
19919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
19920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19922 result = (long) ((arg1)->m_stateMask);
19923
19924 resultobj = SWIG_FromLong((long)result);
19925 return resultobj;
19926 fail:
19927 return NULL;
19928 }
19929
19930
19931 static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19932 PyObject *resultobj;
19933 wxListItem *arg1 = (wxListItem *) 0 ;
19934 wxString *arg2 = (wxString *) 0 ;
19935 bool temp2 = False ;
19936 PyObject * obj0 = 0 ;
19937 PyObject * obj1 = 0 ;
19938 char *kwnames[] = {
19939 (char *) "self",(char *) "m_text", NULL
19940 };
19941
19942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
19943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19945 {
19946 arg2 = wxString_in_helper(obj1);
19947 if (arg2 == NULL) SWIG_fail;
19948 temp2 = True;
19949 }
19950 if (arg1) (arg1)->m_text = *arg2;
19951
19952 Py_INCREF(Py_None); resultobj = Py_None;
19953 {
19954 if (temp2)
19955 delete arg2;
19956 }
19957 return resultobj;
19958 fail:
19959 {
19960 if (temp2)
19961 delete arg2;
19962 }
19963 return NULL;
19964 }
19965
19966
19967 static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19968 PyObject *resultobj;
19969 wxListItem *arg1 = (wxListItem *) 0 ;
19970 wxString *result;
19971 PyObject * obj0 = 0 ;
19972 char *kwnames[] = {
19973 (char *) "self", NULL
19974 };
19975
19976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
19977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19979 result = (wxString *)& ((arg1)->m_text);
19980
19981 {
19982 #if wxUSE_UNICODE
19983 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19984 #else
19985 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19986 #endif
19987 }
19988 return resultobj;
19989 fail:
19990 return NULL;
19991 }
19992
19993
19994 static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19995 PyObject *resultobj;
19996 wxListItem *arg1 = (wxListItem *) 0 ;
19997 int arg2 ;
19998 PyObject * obj0 = 0 ;
19999 PyObject * obj1 = 0 ;
20000 char *kwnames[] = {
20001 (char *) "self",(char *) "m_image", NULL
20002 };
20003
20004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20007 arg2 = (int) SWIG_AsInt(obj1);
20008 if (PyErr_Occurred()) SWIG_fail;
20009 if (arg1) (arg1)->m_image = arg2;
20010
20011 Py_INCREF(Py_None); resultobj = Py_None;
20012 return resultobj;
20013 fail:
20014 return NULL;
20015 }
20016
20017
20018 static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20019 PyObject *resultobj;
20020 wxListItem *arg1 = (wxListItem *) 0 ;
20021 int result;
20022 PyObject * obj0 = 0 ;
20023 char *kwnames[] = {
20024 (char *) "self", NULL
20025 };
20026
20027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20030 result = (int) ((arg1)->m_image);
20031
20032 resultobj = SWIG_FromInt((int)result);
20033 return resultobj;
20034 fail:
20035 return NULL;
20036 }
20037
20038
20039 static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20040 PyObject *resultobj;
20041 wxListItem *arg1 = (wxListItem *) 0 ;
20042 long arg2 ;
20043 PyObject * obj0 = 0 ;
20044 PyObject * obj1 = 0 ;
20045 char *kwnames[] = {
20046 (char *) "self",(char *) "m_data", NULL
20047 };
20048
20049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20052 arg2 = (long) SWIG_AsLong(obj1);
20053 if (PyErr_Occurred()) SWIG_fail;
20054 if (arg1) (arg1)->m_data = arg2;
20055
20056 Py_INCREF(Py_None); resultobj = Py_None;
20057 return resultobj;
20058 fail:
20059 return NULL;
20060 }
20061
20062
20063 static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20064 PyObject *resultobj;
20065 wxListItem *arg1 = (wxListItem *) 0 ;
20066 long result;
20067 PyObject * obj0 = 0 ;
20068 char *kwnames[] = {
20069 (char *) "self", NULL
20070 };
20071
20072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20075 result = (long) ((arg1)->m_data);
20076
20077 resultobj = SWIG_FromLong((long)result);
20078 return resultobj;
20079 fail:
20080 return NULL;
20081 }
20082
20083
20084 static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20085 PyObject *resultobj;
20086 wxListItem *arg1 = (wxListItem *) 0 ;
20087 int arg2 ;
20088 PyObject * obj0 = 0 ;
20089 PyObject * obj1 = 0 ;
20090 char *kwnames[] = {
20091 (char *) "self",(char *) "m_format", NULL
20092 };
20093
20094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20097 arg2 = (int) SWIG_AsInt(obj1);
20098 if (PyErr_Occurred()) SWIG_fail;
20099 if (arg1) (arg1)->m_format = arg2;
20100
20101 Py_INCREF(Py_None); resultobj = Py_None;
20102 return resultobj;
20103 fail:
20104 return NULL;
20105 }
20106
20107
20108 static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20109 PyObject *resultobj;
20110 wxListItem *arg1 = (wxListItem *) 0 ;
20111 int result;
20112 PyObject * obj0 = 0 ;
20113 char *kwnames[] = {
20114 (char *) "self", NULL
20115 };
20116
20117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20120 result = (int) ((arg1)->m_format);
20121
20122 resultobj = SWIG_FromInt((int)result);
20123 return resultobj;
20124 fail:
20125 return NULL;
20126 }
20127
20128
20129 static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20130 PyObject *resultobj;
20131 wxListItem *arg1 = (wxListItem *) 0 ;
20132 int arg2 ;
20133 PyObject * obj0 = 0 ;
20134 PyObject * obj1 = 0 ;
20135 char *kwnames[] = {
20136 (char *) "self",(char *) "m_width", NULL
20137 };
20138
20139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20142 arg2 = (int) SWIG_AsInt(obj1);
20143 if (PyErr_Occurred()) SWIG_fail;
20144 if (arg1) (arg1)->m_width = arg2;
20145
20146 Py_INCREF(Py_None); resultobj = Py_None;
20147 return resultobj;
20148 fail:
20149 return NULL;
20150 }
20151
20152
20153 static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20154 PyObject *resultobj;
20155 wxListItem *arg1 = (wxListItem *) 0 ;
20156 int result;
20157 PyObject * obj0 = 0 ;
20158 char *kwnames[] = {
20159 (char *) "self", NULL
20160 };
20161
20162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20165 result = (int) ((arg1)->m_width);
20166
20167 resultobj = SWIG_FromInt((int)result);
20168 return resultobj;
20169 fail:
20170 return NULL;
20171 }
20172
20173
20174 static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
20175 PyObject *obj;
20176 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20177 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20178 Py_INCREF(obj);
20179 return Py_BuildValue((char *)"");
20180 }
20181 static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20182 PyObject *resultobj;
20183 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20184 int arg2 = (int) 0 ;
20185 wxListEvent *result;
20186 PyObject * obj0 = 0 ;
20187 PyObject * obj1 = 0 ;
20188 char *kwnames[] = {
20189 (char *) "commandType",(char *) "id", NULL
20190 };
20191
20192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20193 if (obj0) {
20194 arg1 = (wxEventType) SWIG_AsInt(obj0);
20195 if (PyErr_Occurred()) SWIG_fail;
20196 }
20197 if (obj1) {
20198 arg2 = (int) SWIG_AsInt(obj1);
20199 if (PyErr_Occurred()) SWIG_fail;
20200 }
20201 {
20202 PyThreadState* __tstate = wxPyBeginAllowThreads();
20203 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20204
20205 wxPyEndAllowThreads(__tstate);
20206 if (PyErr_Occurred()) SWIG_fail;
20207 }
20208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20209 return resultobj;
20210 fail:
20211 return NULL;
20212 }
20213
20214
20215 static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20216 PyObject *resultobj;
20217 wxListEvent *arg1 = (wxListEvent *) 0 ;
20218 int arg2 ;
20219 PyObject * obj0 = 0 ;
20220 PyObject * obj1 = 0 ;
20221 char *kwnames[] = {
20222 (char *) "self",(char *) "m_code", NULL
20223 };
20224
20225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20228 arg2 = (int) SWIG_AsInt(obj1);
20229 if (PyErr_Occurred()) SWIG_fail;
20230 if (arg1) (arg1)->m_code = arg2;
20231
20232 Py_INCREF(Py_None); resultobj = Py_None;
20233 return resultobj;
20234 fail:
20235 return NULL;
20236 }
20237
20238
20239 static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20240 PyObject *resultobj;
20241 wxListEvent *arg1 = (wxListEvent *) 0 ;
20242 int result;
20243 PyObject * obj0 = 0 ;
20244 char *kwnames[] = {
20245 (char *) "self", NULL
20246 };
20247
20248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20251 result = (int) ((arg1)->m_code);
20252
20253 resultobj = SWIG_FromInt((int)result);
20254 return resultobj;
20255 fail:
20256 return NULL;
20257 }
20258
20259
20260 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20261 PyObject *resultobj;
20262 wxListEvent *arg1 = (wxListEvent *) 0 ;
20263 long arg2 ;
20264 PyObject * obj0 = 0 ;
20265 PyObject * obj1 = 0 ;
20266 char *kwnames[] = {
20267 (char *) "self",(char *) "m_oldItemIndex", NULL
20268 };
20269
20270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20273 arg2 = (long) SWIG_AsLong(obj1);
20274 if (PyErr_Occurred()) SWIG_fail;
20275 if (arg1) (arg1)->m_oldItemIndex = arg2;
20276
20277 Py_INCREF(Py_None); resultobj = Py_None;
20278 return resultobj;
20279 fail:
20280 return NULL;
20281 }
20282
20283
20284 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20285 PyObject *resultobj;
20286 wxListEvent *arg1 = (wxListEvent *) 0 ;
20287 long result;
20288 PyObject * obj0 = 0 ;
20289 char *kwnames[] = {
20290 (char *) "self", NULL
20291 };
20292
20293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20296 result = (long) ((arg1)->m_oldItemIndex);
20297
20298 resultobj = SWIG_FromLong((long)result);
20299 return resultobj;
20300 fail:
20301 return NULL;
20302 }
20303
20304
20305 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20306 PyObject *resultobj;
20307 wxListEvent *arg1 = (wxListEvent *) 0 ;
20308 long arg2 ;
20309 PyObject * obj0 = 0 ;
20310 PyObject * obj1 = 0 ;
20311 char *kwnames[] = {
20312 (char *) "self",(char *) "m_itemIndex", NULL
20313 };
20314
20315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20318 arg2 = (long) SWIG_AsLong(obj1);
20319 if (PyErr_Occurred()) SWIG_fail;
20320 if (arg1) (arg1)->m_itemIndex = arg2;
20321
20322 Py_INCREF(Py_None); resultobj = Py_None;
20323 return resultobj;
20324 fail:
20325 return NULL;
20326 }
20327
20328
20329 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20330 PyObject *resultobj;
20331 wxListEvent *arg1 = (wxListEvent *) 0 ;
20332 long result;
20333 PyObject * obj0 = 0 ;
20334 char *kwnames[] = {
20335 (char *) "self", NULL
20336 };
20337
20338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20341 result = (long) ((arg1)->m_itemIndex);
20342
20343 resultobj = SWIG_FromLong((long)result);
20344 return resultobj;
20345 fail:
20346 return NULL;
20347 }
20348
20349
20350 static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20351 PyObject *resultobj;
20352 wxListEvent *arg1 = (wxListEvent *) 0 ;
20353 int arg2 ;
20354 PyObject * obj0 = 0 ;
20355 PyObject * obj1 = 0 ;
20356 char *kwnames[] = {
20357 (char *) "self",(char *) "m_col", NULL
20358 };
20359
20360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20363 arg2 = (int) SWIG_AsInt(obj1);
20364 if (PyErr_Occurred()) SWIG_fail;
20365 if (arg1) (arg1)->m_col = arg2;
20366
20367 Py_INCREF(Py_None); resultobj = Py_None;
20368 return resultobj;
20369 fail:
20370 return NULL;
20371 }
20372
20373
20374 static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20375 PyObject *resultobj;
20376 wxListEvent *arg1 = (wxListEvent *) 0 ;
20377 int result;
20378 PyObject * obj0 = 0 ;
20379 char *kwnames[] = {
20380 (char *) "self", NULL
20381 };
20382
20383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20386 result = (int) ((arg1)->m_col);
20387
20388 resultobj = SWIG_FromInt((int)result);
20389 return resultobj;
20390 fail:
20391 return NULL;
20392 }
20393
20394
20395 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20396 PyObject *resultobj;
20397 wxListEvent *arg1 = (wxListEvent *) 0 ;
20398 wxPoint *arg2 = (wxPoint *) 0 ;
20399 PyObject * obj0 = 0 ;
20400 PyObject * obj1 = 0 ;
20401 char *kwnames[] = {
20402 (char *) "self",(char *) "m_pointDrag", NULL
20403 };
20404
20405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20408 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20410 if (arg1) (arg1)->m_pointDrag = *arg2;
20411
20412 Py_INCREF(Py_None); resultobj = Py_None;
20413 return resultobj;
20414 fail:
20415 return NULL;
20416 }
20417
20418
20419 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20420 PyObject *resultobj;
20421 wxListEvent *arg1 = (wxListEvent *) 0 ;
20422 wxPoint *result;
20423 PyObject * obj0 = 0 ;
20424 char *kwnames[] = {
20425 (char *) "self", NULL
20426 };
20427
20428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20431 result = (wxPoint *)& ((arg1)->m_pointDrag);
20432
20433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20434 return resultobj;
20435 fail:
20436 return NULL;
20437 }
20438
20439
20440 static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20441 PyObject *resultobj;
20442 wxListEvent *arg1 = (wxListEvent *) 0 ;
20443 wxListItem *result;
20444 PyObject * obj0 = 0 ;
20445 char *kwnames[] = {
20446 (char *) "self", NULL
20447 };
20448
20449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20452 result = (wxListItem *)& ((arg1)->m_item);
20453
20454 {
20455 resultobj = wxPyMake_wxObject(result);
20456 }
20457 return resultobj;
20458 fail:
20459 return NULL;
20460 }
20461
20462
20463 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20464 PyObject *resultobj;
20465 wxListEvent *arg1 = (wxListEvent *) 0 ;
20466 int result;
20467 PyObject * obj0 = 0 ;
20468 char *kwnames[] = {
20469 (char *) "self", NULL
20470 };
20471
20472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20475 {
20476 PyThreadState* __tstate = wxPyBeginAllowThreads();
20477 result = (int)(arg1)->GetKeyCode();
20478
20479 wxPyEndAllowThreads(__tstate);
20480 if (PyErr_Occurred()) SWIG_fail;
20481 }
20482 resultobj = SWIG_FromInt((int)result);
20483 return resultobj;
20484 fail:
20485 return NULL;
20486 }
20487
20488
20489 static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
20490 PyObject *resultobj;
20491 wxListEvent *arg1 = (wxListEvent *) 0 ;
20492 long result;
20493 PyObject * obj0 = 0 ;
20494 char *kwnames[] = {
20495 (char *) "self", NULL
20496 };
20497
20498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20501 {
20502 PyThreadState* __tstate = wxPyBeginAllowThreads();
20503 result = (long)(arg1)->GetIndex();
20504
20505 wxPyEndAllowThreads(__tstate);
20506 if (PyErr_Occurred()) SWIG_fail;
20507 }
20508 resultobj = SWIG_FromLong((long)result);
20509 return resultobj;
20510 fail:
20511 return NULL;
20512 }
20513
20514
20515 static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20516 PyObject *resultobj;
20517 wxListEvent *arg1 = (wxListEvent *) 0 ;
20518 int result;
20519 PyObject * obj0 = 0 ;
20520 char *kwnames[] = {
20521 (char *) "self", NULL
20522 };
20523
20524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20527 {
20528 PyThreadState* __tstate = wxPyBeginAllowThreads();
20529 result = (int)(arg1)->GetColumn();
20530
20531 wxPyEndAllowThreads(__tstate);
20532 if (PyErr_Occurred()) SWIG_fail;
20533 }
20534 resultobj = SWIG_FromInt((int)result);
20535 return resultobj;
20536 fail:
20537 return NULL;
20538 }
20539
20540
20541 static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
20542 PyObject *resultobj;
20543 wxListEvent *arg1 = (wxListEvent *) 0 ;
20544 wxPoint result;
20545 PyObject * obj0 = 0 ;
20546 char *kwnames[] = {
20547 (char *) "self", NULL
20548 };
20549
20550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
20551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20553 {
20554 PyThreadState* __tstate = wxPyBeginAllowThreads();
20555 result = (arg1)->GetPoint();
20556
20557 wxPyEndAllowThreads(__tstate);
20558 if (PyErr_Occurred()) SWIG_fail;
20559 }
20560 {
20561 wxPoint * resultptr;
20562 resultptr = new wxPoint((wxPoint &) result);
20563 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20564 }
20565 return resultobj;
20566 fail:
20567 return NULL;
20568 }
20569
20570
20571 static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20572 PyObject *resultobj;
20573 wxListEvent *arg1 = (wxListEvent *) 0 ;
20574 wxString *result;
20575 PyObject * obj0 = 0 ;
20576 char *kwnames[] = {
20577 (char *) "self", NULL
20578 };
20579
20580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
20581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20583 {
20584 PyThreadState* __tstate = wxPyBeginAllowThreads();
20585 {
20586 wxString const &_result_ref = (arg1)->GetLabel();
20587 result = (wxString *) &_result_ref;
20588 }
20589
20590 wxPyEndAllowThreads(__tstate);
20591 if (PyErr_Occurred()) SWIG_fail;
20592 }
20593 {
20594 #if wxUSE_UNICODE
20595 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20596 #else
20597 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20598 #endif
20599 }
20600 return resultobj;
20601 fail:
20602 return NULL;
20603 }
20604
20605
20606 static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
20607 PyObject *resultobj;
20608 wxListEvent *arg1 = (wxListEvent *) 0 ;
20609 wxString *result;
20610 PyObject * obj0 = 0 ;
20611 char *kwnames[] = {
20612 (char *) "self", NULL
20613 };
20614
20615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
20616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20618 {
20619 PyThreadState* __tstate = wxPyBeginAllowThreads();
20620 {
20621 wxString const &_result_ref = (arg1)->GetText();
20622 result = (wxString *) &_result_ref;
20623 }
20624
20625 wxPyEndAllowThreads(__tstate);
20626 if (PyErr_Occurred()) SWIG_fail;
20627 }
20628 {
20629 #if wxUSE_UNICODE
20630 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20631 #else
20632 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20633 #endif
20634 }
20635 return resultobj;
20636 fail:
20637 return NULL;
20638 }
20639
20640
20641 static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20642 PyObject *resultobj;
20643 wxListEvent *arg1 = (wxListEvent *) 0 ;
20644 int result;
20645 PyObject * obj0 = 0 ;
20646 char *kwnames[] = {
20647 (char *) "self", NULL
20648 };
20649
20650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
20651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20653 {
20654 PyThreadState* __tstate = wxPyBeginAllowThreads();
20655 result = (int)(arg1)->GetImage();
20656
20657 wxPyEndAllowThreads(__tstate);
20658 if (PyErr_Occurred()) SWIG_fail;
20659 }
20660 resultobj = SWIG_FromInt((int)result);
20661 return resultobj;
20662 fail:
20663 return NULL;
20664 }
20665
20666
20667 static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
20668 PyObject *resultobj;
20669 wxListEvent *arg1 = (wxListEvent *) 0 ;
20670 long result;
20671 PyObject * obj0 = 0 ;
20672 char *kwnames[] = {
20673 (char *) "self", NULL
20674 };
20675
20676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
20677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20679 {
20680 PyThreadState* __tstate = wxPyBeginAllowThreads();
20681 result = (long)(arg1)->GetData();
20682
20683 wxPyEndAllowThreads(__tstate);
20684 if (PyErr_Occurred()) SWIG_fail;
20685 }
20686 resultobj = SWIG_FromLong((long)result);
20687 return resultobj;
20688 fail:
20689 return NULL;
20690 }
20691
20692
20693 static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
20694 PyObject *resultobj;
20695 wxListEvent *arg1 = (wxListEvent *) 0 ;
20696 long result;
20697 PyObject * obj0 = 0 ;
20698 char *kwnames[] = {
20699 (char *) "self", NULL
20700 };
20701
20702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
20703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20705 {
20706 PyThreadState* __tstate = wxPyBeginAllowThreads();
20707 result = (long)(arg1)->GetMask();
20708
20709 wxPyEndAllowThreads(__tstate);
20710 if (PyErr_Occurred()) SWIG_fail;
20711 }
20712 resultobj = SWIG_FromLong((long)result);
20713 return resultobj;
20714 fail:
20715 return NULL;
20716 }
20717
20718
20719 static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20720 PyObject *resultobj;
20721 wxListEvent *arg1 = (wxListEvent *) 0 ;
20722 wxListItem *result;
20723 PyObject * obj0 = 0 ;
20724 char *kwnames[] = {
20725 (char *) "self", NULL
20726 };
20727
20728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
20729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20731 {
20732 PyThreadState* __tstate = wxPyBeginAllowThreads();
20733 {
20734 wxListItem const &_result_ref = (arg1)->GetItem();
20735 result = (wxListItem *) &_result_ref;
20736 }
20737
20738 wxPyEndAllowThreads(__tstate);
20739 if (PyErr_Occurred()) SWIG_fail;
20740 }
20741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
20742 return resultobj;
20743 fail:
20744 return NULL;
20745 }
20746
20747
20748 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
20749 PyObject *resultobj;
20750 wxListEvent *arg1 = (wxListEvent *) 0 ;
20751 long result;
20752 PyObject * obj0 = 0 ;
20753 char *kwnames[] = {
20754 (char *) "self", NULL
20755 };
20756
20757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
20758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20760 {
20761 PyThreadState* __tstate = wxPyBeginAllowThreads();
20762 result = (long)(arg1)->GetCacheFrom();
20763
20764 wxPyEndAllowThreads(__tstate);
20765 if (PyErr_Occurred()) SWIG_fail;
20766 }
20767 resultobj = SWIG_FromLong((long)result);
20768 return resultobj;
20769 fail:
20770 return NULL;
20771 }
20772
20773
20774 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20775 PyObject *resultobj;
20776 wxListEvent *arg1 = (wxListEvent *) 0 ;
20777 long result;
20778 PyObject * obj0 = 0 ;
20779 char *kwnames[] = {
20780 (char *) "self", NULL
20781 };
20782
20783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
20784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20786 {
20787 PyThreadState* __tstate = wxPyBeginAllowThreads();
20788 result = (long)(arg1)->GetCacheTo();
20789
20790 wxPyEndAllowThreads(__tstate);
20791 if (PyErr_Occurred()) SWIG_fail;
20792 }
20793 resultobj = SWIG_FromLong((long)result);
20794 return resultobj;
20795 fail:
20796 return NULL;
20797 }
20798
20799
20800 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
20801 PyObject *resultobj;
20802 wxListEvent *arg1 = (wxListEvent *) 0 ;
20803 bool result;
20804 PyObject * obj0 = 0 ;
20805 char *kwnames[] = {
20806 (char *) "self", NULL
20807 };
20808
20809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
20810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20812 {
20813 PyThreadState* __tstate = wxPyBeginAllowThreads();
20814 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
20815
20816 wxPyEndAllowThreads(__tstate);
20817 if (PyErr_Occurred()) SWIG_fail;
20818 }
20819 {
20820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20821 }
20822 return resultobj;
20823 fail:
20824 return NULL;
20825 }
20826
20827
20828 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
20829 PyObject *resultobj;
20830 wxListEvent *arg1 = (wxListEvent *) 0 ;
20831 bool arg2 ;
20832 PyObject * obj0 = 0 ;
20833 PyObject * obj1 = 0 ;
20834 char *kwnames[] = {
20835 (char *) "self",(char *) "editCancelled", NULL
20836 };
20837
20838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
20839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20841 arg2 = (bool) SWIG_AsBool(obj1);
20842 if (PyErr_Occurred()) SWIG_fail;
20843 {
20844 PyThreadState* __tstate = wxPyBeginAllowThreads();
20845 (arg1)->SetEditCanceled(arg2);
20846
20847 wxPyEndAllowThreads(__tstate);
20848 if (PyErr_Occurred()) SWIG_fail;
20849 }
20850 Py_INCREF(Py_None); resultobj = Py_None;
20851 return resultobj;
20852 fail:
20853 return NULL;
20854 }
20855
20856
20857 static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
20858 PyObject *obj;
20859 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20860 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
20861 Py_INCREF(obj);
20862 return Py_BuildValue((char *)"");
20863 }
20864 static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20865 PyObject *resultobj;
20866 wxWindow *arg1 = (wxWindow *) 0 ;
20867 int arg2 = (int) -1 ;
20868 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20869 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20870 wxSize const &arg4_defvalue = wxDefaultSize ;
20871 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20872 long arg5 = (long) wxLC_ICON ;
20873 wxValidator const &arg6_defvalue = wxDefaultValidator ;
20874 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
20875 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
20876 wxString *arg7 = (wxString *) &arg7_defvalue ;
20877 wxPyListCtrl *result;
20878 wxPoint temp3 ;
20879 wxSize temp4 ;
20880 bool temp7 = False ;
20881 PyObject * obj0 = 0 ;
20882 PyObject * obj1 = 0 ;
20883 PyObject * obj2 = 0 ;
20884 PyObject * obj3 = 0 ;
20885 PyObject * obj4 = 0 ;
20886 PyObject * obj5 = 0 ;
20887 PyObject * obj6 = 0 ;
20888 char *kwnames[] = {
20889 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
20890 };
20891
20892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
20893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20895 if (obj1) {
20896 arg2 = (int) SWIG_AsInt(obj1);
20897 if (PyErr_Occurred()) SWIG_fail;
20898 }
20899 if (obj2) {
20900 {
20901 arg3 = &temp3;
20902 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20903 }
20904 }
20905 if (obj3) {
20906 {
20907 arg4 = &temp4;
20908 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20909 }
20910 }
20911 if (obj4) {
20912 arg5 = (long) SWIG_AsLong(obj4);
20913 if (PyErr_Occurred()) SWIG_fail;
20914 }
20915 if (obj5) {
20916 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
20917 SWIG_POINTER_EXCEPTION | 0)) == -1)
20918 SWIG_fail;
20919 if (arg6 == NULL) {
20920 PyErr_SetString(PyExc_TypeError,"null reference");
20921 SWIG_fail;
20922 }
20923 }
20924 if (obj6) {
20925 {
20926 arg7 = wxString_in_helper(obj6);
20927 if (arg7 == NULL) SWIG_fail;
20928 temp7 = True;
20929 }
20930 }
20931 {
20932 PyThreadState* __tstate = wxPyBeginAllowThreads();
20933 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
20934
20935 wxPyEndAllowThreads(__tstate);
20936 if (PyErr_Occurred()) SWIG_fail;
20937 }
20938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20939 {
20940 if (temp7)
20941 delete arg7;
20942 }
20943 return resultobj;
20944 fail:
20945 {
20946 if (temp7)
20947 delete arg7;
20948 }
20949 return NULL;
20950 }
20951
20952
20953 static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20954 PyObject *resultobj;
20955 wxPyListCtrl *result;
20956 char *kwnames[] = {
20957 NULL
20958 };
20959
20960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
20961 {
20962 PyThreadState* __tstate = wxPyBeginAllowThreads();
20963 result = (wxPyListCtrl *)new wxPyListCtrl();
20964
20965 wxPyEndAllowThreads(__tstate);
20966 if (PyErr_Occurred()) SWIG_fail;
20967 }
20968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20969 return resultobj;
20970 fail:
20971 return NULL;
20972 }
20973
20974
20975 static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
20976 PyObject *resultobj;
20977 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20978 wxWindow *arg2 = (wxWindow *) 0 ;
20979 int arg3 = (int) -1 ;
20980 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20981 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20982 wxSize const &arg5_defvalue = wxDefaultSize ;
20983 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20984 long arg6 = (long) wxLC_ICON ;
20985 wxValidator const &arg7_defvalue = wxDefaultValidator ;
20986 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
20987 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
20988 wxString *arg8 = (wxString *) &arg8_defvalue ;
20989 bool result;
20990 wxPoint temp4 ;
20991 wxSize temp5 ;
20992 bool temp8 = False ;
20993 PyObject * obj0 = 0 ;
20994 PyObject * obj1 = 0 ;
20995 PyObject * obj2 = 0 ;
20996 PyObject * obj3 = 0 ;
20997 PyObject * obj4 = 0 ;
20998 PyObject * obj5 = 0 ;
20999 PyObject * obj6 = 0 ;
21000 PyObject * obj7 = 0 ;
21001 char *kwnames[] = {
21002 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21003 };
21004
21005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21008 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21010 if (obj2) {
21011 arg3 = (int) SWIG_AsInt(obj2);
21012 if (PyErr_Occurred()) SWIG_fail;
21013 }
21014 if (obj3) {
21015 {
21016 arg4 = &temp4;
21017 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21018 }
21019 }
21020 if (obj4) {
21021 {
21022 arg5 = &temp5;
21023 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21024 }
21025 }
21026 if (obj5) {
21027 arg6 = (long) SWIG_AsLong(obj5);
21028 if (PyErr_Occurred()) SWIG_fail;
21029 }
21030 if (obj6) {
21031 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21032 SWIG_POINTER_EXCEPTION | 0)) == -1)
21033 SWIG_fail;
21034 if (arg7 == NULL) {
21035 PyErr_SetString(PyExc_TypeError,"null reference");
21036 SWIG_fail;
21037 }
21038 }
21039 if (obj7) {
21040 {
21041 arg8 = wxString_in_helper(obj7);
21042 if (arg8 == NULL) SWIG_fail;
21043 temp8 = True;
21044 }
21045 }
21046 {
21047 PyThreadState* __tstate = wxPyBeginAllowThreads();
21048 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21049
21050 wxPyEndAllowThreads(__tstate);
21051 if (PyErr_Occurred()) SWIG_fail;
21052 }
21053 {
21054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21055 }
21056 {
21057 if (temp8)
21058 delete arg8;
21059 }
21060 return resultobj;
21061 fail:
21062 {
21063 if (temp8)
21064 delete arg8;
21065 }
21066 return NULL;
21067 }
21068
21069
21070 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
21071 PyObject *resultobj;
21072 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21073 PyObject *arg2 = (PyObject *) 0 ;
21074 PyObject *arg3 = (PyObject *) 0 ;
21075 PyObject * obj0 = 0 ;
21076 PyObject * obj1 = 0 ;
21077 PyObject * obj2 = 0 ;
21078 char *kwnames[] = {
21079 (char *) "self",(char *) "self",(char *) "_class", NULL
21080 };
21081
21082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21085 arg2 = obj1;
21086 arg3 = obj2;
21087 {
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 (arg1)->_setCallbackInfo(arg2,arg3);
21090
21091 wxPyEndAllowThreads(__tstate);
21092 if (PyErr_Occurred()) SWIG_fail;
21093 }
21094 Py_INCREF(Py_None); resultobj = Py_None;
21095 return resultobj;
21096 fail:
21097 return NULL;
21098 }
21099
21100
21101 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21102 PyObject *resultobj;
21103 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21104 wxColour *arg2 = 0 ;
21105 bool result;
21106 wxColour temp2 ;
21107 PyObject * obj0 = 0 ;
21108 PyObject * obj1 = 0 ;
21109 char *kwnames[] = {
21110 (char *) "self",(char *) "col", NULL
21111 };
21112
21113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21116 {
21117 arg2 = &temp2;
21118 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21119 }
21120 {
21121 PyThreadState* __tstate = wxPyBeginAllowThreads();
21122 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21123
21124 wxPyEndAllowThreads(__tstate);
21125 if (PyErr_Occurred()) SWIG_fail;
21126 }
21127 {
21128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21129 }
21130 return resultobj;
21131 fail:
21132 return NULL;
21133 }
21134
21135
21136 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21137 PyObject *resultobj;
21138 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21139 wxColour *arg2 = 0 ;
21140 bool result;
21141 wxColour temp2 ;
21142 PyObject * obj0 = 0 ;
21143 PyObject * obj1 = 0 ;
21144 char *kwnames[] = {
21145 (char *) "self",(char *) "col", NULL
21146 };
21147
21148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21151 {
21152 arg2 = &temp2;
21153 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21154 }
21155 {
21156 PyThreadState* __tstate = wxPyBeginAllowThreads();
21157 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21158
21159 wxPyEndAllowThreads(__tstate);
21160 if (PyErr_Occurred()) SWIG_fail;
21161 }
21162 {
21163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21164 }
21165 return resultobj;
21166 fail:
21167 return NULL;
21168 }
21169
21170
21171 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21172 PyObject *resultobj;
21173 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21174 int arg2 ;
21175 wxListItem *result;
21176 PyObject * obj0 = 0 ;
21177 PyObject * obj1 = 0 ;
21178 char *kwnames[] = {
21179 (char *) "self",(char *) "col", NULL
21180 };
21181
21182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21185 arg2 = (int) SWIG_AsInt(obj1);
21186 if (PyErr_Occurred()) SWIG_fail;
21187 {
21188 PyThreadState* __tstate = wxPyBeginAllowThreads();
21189 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21190
21191 wxPyEndAllowThreads(__tstate);
21192 if (PyErr_Occurred()) SWIG_fail;
21193 }
21194 {
21195 resultobj = wxPyMake_wxObject(result);
21196 }
21197 return resultobj;
21198 fail:
21199 return NULL;
21200 }
21201
21202
21203 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21204 PyObject *resultobj;
21205 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21206 int arg2 ;
21207 wxListItem *arg3 = 0 ;
21208 bool result;
21209 PyObject * obj0 = 0 ;
21210 PyObject * obj1 = 0 ;
21211 PyObject * obj2 = 0 ;
21212 char *kwnames[] = {
21213 (char *) "self",(char *) "col",(char *) "item", NULL
21214 };
21215
21216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21219 arg2 = (int) SWIG_AsInt(obj1);
21220 if (PyErr_Occurred()) SWIG_fail;
21221 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21222 SWIG_POINTER_EXCEPTION | 0)) == -1)
21223 SWIG_fail;
21224 if (arg3 == NULL) {
21225 PyErr_SetString(PyExc_TypeError,"null reference");
21226 SWIG_fail;
21227 }
21228 {
21229 PyThreadState* __tstate = wxPyBeginAllowThreads();
21230 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21231
21232 wxPyEndAllowThreads(__tstate);
21233 if (PyErr_Occurred()) SWIG_fail;
21234 }
21235 {
21236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21237 }
21238 return resultobj;
21239 fail:
21240 return NULL;
21241 }
21242
21243
21244 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21245 PyObject *resultobj;
21246 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21247 int arg2 ;
21248 int result;
21249 PyObject * obj0 = 0 ;
21250 PyObject * obj1 = 0 ;
21251 char *kwnames[] = {
21252 (char *) "self",(char *) "col", NULL
21253 };
21254
21255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21258 arg2 = (int) SWIG_AsInt(obj1);
21259 if (PyErr_Occurred()) SWIG_fail;
21260 {
21261 PyThreadState* __tstate = wxPyBeginAllowThreads();
21262 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21263
21264 wxPyEndAllowThreads(__tstate);
21265 if (PyErr_Occurred()) SWIG_fail;
21266 }
21267 resultobj = SWIG_FromInt((int)result);
21268 return resultobj;
21269 fail:
21270 return NULL;
21271 }
21272
21273
21274 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21275 PyObject *resultobj;
21276 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21277 int arg2 ;
21278 int arg3 ;
21279 bool result;
21280 PyObject * obj0 = 0 ;
21281 PyObject * obj1 = 0 ;
21282 PyObject * obj2 = 0 ;
21283 char *kwnames[] = {
21284 (char *) "self",(char *) "col",(char *) "width", NULL
21285 };
21286
21287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21290 arg2 = (int) SWIG_AsInt(obj1);
21291 if (PyErr_Occurred()) SWIG_fail;
21292 arg3 = (int) SWIG_AsInt(obj2);
21293 if (PyErr_Occurred()) SWIG_fail;
21294 {
21295 PyThreadState* __tstate = wxPyBeginAllowThreads();
21296 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21297
21298 wxPyEndAllowThreads(__tstate);
21299 if (PyErr_Occurred()) SWIG_fail;
21300 }
21301 {
21302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21303 }
21304 return resultobj;
21305 fail:
21306 return NULL;
21307 }
21308
21309
21310 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
21311 PyObject *resultobj;
21312 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21313 int result;
21314 PyObject * obj0 = 0 ;
21315 char *kwnames[] = {
21316 (char *) "self", NULL
21317 };
21318
21319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21322 {
21323 PyThreadState* __tstate = wxPyBeginAllowThreads();
21324 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21325
21326 wxPyEndAllowThreads(__tstate);
21327 if (PyErr_Occurred()) SWIG_fail;
21328 }
21329 resultobj = SWIG_FromInt((int)result);
21330 return resultobj;
21331 fail:
21332 return NULL;
21333 }
21334
21335
21336 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21337 PyObject *resultobj;
21338 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21339 wxRect result;
21340 PyObject * obj0 = 0 ;
21341 char *kwnames[] = {
21342 (char *) "self", NULL
21343 };
21344
21345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21348 {
21349 PyThreadState* __tstate = wxPyBeginAllowThreads();
21350 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21351
21352 wxPyEndAllowThreads(__tstate);
21353 if (PyErr_Occurred()) SWIG_fail;
21354 }
21355 {
21356 wxRect * resultptr;
21357 resultptr = new wxRect((wxRect &) result);
21358 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21359 }
21360 return resultobj;
21361 fail:
21362 return NULL;
21363 }
21364
21365
21366 static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21367 PyObject *resultobj;
21368 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21369 long arg2 ;
21370 int arg3 = (int) 0 ;
21371 wxListItem *result;
21372 PyObject * obj0 = 0 ;
21373 PyObject * obj1 = 0 ;
21374 PyObject * obj2 = 0 ;
21375 char *kwnames[] = {
21376 (char *) "self",(char *) "itemId",(char *) "col", NULL
21377 };
21378
21379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21382 arg2 = (long) SWIG_AsLong(obj1);
21383 if (PyErr_Occurred()) SWIG_fail;
21384 if (obj2) {
21385 arg3 = (int) SWIG_AsInt(obj2);
21386 if (PyErr_Occurred()) SWIG_fail;
21387 }
21388 {
21389 PyThreadState* __tstate = wxPyBeginAllowThreads();
21390 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21391
21392 wxPyEndAllowThreads(__tstate);
21393 if (PyErr_Occurred()) SWIG_fail;
21394 }
21395 {
21396 resultobj = wxPyMake_wxObject(result);
21397 }
21398 return resultobj;
21399 fail:
21400 return NULL;
21401 }
21402
21403
21404 static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21405 PyObject *resultobj;
21406 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21407 wxListItem *arg2 = 0 ;
21408 bool result;
21409 PyObject * obj0 = 0 ;
21410 PyObject * obj1 = 0 ;
21411 char *kwnames[] = {
21412 (char *) "self",(char *) "info", NULL
21413 };
21414
21415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21418 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21419 SWIG_POINTER_EXCEPTION | 0)) == -1)
21420 SWIG_fail;
21421 if (arg2 == NULL) {
21422 PyErr_SetString(PyExc_TypeError,"null reference");
21423 SWIG_fail;
21424 }
21425 {
21426 PyThreadState* __tstate = wxPyBeginAllowThreads();
21427 result = (bool)(arg1)->SetItem(*arg2);
21428
21429 wxPyEndAllowThreads(__tstate);
21430 if (PyErr_Occurred()) SWIG_fail;
21431 }
21432 {
21433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21434 }
21435 return resultobj;
21436 fail:
21437 return NULL;
21438 }
21439
21440
21441 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21442 PyObject *resultobj;
21443 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21444 long arg2 ;
21445 int arg3 ;
21446 wxString *arg4 = 0 ;
21447 int arg5 = (int) -1 ;
21448 long result;
21449 bool temp4 = False ;
21450 PyObject * obj0 = 0 ;
21451 PyObject * obj1 = 0 ;
21452 PyObject * obj2 = 0 ;
21453 PyObject * obj3 = 0 ;
21454 PyObject * obj4 = 0 ;
21455 char *kwnames[] = {
21456 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21457 };
21458
21459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21462 arg2 = (long) SWIG_AsLong(obj1);
21463 if (PyErr_Occurred()) SWIG_fail;
21464 arg3 = (int) SWIG_AsInt(obj2);
21465 if (PyErr_Occurred()) SWIG_fail;
21466 {
21467 arg4 = wxString_in_helper(obj3);
21468 if (arg4 == NULL) SWIG_fail;
21469 temp4 = True;
21470 }
21471 if (obj4) {
21472 arg5 = (int) SWIG_AsInt(obj4);
21473 if (PyErr_Occurred()) SWIG_fail;
21474 }
21475 {
21476 PyThreadState* __tstate = wxPyBeginAllowThreads();
21477 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21478
21479 wxPyEndAllowThreads(__tstate);
21480 if (PyErr_Occurred()) SWIG_fail;
21481 }
21482 resultobj = SWIG_FromLong((long)result);
21483 {
21484 if (temp4)
21485 delete arg4;
21486 }
21487 return resultobj;
21488 fail:
21489 {
21490 if (temp4)
21491 delete arg4;
21492 }
21493 return NULL;
21494 }
21495
21496
21497 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21498 PyObject *resultobj;
21499 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21500 long arg2 ;
21501 long arg3 ;
21502 int result;
21503 PyObject * obj0 = 0 ;
21504 PyObject * obj1 = 0 ;
21505 PyObject * obj2 = 0 ;
21506 char *kwnames[] = {
21507 (char *) "self",(char *) "item",(char *) "stateMask", NULL
21508 };
21509
21510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
21511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21513 arg2 = (long) SWIG_AsLong(obj1);
21514 if (PyErr_Occurred()) SWIG_fail;
21515 arg3 = (long) SWIG_AsLong(obj2);
21516 if (PyErr_Occurred()) SWIG_fail;
21517 {
21518 PyThreadState* __tstate = wxPyBeginAllowThreads();
21519 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
21520
21521 wxPyEndAllowThreads(__tstate);
21522 if (PyErr_Occurred()) SWIG_fail;
21523 }
21524 resultobj = SWIG_FromInt((int)result);
21525 return resultobj;
21526 fail:
21527 return NULL;
21528 }
21529
21530
21531 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21532 PyObject *resultobj;
21533 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21534 long arg2 ;
21535 long arg3 ;
21536 long arg4 ;
21537 bool result;
21538 PyObject * obj0 = 0 ;
21539 PyObject * obj1 = 0 ;
21540 PyObject * obj2 = 0 ;
21541 PyObject * obj3 = 0 ;
21542 char *kwnames[] = {
21543 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
21544 };
21545
21546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) 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 arg4 = (long) SWIG_AsLong(obj3);
21554 if (PyErr_Occurred()) SWIG_fail;
21555 {
21556 PyThreadState* __tstate = wxPyBeginAllowThreads();
21557 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
21558
21559 wxPyEndAllowThreads(__tstate);
21560 if (PyErr_Occurred()) SWIG_fail;
21561 }
21562 {
21563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21564 }
21565 return resultobj;
21566 fail:
21567 return NULL;
21568 }
21569
21570
21571 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
21572 PyObject *resultobj;
21573 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21574 long arg2 ;
21575 int arg3 ;
21576 int arg4 ;
21577 bool result;
21578 PyObject * obj0 = 0 ;
21579 PyObject * obj1 = 0 ;
21580 PyObject * obj2 = 0 ;
21581 PyObject * obj3 = 0 ;
21582 char *kwnames[] = {
21583 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
21584 };
21585
21586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21589 arg2 = (long) SWIG_AsLong(obj1);
21590 if (PyErr_Occurred()) SWIG_fail;
21591 arg3 = (int) SWIG_AsInt(obj2);
21592 if (PyErr_Occurred()) SWIG_fail;
21593 arg4 = (int) SWIG_AsInt(obj3);
21594 if (PyErr_Occurred()) SWIG_fail;
21595 {
21596 PyThreadState* __tstate = wxPyBeginAllowThreads();
21597 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
21598
21599 wxPyEndAllowThreads(__tstate);
21600 if (PyErr_Occurred()) SWIG_fail;
21601 }
21602 {
21603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21604 }
21605 return resultobj;
21606 fail:
21607 return NULL;
21608 }
21609
21610
21611 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21612 PyObject *resultobj;
21613 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21614 long arg2 ;
21615 wxString result;
21616 PyObject * obj0 = 0 ;
21617 PyObject * obj1 = 0 ;
21618 char *kwnames[] = {
21619 (char *) "self",(char *) "item", NULL
21620 };
21621
21622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) 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 {
21628 PyThreadState* __tstate = wxPyBeginAllowThreads();
21629 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
21630
21631 wxPyEndAllowThreads(__tstate);
21632 if (PyErr_Occurred()) SWIG_fail;
21633 }
21634 {
21635 #if wxUSE_UNICODE
21636 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21637 #else
21638 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21639 #endif
21640 }
21641 return resultobj;
21642 fail:
21643 return NULL;
21644 }
21645
21646
21647 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21648 PyObject *resultobj;
21649 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21650 long arg2 ;
21651 wxString *arg3 = 0 ;
21652 bool temp3 = False ;
21653 PyObject * obj0 = 0 ;
21654 PyObject * obj1 = 0 ;
21655 PyObject * obj2 = 0 ;
21656 char *kwnames[] = {
21657 (char *) "self",(char *) "item",(char *) "str", NULL
21658 };
21659
21660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
21661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21663 arg2 = (long) SWIG_AsLong(obj1);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 {
21666 arg3 = wxString_in_helper(obj2);
21667 if (arg3 == NULL) SWIG_fail;
21668 temp3 = True;
21669 }
21670 {
21671 PyThreadState* __tstate = wxPyBeginAllowThreads();
21672 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
21673
21674 wxPyEndAllowThreads(__tstate);
21675 if (PyErr_Occurred()) SWIG_fail;
21676 }
21677 Py_INCREF(Py_None); resultobj = Py_None;
21678 {
21679 if (temp3)
21680 delete arg3;
21681 }
21682 return resultobj;
21683 fail:
21684 {
21685 if (temp3)
21686 delete arg3;
21687 }
21688 return NULL;
21689 }
21690
21691
21692 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21693 PyObject *resultobj;
21694 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21695 long arg2 ;
21696 long result;
21697 PyObject * obj0 = 0 ;
21698 PyObject * obj1 = 0 ;
21699 char *kwnames[] = {
21700 (char *) "self",(char *) "item", NULL
21701 };
21702
21703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
21704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21706 arg2 = (long) SWIG_AsLong(obj1);
21707 if (PyErr_Occurred()) SWIG_fail;
21708 {
21709 PyThreadState* __tstate = wxPyBeginAllowThreads();
21710 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
21711
21712 wxPyEndAllowThreads(__tstate);
21713 if (PyErr_Occurred()) SWIG_fail;
21714 }
21715 resultobj = SWIG_FromLong((long)result);
21716 return resultobj;
21717 fail:
21718 return NULL;
21719 }
21720
21721
21722 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21723 PyObject *resultobj;
21724 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21725 long arg2 ;
21726 long arg3 ;
21727 bool result;
21728 PyObject * obj0 = 0 ;
21729 PyObject * obj1 = 0 ;
21730 PyObject * obj2 = 0 ;
21731 char *kwnames[] = {
21732 (char *) "self",(char *) "item",(char *) "data", NULL
21733 };
21734
21735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21738 arg2 = (long) SWIG_AsLong(obj1);
21739 if (PyErr_Occurred()) SWIG_fail;
21740 arg3 = (long) SWIG_AsLong(obj2);
21741 if (PyErr_Occurred()) SWIG_fail;
21742 {
21743 PyThreadState* __tstate = wxPyBeginAllowThreads();
21744 result = (bool)(arg1)->SetItemData(arg2,arg3);
21745
21746 wxPyEndAllowThreads(__tstate);
21747 if (PyErr_Occurred()) SWIG_fail;
21748 }
21749 {
21750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21751 }
21752 return resultobj;
21753 fail:
21754 return NULL;
21755 }
21756
21757
21758 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21759 PyObject *resultobj;
21760 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21761 long arg2 ;
21762 wxPoint result;
21763 PyObject * obj0 = 0 ;
21764 PyObject * obj1 = 0 ;
21765 char *kwnames[] = {
21766 (char *) "self",(char *) "item", NULL
21767 };
21768
21769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
21770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21772 arg2 = (long) SWIG_AsLong(obj1);
21773 if (PyErr_Occurred()) SWIG_fail;
21774 {
21775 PyThreadState* __tstate = wxPyBeginAllowThreads();
21776 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
21777
21778 wxPyEndAllowThreads(__tstate);
21779 if (PyErr_Occurred()) SWIG_fail;
21780 }
21781 {
21782 wxPoint * resultptr;
21783 resultptr = new wxPoint((wxPoint &) result);
21784 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21785 }
21786 return resultobj;
21787 fail:
21788 return NULL;
21789 }
21790
21791
21792 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21793 PyObject *resultobj;
21794 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21795 long arg2 ;
21796 int arg3 = (int) wxLIST_RECT_BOUNDS ;
21797 wxRect result;
21798 PyObject * obj0 = 0 ;
21799 PyObject * obj1 = 0 ;
21800 PyObject * obj2 = 0 ;
21801 char *kwnames[] = {
21802 (char *) "self",(char *) "item",(char *) "code", NULL
21803 };
21804
21805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) 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 if (obj2) {
21811 arg3 = (int) SWIG_AsInt(obj2);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 {
21815 PyThreadState* __tstate = wxPyBeginAllowThreads();
21816 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
21817
21818 wxPyEndAllowThreads(__tstate);
21819 if (PyErr_Occurred()) SWIG_fail;
21820 }
21821 {
21822 wxRect * resultptr;
21823 resultptr = new wxRect((wxRect &) result);
21824 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21825 }
21826 return resultobj;
21827 fail:
21828 return NULL;
21829 }
21830
21831
21832 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21833 PyObject *resultobj;
21834 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21835 long arg2 ;
21836 wxPoint *arg3 = 0 ;
21837 bool result;
21838 wxPoint temp3 ;
21839 PyObject * obj0 = 0 ;
21840 PyObject * obj1 = 0 ;
21841 PyObject * obj2 = 0 ;
21842 char *kwnames[] = {
21843 (char *) "self",(char *) "item",(char *) "pos", NULL
21844 };
21845
21846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
21847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21849 arg2 = (long) SWIG_AsLong(obj1);
21850 if (PyErr_Occurred()) SWIG_fail;
21851 {
21852 arg3 = &temp3;
21853 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21854 }
21855 {
21856 PyThreadState* __tstate = wxPyBeginAllowThreads();
21857 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
21858
21859 wxPyEndAllowThreads(__tstate);
21860 if (PyErr_Occurred()) SWIG_fail;
21861 }
21862 {
21863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21864 }
21865 return resultobj;
21866 fail:
21867 return NULL;
21868 }
21869
21870
21871 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21872 PyObject *resultobj;
21873 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21874 int result;
21875 PyObject * obj0 = 0 ;
21876 char *kwnames[] = {
21877 (char *) "self", NULL
21878 };
21879
21880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
21881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21883 {
21884 PyThreadState* __tstate = wxPyBeginAllowThreads();
21885 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
21886
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 resultobj = SWIG_FromInt((int)result);
21891 return resultobj;
21892 fail:
21893 return NULL;
21894 }
21895
21896
21897 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21898 PyObject *resultobj;
21899 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21900 int result;
21901 PyObject * obj0 = 0 ;
21902 char *kwnames[] = {
21903 (char *) "self", NULL
21904 };
21905
21906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
21907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21909 {
21910 PyThreadState* __tstate = wxPyBeginAllowThreads();
21911 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
21912
21913 wxPyEndAllowThreads(__tstate);
21914 if (PyErr_Occurred()) SWIG_fail;
21915 }
21916 resultobj = SWIG_FromInt((int)result);
21917 return resultobj;
21918 fail:
21919 return NULL;
21920 }
21921
21922
21923 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
21924 PyObject *resultobj;
21925 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21926 wxSize result;
21927 PyObject * obj0 = 0 ;
21928 char *kwnames[] = {
21929 (char *) "self", NULL
21930 };
21931
21932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
21933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21935 {
21936 PyThreadState* __tstate = wxPyBeginAllowThreads();
21937 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
21938
21939 wxPyEndAllowThreads(__tstate);
21940 if (PyErr_Occurred()) SWIG_fail;
21941 }
21942 {
21943 wxSize * resultptr;
21944 resultptr = new wxSize((wxSize &) result);
21945 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
21946 }
21947 return resultobj;
21948 fail:
21949 return NULL;
21950 }
21951
21952
21953 static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
21954 PyObject *resultobj;
21955 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21956 int arg2 ;
21957 bool arg3 = (bool) False ;
21958 PyObject * obj0 = 0 ;
21959 PyObject * obj1 = 0 ;
21960 PyObject * obj2 = 0 ;
21961 char *kwnames[] = {
21962 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
21963 };
21964
21965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
21966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21968 arg2 = (int) SWIG_AsInt(obj1);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 if (obj2) {
21971 arg3 = (bool) SWIG_AsBool(obj2);
21972 if (PyErr_Occurred()) SWIG_fail;
21973 }
21974 {
21975 PyThreadState* __tstate = wxPyBeginAllowThreads();
21976 (arg1)->SetItemSpacing(arg2,arg3);
21977
21978 wxPyEndAllowThreads(__tstate);
21979 if (PyErr_Occurred()) SWIG_fail;
21980 }
21981 Py_INCREF(Py_None); resultobj = Py_None;
21982 return resultobj;
21983 fail:
21984 return NULL;
21985 }
21986
21987
21988 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21989 PyObject *resultobj;
21990 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21991 int result;
21992 PyObject * obj0 = 0 ;
21993 char *kwnames[] = {
21994 (char *) "self", NULL
21995 };
21996
21997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
21998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22000 {
22001 PyThreadState* __tstate = wxPyBeginAllowThreads();
22002 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22003
22004 wxPyEndAllowThreads(__tstate);
22005 if (PyErr_Occurred()) SWIG_fail;
22006 }
22007 resultobj = SWIG_FromInt((int)result);
22008 return resultobj;
22009 fail:
22010 return NULL;
22011 }
22012
22013
22014 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22015 PyObject *resultobj;
22016 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22017 wxColour result;
22018 PyObject * obj0 = 0 ;
22019 char *kwnames[] = {
22020 (char *) "self", NULL
22021 };
22022
22023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22029
22030 wxPyEndAllowThreads(__tstate);
22031 if (PyErr_Occurred()) SWIG_fail;
22032 }
22033 {
22034 wxColour * resultptr;
22035 resultptr = new wxColour((wxColour &) result);
22036 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22037 }
22038 return resultobj;
22039 fail:
22040 return NULL;
22041 }
22042
22043
22044 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22045 PyObject *resultobj;
22046 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22047 wxColour *arg2 = 0 ;
22048 wxColour temp2 ;
22049 PyObject * obj0 = 0 ;
22050 PyObject * obj1 = 0 ;
22051 char *kwnames[] = {
22052 (char *) "self",(char *) "col", NULL
22053 };
22054
22055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22058 {
22059 arg2 = &temp2;
22060 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22061 }
22062 {
22063 PyThreadState* __tstate = wxPyBeginAllowThreads();
22064 (arg1)->SetTextColour((wxColour const &)*arg2);
22065
22066 wxPyEndAllowThreads(__tstate);
22067 if (PyErr_Occurred()) SWIG_fail;
22068 }
22069 Py_INCREF(Py_None); resultobj = Py_None;
22070 return resultobj;
22071 fail:
22072 return NULL;
22073 }
22074
22075
22076 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22077 PyObject *resultobj;
22078 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22079 long result;
22080 PyObject * obj0 = 0 ;
22081 char *kwnames[] = {
22082 (char *) "self", NULL
22083 };
22084
22085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22088 {
22089 PyThreadState* __tstate = wxPyBeginAllowThreads();
22090 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22091
22092 wxPyEndAllowThreads(__tstate);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 }
22095 resultobj = SWIG_FromLong((long)result);
22096 return resultobj;
22097 fail:
22098 return NULL;
22099 }
22100
22101
22102 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22103 PyObject *resultobj;
22104 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22105 long arg2 ;
22106 bool arg3 = (bool) True ;
22107 PyObject * obj0 = 0 ;
22108 PyObject * obj1 = 0 ;
22109 PyObject * obj2 = 0 ;
22110 char *kwnames[] = {
22111 (char *) "self",(char *) "style",(char *) "add", NULL
22112 };
22113
22114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22117 arg2 = (long) SWIG_AsLong(obj1);
22118 if (PyErr_Occurred()) SWIG_fail;
22119 if (obj2) {
22120 arg3 = (bool) SWIG_AsBool(obj2);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 {
22124 PyThreadState* __tstate = wxPyBeginAllowThreads();
22125 (arg1)->SetSingleStyle(arg2,arg3);
22126
22127 wxPyEndAllowThreads(__tstate);
22128 if (PyErr_Occurred()) SWIG_fail;
22129 }
22130 Py_INCREF(Py_None); resultobj = Py_None;
22131 return resultobj;
22132 fail:
22133 return NULL;
22134 }
22135
22136
22137 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22138 PyObject *resultobj;
22139 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22140 long arg2 ;
22141 PyObject * obj0 = 0 ;
22142 PyObject * obj1 = 0 ;
22143 char *kwnames[] = {
22144 (char *) "self",(char *) "style", NULL
22145 };
22146
22147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22150 arg2 = (long) SWIG_AsLong(obj1);
22151 if (PyErr_Occurred()) SWIG_fail;
22152 {
22153 PyThreadState* __tstate = wxPyBeginAllowThreads();
22154 (arg1)->SetWindowStyleFlag(arg2);
22155
22156 wxPyEndAllowThreads(__tstate);
22157 if (PyErr_Occurred()) SWIG_fail;
22158 }
22159 Py_INCREF(Py_None); resultobj = Py_None;
22160 return resultobj;
22161 fail:
22162 return NULL;
22163 }
22164
22165
22166 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22167 PyObject *resultobj;
22168 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22169 long arg2 ;
22170 int arg3 = (int) wxLIST_NEXT_ALL ;
22171 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22172 long result;
22173 PyObject * obj0 = 0 ;
22174 PyObject * obj1 = 0 ;
22175 PyObject * obj2 = 0 ;
22176 PyObject * obj3 = 0 ;
22177 char *kwnames[] = {
22178 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22179 };
22180
22181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22184 arg2 = (long) SWIG_AsLong(obj1);
22185 if (PyErr_Occurred()) SWIG_fail;
22186 if (obj2) {
22187 arg3 = (int) SWIG_AsInt(obj2);
22188 if (PyErr_Occurred()) SWIG_fail;
22189 }
22190 if (obj3) {
22191 arg4 = (int) SWIG_AsInt(obj3);
22192 if (PyErr_Occurred()) SWIG_fail;
22193 }
22194 {
22195 PyThreadState* __tstate = wxPyBeginAllowThreads();
22196 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22197
22198 wxPyEndAllowThreads(__tstate);
22199 if (PyErr_Occurred()) SWIG_fail;
22200 }
22201 resultobj = SWIG_FromLong((long)result);
22202 return resultobj;
22203 fail:
22204 return NULL;
22205 }
22206
22207
22208 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22209 PyObject *resultobj;
22210 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22211 int arg2 ;
22212 wxImageList *result;
22213 PyObject * obj0 = 0 ;
22214 PyObject * obj1 = 0 ;
22215 char *kwnames[] = {
22216 (char *) "self",(char *) "which", NULL
22217 };
22218
22219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22222 arg2 = (int) SWIG_AsInt(obj1);
22223 if (PyErr_Occurred()) SWIG_fail;
22224 {
22225 PyThreadState* __tstate = wxPyBeginAllowThreads();
22226 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22227
22228 wxPyEndAllowThreads(__tstate);
22229 if (PyErr_Occurred()) SWIG_fail;
22230 }
22231 {
22232 resultobj = wxPyMake_wxObject(result);
22233 }
22234 return resultobj;
22235 fail:
22236 return NULL;
22237 }
22238
22239
22240 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22241 PyObject *resultobj;
22242 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22243 wxImageList *arg2 = (wxImageList *) 0 ;
22244 int arg3 ;
22245 PyObject * obj0 = 0 ;
22246 PyObject * obj1 = 0 ;
22247 PyObject * obj2 = 0 ;
22248 char *kwnames[] = {
22249 (char *) "self",(char *) "imageList",(char *) "which", NULL
22250 };
22251
22252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22255 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22257 arg3 = (int) SWIG_AsInt(obj2);
22258 if (PyErr_Occurred()) SWIG_fail;
22259 {
22260 PyThreadState* __tstate = wxPyBeginAllowThreads();
22261 (arg1)->SetImageList(arg2,arg3);
22262
22263 wxPyEndAllowThreads(__tstate);
22264 if (PyErr_Occurred()) SWIG_fail;
22265 }
22266 Py_INCREF(Py_None); resultobj = Py_None;
22267 return resultobj;
22268 fail:
22269 return NULL;
22270 }
22271
22272
22273 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22274 PyObject *resultobj;
22275 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22276 wxImageList *arg2 = (wxImageList *) 0 ;
22277 int arg3 ;
22278 PyObject * obj0 = 0 ;
22279 PyObject * obj1 = 0 ;
22280 PyObject * obj2 = 0 ;
22281 char *kwnames[] = {
22282 (char *) "self",(char *) "imageList",(char *) "which", NULL
22283 };
22284
22285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22288 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22289 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22290 arg3 = (int) SWIG_AsInt(obj2);
22291 if (PyErr_Occurred()) SWIG_fail;
22292 {
22293 PyThreadState* __tstate = wxPyBeginAllowThreads();
22294 (arg1)->AssignImageList(arg2,arg3);
22295
22296 wxPyEndAllowThreads(__tstate);
22297 if (PyErr_Occurred()) SWIG_fail;
22298 }
22299 Py_INCREF(Py_None); resultobj = Py_None;
22300 return resultobj;
22301 fail:
22302 return NULL;
22303 }
22304
22305
22306 static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) {
22307 PyObject *resultobj;
22308 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22309 bool result;
22310 PyObject * obj0 = 0 ;
22311 char *kwnames[] = {
22312 (char *) "self", NULL
22313 };
22314
22315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22318 {
22319 PyThreadState* __tstate = wxPyBeginAllowThreads();
22320 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22321
22322 wxPyEndAllowThreads(__tstate);
22323 if (PyErr_Occurred()) SWIG_fail;
22324 }
22325 {
22326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22327 }
22328 return resultobj;
22329 fail:
22330 return NULL;
22331 }
22332
22333
22334 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
22335 PyObject *resultobj;
22336 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22337 bool result;
22338 PyObject * obj0 = 0 ;
22339 char *kwnames[] = {
22340 (char *) "self", NULL
22341 };
22342
22343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22346 {
22347 PyThreadState* __tstate = wxPyBeginAllowThreads();
22348 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22349
22350 wxPyEndAllowThreads(__tstate);
22351 if (PyErr_Occurred()) SWIG_fail;
22352 }
22353 {
22354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22355 }
22356 return resultobj;
22357 fail:
22358 return NULL;
22359 }
22360
22361
22362 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22363 PyObject *resultobj;
22364 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22365 long arg2 ;
22366 PyObject * obj0 = 0 ;
22367 PyObject * obj1 = 0 ;
22368 char *kwnames[] = {
22369 (char *) "self",(char *) "item", NULL
22370 };
22371
22372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22375 arg2 = (long) SWIG_AsLong(obj1);
22376 if (PyErr_Occurred()) SWIG_fail;
22377 {
22378 PyThreadState* __tstate = wxPyBeginAllowThreads();
22379 (arg1)->RefreshItem(arg2);
22380
22381 wxPyEndAllowThreads(__tstate);
22382 if (PyErr_Occurred()) SWIG_fail;
22383 }
22384 Py_INCREF(Py_None); resultobj = Py_None;
22385 return resultobj;
22386 fail:
22387 return NULL;
22388 }
22389
22390
22391 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22392 PyObject *resultobj;
22393 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22394 long arg2 ;
22395 long arg3 ;
22396 PyObject * obj0 = 0 ;
22397 PyObject * obj1 = 0 ;
22398 PyObject * obj2 = 0 ;
22399 char *kwnames[] = {
22400 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22401 };
22402
22403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22406 arg2 = (long) SWIG_AsLong(obj1);
22407 if (PyErr_Occurred()) SWIG_fail;
22408 arg3 = (long) SWIG_AsLong(obj2);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 (arg1)->RefreshItems(arg2,arg3);
22413
22414 wxPyEndAllowThreads(__tstate);
22415 if (PyErr_Occurred()) SWIG_fail;
22416 }
22417 Py_INCREF(Py_None); resultobj = Py_None;
22418 return resultobj;
22419 fail:
22420 return NULL;
22421 }
22422
22423
22424 static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
22425 PyObject *resultobj;
22426 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22427 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22428 bool result;
22429 PyObject * obj0 = 0 ;
22430 PyObject * obj1 = 0 ;
22431 char *kwnames[] = {
22432 (char *) "self",(char *) "flag", NULL
22433 };
22434
22435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22438 if (obj1) {
22439 arg2 = (int) SWIG_AsInt(obj1);
22440 if (PyErr_Occurred()) SWIG_fail;
22441 }
22442 {
22443 PyThreadState* __tstate = wxPyBeginAllowThreads();
22444 result = (bool)(arg1)->Arrange(arg2);
22445
22446 wxPyEndAllowThreads(__tstate);
22447 if (PyErr_Occurred()) SWIG_fail;
22448 }
22449 {
22450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22451 }
22452 return resultobj;
22453 fail:
22454 return NULL;
22455 }
22456
22457
22458 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22459 PyObject *resultobj;
22460 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22461 long arg2 ;
22462 bool result;
22463 PyObject * obj0 = 0 ;
22464 PyObject * obj1 = 0 ;
22465 char *kwnames[] = {
22466 (char *) "self",(char *) "item", NULL
22467 };
22468
22469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22472 arg2 = (long) SWIG_AsLong(obj1);
22473 if (PyErr_Occurred()) SWIG_fail;
22474 {
22475 PyThreadState* __tstate = wxPyBeginAllowThreads();
22476 result = (bool)(arg1)->DeleteItem(arg2);
22477
22478 wxPyEndAllowThreads(__tstate);
22479 if (PyErr_Occurred()) SWIG_fail;
22480 }
22481 {
22482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22483 }
22484 return resultobj;
22485 fail:
22486 return NULL;
22487 }
22488
22489
22490 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22491 PyObject *resultobj;
22492 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22493 bool result;
22494 PyObject * obj0 = 0 ;
22495 char *kwnames[] = {
22496 (char *) "self", NULL
22497 };
22498
22499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22502 {
22503 PyThreadState* __tstate = wxPyBeginAllowThreads();
22504 result = (bool)(arg1)->DeleteAllItems();
22505
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 {
22510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22511 }
22512 return resultobj;
22513 fail:
22514 return NULL;
22515 }
22516
22517
22518 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22519 PyObject *resultobj;
22520 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22521 int arg2 ;
22522 bool result;
22523 PyObject * obj0 = 0 ;
22524 PyObject * obj1 = 0 ;
22525 char *kwnames[] = {
22526 (char *) "self",(char *) "col", NULL
22527 };
22528
22529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22532 arg2 = (int) SWIG_AsInt(obj1);
22533 if (PyErr_Occurred()) SWIG_fail;
22534 {
22535 PyThreadState* __tstate = wxPyBeginAllowThreads();
22536 result = (bool)(arg1)->DeleteColumn(arg2);
22537
22538 wxPyEndAllowThreads(__tstate);
22539 if (PyErr_Occurred()) SWIG_fail;
22540 }
22541 {
22542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22543 }
22544 return resultobj;
22545 fail:
22546 return NULL;
22547 }
22548
22549
22550 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
22551 PyObject *resultobj;
22552 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22553 bool result;
22554 PyObject * obj0 = 0 ;
22555 char *kwnames[] = {
22556 (char *) "self", NULL
22557 };
22558
22559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
22560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22562 {
22563 PyThreadState* __tstate = wxPyBeginAllowThreads();
22564 result = (bool)(arg1)->DeleteAllColumns();
22565
22566 wxPyEndAllowThreads(__tstate);
22567 if (PyErr_Occurred()) SWIG_fail;
22568 }
22569 {
22570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22571 }
22572 return resultobj;
22573 fail:
22574 return NULL;
22575 }
22576
22577
22578 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
22579 PyObject *resultobj;
22580 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22581 PyObject * obj0 = 0 ;
22582 char *kwnames[] = {
22583 (char *) "self", NULL
22584 };
22585
22586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
22587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22589 {
22590 PyThreadState* __tstate = wxPyBeginAllowThreads();
22591 (arg1)->ClearAll();
22592
22593 wxPyEndAllowThreads(__tstate);
22594 if (PyErr_Occurred()) SWIG_fail;
22595 }
22596 Py_INCREF(Py_None); resultobj = Py_None;
22597 return resultobj;
22598 fail:
22599 return NULL;
22600 }
22601
22602
22603 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
22604 PyObject *resultobj;
22605 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22606 long arg2 ;
22607 PyObject * obj0 = 0 ;
22608 PyObject * obj1 = 0 ;
22609 char *kwnames[] = {
22610 (char *) "self",(char *) "item", NULL
22611 };
22612
22613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
22614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22616 arg2 = (long) SWIG_AsLong(obj1);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 {
22619 PyThreadState* __tstate = wxPyBeginAllowThreads();
22620 (arg1)->EditLabel(arg2);
22621
22622 wxPyEndAllowThreads(__tstate);
22623 if (PyErr_Occurred()) SWIG_fail;
22624 }
22625 Py_INCREF(Py_None); resultobj = Py_None;
22626 return resultobj;
22627 fail:
22628 return NULL;
22629 }
22630
22631
22632 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
22633 PyObject *resultobj;
22634 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22635 long arg2 ;
22636 bool result;
22637 PyObject * obj0 = 0 ;
22638 PyObject * obj1 = 0 ;
22639 char *kwnames[] = {
22640 (char *) "self",(char *) "item", NULL
22641 };
22642
22643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
22644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22646 arg2 = (long) SWIG_AsLong(obj1);
22647 if (PyErr_Occurred()) SWIG_fail;
22648 {
22649 PyThreadState* __tstate = wxPyBeginAllowThreads();
22650 result = (bool)(arg1)->EnsureVisible(arg2);
22651
22652 wxPyEndAllowThreads(__tstate);
22653 if (PyErr_Occurred()) SWIG_fail;
22654 }
22655 {
22656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22657 }
22658 return resultobj;
22659 fail:
22660 return NULL;
22661 }
22662
22663
22664 static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22665 PyObject *resultobj;
22666 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22667 long arg2 ;
22668 wxString *arg3 = 0 ;
22669 bool arg4 = (bool) False ;
22670 long result;
22671 bool temp3 = False ;
22672 PyObject * obj0 = 0 ;
22673 PyObject * obj1 = 0 ;
22674 PyObject * obj2 = 0 ;
22675 PyObject * obj3 = 0 ;
22676 char *kwnames[] = {
22677 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
22678 };
22679
22680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22683 arg2 = (long) SWIG_AsLong(obj1);
22684 if (PyErr_Occurred()) SWIG_fail;
22685 {
22686 arg3 = wxString_in_helper(obj2);
22687 if (arg3 == NULL) SWIG_fail;
22688 temp3 = True;
22689 }
22690 if (obj3) {
22691 arg4 = (bool) SWIG_AsBool(obj3);
22692 if (PyErr_Occurred()) SWIG_fail;
22693 }
22694 {
22695 PyThreadState* __tstate = wxPyBeginAllowThreads();
22696 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
22697
22698 wxPyEndAllowThreads(__tstate);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 }
22701 resultobj = SWIG_FromLong((long)result);
22702 {
22703 if (temp3)
22704 delete arg3;
22705 }
22706 return resultobj;
22707 fail:
22708 {
22709 if (temp3)
22710 delete arg3;
22711 }
22712 return NULL;
22713 }
22714
22715
22716 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
22717 PyObject *resultobj;
22718 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22719 long arg2 ;
22720 long arg3 ;
22721 long result;
22722 PyObject * obj0 = 0 ;
22723 PyObject * obj1 = 0 ;
22724 PyObject * obj2 = 0 ;
22725 char *kwnames[] = {
22726 (char *) "self",(char *) "start",(char *) "data", NULL
22727 };
22728
22729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22732 arg2 = (long) SWIG_AsLong(obj1);
22733 if (PyErr_Occurred()) SWIG_fail;
22734 arg3 = (long) SWIG_AsLong(obj2);
22735 if (PyErr_Occurred()) SWIG_fail;
22736 {
22737 PyThreadState* __tstate = wxPyBeginAllowThreads();
22738 result = (long)(arg1)->FindItem(arg2,arg3);
22739
22740 wxPyEndAllowThreads(__tstate);
22741 if (PyErr_Occurred()) SWIG_fail;
22742 }
22743 resultobj = SWIG_FromLong((long)result);
22744 return resultobj;
22745 fail:
22746 return NULL;
22747 }
22748
22749
22750 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
22751 PyObject *resultobj;
22752 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22753 long arg2 ;
22754 wxPoint *arg3 = 0 ;
22755 int arg4 ;
22756 long result;
22757 wxPoint temp3 ;
22758 PyObject * obj0 = 0 ;
22759 PyObject * obj1 = 0 ;
22760 PyObject * obj2 = 0 ;
22761 PyObject * obj3 = 0 ;
22762 char *kwnames[] = {
22763 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
22764 };
22765
22766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22769 arg2 = (long) SWIG_AsLong(obj1);
22770 if (PyErr_Occurred()) SWIG_fail;
22771 {
22772 arg3 = &temp3;
22773 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22774 }
22775 arg4 = (int) SWIG_AsInt(obj3);
22776 if (PyErr_Occurred()) SWIG_fail;
22777 {
22778 PyThreadState* __tstate = wxPyBeginAllowThreads();
22779 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
22780
22781 wxPyEndAllowThreads(__tstate);
22782 if (PyErr_Occurred()) SWIG_fail;
22783 }
22784 resultobj = SWIG_FromLong((long)result);
22785 return resultobj;
22786 fail:
22787 return NULL;
22788 }
22789
22790
22791 static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
22792 PyObject *resultobj;
22793 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22794 wxPoint *arg2 = 0 ;
22795 int *arg3 = 0 ;
22796 long result;
22797 wxPoint temp2 ;
22798 int temp3 ;
22799 PyObject * obj0 = 0 ;
22800 PyObject * obj1 = 0 ;
22801 char *kwnames[] = {
22802 (char *) "self",(char *) "point", NULL
22803 };
22804
22805 arg3 = &temp3;
22806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
22807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22809 {
22810 arg2 = &temp2;
22811 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22812 }
22813 {
22814 PyThreadState* __tstate = wxPyBeginAllowThreads();
22815 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
22816
22817 wxPyEndAllowThreads(__tstate);
22818 if (PyErr_Occurred()) SWIG_fail;
22819 }
22820 resultobj = SWIG_FromLong((long)result);
22821 {
22822 PyObject *o = PyInt_FromLong((long) (*arg3));
22823 resultobj = t_output_helper(resultobj,o);
22824 }
22825 return resultobj;
22826 fail:
22827 return NULL;
22828 }
22829
22830
22831 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22832 PyObject *resultobj;
22833 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22834 wxListItem *arg2 = 0 ;
22835 long result;
22836 PyObject * obj0 = 0 ;
22837 PyObject * obj1 = 0 ;
22838 char *kwnames[] = {
22839 (char *) "self",(char *) "info", NULL
22840 };
22841
22842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
22843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
22846 SWIG_POINTER_EXCEPTION | 0)) == -1)
22847 SWIG_fail;
22848 if (arg2 == NULL) {
22849 PyErr_SetString(PyExc_TypeError,"null reference");
22850 SWIG_fail;
22851 }
22852 {
22853 PyThreadState* __tstate = wxPyBeginAllowThreads();
22854 result = (long)(arg1)->InsertItem(*arg2);
22855
22856 wxPyEndAllowThreads(__tstate);
22857 if (PyErr_Occurred()) SWIG_fail;
22858 }
22859 resultobj = SWIG_FromLong((long)result);
22860 return resultobj;
22861 fail:
22862 return NULL;
22863 }
22864
22865
22866 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22867 PyObject *resultobj;
22868 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22869 long arg2 ;
22870 wxString *arg3 = 0 ;
22871 long result;
22872 bool temp3 = False ;
22873 PyObject * obj0 = 0 ;
22874 PyObject * obj1 = 0 ;
22875 PyObject * obj2 = 0 ;
22876 char *kwnames[] = {
22877 (char *) "self",(char *) "index",(char *) "label", NULL
22878 };
22879
22880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22883 arg2 = (long) SWIG_AsLong(obj1);
22884 if (PyErr_Occurred()) SWIG_fail;
22885 {
22886 arg3 = wxString_in_helper(obj2);
22887 if (arg3 == NULL) SWIG_fail;
22888 temp3 = True;
22889 }
22890 {
22891 PyThreadState* __tstate = wxPyBeginAllowThreads();
22892 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
22893
22894 wxPyEndAllowThreads(__tstate);
22895 if (PyErr_Occurred()) SWIG_fail;
22896 }
22897 resultobj = SWIG_FromLong((long)result);
22898 {
22899 if (temp3)
22900 delete arg3;
22901 }
22902 return resultobj;
22903 fail:
22904 {
22905 if (temp3)
22906 delete arg3;
22907 }
22908 return NULL;
22909 }
22910
22911
22912 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22913 PyObject *resultobj;
22914 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22915 long arg2 ;
22916 int arg3 ;
22917 long result;
22918 PyObject * obj0 = 0 ;
22919 PyObject * obj1 = 0 ;
22920 PyObject * obj2 = 0 ;
22921 char *kwnames[] = {
22922 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
22923 };
22924
22925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22928 arg2 = (long) SWIG_AsLong(obj1);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 arg3 = (int) SWIG_AsInt(obj2);
22931 if (PyErr_Occurred()) SWIG_fail;
22932 {
22933 PyThreadState* __tstate = wxPyBeginAllowThreads();
22934 result = (long)(arg1)->InsertItem(arg2,arg3);
22935
22936 wxPyEndAllowThreads(__tstate);
22937 if (PyErr_Occurred()) SWIG_fail;
22938 }
22939 resultobj = SWIG_FromLong((long)result);
22940 return resultobj;
22941 fail:
22942 return NULL;
22943 }
22944
22945
22946 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22947 PyObject *resultobj;
22948 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22949 long arg2 ;
22950 wxString *arg3 = 0 ;
22951 int arg4 ;
22952 long result;
22953 bool temp3 = False ;
22954 PyObject * obj0 = 0 ;
22955 PyObject * obj1 = 0 ;
22956 PyObject * obj2 = 0 ;
22957 PyObject * obj3 = 0 ;
22958 char *kwnames[] = {
22959 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
22960 };
22961
22962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22965 arg2 = (long) SWIG_AsLong(obj1);
22966 if (PyErr_Occurred()) SWIG_fail;
22967 {
22968 arg3 = wxString_in_helper(obj2);
22969 if (arg3 == NULL) SWIG_fail;
22970 temp3 = True;
22971 }
22972 arg4 = (int) SWIG_AsInt(obj3);
22973 if (PyErr_Occurred()) SWIG_fail;
22974 {
22975 PyThreadState* __tstate = wxPyBeginAllowThreads();
22976 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
22977
22978 wxPyEndAllowThreads(__tstate);
22979 if (PyErr_Occurred()) SWIG_fail;
22980 }
22981 resultobj = SWIG_FromLong((long)result);
22982 {
22983 if (temp3)
22984 delete arg3;
22985 }
22986 return resultobj;
22987 fail:
22988 {
22989 if (temp3)
22990 delete arg3;
22991 }
22992 return NULL;
22993 }
22994
22995
22996 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
22997 PyObject *resultobj;
22998 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22999 long arg2 ;
23000 wxListItem *arg3 = 0 ;
23001 long result;
23002 PyObject * obj0 = 0 ;
23003 PyObject * obj1 = 0 ;
23004 PyObject * obj2 = 0 ;
23005 char *kwnames[] = {
23006 (char *) "self",(char *) "col",(char *) "info", NULL
23007 };
23008
23009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23012 arg2 = (long) SWIG_AsLong(obj1);
23013 if (PyErr_Occurred()) SWIG_fail;
23014 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23015 SWIG_POINTER_EXCEPTION | 0)) == -1)
23016 SWIG_fail;
23017 if (arg3 == NULL) {
23018 PyErr_SetString(PyExc_TypeError,"null reference");
23019 SWIG_fail;
23020 }
23021 {
23022 PyThreadState* __tstate = wxPyBeginAllowThreads();
23023 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23024
23025 wxPyEndAllowThreads(__tstate);
23026 if (PyErr_Occurred()) SWIG_fail;
23027 }
23028 resultobj = SWIG_FromLong((long)result);
23029 return resultobj;
23030 fail:
23031 return NULL;
23032 }
23033
23034
23035 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
23036 PyObject *resultobj;
23037 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23038 long arg2 ;
23039 wxString *arg3 = 0 ;
23040 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23041 int arg5 = (int) -1 ;
23042 long result;
23043 bool temp3 = False ;
23044 PyObject * obj0 = 0 ;
23045 PyObject * obj1 = 0 ;
23046 PyObject * obj2 = 0 ;
23047 PyObject * obj3 = 0 ;
23048 PyObject * obj4 = 0 ;
23049 char *kwnames[] = {
23050 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23051 };
23052
23053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23056 arg2 = (long) SWIG_AsLong(obj1);
23057 if (PyErr_Occurred()) SWIG_fail;
23058 {
23059 arg3 = wxString_in_helper(obj2);
23060 if (arg3 == NULL) SWIG_fail;
23061 temp3 = True;
23062 }
23063 if (obj3) {
23064 arg4 = (int) SWIG_AsInt(obj3);
23065 if (PyErr_Occurred()) SWIG_fail;
23066 }
23067 if (obj4) {
23068 arg5 = (int) SWIG_AsInt(obj4);
23069 if (PyErr_Occurred()) SWIG_fail;
23070 }
23071 {
23072 PyThreadState* __tstate = wxPyBeginAllowThreads();
23073 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23074
23075 wxPyEndAllowThreads(__tstate);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 }
23078 resultobj = SWIG_FromLong((long)result);
23079 {
23080 if (temp3)
23081 delete arg3;
23082 }
23083 return resultobj;
23084 fail:
23085 {
23086 if (temp3)
23087 delete arg3;
23088 }
23089 return NULL;
23090 }
23091
23092
23093 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23094 PyObject *resultobj;
23095 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23096 long arg2 ;
23097 PyObject * obj0 = 0 ;
23098 PyObject * obj1 = 0 ;
23099 char *kwnames[] = {
23100 (char *) "self",(char *) "count", NULL
23101 };
23102
23103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23106 arg2 = (long) SWIG_AsLong(obj1);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 {
23109 PyThreadState* __tstate = wxPyBeginAllowThreads();
23110 (arg1)->SetItemCount(arg2);
23111
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 Py_INCREF(Py_None); resultobj = Py_None;
23116 return resultobj;
23117 fail:
23118 return NULL;
23119 }
23120
23121
23122 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
23123 PyObject *resultobj;
23124 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23125 int arg2 ;
23126 int arg3 ;
23127 bool result;
23128 PyObject * obj0 = 0 ;
23129 PyObject * obj1 = 0 ;
23130 PyObject * obj2 = 0 ;
23131 char *kwnames[] = {
23132 (char *) "self",(char *) "dx",(char *) "dy", NULL
23133 };
23134
23135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23138 arg2 = (int) SWIG_AsInt(obj1);
23139 if (PyErr_Occurred()) SWIG_fail;
23140 arg3 = (int) SWIG_AsInt(obj2);
23141 if (PyErr_Occurred()) SWIG_fail;
23142 {
23143 PyThreadState* __tstate = wxPyBeginAllowThreads();
23144 result = (bool)(arg1)->ScrollList(arg2,arg3);
23145
23146 wxPyEndAllowThreads(__tstate);
23147 if (PyErr_Occurred()) SWIG_fail;
23148 }
23149 {
23150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23151 }
23152 return resultobj;
23153 fail:
23154 return NULL;
23155 }
23156
23157
23158 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23159 PyObject *resultobj;
23160 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23161 long arg2 ;
23162 wxColour *arg3 = 0 ;
23163 wxColour temp3 ;
23164 PyObject * obj0 = 0 ;
23165 PyObject * obj1 = 0 ;
23166 PyObject * obj2 = 0 ;
23167 char *kwnames[] = {
23168 (char *) "self",(char *) "item",(char *) "col", NULL
23169 };
23170
23171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",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 = (long) SWIG_AsLong(obj1);
23175 if (PyErr_Occurred()) SWIG_fail;
23176 {
23177 arg3 = &temp3;
23178 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23179 }
23180 {
23181 PyThreadState* __tstate = wxPyBeginAllowThreads();
23182 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23183
23184 wxPyEndAllowThreads(__tstate);
23185 if (PyErr_Occurred()) SWIG_fail;
23186 }
23187 Py_INCREF(Py_None); resultobj = Py_None;
23188 return resultobj;
23189 fail:
23190 return NULL;
23191 }
23192
23193
23194 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23195 PyObject *resultobj;
23196 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23197 long arg2 ;
23198 wxColour result;
23199 PyObject * obj0 = 0 ;
23200 PyObject * obj1 = 0 ;
23201 char *kwnames[] = {
23202 (char *) "self",(char *) "item", NULL
23203 };
23204
23205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23208 arg2 = (long) SWIG_AsLong(obj1);
23209 if (PyErr_Occurred()) SWIG_fail;
23210 {
23211 PyThreadState* __tstate = wxPyBeginAllowThreads();
23212 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23213
23214 wxPyEndAllowThreads(__tstate);
23215 if (PyErr_Occurred()) SWIG_fail;
23216 }
23217 {
23218 wxColour * resultptr;
23219 resultptr = new wxColour((wxColour &) result);
23220 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23221 }
23222 return resultobj;
23223 fail:
23224 return NULL;
23225 }
23226
23227
23228 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23229 PyObject *resultobj;
23230 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23231 long arg2 ;
23232 wxColour *arg3 = 0 ;
23233 wxColour temp3 ;
23234 PyObject * obj0 = 0 ;
23235 PyObject * obj1 = 0 ;
23236 PyObject * obj2 = 0 ;
23237 char *kwnames[] = {
23238 (char *) "self",(char *) "item",(char *) "col", NULL
23239 };
23240
23241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) 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 arg3 = &temp3;
23248 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23249 }
23250 {
23251 PyThreadState* __tstate = wxPyBeginAllowThreads();
23252 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23253
23254 wxPyEndAllowThreads(__tstate);
23255 if (PyErr_Occurred()) SWIG_fail;
23256 }
23257 Py_INCREF(Py_None); resultobj = Py_None;
23258 return resultobj;
23259 fail:
23260 return NULL;
23261 }
23262
23263
23264 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23265 PyObject *resultobj;
23266 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23267 long arg2 ;
23268 wxColour result;
23269 PyObject * obj0 = 0 ;
23270 PyObject * obj1 = 0 ;
23271 char *kwnames[] = {
23272 (char *) "self",(char *) "item", NULL
23273 };
23274
23275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23278 arg2 = (long) SWIG_AsLong(obj1);
23279 if (PyErr_Occurred()) SWIG_fail;
23280 {
23281 PyThreadState* __tstate = wxPyBeginAllowThreads();
23282 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23283
23284 wxPyEndAllowThreads(__tstate);
23285 if (PyErr_Occurred()) SWIG_fail;
23286 }
23287 {
23288 wxColour * resultptr;
23289 resultptr = new wxColour((wxColour &) result);
23290 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23291 }
23292 return resultobj;
23293 fail:
23294 return NULL;
23295 }
23296
23297
23298 static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
23299 PyObject *resultobj;
23300 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23301 PyObject *arg2 = (PyObject *) 0 ;
23302 bool result;
23303 PyObject * obj0 = 0 ;
23304 PyObject * obj1 = 0 ;
23305 char *kwnames[] = {
23306 (char *) "self",(char *) "func", NULL
23307 };
23308
23309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23312 arg2 = obj1;
23313 {
23314 PyThreadState* __tstate = wxPyBeginAllowThreads();
23315 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23316
23317 wxPyEndAllowThreads(__tstate);
23318 if (PyErr_Occurred()) SWIG_fail;
23319 }
23320 {
23321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23322 }
23323 return resultobj;
23324 fail:
23325 return NULL;
23326 }
23327
23328
23329 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
23330 PyObject *resultobj;
23331 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23332 wxWindow *result;
23333 PyObject * obj0 = 0 ;
23334 char *kwnames[] = {
23335 (char *) "self", NULL
23336 };
23337
23338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23341 {
23342 PyThreadState* __tstate = wxPyBeginAllowThreads();
23343 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23344
23345 wxPyEndAllowThreads(__tstate);
23346 if (PyErr_Occurred()) SWIG_fail;
23347 }
23348 {
23349 resultobj = wxPyMake_wxObject(result);
23350 }
23351 return resultobj;
23352 fail:
23353 return NULL;
23354 }
23355
23356
23357 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
23358 PyObject *resultobj;
23359 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23360 wxVisualAttributes result;
23361 PyObject * obj0 = 0 ;
23362 char *kwnames[] = {
23363 (char *) "variant", NULL
23364 };
23365
23366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23367 if (obj0) {
23368 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
23369 if (PyErr_Occurred()) SWIG_fail;
23370 }
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
23373 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23374
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 {
23379 wxVisualAttributes * resultptr;
23380 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23381 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23382 }
23383 return resultobj;
23384 fail:
23385 return NULL;
23386 }
23387
23388
23389 static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
23390 PyObject *obj;
23391 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23392 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23393 Py_INCREF(obj);
23394 return Py_BuildValue((char *)"");
23395 }
23396 static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23397 PyObject *resultobj;
23398 wxWindow *arg1 = (wxWindow *) 0 ;
23399 int arg2 = (int) -1 ;
23400 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23401 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23402 wxSize const &arg4_defvalue = wxDefaultSize ;
23403 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23404 long arg5 = (long) wxLC_REPORT ;
23405 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23406 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23407 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23408 wxString *arg7 = (wxString *) &arg7_defvalue ;
23409 wxListView *result;
23410 wxPoint temp3 ;
23411 wxSize temp4 ;
23412 bool temp7 = False ;
23413 PyObject * obj0 = 0 ;
23414 PyObject * obj1 = 0 ;
23415 PyObject * obj2 = 0 ;
23416 PyObject * obj3 = 0 ;
23417 PyObject * obj4 = 0 ;
23418 PyObject * obj5 = 0 ;
23419 PyObject * obj6 = 0 ;
23420 char *kwnames[] = {
23421 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23422 };
23423
23424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23427 if (obj1) {
23428 arg2 = (int) SWIG_AsInt(obj1);
23429 if (PyErr_Occurred()) SWIG_fail;
23430 }
23431 if (obj2) {
23432 {
23433 arg3 = &temp3;
23434 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23435 }
23436 }
23437 if (obj3) {
23438 {
23439 arg4 = &temp4;
23440 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23441 }
23442 }
23443 if (obj4) {
23444 arg5 = (long) SWIG_AsLong(obj4);
23445 if (PyErr_Occurred()) SWIG_fail;
23446 }
23447 if (obj5) {
23448 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23449 SWIG_POINTER_EXCEPTION | 0)) == -1)
23450 SWIG_fail;
23451 if (arg6 == NULL) {
23452 PyErr_SetString(PyExc_TypeError,"null reference");
23453 SWIG_fail;
23454 }
23455 }
23456 if (obj6) {
23457 {
23458 arg7 = wxString_in_helper(obj6);
23459 if (arg7 == NULL) SWIG_fail;
23460 temp7 = True;
23461 }
23462 }
23463 {
23464 PyThreadState* __tstate = wxPyBeginAllowThreads();
23465 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23466
23467 wxPyEndAllowThreads(__tstate);
23468 if (PyErr_Occurred()) SWIG_fail;
23469 }
23470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23471 {
23472 if (temp7)
23473 delete arg7;
23474 }
23475 return resultobj;
23476 fail:
23477 {
23478 if (temp7)
23479 delete arg7;
23480 }
23481 return NULL;
23482 }
23483
23484
23485 static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23486 PyObject *resultobj;
23487 wxListView *result;
23488 char *kwnames[] = {
23489 NULL
23490 };
23491
23492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23493 {
23494 PyThreadState* __tstate = wxPyBeginAllowThreads();
23495 result = (wxListView *)new wxListView();
23496
23497 wxPyEndAllowThreads(__tstate);
23498 if (PyErr_Occurred()) SWIG_fail;
23499 }
23500 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23501 return resultobj;
23502 fail:
23503 return NULL;
23504 }
23505
23506
23507 static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23508 PyObject *resultobj;
23509 wxListView *arg1 = (wxListView *) 0 ;
23510 wxWindow *arg2 = (wxWindow *) 0 ;
23511 int arg3 = (int) -1 ;
23512 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23513 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23514 wxSize const &arg5_defvalue = wxDefaultSize ;
23515 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23516 long arg6 = (long) wxLC_REPORT ;
23517 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23518 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23519 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
23520 wxString *arg8 = (wxString *) &arg8_defvalue ;
23521 bool result;
23522 wxPoint temp4 ;
23523 wxSize temp5 ;
23524 bool temp8 = False ;
23525 PyObject * obj0 = 0 ;
23526 PyObject * obj1 = 0 ;
23527 PyObject * obj2 = 0 ;
23528 PyObject * obj3 = 0 ;
23529 PyObject * obj4 = 0 ;
23530 PyObject * obj5 = 0 ;
23531 PyObject * obj6 = 0 ;
23532 PyObject * obj7 = 0 ;
23533 char *kwnames[] = {
23534 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23535 };
23536
23537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23540 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23542 if (obj2) {
23543 arg3 = (int) SWIG_AsInt(obj2);
23544 if (PyErr_Occurred()) SWIG_fail;
23545 }
23546 if (obj3) {
23547 {
23548 arg4 = &temp4;
23549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23550 }
23551 }
23552 if (obj4) {
23553 {
23554 arg5 = &temp5;
23555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23556 }
23557 }
23558 if (obj5) {
23559 arg6 = (long) SWIG_AsLong(obj5);
23560 if (PyErr_Occurred()) SWIG_fail;
23561 }
23562 if (obj6) {
23563 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23564 SWIG_POINTER_EXCEPTION | 0)) == -1)
23565 SWIG_fail;
23566 if (arg7 == NULL) {
23567 PyErr_SetString(PyExc_TypeError,"null reference");
23568 SWIG_fail;
23569 }
23570 }
23571 if (obj7) {
23572 {
23573 arg8 = wxString_in_helper(obj7);
23574 if (arg8 == NULL) SWIG_fail;
23575 temp8 = True;
23576 }
23577 }
23578 {
23579 PyThreadState* __tstate = wxPyBeginAllowThreads();
23580 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23581
23582 wxPyEndAllowThreads(__tstate);
23583 if (PyErr_Occurred()) SWIG_fail;
23584 }
23585 {
23586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23587 }
23588 {
23589 if (temp8)
23590 delete arg8;
23591 }
23592 return resultobj;
23593 fail:
23594 {
23595 if (temp8)
23596 delete arg8;
23597 }
23598 return NULL;
23599 }
23600
23601
23602 static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
23603 PyObject *resultobj;
23604 wxListView *arg1 = (wxListView *) 0 ;
23605 long arg2 ;
23606 bool arg3 = (bool) True ;
23607 PyObject * obj0 = 0 ;
23608 PyObject * obj1 = 0 ;
23609 PyObject * obj2 = 0 ;
23610 char *kwnames[] = {
23611 (char *) "self",(char *) "n",(char *) "on", NULL
23612 };
23613
23614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
23615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23617 arg2 = (long) SWIG_AsLong(obj1);
23618 if (PyErr_Occurred()) SWIG_fail;
23619 if (obj2) {
23620 arg3 = (bool) SWIG_AsBool(obj2);
23621 if (PyErr_Occurred()) SWIG_fail;
23622 }
23623 {
23624 PyThreadState* __tstate = wxPyBeginAllowThreads();
23625 (arg1)->Select(arg2,arg3);
23626
23627 wxPyEndAllowThreads(__tstate);
23628 if (PyErr_Occurred()) SWIG_fail;
23629 }
23630 Py_INCREF(Py_None); resultobj = Py_None;
23631 return resultobj;
23632 fail:
23633 return NULL;
23634 }
23635
23636
23637 static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
23638 PyObject *resultobj;
23639 wxListView *arg1 = (wxListView *) 0 ;
23640 long arg2 ;
23641 PyObject * obj0 = 0 ;
23642 PyObject * obj1 = 0 ;
23643 char *kwnames[] = {
23644 (char *) "self",(char *) "index", NULL
23645 };
23646
23647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
23648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23650 arg2 = (long) SWIG_AsLong(obj1);
23651 if (PyErr_Occurred()) SWIG_fail;
23652 {
23653 PyThreadState* __tstate = wxPyBeginAllowThreads();
23654 (arg1)->Focus(arg2);
23655
23656 wxPyEndAllowThreads(__tstate);
23657 if (PyErr_Occurred()) SWIG_fail;
23658 }
23659 Py_INCREF(Py_None); resultobj = Py_None;
23660 return resultobj;
23661 fail:
23662 return NULL;
23663 }
23664
23665
23666 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23667 PyObject *resultobj;
23668 wxListView *arg1 = (wxListView *) 0 ;
23669 long result;
23670 PyObject * obj0 = 0 ;
23671 char *kwnames[] = {
23672 (char *) "self", NULL
23673 };
23674
23675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
23676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23678 {
23679 PyThreadState* __tstate = wxPyBeginAllowThreads();
23680 result = (long)((wxListView const *)arg1)->GetFocusedItem();
23681
23682 wxPyEndAllowThreads(__tstate);
23683 if (PyErr_Occurred()) SWIG_fail;
23684 }
23685 resultobj = SWIG_FromLong((long)result);
23686 return resultobj;
23687 fail:
23688 return NULL;
23689 }
23690
23691
23692 static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23693 PyObject *resultobj;
23694 wxListView *arg1 = (wxListView *) 0 ;
23695 long arg2 ;
23696 long result;
23697 PyObject * obj0 = 0 ;
23698 PyObject * obj1 = 0 ;
23699 char *kwnames[] = {
23700 (char *) "self",(char *) "item", NULL
23701 };
23702
23703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
23704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23706 arg2 = (long) SWIG_AsLong(obj1);
23707 if (PyErr_Occurred()) SWIG_fail;
23708 {
23709 PyThreadState* __tstate = wxPyBeginAllowThreads();
23710 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
23711
23712 wxPyEndAllowThreads(__tstate);
23713 if (PyErr_Occurred()) SWIG_fail;
23714 }
23715 resultobj = SWIG_FromLong((long)result);
23716 return resultobj;
23717 fail:
23718 return NULL;
23719 }
23720
23721
23722 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23723 PyObject *resultobj;
23724 wxListView *arg1 = (wxListView *) 0 ;
23725 long result;
23726 PyObject * obj0 = 0 ;
23727 char *kwnames[] = {
23728 (char *) "self", NULL
23729 };
23730
23731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
23732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23734 {
23735 PyThreadState* __tstate = wxPyBeginAllowThreads();
23736 result = (long)((wxListView const *)arg1)->GetFirstSelected();
23737
23738 wxPyEndAllowThreads(__tstate);
23739 if (PyErr_Occurred()) SWIG_fail;
23740 }
23741 resultobj = SWIG_FromLong((long)result);
23742 return resultobj;
23743 fail:
23744 return NULL;
23745 }
23746
23747
23748 static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23749 PyObject *resultobj;
23750 wxListView *arg1 = (wxListView *) 0 ;
23751 long arg2 ;
23752 bool result;
23753 PyObject * obj0 = 0 ;
23754 PyObject * obj1 = 0 ;
23755 char *kwnames[] = {
23756 (char *) "self",(char *) "index", NULL
23757 };
23758
23759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
23760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23762 arg2 = (long) SWIG_AsLong(obj1);
23763 if (PyErr_Occurred()) SWIG_fail;
23764 {
23765 PyThreadState* __tstate = wxPyBeginAllowThreads();
23766 result = (bool)(arg1)->IsSelected(arg2);
23767
23768 wxPyEndAllowThreads(__tstate);
23769 if (PyErr_Occurred()) SWIG_fail;
23770 }
23771 {
23772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23773 }
23774 return resultobj;
23775 fail:
23776 return NULL;
23777 }
23778
23779
23780 static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23781 PyObject *resultobj;
23782 wxListView *arg1 = (wxListView *) 0 ;
23783 int arg2 ;
23784 int arg3 ;
23785 PyObject * obj0 = 0 ;
23786 PyObject * obj1 = 0 ;
23787 PyObject * obj2 = 0 ;
23788 char *kwnames[] = {
23789 (char *) "self",(char *) "col",(char *) "image", NULL
23790 };
23791
23792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
23793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23795 arg2 = (int) SWIG_AsInt(obj1);
23796 if (PyErr_Occurred()) SWIG_fail;
23797 arg3 = (int) SWIG_AsInt(obj2);
23798 if (PyErr_Occurred()) SWIG_fail;
23799 {
23800 PyThreadState* __tstate = wxPyBeginAllowThreads();
23801 (arg1)->SetColumnImage(arg2,arg3);
23802
23803 wxPyEndAllowThreads(__tstate);
23804 if (PyErr_Occurred()) SWIG_fail;
23805 }
23806 Py_INCREF(Py_None); resultobj = Py_None;
23807 return resultobj;
23808 fail:
23809 return NULL;
23810 }
23811
23812
23813 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23814 PyObject *resultobj;
23815 wxListView *arg1 = (wxListView *) 0 ;
23816 int arg2 ;
23817 PyObject * obj0 = 0 ;
23818 PyObject * obj1 = 0 ;
23819 char *kwnames[] = {
23820 (char *) "self",(char *) "col", NULL
23821 };
23822
23823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
23824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23826 arg2 = (int) SWIG_AsInt(obj1);
23827 if (PyErr_Occurred()) SWIG_fail;
23828 {
23829 PyThreadState* __tstate = wxPyBeginAllowThreads();
23830 (arg1)->ClearColumnImage(arg2);
23831
23832 wxPyEndAllowThreads(__tstate);
23833 if (PyErr_Occurred()) SWIG_fail;
23834 }
23835 Py_INCREF(Py_None); resultobj = Py_None;
23836 return resultobj;
23837 fail:
23838 return NULL;
23839 }
23840
23841
23842 static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
23843 PyObject *obj;
23844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23845 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
23846 Py_INCREF(obj);
23847 return Py_BuildValue((char *)"");
23848 }
23849 static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
23850 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
23851 return 1;
23852 }
23853
23854
23855 static PyObject *_wrap_TreeCtrlNameStr_get() {
23856 PyObject *pyobj;
23857
23858 {
23859 #if wxUSE_UNICODE
23860 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
23861 #else
23862 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
23863 #endif
23864 }
23865 return pyobj;
23866 }
23867
23868
23869 static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
23870 PyObject *resultobj;
23871 wxTreeItemId *result;
23872 char *kwnames[] = {
23873 NULL
23874 };
23875
23876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 result = (wxTreeItemId *)new wxTreeItemId();
23880
23881 wxPyEndAllowThreads(__tstate);
23882 if (PyErr_Occurred()) SWIG_fail;
23883 }
23884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
23885 return resultobj;
23886 fail:
23887 return NULL;
23888 }
23889
23890
23891 static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
23892 PyObject *resultobj;
23893 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23894 PyObject * obj0 = 0 ;
23895 char *kwnames[] = {
23896 (char *) "self", NULL
23897 };
23898
23899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
23900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23902 {
23903 PyThreadState* __tstate = wxPyBeginAllowThreads();
23904 delete arg1;
23905
23906 wxPyEndAllowThreads(__tstate);
23907 if (PyErr_Occurred()) SWIG_fail;
23908 }
23909 Py_INCREF(Py_None); resultobj = Py_None;
23910 return resultobj;
23911 fail:
23912 return NULL;
23913 }
23914
23915
23916 static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
23917 PyObject *resultobj;
23918 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23919 bool result;
23920 PyObject * obj0 = 0 ;
23921 char *kwnames[] = {
23922 (char *) "self", NULL
23923 };
23924
23925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
23926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23928 {
23929 PyThreadState* __tstate = wxPyBeginAllowThreads();
23930 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
23931
23932 wxPyEndAllowThreads(__tstate);
23933 if (PyErr_Occurred()) SWIG_fail;
23934 }
23935 {
23936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23937 }
23938 return resultobj;
23939 fail:
23940 return NULL;
23941 }
23942
23943
23944 static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23945 PyObject *resultobj;
23946 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23947 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
23948 bool result;
23949 PyObject * obj0 = 0 ;
23950 PyObject * obj1 = 0 ;
23951 char *kwnames[] = {
23952 (char *) "self",(char *) "other", NULL
23953 };
23954
23955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
23956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23958 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23960 {
23961 PyThreadState* __tstate = wxPyBeginAllowThreads();
23962 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
23963
23964 wxPyEndAllowThreads(__tstate);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 }
23967 {
23968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23969 }
23970 return resultobj;
23971 fail:
23972 return NULL;
23973 }
23974
23975
23976 static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23977 PyObject *resultobj;
23978 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23979 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
23980 bool result;
23981 PyObject * obj0 = 0 ;
23982 PyObject * obj1 = 0 ;
23983 char *kwnames[] = {
23984 (char *) "self",(char *) "other", NULL
23985 };
23986
23987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
23988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23990 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23992 {
23993 PyThreadState* __tstate = wxPyBeginAllowThreads();
23994 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
23995
23996 wxPyEndAllowThreads(__tstate);
23997 if (PyErr_Occurred()) SWIG_fail;
23998 }
23999 {
24000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24001 }
24002 return resultobj;
24003 fail:
24004 return NULL;
24005 }
24006
24007
24008 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
24009 PyObject *resultobj;
24010 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24011 void *arg2 = (void *) 0 ;
24012 PyObject * obj0 = 0 ;
24013 PyObject * obj1 = 0 ;
24014 char *kwnames[] = {
24015 (char *) "self",(char *) "m_pItem", NULL
24016 };
24017
24018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24021 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24022 if (arg1) (arg1)->m_pItem = arg2;
24023
24024 Py_INCREF(Py_None); resultobj = Py_None;
24025 return resultobj;
24026 fail:
24027 return NULL;
24028 }
24029
24030
24031 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
24032 PyObject *resultobj;
24033 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24034 void *result;
24035 PyObject * obj0 = 0 ;
24036 char *kwnames[] = {
24037 (char *) "self", NULL
24038 };
24039
24040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24043 result = (void *) ((arg1)->m_pItem);
24044
24045 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24046 return resultobj;
24047 fail:
24048 return NULL;
24049 }
24050
24051
24052 static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
24053 PyObject *obj;
24054 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24055 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24056 Py_INCREF(obj);
24057 return Py_BuildValue((char *)"");
24058 }
24059 static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24060 PyObject *resultobj;
24061 PyObject *arg1 = (PyObject *) NULL ;
24062 wxPyTreeItemData *result;
24063 PyObject * obj0 = 0 ;
24064 char *kwnames[] = {
24065 (char *) "obj", NULL
24066 };
24067
24068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24069 if (obj0) {
24070 arg1 = obj0;
24071 }
24072 {
24073 PyThreadState* __tstate = wxPyBeginAllowThreads();
24074 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24075
24076 wxPyEndAllowThreads(__tstate);
24077 if (PyErr_Occurred()) SWIG_fail;
24078 }
24079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24080 return resultobj;
24081 fail:
24082 return NULL;
24083 }
24084
24085
24086 static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24087 PyObject *resultobj;
24088 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24089 PyObject *result;
24090 PyObject * obj0 = 0 ;
24091 char *kwnames[] = {
24092 (char *) "self", NULL
24093 };
24094
24095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24098 {
24099 PyThreadState* __tstate = wxPyBeginAllowThreads();
24100 result = (PyObject *)(arg1)->GetData();
24101
24102 wxPyEndAllowThreads(__tstate);
24103 if (PyErr_Occurred()) SWIG_fail;
24104 }
24105 resultobj = result;
24106 return resultobj;
24107 fail:
24108 return NULL;
24109 }
24110
24111
24112 static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24113 PyObject *resultobj;
24114 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24115 PyObject *arg2 = (PyObject *) 0 ;
24116 PyObject * obj0 = 0 ;
24117 PyObject * obj1 = 0 ;
24118 char *kwnames[] = {
24119 (char *) "self",(char *) "obj", NULL
24120 };
24121
24122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24125 arg2 = obj1;
24126 {
24127 PyThreadState* __tstate = wxPyBeginAllowThreads();
24128 (arg1)->SetData(arg2);
24129
24130 wxPyEndAllowThreads(__tstate);
24131 if (PyErr_Occurred()) SWIG_fail;
24132 }
24133 Py_INCREF(Py_None); resultobj = Py_None;
24134 return resultobj;
24135 fail:
24136 return NULL;
24137 }
24138
24139
24140 static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24141 PyObject *resultobj;
24142 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24143 wxTreeItemId *result;
24144 PyObject * obj0 = 0 ;
24145 char *kwnames[] = {
24146 (char *) "self", NULL
24147 };
24148
24149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24152 {
24153 PyThreadState* __tstate = wxPyBeginAllowThreads();
24154 {
24155 wxTreeItemId const &_result_ref = (arg1)->GetId();
24156 result = (wxTreeItemId *) &_result_ref;
24157 }
24158
24159 wxPyEndAllowThreads(__tstate);
24160 if (PyErr_Occurred()) SWIG_fail;
24161 }
24162 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24163 return resultobj;
24164 fail:
24165 return NULL;
24166 }
24167
24168
24169 static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24170 PyObject *resultobj;
24171 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24172 wxTreeItemId *arg2 = 0 ;
24173 PyObject * obj0 = 0 ;
24174 PyObject * obj1 = 0 ;
24175 char *kwnames[] = {
24176 (char *) "self",(char *) "id", NULL
24177 };
24178
24179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24182 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24183 SWIG_POINTER_EXCEPTION | 0)) == -1)
24184 SWIG_fail;
24185 if (arg2 == NULL) {
24186 PyErr_SetString(PyExc_TypeError,"null reference");
24187 SWIG_fail;
24188 }
24189 {
24190 PyThreadState* __tstate = wxPyBeginAllowThreads();
24191 (arg1)->SetId((wxTreeItemId const &)*arg2);
24192
24193 wxPyEndAllowThreads(__tstate);
24194 if (PyErr_Occurred()) SWIG_fail;
24195 }
24196 Py_INCREF(Py_None); resultobj = Py_None;
24197 return resultobj;
24198 fail:
24199 return NULL;
24200 }
24201
24202
24203 static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
24204 PyObject *resultobj;
24205 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24206 PyObject * obj0 = 0 ;
24207 char *kwnames[] = {
24208 (char *) "self", NULL
24209 };
24210
24211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24214 {
24215 PyThreadState* __tstate = wxPyBeginAllowThreads();
24216 wxPyTreeItemData_Destroy(arg1);
24217
24218 wxPyEndAllowThreads(__tstate);
24219 if (PyErr_Occurred()) SWIG_fail;
24220 }
24221 Py_INCREF(Py_None); resultobj = Py_None;
24222 return resultobj;
24223 fail:
24224 return NULL;
24225 }
24226
24227
24228 static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
24229 PyObject *obj;
24230 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24231 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24232 Py_INCREF(obj);
24233 return Py_BuildValue((char *)"");
24234 }
24235 static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24236 PyObject *resultobj;
24237 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24238 int arg2 = (int) 0 ;
24239 wxTreeEvent *result;
24240 PyObject * obj0 = 0 ;
24241 PyObject * obj1 = 0 ;
24242 char *kwnames[] = {
24243 (char *) "commandType",(char *) "id", NULL
24244 };
24245
24246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24247 if (obj0) {
24248 arg1 = (wxEventType) SWIG_AsInt(obj0);
24249 if (PyErr_Occurred()) SWIG_fail;
24250 }
24251 if (obj1) {
24252 arg2 = (int) SWIG_AsInt(obj1);
24253 if (PyErr_Occurred()) SWIG_fail;
24254 }
24255 {
24256 PyThreadState* __tstate = wxPyBeginAllowThreads();
24257 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24258
24259 wxPyEndAllowThreads(__tstate);
24260 if (PyErr_Occurred()) SWIG_fail;
24261 }
24262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24263 return resultobj;
24264 fail:
24265 return NULL;
24266 }
24267
24268
24269 static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24270 PyObject *resultobj;
24271 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24272 wxTreeItemId result;
24273 PyObject * obj0 = 0 ;
24274 char *kwnames[] = {
24275 (char *) "self", NULL
24276 };
24277
24278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24281 {
24282 PyThreadState* __tstate = wxPyBeginAllowThreads();
24283 result = ((wxTreeEvent const *)arg1)->GetItem();
24284
24285 wxPyEndAllowThreads(__tstate);
24286 if (PyErr_Occurred()) SWIG_fail;
24287 }
24288 {
24289 wxTreeItemId * resultptr;
24290 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24291 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24292 }
24293 return resultobj;
24294 fail:
24295 return NULL;
24296 }
24297
24298
24299 static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24300 PyObject *resultobj;
24301 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24302 wxTreeItemId *arg2 = 0 ;
24303 PyObject * obj0 = 0 ;
24304 PyObject * obj1 = 0 ;
24305 char *kwnames[] = {
24306 (char *) "self",(char *) "item", NULL
24307 };
24308
24309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24312 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24313 SWIG_POINTER_EXCEPTION | 0)) == -1)
24314 SWIG_fail;
24315 if (arg2 == NULL) {
24316 PyErr_SetString(PyExc_TypeError,"null reference");
24317 SWIG_fail;
24318 }
24319 {
24320 PyThreadState* __tstate = wxPyBeginAllowThreads();
24321 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24322
24323 wxPyEndAllowThreads(__tstate);
24324 if (PyErr_Occurred()) SWIG_fail;
24325 }
24326 Py_INCREF(Py_None); resultobj = Py_None;
24327 return resultobj;
24328 fail:
24329 return NULL;
24330 }
24331
24332
24333 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24334 PyObject *resultobj;
24335 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24336 wxTreeItemId result;
24337 PyObject * obj0 = 0 ;
24338 char *kwnames[] = {
24339 (char *) "self", NULL
24340 };
24341
24342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24345 {
24346 PyThreadState* __tstate = wxPyBeginAllowThreads();
24347 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24348
24349 wxPyEndAllowThreads(__tstate);
24350 if (PyErr_Occurred()) SWIG_fail;
24351 }
24352 {
24353 wxTreeItemId * resultptr;
24354 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24355 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24356 }
24357 return resultobj;
24358 fail:
24359 return NULL;
24360 }
24361
24362
24363 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24364 PyObject *resultobj;
24365 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24366 wxTreeItemId *arg2 = 0 ;
24367 PyObject * obj0 = 0 ;
24368 PyObject * obj1 = 0 ;
24369 char *kwnames[] = {
24370 (char *) "self",(char *) "item", NULL
24371 };
24372
24373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24377 SWIG_POINTER_EXCEPTION | 0)) == -1)
24378 SWIG_fail;
24379 if (arg2 == NULL) {
24380 PyErr_SetString(PyExc_TypeError,"null reference");
24381 SWIG_fail;
24382 }
24383 {
24384 PyThreadState* __tstate = wxPyBeginAllowThreads();
24385 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24386
24387 wxPyEndAllowThreads(__tstate);
24388 if (PyErr_Occurred()) SWIG_fail;
24389 }
24390 Py_INCREF(Py_None); resultobj = Py_None;
24391 return resultobj;
24392 fail:
24393 return NULL;
24394 }
24395
24396
24397 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24398 PyObject *resultobj;
24399 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24400 wxPoint result;
24401 PyObject * obj0 = 0 ;
24402 char *kwnames[] = {
24403 (char *) "self", NULL
24404 };
24405
24406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24409 {
24410 PyThreadState* __tstate = wxPyBeginAllowThreads();
24411 result = ((wxTreeEvent const *)arg1)->GetPoint();
24412
24413 wxPyEndAllowThreads(__tstate);
24414 if (PyErr_Occurred()) SWIG_fail;
24415 }
24416 {
24417 wxPoint * resultptr;
24418 resultptr = new wxPoint((wxPoint &) result);
24419 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24420 }
24421 return resultobj;
24422 fail:
24423 return NULL;
24424 }
24425
24426
24427 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24428 PyObject *resultobj;
24429 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24430 wxPoint *arg2 = 0 ;
24431 wxPoint temp2 ;
24432 PyObject * obj0 = 0 ;
24433 PyObject * obj1 = 0 ;
24434 char *kwnames[] = {
24435 (char *) "self",(char *) "pt", NULL
24436 };
24437
24438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24441 {
24442 arg2 = &temp2;
24443 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24444 }
24445 {
24446 PyThreadState* __tstate = wxPyBeginAllowThreads();
24447 (arg1)->SetPoint((wxPoint const &)*arg2);
24448
24449 wxPyEndAllowThreads(__tstate);
24450 if (PyErr_Occurred()) SWIG_fail;
24451 }
24452 Py_INCREF(Py_None); resultobj = Py_None;
24453 return resultobj;
24454 fail:
24455 return NULL;
24456 }
24457
24458
24459 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24460 PyObject *resultobj;
24461 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24462 wxKeyEvent *result;
24463 PyObject * obj0 = 0 ;
24464 char *kwnames[] = {
24465 (char *) "self", NULL
24466 };
24467
24468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24471 {
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 {
24474 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24475 result = (wxKeyEvent *) &_result_ref;
24476 }
24477
24478 wxPyEndAllowThreads(__tstate);
24479 if (PyErr_Occurred()) SWIG_fail;
24480 }
24481 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24482 return resultobj;
24483 fail:
24484 return NULL;
24485 }
24486
24487
24488 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
24489 PyObject *resultobj;
24490 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24491 int result;
24492 PyObject * obj0 = 0 ;
24493 char *kwnames[] = {
24494 (char *) "self", NULL
24495 };
24496
24497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24500 {
24501 PyThreadState* __tstate = wxPyBeginAllowThreads();
24502 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
24503
24504 wxPyEndAllowThreads(__tstate);
24505 if (PyErr_Occurred()) SWIG_fail;
24506 }
24507 resultobj = SWIG_FromInt((int)result);
24508 return resultobj;
24509 fail:
24510 return NULL;
24511 }
24512
24513
24514 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24515 PyObject *resultobj;
24516 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24517 wxKeyEvent *arg2 = 0 ;
24518 PyObject * obj0 = 0 ;
24519 PyObject * obj1 = 0 ;
24520 char *kwnames[] = {
24521 (char *) "self",(char *) "evt", NULL
24522 };
24523
24524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
24525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24527 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
24528 SWIG_POINTER_EXCEPTION | 0)) == -1)
24529 SWIG_fail;
24530 if (arg2 == NULL) {
24531 PyErr_SetString(PyExc_TypeError,"null reference");
24532 SWIG_fail;
24533 }
24534 {
24535 PyThreadState* __tstate = wxPyBeginAllowThreads();
24536 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
24537
24538 wxPyEndAllowThreads(__tstate);
24539 if (PyErr_Occurred()) SWIG_fail;
24540 }
24541 Py_INCREF(Py_None); resultobj = Py_None;
24542 return resultobj;
24543 fail:
24544 return NULL;
24545 }
24546
24547
24548 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24549 PyObject *resultobj;
24550 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24551 wxString *result;
24552 PyObject * obj0 = 0 ;
24553 char *kwnames[] = {
24554 (char *) "self", NULL
24555 };
24556
24557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
24558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24560 {
24561 PyThreadState* __tstate = wxPyBeginAllowThreads();
24562 {
24563 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
24564 result = (wxString *) &_result_ref;
24565 }
24566
24567 wxPyEndAllowThreads(__tstate);
24568 if (PyErr_Occurred()) SWIG_fail;
24569 }
24570 {
24571 #if wxUSE_UNICODE
24572 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24573 #else
24574 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24575 #endif
24576 }
24577 return resultobj;
24578 fail:
24579 return NULL;
24580 }
24581
24582
24583 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24584 PyObject *resultobj;
24585 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24586 wxString *arg2 = 0 ;
24587 bool temp2 = False ;
24588 PyObject * obj0 = 0 ;
24589 PyObject * obj1 = 0 ;
24590 char *kwnames[] = {
24591 (char *) "self",(char *) "label", NULL
24592 };
24593
24594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
24595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24597 {
24598 arg2 = wxString_in_helper(obj1);
24599 if (arg2 == NULL) SWIG_fail;
24600 temp2 = True;
24601 }
24602 {
24603 PyThreadState* __tstate = wxPyBeginAllowThreads();
24604 (arg1)->SetLabel((wxString const &)*arg2);
24605
24606 wxPyEndAllowThreads(__tstate);
24607 if (PyErr_Occurred()) SWIG_fail;
24608 }
24609 Py_INCREF(Py_None); resultobj = Py_None;
24610 {
24611 if (temp2)
24612 delete arg2;
24613 }
24614 return resultobj;
24615 fail:
24616 {
24617 if (temp2)
24618 delete arg2;
24619 }
24620 return NULL;
24621 }
24622
24623
24624 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
24625 PyObject *resultobj;
24626 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24627 bool result;
24628 PyObject * obj0 = 0 ;
24629 char *kwnames[] = {
24630 (char *) "self", NULL
24631 };
24632
24633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
24634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24636 {
24637 PyThreadState* __tstate = wxPyBeginAllowThreads();
24638 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
24639
24640 wxPyEndAllowThreads(__tstate);
24641 if (PyErr_Occurred()) SWIG_fail;
24642 }
24643 {
24644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24645 }
24646 return resultobj;
24647 fail:
24648 return NULL;
24649 }
24650
24651
24652 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
24653 PyObject *resultobj;
24654 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24655 bool arg2 ;
24656 PyObject * obj0 = 0 ;
24657 PyObject * obj1 = 0 ;
24658 char *kwnames[] = {
24659 (char *) "self",(char *) "editCancelled", NULL
24660 };
24661
24662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
24663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24665 arg2 = (bool) SWIG_AsBool(obj1);
24666 if (PyErr_Occurred()) SWIG_fail;
24667 {
24668 PyThreadState* __tstate = wxPyBeginAllowThreads();
24669 (arg1)->SetEditCanceled(arg2);
24670
24671 wxPyEndAllowThreads(__tstate);
24672 if (PyErr_Occurred()) SWIG_fail;
24673 }
24674 Py_INCREF(Py_None); resultobj = Py_None;
24675 return resultobj;
24676 fail:
24677 return NULL;
24678 }
24679
24680
24681 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
24682 PyObject *resultobj;
24683 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24684 wxString *arg2 = 0 ;
24685 bool temp2 = False ;
24686 PyObject * obj0 = 0 ;
24687 PyObject * obj1 = 0 ;
24688 char *kwnames[] = {
24689 (char *) "self",(char *) "toolTip", NULL
24690 };
24691
24692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
24693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24695 {
24696 arg2 = wxString_in_helper(obj1);
24697 if (arg2 == NULL) SWIG_fail;
24698 temp2 = True;
24699 }
24700 {
24701 PyThreadState* __tstate = wxPyBeginAllowThreads();
24702 (arg1)->SetToolTip((wxString const &)*arg2);
24703
24704 wxPyEndAllowThreads(__tstate);
24705 if (PyErr_Occurred()) SWIG_fail;
24706 }
24707 Py_INCREF(Py_None); resultobj = Py_None;
24708 {
24709 if (temp2)
24710 delete arg2;
24711 }
24712 return resultobj;
24713 fail:
24714 {
24715 if (temp2)
24716 delete arg2;
24717 }
24718 return NULL;
24719 }
24720
24721
24722 static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
24723 PyObject *obj;
24724 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24725 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
24726 Py_INCREF(obj);
24727 return Py_BuildValue((char *)"");
24728 }
24729 static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24730 PyObject *resultobj;
24731 wxWindow *arg1 = (wxWindow *) 0 ;
24732 int arg2 = (int) -1 ;
24733 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24734 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24735 wxSize const &arg4_defvalue = wxDefaultSize ;
24736 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24737 long arg5 = (long) wxTR_DEFAULT_STYLE ;
24738 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24739 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24740 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
24741 wxString *arg7 = (wxString *) &arg7_defvalue ;
24742 wxPyTreeCtrl *result;
24743 wxPoint temp3 ;
24744 wxSize temp4 ;
24745 bool temp7 = False ;
24746 PyObject * obj0 = 0 ;
24747 PyObject * obj1 = 0 ;
24748 PyObject * obj2 = 0 ;
24749 PyObject * obj3 = 0 ;
24750 PyObject * obj4 = 0 ;
24751 PyObject * obj5 = 0 ;
24752 PyObject * obj6 = 0 ;
24753 char *kwnames[] = {
24754 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24755 };
24756
24757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24760 if (obj1) {
24761 arg2 = (int) SWIG_AsInt(obj1);
24762 if (PyErr_Occurred()) SWIG_fail;
24763 }
24764 if (obj2) {
24765 {
24766 arg3 = &temp3;
24767 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24768 }
24769 }
24770 if (obj3) {
24771 {
24772 arg4 = &temp4;
24773 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24774 }
24775 }
24776 if (obj4) {
24777 arg5 = (long) SWIG_AsLong(obj4);
24778 if (PyErr_Occurred()) SWIG_fail;
24779 }
24780 if (obj5) {
24781 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24782 SWIG_POINTER_EXCEPTION | 0)) == -1)
24783 SWIG_fail;
24784 if (arg6 == NULL) {
24785 PyErr_SetString(PyExc_TypeError,"null reference");
24786 SWIG_fail;
24787 }
24788 }
24789 if (obj6) {
24790 {
24791 arg7 = wxString_in_helper(obj6);
24792 if (arg7 == NULL) SWIG_fail;
24793 temp7 = True;
24794 }
24795 }
24796 {
24797 PyThreadState* __tstate = wxPyBeginAllowThreads();
24798 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24799
24800 wxPyEndAllowThreads(__tstate);
24801 if (PyErr_Occurred()) SWIG_fail;
24802 }
24803 {
24804 resultobj = wxPyMake_wxObject(result);
24805 }
24806 {
24807 if (temp7)
24808 delete arg7;
24809 }
24810 return resultobj;
24811 fail:
24812 {
24813 if (temp7)
24814 delete arg7;
24815 }
24816 return NULL;
24817 }
24818
24819
24820 static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24821 PyObject *resultobj;
24822 wxPyTreeCtrl *result;
24823 char *kwnames[] = {
24824 NULL
24825 };
24826
24827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
24828 {
24829 PyThreadState* __tstate = wxPyBeginAllowThreads();
24830 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
24831
24832 wxPyEndAllowThreads(__tstate);
24833 if (PyErr_Occurred()) SWIG_fail;
24834 }
24835 {
24836 resultobj = wxPyMake_wxObject(result);
24837 }
24838 return resultobj;
24839 fail:
24840 return NULL;
24841 }
24842
24843
24844 static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
24845 PyObject *resultobj;
24846 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24847 wxWindow *arg2 = (wxWindow *) 0 ;
24848 int arg3 = (int) -1 ;
24849 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24850 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24851 wxSize const &arg5_defvalue = wxDefaultSize ;
24852 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24853 long arg6 = (long) wxTR_DEFAULT_STYLE ;
24854 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24855 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24856 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
24857 wxString *arg8 = (wxString *) &arg8_defvalue ;
24858 bool result;
24859 wxPoint temp4 ;
24860 wxSize temp5 ;
24861 bool temp8 = False ;
24862 PyObject * obj0 = 0 ;
24863 PyObject * obj1 = 0 ;
24864 PyObject * obj2 = 0 ;
24865 PyObject * obj3 = 0 ;
24866 PyObject * obj4 = 0 ;
24867 PyObject * obj5 = 0 ;
24868 PyObject * obj6 = 0 ;
24869 PyObject * obj7 = 0 ;
24870 char *kwnames[] = {
24871 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24872 };
24873
24874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24877 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24879 if (obj2) {
24880 arg3 = (int) SWIG_AsInt(obj2);
24881 if (PyErr_Occurred()) SWIG_fail;
24882 }
24883 if (obj3) {
24884 {
24885 arg4 = &temp4;
24886 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24887 }
24888 }
24889 if (obj4) {
24890 {
24891 arg5 = &temp5;
24892 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24893 }
24894 }
24895 if (obj5) {
24896 arg6 = (long) SWIG_AsLong(obj5);
24897 if (PyErr_Occurred()) SWIG_fail;
24898 }
24899 if (obj6) {
24900 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24901 SWIG_POINTER_EXCEPTION | 0)) == -1)
24902 SWIG_fail;
24903 if (arg7 == NULL) {
24904 PyErr_SetString(PyExc_TypeError,"null reference");
24905 SWIG_fail;
24906 }
24907 }
24908 if (obj7) {
24909 {
24910 arg8 = wxString_in_helper(obj7);
24911 if (arg8 == NULL) SWIG_fail;
24912 temp8 = True;
24913 }
24914 }
24915 {
24916 PyThreadState* __tstate = wxPyBeginAllowThreads();
24917 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24918
24919 wxPyEndAllowThreads(__tstate);
24920 if (PyErr_Occurred()) SWIG_fail;
24921 }
24922 {
24923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24924 }
24925 {
24926 if (temp8)
24927 delete arg8;
24928 }
24929 return resultobj;
24930 fail:
24931 {
24932 if (temp8)
24933 delete arg8;
24934 }
24935 return NULL;
24936 }
24937
24938
24939 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24940 PyObject *resultobj;
24941 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24942 PyObject *arg2 = (PyObject *) 0 ;
24943 PyObject *arg3 = (PyObject *) 0 ;
24944 PyObject * obj0 = 0 ;
24945 PyObject * obj1 = 0 ;
24946 PyObject * obj2 = 0 ;
24947 char *kwnames[] = {
24948 (char *) "self",(char *) "self",(char *) "_class", NULL
24949 };
24950
24951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24954 arg2 = obj1;
24955 arg3 = obj2;
24956 {
24957 PyThreadState* __tstate = wxPyBeginAllowThreads();
24958 (arg1)->_setCallbackInfo(arg2,arg3);
24959
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 Py_INCREF(Py_None); resultobj = Py_None;
24964 return resultobj;
24965 fail:
24966 return NULL;
24967 }
24968
24969
24970 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24971 PyObject *resultobj;
24972 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24973 size_t result;
24974 PyObject * obj0 = 0 ;
24975 char *kwnames[] = {
24976 (char *) "self", NULL
24977 };
24978
24979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
24980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24982 {
24983 PyThreadState* __tstate = wxPyBeginAllowThreads();
24984 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
24985
24986 wxPyEndAllowThreads(__tstate);
24987 if (PyErr_Occurred()) SWIG_fail;
24988 }
24989 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24990 return resultobj;
24991 fail:
24992 return NULL;
24993 }
24994
24995
24996 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
24997 PyObject *resultobj;
24998 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24999 unsigned int result;
25000 PyObject * obj0 = 0 ;
25001 char *kwnames[] = {
25002 (char *) "self", NULL
25003 };
25004
25005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25008 {
25009 PyThreadState* __tstate = wxPyBeginAllowThreads();
25010 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25011
25012 wxPyEndAllowThreads(__tstate);
25013 if (PyErr_Occurred()) SWIG_fail;
25014 }
25015 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25016 return resultobj;
25017 fail:
25018 return NULL;
25019 }
25020
25021
25022 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25023 PyObject *resultobj;
25024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25025 unsigned int arg2 ;
25026 PyObject * obj0 = 0 ;
25027 PyObject * obj1 = 0 ;
25028 char *kwnames[] = {
25029 (char *) "self",(char *) "indent", NULL
25030 };
25031
25032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25035 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25036 if (PyErr_Occurred()) SWIG_fail;
25037 {
25038 PyThreadState* __tstate = wxPyBeginAllowThreads();
25039 (arg1)->SetIndent(arg2);
25040
25041 wxPyEndAllowThreads(__tstate);
25042 if (PyErr_Occurred()) SWIG_fail;
25043 }
25044 Py_INCREF(Py_None); resultobj = Py_None;
25045 return resultobj;
25046 fail:
25047 return NULL;
25048 }
25049
25050
25051 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25052 PyObject *resultobj;
25053 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25054 unsigned int result;
25055 PyObject * obj0 = 0 ;
25056 char *kwnames[] = {
25057 (char *) "self", NULL
25058 };
25059
25060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25063 {
25064 PyThreadState* __tstate = wxPyBeginAllowThreads();
25065 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25066
25067 wxPyEndAllowThreads(__tstate);
25068 if (PyErr_Occurred()) SWIG_fail;
25069 }
25070 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25071 return resultobj;
25072 fail:
25073 return NULL;
25074 }
25075
25076
25077 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25078 PyObject *resultobj;
25079 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25080 unsigned int arg2 ;
25081 PyObject * obj0 = 0 ;
25082 PyObject * obj1 = 0 ;
25083 char *kwnames[] = {
25084 (char *) "self",(char *) "spacing", NULL
25085 };
25086
25087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25090 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25091 if (PyErr_Occurred()) SWIG_fail;
25092 {
25093 PyThreadState* __tstate = wxPyBeginAllowThreads();
25094 (arg1)->SetSpacing(arg2);
25095
25096 wxPyEndAllowThreads(__tstate);
25097 if (PyErr_Occurred()) SWIG_fail;
25098 }
25099 Py_INCREF(Py_None); resultobj = Py_None;
25100 return resultobj;
25101 fail:
25102 return NULL;
25103 }
25104
25105
25106 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25107 PyObject *resultobj;
25108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25109 wxImageList *result;
25110 PyObject * obj0 = 0 ;
25111 char *kwnames[] = {
25112 (char *) "self", NULL
25113 };
25114
25115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25118 {
25119 PyThreadState* __tstate = wxPyBeginAllowThreads();
25120 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25121
25122 wxPyEndAllowThreads(__tstate);
25123 if (PyErr_Occurred()) SWIG_fail;
25124 }
25125 {
25126 resultobj = wxPyMake_wxObject(result);
25127 }
25128 return resultobj;
25129 fail:
25130 return NULL;
25131 }
25132
25133
25134 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25135 PyObject *resultobj;
25136 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25137 wxImageList *result;
25138 PyObject * obj0 = 0 ;
25139 char *kwnames[] = {
25140 (char *) "self", NULL
25141 };
25142
25143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25146 {
25147 PyThreadState* __tstate = wxPyBeginAllowThreads();
25148 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25149
25150 wxPyEndAllowThreads(__tstate);
25151 if (PyErr_Occurred()) SWIG_fail;
25152 }
25153 {
25154 resultobj = wxPyMake_wxObject(result);
25155 }
25156 return resultobj;
25157 fail:
25158 return NULL;
25159 }
25160
25161
25162 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25163 PyObject *resultobj;
25164 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25165 wxImageList *arg2 = (wxImageList *) 0 ;
25166 PyObject * obj0 = 0 ;
25167 PyObject * obj1 = 0 ;
25168 char *kwnames[] = {
25169 (char *) "self",(char *) "imageList", NULL
25170 };
25171
25172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25175 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25177 {
25178 PyThreadState* __tstate = wxPyBeginAllowThreads();
25179 (arg1)->SetImageList(arg2);
25180
25181 wxPyEndAllowThreads(__tstate);
25182 if (PyErr_Occurred()) SWIG_fail;
25183 }
25184 Py_INCREF(Py_None); resultobj = Py_None;
25185 return resultobj;
25186 fail:
25187 return NULL;
25188 }
25189
25190
25191 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25192 PyObject *resultobj;
25193 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25194 wxImageList *arg2 = (wxImageList *) 0 ;
25195 PyObject * obj0 = 0 ;
25196 PyObject * obj1 = 0 ;
25197 char *kwnames[] = {
25198 (char *) "self",(char *) "imageList", NULL
25199 };
25200
25201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25206 {
25207 PyThreadState* __tstate = wxPyBeginAllowThreads();
25208 (arg1)->SetStateImageList(arg2);
25209
25210 wxPyEndAllowThreads(__tstate);
25211 if (PyErr_Occurred()) SWIG_fail;
25212 }
25213 Py_INCREF(Py_None); resultobj = Py_None;
25214 return resultobj;
25215 fail:
25216 return NULL;
25217 }
25218
25219
25220 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25221 PyObject *resultobj;
25222 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25223 wxImageList *arg2 = (wxImageList *) 0 ;
25224 PyObject * obj0 = 0 ;
25225 PyObject * obj1 = 0 ;
25226 char *kwnames[] = {
25227 (char *) "self",(char *) "imageList", NULL
25228 };
25229
25230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25233 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25234 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25235 {
25236 PyThreadState* __tstate = wxPyBeginAllowThreads();
25237 (arg1)->AssignImageList(arg2);
25238
25239 wxPyEndAllowThreads(__tstate);
25240 if (PyErr_Occurred()) SWIG_fail;
25241 }
25242 Py_INCREF(Py_None); resultobj = Py_None;
25243 return resultobj;
25244 fail:
25245 return NULL;
25246 }
25247
25248
25249 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25250 PyObject *resultobj;
25251 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25252 wxImageList *arg2 = (wxImageList *) 0 ;
25253 PyObject * obj0 = 0 ;
25254 PyObject * obj1 = 0 ;
25255 char *kwnames[] = {
25256 (char *) "self",(char *) "imageList", NULL
25257 };
25258
25259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25262 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25263 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25264 {
25265 PyThreadState* __tstate = wxPyBeginAllowThreads();
25266 (arg1)->AssignStateImageList(arg2);
25267
25268 wxPyEndAllowThreads(__tstate);
25269 if (PyErr_Occurred()) SWIG_fail;
25270 }
25271 Py_INCREF(Py_None); resultobj = Py_None;
25272 return resultobj;
25273 fail:
25274 return NULL;
25275 }
25276
25277
25278 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25279 PyObject *resultobj;
25280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25281 wxTreeItemId *arg2 = 0 ;
25282 wxString result;
25283 PyObject * obj0 = 0 ;
25284 PyObject * obj1 = 0 ;
25285 char *kwnames[] = {
25286 (char *) "self",(char *) "item", NULL
25287 };
25288
25289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25292 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25293 SWIG_POINTER_EXCEPTION | 0)) == -1)
25294 SWIG_fail;
25295 if (arg2 == NULL) {
25296 PyErr_SetString(PyExc_TypeError,"null reference");
25297 SWIG_fail;
25298 }
25299 {
25300 PyThreadState* __tstate = wxPyBeginAllowThreads();
25301 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25302
25303 wxPyEndAllowThreads(__tstate);
25304 if (PyErr_Occurred()) SWIG_fail;
25305 }
25306 {
25307 #if wxUSE_UNICODE
25308 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25309 #else
25310 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25311 #endif
25312 }
25313 return resultobj;
25314 fail:
25315 return NULL;
25316 }
25317
25318
25319 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25320 PyObject *resultobj;
25321 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25322 wxTreeItemId *arg2 = 0 ;
25323 int arg3 = (int) wxTreeItemIcon_Normal ;
25324 int result;
25325 PyObject * obj0 = 0 ;
25326 PyObject * obj1 = 0 ;
25327 PyObject * obj2 = 0 ;
25328 char *kwnames[] = {
25329 (char *) "self",(char *) "item",(char *) "which", NULL
25330 };
25331
25332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25335 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25336 SWIG_POINTER_EXCEPTION | 0)) == -1)
25337 SWIG_fail;
25338 if (arg2 == NULL) {
25339 PyErr_SetString(PyExc_TypeError,"null reference");
25340 SWIG_fail;
25341 }
25342 if (obj2) {
25343 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
25344 if (PyErr_Occurred()) SWIG_fail;
25345 }
25346 {
25347 PyThreadState* __tstate = wxPyBeginAllowThreads();
25348 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25349
25350 wxPyEndAllowThreads(__tstate);
25351 if (PyErr_Occurred()) SWIG_fail;
25352 }
25353 resultobj = SWIG_FromInt((int)result);
25354 return resultobj;
25355 fail:
25356 return NULL;
25357 }
25358
25359
25360 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25361 PyObject *resultobj;
25362 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25363 wxTreeItemId *arg2 = 0 ;
25364 wxPyTreeItemData *result;
25365 PyObject * obj0 = 0 ;
25366 PyObject * obj1 = 0 ;
25367 char *kwnames[] = {
25368 (char *) "self",(char *) "item", NULL
25369 };
25370
25371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25375 SWIG_POINTER_EXCEPTION | 0)) == -1)
25376 SWIG_fail;
25377 if (arg2 == NULL) {
25378 PyErr_SetString(PyExc_TypeError,"null reference");
25379 SWIG_fail;
25380 }
25381 {
25382 PyThreadState* __tstate = wxPyBeginAllowThreads();
25383 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25384
25385 wxPyEndAllowThreads(__tstate);
25386 if (PyErr_Occurred()) SWIG_fail;
25387 }
25388 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25389 return resultobj;
25390 fail:
25391 return NULL;
25392 }
25393
25394
25395 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25396 PyObject *resultobj;
25397 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25398 wxTreeItemId *arg2 = 0 ;
25399 PyObject *result;
25400 PyObject * obj0 = 0 ;
25401 PyObject * obj1 = 0 ;
25402 char *kwnames[] = {
25403 (char *) "self",(char *) "item", NULL
25404 };
25405
25406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25409 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25410 SWIG_POINTER_EXCEPTION | 0)) == -1)
25411 SWIG_fail;
25412 if (arg2 == NULL) {
25413 PyErr_SetString(PyExc_TypeError,"null reference");
25414 SWIG_fail;
25415 }
25416 {
25417 PyThreadState* __tstate = wxPyBeginAllowThreads();
25418 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25419
25420 wxPyEndAllowThreads(__tstate);
25421 if (PyErr_Occurred()) SWIG_fail;
25422 }
25423 resultobj = result;
25424 return resultobj;
25425 fail:
25426 return NULL;
25427 }
25428
25429
25430 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25431 PyObject *resultobj;
25432 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25433 wxTreeItemId *arg2 = 0 ;
25434 wxColour result;
25435 PyObject * obj0 = 0 ;
25436 PyObject * obj1 = 0 ;
25437 char *kwnames[] = {
25438 (char *) "self",(char *) "item", NULL
25439 };
25440
25441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25445 SWIG_POINTER_EXCEPTION | 0)) == -1)
25446 SWIG_fail;
25447 if (arg2 == NULL) {
25448 PyErr_SetString(PyExc_TypeError,"null reference");
25449 SWIG_fail;
25450 }
25451 {
25452 PyThreadState* __tstate = wxPyBeginAllowThreads();
25453 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25454
25455 wxPyEndAllowThreads(__tstate);
25456 if (PyErr_Occurred()) SWIG_fail;
25457 }
25458 {
25459 wxColour * resultptr;
25460 resultptr = new wxColour((wxColour &) result);
25461 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25462 }
25463 return resultobj;
25464 fail:
25465 return NULL;
25466 }
25467
25468
25469 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25470 PyObject *resultobj;
25471 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25472 wxTreeItemId *arg2 = 0 ;
25473 wxColour result;
25474 PyObject * obj0 = 0 ;
25475 PyObject * obj1 = 0 ;
25476 char *kwnames[] = {
25477 (char *) "self",(char *) "item", NULL
25478 };
25479
25480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25483 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25484 SWIG_POINTER_EXCEPTION | 0)) == -1)
25485 SWIG_fail;
25486 if (arg2 == NULL) {
25487 PyErr_SetString(PyExc_TypeError,"null reference");
25488 SWIG_fail;
25489 }
25490 {
25491 PyThreadState* __tstate = wxPyBeginAllowThreads();
25492 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25493
25494 wxPyEndAllowThreads(__tstate);
25495 if (PyErr_Occurred()) SWIG_fail;
25496 }
25497 {
25498 wxColour * resultptr;
25499 resultptr = new wxColour((wxColour &) result);
25500 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25501 }
25502 return resultobj;
25503 fail:
25504 return NULL;
25505 }
25506
25507
25508 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25509 PyObject *resultobj;
25510 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25511 wxTreeItemId *arg2 = 0 ;
25512 wxFont result;
25513 PyObject * obj0 = 0 ;
25514 PyObject * obj1 = 0 ;
25515 char *kwnames[] = {
25516 (char *) "self",(char *) "item", NULL
25517 };
25518
25519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
25520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25523 SWIG_POINTER_EXCEPTION | 0)) == -1)
25524 SWIG_fail;
25525 if (arg2 == NULL) {
25526 PyErr_SetString(PyExc_TypeError,"null reference");
25527 SWIG_fail;
25528 }
25529 {
25530 PyThreadState* __tstate = wxPyBeginAllowThreads();
25531 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
25532
25533 wxPyEndAllowThreads(__tstate);
25534 if (PyErr_Occurred()) SWIG_fail;
25535 }
25536 {
25537 wxFont * resultptr;
25538 resultptr = new wxFont((wxFont &) result);
25539 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
25540 }
25541 return resultobj;
25542 fail:
25543 return NULL;
25544 }
25545
25546
25547 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25548 PyObject *resultobj;
25549 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25550 wxTreeItemId *arg2 = 0 ;
25551 wxString *arg3 = 0 ;
25552 bool temp3 = False ;
25553 PyObject * obj0 = 0 ;
25554 PyObject * obj1 = 0 ;
25555 PyObject * obj2 = 0 ;
25556 char *kwnames[] = {
25557 (char *) "self",(char *) "item",(char *) "text", NULL
25558 };
25559
25560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
25561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25563 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25564 SWIG_POINTER_EXCEPTION | 0)) == -1)
25565 SWIG_fail;
25566 if (arg2 == NULL) {
25567 PyErr_SetString(PyExc_TypeError,"null reference");
25568 SWIG_fail;
25569 }
25570 {
25571 arg3 = wxString_in_helper(obj2);
25572 if (arg3 == NULL) SWIG_fail;
25573 temp3 = True;
25574 }
25575 {
25576 PyThreadState* __tstate = wxPyBeginAllowThreads();
25577 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
25578
25579 wxPyEndAllowThreads(__tstate);
25580 if (PyErr_Occurred()) SWIG_fail;
25581 }
25582 Py_INCREF(Py_None); resultobj = Py_None;
25583 {
25584 if (temp3)
25585 delete arg3;
25586 }
25587 return resultobj;
25588 fail:
25589 {
25590 if (temp3)
25591 delete arg3;
25592 }
25593 return NULL;
25594 }
25595
25596
25597 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25598 PyObject *resultobj;
25599 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25600 wxTreeItemId *arg2 = 0 ;
25601 int arg3 ;
25602 int arg4 = (int) wxTreeItemIcon_Normal ;
25603 PyObject * obj0 = 0 ;
25604 PyObject * obj1 = 0 ;
25605 PyObject * obj2 = 0 ;
25606 PyObject * obj3 = 0 ;
25607 char *kwnames[] = {
25608 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
25609 };
25610
25611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25614 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25615 SWIG_POINTER_EXCEPTION | 0)) == -1)
25616 SWIG_fail;
25617 if (arg2 == NULL) {
25618 PyErr_SetString(PyExc_TypeError,"null reference");
25619 SWIG_fail;
25620 }
25621 arg3 = (int) SWIG_AsInt(obj2);
25622 if (PyErr_Occurred()) SWIG_fail;
25623 if (obj3) {
25624 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
25625 if (PyErr_Occurred()) SWIG_fail;
25626 }
25627 {
25628 PyThreadState* __tstate = wxPyBeginAllowThreads();
25629 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
25630
25631 wxPyEndAllowThreads(__tstate);
25632 if (PyErr_Occurred()) SWIG_fail;
25633 }
25634 Py_INCREF(Py_None); resultobj = Py_None;
25635 return resultobj;
25636 fail:
25637 return NULL;
25638 }
25639
25640
25641 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25642 PyObject *resultobj;
25643 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25644 wxTreeItemId *arg2 = 0 ;
25645 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
25646 PyObject * obj0 = 0 ;
25647 PyObject * obj1 = 0 ;
25648 PyObject * obj2 = 0 ;
25649 char *kwnames[] = {
25650 (char *) "self",(char *) "item",(char *) "data", NULL
25651 };
25652
25653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25656 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25657 SWIG_POINTER_EXCEPTION | 0)) == -1)
25658 SWIG_fail;
25659 if (arg2 == NULL) {
25660 PyErr_SetString(PyExc_TypeError,"null reference");
25661 SWIG_fail;
25662 }
25663 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
25664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25665 {
25666 PyThreadState* __tstate = wxPyBeginAllowThreads();
25667 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
25668
25669 wxPyEndAllowThreads(__tstate);
25670 if (PyErr_Occurred()) SWIG_fail;
25671 }
25672 Py_INCREF(Py_None); resultobj = Py_None;
25673 return resultobj;
25674 fail:
25675 return NULL;
25676 }
25677
25678
25679 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25680 PyObject *resultobj;
25681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25682 wxTreeItemId *arg2 = 0 ;
25683 PyObject *arg3 = (PyObject *) 0 ;
25684 PyObject * obj0 = 0 ;
25685 PyObject * obj1 = 0 ;
25686 PyObject * obj2 = 0 ;
25687 char *kwnames[] = {
25688 (char *) "self",(char *) "item",(char *) "obj", NULL
25689 };
25690
25691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25694 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25695 SWIG_POINTER_EXCEPTION | 0)) == -1)
25696 SWIG_fail;
25697 if (arg2 == NULL) {
25698 PyErr_SetString(PyExc_TypeError,"null reference");
25699 SWIG_fail;
25700 }
25701 arg3 = obj2;
25702 {
25703 PyThreadState* __tstate = wxPyBeginAllowThreads();
25704 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
25705
25706 wxPyEndAllowThreads(__tstate);
25707 if (PyErr_Occurred()) SWIG_fail;
25708 }
25709 Py_INCREF(Py_None); resultobj = Py_None;
25710 return resultobj;
25711 fail:
25712 return NULL;
25713 }
25714
25715
25716 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25717 PyObject *resultobj;
25718 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25719 wxTreeItemId *arg2 = 0 ;
25720 bool arg3 = (bool) True ;
25721 PyObject * obj0 = 0 ;
25722 PyObject * obj1 = 0 ;
25723 PyObject * obj2 = 0 ;
25724 char *kwnames[] = {
25725 (char *) "self",(char *) "item",(char *) "has", NULL
25726 };
25727
25728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
25729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25731 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25732 SWIG_POINTER_EXCEPTION | 0)) == -1)
25733 SWIG_fail;
25734 if (arg2 == NULL) {
25735 PyErr_SetString(PyExc_TypeError,"null reference");
25736 SWIG_fail;
25737 }
25738 if (obj2) {
25739 arg3 = (bool) SWIG_AsBool(obj2);
25740 if (PyErr_Occurred()) SWIG_fail;
25741 }
25742 {
25743 PyThreadState* __tstate = wxPyBeginAllowThreads();
25744 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
25745
25746 wxPyEndAllowThreads(__tstate);
25747 if (PyErr_Occurred()) SWIG_fail;
25748 }
25749 Py_INCREF(Py_None); resultobj = Py_None;
25750 return resultobj;
25751 fail:
25752 return NULL;
25753 }
25754
25755
25756 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
25757 PyObject *resultobj;
25758 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25759 wxTreeItemId *arg2 = 0 ;
25760 bool arg3 = (bool) True ;
25761 PyObject * obj0 = 0 ;
25762 PyObject * obj1 = 0 ;
25763 PyObject * obj2 = 0 ;
25764 char *kwnames[] = {
25765 (char *) "self",(char *) "item",(char *) "bold", NULL
25766 };
25767
25768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
25769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25771 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25772 SWIG_POINTER_EXCEPTION | 0)) == -1)
25773 SWIG_fail;
25774 if (arg2 == NULL) {
25775 PyErr_SetString(PyExc_TypeError,"null reference");
25776 SWIG_fail;
25777 }
25778 if (obj2) {
25779 arg3 = (bool) SWIG_AsBool(obj2);
25780 if (PyErr_Occurred()) SWIG_fail;
25781 }
25782 {
25783 PyThreadState* __tstate = wxPyBeginAllowThreads();
25784 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
25785
25786 wxPyEndAllowThreads(__tstate);
25787 if (PyErr_Occurred()) SWIG_fail;
25788 }
25789 Py_INCREF(Py_None); resultobj = Py_None;
25790 return resultobj;
25791 fail:
25792 return NULL;
25793 }
25794
25795
25796 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25797 PyObject *resultobj;
25798 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25799 wxTreeItemId *arg2 = 0 ;
25800 wxColour *arg3 = 0 ;
25801 wxColour temp3 ;
25802 PyObject * obj0 = 0 ;
25803 PyObject * obj1 = 0 ;
25804 PyObject * obj2 = 0 ;
25805 char *kwnames[] = {
25806 (char *) "self",(char *) "item",(char *) "col", NULL
25807 };
25808
25809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
25810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25812 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25813 SWIG_POINTER_EXCEPTION | 0)) == -1)
25814 SWIG_fail;
25815 if (arg2 == NULL) {
25816 PyErr_SetString(PyExc_TypeError,"null reference");
25817 SWIG_fail;
25818 }
25819 {
25820 arg3 = &temp3;
25821 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25822 }
25823 {
25824 PyThreadState* __tstate = wxPyBeginAllowThreads();
25825 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
25826
25827 wxPyEndAllowThreads(__tstate);
25828 if (PyErr_Occurred()) SWIG_fail;
25829 }
25830 Py_INCREF(Py_None); resultobj = Py_None;
25831 return resultobj;
25832 fail:
25833 return NULL;
25834 }
25835
25836
25837 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25838 PyObject *resultobj;
25839 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25840 wxTreeItemId *arg2 = 0 ;
25841 wxColour *arg3 = 0 ;
25842 wxColour temp3 ;
25843 PyObject * obj0 = 0 ;
25844 PyObject * obj1 = 0 ;
25845 PyObject * obj2 = 0 ;
25846 char *kwnames[] = {
25847 (char *) "self",(char *) "item",(char *) "col", NULL
25848 };
25849
25850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
25851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25853 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25854 SWIG_POINTER_EXCEPTION | 0)) == -1)
25855 SWIG_fail;
25856 if (arg2 == NULL) {
25857 PyErr_SetString(PyExc_TypeError,"null reference");
25858 SWIG_fail;
25859 }
25860 {
25861 arg3 = &temp3;
25862 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25863 }
25864 {
25865 PyThreadState* __tstate = wxPyBeginAllowThreads();
25866 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
25867
25868 wxPyEndAllowThreads(__tstate);
25869 if (PyErr_Occurred()) SWIG_fail;
25870 }
25871 Py_INCREF(Py_None); resultobj = Py_None;
25872 return resultobj;
25873 fail:
25874 return NULL;
25875 }
25876
25877
25878 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25879 PyObject *resultobj;
25880 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25881 wxTreeItemId *arg2 = 0 ;
25882 wxFont *arg3 = 0 ;
25883 PyObject * obj0 = 0 ;
25884 PyObject * obj1 = 0 ;
25885 PyObject * obj2 = 0 ;
25886 char *kwnames[] = {
25887 (char *) "self",(char *) "item",(char *) "font", NULL
25888 };
25889
25890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
25891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25893 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25894 SWIG_POINTER_EXCEPTION | 0)) == -1)
25895 SWIG_fail;
25896 if (arg2 == NULL) {
25897 PyErr_SetString(PyExc_TypeError,"null reference");
25898 SWIG_fail;
25899 }
25900 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
25901 SWIG_POINTER_EXCEPTION | 0)) == -1)
25902 SWIG_fail;
25903 if (arg3 == NULL) {
25904 PyErr_SetString(PyExc_TypeError,"null reference");
25905 SWIG_fail;
25906 }
25907 {
25908 PyThreadState* __tstate = wxPyBeginAllowThreads();
25909 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
25910
25911 wxPyEndAllowThreads(__tstate);
25912 if (PyErr_Occurred()) SWIG_fail;
25913 }
25914 Py_INCREF(Py_None); resultobj = Py_None;
25915 return resultobj;
25916 fail:
25917 return NULL;
25918 }
25919
25920
25921 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25922 PyObject *resultobj;
25923 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25924 wxTreeItemId *arg2 = 0 ;
25925 bool result;
25926 PyObject * obj0 = 0 ;
25927 PyObject * obj1 = 0 ;
25928 char *kwnames[] = {
25929 (char *) "self",(char *) "item", NULL
25930 };
25931
25932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
25933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25936 SWIG_POINTER_EXCEPTION | 0)) == -1)
25937 SWIG_fail;
25938 if (arg2 == NULL) {
25939 PyErr_SetString(PyExc_TypeError,"null reference");
25940 SWIG_fail;
25941 }
25942 {
25943 PyThreadState* __tstate = wxPyBeginAllowThreads();
25944 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
25945
25946 wxPyEndAllowThreads(__tstate);
25947 if (PyErr_Occurred()) SWIG_fail;
25948 }
25949 {
25950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25951 }
25952 return resultobj;
25953 fail:
25954 return NULL;
25955 }
25956
25957
25958 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25959 PyObject *resultobj;
25960 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25961 wxTreeItemId *arg2 = 0 ;
25962 bool result;
25963 PyObject * obj0 = 0 ;
25964 PyObject * obj1 = 0 ;
25965 char *kwnames[] = {
25966 (char *) "self",(char *) "item", NULL
25967 };
25968
25969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
25970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25972 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25973 SWIG_POINTER_EXCEPTION | 0)) == -1)
25974 SWIG_fail;
25975 if (arg2 == NULL) {
25976 PyErr_SetString(PyExc_TypeError,"null reference");
25977 SWIG_fail;
25978 }
25979 {
25980 PyThreadState* __tstate = wxPyBeginAllowThreads();
25981 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
25982
25983 wxPyEndAllowThreads(__tstate);
25984 if (PyErr_Occurred()) SWIG_fail;
25985 }
25986 {
25987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25988 }
25989 return resultobj;
25990 fail:
25991 return NULL;
25992 }
25993
25994
25995 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
25996 PyObject *resultobj;
25997 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25998 wxTreeItemId *arg2 = 0 ;
25999 bool result;
26000 PyObject * obj0 = 0 ;
26001 PyObject * obj1 = 0 ;
26002 char *kwnames[] = {
26003 (char *) "self",(char *) "item", NULL
26004 };
26005
26006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26009 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26010 SWIG_POINTER_EXCEPTION | 0)) == -1)
26011 SWIG_fail;
26012 if (arg2 == NULL) {
26013 PyErr_SetString(PyExc_TypeError,"null reference");
26014 SWIG_fail;
26015 }
26016 {
26017 PyThreadState* __tstate = wxPyBeginAllowThreads();
26018 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26019
26020 wxPyEndAllowThreads(__tstate);
26021 if (PyErr_Occurred()) SWIG_fail;
26022 }
26023 {
26024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26025 }
26026 return resultobj;
26027 fail:
26028 return NULL;
26029 }
26030
26031
26032 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
26033 PyObject *resultobj;
26034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26035 wxTreeItemId *arg2 = 0 ;
26036 bool result;
26037 PyObject * obj0 = 0 ;
26038 PyObject * obj1 = 0 ;
26039 char *kwnames[] = {
26040 (char *) "self",(char *) "item", NULL
26041 };
26042
26043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26046 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26047 SWIG_POINTER_EXCEPTION | 0)) == -1)
26048 SWIG_fail;
26049 if (arg2 == NULL) {
26050 PyErr_SetString(PyExc_TypeError,"null reference");
26051 SWIG_fail;
26052 }
26053 {
26054 PyThreadState* __tstate = wxPyBeginAllowThreads();
26055 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26056
26057 wxPyEndAllowThreads(__tstate);
26058 if (PyErr_Occurred()) SWIG_fail;
26059 }
26060 {
26061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26062 }
26063 return resultobj;
26064 fail:
26065 return NULL;
26066 }
26067
26068
26069 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
26070 PyObject *resultobj;
26071 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26072 wxTreeItemId *arg2 = 0 ;
26073 bool result;
26074 PyObject * obj0 = 0 ;
26075 PyObject * obj1 = 0 ;
26076 char *kwnames[] = {
26077 (char *) "self",(char *) "item", NULL
26078 };
26079
26080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26084 SWIG_POINTER_EXCEPTION | 0)) == -1)
26085 SWIG_fail;
26086 if (arg2 == NULL) {
26087 PyErr_SetString(PyExc_TypeError,"null reference");
26088 SWIG_fail;
26089 }
26090 {
26091 PyThreadState* __tstate = wxPyBeginAllowThreads();
26092 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26093
26094 wxPyEndAllowThreads(__tstate);
26095 if (PyErr_Occurred()) SWIG_fail;
26096 }
26097 {
26098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26099 }
26100 return resultobj;
26101 fail:
26102 return NULL;
26103 }
26104
26105
26106 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
26107 PyObject *resultobj;
26108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26109 wxTreeItemId *arg2 = 0 ;
26110 bool arg3 = (bool) True ;
26111 size_t result;
26112 PyObject * obj0 = 0 ;
26113 PyObject * obj1 = 0 ;
26114 PyObject * obj2 = 0 ;
26115 char *kwnames[] = {
26116 (char *) "self",(char *) "item",(char *) "recursively", NULL
26117 };
26118
26119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26123 SWIG_POINTER_EXCEPTION | 0)) == -1)
26124 SWIG_fail;
26125 if (arg2 == NULL) {
26126 PyErr_SetString(PyExc_TypeError,"null reference");
26127 SWIG_fail;
26128 }
26129 if (obj2) {
26130 arg3 = (bool) SWIG_AsBool(obj2);
26131 if (PyErr_Occurred()) SWIG_fail;
26132 }
26133 {
26134 PyThreadState* __tstate = wxPyBeginAllowThreads();
26135 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26136
26137 wxPyEndAllowThreads(__tstate);
26138 if (PyErr_Occurred()) SWIG_fail;
26139 }
26140 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
26141 return resultobj;
26142 fail:
26143 return NULL;
26144 }
26145
26146
26147 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26148 PyObject *resultobj;
26149 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26150 wxTreeItemId result;
26151 PyObject * obj0 = 0 ;
26152 char *kwnames[] = {
26153 (char *) "self", NULL
26154 };
26155
26156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26159 {
26160 PyThreadState* __tstate = wxPyBeginAllowThreads();
26161 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26162
26163 wxPyEndAllowThreads(__tstate);
26164 if (PyErr_Occurred()) SWIG_fail;
26165 }
26166 {
26167 wxTreeItemId * resultptr;
26168 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26169 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26170 }
26171 return resultobj;
26172 fail:
26173 return NULL;
26174 }
26175
26176
26177 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26178 PyObject *resultobj;
26179 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26180 wxTreeItemId result;
26181 PyObject * obj0 = 0 ;
26182 char *kwnames[] = {
26183 (char *) "self", NULL
26184 };
26185
26186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26189 {
26190 PyThreadState* __tstate = wxPyBeginAllowThreads();
26191 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26192
26193 wxPyEndAllowThreads(__tstate);
26194 if (PyErr_Occurred()) SWIG_fail;
26195 }
26196 {
26197 wxTreeItemId * resultptr;
26198 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26199 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26200 }
26201 return resultobj;
26202 fail:
26203 return NULL;
26204 }
26205
26206
26207 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
26208 PyObject *resultobj;
26209 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26210 PyObject *result;
26211 PyObject * obj0 = 0 ;
26212 char *kwnames[] = {
26213 (char *) "self", NULL
26214 };
26215
26216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26219 {
26220 PyThreadState* __tstate = wxPyBeginAllowThreads();
26221 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26222
26223 wxPyEndAllowThreads(__tstate);
26224 if (PyErr_Occurred()) SWIG_fail;
26225 }
26226 resultobj = result;
26227 return resultobj;
26228 fail:
26229 return NULL;
26230 }
26231
26232
26233 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
26234 PyObject *resultobj;
26235 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26236 wxTreeItemId *arg2 = 0 ;
26237 wxTreeItemId result;
26238 PyObject * obj0 = 0 ;
26239 PyObject * obj1 = 0 ;
26240 char *kwnames[] = {
26241 (char *) "self",(char *) "item", NULL
26242 };
26243
26244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26248 SWIG_POINTER_EXCEPTION | 0)) == -1)
26249 SWIG_fail;
26250 if (arg2 == NULL) {
26251 PyErr_SetString(PyExc_TypeError,"null reference");
26252 SWIG_fail;
26253 }
26254 {
26255 PyThreadState* __tstate = wxPyBeginAllowThreads();
26256 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26257
26258 wxPyEndAllowThreads(__tstate);
26259 if (PyErr_Occurred()) SWIG_fail;
26260 }
26261 {
26262 wxTreeItemId * resultptr;
26263 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26264 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26265 }
26266 return resultobj;
26267 fail:
26268 return NULL;
26269 }
26270
26271
26272 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26273 PyObject *resultobj;
26274 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26275 wxTreeItemId *arg2 = 0 ;
26276 PyObject *result;
26277 PyObject * obj0 = 0 ;
26278 PyObject * obj1 = 0 ;
26279 char *kwnames[] = {
26280 (char *) "self",(char *) "item", NULL
26281 };
26282
26283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26287 SWIG_POINTER_EXCEPTION | 0)) == -1)
26288 SWIG_fail;
26289 if (arg2 == NULL) {
26290 PyErr_SetString(PyExc_TypeError,"null reference");
26291 SWIG_fail;
26292 }
26293 {
26294 PyThreadState* __tstate = wxPyBeginAllowThreads();
26295 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26296
26297 wxPyEndAllowThreads(__tstate);
26298 if (PyErr_Occurred()) SWIG_fail;
26299 }
26300 resultobj = result;
26301 return resultobj;
26302 fail:
26303 return NULL;
26304 }
26305
26306
26307 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26308 PyObject *resultobj;
26309 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26310 wxTreeItemId *arg2 = 0 ;
26311 void *arg3 = (void *) 0 ;
26312 PyObject *result;
26313 PyObject * obj0 = 0 ;
26314 PyObject * obj1 = 0 ;
26315 PyObject * obj2 = 0 ;
26316 char *kwnames[] = {
26317 (char *) "self",(char *) "item",(char *) "cookie", NULL
26318 };
26319
26320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26323 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26324 SWIG_POINTER_EXCEPTION | 0)) == -1)
26325 SWIG_fail;
26326 if (arg2 == NULL) {
26327 PyErr_SetString(PyExc_TypeError,"null reference");
26328 SWIG_fail;
26329 }
26330 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26331 {
26332 PyThreadState* __tstate = wxPyBeginAllowThreads();
26333 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26334
26335 wxPyEndAllowThreads(__tstate);
26336 if (PyErr_Occurred()) SWIG_fail;
26337 }
26338 resultobj = result;
26339 return resultobj;
26340 fail:
26341 return NULL;
26342 }
26343
26344
26345 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26346 PyObject *resultobj;
26347 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26348 wxTreeItemId *arg2 = 0 ;
26349 wxTreeItemId result;
26350 PyObject * obj0 = 0 ;
26351 PyObject * obj1 = 0 ;
26352 char *kwnames[] = {
26353 (char *) "self",(char *) "item", NULL
26354 };
26355
26356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) 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 {
26367 PyThreadState* __tstate = wxPyBeginAllowThreads();
26368 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26369
26370 wxPyEndAllowThreads(__tstate);
26371 if (PyErr_Occurred()) SWIG_fail;
26372 }
26373 {
26374 wxTreeItemId * resultptr;
26375 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26376 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26377 }
26378 return resultobj;
26379 fail:
26380 return NULL;
26381 }
26382
26383
26384 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26385 PyObject *resultobj;
26386 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26387 wxTreeItemId *arg2 = 0 ;
26388 wxTreeItemId result;
26389 PyObject * obj0 = 0 ;
26390 PyObject * obj1 = 0 ;
26391 char *kwnames[] = {
26392 (char *) "self",(char *) "item", NULL
26393 };
26394
26395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26398 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26399 SWIG_POINTER_EXCEPTION | 0)) == -1)
26400 SWIG_fail;
26401 if (arg2 == NULL) {
26402 PyErr_SetString(PyExc_TypeError,"null reference");
26403 SWIG_fail;
26404 }
26405 {
26406 PyThreadState* __tstate = wxPyBeginAllowThreads();
26407 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26408
26409 wxPyEndAllowThreads(__tstate);
26410 if (PyErr_Occurred()) SWIG_fail;
26411 }
26412 {
26413 wxTreeItemId * resultptr;
26414 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26415 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26416 }
26417 return resultobj;
26418 fail:
26419 return NULL;
26420 }
26421
26422
26423 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26424 PyObject *resultobj;
26425 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26426 wxTreeItemId *arg2 = 0 ;
26427 wxTreeItemId result;
26428 PyObject * obj0 = 0 ;
26429 PyObject * obj1 = 0 ;
26430 char *kwnames[] = {
26431 (char *) "self",(char *) "item", NULL
26432 };
26433
26434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26437 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26438 SWIG_POINTER_EXCEPTION | 0)) == -1)
26439 SWIG_fail;
26440 if (arg2 == NULL) {
26441 PyErr_SetString(PyExc_TypeError,"null reference");
26442 SWIG_fail;
26443 }
26444 {
26445 PyThreadState* __tstate = wxPyBeginAllowThreads();
26446 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26447
26448 wxPyEndAllowThreads(__tstate);
26449 if (PyErr_Occurred()) SWIG_fail;
26450 }
26451 {
26452 wxTreeItemId * resultptr;
26453 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26454 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26455 }
26456 return resultobj;
26457 fail:
26458 return NULL;
26459 }
26460
26461
26462 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26463 PyObject *resultobj;
26464 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26465 wxTreeItemId result;
26466 PyObject * obj0 = 0 ;
26467 char *kwnames[] = {
26468 (char *) "self", NULL
26469 };
26470
26471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
26472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26474 {
26475 PyThreadState* __tstate = wxPyBeginAllowThreads();
26476 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
26477
26478 wxPyEndAllowThreads(__tstate);
26479 if (PyErr_Occurred()) SWIG_fail;
26480 }
26481 {
26482 wxTreeItemId * resultptr;
26483 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26484 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26485 }
26486 return resultobj;
26487 fail:
26488 return NULL;
26489 }
26490
26491
26492 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26493 PyObject *resultobj;
26494 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26495 wxTreeItemId *arg2 = 0 ;
26496 wxTreeItemId result;
26497 PyObject * obj0 = 0 ;
26498 PyObject * obj1 = 0 ;
26499 char *kwnames[] = {
26500 (char *) "self",(char *) "item", NULL
26501 };
26502
26503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
26504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26506 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26507 SWIG_POINTER_EXCEPTION | 0)) == -1)
26508 SWIG_fail;
26509 if (arg2 == NULL) {
26510 PyErr_SetString(PyExc_TypeError,"null reference");
26511 SWIG_fail;
26512 }
26513 {
26514 PyThreadState* __tstate = wxPyBeginAllowThreads();
26515 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
26516
26517 wxPyEndAllowThreads(__tstate);
26518 if (PyErr_Occurred()) SWIG_fail;
26519 }
26520 {
26521 wxTreeItemId * resultptr;
26522 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26523 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26524 }
26525 return resultobj;
26526 fail:
26527 return NULL;
26528 }
26529
26530
26531 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26532 PyObject *resultobj;
26533 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26534 wxTreeItemId *arg2 = 0 ;
26535 wxTreeItemId result;
26536 PyObject * obj0 = 0 ;
26537 PyObject * obj1 = 0 ;
26538 char *kwnames[] = {
26539 (char *) "self",(char *) "item", NULL
26540 };
26541
26542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
26543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26545 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26546 SWIG_POINTER_EXCEPTION | 0)) == -1)
26547 SWIG_fail;
26548 if (arg2 == NULL) {
26549 PyErr_SetString(PyExc_TypeError,"null reference");
26550 SWIG_fail;
26551 }
26552 {
26553 PyThreadState* __tstate = wxPyBeginAllowThreads();
26554 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
26555
26556 wxPyEndAllowThreads(__tstate);
26557 if (PyErr_Occurred()) SWIG_fail;
26558 }
26559 {
26560 wxTreeItemId * resultptr;
26561 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26562 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26563 }
26564 return resultobj;
26565 fail:
26566 return NULL;
26567 }
26568
26569
26570 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
26571 PyObject *resultobj;
26572 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26573 wxString *arg2 = 0 ;
26574 int arg3 = (int) -1 ;
26575 int arg4 = (int) -1 ;
26576 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
26577 wxTreeItemId result;
26578 bool temp2 = False ;
26579 PyObject * obj0 = 0 ;
26580 PyObject * obj1 = 0 ;
26581 PyObject * obj2 = 0 ;
26582 PyObject * obj3 = 0 ;
26583 PyObject * obj4 = 0 ;
26584 char *kwnames[] = {
26585 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26586 };
26587
26588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26591 {
26592 arg2 = wxString_in_helper(obj1);
26593 if (arg2 == NULL) SWIG_fail;
26594 temp2 = True;
26595 }
26596 if (obj2) {
26597 arg3 = (int) SWIG_AsInt(obj2);
26598 if (PyErr_Occurred()) SWIG_fail;
26599 }
26600 if (obj3) {
26601 arg4 = (int) SWIG_AsInt(obj3);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 if (obj4) {
26605 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
26606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26607 }
26608 {
26609 PyThreadState* __tstate = wxPyBeginAllowThreads();
26610 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
26611
26612 wxPyEndAllowThreads(__tstate);
26613 if (PyErr_Occurred()) SWIG_fail;
26614 }
26615 {
26616 wxTreeItemId * resultptr;
26617 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26618 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26619 }
26620 {
26621 if (temp2)
26622 delete arg2;
26623 }
26624 return resultobj;
26625 fail:
26626 {
26627 if (temp2)
26628 delete arg2;
26629 }
26630 return NULL;
26631 }
26632
26633
26634 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26635 PyObject *resultobj;
26636 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26637 wxTreeItemId *arg2 = 0 ;
26638 wxString *arg3 = 0 ;
26639 int arg4 = (int) -1 ;
26640 int arg5 = (int) -1 ;
26641 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26642 wxTreeItemId result;
26643 bool temp3 = False ;
26644 PyObject * obj0 = 0 ;
26645 PyObject * obj1 = 0 ;
26646 PyObject * obj2 = 0 ;
26647 PyObject * obj3 = 0 ;
26648 PyObject * obj4 = 0 ;
26649 PyObject * obj5 = 0 ;
26650 char *kwnames[] = {
26651 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26652 };
26653
26654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26657 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26658 SWIG_POINTER_EXCEPTION | 0)) == -1)
26659 SWIG_fail;
26660 if (arg2 == NULL) {
26661 PyErr_SetString(PyExc_TypeError,"null reference");
26662 SWIG_fail;
26663 }
26664 {
26665 arg3 = wxString_in_helper(obj2);
26666 if (arg3 == NULL) SWIG_fail;
26667 temp3 = True;
26668 }
26669 if (obj3) {
26670 arg4 = (int) SWIG_AsInt(obj3);
26671 if (PyErr_Occurred()) SWIG_fail;
26672 }
26673 if (obj4) {
26674 arg5 = (int) SWIG_AsInt(obj4);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 }
26677 if (obj5) {
26678 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26680 }
26681 {
26682 PyThreadState* __tstate = wxPyBeginAllowThreads();
26683 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26684
26685 wxPyEndAllowThreads(__tstate);
26686 if (PyErr_Occurred()) SWIG_fail;
26687 }
26688 {
26689 wxTreeItemId * resultptr;
26690 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26691 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26692 }
26693 {
26694 if (temp3)
26695 delete arg3;
26696 }
26697 return resultobj;
26698 fail:
26699 {
26700 if (temp3)
26701 delete arg3;
26702 }
26703 return NULL;
26704 }
26705
26706
26707 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26708 PyObject *resultobj;
26709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26710 wxTreeItemId *arg2 = 0 ;
26711 wxTreeItemId *arg3 = 0 ;
26712 wxString *arg4 = 0 ;
26713 int arg5 = (int) -1 ;
26714 int arg6 = (int) -1 ;
26715 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26716 wxTreeItemId result;
26717 bool temp4 = False ;
26718 PyObject * obj0 = 0 ;
26719 PyObject * obj1 = 0 ;
26720 PyObject * obj2 = 0 ;
26721 PyObject * obj3 = 0 ;
26722 PyObject * obj4 = 0 ;
26723 PyObject * obj5 = 0 ;
26724 PyObject * obj6 = 0 ;
26725 char *kwnames[] = {
26726 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26727 };
26728
26729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26732 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26733 SWIG_POINTER_EXCEPTION | 0)) == -1)
26734 SWIG_fail;
26735 if (arg2 == NULL) {
26736 PyErr_SetString(PyExc_TypeError,"null reference");
26737 SWIG_fail;
26738 }
26739 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
26740 SWIG_POINTER_EXCEPTION | 0)) == -1)
26741 SWIG_fail;
26742 if (arg3 == NULL) {
26743 PyErr_SetString(PyExc_TypeError,"null reference");
26744 SWIG_fail;
26745 }
26746 {
26747 arg4 = wxString_in_helper(obj3);
26748 if (arg4 == NULL) SWIG_fail;
26749 temp4 = True;
26750 }
26751 if (obj4) {
26752 arg5 = (int) SWIG_AsInt(obj4);
26753 if (PyErr_Occurred()) SWIG_fail;
26754 }
26755 if (obj5) {
26756 arg6 = (int) SWIG_AsInt(obj5);
26757 if (PyErr_Occurred()) SWIG_fail;
26758 }
26759 if (obj6) {
26760 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26762 }
26763 {
26764 PyThreadState* __tstate = wxPyBeginAllowThreads();
26765 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26766
26767 wxPyEndAllowThreads(__tstate);
26768 if (PyErr_Occurred()) SWIG_fail;
26769 }
26770 {
26771 wxTreeItemId * resultptr;
26772 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26773 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26774 }
26775 {
26776 if (temp4)
26777 delete arg4;
26778 }
26779 return resultobj;
26780 fail:
26781 {
26782 if (temp4)
26783 delete arg4;
26784 }
26785 return NULL;
26786 }
26787
26788
26789 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
26790 PyObject *resultobj;
26791 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26792 wxTreeItemId *arg2 = 0 ;
26793 size_t arg3 ;
26794 wxString *arg4 = 0 ;
26795 int arg5 = (int) -1 ;
26796 int arg6 = (int) -1 ;
26797 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26798 wxTreeItemId result;
26799 bool temp4 = False ;
26800 PyObject * obj0 = 0 ;
26801 PyObject * obj1 = 0 ;
26802 PyObject * obj2 = 0 ;
26803 PyObject * obj3 = 0 ;
26804 PyObject * obj4 = 0 ;
26805 PyObject * obj5 = 0 ;
26806 PyObject * obj6 = 0 ;
26807 char *kwnames[] = {
26808 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26809 };
26810
26811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26814 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26815 SWIG_POINTER_EXCEPTION | 0)) == -1)
26816 SWIG_fail;
26817 if (arg2 == NULL) {
26818 PyErr_SetString(PyExc_TypeError,"null reference");
26819 SWIG_fail;
26820 }
26821 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
26822 if (PyErr_Occurred()) SWIG_fail;
26823 {
26824 arg4 = wxString_in_helper(obj3);
26825 if (arg4 == NULL) SWIG_fail;
26826 temp4 = True;
26827 }
26828 if (obj4) {
26829 arg5 = (int) SWIG_AsInt(obj4);
26830 if (PyErr_Occurred()) SWIG_fail;
26831 }
26832 if (obj5) {
26833 arg6 = (int) SWIG_AsInt(obj5);
26834 if (PyErr_Occurred()) SWIG_fail;
26835 }
26836 if (obj6) {
26837 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26839 }
26840 {
26841 PyThreadState* __tstate = wxPyBeginAllowThreads();
26842 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26843
26844 wxPyEndAllowThreads(__tstate);
26845 if (PyErr_Occurred()) SWIG_fail;
26846 }
26847 {
26848 wxTreeItemId * resultptr;
26849 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26850 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26851 }
26852 {
26853 if (temp4)
26854 delete arg4;
26855 }
26856 return resultobj;
26857 fail:
26858 {
26859 if (temp4)
26860 delete arg4;
26861 }
26862 return NULL;
26863 }
26864
26865
26866 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26867 PyObject *resultobj;
26868 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26869 wxTreeItemId *arg2 = 0 ;
26870 wxString *arg3 = 0 ;
26871 int arg4 = (int) -1 ;
26872 int arg5 = (int) -1 ;
26873 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26874 wxTreeItemId result;
26875 bool temp3 = False ;
26876 PyObject * obj0 = 0 ;
26877 PyObject * obj1 = 0 ;
26878 PyObject * obj2 = 0 ;
26879 PyObject * obj3 = 0 ;
26880 PyObject * obj4 = 0 ;
26881 PyObject * obj5 = 0 ;
26882 char *kwnames[] = {
26883 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26884 };
26885
26886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26889 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26890 SWIG_POINTER_EXCEPTION | 0)) == -1)
26891 SWIG_fail;
26892 if (arg2 == NULL) {
26893 PyErr_SetString(PyExc_TypeError,"null reference");
26894 SWIG_fail;
26895 }
26896 {
26897 arg3 = wxString_in_helper(obj2);
26898 if (arg3 == NULL) SWIG_fail;
26899 temp3 = True;
26900 }
26901 if (obj3) {
26902 arg4 = (int) SWIG_AsInt(obj3);
26903 if (PyErr_Occurred()) SWIG_fail;
26904 }
26905 if (obj4) {
26906 arg5 = (int) SWIG_AsInt(obj4);
26907 if (PyErr_Occurred()) SWIG_fail;
26908 }
26909 if (obj5) {
26910 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26912 }
26913 {
26914 PyThreadState* __tstate = wxPyBeginAllowThreads();
26915 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26916
26917 wxPyEndAllowThreads(__tstate);
26918 if (PyErr_Occurred()) SWIG_fail;
26919 }
26920 {
26921 wxTreeItemId * resultptr;
26922 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26923 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26924 }
26925 {
26926 if (temp3)
26927 delete arg3;
26928 }
26929 return resultobj;
26930 fail:
26931 {
26932 if (temp3)
26933 delete arg3;
26934 }
26935 return NULL;
26936 }
26937
26938
26939 static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
26940 PyObject *resultobj;
26941 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26942 wxTreeItemId *arg2 = 0 ;
26943 PyObject * obj0 = 0 ;
26944 PyObject * obj1 = 0 ;
26945 char *kwnames[] = {
26946 (char *) "self",(char *) "item", NULL
26947 };
26948
26949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
26950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26952 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26953 SWIG_POINTER_EXCEPTION | 0)) == -1)
26954 SWIG_fail;
26955 if (arg2 == NULL) {
26956 PyErr_SetString(PyExc_TypeError,"null reference");
26957 SWIG_fail;
26958 }
26959 {
26960 PyThreadState* __tstate = wxPyBeginAllowThreads();
26961 (arg1)->Delete((wxTreeItemId const &)*arg2);
26962
26963 wxPyEndAllowThreads(__tstate);
26964 if (PyErr_Occurred()) SWIG_fail;
26965 }
26966 Py_INCREF(Py_None); resultobj = Py_None;
26967 return resultobj;
26968 fail:
26969 return NULL;
26970 }
26971
26972
26973 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26974 PyObject *resultobj;
26975 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26976 wxTreeItemId *arg2 = 0 ;
26977 PyObject * obj0 = 0 ;
26978 PyObject * obj1 = 0 ;
26979 char *kwnames[] = {
26980 (char *) "self",(char *) "item", NULL
26981 };
26982
26983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
26984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26986 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26987 SWIG_POINTER_EXCEPTION | 0)) == -1)
26988 SWIG_fail;
26989 if (arg2 == NULL) {
26990 PyErr_SetString(PyExc_TypeError,"null reference");
26991 SWIG_fail;
26992 }
26993 {
26994 PyThreadState* __tstate = wxPyBeginAllowThreads();
26995 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
26996
26997 wxPyEndAllowThreads(__tstate);
26998 if (PyErr_Occurred()) SWIG_fail;
26999 }
27000 Py_INCREF(Py_None); resultobj = Py_None;
27001 return resultobj;
27002 fail:
27003 return NULL;
27004 }
27005
27006
27007 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
27008 PyObject *resultobj;
27009 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27010 PyObject * obj0 = 0 ;
27011 char *kwnames[] = {
27012 (char *) "self", NULL
27013 };
27014
27015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27018 {
27019 PyThreadState* __tstate = wxPyBeginAllowThreads();
27020 (arg1)->DeleteAllItems();
27021
27022 wxPyEndAllowThreads(__tstate);
27023 if (PyErr_Occurred()) SWIG_fail;
27024 }
27025 Py_INCREF(Py_None); resultobj = Py_None;
27026 return resultobj;
27027 fail:
27028 return NULL;
27029 }
27030
27031
27032 static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
27033 PyObject *resultobj;
27034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27035 wxTreeItemId *arg2 = 0 ;
27036 PyObject * obj0 = 0 ;
27037 PyObject * obj1 = 0 ;
27038 char *kwnames[] = {
27039 (char *) "self",(char *) "item", NULL
27040 };
27041
27042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27046 SWIG_POINTER_EXCEPTION | 0)) == -1)
27047 SWIG_fail;
27048 if (arg2 == NULL) {
27049 PyErr_SetString(PyExc_TypeError,"null reference");
27050 SWIG_fail;
27051 }
27052 {
27053 PyThreadState* __tstate = wxPyBeginAllowThreads();
27054 (arg1)->Expand((wxTreeItemId const &)*arg2);
27055
27056 wxPyEndAllowThreads(__tstate);
27057 if (PyErr_Occurred()) SWIG_fail;
27058 }
27059 Py_INCREF(Py_None); resultobj = Py_None;
27060 return resultobj;
27061 fail:
27062 return NULL;
27063 }
27064
27065
27066 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
27067 PyObject *resultobj;
27068 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27069 wxTreeItemId *arg2 = 0 ;
27070 PyObject * obj0 = 0 ;
27071 PyObject * obj1 = 0 ;
27072 char *kwnames[] = {
27073 (char *) "self",(char *) "item", NULL
27074 };
27075
27076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27079 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27080 SWIG_POINTER_EXCEPTION | 0)) == -1)
27081 SWIG_fail;
27082 if (arg2 == NULL) {
27083 PyErr_SetString(PyExc_TypeError,"null reference");
27084 SWIG_fail;
27085 }
27086 {
27087 PyThreadState* __tstate = wxPyBeginAllowThreads();
27088 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27089
27090 wxPyEndAllowThreads(__tstate);
27091 if (PyErr_Occurred()) SWIG_fail;
27092 }
27093 Py_INCREF(Py_None); resultobj = Py_None;
27094 return resultobj;
27095 fail:
27096 return NULL;
27097 }
27098
27099
27100 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
27101 PyObject *resultobj;
27102 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27103 wxTreeItemId *arg2 = 0 ;
27104 PyObject * obj0 = 0 ;
27105 PyObject * obj1 = 0 ;
27106 char *kwnames[] = {
27107 (char *) "self",(char *) "item", NULL
27108 };
27109
27110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27113 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27114 SWIG_POINTER_EXCEPTION | 0)) == -1)
27115 SWIG_fail;
27116 if (arg2 == NULL) {
27117 PyErr_SetString(PyExc_TypeError,"null reference");
27118 SWIG_fail;
27119 }
27120 {
27121 PyThreadState* __tstate = wxPyBeginAllowThreads();
27122 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27123
27124 wxPyEndAllowThreads(__tstate);
27125 if (PyErr_Occurred()) SWIG_fail;
27126 }
27127 Py_INCREF(Py_None); resultobj = Py_None;
27128 return resultobj;
27129 fail:
27130 return NULL;
27131 }
27132
27133
27134 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
27135 PyObject *resultobj;
27136 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27137 wxTreeItemId *arg2 = 0 ;
27138 PyObject * obj0 = 0 ;
27139 PyObject * obj1 = 0 ;
27140 char *kwnames[] = {
27141 (char *) "self",(char *) "item", NULL
27142 };
27143
27144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27147 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27148 SWIG_POINTER_EXCEPTION | 0)) == -1)
27149 SWIG_fail;
27150 if (arg2 == NULL) {
27151 PyErr_SetString(PyExc_TypeError,"null reference");
27152 SWIG_fail;
27153 }
27154 {
27155 PyThreadState* __tstate = wxPyBeginAllowThreads();
27156 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27157
27158 wxPyEndAllowThreads(__tstate);
27159 if (PyErr_Occurred()) SWIG_fail;
27160 }
27161 Py_INCREF(Py_None); resultobj = Py_None;
27162 return resultobj;
27163 fail:
27164 return NULL;
27165 }
27166
27167
27168 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
27169 PyObject *resultobj;
27170 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27171 PyObject * obj0 = 0 ;
27172 char *kwnames[] = {
27173 (char *) "self", NULL
27174 };
27175
27176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27179 {
27180 PyThreadState* __tstate = wxPyBeginAllowThreads();
27181 (arg1)->Unselect();
27182
27183 wxPyEndAllowThreads(__tstate);
27184 if (PyErr_Occurred()) SWIG_fail;
27185 }
27186 Py_INCREF(Py_None); resultobj = Py_None;
27187 return resultobj;
27188 fail:
27189 return NULL;
27190 }
27191
27192
27193 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27194 PyObject *resultobj;
27195 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27196 wxTreeItemId *arg2 = 0 ;
27197 PyObject * obj0 = 0 ;
27198 PyObject * obj1 = 0 ;
27199 char *kwnames[] = {
27200 (char *) "self",(char *) "item", NULL
27201 };
27202
27203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27207 SWIG_POINTER_EXCEPTION | 0)) == -1)
27208 SWIG_fail;
27209 if (arg2 == NULL) {
27210 PyErr_SetString(PyExc_TypeError,"null reference");
27211 SWIG_fail;
27212 }
27213 {
27214 PyThreadState* __tstate = wxPyBeginAllowThreads();
27215 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27216
27217 wxPyEndAllowThreads(__tstate);
27218 if (PyErr_Occurred()) SWIG_fail;
27219 }
27220 Py_INCREF(Py_None); resultobj = Py_None;
27221 return resultobj;
27222 fail:
27223 return NULL;
27224 }
27225
27226
27227 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
27228 PyObject *resultobj;
27229 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27230 PyObject * obj0 = 0 ;
27231 char *kwnames[] = {
27232 (char *) "self", NULL
27233 };
27234
27235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27238 {
27239 PyThreadState* __tstate = wxPyBeginAllowThreads();
27240 (arg1)->UnselectAll();
27241
27242 wxPyEndAllowThreads(__tstate);
27243 if (PyErr_Occurred()) SWIG_fail;
27244 }
27245 Py_INCREF(Py_None); resultobj = Py_None;
27246 return resultobj;
27247 fail:
27248 return NULL;
27249 }
27250
27251
27252 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27253 PyObject *resultobj;
27254 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27255 wxTreeItemId *arg2 = 0 ;
27256 bool arg3 = (bool) True ;
27257 PyObject * obj0 = 0 ;
27258 PyObject * obj1 = 0 ;
27259 PyObject * obj2 = 0 ;
27260 char *kwnames[] = {
27261 (char *) "self",(char *) "item",(char *) "select", NULL
27262 };
27263
27264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27267 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27268 SWIG_POINTER_EXCEPTION | 0)) == -1)
27269 SWIG_fail;
27270 if (arg2 == NULL) {
27271 PyErr_SetString(PyExc_TypeError,"null reference");
27272 SWIG_fail;
27273 }
27274 if (obj2) {
27275 arg3 = (bool) SWIG_AsBool(obj2);
27276 if (PyErr_Occurred()) SWIG_fail;
27277 }
27278 {
27279 PyThreadState* __tstate = wxPyBeginAllowThreads();
27280 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27281
27282 wxPyEndAllowThreads(__tstate);
27283 if (PyErr_Occurred()) SWIG_fail;
27284 }
27285 Py_INCREF(Py_None); resultobj = Py_None;
27286 return resultobj;
27287 fail:
27288 return NULL;
27289 }
27290
27291
27292 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27293 PyObject *resultobj;
27294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27295 wxTreeItemId *arg2 = 0 ;
27296 PyObject * obj0 = 0 ;
27297 PyObject * obj1 = 0 ;
27298 char *kwnames[] = {
27299 (char *) "self",(char *) "item", NULL
27300 };
27301
27302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27305 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27306 SWIG_POINTER_EXCEPTION | 0)) == -1)
27307 SWIG_fail;
27308 if (arg2 == NULL) {
27309 PyErr_SetString(PyExc_TypeError,"null reference");
27310 SWIG_fail;
27311 }
27312 {
27313 PyThreadState* __tstate = wxPyBeginAllowThreads();
27314 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27315
27316 wxPyEndAllowThreads(__tstate);
27317 if (PyErr_Occurred()) SWIG_fail;
27318 }
27319 Py_INCREF(Py_None); resultobj = Py_None;
27320 return resultobj;
27321 fail:
27322 return NULL;
27323 }
27324
27325
27326 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
27327 PyObject *resultobj;
27328 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27329 wxTreeItemId *arg2 = 0 ;
27330 PyObject * obj0 = 0 ;
27331 PyObject * obj1 = 0 ;
27332 char *kwnames[] = {
27333 (char *) "self",(char *) "item", NULL
27334 };
27335
27336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27339 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27340 SWIG_POINTER_EXCEPTION | 0)) == -1)
27341 SWIG_fail;
27342 if (arg2 == NULL) {
27343 PyErr_SetString(PyExc_TypeError,"null reference");
27344 SWIG_fail;
27345 }
27346 {
27347 PyThreadState* __tstate = wxPyBeginAllowThreads();
27348 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27349
27350 wxPyEndAllowThreads(__tstate);
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 Py_INCREF(Py_None); resultobj = Py_None;
27354 return resultobj;
27355 fail:
27356 return NULL;
27357 }
27358
27359
27360 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
27361 PyObject *resultobj;
27362 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27363 wxTreeItemId *arg2 = 0 ;
27364 PyObject * obj0 = 0 ;
27365 PyObject * obj1 = 0 ;
27366 char *kwnames[] = {
27367 (char *) "self",(char *) "item", NULL
27368 };
27369
27370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27373 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27374 SWIG_POINTER_EXCEPTION | 0)) == -1)
27375 SWIG_fail;
27376 if (arg2 == NULL) {
27377 PyErr_SetString(PyExc_TypeError,"null reference");
27378 SWIG_fail;
27379 }
27380 {
27381 PyThreadState* __tstate = wxPyBeginAllowThreads();
27382 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27383
27384 wxPyEndAllowThreads(__tstate);
27385 if (PyErr_Occurred()) SWIG_fail;
27386 }
27387 Py_INCREF(Py_None); resultobj = Py_None;
27388 return resultobj;
27389 fail:
27390 return NULL;
27391 }
27392
27393
27394 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
27395 PyObject *resultobj;
27396 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27397 wxTreeItemId *arg2 = 0 ;
27398 PyObject * obj0 = 0 ;
27399 PyObject * obj1 = 0 ;
27400 char *kwnames[] = {
27401 (char *) "self",(char *) "item", NULL
27402 };
27403
27404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27408 SWIG_POINTER_EXCEPTION | 0)) == -1)
27409 SWIG_fail;
27410 if (arg2 == NULL) {
27411 PyErr_SetString(PyExc_TypeError,"null reference");
27412 SWIG_fail;
27413 }
27414 {
27415 PyThreadState* __tstate = wxPyBeginAllowThreads();
27416 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27417
27418 wxPyEndAllowThreads(__tstate);
27419 if (PyErr_Occurred()) SWIG_fail;
27420 }
27421 Py_INCREF(Py_None); resultobj = Py_None;
27422 return resultobj;
27423 fail:
27424 return NULL;
27425 }
27426
27427
27428 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27429 PyObject *resultobj;
27430 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27431 wxTextCtrl *result;
27432 PyObject * obj0 = 0 ;
27433 char *kwnames[] = {
27434 (char *) "self", NULL
27435 };
27436
27437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27440 {
27441 PyThreadState* __tstate = wxPyBeginAllowThreads();
27442 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27443
27444 wxPyEndAllowThreads(__tstate);
27445 if (PyErr_Occurred()) SWIG_fail;
27446 }
27447 {
27448 resultobj = wxPyMake_wxObject(result);
27449 }
27450 return resultobj;
27451 fail:
27452 return NULL;
27453 }
27454
27455
27456 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27457 PyObject *resultobj;
27458 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27459 wxTreeItemId *arg2 = 0 ;
27460 PyObject * obj0 = 0 ;
27461 PyObject * obj1 = 0 ;
27462 char *kwnames[] = {
27463 (char *) "self",(char *) "item", NULL
27464 };
27465
27466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
27467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27470 SWIG_POINTER_EXCEPTION | 0)) == -1)
27471 SWIG_fail;
27472 if (arg2 == NULL) {
27473 PyErr_SetString(PyExc_TypeError,"null reference");
27474 SWIG_fail;
27475 }
27476 {
27477 PyThreadState* __tstate = wxPyBeginAllowThreads();
27478 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
27479
27480 wxPyEndAllowThreads(__tstate);
27481 if (PyErr_Occurred()) SWIG_fail;
27482 }
27483 Py_INCREF(Py_None); resultobj = Py_None;
27484 return resultobj;
27485 fail:
27486 return NULL;
27487 }
27488
27489
27490 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
27491 PyObject *resultobj;
27492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27493 wxPoint *arg2 = 0 ;
27494 int *arg3 = 0 ;
27495 wxTreeItemId result;
27496 wxPoint temp2 ;
27497 int temp3 ;
27498 PyObject * obj0 = 0 ;
27499 PyObject * obj1 = 0 ;
27500 char *kwnames[] = {
27501 (char *) "self",(char *) "point", NULL
27502 };
27503
27504 arg3 = &temp3;
27505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
27506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27508 {
27509 arg2 = &temp2;
27510 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27511 }
27512 {
27513 PyThreadState* __tstate = wxPyBeginAllowThreads();
27514 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
27515
27516 wxPyEndAllowThreads(__tstate);
27517 if (PyErr_Occurred()) SWIG_fail;
27518 }
27519 {
27520 wxTreeItemId * resultptr;
27521 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27522 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27523 }
27524 {
27525 PyObject *o = PyInt_FromLong((long) (*arg3));
27526 resultobj = t_output_helper(resultobj,o);
27527 }
27528 return resultobj;
27529 fail:
27530 return NULL;
27531 }
27532
27533
27534 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
27535 PyObject *resultobj;
27536 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27537 wxTreeItemId *arg2 = 0 ;
27538 bool arg3 = (bool) False ;
27539 PyObject *result;
27540 PyObject * obj0 = 0 ;
27541 PyObject * obj1 = 0 ;
27542 PyObject * obj2 = 0 ;
27543 char *kwnames[] = {
27544 (char *) "self",(char *) "item",(char *) "textOnly", NULL
27545 };
27546
27547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
27548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27550 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27551 SWIG_POINTER_EXCEPTION | 0)) == -1)
27552 SWIG_fail;
27553 if (arg2 == NULL) {
27554 PyErr_SetString(PyExc_TypeError,"null reference");
27555 SWIG_fail;
27556 }
27557 if (obj2) {
27558 arg3 = (bool) SWIG_AsBool(obj2);
27559 if (PyErr_Occurred()) SWIG_fail;
27560 }
27561 {
27562 PyThreadState* __tstate = wxPyBeginAllowThreads();
27563 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
27564
27565 wxPyEndAllowThreads(__tstate);
27566 if (PyErr_Occurred()) SWIG_fail;
27567 }
27568 resultobj = result;
27569 return resultobj;
27570 fail:
27571 return NULL;
27572 }
27573
27574
27575 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
27576 PyObject *resultobj;
27577 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
27578 wxVisualAttributes result;
27579 PyObject * obj0 = 0 ;
27580 char *kwnames[] = {
27581 (char *) "variant", NULL
27582 };
27583
27584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
27585 if (obj0) {
27586 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
27587 if (PyErr_Occurred()) SWIG_fail;
27588 }
27589 {
27590 PyThreadState* __tstate = wxPyBeginAllowThreads();
27591 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
27592
27593 wxPyEndAllowThreads(__tstate);
27594 if (PyErr_Occurred()) SWIG_fail;
27595 }
27596 {
27597 wxVisualAttributes * resultptr;
27598 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
27599 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
27600 }
27601 return resultobj;
27602 fail:
27603 return NULL;
27604 }
27605
27606
27607 static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
27608 PyObject *obj;
27609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27610 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
27611 Py_INCREF(obj);
27612 return Py_BuildValue((char *)"");
27613 }
27614 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
27615 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
27616 return 1;
27617 }
27618
27619
27620 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
27621 PyObject *pyobj;
27622
27623 {
27624 #if wxUSE_UNICODE
27625 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27626 #else
27627 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27628 #endif
27629 }
27630 return pyobj;
27631 }
27632
27633
27634 static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27635 PyObject *resultobj;
27636 wxWindow *arg1 = (wxWindow *) 0 ;
27637 int arg2 = (int) (int)-1 ;
27638 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
27639 wxString *arg3 = (wxString *) &arg3_defvalue ;
27640 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27641 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27642 wxSize const &arg5_defvalue = wxDefaultSize ;
27643 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27644 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27645 wxString const &arg7_defvalue = wxPyEmptyString ;
27646 wxString *arg7 = (wxString *) &arg7_defvalue ;
27647 int arg8 = (int) 0 ;
27648 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
27649 wxString *arg9 = (wxString *) &arg9_defvalue ;
27650 wxGenericDirCtrl *result;
27651 bool temp3 = False ;
27652 wxPoint temp4 ;
27653 wxSize temp5 ;
27654 bool temp7 = False ;
27655 bool temp9 = False ;
27656 PyObject * obj0 = 0 ;
27657 PyObject * obj1 = 0 ;
27658 PyObject * obj2 = 0 ;
27659 PyObject * obj3 = 0 ;
27660 PyObject * obj4 = 0 ;
27661 PyObject * obj5 = 0 ;
27662 PyObject * obj6 = 0 ;
27663 PyObject * obj7 = 0 ;
27664 PyObject * obj8 = 0 ;
27665 char *kwnames[] = {
27666 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27667 };
27668
27669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
27670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27672 if (obj1) {
27673 arg2 = (int const) SWIG_AsInt(obj1);
27674 if (PyErr_Occurred()) SWIG_fail;
27675 }
27676 if (obj2) {
27677 {
27678 arg3 = wxString_in_helper(obj2);
27679 if (arg3 == NULL) SWIG_fail;
27680 temp3 = True;
27681 }
27682 }
27683 if (obj3) {
27684 {
27685 arg4 = &temp4;
27686 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27687 }
27688 }
27689 if (obj4) {
27690 {
27691 arg5 = &temp5;
27692 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27693 }
27694 }
27695 if (obj5) {
27696 arg6 = (long) SWIG_AsLong(obj5);
27697 if (PyErr_Occurred()) SWIG_fail;
27698 }
27699 if (obj6) {
27700 {
27701 arg7 = wxString_in_helper(obj6);
27702 if (arg7 == NULL) SWIG_fail;
27703 temp7 = True;
27704 }
27705 }
27706 if (obj7) {
27707 arg8 = (int) SWIG_AsInt(obj7);
27708 if (PyErr_Occurred()) SWIG_fail;
27709 }
27710 if (obj8) {
27711 {
27712 arg9 = wxString_in_helper(obj8);
27713 if (arg9 == NULL) SWIG_fail;
27714 temp9 = True;
27715 }
27716 }
27717 {
27718 PyThreadState* __tstate = wxPyBeginAllowThreads();
27719 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
27720
27721 wxPyEndAllowThreads(__tstate);
27722 if (PyErr_Occurred()) SWIG_fail;
27723 }
27724 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27725 {
27726 if (temp3)
27727 delete arg3;
27728 }
27729 {
27730 if (temp7)
27731 delete arg7;
27732 }
27733 {
27734 if (temp9)
27735 delete arg9;
27736 }
27737 return resultobj;
27738 fail:
27739 {
27740 if (temp3)
27741 delete arg3;
27742 }
27743 {
27744 if (temp7)
27745 delete arg7;
27746 }
27747 {
27748 if (temp9)
27749 delete arg9;
27750 }
27751 return NULL;
27752 }
27753
27754
27755 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27756 PyObject *resultobj;
27757 wxGenericDirCtrl *result;
27758 char *kwnames[] = {
27759 NULL
27760 };
27761
27762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
27763 {
27764 PyThreadState* __tstate = wxPyBeginAllowThreads();
27765 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
27766
27767 wxPyEndAllowThreads(__tstate);
27768 if (PyErr_Occurred()) SWIG_fail;
27769 }
27770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27771 return resultobj;
27772 fail:
27773 return NULL;
27774 }
27775
27776
27777 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
27778 PyObject *resultobj;
27779 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27780 wxWindow *arg2 = (wxWindow *) 0 ;
27781 int arg3 = (int) (int)-1 ;
27782 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
27783 wxString *arg4 = (wxString *) &arg4_defvalue ;
27784 wxPoint const &arg5_defvalue = wxDefaultPosition ;
27785 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
27786 wxSize const &arg6_defvalue = wxDefaultSize ;
27787 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
27788 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27789 wxString const &arg8_defvalue = wxPyEmptyString ;
27790 wxString *arg8 = (wxString *) &arg8_defvalue ;
27791 int arg9 = (int) 0 ;
27792 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
27793 wxString *arg10 = (wxString *) &arg10_defvalue ;
27794 bool result;
27795 bool temp4 = False ;
27796 wxPoint temp5 ;
27797 wxSize temp6 ;
27798 bool temp8 = False ;
27799 bool temp10 = False ;
27800 PyObject * obj0 = 0 ;
27801 PyObject * obj1 = 0 ;
27802 PyObject * obj2 = 0 ;
27803 PyObject * obj3 = 0 ;
27804 PyObject * obj4 = 0 ;
27805 PyObject * obj5 = 0 ;
27806 PyObject * obj6 = 0 ;
27807 PyObject * obj7 = 0 ;
27808 PyObject * obj8 = 0 ;
27809 PyObject * obj9 = 0 ;
27810 char *kwnames[] = {
27811 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27812 };
27813
27814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
27815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27817 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
27818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27819 if (obj2) {
27820 arg3 = (int const) SWIG_AsInt(obj2);
27821 if (PyErr_Occurred()) SWIG_fail;
27822 }
27823 if (obj3) {
27824 {
27825 arg4 = wxString_in_helper(obj3);
27826 if (arg4 == NULL) SWIG_fail;
27827 temp4 = True;
27828 }
27829 }
27830 if (obj4) {
27831 {
27832 arg5 = &temp5;
27833 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
27834 }
27835 }
27836 if (obj5) {
27837 {
27838 arg6 = &temp6;
27839 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
27840 }
27841 }
27842 if (obj6) {
27843 arg7 = (long) SWIG_AsLong(obj6);
27844 if (PyErr_Occurred()) SWIG_fail;
27845 }
27846 if (obj7) {
27847 {
27848 arg8 = wxString_in_helper(obj7);
27849 if (arg8 == NULL) SWIG_fail;
27850 temp8 = True;
27851 }
27852 }
27853 if (obj8) {
27854 arg9 = (int) SWIG_AsInt(obj8);
27855 if (PyErr_Occurred()) SWIG_fail;
27856 }
27857 if (obj9) {
27858 {
27859 arg10 = wxString_in_helper(obj9);
27860 if (arg10 == NULL) SWIG_fail;
27861 temp10 = True;
27862 }
27863 }
27864 {
27865 PyThreadState* __tstate = wxPyBeginAllowThreads();
27866 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
27867
27868 wxPyEndAllowThreads(__tstate);
27869 if (PyErr_Occurred()) SWIG_fail;
27870 }
27871 {
27872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27873 }
27874 {
27875 if (temp4)
27876 delete arg4;
27877 }
27878 {
27879 if (temp8)
27880 delete arg8;
27881 }
27882 {
27883 if (temp10)
27884 delete arg10;
27885 }
27886 return resultobj;
27887 fail:
27888 {
27889 if (temp4)
27890 delete arg4;
27891 }
27892 {
27893 if (temp8)
27894 delete arg8;
27895 }
27896 {
27897 if (temp10)
27898 delete arg10;
27899 }
27900 return NULL;
27901 }
27902
27903
27904 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27905 PyObject *resultobj;
27906 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27907 wxString *arg2 = 0 ;
27908 bool result;
27909 bool temp2 = False ;
27910 PyObject * obj0 = 0 ;
27911 PyObject * obj1 = 0 ;
27912 char *kwnames[] = {
27913 (char *) "self",(char *) "path", NULL
27914 };
27915
27916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
27917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27919 {
27920 arg2 = wxString_in_helper(obj1);
27921 if (arg2 == NULL) SWIG_fail;
27922 temp2 = True;
27923 }
27924 {
27925 PyThreadState* __tstate = wxPyBeginAllowThreads();
27926 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
27927
27928 wxPyEndAllowThreads(__tstate);
27929 if (PyErr_Occurred()) SWIG_fail;
27930 }
27931 {
27932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27933 }
27934 {
27935 if (temp2)
27936 delete arg2;
27937 }
27938 return resultobj;
27939 fail:
27940 {
27941 if (temp2)
27942 delete arg2;
27943 }
27944 return NULL;
27945 }
27946
27947
27948 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27949 PyObject *resultobj;
27950 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27951 wxString result;
27952 PyObject * obj0 = 0 ;
27953 char *kwnames[] = {
27954 (char *) "self", NULL
27955 };
27956
27957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
27958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27960 {
27961 PyThreadState* __tstate = wxPyBeginAllowThreads();
27962 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
27963
27964 wxPyEndAllowThreads(__tstate);
27965 if (PyErr_Occurred()) SWIG_fail;
27966 }
27967 {
27968 #if wxUSE_UNICODE
27969 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27970 #else
27971 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27972 #endif
27973 }
27974 return resultobj;
27975 fail:
27976 return NULL;
27977 }
27978
27979
27980 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27981 PyObject *resultobj;
27982 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27983 wxString *arg2 = 0 ;
27984 bool temp2 = False ;
27985 PyObject * obj0 = 0 ;
27986 PyObject * obj1 = 0 ;
27987 char *kwnames[] = {
27988 (char *) "self",(char *) "path", NULL
27989 };
27990
27991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
27992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27994 {
27995 arg2 = wxString_in_helper(obj1);
27996 if (arg2 == NULL) SWIG_fail;
27997 temp2 = True;
27998 }
27999 {
28000 PyThreadState* __tstate = wxPyBeginAllowThreads();
28001 (arg1)->SetDefaultPath((wxString const &)*arg2);
28002
28003 wxPyEndAllowThreads(__tstate);
28004 if (PyErr_Occurred()) SWIG_fail;
28005 }
28006 Py_INCREF(Py_None); resultobj = Py_None;
28007 {
28008 if (temp2)
28009 delete arg2;
28010 }
28011 return resultobj;
28012 fail:
28013 {
28014 if (temp2)
28015 delete arg2;
28016 }
28017 return NULL;
28018 }
28019
28020
28021 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28022 PyObject *resultobj;
28023 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28024 wxString result;
28025 PyObject * obj0 = 0 ;
28026 char *kwnames[] = {
28027 (char *) "self", NULL
28028 };
28029
28030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28033 {
28034 PyThreadState* __tstate = wxPyBeginAllowThreads();
28035 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28036
28037 wxPyEndAllowThreads(__tstate);
28038 if (PyErr_Occurred()) SWIG_fail;
28039 }
28040 {
28041 #if wxUSE_UNICODE
28042 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28043 #else
28044 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28045 #endif
28046 }
28047 return resultobj;
28048 fail:
28049 return NULL;
28050 }
28051
28052
28053 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
28054 PyObject *resultobj;
28055 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28056 wxString result;
28057 PyObject * obj0 = 0 ;
28058 char *kwnames[] = {
28059 (char *) "self", NULL
28060 };
28061
28062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28065 {
28066 PyThreadState* __tstate = wxPyBeginAllowThreads();
28067 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28068
28069 wxPyEndAllowThreads(__tstate);
28070 if (PyErr_Occurred()) SWIG_fail;
28071 }
28072 {
28073 #if wxUSE_UNICODE
28074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28075 #else
28076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28077 #endif
28078 }
28079 return resultobj;
28080 fail:
28081 return NULL;
28082 }
28083
28084
28085 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28086 PyObject *resultobj;
28087 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28088 wxString *arg2 = 0 ;
28089 bool temp2 = False ;
28090 PyObject * obj0 = 0 ;
28091 PyObject * obj1 = 0 ;
28092 char *kwnames[] = {
28093 (char *) "self",(char *) "path", NULL
28094 };
28095
28096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28099 {
28100 arg2 = wxString_in_helper(obj1);
28101 if (arg2 == NULL) SWIG_fail;
28102 temp2 = True;
28103 }
28104 {
28105 PyThreadState* __tstate = wxPyBeginAllowThreads();
28106 (arg1)->SetPath((wxString const &)*arg2);
28107
28108 wxPyEndAllowThreads(__tstate);
28109 if (PyErr_Occurred()) SWIG_fail;
28110 }
28111 Py_INCREF(Py_None); resultobj = Py_None;
28112 {
28113 if (temp2)
28114 delete arg2;
28115 }
28116 return resultobj;
28117 fail:
28118 {
28119 if (temp2)
28120 delete arg2;
28121 }
28122 return NULL;
28123 }
28124
28125
28126 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28127 PyObject *resultobj;
28128 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28129 bool arg2 ;
28130 PyObject * obj0 = 0 ;
28131 PyObject * obj1 = 0 ;
28132 char *kwnames[] = {
28133 (char *) "self",(char *) "show", NULL
28134 };
28135
28136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28139 arg2 = (bool) SWIG_AsBool(obj1);
28140 if (PyErr_Occurred()) SWIG_fail;
28141 {
28142 PyThreadState* __tstate = wxPyBeginAllowThreads();
28143 (arg1)->ShowHidden(arg2);
28144
28145 wxPyEndAllowThreads(__tstate);
28146 if (PyErr_Occurred()) SWIG_fail;
28147 }
28148 Py_INCREF(Py_None); resultobj = Py_None;
28149 return resultobj;
28150 fail:
28151 return NULL;
28152 }
28153
28154
28155 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28156 PyObject *resultobj;
28157 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28158 bool result;
28159 PyObject * obj0 = 0 ;
28160 char *kwnames[] = {
28161 (char *) "self", NULL
28162 };
28163
28164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28167 {
28168 PyThreadState* __tstate = wxPyBeginAllowThreads();
28169 result = (bool)(arg1)->GetShowHidden();
28170
28171 wxPyEndAllowThreads(__tstate);
28172 if (PyErr_Occurred()) SWIG_fail;
28173 }
28174 {
28175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28176 }
28177 return resultobj;
28178 fail:
28179 return NULL;
28180 }
28181
28182
28183 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28184 PyObject *resultobj;
28185 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28186 wxString result;
28187 PyObject * obj0 = 0 ;
28188 char *kwnames[] = {
28189 (char *) "self", NULL
28190 };
28191
28192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28195 {
28196 PyThreadState* __tstate = wxPyBeginAllowThreads();
28197 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28198
28199 wxPyEndAllowThreads(__tstate);
28200 if (PyErr_Occurred()) SWIG_fail;
28201 }
28202 {
28203 #if wxUSE_UNICODE
28204 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28205 #else
28206 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28207 #endif
28208 }
28209 return resultobj;
28210 fail:
28211 return NULL;
28212 }
28213
28214
28215 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28216 PyObject *resultobj;
28217 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28218 wxString *arg2 = 0 ;
28219 bool temp2 = False ;
28220 PyObject * obj0 = 0 ;
28221 PyObject * obj1 = 0 ;
28222 char *kwnames[] = {
28223 (char *) "self",(char *) "filter", NULL
28224 };
28225
28226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28229 {
28230 arg2 = wxString_in_helper(obj1);
28231 if (arg2 == NULL) SWIG_fail;
28232 temp2 = True;
28233 }
28234 {
28235 PyThreadState* __tstate = wxPyBeginAllowThreads();
28236 (arg1)->SetFilter((wxString const &)*arg2);
28237
28238 wxPyEndAllowThreads(__tstate);
28239 if (PyErr_Occurred()) SWIG_fail;
28240 }
28241 Py_INCREF(Py_None); resultobj = Py_None;
28242 {
28243 if (temp2)
28244 delete arg2;
28245 }
28246 return resultobj;
28247 fail:
28248 {
28249 if (temp2)
28250 delete arg2;
28251 }
28252 return NULL;
28253 }
28254
28255
28256 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28257 PyObject *resultobj;
28258 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28259 int result;
28260 PyObject * obj0 = 0 ;
28261 char *kwnames[] = {
28262 (char *) "self", NULL
28263 };
28264
28265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28268 {
28269 PyThreadState* __tstate = wxPyBeginAllowThreads();
28270 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28271
28272 wxPyEndAllowThreads(__tstate);
28273 if (PyErr_Occurred()) SWIG_fail;
28274 }
28275 resultobj = SWIG_FromInt((int)result);
28276 return resultobj;
28277 fail:
28278 return NULL;
28279 }
28280
28281
28282 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28283 PyObject *resultobj;
28284 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28285 int arg2 ;
28286 PyObject * obj0 = 0 ;
28287 PyObject * obj1 = 0 ;
28288 char *kwnames[] = {
28289 (char *) "self",(char *) "n", NULL
28290 };
28291
28292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28295 arg2 = (int) SWIG_AsInt(obj1);
28296 if (PyErr_Occurred()) SWIG_fail;
28297 {
28298 PyThreadState* __tstate = wxPyBeginAllowThreads();
28299 (arg1)->SetFilterIndex(arg2);
28300
28301 wxPyEndAllowThreads(__tstate);
28302 if (PyErr_Occurred()) SWIG_fail;
28303 }
28304 Py_INCREF(Py_None); resultobj = Py_None;
28305 return resultobj;
28306 fail:
28307 return NULL;
28308 }
28309
28310
28311 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
28312 PyObject *resultobj;
28313 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28314 wxTreeItemId result;
28315 PyObject * obj0 = 0 ;
28316 char *kwnames[] = {
28317 (char *) "self", NULL
28318 };
28319
28320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28323 {
28324 PyThreadState* __tstate = wxPyBeginAllowThreads();
28325 result = (arg1)->GetRootId();
28326
28327 wxPyEndAllowThreads(__tstate);
28328 if (PyErr_Occurred()) SWIG_fail;
28329 }
28330 {
28331 wxTreeItemId * resultptr;
28332 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28333 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28334 }
28335 return resultobj;
28336 fail:
28337 return NULL;
28338 }
28339
28340
28341 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28342 PyObject *resultobj;
28343 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28344 wxPyTreeCtrl *result;
28345 PyObject * obj0 = 0 ;
28346 char *kwnames[] = {
28347 (char *) "self", NULL
28348 };
28349
28350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
28351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28353 {
28354 PyThreadState* __tstate = wxPyBeginAllowThreads();
28355 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
28356
28357 wxPyEndAllowThreads(__tstate);
28358 if (PyErr_Occurred()) SWIG_fail;
28359 }
28360 {
28361 resultobj = wxPyMake_wxObject(result);
28362 }
28363 return resultobj;
28364 fail:
28365 return NULL;
28366 }
28367
28368
28369 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28370 PyObject *resultobj;
28371 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28372 wxDirFilterListCtrl *result;
28373 PyObject * obj0 = 0 ;
28374 char *kwnames[] = {
28375 (char *) "self", NULL
28376 };
28377
28378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
28379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28381 {
28382 PyThreadState* __tstate = wxPyBeginAllowThreads();
28383 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
28384
28385 wxPyEndAllowThreads(__tstate);
28386 if (PyErr_Occurred()) SWIG_fail;
28387 }
28388 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
28389 return resultobj;
28390 fail:
28391 return NULL;
28392 }
28393
28394
28395 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28396 PyObject *resultobj;
28397 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28398 wxTreeItemId arg2 ;
28399 wxString *arg3 = 0 ;
28400 bool *arg4 = 0 ;
28401 wxTreeItemId result;
28402 wxTreeItemId *argp2 ;
28403 bool temp3 = False ;
28404 bool temp4 ;
28405 PyObject * obj0 = 0 ;
28406 PyObject * obj1 = 0 ;
28407 PyObject * obj2 = 0 ;
28408 char *kwnames[] = {
28409 (char *) "self",(char *) "parentId",(char *) "path", NULL
28410 };
28411
28412 arg4 = &temp4;
28413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
28414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28416 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
28417 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
28418 arg2 = *argp2;
28419 {
28420 arg3 = wxString_in_helper(obj2);
28421 if (arg3 == NULL) SWIG_fail;
28422 temp3 = True;
28423 }
28424 {
28425 PyThreadState* __tstate = wxPyBeginAllowThreads();
28426 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
28427
28428 wxPyEndAllowThreads(__tstate);
28429 if (PyErr_Occurred()) SWIG_fail;
28430 }
28431 {
28432 wxTreeItemId * resultptr;
28433 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28434 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28435 }
28436 {
28437 PyObject *o = PyInt_FromLong((long) (*arg4));
28438 resultobj = t_output_helper(resultobj,o);
28439 }
28440 {
28441 if (temp3)
28442 delete arg3;
28443 }
28444 return resultobj;
28445 fail:
28446 {
28447 if (temp3)
28448 delete arg3;
28449 }
28450 return NULL;
28451 }
28452
28453
28454 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
28455 PyObject *resultobj;
28456 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28457 PyObject * obj0 = 0 ;
28458 char *kwnames[] = {
28459 (char *) "self", NULL
28460 };
28461
28462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
28463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28465 {
28466 PyThreadState* __tstate = wxPyBeginAllowThreads();
28467 (arg1)->DoResize();
28468
28469 wxPyEndAllowThreads(__tstate);
28470 if (PyErr_Occurred()) SWIG_fail;
28471 }
28472 Py_INCREF(Py_None); resultobj = Py_None;
28473 return resultobj;
28474 fail:
28475 return NULL;
28476 }
28477
28478
28479 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
28480 PyObject *resultobj;
28481 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28482 PyObject * obj0 = 0 ;
28483 char *kwnames[] = {
28484 (char *) "self", NULL
28485 };
28486
28487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
28488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28490 {
28491 PyThreadState* __tstate = wxPyBeginAllowThreads();
28492 (arg1)->ReCreateTree();
28493
28494 wxPyEndAllowThreads(__tstate);
28495 if (PyErr_Occurred()) SWIG_fail;
28496 }
28497 Py_INCREF(Py_None); resultobj = Py_None;
28498 return resultobj;
28499 fail:
28500 return NULL;
28501 }
28502
28503
28504 static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
28505 PyObject *obj;
28506 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28507 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
28508 Py_INCREF(obj);
28509 return Py_BuildValue((char *)"");
28510 }
28511 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28512 PyObject *resultobj;
28513 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28514 int arg2 = (int) (int)-1 ;
28515 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28516 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28517 wxSize const &arg4_defvalue = wxDefaultSize ;
28518 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28519 long arg5 = (long) 0 ;
28520 wxDirFilterListCtrl *result;
28521 wxPoint temp3 ;
28522 wxSize temp4 ;
28523 PyObject * obj0 = 0 ;
28524 PyObject * obj1 = 0 ;
28525 PyObject * obj2 = 0 ;
28526 PyObject * obj3 = 0 ;
28527 PyObject * obj4 = 0 ;
28528 char *kwnames[] = {
28529 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28530 };
28531
28532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28535 if (obj1) {
28536 arg2 = (int const) SWIG_AsInt(obj1);
28537 if (PyErr_Occurred()) SWIG_fail;
28538 }
28539 if (obj2) {
28540 {
28541 arg3 = &temp3;
28542 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28543 }
28544 }
28545 if (obj3) {
28546 {
28547 arg4 = &temp4;
28548 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28549 }
28550 }
28551 if (obj4) {
28552 arg5 = (long) SWIG_AsLong(obj4);
28553 if (PyErr_Occurred()) SWIG_fail;
28554 }
28555 {
28556 PyThreadState* __tstate = wxPyBeginAllowThreads();
28557 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28558
28559 wxPyEndAllowThreads(__tstate);
28560 if (PyErr_Occurred()) SWIG_fail;
28561 }
28562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28563 return resultobj;
28564 fail:
28565 return NULL;
28566 }
28567
28568
28569 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28570 PyObject *resultobj;
28571 wxDirFilterListCtrl *result;
28572 char *kwnames[] = {
28573 NULL
28574 };
28575
28576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
28577 {
28578 PyThreadState* __tstate = wxPyBeginAllowThreads();
28579 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
28580
28581 wxPyEndAllowThreads(__tstate);
28582 if (PyErr_Occurred()) SWIG_fail;
28583 }
28584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28585 return resultobj;
28586 fail:
28587 return NULL;
28588 }
28589
28590
28591 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
28592 PyObject *resultobj;
28593 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28594 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
28595 int arg3 = (int) (int)-1 ;
28596 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28597 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28598 wxSize const &arg5_defvalue = wxDefaultSize ;
28599 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28600 long arg6 = (long) 0 ;
28601 bool result;
28602 wxPoint temp4 ;
28603 wxSize temp5 ;
28604 PyObject * obj0 = 0 ;
28605 PyObject * obj1 = 0 ;
28606 PyObject * obj2 = 0 ;
28607 PyObject * obj3 = 0 ;
28608 PyObject * obj4 = 0 ;
28609 PyObject * obj5 = 0 ;
28610 char *kwnames[] = {
28611 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28612 };
28613
28614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28617 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
28618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28619 if (obj2) {
28620 arg3 = (int const) SWIG_AsInt(obj2);
28621 if (PyErr_Occurred()) SWIG_fail;
28622 }
28623 if (obj3) {
28624 {
28625 arg4 = &temp4;
28626 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28627 }
28628 }
28629 if (obj4) {
28630 {
28631 arg5 = &temp5;
28632 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28633 }
28634 }
28635 if (obj5) {
28636 arg6 = (long) SWIG_AsLong(obj5);
28637 if (PyErr_Occurred()) SWIG_fail;
28638 }
28639 {
28640 PyThreadState* __tstate = wxPyBeginAllowThreads();
28641 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
28642
28643 wxPyEndAllowThreads(__tstate);
28644 if (PyErr_Occurred()) SWIG_fail;
28645 }
28646 {
28647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28648 }
28649 return resultobj;
28650 fail:
28651 return NULL;
28652 }
28653
28654
28655 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
28656 PyObject *resultobj;
28657 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28658 wxString *arg2 = 0 ;
28659 int arg3 ;
28660 bool temp2 = False ;
28661 PyObject * obj0 = 0 ;
28662 PyObject * obj1 = 0 ;
28663 PyObject * obj2 = 0 ;
28664 char *kwnames[] = {
28665 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
28666 };
28667
28668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
28669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28671 {
28672 arg2 = wxString_in_helper(obj1);
28673 if (arg2 == NULL) SWIG_fail;
28674 temp2 = True;
28675 }
28676 arg3 = (int) SWIG_AsInt(obj2);
28677 if (PyErr_Occurred()) SWIG_fail;
28678 {
28679 PyThreadState* __tstate = wxPyBeginAllowThreads();
28680 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
28681
28682 wxPyEndAllowThreads(__tstate);
28683 if (PyErr_Occurred()) SWIG_fail;
28684 }
28685 Py_INCREF(Py_None); resultobj = Py_None;
28686 {
28687 if (temp2)
28688 delete arg2;
28689 }
28690 return resultobj;
28691 fail:
28692 {
28693 if (temp2)
28694 delete arg2;
28695 }
28696 return NULL;
28697 }
28698
28699
28700 static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
28701 PyObject *obj;
28702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28703 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
28704 Py_INCREF(obj);
28705 return Py_BuildValue((char *)"");
28706 }
28707 static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28708 PyObject *resultobj;
28709 wxWindow *arg1 = (wxWindow *) 0 ;
28710 int arg2 ;
28711 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28712 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28713 wxSize const &arg4_defvalue = wxDefaultSize ;
28714 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28715 long arg5 = (long) 0 ;
28716 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28717 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28718 wxString const &arg7_defvalue = wxPyControlNameStr ;
28719 wxString *arg7 = (wxString *) &arg7_defvalue ;
28720 wxPyControl *result;
28721 wxPoint temp3 ;
28722 wxSize temp4 ;
28723 bool temp7 = False ;
28724 PyObject * obj0 = 0 ;
28725 PyObject * obj1 = 0 ;
28726 PyObject * obj2 = 0 ;
28727 PyObject * obj3 = 0 ;
28728 PyObject * obj4 = 0 ;
28729 PyObject * obj5 = 0 ;
28730 PyObject * obj6 = 0 ;
28731 char *kwnames[] = {
28732 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28733 };
28734
28735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
28736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28738 arg2 = (int const) SWIG_AsInt(obj1);
28739 if (PyErr_Occurred()) SWIG_fail;
28740 if (obj2) {
28741 {
28742 arg3 = &temp3;
28743 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28744 }
28745 }
28746 if (obj3) {
28747 {
28748 arg4 = &temp4;
28749 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28750 }
28751 }
28752 if (obj4) {
28753 arg5 = (long) SWIG_AsLong(obj4);
28754 if (PyErr_Occurred()) SWIG_fail;
28755 }
28756 if (obj5) {
28757 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
28758 SWIG_POINTER_EXCEPTION | 0)) == -1)
28759 SWIG_fail;
28760 if (arg6 == NULL) {
28761 PyErr_SetString(PyExc_TypeError,"null reference");
28762 SWIG_fail;
28763 }
28764 }
28765 if (obj6) {
28766 {
28767 arg7 = wxString_in_helper(obj6);
28768 if (arg7 == NULL) SWIG_fail;
28769 temp7 = True;
28770 }
28771 }
28772 {
28773 PyThreadState* __tstate = wxPyBeginAllowThreads();
28774 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28775
28776 wxPyEndAllowThreads(__tstate);
28777 if (PyErr_Occurred()) SWIG_fail;
28778 }
28779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28780 {
28781 if (temp7)
28782 delete arg7;
28783 }
28784 return resultobj;
28785 fail:
28786 {
28787 if (temp7)
28788 delete arg7;
28789 }
28790 return NULL;
28791 }
28792
28793
28794 static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28795 PyObject *resultobj;
28796 wxPyControl *result;
28797 char *kwnames[] = {
28798 NULL
28799 };
28800
28801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
28802 {
28803 PyThreadState* __tstate = wxPyBeginAllowThreads();
28804 result = (wxPyControl *)new wxPyControl();
28805
28806 wxPyEndAllowThreads(__tstate);
28807 if (PyErr_Occurred()) SWIG_fail;
28808 }
28809 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28810 return resultobj;
28811 fail:
28812 return NULL;
28813 }
28814
28815
28816 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
28817 PyObject *resultobj;
28818 wxPyControl *arg1 = (wxPyControl *) 0 ;
28819 PyObject *arg2 = (PyObject *) 0 ;
28820 PyObject *arg3 = (PyObject *) 0 ;
28821 PyObject * obj0 = 0 ;
28822 PyObject * obj1 = 0 ;
28823 PyObject * obj2 = 0 ;
28824 char *kwnames[] = {
28825 (char *) "self",(char *) "self",(char *) "_class", NULL
28826 };
28827
28828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
28829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28831 arg2 = obj1;
28832 arg3 = obj2;
28833 {
28834 PyThreadState* __tstate = wxPyBeginAllowThreads();
28835 (arg1)->_setCallbackInfo(arg2,arg3);
28836
28837 wxPyEndAllowThreads(__tstate);
28838 if (PyErr_Occurred()) SWIG_fail;
28839 }
28840 Py_INCREF(Py_None); resultobj = Py_None;
28841 return resultobj;
28842 fail:
28843 return NULL;
28844 }
28845
28846
28847 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28848 PyObject *resultobj;
28849 wxPyControl *arg1 = (wxPyControl *) 0 ;
28850 int arg2 ;
28851 int arg3 ;
28852 int arg4 ;
28853 int arg5 ;
28854 PyObject * obj0 = 0 ;
28855 PyObject * obj1 = 0 ;
28856 PyObject * obj2 = 0 ;
28857 PyObject * obj3 = 0 ;
28858 PyObject * obj4 = 0 ;
28859 char *kwnames[] = {
28860 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28861 };
28862
28863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28866 arg2 = (int) SWIG_AsInt(obj1);
28867 if (PyErr_Occurred()) SWIG_fail;
28868 arg3 = (int) SWIG_AsInt(obj2);
28869 if (PyErr_Occurred()) SWIG_fail;
28870 arg4 = (int) SWIG_AsInt(obj3);
28871 if (PyErr_Occurred()) SWIG_fail;
28872 arg5 = (int) SWIG_AsInt(obj4);
28873 if (PyErr_Occurred()) SWIG_fail;
28874 {
28875 PyThreadState* __tstate = wxPyBeginAllowThreads();
28876 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
28877
28878 wxPyEndAllowThreads(__tstate);
28879 if (PyErr_Occurred()) SWIG_fail;
28880 }
28881 Py_INCREF(Py_None); resultobj = Py_None;
28882 return resultobj;
28883 fail:
28884 return NULL;
28885 }
28886
28887
28888 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28889 PyObject *resultobj;
28890 wxPyControl *arg1 = (wxPyControl *) 0 ;
28891 int arg2 ;
28892 int arg3 ;
28893 int arg4 ;
28894 int arg5 ;
28895 int arg6 = (int) wxSIZE_AUTO ;
28896 PyObject * obj0 = 0 ;
28897 PyObject * obj1 = 0 ;
28898 PyObject * obj2 = 0 ;
28899 PyObject * obj3 = 0 ;
28900 PyObject * obj4 = 0 ;
28901 PyObject * obj5 = 0 ;
28902 char *kwnames[] = {
28903 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
28904 };
28905
28906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28909 arg2 = (int) SWIG_AsInt(obj1);
28910 if (PyErr_Occurred()) SWIG_fail;
28911 arg3 = (int) SWIG_AsInt(obj2);
28912 if (PyErr_Occurred()) SWIG_fail;
28913 arg4 = (int) SWIG_AsInt(obj3);
28914 if (PyErr_Occurred()) SWIG_fail;
28915 arg5 = (int) SWIG_AsInt(obj4);
28916 if (PyErr_Occurred()) SWIG_fail;
28917 if (obj5) {
28918 arg6 = (int) SWIG_AsInt(obj5);
28919 if (PyErr_Occurred()) SWIG_fail;
28920 }
28921 {
28922 PyThreadState* __tstate = wxPyBeginAllowThreads();
28923 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
28924
28925 wxPyEndAllowThreads(__tstate);
28926 if (PyErr_Occurred()) SWIG_fail;
28927 }
28928 Py_INCREF(Py_None); resultobj = Py_None;
28929 return resultobj;
28930 fail:
28931 return NULL;
28932 }
28933
28934
28935 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28936 PyObject *resultobj;
28937 wxPyControl *arg1 = (wxPyControl *) 0 ;
28938 int arg2 ;
28939 int arg3 ;
28940 PyObject * obj0 = 0 ;
28941 PyObject * obj1 = 0 ;
28942 PyObject * obj2 = 0 ;
28943 char *kwnames[] = {
28944 (char *) "self",(char *) "width",(char *) "height", NULL
28945 };
28946
28947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
28948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28950 arg2 = (int) SWIG_AsInt(obj1);
28951 if (PyErr_Occurred()) SWIG_fail;
28952 arg3 = (int) SWIG_AsInt(obj2);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 {
28955 PyThreadState* __tstate = wxPyBeginAllowThreads();
28956 (arg1)->base_DoSetClientSize(arg2,arg3);
28957
28958 wxPyEndAllowThreads(__tstate);
28959 if (PyErr_Occurred()) SWIG_fail;
28960 }
28961 Py_INCREF(Py_None); resultobj = Py_None;
28962 return resultobj;
28963 fail:
28964 return NULL;
28965 }
28966
28967
28968 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28969 PyObject *resultobj;
28970 wxPyControl *arg1 = (wxPyControl *) 0 ;
28971 int arg2 ;
28972 int arg3 ;
28973 PyObject * obj0 = 0 ;
28974 PyObject * obj1 = 0 ;
28975 PyObject * obj2 = 0 ;
28976 char *kwnames[] = {
28977 (char *) "self",(char *) "x",(char *) "y", NULL
28978 };
28979
28980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
28981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28983 arg2 = (int) SWIG_AsInt(obj1);
28984 if (PyErr_Occurred()) SWIG_fail;
28985 arg3 = (int) SWIG_AsInt(obj2);
28986 if (PyErr_Occurred()) SWIG_fail;
28987 {
28988 PyThreadState* __tstate = wxPyBeginAllowThreads();
28989 (arg1)->base_DoSetVirtualSize(arg2,arg3);
28990
28991 wxPyEndAllowThreads(__tstate);
28992 if (PyErr_Occurred()) SWIG_fail;
28993 }
28994 Py_INCREF(Py_None); resultobj = Py_None;
28995 return resultobj;
28996 fail:
28997 return NULL;
28998 }
28999
29000
29001 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29002 PyObject *resultobj;
29003 wxPyControl *arg1 = (wxPyControl *) 0 ;
29004 int *arg2 = (int *) 0 ;
29005 int *arg3 = (int *) 0 ;
29006 int temp2 ;
29007 int temp3 ;
29008 PyObject * obj0 = 0 ;
29009 char *kwnames[] = {
29010 (char *) "self", NULL
29011 };
29012
29013 arg2 = &temp2;
29014 arg3 = &temp3;
29015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29018 {
29019 PyThreadState* __tstate = wxPyBeginAllowThreads();
29020 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29021
29022 wxPyEndAllowThreads(__tstate);
29023 if (PyErr_Occurred()) SWIG_fail;
29024 }
29025 Py_INCREF(Py_None); resultobj = Py_None;
29026 {
29027 PyObject *o = PyInt_FromLong((long) (*arg2));
29028 resultobj = t_output_helper(resultobj,o);
29029 }
29030 {
29031 PyObject *o = PyInt_FromLong((long) (*arg3));
29032 resultobj = t_output_helper(resultobj,o);
29033 }
29034 return resultobj;
29035 fail:
29036 return NULL;
29037 }
29038
29039
29040 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29041 PyObject *resultobj;
29042 wxPyControl *arg1 = (wxPyControl *) 0 ;
29043 int *arg2 = (int *) 0 ;
29044 int *arg3 = (int *) 0 ;
29045 int temp2 ;
29046 int temp3 ;
29047 PyObject * obj0 = 0 ;
29048 char *kwnames[] = {
29049 (char *) "self", NULL
29050 };
29051
29052 arg2 = &temp2;
29053 arg3 = &temp3;
29054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29057 {
29058 PyThreadState* __tstate = wxPyBeginAllowThreads();
29059 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29060
29061 wxPyEndAllowThreads(__tstate);
29062 if (PyErr_Occurred()) SWIG_fail;
29063 }
29064 Py_INCREF(Py_None); resultobj = Py_None;
29065 {
29066 PyObject *o = PyInt_FromLong((long) (*arg2));
29067 resultobj = t_output_helper(resultobj,o);
29068 }
29069 {
29070 PyObject *o = PyInt_FromLong((long) (*arg3));
29071 resultobj = t_output_helper(resultobj,o);
29072 }
29073 return resultobj;
29074 fail:
29075 return NULL;
29076 }
29077
29078
29079 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29080 PyObject *resultobj;
29081 wxPyControl *arg1 = (wxPyControl *) 0 ;
29082 int *arg2 = (int *) 0 ;
29083 int *arg3 = (int *) 0 ;
29084 int temp2 ;
29085 int temp3 ;
29086 PyObject * obj0 = 0 ;
29087 char *kwnames[] = {
29088 (char *) "self", NULL
29089 };
29090
29091 arg2 = &temp2;
29092 arg3 = &temp3;
29093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29096 {
29097 PyThreadState* __tstate = wxPyBeginAllowThreads();
29098 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29099
29100 wxPyEndAllowThreads(__tstate);
29101 if (PyErr_Occurred()) SWIG_fail;
29102 }
29103 Py_INCREF(Py_None); resultobj = Py_None;
29104 {
29105 PyObject *o = PyInt_FromLong((long) (*arg2));
29106 resultobj = t_output_helper(resultobj,o);
29107 }
29108 {
29109 PyObject *o = PyInt_FromLong((long) (*arg3));
29110 resultobj = t_output_helper(resultobj,o);
29111 }
29112 return resultobj;
29113 fail:
29114 return NULL;
29115 }
29116
29117
29118 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29119 PyObject *resultobj;
29120 wxPyControl *arg1 = (wxPyControl *) 0 ;
29121 wxSize result;
29122 PyObject * obj0 = 0 ;
29123 char *kwnames[] = {
29124 (char *) "self", NULL
29125 };
29126
29127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29130 {
29131 PyThreadState* __tstate = wxPyBeginAllowThreads();
29132 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29133
29134 wxPyEndAllowThreads(__tstate);
29135 if (PyErr_Occurred()) SWIG_fail;
29136 }
29137 {
29138 wxSize * resultptr;
29139 resultptr = new wxSize((wxSize &) result);
29140 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29141 }
29142 return resultobj;
29143 fail:
29144 return NULL;
29145 }
29146
29147
29148 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29149 PyObject *resultobj;
29150 wxPyControl *arg1 = (wxPyControl *) 0 ;
29151 wxSize result;
29152 PyObject * obj0 = 0 ;
29153 char *kwnames[] = {
29154 (char *) "self", NULL
29155 };
29156
29157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29160 {
29161 PyThreadState* __tstate = wxPyBeginAllowThreads();
29162 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29163
29164 wxPyEndAllowThreads(__tstate);
29165 if (PyErr_Occurred()) SWIG_fail;
29166 }
29167 {
29168 wxSize * resultptr;
29169 resultptr = new wxSize((wxSize &) result);
29170 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29171 }
29172 return resultobj;
29173 fail:
29174 return NULL;
29175 }
29176
29177
29178 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
29179 PyObject *resultobj;
29180 wxPyControl *arg1 = (wxPyControl *) 0 ;
29181 PyObject * obj0 = 0 ;
29182 char *kwnames[] = {
29183 (char *) "self", NULL
29184 };
29185
29186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29189 {
29190 PyThreadState* __tstate = wxPyBeginAllowThreads();
29191 (arg1)->base_InitDialog();
29192
29193 wxPyEndAllowThreads(__tstate);
29194 if (PyErr_Occurred()) SWIG_fail;
29195 }
29196 Py_INCREF(Py_None); resultobj = Py_None;
29197 return resultobj;
29198 fail:
29199 return NULL;
29200 }
29201
29202
29203 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29204 PyObject *resultobj;
29205 wxPyControl *arg1 = (wxPyControl *) 0 ;
29206 bool result;
29207 PyObject * obj0 = 0 ;
29208 char *kwnames[] = {
29209 (char *) "self", NULL
29210 };
29211
29212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29215 {
29216 PyThreadState* __tstate = wxPyBeginAllowThreads();
29217 result = (bool)(arg1)->base_TransferDataToWindow();
29218
29219 wxPyEndAllowThreads(__tstate);
29220 if (PyErr_Occurred()) SWIG_fail;
29221 }
29222 {
29223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29224 }
29225 return resultobj;
29226 fail:
29227 return NULL;
29228 }
29229
29230
29231 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29232 PyObject *resultobj;
29233 wxPyControl *arg1 = (wxPyControl *) 0 ;
29234 bool result;
29235 PyObject * obj0 = 0 ;
29236 char *kwnames[] = {
29237 (char *) "self", NULL
29238 };
29239
29240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29243 {
29244 PyThreadState* __tstate = wxPyBeginAllowThreads();
29245 result = (bool)(arg1)->base_TransferDataFromWindow();
29246
29247 wxPyEndAllowThreads(__tstate);
29248 if (PyErr_Occurred()) SWIG_fail;
29249 }
29250 {
29251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29252 }
29253 return resultobj;
29254 fail:
29255 return NULL;
29256 }
29257
29258
29259 static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
29260 PyObject *resultobj;
29261 wxPyControl *arg1 = (wxPyControl *) 0 ;
29262 bool result;
29263 PyObject * obj0 = 0 ;
29264 char *kwnames[] = {
29265 (char *) "self", NULL
29266 };
29267
29268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29271 {
29272 PyThreadState* __tstate = wxPyBeginAllowThreads();
29273 result = (bool)(arg1)->base_Validate();
29274
29275 wxPyEndAllowThreads(__tstate);
29276 if (PyErr_Occurred()) SWIG_fail;
29277 }
29278 {
29279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29280 }
29281 return resultobj;
29282 fail:
29283 return NULL;
29284 }
29285
29286
29287 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
29288 PyObject *resultobj;
29289 wxPyControl *arg1 = (wxPyControl *) 0 ;
29290 bool result;
29291 PyObject * obj0 = 0 ;
29292 char *kwnames[] = {
29293 (char *) "self", NULL
29294 };
29295
29296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29299 {
29300 PyThreadState* __tstate = wxPyBeginAllowThreads();
29301 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29302
29303 wxPyEndAllowThreads(__tstate);
29304 if (PyErr_Occurred()) SWIG_fail;
29305 }
29306 {
29307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29308 }
29309 return resultobj;
29310 fail:
29311 return NULL;
29312 }
29313
29314
29315 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
29316 PyObject *resultobj;
29317 wxPyControl *arg1 = (wxPyControl *) 0 ;
29318 bool result;
29319 PyObject * obj0 = 0 ;
29320 char *kwnames[] = {
29321 (char *) "self", NULL
29322 };
29323
29324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
29325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29327 {
29328 PyThreadState* __tstate = wxPyBeginAllowThreads();
29329 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
29330
29331 wxPyEndAllowThreads(__tstate);
29332 if (PyErr_Occurred()) SWIG_fail;
29333 }
29334 {
29335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29336 }
29337 return resultobj;
29338 fail:
29339 return NULL;
29340 }
29341
29342
29343 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29344 PyObject *resultobj;
29345 wxPyControl *arg1 = (wxPyControl *) 0 ;
29346 wxSize result;
29347 PyObject * obj0 = 0 ;
29348 char *kwnames[] = {
29349 (char *) "self", NULL
29350 };
29351
29352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
29353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29355 {
29356 PyThreadState* __tstate = wxPyBeginAllowThreads();
29357 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
29358
29359 wxPyEndAllowThreads(__tstate);
29360 if (PyErr_Occurred()) SWIG_fail;
29361 }
29362 {
29363 wxSize * resultptr;
29364 resultptr = new wxSize((wxSize &) result);
29365 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29366 }
29367 return resultobj;
29368 fail:
29369 return NULL;
29370 }
29371
29372
29373 static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29374 PyObject *resultobj;
29375 wxPyControl *arg1 = (wxPyControl *) 0 ;
29376 wxWindow *arg2 = (wxWindow *) 0 ;
29377 PyObject * obj0 = 0 ;
29378 PyObject * obj1 = 0 ;
29379 char *kwnames[] = {
29380 (char *) "self",(char *) "child", NULL
29381 };
29382
29383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
29384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29386 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29388 {
29389 PyThreadState* __tstate = wxPyBeginAllowThreads();
29390 (arg1)->base_AddChild(arg2);
29391
29392 wxPyEndAllowThreads(__tstate);
29393 if (PyErr_Occurred()) SWIG_fail;
29394 }
29395 Py_INCREF(Py_None); resultobj = Py_None;
29396 return resultobj;
29397 fail:
29398 return NULL;
29399 }
29400
29401
29402 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29403 PyObject *resultobj;
29404 wxPyControl *arg1 = (wxPyControl *) 0 ;
29405 wxWindow *arg2 = (wxWindow *) 0 ;
29406 PyObject * obj0 = 0 ;
29407 PyObject * obj1 = 0 ;
29408 char *kwnames[] = {
29409 (char *) "self",(char *) "child", NULL
29410 };
29411
29412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
29413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29415 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29417 {
29418 PyThreadState* __tstate = wxPyBeginAllowThreads();
29419 (arg1)->base_RemoveChild(arg2);
29420
29421 wxPyEndAllowThreads(__tstate);
29422 if (PyErr_Occurred()) SWIG_fail;
29423 }
29424 Py_INCREF(Py_None); resultobj = Py_None;
29425 return resultobj;
29426 fail:
29427 return NULL;
29428 }
29429
29430
29431 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
29432 PyObject *resultobj;
29433 wxPyControl *arg1 = (wxPyControl *) 0 ;
29434 bool result;
29435 PyObject * obj0 = 0 ;
29436 char *kwnames[] = {
29437 (char *) "self", NULL
29438 };
29439
29440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
29441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29443 {
29444 PyThreadState* __tstate = wxPyBeginAllowThreads();
29445 result = (bool)(arg1)->base_ShouldInheritColours();
29446
29447 wxPyEndAllowThreads(__tstate);
29448 if (PyErr_Occurred()) SWIG_fail;
29449 }
29450 {
29451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29452 }
29453 return resultobj;
29454 fail:
29455 return NULL;
29456 }
29457
29458
29459 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
29460 PyObject *resultobj;
29461 wxPyControl *arg1 = (wxPyControl *) 0 ;
29462 wxColour *arg2 = 0 ;
29463 wxColour temp2 ;
29464 PyObject * obj0 = 0 ;
29465 PyObject * obj1 = 0 ;
29466 char *kwnames[] = {
29467 (char *) "self",(char *) "c", NULL
29468 };
29469
29470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
29471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29473 {
29474 arg2 = &temp2;
29475 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29476 }
29477 {
29478 PyThreadState* __tstate = wxPyBeginAllowThreads();
29479 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
29480
29481 wxPyEndAllowThreads(__tstate);
29482 if (PyErr_Occurred()) SWIG_fail;
29483 }
29484 Py_INCREF(Py_None); resultobj = Py_None;
29485 return resultobj;
29486 fail:
29487 return NULL;
29488 }
29489
29490
29491 static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
29492 PyObject *obj;
29493 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29494 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
29495 Py_INCREF(obj);
29496 return Py_BuildValue((char *)"");
29497 }
29498 static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
29499 PyObject *resultobj;
29500 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29501 int arg2 = (int) 0 ;
29502 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29503 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29504 wxHelpEvent *result;
29505 wxPoint temp3 ;
29506 PyObject * obj0 = 0 ;
29507 PyObject * obj1 = 0 ;
29508 PyObject * obj2 = 0 ;
29509 char *kwnames[] = {
29510 (char *) "type",(char *) "winid",(char *) "pt", NULL
29511 };
29512
29513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
29514 if (obj0) {
29515 arg1 = (wxEventType) SWIG_AsInt(obj0);
29516 if (PyErr_Occurred()) SWIG_fail;
29517 }
29518 if (obj1) {
29519 arg2 = (int) SWIG_AsInt(obj1);
29520 if (PyErr_Occurred()) SWIG_fail;
29521 }
29522 if (obj2) {
29523 {
29524 arg3 = &temp3;
29525 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29526 }
29527 }
29528 {
29529 PyThreadState* __tstate = wxPyBeginAllowThreads();
29530 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
29531
29532 wxPyEndAllowThreads(__tstate);
29533 if (PyErr_Occurred()) SWIG_fail;
29534 }
29535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
29536 return resultobj;
29537 fail:
29538 return NULL;
29539 }
29540
29541
29542 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29543 PyObject *resultobj;
29544 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29545 wxPoint result;
29546 PyObject * obj0 = 0 ;
29547 char *kwnames[] = {
29548 (char *) "self", NULL
29549 };
29550
29551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
29552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29554 {
29555 PyThreadState* __tstate = wxPyBeginAllowThreads();
29556 result = ((wxHelpEvent const *)arg1)->GetPosition();
29557
29558 wxPyEndAllowThreads(__tstate);
29559 if (PyErr_Occurred()) SWIG_fail;
29560 }
29561 {
29562 wxPoint * resultptr;
29563 resultptr = new wxPoint((wxPoint &) result);
29564 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
29565 }
29566 return resultobj;
29567 fail:
29568 return NULL;
29569 }
29570
29571
29572 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29573 PyObject *resultobj;
29574 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29575 wxPoint *arg2 = 0 ;
29576 wxPoint temp2 ;
29577 PyObject * obj0 = 0 ;
29578 PyObject * obj1 = 0 ;
29579 char *kwnames[] = {
29580 (char *) "self",(char *) "pos", NULL
29581 };
29582
29583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
29584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29586 {
29587 arg2 = &temp2;
29588 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29589 }
29590 {
29591 PyThreadState* __tstate = wxPyBeginAllowThreads();
29592 (arg1)->SetPosition((wxPoint const &)*arg2);
29593
29594 wxPyEndAllowThreads(__tstate);
29595 if (PyErr_Occurred()) SWIG_fail;
29596 }
29597 Py_INCREF(Py_None); resultobj = Py_None;
29598 return resultobj;
29599 fail:
29600 return NULL;
29601 }
29602
29603
29604 static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29605 PyObject *resultobj;
29606 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29607 wxString *result;
29608 PyObject * obj0 = 0 ;
29609 char *kwnames[] = {
29610 (char *) "self", NULL
29611 };
29612
29613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
29614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29616 {
29617 PyThreadState* __tstate = wxPyBeginAllowThreads();
29618 {
29619 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
29620 result = (wxString *) &_result_ref;
29621 }
29622
29623 wxPyEndAllowThreads(__tstate);
29624 if (PyErr_Occurred()) SWIG_fail;
29625 }
29626 {
29627 #if wxUSE_UNICODE
29628 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29629 #else
29630 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29631 #endif
29632 }
29633 return resultobj;
29634 fail:
29635 return NULL;
29636 }
29637
29638
29639 static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29640 PyObject *resultobj;
29641 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29642 wxString *arg2 = 0 ;
29643 bool temp2 = False ;
29644 PyObject * obj0 = 0 ;
29645 PyObject * obj1 = 0 ;
29646 char *kwnames[] = {
29647 (char *) "self",(char *) "link", NULL
29648 };
29649
29650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
29651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29653 {
29654 arg2 = wxString_in_helper(obj1);
29655 if (arg2 == NULL) SWIG_fail;
29656 temp2 = True;
29657 }
29658 {
29659 PyThreadState* __tstate = wxPyBeginAllowThreads();
29660 (arg1)->SetLink((wxString const &)*arg2);
29661
29662 wxPyEndAllowThreads(__tstate);
29663 if (PyErr_Occurred()) SWIG_fail;
29664 }
29665 Py_INCREF(Py_None); resultobj = Py_None;
29666 {
29667 if (temp2)
29668 delete arg2;
29669 }
29670 return resultobj;
29671 fail:
29672 {
29673 if (temp2)
29674 delete arg2;
29675 }
29676 return NULL;
29677 }
29678
29679
29680 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29681 PyObject *resultobj;
29682 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29683 wxString *result;
29684 PyObject * obj0 = 0 ;
29685 char *kwnames[] = {
29686 (char *) "self", NULL
29687 };
29688
29689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
29690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29692 {
29693 PyThreadState* __tstate = wxPyBeginAllowThreads();
29694 {
29695 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
29696 result = (wxString *) &_result_ref;
29697 }
29698
29699 wxPyEndAllowThreads(__tstate);
29700 if (PyErr_Occurred()) SWIG_fail;
29701 }
29702 {
29703 #if wxUSE_UNICODE
29704 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29705 #else
29706 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29707 #endif
29708 }
29709 return resultobj;
29710 fail:
29711 return NULL;
29712 }
29713
29714
29715 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29716 PyObject *resultobj;
29717 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29718 wxString *arg2 = 0 ;
29719 bool temp2 = False ;
29720 PyObject * obj0 = 0 ;
29721 PyObject * obj1 = 0 ;
29722 char *kwnames[] = {
29723 (char *) "self",(char *) "target", NULL
29724 };
29725
29726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
29727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29729 {
29730 arg2 = wxString_in_helper(obj1);
29731 if (arg2 == NULL) SWIG_fail;
29732 temp2 = True;
29733 }
29734 {
29735 PyThreadState* __tstate = wxPyBeginAllowThreads();
29736 (arg1)->SetTarget((wxString const &)*arg2);
29737
29738 wxPyEndAllowThreads(__tstate);
29739 if (PyErr_Occurred()) SWIG_fail;
29740 }
29741 Py_INCREF(Py_None); resultobj = Py_None;
29742 {
29743 if (temp2)
29744 delete arg2;
29745 }
29746 return resultobj;
29747 fail:
29748 {
29749 if (temp2)
29750 delete arg2;
29751 }
29752 return NULL;
29753 }
29754
29755
29756 static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
29757 PyObject *obj;
29758 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29759 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
29760 Py_INCREF(obj);
29761 return Py_BuildValue((char *)"");
29762 }
29763 static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29764 PyObject *resultobj;
29765 wxWindow *arg1 = (wxWindow *) NULL ;
29766 bool arg2 = (bool) True ;
29767 wxContextHelp *result;
29768 PyObject * obj0 = 0 ;
29769 PyObject * obj1 = 0 ;
29770 char *kwnames[] = {
29771 (char *) "window",(char *) "doNow", NULL
29772 };
29773
29774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
29775 if (obj0) {
29776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29778 }
29779 if (obj1) {
29780 arg2 = (bool) SWIG_AsBool(obj1);
29781 if (PyErr_Occurred()) SWIG_fail;
29782 }
29783 {
29784 PyThreadState* __tstate = wxPyBeginAllowThreads();
29785 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
29786
29787 wxPyEndAllowThreads(__tstate);
29788 if (PyErr_Occurred()) SWIG_fail;
29789 }
29790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
29791 return resultobj;
29792 fail:
29793 return NULL;
29794 }
29795
29796
29797 static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29798 PyObject *resultobj;
29799 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29800 PyObject * obj0 = 0 ;
29801 char *kwnames[] = {
29802 (char *) "self", NULL
29803 };
29804
29805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
29806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29808 {
29809 PyThreadState* __tstate = wxPyBeginAllowThreads();
29810 delete arg1;
29811
29812 wxPyEndAllowThreads(__tstate);
29813 if (PyErr_Occurred()) SWIG_fail;
29814 }
29815 Py_INCREF(Py_None); resultobj = Py_None;
29816 return resultobj;
29817 fail:
29818 return NULL;
29819 }
29820
29821
29822 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29823 PyObject *resultobj;
29824 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29825 wxWindow *arg2 = (wxWindow *) NULL ;
29826 bool result;
29827 PyObject * obj0 = 0 ;
29828 PyObject * obj1 = 0 ;
29829 char *kwnames[] = {
29830 (char *) "self",(char *) "window", NULL
29831 };
29832
29833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
29834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29836 if (obj1) {
29837 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29839 }
29840 {
29841 PyThreadState* __tstate = wxPyBeginAllowThreads();
29842 result = (bool)(arg1)->BeginContextHelp(arg2);
29843
29844 wxPyEndAllowThreads(__tstate);
29845 if (PyErr_Occurred()) SWIG_fail;
29846 }
29847 {
29848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29849 }
29850 return resultobj;
29851 fail:
29852 return NULL;
29853 }
29854
29855
29856 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29857 PyObject *resultobj;
29858 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29859 bool result;
29860 PyObject * obj0 = 0 ;
29861 char *kwnames[] = {
29862 (char *) "self", NULL
29863 };
29864
29865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
29866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29868 {
29869 PyThreadState* __tstate = wxPyBeginAllowThreads();
29870 result = (bool)(arg1)->EndContextHelp();
29871
29872 wxPyEndAllowThreads(__tstate);
29873 if (PyErr_Occurred()) SWIG_fail;
29874 }
29875 {
29876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29877 }
29878 return resultobj;
29879 fail:
29880 return NULL;
29881 }
29882
29883
29884 static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
29885 PyObject *obj;
29886 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29887 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
29888 Py_INCREF(obj);
29889 return Py_BuildValue((char *)"");
29890 }
29891 static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
29892 PyObject *resultobj;
29893 wxWindow *arg1 = (wxWindow *) 0 ;
29894 int arg2 = (int) wxID_CONTEXT_HELP ;
29895 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29896 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29897 wxSize const &arg4_defvalue = wxDefaultSize ;
29898 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29899 long arg5 = (long) wxBU_AUTODRAW ;
29900 wxContextHelpButton *result;
29901 wxPoint temp3 ;
29902 wxSize temp4 ;
29903 PyObject * obj0 = 0 ;
29904 PyObject * obj1 = 0 ;
29905 PyObject * obj2 = 0 ;
29906 PyObject * obj3 = 0 ;
29907 PyObject * obj4 = 0 ;
29908 char *kwnames[] = {
29909 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29910 };
29911
29912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29915 if (obj1) {
29916 arg2 = (int) SWIG_AsInt(obj1);
29917 if (PyErr_Occurred()) SWIG_fail;
29918 }
29919 if (obj2) {
29920 {
29921 arg3 = &temp3;
29922 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29923 }
29924 }
29925 if (obj3) {
29926 {
29927 arg4 = &temp4;
29928 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29929 }
29930 }
29931 if (obj4) {
29932 arg5 = (long) SWIG_AsLong(obj4);
29933 if (PyErr_Occurred()) SWIG_fail;
29934 }
29935 {
29936 PyThreadState* __tstate = wxPyBeginAllowThreads();
29937 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
29938
29939 wxPyEndAllowThreads(__tstate);
29940 if (PyErr_Occurred()) SWIG_fail;
29941 }
29942 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
29943 return resultobj;
29944 fail:
29945 return NULL;
29946 }
29947
29948
29949 static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
29950 PyObject *obj;
29951 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29952 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
29953 Py_INCREF(obj);
29954 return Py_BuildValue((char *)"");
29955 }
29956 static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
29957 PyObject *resultobj;
29958 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29959 wxHelpProvider *result;
29960 PyObject * obj0 = 0 ;
29961 char *kwnames[] = {
29962 (char *) "helpProvider", NULL
29963 };
29964
29965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
29966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29968 {
29969 PyThreadState* __tstate = wxPyBeginAllowThreads();
29970 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
29971
29972 wxPyEndAllowThreads(__tstate);
29973 if (PyErr_Occurred()) SWIG_fail;
29974 }
29975 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
29976 return resultobj;
29977 fail:
29978 return NULL;
29979 }
29980
29981
29982 static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
29983 PyObject *resultobj;
29984 wxHelpProvider *result;
29985 char *kwnames[] = {
29986 NULL
29987 };
29988
29989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
29990 {
29991 PyThreadState* __tstate = wxPyBeginAllowThreads();
29992 result = (wxHelpProvider *)wxHelpProvider::Get();
29993
29994 wxPyEndAllowThreads(__tstate);
29995 if (PyErr_Occurred()) SWIG_fail;
29996 }
29997 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
29998 return resultobj;
29999 fail:
30000 return NULL;
30001 }
30002
30003
30004 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30005 PyObject *resultobj;
30006 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30007 wxWindow *arg2 = (wxWindow *) 0 ;
30008 wxString result;
30009 PyObject * obj0 = 0 ;
30010 PyObject * obj1 = 0 ;
30011 char *kwnames[] = {
30012 (char *) "self",(char *) "window", NULL
30013 };
30014
30015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30020 {
30021 PyThreadState* __tstate = wxPyBeginAllowThreads();
30022 result = (arg1)->GetHelp((wxWindow const *)arg2);
30023
30024 wxPyEndAllowThreads(__tstate);
30025 if (PyErr_Occurred()) SWIG_fail;
30026 }
30027 {
30028 #if wxUSE_UNICODE
30029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30030 #else
30031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30032 #endif
30033 }
30034 return resultobj;
30035 fail:
30036 return NULL;
30037 }
30038
30039
30040 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30041 PyObject *resultobj;
30042 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30043 wxWindow *arg2 = (wxWindow *) 0 ;
30044 bool result;
30045 PyObject * obj0 = 0 ;
30046 PyObject * obj1 = 0 ;
30047 char *kwnames[] = {
30048 (char *) "self",(char *) "window", NULL
30049 };
30050
30051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30054 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30056 {
30057 PyThreadState* __tstate = wxPyBeginAllowThreads();
30058 result = (bool)(arg1)->ShowHelp(arg2);
30059
30060 wxPyEndAllowThreads(__tstate);
30061 if (PyErr_Occurred()) SWIG_fail;
30062 }
30063 {
30064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30065 }
30066 return resultobj;
30067 fail:
30068 return NULL;
30069 }
30070
30071
30072 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30073 PyObject *resultobj;
30074 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30075 wxWindow *arg2 = (wxWindow *) 0 ;
30076 wxString *arg3 = 0 ;
30077 bool temp3 = False ;
30078 PyObject * obj0 = 0 ;
30079 PyObject * obj1 = 0 ;
30080 PyObject * obj2 = 0 ;
30081 char *kwnames[] = {
30082 (char *) "self",(char *) "window",(char *) "text", NULL
30083 };
30084
30085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30088 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30090 {
30091 arg3 = wxString_in_helper(obj2);
30092 if (arg3 == NULL) SWIG_fail;
30093 temp3 = True;
30094 }
30095 {
30096 PyThreadState* __tstate = wxPyBeginAllowThreads();
30097 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30098
30099 wxPyEndAllowThreads(__tstate);
30100 if (PyErr_Occurred()) SWIG_fail;
30101 }
30102 Py_INCREF(Py_None); resultobj = Py_None;
30103 {
30104 if (temp3)
30105 delete arg3;
30106 }
30107 return resultobj;
30108 fail:
30109 {
30110 if (temp3)
30111 delete arg3;
30112 }
30113 return NULL;
30114 }
30115
30116
30117 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
30118 PyObject *resultobj;
30119 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30120 int arg2 ;
30121 wxString *arg3 = 0 ;
30122 bool temp3 = False ;
30123 PyObject * obj0 = 0 ;
30124 PyObject * obj1 = 0 ;
30125 PyObject * obj2 = 0 ;
30126 char *kwnames[] = {
30127 (char *) "self",(char *) "id",(char *) "text", NULL
30128 };
30129
30130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30133 arg2 = (int) SWIG_AsInt(obj1);
30134 if (PyErr_Occurred()) SWIG_fail;
30135 {
30136 arg3 = wxString_in_helper(obj2);
30137 if (arg3 == NULL) SWIG_fail;
30138 temp3 = True;
30139 }
30140 {
30141 PyThreadState* __tstate = wxPyBeginAllowThreads();
30142 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30143
30144 wxPyEndAllowThreads(__tstate);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 Py_INCREF(Py_None); resultobj = Py_None;
30148 {
30149 if (temp3)
30150 delete arg3;
30151 }
30152 return resultobj;
30153 fail:
30154 {
30155 if (temp3)
30156 delete arg3;
30157 }
30158 return NULL;
30159 }
30160
30161
30162 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30163 PyObject *resultobj;
30164 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30165 wxWindow *arg2 = (wxWindow *) 0 ;
30166 PyObject * obj0 = 0 ;
30167 PyObject * obj1 = 0 ;
30168 char *kwnames[] = {
30169 (char *) "self",(char *) "window", NULL
30170 };
30171
30172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30175 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30177 {
30178 PyThreadState* __tstate = wxPyBeginAllowThreads();
30179 (arg1)->RemoveHelp(arg2);
30180
30181 wxPyEndAllowThreads(__tstate);
30182 if (PyErr_Occurred()) SWIG_fail;
30183 }
30184 Py_INCREF(Py_None); resultobj = Py_None;
30185 return resultobj;
30186 fail:
30187 return NULL;
30188 }
30189
30190
30191 static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
30192 PyObject *resultobj;
30193 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30194 PyObject * obj0 = 0 ;
30195 char *kwnames[] = {
30196 (char *) "self", NULL
30197 };
30198
30199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30202 {
30203 PyThreadState* __tstate = wxPyBeginAllowThreads();
30204 wxHelpProvider_Destroy(arg1);
30205
30206 wxPyEndAllowThreads(__tstate);
30207 if (PyErr_Occurred()) SWIG_fail;
30208 }
30209 Py_INCREF(Py_None); resultobj = Py_None;
30210 return resultobj;
30211 fail:
30212 return NULL;
30213 }
30214
30215
30216 static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
30217 PyObject *obj;
30218 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30219 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30220 Py_INCREF(obj);
30221 return Py_BuildValue((char *)"");
30222 }
30223 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
30224 PyObject *resultobj;
30225 wxSimpleHelpProvider *result;
30226 char *kwnames[] = {
30227 NULL
30228 };
30229
30230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30231 {
30232 PyThreadState* __tstate = wxPyBeginAllowThreads();
30233 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30234
30235 wxPyEndAllowThreads(__tstate);
30236 if (PyErr_Occurred()) SWIG_fail;
30237 }
30238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30239 return resultobj;
30240 fail:
30241 return NULL;
30242 }
30243
30244
30245 static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
30246 PyObject *obj;
30247 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30248 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30249 Py_INCREF(obj);
30250 return Py_BuildValue((char *)"");
30251 }
30252 static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30253 PyObject *resultobj;
30254 wxBitmap *arg1 = 0 ;
30255 wxCursor const &arg2_defvalue = wxNullCursor ;
30256 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30257 wxGenericDragImage *result;
30258 PyObject * obj0 = 0 ;
30259 PyObject * obj1 = 0 ;
30260 char *kwnames[] = {
30261 (char *) "image",(char *) "cursor", NULL
30262 };
30263
30264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30266 SWIG_POINTER_EXCEPTION | 0)) == -1)
30267 SWIG_fail;
30268 if (arg1 == NULL) {
30269 PyErr_SetString(PyExc_TypeError,"null reference");
30270 SWIG_fail;
30271 }
30272 if (obj1) {
30273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30274 SWIG_POINTER_EXCEPTION | 0)) == -1)
30275 SWIG_fail;
30276 if (arg2 == NULL) {
30277 PyErr_SetString(PyExc_TypeError,"null reference");
30278 SWIG_fail;
30279 }
30280 }
30281 {
30282 PyThreadState* __tstate = wxPyBeginAllowThreads();
30283 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30284
30285 wxPyEndAllowThreads(__tstate);
30286 if (PyErr_Occurred()) SWIG_fail;
30287 }
30288 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30289 return resultobj;
30290 fail:
30291 return NULL;
30292 }
30293
30294
30295 static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
30296 PyObject *resultobj;
30297 wxIcon *arg1 = 0 ;
30298 wxCursor const &arg2_defvalue = wxNullCursor ;
30299 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30300 wxGenericDragImage *result;
30301 PyObject * obj0 = 0 ;
30302 PyObject * obj1 = 0 ;
30303 char *kwnames[] = {
30304 (char *) "image",(char *) "cursor", NULL
30305 };
30306
30307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
30308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
30309 SWIG_POINTER_EXCEPTION | 0)) == -1)
30310 SWIG_fail;
30311 if (arg1 == NULL) {
30312 PyErr_SetString(PyExc_TypeError,"null reference");
30313 SWIG_fail;
30314 }
30315 if (obj1) {
30316 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30317 SWIG_POINTER_EXCEPTION | 0)) == -1)
30318 SWIG_fail;
30319 if (arg2 == NULL) {
30320 PyErr_SetString(PyExc_TypeError,"null reference");
30321 SWIG_fail;
30322 }
30323 }
30324 {
30325 PyThreadState* __tstate = wxPyBeginAllowThreads();
30326 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
30327
30328 wxPyEndAllowThreads(__tstate);
30329 if (PyErr_Occurred()) SWIG_fail;
30330 }
30331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30332 return resultobj;
30333 fail:
30334 return NULL;
30335 }
30336
30337
30338 static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
30339 PyObject *resultobj;
30340 wxString *arg1 = 0 ;
30341 wxCursor const &arg2_defvalue = wxNullCursor ;
30342 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30343 wxGenericDragImage *result;
30344 bool temp1 = False ;
30345 PyObject * obj0 = 0 ;
30346 PyObject * obj1 = 0 ;
30347 char *kwnames[] = {
30348 (char *) "str",(char *) "cursor", NULL
30349 };
30350
30351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
30352 {
30353 arg1 = wxString_in_helper(obj0);
30354 if (arg1 == NULL) SWIG_fail;
30355 temp1 = True;
30356 }
30357 if (obj1) {
30358 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30359 SWIG_POINTER_EXCEPTION | 0)) == -1)
30360 SWIG_fail;
30361 if (arg2 == NULL) {
30362 PyErr_SetString(PyExc_TypeError,"null reference");
30363 SWIG_fail;
30364 }
30365 }
30366 {
30367 PyThreadState* __tstate = wxPyBeginAllowThreads();
30368 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
30369
30370 wxPyEndAllowThreads(__tstate);
30371 if (PyErr_Occurred()) SWIG_fail;
30372 }
30373 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30374 {
30375 if (temp1)
30376 delete arg1;
30377 }
30378 return resultobj;
30379 fail:
30380 {
30381 if (temp1)
30382 delete arg1;
30383 }
30384 return NULL;
30385 }
30386
30387
30388 static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30389 PyObject *resultobj;
30390 wxPyTreeCtrl *arg1 = 0 ;
30391 wxTreeItemId *arg2 = 0 ;
30392 wxGenericDragImage *result;
30393 PyObject * obj0 = 0 ;
30394 PyObject * obj1 = 0 ;
30395 char *kwnames[] = {
30396 (char *) "treeCtrl",(char *) "id", NULL
30397 };
30398
30399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
30400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
30401 SWIG_POINTER_EXCEPTION | 0)) == -1)
30402 SWIG_fail;
30403 if (arg1 == NULL) {
30404 PyErr_SetString(PyExc_TypeError,"null reference");
30405 SWIG_fail;
30406 }
30407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
30408 SWIG_POINTER_EXCEPTION | 0)) == -1)
30409 SWIG_fail;
30410 if (arg2 == NULL) {
30411 PyErr_SetString(PyExc_TypeError,"null reference");
30412 SWIG_fail;
30413 }
30414 {
30415 PyThreadState* __tstate = wxPyBeginAllowThreads();
30416 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
30417
30418 wxPyEndAllowThreads(__tstate);
30419 if (PyErr_Occurred()) SWIG_fail;
30420 }
30421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30422 return resultobj;
30423 fail:
30424 return NULL;
30425 }
30426
30427
30428 static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30429 PyObject *resultobj;
30430 wxPyListCtrl *arg1 = 0 ;
30431 long arg2 ;
30432 wxGenericDragImage *result;
30433 PyObject * obj0 = 0 ;
30434 PyObject * obj1 = 0 ;
30435 char *kwnames[] = {
30436 (char *) "listCtrl",(char *) "id", NULL
30437 };
30438
30439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
30440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
30441 SWIG_POINTER_EXCEPTION | 0)) == -1)
30442 SWIG_fail;
30443 if (arg1 == NULL) {
30444 PyErr_SetString(PyExc_TypeError,"null reference");
30445 SWIG_fail;
30446 }
30447 arg2 = (long) SWIG_AsLong(obj1);
30448 if (PyErr_Occurred()) SWIG_fail;
30449 {
30450 PyThreadState* __tstate = wxPyBeginAllowThreads();
30451 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
30452
30453 wxPyEndAllowThreads(__tstate);
30454 if (PyErr_Occurred()) SWIG_fail;
30455 }
30456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30457 return resultobj;
30458 fail:
30459 return NULL;
30460 }
30461
30462
30463 static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30464 PyObject *resultobj;
30465 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30466 PyObject * obj0 = 0 ;
30467 char *kwnames[] = {
30468 (char *) "self", NULL
30469 };
30470
30471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
30472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30474 {
30475 PyThreadState* __tstate = wxPyBeginAllowThreads();
30476 delete arg1;
30477
30478 wxPyEndAllowThreads(__tstate);
30479 if (PyErr_Occurred()) SWIG_fail;
30480 }
30481 Py_INCREF(Py_None); resultobj = Py_None;
30482 return resultobj;
30483 fail:
30484 return NULL;
30485 }
30486
30487
30488 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
30489 PyObject *resultobj;
30490 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30491 wxBitmap *arg2 = (wxBitmap *) 0 ;
30492 PyObject * obj0 = 0 ;
30493 PyObject * obj1 = 0 ;
30494 char *kwnames[] = {
30495 (char *) "self",(char *) "bitmap", NULL
30496 };
30497
30498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
30499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30501 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
30502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30503 {
30504 PyThreadState* __tstate = wxPyBeginAllowThreads();
30505 (arg1)->SetBackingBitmap(arg2);
30506
30507 wxPyEndAllowThreads(__tstate);
30508 if (PyErr_Occurred()) SWIG_fail;
30509 }
30510 Py_INCREF(Py_None); resultobj = Py_None;
30511 return resultobj;
30512 fail:
30513 return NULL;
30514 }
30515
30516
30517 static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30518 PyObject *resultobj;
30519 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30520 wxPoint *arg2 = 0 ;
30521 wxWindow *arg3 = (wxWindow *) 0 ;
30522 bool arg4 = (bool) False ;
30523 wxRect *arg5 = (wxRect *) NULL ;
30524 bool result;
30525 wxPoint temp2 ;
30526 PyObject * obj0 = 0 ;
30527 PyObject * obj1 = 0 ;
30528 PyObject * obj2 = 0 ;
30529 PyObject * obj3 = 0 ;
30530 PyObject * obj4 = 0 ;
30531 char *kwnames[] = {
30532 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
30533 };
30534
30535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30538 {
30539 arg2 = &temp2;
30540 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30541 }
30542 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30544 if (obj3) {
30545 arg4 = (bool) SWIG_AsBool(obj3);
30546 if (PyErr_Occurred()) SWIG_fail;
30547 }
30548 if (obj4) {
30549 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
30550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30551 }
30552 {
30553 PyThreadState* __tstate = wxPyBeginAllowThreads();
30554 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
30555
30556 wxPyEndAllowThreads(__tstate);
30557 if (PyErr_Occurred()) SWIG_fail;
30558 }
30559 {
30560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30561 }
30562 return resultobj;
30563 fail:
30564 return NULL;
30565 }
30566
30567
30568 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
30569 PyObject *resultobj;
30570 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30571 wxPoint *arg2 = 0 ;
30572 wxWindow *arg3 = (wxWindow *) 0 ;
30573 wxWindow *arg4 = (wxWindow *) 0 ;
30574 bool result;
30575 wxPoint temp2 ;
30576 PyObject * obj0 = 0 ;
30577 PyObject * obj1 = 0 ;
30578 PyObject * obj2 = 0 ;
30579 PyObject * obj3 = 0 ;
30580 char *kwnames[] = {
30581 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
30582 };
30583
30584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30587 {
30588 arg2 = &temp2;
30589 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30590 }
30591 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30593 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
30594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30595 {
30596 PyThreadState* __tstate = wxPyBeginAllowThreads();
30597 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
30598
30599 wxPyEndAllowThreads(__tstate);
30600 if (PyErr_Occurred()) SWIG_fail;
30601 }
30602 {
30603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30604 }
30605 return resultobj;
30606 fail:
30607 return NULL;
30608 }
30609
30610
30611 static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30612 PyObject *resultobj;
30613 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30614 bool result;
30615 PyObject * obj0 = 0 ;
30616 char *kwnames[] = {
30617 (char *) "self", NULL
30618 };
30619
30620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
30621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30623 {
30624 PyThreadState* __tstate = wxPyBeginAllowThreads();
30625 result = (bool)(arg1)->EndDrag();
30626
30627 wxPyEndAllowThreads(__tstate);
30628 if (PyErr_Occurred()) SWIG_fail;
30629 }
30630 {
30631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30632 }
30633 return resultobj;
30634 fail:
30635 return NULL;
30636 }
30637
30638
30639 static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
30640 PyObject *resultobj;
30641 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30642 wxPoint *arg2 = 0 ;
30643 bool result;
30644 wxPoint temp2 ;
30645 PyObject * obj0 = 0 ;
30646 PyObject * obj1 = 0 ;
30647 char *kwnames[] = {
30648 (char *) "self",(char *) "pt", NULL
30649 };
30650
30651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
30652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30654 {
30655 arg2 = &temp2;
30656 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30657 }
30658 {
30659 PyThreadState* __tstate = wxPyBeginAllowThreads();
30660 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
30661
30662 wxPyEndAllowThreads(__tstate);
30663 if (PyErr_Occurred()) SWIG_fail;
30664 }
30665 {
30666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30667 }
30668 return resultobj;
30669 fail:
30670 return NULL;
30671 }
30672
30673
30674 static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
30675 PyObject *resultobj;
30676 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30677 bool result;
30678 PyObject * obj0 = 0 ;
30679 char *kwnames[] = {
30680 (char *) "self", NULL
30681 };
30682
30683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
30684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30686 {
30687 PyThreadState* __tstate = wxPyBeginAllowThreads();
30688 result = (bool)(arg1)->Show();
30689
30690 wxPyEndAllowThreads(__tstate);
30691 if (PyErr_Occurred()) SWIG_fail;
30692 }
30693 {
30694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30695 }
30696 return resultobj;
30697 fail:
30698 return NULL;
30699 }
30700
30701
30702 static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
30703 PyObject *resultobj;
30704 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30705 bool result;
30706 PyObject * obj0 = 0 ;
30707 char *kwnames[] = {
30708 (char *) "self", NULL
30709 };
30710
30711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
30712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30714 {
30715 PyThreadState* __tstate = wxPyBeginAllowThreads();
30716 result = (bool)(arg1)->Hide();
30717
30718 wxPyEndAllowThreads(__tstate);
30719 if (PyErr_Occurred()) SWIG_fail;
30720 }
30721 {
30722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30723 }
30724 return resultobj;
30725 fail:
30726 return NULL;
30727 }
30728
30729
30730 static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
30731 PyObject *resultobj;
30732 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30733 wxPoint *arg2 = 0 ;
30734 wxRect result;
30735 wxPoint temp2 ;
30736 PyObject * obj0 = 0 ;
30737 PyObject * obj1 = 0 ;
30738 char *kwnames[] = {
30739 (char *) "self",(char *) "pos", NULL
30740 };
30741
30742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
30743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30745 {
30746 arg2 = &temp2;
30747 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30748 }
30749 {
30750 PyThreadState* __tstate = wxPyBeginAllowThreads();
30751 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
30752
30753 wxPyEndAllowThreads(__tstate);
30754 if (PyErr_Occurred()) SWIG_fail;
30755 }
30756 {
30757 wxRect * resultptr;
30758 resultptr = new wxRect((wxRect &) result);
30759 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
30760 }
30761 return resultobj;
30762 fail:
30763 return NULL;
30764 }
30765
30766
30767 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30768 PyObject *resultobj;
30769 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30770 wxDC *arg2 = 0 ;
30771 wxPoint *arg3 = 0 ;
30772 bool result;
30773 wxPoint temp3 ;
30774 PyObject * obj0 = 0 ;
30775 PyObject * obj1 = 0 ;
30776 PyObject * obj2 = 0 ;
30777 char *kwnames[] = {
30778 (char *) "self",(char *) "dc",(char *) "pos", NULL
30779 };
30780
30781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
30782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30784 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
30785 SWIG_POINTER_EXCEPTION | 0)) == -1)
30786 SWIG_fail;
30787 if (arg2 == NULL) {
30788 PyErr_SetString(PyExc_TypeError,"null reference");
30789 SWIG_fail;
30790 }
30791 {
30792 arg3 = &temp3;
30793 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30794 }
30795 {
30796 PyThreadState* __tstate = wxPyBeginAllowThreads();
30797 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
30798
30799 wxPyEndAllowThreads(__tstate);
30800 if (PyErr_Occurred()) SWIG_fail;
30801 }
30802 {
30803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30804 }
30805 return resultobj;
30806 fail:
30807 return NULL;
30808 }
30809
30810
30811 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30812 PyObject *resultobj;
30813 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30814 wxDC *arg2 = 0 ;
30815 wxMemoryDC *arg3 = 0 ;
30816 wxRect *arg4 = 0 ;
30817 wxRect *arg5 = 0 ;
30818 bool result;
30819 wxRect temp4 ;
30820 wxRect temp5 ;
30821 PyObject * obj0 = 0 ;
30822 PyObject * obj1 = 0 ;
30823 PyObject * obj2 = 0 ;
30824 PyObject * obj3 = 0 ;
30825 PyObject * obj4 = 0 ;
30826 char *kwnames[] = {
30827 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
30828 };
30829
30830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30833 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
30834 SWIG_POINTER_EXCEPTION | 0)) == -1)
30835 SWIG_fail;
30836 if (arg2 == NULL) {
30837 PyErr_SetString(PyExc_TypeError,"null reference");
30838 SWIG_fail;
30839 }
30840 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
30841 SWIG_POINTER_EXCEPTION | 0)) == -1)
30842 SWIG_fail;
30843 if (arg3 == NULL) {
30844 PyErr_SetString(PyExc_TypeError,"null reference");
30845 SWIG_fail;
30846 }
30847 {
30848 arg4 = &temp4;
30849 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30850 }
30851 {
30852 arg5 = &temp5;
30853 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
30854 }
30855 {
30856 PyThreadState* __tstate = wxPyBeginAllowThreads();
30857 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
30858
30859 wxPyEndAllowThreads(__tstate);
30860 if (PyErr_Occurred()) SWIG_fail;
30861 }
30862 {
30863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30864 }
30865 return resultobj;
30866 fail:
30867 return NULL;
30868 }
30869
30870
30871 static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30872 PyObject *resultobj;
30873 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30874 wxPoint *arg2 = 0 ;
30875 wxPoint *arg3 = 0 ;
30876 bool arg4 ;
30877 bool arg5 ;
30878 bool result;
30879 wxPoint temp2 ;
30880 wxPoint temp3 ;
30881 PyObject * obj0 = 0 ;
30882 PyObject * obj1 = 0 ;
30883 PyObject * obj2 = 0 ;
30884 PyObject * obj3 = 0 ;
30885 PyObject * obj4 = 0 ;
30886 char *kwnames[] = {
30887 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
30888 };
30889
30890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30893 {
30894 arg2 = &temp2;
30895 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30896 }
30897 {
30898 arg3 = &temp3;
30899 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30900 }
30901 arg4 = (bool) SWIG_AsBool(obj3);
30902 if (PyErr_Occurred()) SWIG_fail;
30903 arg5 = (bool) SWIG_AsBool(obj4);
30904 if (PyErr_Occurred()) SWIG_fail;
30905 {
30906 PyThreadState* __tstate = wxPyBeginAllowThreads();
30907 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
30908
30909 wxPyEndAllowThreads(__tstate);
30910 if (PyErr_Occurred()) SWIG_fail;
30911 }
30912 {
30913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30914 }
30915 return resultobj;
30916 fail:
30917 return NULL;
30918 }
30919
30920
30921 static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
30922 PyObject *obj;
30923 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30924 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
30925 Py_INCREF(obj);
30926 return Py_BuildValue((char *)"");
30927 }
30928 static PyMethodDef SwigMethods[] = {
30929 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
30930 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
30931 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
30932 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
30933 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
30934 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
30935 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
30936 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
30937 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
30938 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
30939 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
30940 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
30941 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
30942 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
30943 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
30944 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
30945 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
30946 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
30947 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
30948 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
30949 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
30950 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
30951 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
30952 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
30953 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
30954 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
30955 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
30956 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
30957 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
30958 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
30959 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
30960 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
30961 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
30962 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
30963 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
30964 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
30965 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
30966 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
30967 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
30968 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
30969 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
30970 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
30971 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
30972 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
30973 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
30974 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
30975 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
30976 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
30977 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
30978 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
30979 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
30980 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
30981 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
30982 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
30983 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
30984 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
30985 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
30986 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS },
30987 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
30988 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
30989 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
30990 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
30991 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
30992 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
30993 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
30994 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
30995 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
30996 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
30997 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
30998 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
30999 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
31000 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31001 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31002 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
31003 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
31004 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31005 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
31006 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
31007 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
31008 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
31009 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31010 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
31011 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
31012 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
31013 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
31014 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
31015 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
31016 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31017 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
31018 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
31019 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
31020 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
31021 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31022 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
31023 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
31024 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
31025 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
31026 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31027 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
31028 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
31029 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31030 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
31031 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
31032 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
31033 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
31034 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
31035 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
31036 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
31037 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
31038 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31039 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
31040 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
31041 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
31042 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31043 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
31044 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
31045 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
31046 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31047 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
31048 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
31049 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
31050 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31051 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31052 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31053 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
31054 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
31055 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
31056 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
31057 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31058 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
31059 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
31060 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
31061 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
31062 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
31063 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
31064 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
31065 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31066 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31067 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31068 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
31069 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
31070 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31071 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
31072 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
31073 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31074 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31075 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31076 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
31077 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
31078 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
31079 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
31080 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
31081 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31082 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31083 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31084 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
31085 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
31086 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31087 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
31088 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
31089 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
31090 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
31091 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
31092 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
31093 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
31094 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31095 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31096 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31097 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
31098 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
31099 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
31100 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
31101 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
31102 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
31103 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
31104 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
31105 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31106 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31107 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
31108 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
31109 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
31110 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
31111 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
31112 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
31113 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
31114 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
31115 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
31116 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
31117 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
31118 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
31119 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
31120 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31121 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31122 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
31123 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
31124 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
31125 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31126 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
31127 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
31128 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
31129 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
31130 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
31131 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
31132 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
31133 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
31134 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
31135 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
31136 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31137 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31138 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31139 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31140 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31141 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
31142 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
31143 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
31144 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
31145 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31146 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
31147 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
31148 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
31149 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
31150 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
31151 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
31152 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
31153 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
31154 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
31155 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31156 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
31157 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31158 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
31159 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
31160 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31161 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
31162 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31163 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
31164 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
31165 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
31166 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
31167 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31168 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
31169 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
31170 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31171 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
31172 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
31173 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
31174 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
31175 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31176 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
31177 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
31178 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
31179 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31180 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31181 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31182 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
31183 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
31184 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
31185 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
31186 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31187 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31188 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
31189 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
31190 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31191 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31192 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
31193 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
31194 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
31195 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
31196 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31197 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
31198 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31199 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31200 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
31201 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
31202 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
31203 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
31204 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
31205 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
31206 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31207 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31208 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31209 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31210 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
31211 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
31212 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
31213 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
31214 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31215 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31216 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31217 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
31218 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
31219 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
31220 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
31221 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
31222 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
31223 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
31224 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
31225 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
31226 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
31227 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
31228 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
31229 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31230 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
31231 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31232 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
31233 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
31234 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
31235 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
31236 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
31237 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
31238 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
31239 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
31240 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
31241 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
31242 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31243 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
31244 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
31245 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
31246 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
31247 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31248 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31249 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
31250 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31251 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
31252 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
31253 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
31254 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31255 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
31256 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
31257 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31258 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31259 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31260 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
31261 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
31262 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31263 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31264 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
31265 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
31266 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
31267 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
31268 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
31269 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31270 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
31271 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31272 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
31273 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
31274 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
31275 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
31276 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
31277 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
31278 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
31279 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
31280 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
31281 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
31282 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31283 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
31284 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
31285 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
31286 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31287 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31288 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
31289 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
31290 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
31291 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
31292 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
31293 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
31294 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
31295 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
31296 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
31297 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
31298 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
31299 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31300 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31301 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
31302 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
31303 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
31304 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31305 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31306 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
31307 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
31308 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
31309 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
31310 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
31311 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
31312 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
31313 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
31314 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
31315 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
31316 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
31317 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
31318 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
31319 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31320 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31321 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31322 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
31323 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
31324 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
31325 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
31326 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
31327 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31328 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
31329 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
31330 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31331 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31332 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
31333 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
31334 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
31335 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
31336 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
31337 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
31338 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
31339 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
31340 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
31341 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
31342 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
31343 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
31344 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
31345 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
31346 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
31347 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
31348 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
31349 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
31350 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
31351 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
31352 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
31353 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
31354 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31355 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
31356 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
31357 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
31358 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
31359 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
31360 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31361 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31362 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31363 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31364 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
31365 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
31366 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
31367 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31368 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
31369 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
31370 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
31371 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31372 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
31373 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
31374 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
31375 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
31376 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31377 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31378 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
31379 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31380 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
31381 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
31382 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
31383 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
31384 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
31385 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
31386 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31387 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31388 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
31389 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
31390 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31391 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31392 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31393 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31394 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31395 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31396 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31397 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31398 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31399 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
31400 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
31401 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
31402 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
31403 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
31404 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
31405 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
31406 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
31407 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
31408 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
31409 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
31410 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
31411 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
31412 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
31413 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
31414 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
31415 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31416 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31417 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
31418 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
31419 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
31420 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
31421 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
31422 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
31423 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
31424 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
31425 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
31426 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
31427 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
31428 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
31429 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31430 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31431 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
31432 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
31433 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
31434 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
31435 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
31436 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
31437 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
31438 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
31439 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
31440 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
31441 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
31442 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
31443 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
31444 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
31445 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
31446 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
31447 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
31448 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
31449 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
31450 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
31451 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
31452 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
31453 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
31454 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
31455 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
31456 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
31457 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
31458 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
31459 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
31460 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
31461 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
31462 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
31463 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
31464 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
31465 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31466 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
31467 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
31468 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31469 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31470 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
31471 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
31472 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
31473 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
31474 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31475 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
31476 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
31477 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31478 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31479 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
31480 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
31481 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
31482 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31483 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31484 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
31485 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31486 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
31487 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
31488 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31489 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31490 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
31491 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
31492 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
31493 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
31494 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
31495 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
31496 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
31497 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31498 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31499 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31500 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31501 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31502 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
31503 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
31504 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
31505 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
31506 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31507 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31508 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31509 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
31510 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31511 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31512 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
31513 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
31514 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
31515 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31516 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31517 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31518 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31519 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS },
31520 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
31521 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
31522 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
31523 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
31524 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
31525 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31526 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
31527 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
31528 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
31529 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31530 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31531 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
31532 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
31533 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
31534 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31535 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31536 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
31537 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
31538 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
31539 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
31540 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
31541 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
31542 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
31543 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31544 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31545 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31546 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31547 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
31548 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
31549 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31550 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
31551 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
31552 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
31553 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
31554 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
31555 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
31556 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
31557 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
31558 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
31559 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
31560 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
31561 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
31562 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
31563 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31564 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31565 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
31566 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
31567 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
31568 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
31569 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
31570 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
31571 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
31572 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
31573 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
31574 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
31575 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
31576 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
31577 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
31578 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
31579 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31580 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
31581 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
31582 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
31583 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31584 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
31585 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31586 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31587 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31588 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31589 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
31590 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31591 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31592 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
31593 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
31594 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
31595 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31596 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31597 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31598 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
31599 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
31600 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
31601 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
31602 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
31603 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31604 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
31605 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31606 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
31607 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31608 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
31609 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31610 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
31611 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31612 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
31613 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31614 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31615 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
31616 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31617 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31618 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31619 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
31620 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31621 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
31622 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31623 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31624 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31625 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
31626 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31627 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
31628 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
31629 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
31630 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
31631 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
31632 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31633 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
31634 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
31635 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
31636 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
31637 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
31638 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
31639 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
31640 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
31641 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
31642 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
31643 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
31644 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
31645 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31646 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
31647 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
31648 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
31649 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
31650 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31651 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
31652 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
31653 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
31654 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
31655 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
31656 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
31657 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
31658 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
31659 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
31660 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31661 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
31662 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31663 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
31664 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
31665 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31666 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
31667 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31668 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
31669 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31670 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31671 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31672 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
31673 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31674 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31675 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
31676 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
31677 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
31678 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
31679 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
31680 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
31681 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
31682 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31683 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31684 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
31685 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31686 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31687 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
31688 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
31689 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
31690 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
31691 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31692 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31693 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31694 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
31695 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
31696 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
31697 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS },
31698 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31699 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
31700 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
31701 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
31702 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31703 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
31704 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
31705 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
31706 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31707 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
31708 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
31709 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
31710 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
31711 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
31712 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
31713 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
31714 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
31715 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
31716 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
31717 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
31718 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS },
31719 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
31720 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
31721 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31722 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31723 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
31724 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
31725 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
31726 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
31727 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
31728 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31729 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31730 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
31731 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
31732 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
31733 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
31734 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
31735 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
31736 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
31737 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
31738 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
31739 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
31740 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
31741 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS },
31742 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
31743 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
31744 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
31745 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
31746 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
31747 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
31748 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
31749 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
31750 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
31751 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
31752 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
31753 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
31754 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
31755 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
31756 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
31757 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
31758 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
31759 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
31760 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
31761 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
31762 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
31763 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
31764 { NULL, NULL }
31765 };
31766
31767
31768 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
31769
31770 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
31771 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31772 }
31773 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
31774 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
31775 }
31776 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
31777 return (void *)((wxSizer *) ((wxBoxSizer *) x));
31778 }
31779 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
31780 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
31781 }
31782 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
31783 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31784 }
31785 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
31786 return (void *)((wxSizer *) ((wxGridSizer *) x));
31787 }
31788 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
31789 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
31790 }
31791 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
31792 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
31793 }
31794 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
31795 return (void *)((wxSizer *) ((wxPySizer *) x));
31796 }
31797 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
31798 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
31799 }
31800 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
31801 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
31802 }
31803 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
31804 return (void *)((wxEvent *) ((wxMenuEvent *) x));
31805 }
31806 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
31807 return (void *)((wxEvent *) ((wxCloseEvent *) x));
31808 }
31809 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
31810 return (void *)((wxEvent *) ((wxMouseEvent *) x));
31811 }
31812 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
31813 return (void *)((wxEvent *) ((wxEraseEvent *) x));
31814 }
31815 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
31816 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
31817 }
31818 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
31819 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
31820 }
31821 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
31822 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
31823 }
31824 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
31825 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
31826 }
31827 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
31828 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
31829 }
31830 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
31831 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31832 }
31833 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
31834 return (void *)((wxEvent *) ((wxPyEvent *) x));
31835 }
31836 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
31837 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
31838 }
31839 static void *_p_wxListEventTo_p_wxEvent(void *x) {
31840 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
31841 }
31842 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
31843 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31844 }
31845 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
31846 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31847 }
31848 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
31849 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
31850 }
31851 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
31852 return (void *)((wxEvent *) ((wxIdleEvent *) x));
31853 }
31854 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
31855 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
31856 }
31857 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
31858 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
31859 }
31860 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
31861 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
31862 }
31863 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
31864 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
31865 }
31866 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
31867 return (void *)((wxEvent *) ((wxActivateEvent *) x));
31868 }
31869 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
31870 return (void *)((wxEvent *) ((wxSizeEvent *) x));
31871 }
31872 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
31873 return (void *)((wxEvent *) ((wxMoveEvent *) x));
31874 }
31875 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
31876 return (void *)((wxEvent *) ((wxPaintEvent *) x));
31877 }
31878 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
31879 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
31880 }
31881 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
31882 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
31883 }
31884 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
31885 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
31886 }
31887 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
31888 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
31889 }
31890 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
31891 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31892 }
31893 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
31894 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
31895 }
31896 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
31897 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
31898 }
31899 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
31900 return (void *)((wxEvent *) ((wxFocusEvent *) x));
31901 }
31902 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
31903 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
31904 }
31905 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
31906 return (void *)((wxEvent *) ((wxShowEvent *) x));
31907 }
31908 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
31909 return (void *)((wxEvent *) ((wxCommandEvent *) x));
31910 }
31911 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
31912 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
31913 }
31914 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
31915 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31916 }
31917 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
31918 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
31919 }
31920 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
31921 return (void *)((wxEvent *) ((wxKeyEvent *) x));
31922 }
31923 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
31924 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
31925 }
31926 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
31927 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
31928 }
31929 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
31930 return (void *)((wxItemContainer *) ((wxComboBox *) x));
31931 }
31932 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
31933 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31934 }
31935 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
31936 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
31937 }
31938 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
31939 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
31940 }
31941 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
31942 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
31943 }
31944 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
31945 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31946 }
31947 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
31948 return (void *)((wxPyListCtrl *) ((wxListView *) x));
31949 }
31950 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
31951 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31952 }
31953 static void *_p_wxListBoxTo_p_wxControl(void *x) {
31954 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
31955 }
31956 static void *_p_wxChoiceTo_p_wxControl(void *x) {
31957 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
31958 }
31959 static void *_p_wxToolBarTo_p_wxControl(void *x) {
31960 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
31961 }
31962 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
31963 return (void *)((wxControl *) ((wxStaticBitmap *) x));
31964 }
31965 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
31966 return (void *)((wxControl *) ((wxComboBox *) x));
31967 }
31968 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
31969 return (void *)((wxControl *) ((wxSpinCtrl *) x));
31970 }
31971 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
31972 return (void *)((wxControl *) ((wxStaticBox *) x));
31973 }
31974 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
31975 return (void *)((wxControl *) ((wxPyListCtrl *) x));
31976 }
31977 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
31978 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
31979 }
31980 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
31981 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31982 }
31983 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
31984 return (void *)((wxControl *) ((wxScrollBar *) x));
31985 }
31986 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
31987 return (void *)((wxControl *) ((wxBookCtrl *) x));
31988 }
31989 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
31990 return (void *)((wxControl *) ((wxRadioButton *) x));
31991 }
31992 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
31993 return (void *)((wxControl *) ((wxToggleButton *) x));
31994 }
31995 static void *_p_wxGaugeTo_p_wxControl(void *x) {
31996 return (void *)((wxControl *) ((wxGauge *) x));
31997 }
31998 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
31999 return (void *)((wxControl *) ((wxToolBarBase *) x));
32000 }
32001 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32002 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32003 }
32004 static void *_p_wxButtonTo_p_wxControl(void *x) {
32005 return (void *)((wxControl *) ((wxButton *) x));
32006 }
32007 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32008 return (void *)((wxControl *) ((wxSpinButton *) x));
32009 }
32010 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32011 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32012 }
32013 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32014 return (void *)((wxControl *) ((wxControlWithItems *) x));
32015 }
32016 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32017 return (void *)((wxControl *) ((wxRadioBox *) x));
32018 }
32019 static void *_p_wxNotebookTo_p_wxControl(void *x) {
32020 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32021 }
32022 static void *_p_wxListbookTo_p_wxControl(void *x) {
32023 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32024 }
32025 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32026 return (void *)((wxControl *) ((wxCheckBox *) x));
32027 }
32028 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32029 return (void *)((wxControl *) ((wxTextCtrl *) x));
32030 }
32031 static void *_p_wxListViewTo_p_wxControl(void *x) {
32032 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32033 }
32034 static void *_p_wxSliderTo_p_wxControl(void *x) {
32035 return (void *)((wxControl *) ((wxSlider *) x));
32036 }
32037 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32038 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32039 }
32040 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32041 return (void *)((wxControl *) ((wxPyControl *) x));
32042 }
32043 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32044 return (void *)((wxControl *) ((wxStaticLine *) x));
32045 }
32046 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32047 return (void *)((wxControl *) ((wxStaticText *) x));
32048 }
32049 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32050 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32051 }
32052 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32053 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32054 }
32055 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32056 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32057 }
32058 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32059 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32060 }
32061 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32062 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32063 }
32064 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32065 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32066 }
32067 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32068 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32069 }
32070 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32071 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32072 }
32073 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32074 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32075 }
32076 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32077 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32078 }
32079 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32080 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32081 }
32082 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32083 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32084 }
32085 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32086 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32087 }
32088 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32089 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32090 }
32091 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32092 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32093 }
32094 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32095 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32096 }
32097 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32098 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32099 }
32100 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32101 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32102 }
32103 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32104 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32105 }
32106 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32107 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32108 }
32109 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32110 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
32111 }
32112 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32113 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32114 }
32115 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32116 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32117 }
32118 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32119 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32120 }
32121 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32122 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32123 }
32124 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32125 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32126 }
32127 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32128 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32129 }
32130 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32131 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32132 }
32133 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32134 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32135 }
32136 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32137 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32138 }
32139 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32140 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32141 }
32142 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32143 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32144 }
32145 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32146 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32147 }
32148 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32149 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32150 }
32151 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32152 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32153 }
32154 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32155 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32156 }
32157 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32158 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32159 }
32160 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32161 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32162 }
32163 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32164 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32165 }
32166 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32167 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32168 }
32169 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32170 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32171 }
32172 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32173 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32174 }
32175 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32176 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32177 }
32178 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32179 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32180 }
32181 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32182 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32183 }
32184 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32185 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32186 }
32187 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32188 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32189 }
32190 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32191 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32192 }
32193 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32194 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32195 }
32196 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32197 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32198 }
32199 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32200 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32201 }
32202 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32203 return (void *)((wxButton *) ((wxBitmapButton *) x));
32204 }
32205 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32206 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32207 }
32208 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32209 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32210 }
32211 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32212 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32213 }
32214 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32215 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32216 }
32217 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32218 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32219 }
32220 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32221 return (void *)((wxObject *) ((wxSizerItem *) x));
32222 }
32223 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32224 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32225 }
32226 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32227 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32228 }
32229 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32230 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32231 }
32232 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32233 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32234 }
32235 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32236 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32237 }
32238 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32239 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32240 }
32241 static void *_p_wxSizerTo_p_wxObject(void *x) {
32242 return (void *)((wxObject *) ((wxSizer *) x));
32243 }
32244 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32245 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32246 }
32247 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32248 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32249 }
32250 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32251 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32252 }
32253 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32254 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32255 }
32256 static void *_p_wxEventTo_p_wxObject(void *x) {
32257 return (void *)((wxObject *) ((wxEvent *) x));
32258 }
32259 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32260 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32261 }
32262 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32263 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32264 }
32265 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32266 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32267 }
32268 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
32269 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32270 }
32271 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
32272 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32273 }
32274 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
32275 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32276 }
32277 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32278 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32279 }
32280 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32281 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32282 }
32283 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32284 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32285 }
32286 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32287 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32288 }
32289 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32290 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32291 }
32292 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32293 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32294 }
32295 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
32296 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
32297 }
32298 static void *_p_wxControlTo_p_wxObject(void *x) {
32299 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32300 }
32301 static void *_p_wxPyControlTo_p_wxObject(void *x) {
32302 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
32303 }
32304 static void *_p_wxGaugeTo_p_wxObject(void *x) {
32305 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
32306 }
32307 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
32308 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
32309 }
32310 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
32311 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
32312 }
32313 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
32314 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32315 }
32316 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32317 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32318 }
32319 static void *_p_wxChoiceTo_p_wxObject(void *x) {
32320 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32321 }
32322 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32323 return (void *)((wxObject *) ((wxFSFile *) x));
32324 }
32325 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32326 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32327 }
32328 static void *_p_wxListViewTo_p_wxObject(void *x) {
32329 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32330 }
32331 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
32332 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32333 }
32334 static void *_p_wxNotebookTo_p_wxObject(void *x) {
32335 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32336 }
32337 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32338 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32339 }
32340 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32341 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32342 }
32343 static void *_p_wxListbookTo_p_wxObject(void *x) {
32344 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32345 }
32346 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32347 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32348 }
32349 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
32350 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32351 }
32352 static void *_p_wxSliderTo_p_wxObject(void *x) {
32353 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
32354 }
32355 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32356 return (void *)((wxObject *) ((wxMenuItem *) x));
32357 }
32358 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32359 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32360 }
32361 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32362 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32363 }
32364 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32365 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32366 }
32367 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32368 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32369 }
32370 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32371 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32372 }
32373 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32374 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32375 }
32376 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32377 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32378 }
32379 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32380 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32381 }
32382 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
32383 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
32384 }
32385 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
32386 return (void *)((wxObject *) ((wxContextHelp *) x));
32387 }
32388 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32389 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32390 }
32391 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32392 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32393 }
32394 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32395 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32396 }
32397 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32398 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32399 }
32400 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32401 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32402 }
32403 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32404 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32405 }
32406 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32407 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32408 }
32409 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32410 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32411 }
32412 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32413 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32414 }
32415 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32416 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32417 }
32418 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32419 return (void *)((wxObject *) ((wxImageHandler *) x));
32420 }
32421 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32422 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32423 }
32424 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32425 return (void *)((wxObject *) ((wxEvtHandler *) x));
32426 }
32427 static void *_p_wxListEventTo_p_wxObject(void *x) {
32428 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32429 }
32430 static void *_p_wxListBoxTo_p_wxObject(void *x) {
32431 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32432 }
32433 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
32434 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32435 }
32436 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
32437 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32438 }
32439 static void *_p_wxButtonTo_p_wxObject(void *x) {
32440 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
32441 }
32442 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
32443 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32444 }
32445 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
32446 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
32447 }
32448 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
32449 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32450 }
32451 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32452 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32453 }
32454 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
32455 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
32456 }
32457 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
32458 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
32459 }
32460 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
32461 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
32462 }
32463 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
32464 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
32465 }
32466 static void *_p_wxListItemTo_p_wxObject(void *x) {
32467 return (void *)((wxObject *) ((wxListItem *) x));
32468 }
32469 static void *_p_wxImageTo_p_wxObject(void *x) {
32470 return (void *)((wxObject *) ((wxImage *) x));
32471 }
32472 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
32473 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
32474 }
32475 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32476 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32477 }
32478 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
32479 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32480 }
32481 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
32482 return (void *)((wxObject *) ((wxGenericDragImage *) x));
32483 }
32484 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
32485 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32486 }
32487 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
32488 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32489 }
32490 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
32491 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32492 }
32493 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32494 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32495 }
32496 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32497 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32498 }
32499 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32500 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32501 }
32502 static void *_p_wxWindowTo_p_wxObject(void *x) {
32503 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32504 }
32505 static void *_p_wxMenuTo_p_wxObject(void *x) {
32506 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32507 }
32508 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32509 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32510 }
32511 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32512 return (void *)((wxObject *) ((wxFileSystem *) x));
32513 }
32514 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32515 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32516 }
32517 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32518 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32519 }
32520 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32521 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32522 }
32523 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32524 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32525 }
32526 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32527 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32528 }
32529 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32530 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32531 }
32532 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
32533 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32534 }
32535 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32536 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32537 }
32538 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32539 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32540 }
32541 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
32542 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
32543 }
32544 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32545 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32546 }
32547 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32548 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32549 }
32550 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32551 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32552 }
32553 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32554 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32555 }
32556 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
32557 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
32558 }
32559 static void *_p_wxToolBarTo_p_wxObject(void *x) {
32560 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32561 }
32562 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32563 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32564 }
32565 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32566 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32567 }
32568 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
32569 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
32570 }
32571 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
32572 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
32573 }
32574 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32575 return (void *)((wxWindow *) ((wxMenuBar *) x));
32576 }
32577 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
32578 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32579 }
32580 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
32581 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
32582 }
32583 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
32584 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
32585 }
32586 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
32587 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
32588 }
32589 static void *_p_wxControlTo_p_wxWindow(void *x) {
32590 return (void *)((wxWindow *) ((wxControl *) x));
32591 }
32592 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
32593 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
32594 }
32595 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
32596 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32597 }
32598 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
32599 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
32600 }
32601 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
32602 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
32603 }
32604 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
32605 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
32606 }
32607 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
32608 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
32609 }
32610 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32611 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32612 }
32613 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
32614 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
32615 }
32616 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
32617 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
32618 }
32619 static void *_p_wxListbookTo_p_wxWindow(void *x) {
32620 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32621 }
32622 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
32623 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
32624 }
32625 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
32626 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
32627 }
32628 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
32629 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
32630 }
32631 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
32632 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32633 }
32634 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
32635 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32636 }
32637 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
32638 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32639 }
32640 static void *_p_wxListViewTo_p_wxWindow(void *x) {
32641 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32642 }
32643 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
32644 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32645 }
32646 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
32647 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
32648 }
32649 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
32650 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
32651 }
32652 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
32653 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
32654 }
32655 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
32656 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
32657 }
32658 static void *_p_wxSliderTo_p_wxWindow(void *x) {
32659 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
32660 }
32661 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
32662 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
32663 }
32664 static void *_p_wxButtonTo_p_wxWindow(void *x) {
32665 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
32666 }
32667 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
32668 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
32669 }
32670 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
32671 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32672 }
32673 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
32674 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
32675 }
32676 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
32677 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32678 }
32679 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
32680 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32681 }
32682 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
32683 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
32684 }
32685 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
32686 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
32687 }
32688 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
32689 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
32690 }
32691 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
32692 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
32693 }
32694 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
32695 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
32696 }
32697 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
32698 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32699 }
32700 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
32701 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32702 }
32703 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
32704 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
32705 }
32706 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
32707 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
32708 }
32709 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
32710 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
32711 }
32712 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
32713 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
32714 }
32715 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
32716 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
32717 }
32718 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
32719 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
32720 }
32721 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
32722 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
32723 }
32724 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
32725 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
32726 }
32727 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
32728 return (void *)((wxControlWithItems *) ((wxChoice *) x));
32729 }
32730 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
32731 return (void *)((wxControlWithItems *) ((wxListBox *) x));
32732 }
32733 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
32734 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
32735 }
32736 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
32737 return (void *)((wxValidator *) ((wxPyValidator *) x));
32738 }
32739 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}};
32740 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}};
32741 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}};
32742 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}};
32743 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}};
32744 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}};
32745 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}};
32746 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}};
32747 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}};
32748 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}};
32749 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}};
32750 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}};
32751 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}};
32752 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}};
32753 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}};
32754 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}};
32755 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}};
32756 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}};
32757 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}};
32758 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}};
32759 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}};
32760 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}};
32761 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}};
32762 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}};
32763 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}};
32764 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}};
32765 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}};
32766 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}};
32767 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}};
32768 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}};
32769 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}};
32770 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}};
32771 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}};
32772 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}};
32773 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}};
32774 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}};
32775 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}};
32776 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}};
32777 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}};
32778 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}};
32779 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}};
32780 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}};
32781 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}};
32782 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}};
32783 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}};
32784 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}};
32785 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}};
32786 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}};
32787 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}};
32788 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}};
32789 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}};
32790 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}};
32791 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}};
32792 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}};
32793 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}};
32794 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}};
32795 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}};
32796 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}};
32797 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}};
32798 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}};
32799 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}};
32800 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}};
32801 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}};
32802 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}};
32803 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}};
32804 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}};
32805 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}};
32806 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}};
32807 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}};
32808 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}};
32809 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}};
32810 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}};
32811 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}};
32812 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}};
32813 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}};
32814 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}};
32815 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}};
32816 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}};
32817 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}};
32818 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}};
32819 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}};
32820 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}};
32821 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}};
32822 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}};
32823 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}};
32824
32825 static swig_type_info *swig_types_initial[] = {
32826 _swigt__p_wxTextUrlEvent,
32827 _swigt__p_wxBookCtrlEvent,
32828 _swigt__p_wxSizer,
32829 _swigt__p_wxCheckBox,
32830 _swigt__p_wxPyTreeCtrl,
32831 _swigt__p_wxEvent,
32832 _swigt__p_wxGenericDirCtrl,
32833 _swigt__p_bool,
32834 _swigt__p_wxPyTreeItemData,
32835 _swigt__p_wxItemContainer,
32836 _swigt__p_wxPyListCtrl,
32837 _swigt__p_wxDirFilterListCtrl,
32838 _swigt__p_wxStaticLine,
32839 _swigt__p_wxControl,
32840 _swigt__p_wxPyControl,
32841 _swigt__p_wxGauge,
32842 _swigt__p_wxToolBarBase,
32843 _swigt__p_wxFont,
32844 _swigt__p_wxToggleButton,
32845 _swigt__p_wxRadioButton,
32846 _swigt__p_wxChoice,
32847 _swigt__p_wxMemoryDC,
32848 _swigt__p_wxListItemAttr,
32849 _swigt__p_void,
32850 _swigt__p_int,
32851 _swigt__p_wxSize,
32852 _swigt__p_wxDC,
32853 _swigt__p_wxListView,
32854 _swigt__p_wxIcon,
32855 _swigt__p_wxVisualAttributes,
32856 _swigt__p_wxTextCtrl,
32857 _swigt__p_wxNotebook,
32858 _swigt__p_wxNotifyEvent,
32859 _swigt__p_wxArrayString,
32860 _swigt__p_wxListbook,
32861 _swigt__p_wxStaticBitmap,
32862 _swigt__p_wxSlider,
32863 _swigt__p_wxStaticBox,
32864 _swigt__p_wxArrayInt,
32865 _swigt__p_wxContextHelp,
32866 _swigt__p_long,
32867 _swigt__p_wxEvtHandler,
32868 _swigt__p_wxListEvent,
32869 _swigt__p_wxCheckListBox,
32870 _swigt__p_wxListBox,
32871 _swigt__p_wxBookCtrl,
32872 _swigt__p_wxSpinButton,
32873 _swigt__p_wxButton,
32874 _swigt__p_wxBitmapButton,
32875 _swigt__p_wxRect,
32876 _swigt__p_wxContextHelpButton,
32877 _swigt__p_wxRadioBox,
32878 _swigt__p_wxScrollBar,
32879 _swigt__p_char,
32880 _swigt__p_wxTreeItemId,
32881 _swigt__p_wxComboBox,
32882 _swigt__p_wxHelpEvent,
32883 _swigt__p_wxListItem,
32884 _swigt__p_wxNotebookSizer,
32885 _swigt__p_wxSpinEvent,
32886 _swigt__p_wxGenericDragImage,
32887 _swigt__p_wxSpinCtrl,
32888 _swigt__p_wxImageList,
32889 _swigt__p_wxHelpProvider,
32890 _swigt__p_wxTextAttr,
32891 _swigt__p_wxSimpleHelpProvider,
32892 _swigt__p_wxPoint,
32893 _swigt__p_wxListbookEvent,
32894 _swigt__p_wxNotebookEvent,
32895 _swigt__p_wxObject,
32896 _swigt__p_wxCursor,
32897 _swigt__p_wxKeyEvent,
32898 _swigt__p_wxWindow,
32899 _swigt__p_wxString,
32900 _swigt__p_wxBitmap,
32901 _swigt__p_wxTreeEvent,
32902 _swigt__p_wxMouseEvent,
32903 _swigt__p_wxCommandEvent,
32904 _swigt__p_wxStaticText,
32905 _swigt__p_wxControlWithItems,
32906 _swigt__p_wxToolBarToolBase,
32907 _swigt__p_wxColour,
32908 _swigt__p_wxToolBar,
32909 _swigt__p_wxBookCtrlSizer,
32910 _swigt__p_wxValidator,
32911 0
32912 };
32913
32914
32915 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
32916
32917 static swig_const_info swig_const_table[] = {
32918 {0}};
32919
32920 #ifdef __cplusplus
32921 }
32922 #endif
32923
32924 #ifdef __cplusplus
32925 extern "C"
32926 #endif
32927 SWIGEXPORT(void) SWIG_init(void) {
32928 static PyObject *SWIG_globals = 0;
32929 static int typeinit = 0;
32930 PyObject *m, *d;
32931 int i;
32932 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
32933 m = Py_InitModule((char *) SWIG_name, SwigMethods);
32934 d = PyModule_GetDict(m);
32935
32936 if (!typeinit) {
32937 for (i = 0; swig_types_initial[i]; i++) {
32938 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
32939 }
32940 typeinit = 1;
32941 }
32942 SWIG_InstallConstants(d,swig_const_table);
32943
32944 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
32945 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
32946 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
32947 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
32948 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
32949 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
32950 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
32951 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
32952 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
32953 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
32954 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
32955 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
32956 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
32957 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
32958 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
32959 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
32960 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
32961 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
32962 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
32963 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
32964 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
32965 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
32966 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
32967 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
32968 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
32969 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
32970 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
32971 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
32972 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
32973 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
32974 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
32975 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
32976 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
32977 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
32978 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
32979 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
32980 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
32981 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
32982 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
32983 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
32984 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
32985 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
32986 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
32987 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
32988 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
32989 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
32990 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
32991 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
32992 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
32993 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
32994 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
32995 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
32996 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
32997 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
32998 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
32999 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
33000 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
33001 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
33002 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
33003 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
33004 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
33005 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
33006 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
33007 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
33008 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
33009 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
33010 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
33011 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
33012 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33013 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33014 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33015 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33016 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33017 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33018 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33019 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
33020 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
33021 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
33022 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
33023 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33024 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33025 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33026 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33027 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33028 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33029 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33030 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
33031 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
33032 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
33033 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
33034 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
33035 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
33036 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
33037 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
33038 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
33039 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
33040 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33041 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33042 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
33043 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
33044 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
33045 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
33046 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
33047 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
33048 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33049 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33050 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
33051 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
33052 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
33053 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
33054 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
33055 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
33056 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
33057 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
33058 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
33059 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
33060 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
33061 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
33062 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
33063 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
33064 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33065 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
33066 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
33067 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
33068 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
33069 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
33070 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
33071 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
33072 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
33073 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
33074 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
33075 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
33076 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
33077 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
33078 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
33079 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
33080 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
33081 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
33082 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
33083 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
33084 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
33085 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
33086 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
33087 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
33088 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
33089 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
33090 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
33091 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
33092 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
33093 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
33094 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
33095 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
33096 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
33097 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
33098 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
33099 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
33100 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
33101 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
33102 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
33103 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
33104 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
33105 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
33106 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
33107 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
33108 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
33109 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
33110 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
33111 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
33112 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
33113 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
33114 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
33115 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
33116 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
33117 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
33118 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
33119 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
33120 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
33121 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
33122 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
33123 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
33124 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
33125 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
33126 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
33127 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
33128 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
33129 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
33130 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
33131 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
33132 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
33133 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33134 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33135 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33136 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33137 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33138 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33139 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33140 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33141 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33142 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33143 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33144 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33145 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33146 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33147 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33148 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33149 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33150 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33151 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33152 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33153 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33154 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33155
33156 // Map renamed classes back to their common name for OOR
33157 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33158
33159 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33160 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
33161 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
33162 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
33163 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
33164 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
33165 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
33166 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
33167 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33168 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
33169 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
33170 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
33171 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
33172 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
33173 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
33174 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
33175 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
33176 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
33177 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
33178 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
33179 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
33180 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
33181 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
33182 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
33183 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
33184 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
33185 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
33186 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
33187 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
33188 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
33189 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
33190 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
33191 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
33192 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
33193 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
33194 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
33195 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33196 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33197 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33198 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33199 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33200 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33201 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33202 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33203 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33204 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33205 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33206 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33207 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33208 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33209 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33210 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33211 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33212 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33213 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33214 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33215
33216 // Map renamed classes back to their common name for OOR
33217 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33218 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33219
33220 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33221 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
33222 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
33223 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
33224 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
33225 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
33226 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
33227 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
33228 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33229 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33230
33231 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33232
33233 }
33234