]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/controls_wrap.cpp
MaskedEditControl bugfix pach from Will Sadkin
[wxWidgets.git] / wxPython / src / msw / controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_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 return self;
749
750
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 * Button_swigregister(PyObject *self, PyObject *args) {
1327 PyObject *obj;
1328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1329 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1330 Py_INCREF(obj);
1331 return Py_BuildValue((char *)"");
1332 }
1333 static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1334 PyObject *resultobj;
1335 wxWindow *arg1 = (wxWindow *) 0 ;
1336 int arg2 ;
1337 wxBitmap *arg3 = 0 ;
1338 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1339 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1340 wxSize const &arg5_defvalue = wxDefaultSize ;
1341 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1342 long arg6 = (long) wxBU_AUTODRAW ;
1343 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1344 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1345 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1346 wxString *arg8 = (wxString *) &arg8_defvalue ;
1347 wxBitmapButton *result;
1348 wxPoint temp4 ;
1349 wxSize temp5 ;
1350 bool temp8 = False ;
1351 PyObject * obj0 = 0 ;
1352 PyObject * obj1 = 0 ;
1353 PyObject * obj2 = 0 ;
1354 PyObject * obj3 = 0 ;
1355 PyObject * obj4 = 0 ;
1356 PyObject * obj5 = 0 ;
1357 PyObject * obj6 = 0 ;
1358 PyObject * obj7 = 0 ;
1359 char *kwnames[] = {
1360 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1361 };
1362
1363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1366 arg2 = (int) SWIG_AsInt(obj1);
1367 if (PyErr_Occurred()) SWIG_fail;
1368 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1369 SWIG_POINTER_EXCEPTION | 0)) == -1)
1370 SWIG_fail;
1371 if (arg3 == NULL) {
1372 PyErr_SetString(PyExc_TypeError,"null reference");
1373 SWIG_fail;
1374 }
1375 if (obj3) {
1376 {
1377 arg4 = &temp4;
1378 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1379 }
1380 }
1381 if (obj4) {
1382 {
1383 arg5 = &temp5;
1384 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1385 }
1386 }
1387 if (obj5) {
1388 arg6 = (long) SWIG_AsLong(obj5);
1389 if (PyErr_Occurred()) SWIG_fail;
1390 }
1391 if (obj6) {
1392 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1393 SWIG_POINTER_EXCEPTION | 0)) == -1)
1394 SWIG_fail;
1395 if (arg7 == NULL) {
1396 PyErr_SetString(PyExc_TypeError,"null reference");
1397 SWIG_fail;
1398 }
1399 }
1400 if (obj7) {
1401 {
1402 arg8 = wxString_in_helper(obj7);
1403 if (arg8 == NULL) SWIG_fail;
1404 temp8 = True;
1405 }
1406 }
1407 {
1408 PyThreadState* __tstate = wxPyBeginAllowThreads();
1409 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1410
1411 wxPyEndAllowThreads(__tstate);
1412 if (PyErr_Occurred()) SWIG_fail;
1413 }
1414 {
1415 resultobj = wxPyMake_wxObject(result);
1416 }
1417 {
1418 if (temp8)
1419 delete arg8;
1420 }
1421 return resultobj;
1422 fail:
1423 {
1424 if (temp8)
1425 delete arg8;
1426 }
1427 return NULL;
1428 }
1429
1430
1431 static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1432 PyObject *resultobj;
1433 wxBitmapButton *result;
1434 char *kwnames[] = {
1435 NULL
1436 };
1437
1438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1439 {
1440 PyThreadState* __tstate = wxPyBeginAllowThreads();
1441 result = (wxBitmapButton *)new wxBitmapButton();
1442
1443 wxPyEndAllowThreads(__tstate);
1444 if (PyErr_Occurred()) SWIG_fail;
1445 }
1446 {
1447 resultobj = wxPyMake_wxObject(result);
1448 }
1449 return resultobj;
1450 fail:
1451 return NULL;
1452 }
1453
1454
1455 static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1456 PyObject *resultobj;
1457 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1458 wxWindow *arg2 = (wxWindow *) 0 ;
1459 int arg3 ;
1460 wxBitmap *arg4 = 0 ;
1461 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1462 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1463 wxSize const &arg6_defvalue = wxDefaultSize ;
1464 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1465 long arg7 = (long) wxBU_AUTODRAW ;
1466 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1467 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1468 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1469 wxString *arg9 = (wxString *) &arg9_defvalue ;
1470 bool result;
1471 wxPoint temp5 ;
1472 wxSize temp6 ;
1473 bool temp9 = False ;
1474 PyObject * obj0 = 0 ;
1475 PyObject * obj1 = 0 ;
1476 PyObject * obj2 = 0 ;
1477 PyObject * obj3 = 0 ;
1478 PyObject * obj4 = 0 ;
1479 PyObject * obj5 = 0 ;
1480 PyObject * obj6 = 0 ;
1481 PyObject * obj7 = 0 ;
1482 PyObject * obj8 = 0 ;
1483 char *kwnames[] = {
1484 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1485 };
1486
1487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1492 arg3 = (int) SWIG_AsInt(obj2);
1493 if (PyErr_Occurred()) SWIG_fail;
1494 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1495 SWIG_POINTER_EXCEPTION | 0)) == -1)
1496 SWIG_fail;
1497 if (arg4 == NULL) {
1498 PyErr_SetString(PyExc_TypeError,"null reference");
1499 SWIG_fail;
1500 }
1501 if (obj4) {
1502 {
1503 arg5 = &temp5;
1504 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1505 }
1506 }
1507 if (obj5) {
1508 {
1509 arg6 = &temp6;
1510 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1511 }
1512 }
1513 if (obj6) {
1514 arg7 = (long) SWIG_AsLong(obj6);
1515 if (PyErr_Occurred()) SWIG_fail;
1516 }
1517 if (obj7) {
1518 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1519 SWIG_POINTER_EXCEPTION | 0)) == -1)
1520 SWIG_fail;
1521 if (arg8 == NULL) {
1522 PyErr_SetString(PyExc_TypeError,"null reference");
1523 SWIG_fail;
1524 }
1525 }
1526 if (obj8) {
1527 {
1528 arg9 = wxString_in_helper(obj8);
1529 if (arg9 == NULL) SWIG_fail;
1530 temp9 = True;
1531 }
1532 }
1533 {
1534 PyThreadState* __tstate = wxPyBeginAllowThreads();
1535 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1536
1537 wxPyEndAllowThreads(__tstate);
1538 if (PyErr_Occurred()) SWIG_fail;
1539 }
1540 {
1541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1542 }
1543 {
1544 if (temp9)
1545 delete arg9;
1546 }
1547 return resultobj;
1548 fail:
1549 {
1550 if (temp9)
1551 delete arg9;
1552 }
1553 return NULL;
1554 }
1555
1556
1557 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1558 PyObject *resultobj;
1559 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1560 wxBitmap result;
1561 PyObject * obj0 = 0 ;
1562 char *kwnames[] = {
1563 (char *) "self", NULL
1564 };
1565
1566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1569 {
1570 PyThreadState* __tstate = wxPyBeginAllowThreads();
1571 result = (arg1)->GetBitmapLabel();
1572
1573 wxPyEndAllowThreads(__tstate);
1574 if (PyErr_Occurred()) SWIG_fail;
1575 }
1576 {
1577 wxBitmap * resultptr;
1578 resultptr = new wxBitmap((wxBitmap &) result);
1579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1580 }
1581 return resultobj;
1582 fail:
1583 return NULL;
1584 }
1585
1586
1587 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1588 PyObject *resultobj;
1589 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1590 wxBitmap result;
1591 PyObject * obj0 = 0 ;
1592 char *kwnames[] = {
1593 (char *) "self", NULL
1594 };
1595
1596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1599 {
1600 PyThreadState* __tstate = wxPyBeginAllowThreads();
1601 result = (arg1)->GetBitmapDisabled();
1602
1603 wxPyEndAllowThreads(__tstate);
1604 if (PyErr_Occurred()) SWIG_fail;
1605 }
1606 {
1607 wxBitmap * resultptr;
1608 resultptr = new wxBitmap((wxBitmap &) result);
1609 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1610 }
1611 return resultobj;
1612 fail:
1613 return NULL;
1614 }
1615
1616
1617 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1618 PyObject *resultobj;
1619 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1620 wxBitmap result;
1621 PyObject * obj0 = 0 ;
1622 char *kwnames[] = {
1623 (char *) "self", NULL
1624 };
1625
1626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1629 {
1630 PyThreadState* __tstate = wxPyBeginAllowThreads();
1631 result = (arg1)->GetBitmapFocus();
1632
1633 wxPyEndAllowThreads(__tstate);
1634 if (PyErr_Occurred()) SWIG_fail;
1635 }
1636 {
1637 wxBitmap * resultptr;
1638 resultptr = new wxBitmap((wxBitmap &) result);
1639 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1640 }
1641 return resultobj;
1642 fail:
1643 return NULL;
1644 }
1645
1646
1647 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1648 PyObject *resultobj;
1649 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1650 wxBitmap result;
1651 PyObject * obj0 = 0 ;
1652 char *kwnames[] = {
1653 (char *) "self", NULL
1654 };
1655
1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1659 {
1660 PyThreadState* __tstate = wxPyBeginAllowThreads();
1661 result = (arg1)->GetBitmapSelected();
1662
1663 wxPyEndAllowThreads(__tstate);
1664 if (PyErr_Occurred()) SWIG_fail;
1665 }
1666 {
1667 wxBitmap * resultptr;
1668 resultptr = new wxBitmap((wxBitmap &) result);
1669 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1670 }
1671 return resultobj;
1672 fail:
1673 return NULL;
1674 }
1675
1676
1677 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1678 PyObject *resultobj;
1679 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1680 wxBitmap *arg2 = 0 ;
1681 PyObject * obj0 = 0 ;
1682 PyObject * obj1 = 0 ;
1683 char *kwnames[] = {
1684 (char *) "self",(char *) "bitmap", NULL
1685 };
1686
1687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1690 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1691 SWIG_POINTER_EXCEPTION | 0)) == -1)
1692 SWIG_fail;
1693 if (arg2 == NULL) {
1694 PyErr_SetString(PyExc_TypeError,"null reference");
1695 SWIG_fail;
1696 }
1697 {
1698 PyThreadState* __tstate = wxPyBeginAllowThreads();
1699 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1700
1701 wxPyEndAllowThreads(__tstate);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
1704 Py_INCREF(Py_None); resultobj = Py_None;
1705 return resultobj;
1706 fail:
1707 return NULL;
1708 }
1709
1710
1711 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1712 PyObject *resultobj;
1713 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1714 wxBitmap *arg2 = 0 ;
1715 PyObject * obj0 = 0 ;
1716 PyObject * obj1 = 0 ;
1717 char *kwnames[] = {
1718 (char *) "self",(char *) "bitmap", NULL
1719 };
1720
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1724 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1725 SWIG_POINTER_EXCEPTION | 0)) == -1)
1726 SWIG_fail;
1727 if (arg2 == NULL) {
1728 PyErr_SetString(PyExc_TypeError,"null reference");
1729 SWIG_fail;
1730 }
1731 {
1732 PyThreadState* __tstate = wxPyBeginAllowThreads();
1733 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1734
1735 wxPyEndAllowThreads(__tstate);
1736 if (PyErr_Occurred()) SWIG_fail;
1737 }
1738 Py_INCREF(Py_None); resultobj = Py_None;
1739 return resultobj;
1740 fail:
1741 return NULL;
1742 }
1743
1744
1745 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1746 PyObject *resultobj;
1747 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1748 wxBitmap *arg2 = 0 ;
1749 PyObject * obj0 = 0 ;
1750 PyObject * obj1 = 0 ;
1751 char *kwnames[] = {
1752 (char *) "self",(char *) "bitmap", NULL
1753 };
1754
1755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1758 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1759 SWIG_POINTER_EXCEPTION | 0)) == -1)
1760 SWIG_fail;
1761 if (arg2 == NULL) {
1762 PyErr_SetString(PyExc_TypeError,"null reference");
1763 SWIG_fail;
1764 }
1765 {
1766 PyThreadState* __tstate = wxPyBeginAllowThreads();
1767 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1768
1769 wxPyEndAllowThreads(__tstate);
1770 if (PyErr_Occurred()) SWIG_fail;
1771 }
1772 Py_INCREF(Py_None); resultobj = Py_None;
1773 return resultobj;
1774 fail:
1775 return NULL;
1776 }
1777
1778
1779 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1780 PyObject *resultobj;
1781 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1782 wxBitmap *arg2 = 0 ;
1783 PyObject * obj0 = 0 ;
1784 PyObject * obj1 = 0 ;
1785 char *kwnames[] = {
1786 (char *) "self",(char *) "bitmap", NULL
1787 };
1788
1789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1792 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1793 SWIG_POINTER_EXCEPTION | 0)) == -1)
1794 SWIG_fail;
1795 if (arg2 == NULL) {
1796 PyErr_SetString(PyExc_TypeError,"null reference");
1797 SWIG_fail;
1798 }
1799 {
1800 PyThreadState* __tstate = wxPyBeginAllowThreads();
1801 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1802
1803 wxPyEndAllowThreads(__tstate);
1804 if (PyErr_Occurred()) SWIG_fail;
1805 }
1806 Py_INCREF(Py_None); resultobj = Py_None;
1807 return resultobj;
1808 fail:
1809 return NULL;
1810 }
1811
1812
1813 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1814 PyObject *resultobj;
1815 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1816 int arg2 ;
1817 int arg3 ;
1818 PyObject * obj0 = 0 ;
1819 PyObject * obj1 = 0 ;
1820 PyObject * obj2 = 0 ;
1821 char *kwnames[] = {
1822 (char *) "self",(char *) "x",(char *) "y", NULL
1823 };
1824
1825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1828 arg2 = (int) SWIG_AsInt(obj1);
1829 if (PyErr_Occurred()) SWIG_fail;
1830 arg3 = (int) SWIG_AsInt(obj2);
1831 if (PyErr_Occurred()) SWIG_fail;
1832 {
1833 PyThreadState* __tstate = wxPyBeginAllowThreads();
1834 (arg1)->SetMargins(arg2,arg3);
1835
1836 wxPyEndAllowThreads(__tstate);
1837 if (PyErr_Occurred()) SWIG_fail;
1838 }
1839 Py_INCREF(Py_None); resultobj = Py_None;
1840 return resultobj;
1841 fail:
1842 return NULL;
1843 }
1844
1845
1846 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1847 PyObject *resultobj;
1848 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1849 int result;
1850 PyObject * obj0 = 0 ;
1851 char *kwnames[] = {
1852 (char *) "self", NULL
1853 };
1854
1855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1858 {
1859 PyThreadState* __tstate = wxPyBeginAllowThreads();
1860 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1861
1862 wxPyEndAllowThreads(__tstate);
1863 if (PyErr_Occurred()) SWIG_fail;
1864 }
1865 resultobj = SWIG_FromInt((int)result);
1866 return resultobj;
1867 fail:
1868 return NULL;
1869 }
1870
1871
1872 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1873 PyObject *resultobj;
1874 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1875 int result;
1876 PyObject * obj0 = 0 ;
1877 char *kwnames[] = {
1878 (char *) "self", NULL
1879 };
1880
1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1884 {
1885 PyThreadState* __tstate = wxPyBeginAllowThreads();
1886 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1887
1888 wxPyEndAllowThreads(__tstate);
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
1891 resultobj = SWIG_FromInt((int)result);
1892 return resultobj;
1893 fail:
1894 return NULL;
1895 }
1896
1897
1898 static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1899 PyObject *obj;
1900 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1901 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1902 Py_INCREF(obj);
1903 return Py_BuildValue((char *)"");
1904 }
1905 static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1906 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1907 return 1;
1908 }
1909
1910
1911 static PyObject *_wrap_CheckBoxNameStr_get() {
1912 PyObject *pyobj;
1913
1914 {
1915 #if wxUSE_UNICODE
1916 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1917 #else
1918 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1919 #endif
1920 }
1921 return pyobj;
1922 }
1923
1924
1925 static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1926 PyObject *resultobj;
1927 wxWindow *arg1 = (wxWindow *) 0 ;
1928 int arg2 ;
1929 wxString *arg3 = 0 ;
1930 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1931 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1932 wxSize const &arg5_defvalue = wxDefaultSize ;
1933 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1934 long arg6 = (long) 0 ;
1935 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1936 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1937 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1938 wxString *arg8 = (wxString *) &arg8_defvalue ;
1939 wxCheckBox *result;
1940 bool temp3 = False ;
1941 wxPoint temp4 ;
1942 wxSize temp5 ;
1943 bool temp8 = False ;
1944 PyObject * obj0 = 0 ;
1945 PyObject * obj1 = 0 ;
1946 PyObject * obj2 = 0 ;
1947 PyObject * obj3 = 0 ;
1948 PyObject * obj4 = 0 ;
1949 PyObject * obj5 = 0 ;
1950 PyObject * obj6 = 0 ;
1951 PyObject * obj7 = 0 ;
1952 char *kwnames[] = {
1953 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1954 };
1955
1956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1959 arg2 = (int) SWIG_AsInt(obj1);
1960 if (PyErr_Occurred()) SWIG_fail;
1961 {
1962 arg3 = wxString_in_helper(obj2);
1963 if (arg3 == NULL) SWIG_fail;
1964 temp3 = True;
1965 }
1966 if (obj3) {
1967 {
1968 arg4 = &temp4;
1969 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1970 }
1971 }
1972 if (obj4) {
1973 {
1974 arg5 = &temp5;
1975 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1976 }
1977 }
1978 if (obj5) {
1979 arg6 = (long) SWIG_AsLong(obj5);
1980 if (PyErr_Occurred()) SWIG_fail;
1981 }
1982 if (obj6) {
1983 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1984 SWIG_POINTER_EXCEPTION | 0)) == -1)
1985 SWIG_fail;
1986 if (arg7 == NULL) {
1987 PyErr_SetString(PyExc_TypeError,"null reference");
1988 SWIG_fail;
1989 }
1990 }
1991 if (obj7) {
1992 {
1993 arg8 = wxString_in_helper(obj7);
1994 if (arg8 == NULL) SWIG_fail;
1995 temp8 = True;
1996 }
1997 }
1998 {
1999 PyThreadState* __tstate = wxPyBeginAllowThreads();
2000 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2001
2002 wxPyEndAllowThreads(__tstate);
2003 if (PyErr_Occurred()) SWIG_fail;
2004 }
2005 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2006 {
2007 if (temp3)
2008 delete arg3;
2009 }
2010 {
2011 if (temp8)
2012 delete arg8;
2013 }
2014 return resultobj;
2015 fail:
2016 {
2017 if (temp3)
2018 delete arg3;
2019 }
2020 {
2021 if (temp8)
2022 delete arg8;
2023 }
2024 return NULL;
2025 }
2026
2027
2028 static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2029 PyObject *resultobj;
2030 wxCheckBox *result;
2031 char *kwnames[] = {
2032 NULL
2033 };
2034
2035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2036 {
2037 PyThreadState* __tstate = wxPyBeginAllowThreads();
2038 result = (wxCheckBox *)new wxCheckBox();
2039
2040 wxPyEndAllowThreads(__tstate);
2041 if (PyErr_Occurred()) SWIG_fail;
2042 }
2043 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2044 return resultobj;
2045 fail:
2046 return NULL;
2047 }
2048
2049
2050 static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2051 PyObject *resultobj;
2052 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2053 wxWindow *arg2 = (wxWindow *) 0 ;
2054 int arg3 ;
2055 wxString *arg4 = 0 ;
2056 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2057 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2058 wxSize const &arg6_defvalue = wxDefaultSize ;
2059 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2060 long arg7 = (long) 0 ;
2061 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2062 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2063 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2064 wxString *arg9 = (wxString *) &arg9_defvalue ;
2065 bool result;
2066 bool temp4 = False ;
2067 wxPoint temp5 ;
2068 wxSize temp6 ;
2069 bool temp9 = False ;
2070 PyObject * obj0 = 0 ;
2071 PyObject * obj1 = 0 ;
2072 PyObject * obj2 = 0 ;
2073 PyObject * obj3 = 0 ;
2074 PyObject * obj4 = 0 ;
2075 PyObject * obj5 = 0 ;
2076 PyObject * obj6 = 0 ;
2077 PyObject * obj7 = 0 ;
2078 PyObject * obj8 = 0 ;
2079 char *kwnames[] = {
2080 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2081 };
2082
2083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2086 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2088 arg3 = (int) SWIG_AsInt(obj2);
2089 if (PyErr_Occurred()) SWIG_fail;
2090 {
2091 arg4 = wxString_in_helper(obj3);
2092 if (arg4 == NULL) SWIG_fail;
2093 temp4 = True;
2094 }
2095 if (obj4) {
2096 {
2097 arg5 = &temp5;
2098 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2099 }
2100 }
2101 if (obj5) {
2102 {
2103 arg6 = &temp6;
2104 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2105 }
2106 }
2107 if (obj6) {
2108 arg7 = (long) SWIG_AsLong(obj6);
2109 if (PyErr_Occurred()) SWIG_fail;
2110 }
2111 if (obj7) {
2112 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2113 SWIG_POINTER_EXCEPTION | 0)) == -1)
2114 SWIG_fail;
2115 if (arg8 == NULL) {
2116 PyErr_SetString(PyExc_TypeError,"null reference");
2117 SWIG_fail;
2118 }
2119 }
2120 if (obj8) {
2121 {
2122 arg9 = wxString_in_helper(obj8);
2123 if (arg9 == NULL) SWIG_fail;
2124 temp9 = True;
2125 }
2126 }
2127 {
2128 PyThreadState* __tstate = wxPyBeginAllowThreads();
2129 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2130
2131 wxPyEndAllowThreads(__tstate);
2132 if (PyErr_Occurred()) SWIG_fail;
2133 }
2134 {
2135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2136 }
2137 {
2138 if (temp4)
2139 delete arg4;
2140 }
2141 {
2142 if (temp9)
2143 delete arg9;
2144 }
2145 return resultobj;
2146 fail:
2147 {
2148 if (temp4)
2149 delete arg4;
2150 }
2151 {
2152 if (temp9)
2153 delete arg9;
2154 }
2155 return NULL;
2156 }
2157
2158
2159 static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2160 PyObject *resultobj;
2161 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2162 bool result;
2163 PyObject * obj0 = 0 ;
2164 char *kwnames[] = {
2165 (char *) "self", NULL
2166 };
2167
2168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2171 {
2172 PyThreadState* __tstate = wxPyBeginAllowThreads();
2173 result = (bool)(arg1)->GetValue();
2174
2175 wxPyEndAllowThreads(__tstate);
2176 if (PyErr_Occurred()) SWIG_fail;
2177 }
2178 {
2179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2180 }
2181 return resultobj;
2182 fail:
2183 return NULL;
2184 }
2185
2186
2187 static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2188 PyObject *resultobj;
2189 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2190 bool result;
2191 PyObject * obj0 = 0 ;
2192 char *kwnames[] = {
2193 (char *) "self", NULL
2194 };
2195
2196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2199 {
2200 PyThreadState* __tstate = wxPyBeginAllowThreads();
2201 result = (bool)(arg1)->IsChecked();
2202
2203 wxPyEndAllowThreads(__tstate);
2204 if (PyErr_Occurred()) SWIG_fail;
2205 }
2206 {
2207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2208 }
2209 return resultobj;
2210 fail:
2211 return NULL;
2212 }
2213
2214
2215 static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2216 PyObject *resultobj;
2217 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2218 bool arg2 ;
2219 PyObject * obj0 = 0 ;
2220 PyObject * obj1 = 0 ;
2221 char *kwnames[] = {
2222 (char *) "self",(char *) "state", NULL
2223 };
2224
2225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2228 arg2 = (bool const) SWIG_AsBool(obj1);
2229 if (PyErr_Occurred()) SWIG_fail;
2230 {
2231 PyThreadState* __tstate = wxPyBeginAllowThreads();
2232 (arg1)->SetValue(arg2);
2233
2234 wxPyEndAllowThreads(__tstate);
2235 if (PyErr_Occurred()) SWIG_fail;
2236 }
2237 Py_INCREF(Py_None); resultobj = Py_None;
2238 return resultobj;
2239 fail:
2240 return NULL;
2241 }
2242
2243
2244 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2245 PyObject *resultobj;
2246 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2247 int result;
2248 PyObject * obj0 = 0 ;
2249 char *kwnames[] = {
2250 (char *) "self", NULL
2251 };
2252
2253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2256 {
2257 PyThreadState* __tstate = wxPyBeginAllowThreads();
2258 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2259
2260 wxPyEndAllowThreads(__tstate);
2261 if (PyErr_Occurred()) SWIG_fail;
2262 }
2263 resultobj = SWIG_FromInt((int)result);
2264 return resultobj;
2265 fail:
2266 return NULL;
2267 }
2268
2269
2270 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2271 PyObject *resultobj;
2272 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2273 int arg2 ;
2274 PyObject * obj0 = 0 ;
2275 PyObject * obj1 = 0 ;
2276 char *kwnames[] = {
2277 (char *) "self",(char *) "state", NULL
2278 };
2279
2280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2283 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2284 if (PyErr_Occurred()) SWIG_fail;
2285 {
2286 PyThreadState* __tstate = wxPyBeginAllowThreads();
2287 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2288
2289 wxPyEndAllowThreads(__tstate);
2290 if (PyErr_Occurred()) SWIG_fail;
2291 }
2292 Py_INCREF(Py_None); resultobj = Py_None;
2293 return resultobj;
2294 fail:
2295 return NULL;
2296 }
2297
2298
2299 static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2300 PyObject *resultobj;
2301 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2302 bool result;
2303 PyObject * obj0 = 0 ;
2304 char *kwnames[] = {
2305 (char *) "self", NULL
2306 };
2307
2308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2311 {
2312 PyThreadState* __tstate = wxPyBeginAllowThreads();
2313 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2314
2315 wxPyEndAllowThreads(__tstate);
2316 if (PyErr_Occurred()) SWIG_fail;
2317 }
2318 {
2319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2320 }
2321 return resultobj;
2322 fail:
2323 return NULL;
2324 }
2325
2326
2327 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2328 PyObject *resultobj;
2329 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2330 bool result;
2331 PyObject * obj0 = 0 ;
2332 char *kwnames[] = {
2333 (char *) "self", NULL
2334 };
2335
2336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2339 {
2340 PyThreadState* __tstate = wxPyBeginAllowThreads();
2341 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2342
2343 wxPyEndAllowThreads(__tstate);
2344 if (PyErr_Occurred()) SWIG_fail;
2345 }
2346 {
2347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2348 }
2349 return resultobj;
2350 fail:
2351 return NULL;
2352 }
2353
2354
2355 static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2356 PyObject *obj;
2357 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2358 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2359 Py_INCREF(obj);
2360 return Py_BuildValue((char *)"");
2361 }
2362 static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2363 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2364 return 1;
2365 }
2366
2367
2368 static PyObject *_wrap_ChoiceNameStr_get() {
2369 PyObject *pyobj;
2370
2371 {
2372 #if wxUSE_UNICODE
2373 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2374 #else
2375 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2376 #endif
2377 }
2378 return pyobj;
2379 }
2380
2381
2382 static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2383 PyObject *resultobj;
2384 wxWindow *arg1 = (wxWindow *) 0 ;
2385 int arg2 = (int) -1 ;
2386 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2387 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2388 wxSize const &arg4_defvalue = wxDefaultSize ;
2389 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2390 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2391 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2392 long arg6 = (long) 0 ;
2393 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2394 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2395 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2396 wxString *arg8 = (wxString *) &arg8_defvalue ;
2397 wxChoice *result;
2398 wxPoint temp3 ;
2399 wxSize temp4 ;
2400 bool temp5 = False ;
2401 bool temp8 = False ;
2402 PyObject * obj0 = 0 ;
2403 PyObject * obj1 = 0 ;
2404 PyObject * obj2 = 0 ;
2405 PyObject * obj3 = 0 ;
2406 PyObject * obj4 = 0 ;
2407 PyObject * obj5 = 0 ;
2408 PyObject * obj6 = 0 ;
2409 PyObject * obj7 = 0 ;
2410 char *kwnames[] = {
2411 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2412 };
2413
2414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2417 if (obj1) {
2418 arg2 = (int) SWIG_AsInt(obj1);
2419 if (PyErr_Occurred()) SWIG_fail;
2420 }
2421 if (obj2) {
2422 {
2423 arg3 = &temp3;
2424 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2425 }
2426 }
2427 if (obj3) {
2428 {
2429 arg4 = &temp4;
2430 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2431 }
2432 }
2433 if (obj4) {
2434 {
2435 if (! PySequence_Check(obj4)) {
2436 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2437 SWIG_fail;
2438 }
2439 arg5 = new wxArrayString;
2440 temp5 = True;
2441 int i, len=PySequence_Length(obj4);
2442 for (i=0; i<len; i++) {
2443 PyObject* item = PySequence_GetItem(obj4, i);
2444 #if wxUSE_UNICODE
2445 PyObject* str = PyObject_Unicode(item);
2446 #else
2447 PyObject* str = PyObject_Str(item);
2448 #endif
2449 if (PyErr_Occurred()) SWIG_fail;
2450 arg5->Add(Py2wxString(str));
2451 Py_DECREF(item);
2452 Py_DECREF(str);
2453 }
2454 }
2455 }
2456 if (obj5) {
2457 arg6 = (long) SWIG_AsLong(obj5);
2458 if (PyErr_Occurred()) SWIG_fail;
2459 }
2460 if (obj6) {
2461 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2462 SWIG_POINTER_EXCEPTION | 0)) == -1)
2463 SWIG_fail;
2464 if (arg7 == NULL) {
2465 PyErr_SetString(PyExc_TypeError,"null reference");
2466 SWIG_fail;
2467 }
2468 }
2469 if (obj7) {
2470 {
2471 arg8 = wxString_in_helper(obj7);
2472 if (arg8 == NULL) SWIG_fail;
2473 temp8 = True;
2474 }
2475 }
2476 {
2477 PyThreadState* __tstate = wxPyBeginAllowThreads();
2478 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2479
2480 wxPyEndAllowThreads(__tstate);
2481 if (PyErr_Occurred()) SWIG_fail;
2482 }
2483 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2484 {
2485 if (temp5) delete arg5;
2486 }
2487 {
2488 if (temp8)
2489 delete arg8;
2490 }
2491 return resultobj;
2492 fail:
2493 {
2494 if (temp5) delete arg5;
2495 }
2496 {
2497 if (temp8)
2498 delete arg8;
2499 }
2500 return NULL;
2501 }
2502
2503
2504 static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2505 PyObject *resultobj;
2506 wxChoice *result;
2507 char *kwnames[] = {
2508 NULL
2509 };
2510
2511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2512 {
2513 PyThreadState* __tstate = wxPyBeginAllowThreads();
2514 result = (wxChoice *)new wxChoice();
2515
2516 wxPyEndAllowThreads(__tstate);
2517 if (PyErr_Occurred()) SWIG_fail;
2518 }
2519 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2520 return resultobj;
2521 fail:
2522 return NULL;
2523 }
2524
2525
2526 static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2527 PyObject *resultobj;
2528 wxChoice *arg1 = (wxChoice *) 0 ;
2529 wxWindow *arg2 = (wxWindow *) 0 ;
2530 int arg3 = (int) -1 ;
2531 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2532 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2533 wxSize const &arg5_defvalue = wxDefaultSize ;
2534 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2535 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2536 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2537 long arg7 = (long) 0 ;
2538 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2539 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2540 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2541 wxString *arg9 = (wxString *) &arg9_defvalue ;
2542 bool result;
2543 wxPoint temp4 ;
2544 wxSize temp5 ;
2545 bool temp6 = False ;
2546 bool temp9 = False ;
2547 PyObject * obj0 = 0 ;
2548 PyObject * obj1 = 0 ;
2549 PyObject * obj2 = 0 ;
2550 PyObject * obj3 = 0 ;
2551 PyObject * obj4 = 0 ;
2552 PyObject * obj5 = 0 ;
2553 PyObject * obj6 = 0 ;
2554 PyObject * obj7 = 0 ;
2555 PyObject * obj8 = 0 ;
2556 char *kwnames[] = {
2557 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2558 };
2559
2560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2563 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2565 if (obj2) {
2566 arg3 = (int) SWIG_AsInt(obj2);
2567 if (PyErr_Occurred()) SWIG_fail;
2568 }
2569 if (obj3) {
2570 {
2571 arg4 = &temp4;
2572 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2573 }
2574 }
2575 if (obj4) {
2576 {
2577 arg5 = &temp5;
2578 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2579 }
2580 }
2581 if (obj5) {
2582 {
2583 if (! PySequence_Check(obj5)) {
2584 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2585 SWIG_fail;
2586 }
2587 arg6 = new wxArrayString;
2588 temp6 = True;
2589 int i, len=PySequence_Length(obj5);
2590 for (i=0; i<len; i++) {
2591 PyObject* item = PySequence_GetItem(obj5, i);
2592 #if wxUSE_UNICODE
2593 PyObject* str = PyObject_Unicode(item);
2594 #else
2595 PyObject* str = PyObject_Str(item);
2596 #endif
2597 if (PyErr_Occurred()) SWIG_fail;
2598 arg6->Add(Py2wxString(str));
2599 Py_DECREF(item);
2600 Py_DECREF(str);
2601 }
2602 }
2603 }
2604 if (obj6) {
2605 arg7 = (long) SWIG_AsLong(obj6);
2606 if (PyErr_Occurred()) SWIG_fail;
2607 }
2608 if (obj7) {
2609 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2610 SWIG_POINTER_EXCEPTION | 0)) == -1)
2611 SWIG_fail;
2612 if (arg8 == NULL) {
2613 PyErr_SetString(PyExc_TypeError,"null reference");
2614 SWIG_fail;
2615 }
2616 }
2617 if (obj8) {
2618 {
2619 arg9 = wxString_in_helper(obj8);
2620 if (arg9 == NULL) SWIG_fail;
2621 temp9 = True;
2622 }
2623 }
2624 {
2625 PyThreadState* __tstate = wxPyBeginAllowThreads();
2626 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2627
2628 wxPyEndAllowThreads(__tstate);
2629 if (PyErr_Occurred()) SWIG_fail;
2630 }
2631 {
2632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2633 }
2634 {
2635 if (temp6) delete arg6;
2636 }
2637 {
2638 if (temp9)
2639 delete arg9;
2640 }
2641 return resultobj;
2642 fail:
2643 {
2644 if (temp6) delete arg6;
2645 }
2646 {
2647 if (temp9)
2648 delete arg9;
2649 }
2650 return NULL;
2651 }
2652
2653
2654 static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2655 PyObject *resultobj;
2656 wxChoice *arg1 = (wxChoice *) 0 ;
2657 int arg2 ;
2658 PyObject * obj0 = 0 ;
2659 PyObject * obj1 = 0 ;
2660 char *kwnames[] = {
2661 (char *) "self",(char *) "n", NULL
2662 };
2663
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2667 arg2 = (int const) SWIG_AsInt(obj1);
2668 if (PyErr_Occurred()) SWIG_fail;
2669 {
2670 PyThreadState* __tstate = wxPyBeginAllowThreads();
2671 (arg1)->SetSelection(arg2);
2672
2673 wxPyEndAllowThreads(__tstate);
2674 if (PyErr_Occurred()) SWIG_fail;
2675 }
2676 Py_INCREF(Py_None); resultobj = Py_None;
2677 return resultobj;
2678 fail:
2679 return NULL;
2680 }
2681
2682
2683 static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2684 PyObject *resultobj;
2685 wxChoice *arg1 = (wxChoice *) 0 ;
2686 wxString *arg2 = 0 ;
2687 bool temp2 = False ;
2688 PyObject * obj0 = 0 ;
2689 PyObject * obj1 = 0 ;
2690 char *kwnames[] = {
2691 (char *) "self",(char *) "string", NULL
2692 };
2693
2694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2697 {
2698 arg2 = wxString_in_helper(obj1);
2699 if (arg2 == NULL) SWIG_fail;
2700 temp2 = True;
2701 }
2702 {
2703 PyThreadState* __tstate = wxPyBeginAllowThreads();
2704 (arg1)->SetStringSelection((wxString const &)*arg2);
2705
2706 wxPyEndAllowThreads(__tstate);
2707 if (PyErr_Occurred()) SWIG_fail;
2708 }
2709 Py_INCREF(Py_None); resultobj = Py_None;
2710 {
2711 if (temp2)
2712 delete arg2;
2713 }
2714 return resultobj;
2715 fail:
2716 {
2717 if (temp2)
2718 delete arg2;
2719 }
2720 return NULL;
2721 }
2722
2723
2724 static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2725 PyObject *resultobj;
2726 wxChoice *arg1 = (wxChoice *) 0 ;
2727 int arg2 ;
2728 wxString *arg3 = 0 ;
2729 bool temp3 = False ;
2730 PyObject * obj0 = 0 ;
2731 PyObject * obj1 = 0 ;
2732 PyObject * obj2 = 0 ;
2733 char *kwnames[] = {
2734 (char *) "self",(char *) "n",(char *) "string", NULL
2735 };
2736
2737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2740 arg2 = (int) SWIG_AsInt(obj1);
2741 if (PyErr_Occurred()) SWIG_fail;
2742 {
2743 arg3 = wxString_in_helper(obj2);
2744 if (arg3 == NULL) SWIG_fail;
2745 temp3 = True;
2746 }
2747 {
2748 PyThreadState* __tstate = wxPyBeginAllowThreads();
2749 (arg1)->SetString(arg2,(wxString const &)*arg3);
2750
2751 wxPyEndAllowThreads(__tstate);
2752 if (PyErr_Occurred()) SWIG_fail;
2753 }
2754 Py_INCREF(Py_None); resultobj = Py_None;
2755 {
2756 if (temp3)
2757 delete arg3;
2758 }
2759 return resultobj;
2760 fail:
2761 {
2762 if (temp3)
2763 delete arg3;
2764 }
2765 return NULL;
2766 }
2767
2768
2769 static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2770 PyObject *obj;
2771 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2772 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2773 Py_INCREF(obj);
2774 return Py_BuildValue((char *)"");
2775 }
2776 static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2777 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2778 return 1;
2779 }
2780
2781
2782 static PyObject *_wrap_ComboBoxNameStr_get() {
2783 PyObject *pyobj;
2784
2785 {
2786 #if wxUSE_UNICODE
2787 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2788 #else
2789 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2790 #endif
2791 }
2792 return pyobj;
2793 }
2794
2795
2796 static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2797 PyObject *resultobj;
2798 wxWindow *arg1 = (wxWindow *) 0 ;
2799 int arg2 = (int) -1 ;
2800 wxString const &arg3_defvalue = wxPyEmptyString ;
2801 wxString *arg3 = (wxString *) &arg3_defvalue ;
2802 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2803 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2804 wxSize const &arg5_defvalue = wxDefaultSize ;
2805 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2806 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2807 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2808 long arg7 = (long) 0 ;
2809 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2810 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2811 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2812 wxString *arg9 = (wxString *) &arg9_defvalue ;
2813 wxComboBox *result;
2814 bool temp3 = False ;
2815 wxPoint temp4 ;
2816 wxSize temp5 ;
2817 bool temp6 = False ;
2818 bool temp9 = False ;
2819 PyObject * obj0 = 0 ;
2820 PyObject * obj1 = 0 ;
2821 PyObject * obj2 = 0 ;
2822 PyObject * obj3 = 0 ;
2823 PyObject * obj4 = 0 ;
2824 PyObject * obj5 = 0 ;
2825 PyObject * obj6 = 0 ;
2826 PyObject * obj7 = 0 ;
2827 PyObject * obj8 = 0 ;
2828 char *kwnames[] = {
2829 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2830 };
2831
2832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2835 if (obj1) {
2836 arg2 = (int) SWIG_AsInt(obj1);
2837 if (PyErr_Occurred()) SWIG_fail;
2838 }
2839 if (obj2) {
2840 {
2841 arg3 = wxString_in_helper(obj2);
2842 if (arg3 == NULL) SWIG_fail;
2843 temp3 = True;
2844 }
2845 }
2846 if (obj3) {
2847 {
2848 arg4 = &temp4;
2849 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2850 }
2851 }
2852 if (obj4) {
2853 {
2854 arg5 = &temp5;
2855 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2856 }
2857 }
2858 if (obj5) {
2859 {
2860 if (! PySequence_Check(obj5)) {
2861 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2862 SWIG_fail;
2863 }
2864 arg6 = new wxArrayString;
2865 temp6 = True;
2866 int i, len=PySequence_Length(obj5);
2867 for (i=0; i<len; i++) {
2868 PyObject* item = PySequence_GetItem(obj5, i);
2869 #if wxUSE_UNICODE
2870 PyObject* str = PyObject_Unicode(item);
2871 #else
2872 PyObject* str = PyObject_Str(item);
2873 #endif
2874 if (PyErr_Occurred()) SWIG_fail;
2875 arg6->Add(Py2wxString(str));
2876 Py_DECREF(item);
2877 Py_DECREF(str);
2878 }
2879 }
2880 }
2881 if (obj6) {
2882 arg7 = (long) SWIG_AsLong(obj6);
2883 if (PyErr_Occurred()) SWIG_fail;
2884 }
2885 if (obj7) {
2886 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2887 SWIG_POINTER_EXCEPTION | 0)) == -1)
2888 SWIG_fail;
2889 if (arg8 == NULL) {
2890 PyErr_SetString(PyExc_TypeError,"null reference");
2891 SWIG_fail;
2892 }
2893 }
2894 if (obj8) {
2895 {
2896 arg9 = wxString_in_helper(obj8);
2897 if (arg9 == NULL) SWIG_fail;
2898 temp9 = True;
2899 }
2900 }
2901 {
2902 PyThreadState* __tstate = wxPyBeginAllowThreads();
2903 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);
2904
2905 wxPyEndAllowThreads(__tstate);
2906 if (PyErr_Occurred()) SWIG_fail;
2907 }
2908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
2909 {
2910 if (temp3)
2911 delete arg3;
2912 }
2913 {
2914 if (temp6) delete arg6;
2915 }
2916 {
2917 if (temp9)
2918 delete arg9;
2919 }
2920 return resultobj;
2921 fail:
2922 {
2923 if (temp3)
2924 delete arg3;
2925 }
2926 {
2927 if (temp6) delete arg6;
2928 }
2929 {
2930 if (temp9)
2931 delete arg9;
2932 }
2933 return NULL;
2934 }
2935
2936
2937 static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2938 PyObject *resultobj;
2939 wxComboBox *result;
2940 char *kwnames[] = {
2941 NULL
2942 };
2943
2944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
2945 {
2946 PyThreadState* __tstate = wxPyBeginAllowThreads();
2947 result = (wxComboBox *)new wxComboBox();
2948
2949 wxPyEndAllowThreads(__tstate);
2950 if (PyErr_Occurred()) SWIG_fail;
2951 }
2952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
2953 return resultobj;
2954 fail:
2955 return NULL;
2956 }
2957
2958
2959 static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2960 PyObject *resultobj;
2961 wxComboBox *arg1 = (wxComboBox *) 0 ;
2962 wxWindow *arg2 = (wxWindow *) 0 ;
2963 int arg3 = (int) -1 ;
2964 wxString const &arg4_defvalue = wxPyEmptyString ;
2965 wxString *arg4 = (wxString *) &arg4_defvalue ;
2966 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2967 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2968 wxSize const &arg6_defvalue = wxDefaultSize ;
2969 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2970 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
2971 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
2972 long arg8 = (long) 0 ;
2973 wxValidator const &arg9_defvalue = wxDefaultValidator ;
2974 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
2975 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
2976 wxString *arg10 = (wxString *) &arg10_defvalue ;
2977 bool result;
2978 bool temp4 = False ;
2979 wxPoint temp5 ;
2980 wxSize temp6 ;
2981 bool temp7 = False ;
2982 bool temp10 = False ;
2983 PyObject * obj0 = 0 ;
2984 PyObject * obj1 = 0 ;
2985 PyObject * obj2 = 0 ;
2986 PyObject * obj3 = 0 ;
2987 PyObject * obj4 = 0 ;
2988 PyObject * obj5 = 0 ;
2989 PyObject * obj6 = 0 ;
2990 PyObject * obj7 = 0 ;
2991 PyObject * obj8 = 0 ;
2992 PyObject * obj9 = 0 ;
2993 char *kwnames[] = {
2994 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2995 };
2996
2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
2998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
2999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3000 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3002 if (obj2) {
3003 arg3 = (int) SWIG_AsInt(obj2);
3004 if (PyErr_Occurred()) SWIG_fail;
3005 }
3006 if (obj3) {
3007 {
3008 arg4 = wxString_in_helper(obj3);
3009 if (arg4 == NULL) SWIG_fail;
3010 temp4 = True;
3011 }
3012 }
3013 if (obj4) {
3014 {
3015 arg5 = &temp5;
3016 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3017 }
3018 }
3019 if (obj5) {
3020 {
3021 arg6 = &temp6;
3022 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3023 }
3024 }
3025 if (obj6) {
3026 {
3027 if (! PySequence_Check(obj6)) {
3028 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3029 SWIG_fail;
3030 }
3031 arg7 = new wxArrayString;
3032 temp7 = True;
3033 int i, len=PySequence_Length(obj6);
3034 for (i=0; i<len; i++) {
3035 PyObject* item = PySequence_GetItem(obj6, i);
3036 #if wxUSE_UNICODE
3037 PyObject* str = PyObject_Unicode(item);
3038 #else
3039 PyObject* str = PyObject_Str(item);
3040 #endif
3041 if (PyErr_Occurred()) SWIG_fail;
3042 arg7->Add(Py2wxString(str));
3043 Py_DECREF(item);
3044 Py_DECREF(str);
3045 }
3046 }
3047 }
3048 if (obj7) {
3049 arg8 = (long) SWIG_AsLong(obj7);
3050 if (PyErr_Occurred()) SWIG_fail;
3051 }
3052 if (obj8) {
3053 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3054 SWIG_POINTER_EXCEPTION | 0)) == -1)
3055 SWIG_fail;
3056 if (arg9 == NULL) {
3057 PyErr_SetString(PyExc_TypeError,"null reference");
3058 SWIG_fail;
3059 }
3060 }
3061 if (obj9) {
3062 {
3063 arg10 = wxString_in_helper(obj9);
3064 if (arg10 == NULL) SWIG_fail;
3065 temp10 = True;
3066 }
3067 }
3068 {
3069 PyThreadState* __tstate = wxPyBeginAllowThreads();
3070 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);
3071
3072 wxPyEndAllowThreads(__tstate);
3073 if (PyErr_Occurred()) SWIG_fail;
3074 }
3075 {
3076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3077 }
3078 {
3079 if (temp4)
3080 delete arg4;
3081 }
3082 {
3083 if (temp7) delete arg7;
3084 }
3085 {
3086 if (temp10)
3087 delete arg10;
3088 }
3089 return resultobj;
3090 fail:
3091 {
3092 if (temp4)
3093 delete arg4;
3094 }
3095 {
3096 if (temp7) delete arg7;
3097 }
3098 {
3099 if (temp10)
3100 delete arg10;
3101 }
3102 return NULL;
3103 }
3104
3105
3106 static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3107 PyObject *resultobj;
3108 wxComboBox *arg1 = (wxComboBox *) 0 ;
3109 wxString result;
3110 PyObject * obj0 = 0 ;
3111 char *kwnames[] = {
3112 (char *) "self", NULL
3113 };
3114
3115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3118 {
3119 PyThreadState* __tstate = wxPyBeginAllowThreads();
3120 result = ((wxComboBox const *)arg1)->GetValue();
3121
3122 wxPyEndAllowThreads(__tstate);
3123 if (PyErr_Occurred()) SWIG_fail;
3124 }
3125 {
3126 #if wxUSE_UNICODE
3127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3128 #else
3129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3130 #endif
3131 }
3132 return resultobj;
3133 fail:
3134 return NULL;
3135 }
3136
3137
3138 static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3139 PyObject *resultobj;
3140 wxComboBox *arg1 = (wxComboBox *) 0 ;
3141 wxString *arg2 = 0 ;
3142 bool temp2 = False ;
3143 PyObject * obj0 = 0 ;
3144 PyObject * obj1 = 0 ;
3145 char *kwnames[] = {
3146 (char *) "self",(char *) "value", NULL
3147 };
3148
3149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3152 {
3153 arg2 = wxString_in_helper(obj1);
3154 if (arg2 == NULL) SWIG_fail;
3155 temp2 = True;
3156 }
3157 {
3158 PyThreadState* __tstate = wxPyBeginAllowThreads();
3159 (arg1)->SetValue((wxString const &)*arg2);
3160
3161 wxPyEndAllowThreads(__tstate);
3162 if (PyErr_Occurred()) SWIG_fail;
3163 }
3164 Py_INCREF(Py_None); resultobj = Py_None;
3165 {
3166 if (temp2)
3167 delete arg2;
3168 }
3169 return resultobj;
3170 fail:
3171 {
3172 if (temp2)
3173 delete arg2;
3174 }
3175 return NULL;
3176 }
3177
3178
3179 static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3180 PyObject *resultobj;
3181 wxComboBox *arg1 = (wxComboBox *) 0 ;
3182 PyObject * obj0 = 0 ;
3183 char *kwnames[] = {
3184 (char *) "self", NULL
3185 };
3186
3187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3190 {
3191 PyThreadState* __tstate = wxPyBeginAllowThreads();
3192 (arg1)->Copy();
3193
3194 wxPyEndAllowThreads(__tstate);
3195 if (PyErr_Occurred()) SWIG_fail;
3196 }
3197 Py_INCREF(Py_None); resultobj = Py_None;
3198 return resultobj;
3199 fail:
3200 return NULL;
3201 }
3202
3203
3204 static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3205 PyObject *resultobj;
3206 wxComboBox *arg1 = (wxComboBox *) 0 ;
3207 PyObject * obj0 = 0 ;
3208 char *kwnames[] = {
3209 (char *) "self", NULL
3210 };
3211
3212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3215 {
3216 PyThreadState* __tstate = wxPyBeginAllowThreads();
3217 (arg1)->Cut();
3218
3219 wxPyEndAllowThreads(__tstate);
3220 if (PyErr_Occurred()) SWIG_fail;
3221 }
3222 Py_INCREF(Py_None); resultobj = Py_None;
3223 return resultobj;
3224 fail:
3225 return NULL;
3226 }
3227
3228
3229 static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3230 PyObject *resultobj;
3231 wxComboBox *arg1 = (wxComboBox *) 0 ;
3232 PyObject * obj0 = 0 ;
3233 char *kwnames[] = {
3234 (char *) "self", NULL
3235 };
3236
3237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3240 {
3241 PyThreadState* __tstate = wxPyBeginAllowThreads();
3242 (arg1)->Paste();
3243
3244 wxPyEndAllowThreads(__tstate);
3245 if (PyErr_Occurred()) SWIG_fail;
3246 }
3247 Py_INCREF(Py_None); resultobj = Py_None;
3248 return resultobj;
3249 fail:
3250 return NULL;
3251 }
3252
3253
3254 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3255 PyObject *resultobj;
3256 wxComboBox *arg1 = (wxComboBox *) 0 ;
3257 long arg2 ;
3258 PyObject * obj0 = 0 ;
3259 PyObject * obj1 = 0 ;
3260 char *kwnames[] = {
3261 (char *) "self",(char *) "pos", NULL
3262 };
3263
3264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3267 arg2 = (long) SWIG_AsLong(obj1);
3268 if (PyErr_Occurred()) SWIG_fail;
3269 {
3270 PyThreadState* __tstate = wxPyBeginAllowThreads();
3271 (arg1)->SetInsertionPoint(arg2);
3272
3273 wxPyEndAllowThreads(__tstate);
3274 if (PyErr_Occurred()) SWIG_fail;
3275 }
3276 Py_INCREF(Py_None); resultobj = Py_None;
3277 return resultobj;
3278 fail:
3279 return NULL;
3280 }
3281
3282
3283 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3284 PyObject *resultobj;
3285 wxComboBox *arg1 = (wxComboBox *) 0 ;
3286 long result;
3287 PyObject * obj0 = 0 ;
3288 char *kwnames[] = {
3289 (char *) "self", NULL
3290 };
3291
3292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3295 {
3296 PyThreadState* __tstate = wxPyBeginAllowThreads();
3297 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3298
3299 wxPyEndAllowThreads(__tstate);
3300 if (PyErr_Occurred()) SWIG_fail;
3301 }
3302 resultobj = SWIG_FromLong((long)result);
3303 return resultobj;
3304 fail:
3305 return NULL;
3306 }
3307
3308
3309 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3310 PyObject *resultobj;
3311 wxComboBox *arg1 = (wxComboBox *) 0 ;
3312 long result;
3313 PyObject * obj0 = 0 ;
3314 char *kwnames[] = {
3315 (char *) "self", NULL
3316 };
3317
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3321 {
3322 PyThreadState* __tstate = wxPyBeginAllowThreads();
3323 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3324
3325 wxPyEndAllowThreads(__tstate);
3326 if (PyErr_Occurred()) SWIG_fail;
3327 }
3328 resultobj = SWIG_FromLong((long)result);
3329 return resultobj;
3330 fail:
3331 return NULL;
3332 }
3333
3334
3335 static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3336 PyObject *resultobj;
3337 wxComboBox *arg1 = (wxComboBox *) 0 ;
3338 long arg2 ;
3339 long arg3 ;
3340 wxString *arg4 = 0 ;
3341 bool temp4 = False ;
3342 PyObject * obj0 = 0 ;
3343 PyObject * obj1 = 0 ;
3344 PyObject * obj2 = 0 ;
3345 PyObject * obj3 = 0 ;
3346 char *kwnames[] = {
3347 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3348 };
3349
3350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3353 arg2 = (long) SWIG_AsLong(obj1);
3354 if (PyErr_Occurred()) SWIG_fail;
3355 arg3 = (long) SWIG_AsLong(obj2);
3356 if (PyErr_Occurred()) SWIG_fail;
3357 {
3358 arg4 = wxString_in_helper(obj3);
3359 if (arg4 == NULL) SWIG_fail;
3360 temp4 = True;
3361 }
3362 {
3363 PyThreadState* __tstate = wxPyBeginAllowThreads();
3364 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3365
3366 wxPyEndAllowThreads(__tstate);
3367 if (PyErr_Occurred()) SWIG_fail;
3368 }
3369 Py_INCREF(Py_None); resultobj = Py_None;
3370 {
3371 if (temp4)
3372 delete arg4;
3373 }
3374 return resultobj;
3375 fail:
3376 {
3377 if (temp4)
3378 delete arg4;
3379 }
3380 return NULL;
3381 }
3382
3383
3384 static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3385 PyObject *resultobj;
3386 wxComboBox *arg1 = (wxComboBox *) 0 ;
3387 int arg2 ;
3388 PyObject * obj0 = 0 ;
3389 PyObject * obj1 = 0 ;
3390 char *kwnames[] = {
3391 (char *) "self",(char *) "n", NULL
3392 };
3393
3394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3397 arg2 = (int) SWIG_AsInt(obj1);
3398 if (PyErr_Occurred()) SWIG_fail;
3399 {
3400 PyThreadState* __tstate = wxPyBeginAllowThreads();
3401 (arg1)->SetSelection(arg2);
3402
3403 wxPyEndAllowThreads(__tstate);
3404 if (PyErr_Occurred()) SWIG_fail;
3405 }
3406 Py_INCREF(Py_None); resultobj = Py_None;
3407 return resultobj;
3408 fail:
3409 return NULL;
3410 }
3411
3412
3413 static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3414 PyObject *resultobj;
3415 wxComboBox *arg1 = (wxComboBox *) 0 ;
3416 long arg2 ;
3417 long arg3 ;
3418 PyObject * obj0 = 0 ;
3419 PyObject * obj1 = 0 ;
3420 PyObject * obj2 = 0 ;
3421 char *kwnames[] = {
3422 (char *) "self",(char *) "from",(char *) "to", NULL
3423 };
3424
3425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3428 arg2 = (long) SWIG_AsLong(obj1);
3429 if (PyErr_Occurred()) SWIG_fail;
3430 arg3 = (long) SWIG_AsLong(obj2);
3431 if (PyErr_Occurred()) SWIG_fail;
3432 {
3433 PyThreadState* __tstate = wxPyBeginAllowThreads();
3434 (arg1)->SetSelection(arg2,arg3);
3435
3436 wxPyEndAllowThreads(__tstate);
3437 if (PyErr_Occurred()) SWIG_fail;
3438 }
3439 Py_INCREF(Py_None); resultobj = Py_None;
3440 return resultobj;
3441 fail:
3442 return NULL;
3443 }
3444
3445
3446 static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3447 PyObject *resultobj;
3448 wxComboBox *arg1 = (wxComboBox *) 0 ;
3449 bool arg2 ;
3450 PyObject * obj0 = 0 ;
3451 PyObject * obj1 = 0 ;
3452 char *kwnames[] = {
3453 (char *) "self",(char *) "editable", NULL
3454 };
3455
3456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3459 arg2 = (bool) SWIG_AsBool(obj1);
3460 if (PyErr_Occurred()) SWIG_fail;
3461 {
3462 PyThreadState* __tstate = wxPyBeginAllowThreads();
3463 (arg1)->SetEditable(arg2);
3464
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) SWIG_fail;
3467 }
3468 Py_INCREF(Py_None); resultobj = Py_None;
3469 return resultobj;
3470 fail:
3471 return NULL;
3472 }
3473
3474
3475 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3476 PyObject *resultobj;
3477 wxComboBox *arg1 = (wxComboBox *) 0 ;
3478 PyObject * obj0 = 0 ;
3479 char *kwnames[] = {
3480 (char *) "self", NULL
3481 };
3482
3483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3486 {
3487 PyThreadState* __tstate = wxPyBeginAllowThreads();
3488 (arg1)->SetInsertionPointEnd();
3489
3490 wxPyEndAllowThreads(__tstate);
3491 if (PyErr_Occurred()) SWIG_fail;
3492 }
3493 Py_INCREF(Py_None); resultobj = Py_None;
3494 return resultobj;
3495 fail:
3496 return NULL;
3497 }
3498
3499
3500 static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3501 PyObject *resultobj;
3502 wxComboBox *arg1 = (wxComboBox *) 0 ;
3503 long arg2 ;
3504 long arg3 ;
3505 PyObject * obj0 = 0 ;
3506 PyObject * obj1 = 0 ;
3507 PyObject * obj2 = 0 ;
3508 char *kwnames[] = {
3509 (char *) "self",(char *) "from",(char *) "to", NULL
3510 };
3511
3512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3515 arg2 = (long) SWIG_AsLong(obj1);
3516 if (PyErr_Occurred()) SWIG_fail;
3517 arg3 = (long) SWIG_AsLong(obj2);
3518 if (PyErr_Occurred()) SWIG_fail;
3519 {
3520 PyThreadState* __tstate = wxPyBeginAllowThreads();
3521 (arg1)->Remove(arg2,arg3);
3522
3523 wxPyEndAllowThreads(__tstate);
3524 if (PyErr_Occurred()) SWIG_fail;
3525 }
3526 Py_INCREF(Py_None); resultobj = Py_None;
3527 return resultobj;
3528 fail:
3529 return NULL;
3530 }
3531
3532
3533 static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3534 PyObject *obj;
3535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3536 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3537 Py_INCREF(obj);
3538 return Py_BuildValue((char *)"");
3539 }
3540 static int _wrap_GaugeNameStr_set(PyObject *_val) {
3541 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3542 return 1;
3543 }
3544
3545
3546 static PyObject *_wrap_GaugeNameStr_get() {
3547 PyObject *pyobj;
3548
3549 {
3550 #if wxUSE_UNICODE
3551 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3552 #else
3553 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3554 #endif
3555 }
3556 return pyobj;
3557 }
3558
3559
3560 static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3561 PyObject *resultobj;
3562 wxWindow *arg1 = (wxWindow *) 0 ;
3563 int arg2 ;
3564 int arg3 ;
3565 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3566 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3567 wxSize const &arg5_defvalue = wxDefaultSize ;
3568 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3569 long arg6 = (long) wxGA_HORIZONTAL ;
3570 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3571 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3572 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3573 wxString *arg8 = (wxString *) &arg8_defvalue ;
3574 wxGauge *result;
3575 wxPoint temp4 ;
3576 wxSize temp5 ;
3577 bool temp8 = False ;
3578 PyObject * obj0 = 0 ;
3579 PyObject * obj1 = 0 ;
3580 PyObject * obj2 = 0 ;
3581 PyObject * obj3 = 0 ;
3582 PyObject * obj4 = 0 ;
3583 PyObject * obj5 = 0 ;
3584 PyObject * obj6 = 0 ;
3585 PyObject * obj7 = 0 ;
3586 char *kwnames[] = {
3587 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3588 };
3589
3590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3593 arg2 = (int) SWIG_AsInt(obj1);
3594 if (PyErr_Occurred()) SWIG_fail;
3595 arg3 = (int) SWIG_AsInt(obj2);
3596 if (PyErr_Occurred()) SWIG_fail;
3597 if (obj3) {
3598 {
3599 arg4 = &temp4;
3600 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3601 }
3602 }
3603 if (obj4) {
3604 {
3605 arg5 = &temp5;
3606 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3607 }
3608 }
3609 if (obj5) {
3610 arg6 = (long) SWIG_AsLong(obj5);
3611 if (PyErr_Occurred()) SWIG_fail;
3612 }
3613 if (obj6) {
3614 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3615 SWIG_POINTER_EXCEPTION | 0)) == -1)
3616 SWIG_fail;
3617 if (arg7 == NULL) {
3618 PyErr_SetString(PyExc_TypeError,"null reference");
3619 SWIG_fail;
3620 }
3621 }
3622 if (obj7) {
3623 {
3624 arg8 = wxString_in_helper(obj7);
3625 if (arg8 == NULL) SWIG_fail;
3626 temp8 = True;
3627 }
3628 }
3629 {
3630 PyThreadState* __tstate = wxPyBeginAllowThreads();
3631 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3632
3633 wxPyEndAllowThreads(__tstate);
3634 if (PyErr_Occurred()) SWIG_fail;
3635 }
3636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3637 {
3638 if (temp8)
3639 delete arg8;
3640 }
3641 return resultobj;
3642 fail:
3643 {
3644 if (temp8)
3645 delete arg8;
3646 }
3647 return NULL;
3648 }
3649
3650
3651 static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3652 PyObject *resultobj;
3653 wxGauge *result;
3654 char *kwnames[] = {
3655 NULL
3656 };
3657
3658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3659 {
3660 PyThreadState* __tstate = wxPyBeginAllowThreads();
3661 result = (wxGauge *)new wxGauge();
3662
3663 wxPyEndAllowThreads(__tstate);
3664 if (PyErr_Occurred()) SWIG_fail;
3665 }
3666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3667 return resultobj;
3668 fail:
3669 return NULL;
3670 }
3671
3672
3673 static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3674 PyObject *resultobj;
3675 wxGauge *arg1 = (wxGauge *) 0 ;
3676 wxWindow *arg2 = (wxWindow *) 0 ;
3677 int arg3 ;
3678 int arg4 ;
3679 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3680 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3681 wxSize const &arg6_defvalue = wxDefaultSize ;
3682 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3683 long arg7 = (long) wxGA_HORIZONTAL ;
3684 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3685 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3686 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3687 wxString *arg9 = (wxString *) &arg9_defvalue ;
3688 bool result;
3689 wxPoint temp5 ;
3690 wxSize temp6 ;
3691 bool temp9 = False ;
3692 PyObject * obj0 = 0 ;
3693 PyObject * obj1 = 0 ;
3694 PyObject * obj2 = 0 ;
3695 PyObject * obj3 = 0 ;
3696 PyObject * obj4 = 0 ;
3697 PyObject * obj5 = 0 ;
3698 PyObject * obj6 = 0 ;
3699 PyObject * obj7 = 0 ;
3700 PyObject * obj8 = 0 ;
3701 char *kwnames[] = {
3702 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3703 };
3704
3705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3710 arg3 = (int) SWIG_AsInt(obj2);
3711 if (PyErr_Occurred()) SWIG_fail;
3712 arg4 = (int) SWIG_AsInt(obj3);
3713 if (PyErr_Occurred()) SWIG_fail;
3714 if (obj4) {
3715 {
3716 arg5 = &temp5;
3717 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3718 }
3719 }
3720 if (obj5) {
3721 {
3722 arg6 = &temp6;
3723 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3724 }
3725 }
3726 if (obj6) {
3727 arg7 = (long) SWIG_AsLong(obj6);
3728 if (PyErr_Occurred()) SWIG_fail;
3729 }
3730 if (obj7) {
3731 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3732 SWIG_POINTER_EXCEPTION | 0)) == -1)
3733 SWIG_fail;
3734 if (arg8 == NULL) {
3735 PyErr_SetString(PyExc_TypeError,"null reference");
3736 SWIG_fail;
3737 }
3738 }
3739 if (obj8) {
3740 {
3741 arg9 = wxString_in_helper(obj8);
3742 if (arg9 == NULL) SWIG_fail;
3743 temp9 = True;
3744 }
3745 }
3746 {
3747 PyThreadState* __tstate = wxPyBeginAllowThreads();
3748 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3749
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 {
3754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3755 }
3756 {
3757 if (temp9)
3758 delete arg9;
3759 }
3760 return resultobj;
3761 fail:
3762 {
3763 if (temp9)
3764 delete arg9;
3765 }
3766 return NULL;
3767 }
3768
3769
3770 static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3771 PyObject *resultobj;
3772 wxGauge *arg1 = (wxGauge *) 0 ;
3773 int arg2 ;
3774 PyObject * obj0 = 0 ;
3775 PyObject * obj1 = 0 ;
3776 char *kwnames[] = {
3777 (char *) "self",(char *) "range", NULL
3778 };
3779
3780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
3781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3783 arg2 = (int) SWIG_AsInt(obj1);
3784 if (PyErr_Occurred()) SWIG_fail;
3785 {
3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
3787 (arg1)->SetRange(arg2);
3788
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 Py_INCREF(Py_None); resultobj = Py_None;
3793 return resultobj;
3794 fail:
3795 return NULL;
3796 }
3797
3798
3799 static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3800 PyObject *resultobj;
3801 wxGauge *arg1 = (wxGauge *) 0 ;
3802 int result;
3803 PyObject * obj0 = 0 ;
3804 char *kwnames[] = {
3805 (char *) "self", NULL
3806 };
3807
3808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
3809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3811 {
3812 PyThreadState* __tstate = wxPyBeginAllowThreads();
3813 result = (int)((wxGauge const *)arg1)->GetRange();
3814
3815 wxPyEndAllowThreads(__tstate);
3816 if (PyErr_Occurred()) SWIG_fail;
3817 }
3818 resultobj = SWIG_FromInt((int)result);
3819 return resultobj;
3820 fail:
3821 return NULL;
3822 }
3823
3824
3825 static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3826 PyObject *resultobj;
3827 wxGauge *arg1 = (wxGauge *) 0 ;
3828 int arg2 ;
3829 PyObject * obj0 = 0 ;
3830 PyObject * obj1 = 0 ;
3831 char *kwnames[] = {
3832 (char *) "self",(char *) "pos", NULL
3833 };
3834
3835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
3836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3838 arg2 = (int) SWIG_AsInt(obj1);
3839 if (PyErr_Occurred()) SWIG_fail;
3840 {
3841 PyThreadState* __tstate = wxPyBeginAllowThreads();
3842 (arg1)->SetValue(arg2);
3843
3844 wxPyEndAllowThreads(__tstate);
3845 if (PyErr_Occurred()) SWIG_fail;
3846 }
3847 Py_INCREF(Py_None); resultobj = Py_None;
3848 return resultobj;
3849 fail:
3850 return NULL;
3851 }
3852
3853
3854 static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3855 PyObject *resultobj;
3856 wxGauge *arg1 = (wxGauge *) 0 ;
3857 int result;
3858 PyObject * obj0 = 0 ;
3859 char *kwnames[] = {
3860 (char *) "self", NULL
3861 };
3862
3863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
3864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3866 {
3867 PyThreadState* __tstate = wxPyBeginAllowThreads();
3868 result = (int)((wxGauge const *)arg1)->GetValue();
3869
3870 wxPyEndAllowThreads(__tstate);
3871 if (PyErr_Occurred()) SWIG_fail;
3872 }
3873 resultobj = SWIG_FromInt((int)result);
3874 return resultobj;
3875 fail:
3876 return NULL;
3877 }
3878
3879
3880 static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
3881 PyObject *resultobj;
3882 wxGauge *arg1 = (wxGauge *) 0 ;
3883 bool result;
3884 PyObject * obj0 = 0 ;
3885 char *kwnames[] = {
3886 (char *) "self", NULL
3887 };
3888
3889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
3890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3892 {
3893 PyThreadState* __tstate = wxPyBeginAllowThreads();
3894 result = (bool)((wxGauge const *)arg1)->IsVertical();
3895
3896 wxPyEndAllowThreads(__tstate);
3897 if (PyErr_Occurred()) SWIG_fail;
3898 }
3899 {
3900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3901 }
3902 return resultobj;
3903 fail:
3904 return NULL;
3905 }
3906
3907
3908 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3909 PyObject *resultobj;
3910 wxGauge *arg1 = (wxGauge *) 0 ;
3911 int arg2 ;
3912 PyObject * obj0 = 0 ;
3913 PyObject * obj1 = 0 ;
3914 char *kwnames[] = {
3915 (char *) "self",(char *) "w", NULL
3916 };
3917
3918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
3919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3921 arg2 = (int) SWIG_AsInt(obj1);
3922 if (PyErr_Occurred()) SWIG_fail;
3923 {
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 (arg1)->SetShadowWidth(arg2);
3926
3927 wxPyEndAllowThreads(__tstate);
3928 if (PyErr_Occurred()) SWIG_fail;
3929 }
3930 Py_INCREF(Py_None); resultobj = Py_None;
3931 return resultobj;
3932 fail:
3933 return NULL;
3934 }
3935
3936
3937 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3938 PyObject *resultobj;
3939 wxGauge *arg1 = (wxGauge *) 0 ;
3940 int result;
3941 PyObject * obj0 = 0 ;
3942 char *kwnames[] = {
3943 (char *) "self", NULL
3944 };
3945
3946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
3947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3949 {
3950 PyThreadState* __tstate = wxPyBeginAllowThreads();
3951 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
3952
3953 wxPyEndAllowThreads(__tstate);
3954 if (PyErr_Occurred()) SWIG_fail;
3955 }
3956 resultobj = SWIG_FromInt((int)result);
3957 return resultobj;
3958 fail:
3959 return NULL;
3960 }
3961
3962
3963 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3964 PyObject *resultobj;
3965 wxGauge *arg1 = (wxGauge *) 0 ;
3966 int arg2 ;
3967 PyObject * obj0 = 0 ;
3968 PyObject * obj1 = 0 ;
3969 char *kwnames[] = {
3970 (char *) "self",(char *) "w", NULL
3971 };
3972
3973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
3974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3976 arg2 = (int) SWIG_AsInt(obj1);
3977 if (PyErr_Occurred()) SWIG_fail;
3978 {
3979 PyThreadState* __tstate = wxPyBeginAllowThreads();
3980 (arg1)->SetBezelFace(arg2);
3981
3982 wxPyEndAllowThreads(__tstate);
3983 if (PyErr_Occurred()) SWIG_fail;
3984 }
3985 Py_INCREF(Py_None); resultobj = Py_None;
3986 return resultobj;
3987 fail:
3988 return NULL;
3989 }
3990
3991
3992 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3993 PyObject *resultobj;
3994 wxGauge *arg1 = (wxGauge *) 0 ;
3995 int result;
3996 PyObject * obj0 = 0 ;
3997 char *kwnames[] = {
3998 (char *) "self", NULL
3999 };
4000
4001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4004 {
4005 PyThreadState* __tstate = wxPyBeginAllowThreads();
4006 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4007
4008 wxPyEndAllowThreads(__tstate);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 resultobj = SWIG_FromInt((int)result);
4012 return resultobj;
4013 fail:
4014 return NULL;
4015 }
4016
4017
4018 static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
4019 PyObject *obj;
4020 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4021 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4022 Py_INCREF(obj);
4023 return Py_BuildValue((char *)"");
4024 }
4025 static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
4026 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4027 return 1;
4028 }
4029
4030
4031 static PyObject *_wrap_StaticBitmapNameStr_get() {
4032 PyObject *pyobj;
4033
4034 {
4035 #if wxUSE_UNICODE
4036 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4037 #else
4038 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4039 #endif
4040 }
4041 return pyobj;
4042 }
4043
4044
4045 static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
4046 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4047 return 1;
4048 }
4049
4050
4051 static PyObject *_wrap_StaticBoxNameStr_get() {
4052 PyObject *pyobj;
4053
4054 {
4055 #if wxUSE_UNICODE
4056 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4057 #else
4058 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4059 #endif
4060 }
4061 return pyobj;
4062 }
4063
4064
4065 static int _wrap_StaticTextNameStr_set(PyObject *_val) {
4066 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4067 return 1;
4068 }
4069
4070
4071 static PyObject *_wrap_StaticTextNameStr_get() {
4072 PyObject *pyobj;
4073
4074 {
4075 #if wxUSE_UNICODE
4076 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4077 #else
4078 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4079 #endif
4080 }
4081 return pyobj;
4082 }
4083
4084
4085 static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4086 PyObject *resultobj;
4087 wxWindow *arg1 = (wxWindow *) 0 ;
4088 int arg2 ;
4089 wxString *arg3 = 0 ;
4090 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4091 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4092 wxSize const &arg5_defvalue = wxDefaultSize ;
4093 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4094 long arg6 = (long) 0 ;
4095 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4096 wxString *arg7 = (wxString *) &arg7_defvalue ;
4097 wxStaticBox *result;
4098 bool temp3 = False ;
4099 wxPoint temp4 ;
4100 wxSize temp5 ;
4101 bool temp7 = False ;
4102 PyObject * obj0 = 0 ;
4103 PyObject * obj1 = 0 ;
4104 PyObject * obj2 = 0 ;
4105 PyObject * obj3 = 0 ;
4106 PyObject * obj4 = 0 ;
4107 PyObject * obj5 = 0 ;
4108 PyObject * obj6 = 0 ;
4109 char *kwnames[] = {
4110 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4111 };
4112
4113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4116 arg2 = (int) SWIG_AsInt(obj1);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 {
4119 arg3 = wxString_in_helper(obj2);
4120 if (arg3 == NULL) SWIG_fail;
4121 temp3 = True;
4122 }
4123 if (obj3) {
4124 {
4125 arg4 = &temp4;
4126 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4127 }
4128 }
4129 if (obj4) {
4130 {
4131 arg5 = &temp5;
4132 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4133 }
4134 }
4135 if (obj5) {
4136 arg6 = (long) SWIG_AsLong(obj5);
4137 if (PyErr_Occurred()) SWIG_fail;
4138 }
4139 if (obj6) {
4140 {
4141 arg7 = wxString_in_helper(obj6);
4142 if (arg7 == NULL) SWIG_fail;
4143 temp7 = True;
4144 }
4145 }
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4149
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 {
4154 resultobj = wxPyMake_wxObject(result);
4155 }
4156 {
4157 if (temp3)
4158 delete arg3;
4159 }
4160 {
4161 if (temp7)
4162 delete arg7;
4163 }
4164 return resultobj;
4165 fail:
4166 {
4167 if (temp3)
4168 delete arg3;
4169 }
4170 {
4171 if (temp7)
4172 delete arg7;
4173 }
4174 return NULL;
4175 }
4176
4177
4178 static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4179 PyObject *resultobj;
4180 wxStaticBox *result;
4181 char *kwnames[] = {
4182 NULL
4183 };
4184
4185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4186 {
4187 PyThreadState* __tstate = wxPyBeginAllowThreads();
4188 result = (wxStaticBox *)new wxStaticBox();
4189
4190 wxPyEndAllowThreads(__tstate);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 }
4193 {
4194 resultobj = wxPyMake_wxObject(result);
4195 }
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj;
4204 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4205 wxWindow *arg2 = (wxWindow *) 0 ;
4206 int arg3 ;
4207 wxString *arg4 = 0 ;
4208 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4209 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4210 wxSize const &arg6_defvalue = wxDefaultSize ;
4211 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4212 long arg7 = (long) 0 ;
4213 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4214 wxString *arg8 = (wxString *) &arg8_defvalue ;
4215 bool result;
4216 bool temp4 = False ;
4217 wxPoint temp5 ;
4218 wxSize temp6 ;
4219 bool temp8 = False ;
4220 PyObject * obj0 = 0 ;
4221 PyObject * obj1 = 0 ;
4222 PyObject * obj2 = 0 ;
4223 PyObject * obj3 = 0 ;
4224 PyObject * obj4 = 0 ;
4225 PyObject * obj5 = 0 ;
4226 PyObject * obj6 = 0 ;
4227 PyObject * obj7 = 0 ;
4228 char *kwnames[] = {
4229 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4230 };
4231
4232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4237 arg3 = (int) SWIG_AsInt(obj2);
4238 if (PyErr_Occurred()) SWIG_fail;
4239 {
4240 arg4 = wxString_in_helper(obj3);
4241 if (arg4 == NULL) SWIG_fail;
4242 temp4 = True;
4243 }
4244 if (obj4) {
4245 {
4246 arg5 = &temp5;
4247 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4248 }
4249 }
4250 if (obj5) {
4251 {
4252 arg6 = &temp6;
4253 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4254 }
4255 }
4256 if (obj6) {
4257 arg7 = (long) SWIG_AsLong(obj6);
4258 if (PyErr_Occurred()) SWIG_fail;
4259 }
4260 if (obj7) {
4261 {
4262 arg8 = wxString_in_helper(obj7);
4263 if (arg8 == NULL) SWIG_fail;
4264 temp8 = True;
4265 }
4266 }
4267 {
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4270
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 {
4275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4276 }
4277 {
4278 if (temp4)
4279 delete arg4;
4280 }
4281 {
4282 if (temp8)
4283 delete arg8;
4284 }
4285 return resultobj;
4286 fail:
4287 {
4288 if (temp4)
4289 delete arg4;
4290 }
4291 {
4292 if (temp8)
4293 delete arg8;
4294 }
4295 return NULL;
4296 }
4297
4298
4299 static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4300 PyObject *obj;
4301 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4302 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4303 Py_INCREF(obj);
4304 return Py_BuildValue((char *)"");
4305 }
4306 static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4307 PyObject *resultobj;
4308 wxWindow *arg1 = (wxWindow *) 0 ;
4309 int arg2 ;
4310 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4311 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4312 wxSize const &arg4_defvalue = wxDefaultSize ;
4313 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4314 long arg5 = (long) wxLI_HORIZONTAL ;
4315 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4316 wxString *arg6 = (wxString *) &arg6_defvalue ;
4317 wxStaticLine *result;
4318 wxPoint temp3 ;
4319 wxSize temp4 ;
4320 bool temp6 = False ;
4321 PyObject * obj0 = 0 ;
4322 PyObject * obj1 = 0 ;
4323 PyObject * obj2 = 0 ;
4324 PyObject * obj3 = 0 ;
4325 PyObject * obj4 = 0 ;
4326 PyObject * obj5 = 0 ;
4327 char *kwnames[] = {
4328 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4329 };
4330
4331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4334 arg2 = (int) SWIG_AsInt(obj1);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 if (obj2) {
4337 {
4338 arg3 = &temp3;
4339 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4340 }
4341 }
4342 if (obj3) {
4343 {
4344 arg4 = &temp4;
4345 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4346 }
4347 }
4348 if (obj4) {
4349 arg5 = (long) SWIG_AsLong(obj4);
4350 if (PyErr_Occurred()) SWIG_fail;
4351 }
4352 if (obj5) {
4353 {
4354 arg6 = wxString_in_helper(obj5);
4355 if (arg6 == NULL) SWIG_fail;
4356 temp6 = True;
4357 }
4358 }
4359 {
4360 PyThreadState* __tstate = wxPyBeginAllowThreads();
4361 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4362
4363 wxPyEndAllowThreads(__tstate);
4364 if (PyErr_Occurred()) SWIG_fail;
4365 }
4366 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4367 {
4368 if (temp6)
4369 delete arg6;
4370 }
4371 return resultobj;
4372 fail:
4373 {
4374 if (temp6)
4375 delete arg6;
4376 }
4377 return NULL;
4378 }
4379
4380
4381 static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4382 PyObject *resultobj;
4383 wxStaticLine *result;
4384 char *kwnames[] = {
4385 NULL
4386 };
4387
4388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 result = (wxStaticLine *)new wxStaticLine();
4392
4393 wxPyEndAllowThreads(__tstate);
4394 if (PyErr_Occurred()) SWIG_fail;
4395 }
4396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4397 return resultobj;
4398 fail:
4399 return NULL;
4400 }
4401
4402
4403 static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4404 PyObject *resultobj;
4405 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4406 wxWindow *arg2 = (wxWindow *) 0 ;
4407 int arg3 ;
4408 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4409 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4410 wxSize const &arg5_defvalue = wxDefaultSize ;
4411 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4412 long arg6 = (long) wxLI_HORIZONTAL ;
4413 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4414 wxString *arg7 = (wxString *) &arg7_defvalue ;
4415 bool result;
4416 wxPoint temp4 ;
4417 wxSize temp5 ;
4418 bool temp7 = False ;
4419 PyObject * obj0 = 0 ;
4420 PyObject * obj1 = 0 ;
4421 PyObject * obj2 = 0 ;
4422 PyObject * obj3 = 0 ;
4423 PyObject * obj4 = 0 ;
4424 PyObject * obj5 = 0 ;
4425 PyObject * obj6 = 0 ;
4426 char *kwnames[] = {
4427 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4428 };
4429
4430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4433 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4435 arg3 = (int) SWIG_AsInt(obj2);
4436 if (PyErr_Occurred()) SWIG_fail;
4437 if (obj3) {
4438 {
4439 arg4 = &temp4;
4440 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4441 }
4442 }
4443 if (obj4) {
4444 {
4445 arg5 = &temp5;
4446 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4447 }
4448 }
4449 if (obj5) {
4450 arg6 = (long) SWIG_AsLong(obj5);
4451 if (PyErr_Occurred()) SWIG_fail;
4452 }
4453 if (obj6) {
4454 {
4455 arg7 = wxString_in_helper(obj6);
4456 if (arg7 == NULL) SWIG_fail;
4457 temp7 = True;
4458 }
4459 }
4460 {
4461 PyThreadState* __tstate = wxPyBeginAllowThreads();
4462 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4463
4464 wxPyEndAllowThreads(__tstate);
4465 if (PyErr_Occurred()) SWIG_fail;
4466 }
4467 {
4468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4469 }
4470 {
4471 if (temp7)
4472 delete arg7;
4473 }
4474 return resultobj;
4475 fail:
4476 {
4477 if (temp7)
4478 delete arg7;
4479 }
4480 return NULL;
4481 }
4482
4483
4484 static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4485 PyObject *resultobj;
4486 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4487 bool result;
4488 PyObject * obj0 = 0 ;
4489 char *kwnames[] = {
4490 (char *) "self", NULL
4491 };
4492
4493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4496 {
4497 PyThreadState* __tstate = wxPyBeginAllowThreads();
4498 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4499
4500 wxPyEndAllowThreads(__tstate);
4501 if (PyErr_Occurred()) SWIG_fail;
4502 }
4503 {
4504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4505 }
4506 return resultobj;
4507 fail:
4508 return NULL;
4509 }
4510
4511
4512 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4513 PyObject *resultobj;
4514 int result;
4515 char *kwnames[] = {
4516 NULL
4517 };
4518
4519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4520 {
4521 PyThreadState* __tstate = wxPyBeginAllowThreads();
4522 result = (int)wxStaticLine::GetDefaultSize();
4523
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4527 resultobj = SWIG_FromInt((int)result);
4528 return resultobj;
4529 fail:
4530 return NULL;
4531 }
4532
4533
4534 static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4535 PyObject *obj;
4536 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4537 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4538 Py_INCREF(obj);
4539 return Py_BuildValue((char *)"");
4540 }
4541 static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4542 PyObject *resultobj;
4543 wxWindow *arg1 = (wxWindow *) 0 ;
4544 int arg2 ;
4545 wxString *arg3 = 0 ;
4546 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4547 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4548 wxSize const &arg5_defvalue = wxDefaultSize ;
4549 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4550 long arg6 = (long) 0 ;
4551 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4552 wxString *arg7 = (wxString *) &arg7_defvalue ;
4553 wxStaticText *result;
4554 bool temp3 = False ;
4555 wxPoint temp4 ;
4556 wxSize temp5 ;
4557 bool temp7 = False ;
4558 PyObject * obj0 = 0 ;
4559 PyObject * obj1 = 0 ;
4560 PyObject * obj2 = 0 ;
4561 PyObject * obj3 = 0 ;
4562 PyObject * obj4 = 0 ;
4563 PyObject * obj5 = 0 ;
4564 PyObject * obj6 = 0 ;
4565 char *kwnames[] = {
4566 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4567 };
4568
4569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4572 arg2 = (int) SWIG_AsInt(obj1);
4573 if (PyErr_Occurred()) SWIG_fail;
4574 {
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = True;
4578 }
4579 if (obj3) {
4580 {
4581 arg4 = &temp4;
4582 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4583 }
4584 }
4585 if (obj4) {
4586 {
4587 arg5 = &temp5;
4588 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4589 }
4590 }
4591 if (obj5) {
4592 arg6 = (long) SWIG_AsLong(obj5);
4593 if (PyErr_Occurred()) SWIG_fail;
4594 }
4595 if (obj6) {
4596 {
4597 arg7 = wxString_in_helper(obj6);
4598 if (arg7 == NULL) SWIG_fail;
4599 temp7 = True;
4600 }
4601 }
4602 {
4603 PyThreadState* __tstate = wxPyBeginAllowThreads();
4604 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4605
4606 wxPyEndAllowThreads(__tstate);
4607 if (PyErr_Occurred()) SWIG_fail;
4608 }
4609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4610 {
4611 if (temp3)
4612 delete arg3;
4613 }
4614 {
4615 if (temp7)
4616 delete arg7;
4617 }
4618 return resultobj;
4619 fail:
4620 {
4621 if (temp3)
4622 delete arg3;
4623 }
4624 {
4625 if (temp7)
4626 delete arg7;
4627 }
4628 return NULL;
4629 }
4630
4631
4632 static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4633 PyObject *resultobj;
4634 wxStaticText *result;
4635 char *kwnames[] = {
4636 NULL
4637 };
4638
4639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4640 {
4641 PyThreadState* __tstate = wxPyBeginAllowThreads();
4642 result = (wxStaticText *)new wxStaticText();
4643
4644 wxPyEndAllowThreads(__tstate);
4645 if (PyErr_Occurred()) SWIG_fail;
4646 }
4647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4648 return resultobj;
4649 fail:
4650 return NULL;
4651 }
4652
4653
4654 static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4655 PyObject *resultobj;
4656 wxStaticText *arg1 = (wxStaticText *) 0 ;
4657 wxWindow *arg2 = (wxWindow *) 0 ;
4658 int arg3 ;
4659 wxString *arg4 = 0 ;
4660 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4661 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4662 wxSize const &arg6_defvalue = wxDefaultSize ;
4663 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4664 long arg7 = (long) 0 ;
4665 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4666 wxString *arg8 = (wxString *) &arg8_defvalue ;
4667 bool result;
4668 bool temp4 = False ;
4669 wxPoint temp5 ;
4670 wxSize temp6 ;
4671 bool temp8 = False ;
4672 PyObject * obj0 = 0 ;
4673 PyObject * obj1 = 0 ;
4674 PyObject * obj2 = 0 ;
4675 PyObject * obj3 = 0 ;
4676 PyObject * obj4 = 0 ;
4677 PyObject * obj5 = 0 ;
4678 PyObject * obj6 = 0 ;
4679 PyObject * obj7 = 0 ;
4680 char *kwnames[] = {
4681 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4682 };
4683
4684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
4686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4687 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4689 arg3 = (int) SWIG_AsInt(obj2);
4690 if (PyErr_Occurred()) SWIG_fail;
4691 {
4692 arg4 = wxString_in_helper(obj3);
4693 if (arg4 == NULL) SWIG_fail;
4694 temp4 = True;
4695 }
4696 if (obj4) {
4697 {
4698 arg5 = &temp5;
4699 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4700 }
4701 }
4702 if (obj5) {
4703 {
4704 arg6 = &temp6;
4705 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4706 }
4707 }
4708 if (obj6) {
4709 arg7 = (long) SWIG_AsLong(obj6);
4710 if (PyErr_Occurred()) SWIG_fail;
4711 }
4712 if (obj7) {
4713 {
4714 arg8 = wxString_in_helper(obj7);
4715 if (arg8 == NULL) SWIG_fail;
4716 temp8 = True;
4717 }
4718 }
4719 {
4720 PyThreadState* __tstate = wxPyBeginAllowThreads();
4721 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4722
4723 wxPyEndAllowThreads(__tstate);
4724 if (PyErr_Occurred()) SWIG_fail;
4725 }
4726 {
4727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4728 }
4729 {
4730 if (temp4)
4731 delete arg4;
4732 }
4733 {
4734 if (temp8)
4735 delete arg8;
4736 }
4737 return resultobj;
4738 fail:
4739 {
4740 if (temp4)
4741 delete arg4;
4742 }
4743 {
4744 if (temp8)
4745 delete arg8;
4746 }
4747 return NULL;
4748 }
4749
4750
4751 static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
4752 PyObject *obj;
4753 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4754 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
4755 Py_INCREF(obj);
4756 return Py_BuildValue((char *)"");
4757 }
4758 static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4759 PyObject *resultobj;
4760 wxWindow *arg1 = (wxWindow *) 0 ;
4761 int arg2 ;
4762 wxBitmap *arg3 = 0 ;
4763 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4764 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4765 wxSize const &arg5_defvalue = wxDefaultSize ;
4766 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4767 long arg6 = (long) 0 ;
4768 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
4769 wxString *arg7 = (wxString *) &arg7_defvalue ;
4770 wxStaticBitmap *result;
4771 wxPoint temp4 ;
4772 wxSize temp5 ;
4773 bool temp7 = False ;
4774 PyObject * obj0 = 0 ;
4775 PyObject * obj1 = 0 ;
4776 PyObject * obj2 = 0 ;
4777 PyObject * obj3 = 0 ;
4778 PyObject * obj4 = 0 ;
4779 PyObject * obj5 = 0 ;
4780 PyObject * obj6 = 0 ;
4781 char *kwnames[] = {
4782 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4783 };
4784
4785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4788 arg2 = (int) SWIG_AsInt(obj1);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
4791 SWIG_POINTER_EXCEPTION | 0)) == -1)
4792 SWIG_fail;
4793 if (arg3 == NULL) {
4794 PyErr_SetString(PyExc_TypeError,"null reference");
4795 SWIG_fail;
4796 }
4797 if (obj3) {
4798 {
4799 arg4 = &temp4;
4800 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4801 }
4802 }
4803 if (obj4) {
4804 {
4805 arg5 = &temp5;
4806 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4807 }
4808 }
4809 if (obj5) {
4810 arg6 = (long) SWIG_AsLong(obj5);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 if (obj6) {
4814 {
4815 arg7 = wxString_in_helper(obj6);
4816 if (arg7 == NULL) SWIG_fail;
4817 temp7 = True;
4818 }
4819 }
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4823
4824 wxPyEndAllowThreads(__tstate);
4825 if (PyErr_Occurred()) SWIG_fail;
4826 }
4827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
4828 {
4829 if (temp7)
4830 delete arg7;
4831 }
4832 return resultobj;
4833 fail:
4834 {
4835 if (temp7)
4836 delete arg7;
4837 }
4838 return NULL;
4839 }
4840
4841
4842 static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4843 PyObject *resultobj;
4844 wxStaticBitmap *result;
4845 char *kwnames[] = {
4846 NULL
4847 };
4848
4849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 result = (wxStaticBitmap *)new wxStaticBitmap();
4853
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 }
4857 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
4858 return resultobj;
4859 fail:
4860 return NULL;
4861 }
4862
4863
4864 static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj;
4866 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4867 wxWindow *arg2 = (wxWindow *) 0 ;
4868 int arg3 ;
4869 wxBitmap *arg4 = 0 ;
4870 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4871 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4872 wxSize const &arg6_defvalue = wxDefaultSize ;
4873 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4874 long arg7 = (long) 0 ;
4875 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
4876 wxString *arg8 = (wxString *) &arg8_defvalue ;
4877 bool result;
4878 wxPoint temp5 ;
4879 wxSize temp6 ;
4880 bool temp8 = False ;
4881 PyObject * obj0 = 0 ;
4882 PyObject * obj1 = 0 ;
4883 PyObject * obj2 = 0 ;
4884 PyObject * obj3 = 0 ;
4885 PyObject * obj4 = 0 ;
4886 PyObject * obj5 = 0 ;
4887 PyObject * obj6 = 0 ;
4888 PyObject * obj7 = 0 ;
4889 char *kwnames[] = {
4890 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4891 };
4892
4893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4896 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4898 arg3 = (int) SWIG_AsInt(obj2);
4899 if (PyErr_Occurred()) SWIG_fail;
4900 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
4901 SWIG_POINTER_EXCEPTION | 0)) == -1)
4902 SWIG_fail;
4903 if (arg4 == NULL) {
4904 PyErr_SetString(PyExc_TypeError,"null reference");
4905 SWIG_fail;
4906 }
4907 if (obj4) {
4908 {
4909 arg5 = &temp5;
4910 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4911 }
4912 }
4913 if (obj5) {
4914 {
4915 arg6 = &temp6;
4916 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4917 }
4918 }
4919 if (obj6) {
4920 arg7 = (long) SWIG_AsLong(obj6);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 }
4923 if (obj7) {
4924 {
4925 arg8 = wxString_in_helper(obj7);
4926 if (arg8 == NULL) SWIG_fail;
4927 temp8 = True;
4928 }
4929 }
4930 {
4931 PyThreadState* __tstate = wxPyBeginAllowThreads();
4932 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4933
4934 wxPyEndAllowThreads(__tstate);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 }
4937 {
4938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4939 }
4940 {
4941 if (temp8)
4942 delete arg8;
4943 }
4944 return resultobj;
4945 fail:
4946 {
4947 if (temp8)
4948 delete arg8;
4949 }
4950 return NULL;
4951 }
4952
4953
4954 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4955 PyObject *resultobj;
4956 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4957 wxBitmap result;
4958 PyObject * obj0 = 0 ;
4959 char *kwnames[] = {
4960 (char *) "self", NULL
4961 };
4962
4963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
4964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4966 {
4967 PyThreadState* __tstate = wxPyBeginAllowThreads();
4968 result = (arg1)->GetBitmap();
4969
4970 wxPyEndAllowThreads(__tstate);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 }
4973 {
4974 wxBitmap * resultptr;
4975 resultptr = new wxBitmap((wxBitmap &) result);
4976 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
4977 }
4978 return resultobj;
4979 fail:
4980 return NULL;
4981 }
4982
4983
4984 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4985 PyObject *resultobj;
4986 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4987 wxBitmap *arg2 = 0 ;
4988 PyObject * obj0 = 0 ;
4989 PyObject * obj1 = 0 ;
4990 char *kwnames[] = {
4991 (char *) "self",(char *) "bitmap", NULL
4992 };
4993
4994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
4995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4998 SWIG_POINTER_EXCEPTION | 0)) == -1)
4999 SWIG_fail;
5000 if (arg2 == NULL) {
5001 PyErr_SetString(PyExc_TypeError,"null reference");
5002 SWIG_fail;
5003 }
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5007
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 Py_INCREF(Py_None); resultobj = Py_None;
5012 return resultobj;
5013 fail:
5014 return NULL;
5015 }
5016
5017
5018 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5019 PyObject *resultobj;
5020 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5021 wxIcon *arg2 = 0 ;
5022 PyObject * obj0 = 0 ;
5023 PyObject * obj1 = 0 ;
5024 char *kwnames[] = {
5025 (char *) "self",(char *) "icon", NULL
5026 };
5027
5028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5032 SWIG_POINTER_EXCEPTION | 0)) == -1)
5033 SWIG_fail;
5034 if (arg2 == NULL) {
5035 PyErr_SetString(PyExc_TypeError,"null reference");
5036 SWIG_fail;
5037 }
5038 {
5039 PyThreadState* __tstate = wxPyBeginAllowThreads();
5040 (arg1)->SetIcon((wxIcon const &)*arg2);
5041
5042 wxPyEndAllowThreads(__tstate);
5043 if (PyErr_Occurred()) SWIG_fail;
5044 }
5045 Py_INCREF(Py_None); resultobj = Py_None;
5046 return resultobj;
5047 fail:
5048 return NULL;
5049 }
5050
5051
5052 static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
5053 PyObject *obj;
5054 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5055 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5056 Py_INCREF(obj);
5057 return Py_BuildValue((char *)"");
5058 }
5059 static int _wrap_ListBoxNameStr_set(PyObject *_val) {
5060 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5061 return 1;
5062 }
5063
5064
5065 static PyObject *_wrap_ListBoxNameStr_get() {
5066 PyObject *pyobj;
5067
5068 {
5069 #if wxUSE_UNICODE
5070 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5071 #else
5072 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5073 #endif
5074 }
5075 return pyobj;
5076 }
5077
5078
5079 static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5080 PyObject *resultobj;
5081 wxWindow *arg1 = (wxWindow *) 0 ;
5082 int arg2 ;
5083 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5084 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5085 wxSize const &arg4_defvalue = wxDefaultSize ;
5086 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5087 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5088 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5089 long arg6 = (long) 0 ;
5090 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5091 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5092 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5093 wxString *arg8 = (wxString *) &arg8_defvalue ;
5094 wxListBox *result;
5095 wxPoint temp3 ;
5096 wxSize temp4 ;
5097 bool temp5 = False ;
5098 bool temp8 = False ;
5099 PyObject * obj0 = 0 ;
5100 PyObject * obj1 = 0 ;
5101 PyObject * obj2 = 0 ;
5102 PyObject * obj3 = 0 ;
5103 PyObject * obj4 = 0 ;
5104 PyObject * obj5 = 0 ;
5105 PyObject * obj6 = 0 ;
5106 PyObject * obj7 = 0 ;
5107 char *kwnames[] = {
5108 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5109 };
5110
5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5114 arg2 = (int) SWIG_AsInt(obj1);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 if (obj2) {
5117 {
5118 arg3 = &temp3;
5119 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5120 }
5121 }
5122 if (obj3) {
5123 {
5124 arg4 = &temp4;
5125 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5126 }
5127 }
5128 if (obj4) {
5129 {
5130 if (! PySequence_Check(obj4)) {
5131 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5132 SWIG_fail;
5133 }
5134 arg5 = new wxArrayString;
5135 temp5 = True;
5136 int i, len=PySequence_Length(obj4);
5137 for (i=0; i<len; i++) {
5138 PyObject* item = PySequence_GetItem(obj4, i);
5139 #if wxUSE_UNICODE
5140 PyObject* str = PyObject_Unicode(item);
5141 #else
5142 PyObject* str = PyObject_Str(item);
5143 #endif
5144 if (PyErr_Occurred()) SWIG_fail;
5145 arg5->Add(Py2wxString(str));
5146 Py_DECREF(item);
5147 Py_DECREF(str);
5148 }
5149 }
5150 }
5151 if (obj5) {
5152 arg6 = (long) SWIG_AsLong(obj5);
5153 if (PyErr_Occurred()) SWIG_fail;
5154 }
5155 if (obj6) {
5156 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5157 SWIG_POINTER_EXCEPTION | 0)) == -1)
5158 SWIG_fail;
5159 if (arg7 == NULL) {
5160 PyErr_SetString(PyExc_TypeError,"null reference");
5161 SWIG_fail;
5162 }
5163 }
5164 if (obj7) {
5165 {
5166 arg8 = wxString_in_helper(obj7);
5167 if (arg8 == NULL) SWIG_fail;
5168 temp8 = True;
5169 }
5170 }
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5174
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5179 {
5180 if (temp5) delete arg5;
5181 }
5182 {
5183 if (temp8)
5184 delete arg8;
5185 }
5186 return resultobj;
5187 fail:
5188 {
5189 if (temp5) delete arg5;
5190 }
5191 {
5192 if (temp8)
5193 delete arg8;
5194 }
5195 return NULL;
5196 }
5197
5198
5199 static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5200 PyObject *resultobj;
5201 wxListBox *result;
5202 char *kwnames[] = {
5203 NULL
5204 };
5205
5206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5207 {
5208 PyThreadState* __tstate = wxPyBeginAllowThreads();
5209 result = (wxListBox *)new wxListBox();
5210
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5215 return resultobj;
5216 fail:
5217 return NULL;
5218 }
5219
5220
5221 static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5222 PyObject *resultobj;
5223 wxListBox *arg1 = (wxListBox *) 0 ;
5224 wxWindow *arg2 = (wxWindow *) 0 ;
5225 int arg3 ;
5226 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5227 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5228 wxSize const &arg5_defvalue = wxDefaultSize ;
5229 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5230 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5231 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5232 long arg7 = (long) 0 ;
5233 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5234 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5235 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5236 wxString *arg9 = (wxString *) &arg9_defvalue ;
5237 bool result;
5238 wxPoint temp4 ;
5239 wxSize temp5 ;
5240 bool temp6 = False ;
5241 bool temp9 = False ;
5242 PyObject * obj0 = 0 ;
5243 PyObject * obj1 = 0 ;
5244 PyObject * obj2 = 0 ;
5245 PyObject * obj3 = 0 ;
5246 PyObject * obj4 = 0 ;
5247 PyObject * obj5 = 0 ;
5248 PyObject * obj6 = 0 ;
5249 PyObject * obj7 = 0 ;
5250 PyObject * obj8 = 0 ;
5251 char *kwnames[] = {
5252 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5253 };
5254
5255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5258 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5260 arg3 = (int) SWIG_AsInt(obj2);
5261 if (PyErr_Occurred()) SWIG_fail;
5262 if (obj3) {
5263 {
5264 arg4 = &temp4;
5265 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5266 }
5267 }
5268 if (obj4) {
5269 {
5270 arg5 = &temp5;
5271 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5272 }
5273 }
5274 if (obj5) {
5275 {
5276 if (! PySequence_Check(obj5)) {
5277 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5278 SWIG_fail;
5279 }
5280 arg6 = new wxArrayString;
5281 temp6 = True;
5282 int i, len=PySequence_Length(obj5);
5283 for (i=0; i<len; i++) {
5284 PyObject* item = PySequence_GetItem(obj5, i);
5285 #if wxUSE_UNICODE
5286 PyObject* str = PyObject_Unicode(item);
5287 #else
5288 PyObject* str = PyObject_Str(item);
5289 #endif
5290 if (PyErr_Occurred()) SWIG_fail;
5291 arg6->Add(Py2wxString(str));
5292 Py_DECREF(item);
5293 Py_DECREF(str);
5294 }
5295 }
5296 }
5297 if (obj6) {
5298 arg7 = (long) SWIG_AsLong(obj6);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 }
5301 if (obj7) {
5302 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5303 SWIG_POINTER_EXCEPTION | 0)) == -1)
5304 SWIG_fail;
5305 if (arg8 == NULL) {
5306 PyErr_SetString(PyExc_TypeError,"null reference");
5307 SWIG_fail;
5308 }
5309 }
5310 if (obj8) {
5311 {
5312 arg9 = wxString_in_helper(obj8);
5313 if (arg9 == NULL) SWIG_fail;
5314 temp9 = True;
5315 }
5316 }
5317 {
5318 PyThreadState* __tstate = wxPyBeginAllowThreads();
5319 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5320
5321 wxPyEndAllowThreads(__tstate);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 {
5325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5326 }
5327 {
5328 if (temp6) delete arg6;
5329 }
5330 {
5331 if (temp9)
5332 delete arg9;
5333 }
5334 return resultobj;
5335 fail:
5336 {
5337 if (temp6) delete arg6;
5338 }
5339 {
5340 if (temp9)
5341 delete arg9;
5342 }
5343 return NULL;
5344 }
5345
5346
5347 static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5348 PyObject *resultobj;
5349 wxListBox *arg1 = (wxListBox *) 0 ;
5350 wxString *arg2 = 0 ;
5351 int arg3 ;
5352 PyObject *arg4 = (PyObject *) NULL ;
5353 bool temp2 = False ;
5354 PyObject * obj0 = 0 ;
5355 PyObject * obj1 = 0 ;
5356 PyObject * obj2 = 0 ;
5357 PyObject * obj3 = 0 ;
5358 char *kwnames[] = {
5359 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5360 };
5361
5362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5365 {
5366 arg2 = wxString_in_helper(obj1);
5367 if (arg2 == NULL) SWIG_fail;
5368 temp2 = True;
5369 }
5370 arg3 = (int) SWIG_AsInt(obj2);
5371 if (PyErr_Occurred()) SWIG_fail;
5372 if (obj3) {
5373 arg4 = obj3;
5374 }
5375 {
5376 PyThreadState* __tstate = wxPyBeginAllowThreads();
5377 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5378
5379 wxPyEndAllowThreads(__tstate);
5380 if (PyErr_Occurred()) SWIG_fail;
5381 }
5382 Py_INCREF(Py_None); resultobj = Py_None;
5383 {
5384 if (temp2)
5385 delete arg2;
5386 }
5387 return resultobj;
5388 fail:
5389 {
5390 if (temp2)
5391 delete arg2;
5392 }
5393 return NULL;
5394 }
5395
5396
5397 static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5398 PyObject *resultobj;
5399 wxListBox *arg1 = (wxListBox *) 0 ;
5400 wxArrayString *arg2 = 0 ;
5401 int arg3 ;
5402 bool temp2 = False ;
5403 PyObject * obj0 = 0 ;
5404 PyObject * obj1 = 0 ;
5405 PyObject * obj2 = 0 ;
5406 char *kwnames[] = {
5407 (char *) "self",(char *) "items",(char *) "pos", NULL
5408 };
5409
5410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5413 {
5414 if (! PySequence_Check(obj1)) {
5415 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5416 SWIG_fail;
5417 }
5418 arg2 = new wxArrayString;
5419 temp2 = True;
5420 int i, len=PySequence_Length(obj1);
5421 for (i=0; i<len; i++) {
5422 PyObject* item = PySequence_GetItem(obj1, i);
5423 #if wxUSE_UNICODE
5424 PyObject* str = PyObject_Unicode(item);
5425 #else
5426 PyObject* str = PyObject_Str(item);
5427 #endif
5428 if (PyErr_Occurred()) SWIG_fail;
5429 arg2->Add(Py2wxString(str));
5430 Py_DECREF(item);
5431 Py_DECREF(str);
5432 }
5433 }
5434 arg3 = (int) SWIG_AsInt(obj2);
5435 if (PyErr_Occurred()) SWIG_fail;
5436 {
5437 PyThreadState* __tstate = wxPyBeginAllowThreads();
5438 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5439
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 Py_INCREF(Py_None); resultobj = Py_None;
5444 {
5445 if (temp2) delete arg2;
5446 }
5447 return resultobj;
5448 fail:
5449 {
5450 if (temp2) delete arg2;
5451 }
5452 return NULL;
5453 }
5454
5455
5456 static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5457 PyObject *resultobj;
5458 wxListBox *arg1 = (wxListBox *) 0 ;
5459 wxArrayString *arg2 = 0 ;
5460 bool temp2 = False ;
5461 PyObject * obj0 = 0 ;
5462 PyObject * obj1 = 0 ;
5463 char *kwnames[] = {
5464 (char *) "self",(char *) "items", NULL
5465 };
5466
5467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5470 {
5471 if (! PySequence_Check(obj1)) {
5472 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5473 SWIG_fail;
5474 }
5475 arg2 = new wxArrayString;
5476 temp2 = True;
5477 int i, len=PySequence_Length(obj1);
5478 for (i=0; i<len; i++) {
5479 PyObject* item = PySequence_GetItem(obj1, i);
5480 #if wxUSE_UNICODE
5481 PyObject* str = PyObject_Unicode(item);
5482 #else
5483 PyObject* str = PyObject_Str(item);
5484 #endif
5485 if (PyErr_Occurred()) SWIG_fail;
5486 arg2->Add(Py2wxString(str));
5487 Py_DECREF(item);
5488 Py_DECREF(str);
5489 }
5490 }
5491 {
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 (arg1)->Set((wxArrayString const &)*arg2);
5494
5495 wxPyEndAllowThreads(__tstate);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 }
5498 Py_INCREF(Py_None); resultobj = Py_None;
5499 {
5500 if (temp2) delete arg2;
5501 }
5502 return resultobj;
5503 fail:
5504 {
5505 if (temp2) delete arg2;
5506 }
5507 return NULL;
5508 }
5509
5510
5511 static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5512 PyObject *resultobj;
5513 wxListBox *arg1 = (wxListBox *) 0 ;
5514 int arg2 ;
5515 bool result;
5516 PyObject * obj0 = 0 ;
5517 PyObject * obj1 = 0 ;
5518 char *kwnames[] = {
5519 (char *) "self",(char *) "n", NULL
5520 };
5521
5522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5525 arg2 = (int) SWIG_AsInt(obj1);
5526 if (PyErr_Occurred()) SWIG_fail;
5527 {
5528 PyThreadState* __tstate = wxPyBeginAllowThreads();
5529 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5530
5531 wxPyEndAllowThreads(__tstate);
5532 if (PyErr_Occurred()) SWIG_fail;
5533 }
5534 {
5535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5536 }
5537 return resultobj;
5538 fail:
5539 return NULL;
5540 }
5541
5542
5543 static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5544 PyObject *resultobj;
5545 wxListBox *arg1 = (wxListBox *) 0 ;
5546 int arg2 ;
5547 bool arg3 = (bool) True ;
5548 PyObject * obj0 = 0 ;
5549 PyObject * obj1 = 0 ;
5550 PyObject * obj2 = 0 ;
5551 char *kwnames[] = {
5552 (char *) "self",(char *) "n",(char *) "select", NULL
5553 };
5554
5555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5558 arg2 = (int) SWIG_AsInt(obj1);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 if (obj2) {
5561 arg3 = (bool) SWIG_AsBool(obj2);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 }
5564 {
5565 PyThreadState* __tstate = wxPyBeginAllowThreads();
5566 (arg1)->SetSelection(arg2,arg3);
5567
5568 wxPyEndAllowThreads(__tstate);
5569 if (PyErr_Occurred()) SWIG_fail;
5570 }
5571 Py_INCREF(Py_None); resultobj = Py_None;
5572 return resultobj;
5573 fail:
5574 return NULL;
5575 }
5576
5577
5578 static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5579 PyObject *resultobj;
5580 wxListBox *arg1 = (wxListBox *) 0 ;
5581 int arg2 ;
5582 PyObject * obj0 = 0 ;
5583 PyObject * obj1 = 0 ;
5584 char *kwnames[] = {
5585 (char *) "self",(char *) "n", NULL
5586 };
5587
5588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5591 arg2 = (int) SWIG_AsInt(obj1);
5592 if (PyErr_Occurred()) SWIG_fail;
5593 {
5594 PyThreadState* __tstate = wxPyBeginAllowThreads();
5595 (arg1)->Select(arg2);
5596
5597 wxPyEndAllowThreads(__tstate);
5598 if (PyErr_Occurred()) SWIG_fail;
5599 }
5600 Py_INCREF(Py_None); resultobj = Py_None;
5601 return resultobj;
5602 fail:
5603 return NULL;
5604 }
5605
5606
5607 static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5608 PyObject *resultobj;
5609 wxListBox *arg1 = (wxListBox *) 0 ;
5610 int arg2 ;
5611 PyObject * obj0 = 0 ;
5612 PyObject * obj1 = 0 ;
5613 char *kwnames[] = {
5614 (char *) "self",(char *) "n", NULL
5615 };
5616
5617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
5618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5620 arg2 = (int) SWIG_AsInt(obj1);
5621 if (PyErr_Occurred()) SWIG_fail;
5622 {
5623 PyThreadState* __tstate = wxPyBeginAllowThreads();
5624 (arg1)->Deselect(arg2);
5625
5626 wxPyEndAllowThreads(__tstate);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 Py_INCREF(Py_None); resultobj = Py_None;
5630 return resultobj;
5631 fail:
5632 return NULL;
5633 }
5634
5635
5636 static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj;
5638 wxListBox *arg1 = (wxListBox *) 0 ;
5639 int arg2 = (int) -1 ;
5640 PyObject * obj0 = 0 ;
5641 PyObject * obj1 = 0 ;
5642 char *kwnames[] = {
5643 (char *) "self",(char *) "itemToLeaveSelected", NULL
5644 };
5645
5646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
5647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5649 if (obj1) {
5650 arg2 = (int) SWIG_AsInt(obj1);
5651 if (PyErr_Occurred()) SWIG_fail;
5652 }
5653 {
5654 PyThreadState* __tstate = wxPyBeginAllowThreads();
5655 (arg1)->DeselectAll(arg2);
5656
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 Py_INCREF(Py_None); resultobj = Py_None;
5661 return resultobj;
5662 fail:
5663 return NULL;
5664 }
5665
5666
5667 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5668 PyObject *resultobj;
5669 wxListBox *arg1 = (wxListBox *) 0 ;
5670 wxString *arg2 = 0 ;
5671 bool arg3 = (bool) True ;
5672 bool result;
5673 bool temp2 = False ;
5674 PyObject * obj0 = 0 ;
5675 PyObject * obj1 = 0 ;
5676 PyObject * obj2 = 0 ;
5677 char *kwnames[] = {
5678 (char *) "self",(char *) "s",(char *) "select", NULL
5679 };
5680
5681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5684 {
5685 arg2 = wxString_in_helper(obj1);
5686 if (arg2 == NULL) SWIG_fail;
5687 temp2 = True;
5688 }
5689 if (obj2) {
5690 arg3 = (bool) SWIG_AsBool(obj2);
5691 if (PyErr_Occurred()) SWIG_fail;
5692 }
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
5696
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 {
5701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5702 }
5703 {
5704 if (temp2)
5705 delete arg2;
5706 }
5707 return resultobj;
5708 fail:
5709 {
5710 if (temp2)
5711 delete arg2;
5712 }
5713 return NULL;
5714 }
5715
5716
5717 static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
5718 PyObject *resultobj;
5719 wxListBox *arg1 = (wxListBox *) 0 ;
5720 PyObject *result;
5721 PyObject * obj0 = 0 ;
5722 char *kwnames[] = {
5723 (char *) "self", NULL
5724 };
5725
5726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
5727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5729 {
5730 PyThreadState* __tstate = wxPyBeginAllowThreads();
5731 result = (PyObject *)wxListBox_GetSelections(arg1);
5732
5733 wxPyEndAllowThreads(__tstate);
5734 if (PyErr_Occurred()) SWIG_fail;
5735 }
5736 resultobj = result;
5737 return resultobj;
5738 fail:
5739 return NULL;
5740 }
5741
5742
5743 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5744 PyObject *resultobj;
5745 wxListBox *arg1 = (wxListBox *) 0 ;
5746 int arg2 ;
5747 PyObject * obj0 = 0 ;
5748 PyObject * obj1 = 0 ;
5749 char *kwnames[] = {
5750 (char *) "self",(char *) "n", NULL
5751 };
5752
5753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
5754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5756 arg2 = (int) SWIG_AsInt(obj1);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 {
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 (arg1)->SetFirstItem(arg2);
5761
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 Py_INCREF(Py_None); resultobj = Py_None;
5766 return resultobj;
5767 fail:
5768 return NULL;
5769 }
5770
5771
5772 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
5773 PyObject *resultobj;
5774 wxListBox *arg1 = (wxListBox *) 0 ;
5775 wxString *arg2 = 0 ;
5776 bool temp2 = False ;
5777 PyObject * obj0 = 0 ;
5778 PyObject * obj1 = 0 ;
5779 char *kwnames[] = {
5780 (char *) "self",(char *) "s", NULL
5781 };
5782
5783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
5784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5786 {
5787 arg2 = wxString_in_helper(obj1);
5788 if (arg2 == NULL) SWIG_fail;
5789 temp2 = True;
5790 }
5791 {
5792 PyThreadState* __tstate = wxPyBeginAllowThreads();
5793 (arg1)->SetFirstItem((wxString const &)*arg2);
5794
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) SWIG_fail;
5797 }
5798 Py_INCREF(Py_None); resultobj = Py_None;
5799 {
5800 if (temp2)
5801 delete arg2;
5802 }
5803 return resultobj;
5804 fail:
5805 {
5806 if (temp2)
5807 delete arg2;
5808 }
5809 return NULL;
5810 }
5811
5812
5813 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj;
5815 wxListBox *arg1 = (wxListBox *) 0 ;
5816 int arg2 ;
5817 PyObject * obj0 = 0 ;
5818 PyObject * obj1 = 0 ;
5819 char *kwnames[] = {
5820 (char *) "self",(char *) "n", NULL
5821 };
5822
5823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5826 arg2 = (int) SWIG_AsInt(obj1);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 (arg1)->EnsureVisible(arg2);
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 Py_INCREF(Py_None); resultobj = Py_None;
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 wxListBox *arg1 = (wxListBox *) 0 ;
5845 wxString *arg2 = 0 ;
5846 bool temp2 = False ;
5847 PyObject * obj0 = 0 ;
5848 PyObject * obj1 = 0 ;
5849 char *kwnames[] = {
5850 (char *) "self",(char *) "s", NULL
5851 };
5852
5853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5856 {
5857 arg2 = wxString_in_helper(obj1);
5858 if (arg2 == NULL) SWIG_fail;
5859 temp2 = True;
5860 }
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 Py_INCREF(Py_None); resultobj = Py_None;
5869 {
5870 if (temp2)
5871 delete arg2;
5872 }
5873 return resultobj;
5874 fail:
5875 {
5876 if (temp2)
5877 delete arg2;
5878 }
5879 return NULL;
5880 }
5881
5882
5883 static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
5884 PyObject *resultobj;
5885 wxListBox *arg1 = (wxListBox *) 0 ;
5886 bool result;
5887 PyObject * obj0 = 0 ;
5888 char *kwnames[] = {
5889 (char *) "self", NULL
5890 };
5891
5892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
5893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5895 {
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 result = (bool)((wxListBox const *)arg1)->IsSorted();
5898
5899 wxPyEndAllowThreads(__tstate);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 }
5902 {
5903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5904 }
5905 return resultobj;
5906 fail:
5907 return NULL;
5908 }
5909
5910
5911 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5912 PyObject *resultobj;
5913 wxListBox *arg1 = (wxListBox *) 0 ;
5914 int arg2 ;
5915 wxColour *arg3 = 0 ;
5916 wxColour temp3 ;
5917 PyObject * obj0 = 0 ;
5918 PyObject * obj1 = 0 ;
5919 PyObject * obj2 = 0 ;
5920 char *kwnames[] = {
5921 (char *) "self",(char *) "item",(char *) "c", NULL
5922 };
5923
5924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5927 arg2 = (int) SWIG_AsInt(obj1);
5928 if (PyErr_Occurred()) SWIG_fail;
5929 {
5930 arg3 = &temp3;
5931 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5932 }
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
5936
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 Py_INCREF(Py_None); resultobj = Py_None;
5941 return resultobj;
5942 fail:
5943 return NULL;
5944 }
5945
5946
5947 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5948 PyObject *resultobj;
5949 wxListBox *arg1 = (wxListBox *) 0 ;
5950 int arg2 ;
5951 wxColour *arg3 = 0 ;
5952 wxColour temp3 ;
5953 PyObject * obj0 = 0 ;
5954 PyObject * obj1 = 0 ;
5955 PyObject * obj2 = 0 ;
5956 char *kwnames[] = {
5957 (char *) "self",(char *) "item",(char *) "c", NULL
5958 };
5959
5960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5963 arg2 = (int) SWIG_AsInt(obj1);
5964 if (PyErr_Occurred()) SWIG_fail;
5965 {
5966 arg3 = &temp3;
5967 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5968 }
5969 {
5970 PyThreadState* __tstate = wxPyBeginAllowThreads();
5971 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
5972
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 Py_INCREF(Py_None); resultobj = Py_None;
5977 return resultobj;
5978 fail:
5979 return NULL;
5980 }
5981
5982
5983 static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5984 PyObject *resultobj;
5985 wxListBox *arg1 = (wxListBox *) 0 ;
5986 int arg2 ;
5987 wxFont *arg3 = 0 ;
5988 PyObject * obj0 = 0 ;
5989 PyObject * obj1 = 0 ;
5990 PyObject * obj2 = 0 ;
5991 char *kwnames[] = {
5992 (char *) "self",(char *) "item",(char *) "f", NULL
5993 };
5994
5995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
5996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5998 arg2 = (int) SWIG_AsInt(obj1);
5999 if (PyErr_Occurred()) SWIG_fail;
6000 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6001 SWIG_POINTER_EXCEPTION | 0)) == -1)
6002 SWIG_fail;
6003 if (arg3 == NULL) {
6004 PyErr_SetString(PyExc_TypeError,"null reference");
6005 SWIG_fail;
6006 }
6007 {
6008 PyThreadState* __tstate = wxPyBeginAllowThreads();
6009 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6010
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 Py_INCREF(Py_None); resultobj = Py_None;
6015 return resultobj;
6016 fail:
6017 return NULL;
6018 }
6019
6020
6021 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6022 PyObject *resultobj;
6023 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6024 wxVisualAttributes result;
6025 PyObject * obj0 = 0 ;
6026 char *kwnames[] = {
6027 (char *) "variant", NULL
6028 };
6029
6030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6031 if (obj0) {
6032 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
6033 if (PyErr_Occurred()) SWIG_fail;
6034 }
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6038
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 {
6043 wxVisualAttributes * resultptr;
6044 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6045 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6046 }
6047 return resultobj;
6048 fail:
6049 return NULL;
6050 }
6051
6052
6053 static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
6054 PyObject *obj;
6055 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6056 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6057 Py_INCREF(obj);
6058 return Py_BuildValue((char *)"");
6059 }
6060 static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6061 PyObject *resultobj;
6062 wxWindow *arg1 = (wxWindow *) 0 ;
6063 int arg2 ;
6064 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6065 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6066 wxSize const &arg4_defvalue = wxDefaultSize ;
6067 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6068 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6069 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6070 long arg6 = (long) 0 ;
6071 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6072 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6073 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6074 wxString *arg8 = (wxString *) &arg8_defvalue ;
6075 wxCheckListBox *result;
6076 wxPoint temp3 ;
6077 wxSize temp4 ;
6078 bool temp5 = False ;
6079 bool temp8 = False ;
6080 PyObject * obj0 = 0 ;
6081 PyObject * obj1 = 0 ;
6082 PyObject * obj2 = 0 ;
6083 PyObject * obj3 = 0 ;
6084 PyObject * obj4 = 0 ;
6085 PyObject * obj5 = 0 ;
6086 PyObject * obj6 = 0 ;
6087 PyObject * obj7 = 0 ;
6088 char *kwnames[] = {
6089 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6090 };
6091
6092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6095 arg2 = (int) SWIG_AsInt(obj1);
6096 if (PyErr_Occurred()) SWIG_fail;
6097 if (obj2) {
6098 {
6099 arg3 = &temp3;
6100 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6101 }
6102 }
6103 if (obj3) {
6104 {
6105 arg4 = &temp4;
6106 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6107 }
6108 }
6109 if (obj4) {
6110 {
6111 if (! PySequence_Check(obj4)) {
6112 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6113 SWIG_fail;
6114 }
6115 arg5 = new wxArrayString;
6116 temp5 = True;
6117 int i, len=PySequence_Length(obj4);
6118 for (i=0; i<len; i++) {
6119 PyObject* item = PySequence_GetItem(obj4, i);
6120 #if wxUSE_UNICODE
6121 PyObject* str = PyObject_Unicode(item);
6122 #else
6123 PyObject* str = PyObject_Str(item);
6124 #endif
6125 if (PyErr_Occurred()) SWIG_fail;
6126 arg5->Add(Py2wxString(str));
6127 Py_DECREF(item);
6128 Py_DECREF(str);
6129 }
6130 }
6131 }
6132 if (obj5) {
6133 arg6 = (long) SWIG_AsLong(obj5);
6134 if (PyErr_Occurred()) SWIG_fail;
6135 }
6136 if (obj6) {
6137 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6138 SWIG_POINTER_EXCEPTION | 0)) == -1)
6139 SWIG_fail;
6140 if (arg7 == NULL) {
6141 PyErr_SetString(PyExc_TypeError,"null reference");
6142 SWIG_fail;
6143 }
6144 }
6145 if (obj7) {
6146 {
6147 arg8 = wxString_in_helper(obj7);
6148 if (arg8 == NULL) SWIG_fail;
6149 temp8 = True;
6150 }
6151 }
6152 {
6153 PyThreadState* __tstate = wxPyBeginAllowThreads();
6154 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6155
6156 wxPyEndAllowThreads(__tstate);
6157 if (PyErr_Occurred()) SWIG_fail;
6158 }
6159 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6160 {
6161 if (temp5) delete arg5;
6162 }
6163 {
6164 if (temp8)
6165 delete arg8;
6166 }
6167 return resultobj;
6168 fail:
6169 {
6170 if (temp5) delete arg5;
6171 }
6172 {
6173 if (temp8)
6174 delete arg8;
6175 }
6176 return NULL;
6177 }
6178
6179
6180 static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6181 PyObject *resultobj;
6182 wxCheckListBox *result;
6183 char *kwnames[] = {
6184 NULL
6185 };
6186
6187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6188 {
6189 PyThreadState* __tstate = wxPyBeginAllowThreads();
6190 result = (wxCheckListBox *)new wxCheckListBox();
6191
6192 wxPyEndAllowThreads(__tstate);
6193 if (PyErr_Occurred()) SWIG_fail;
6194 }
6195 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6196 return resultobj;
6197 fail:
6198 return NULL;
6199 }
6200
6201
6202 static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6203 PyObject *resultobj;
6204 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6205 wxWindow *arg2 = (wxWindow *) 0 ;
6206 int arg3 ;
6207 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6208 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6209 wxSize const &arg5_defvalue = wxDefaultSize ;
6210 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6211 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6212 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6213 long arg7 = (long) 0 ;
6214 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6215 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6216 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6217 wxString *arg9 = (wxString *) &arg9_defvalue ;
6218 bool result;
6219 wxPoint temp4 ;
6220 wxSize temp5 ;
6221 bool temp6 = False ;
6222 bool temp9 = False ;
6223 PyObject * obj0 = 0 ;
6224 PyObject * obj1 = 0 ;
6225 PyObject * obj2 = 0 ;
6226 PyObject * obj3 = 0 ;
6227 PyObject * obj4 = 0 ;
6228 PyObject * obj5 = 0 ;
6229 PyObject * obj6 = 0 ;
6230 PyObject * obj7 = 0 ;
6231 PyObject * obj8 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6241 arg3 = (int) SWIG_AsInt(obj2);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 if (obj3) {
6244 {
6245 arg4 = &temp4;
6246 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6247 }
6248 }
6249 if (obj4) {
6250 {
6251 arg5 = &temp5;
6252 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6253 }
6254 }
6255 if (obj5) {
6256 {
6257 if (! PySequence_Check(obj5)) {
6258 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6259 SWIG_fail;
6260 }
6261 arg6 = new wxArrayString;
6262 temp6 = True;
6263 int i, len=PySequence_Length(obj5);
6264 for (i=0; i<len; i++) {
6265 PyObject* item = PySequence_GetItem(obj5, i);
6266 #if wxUSE_UNICODE
6267 PyObject* str = PyObject_Unicode(item);
6268 #else
6269 PyObject* str = PyObject_Str(item);
6270 #endif
6271 if (PyErr_Occurred()) SWIG_fail;
6272 arg6->Add(Py2wxString(str));
6273 Py_DECREF(item);
6274 Py_DECREF(str);
6275 }
6276 }
6277 }
6278 if (obj6) {
6279 arg7 = (long) SWIG_AsLong(obj6);
6280 if (PyErr_Occurred()) SWIG_fail;
6281 }
6282 if (obj7) {
6283 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6284 SWIG_POINTER_EXCEPTION | 0)) == -1)
6285 SWIG_fail;
6286 if (arg8 == NULL) {
6287 PyErr_SetString(PyExc_TypeError,"null reference");
6288 SWIG_fail;
6289 }
6290 }
6291 if (obj8) {
6292 {
6293 arg9 = wxString_in_helper(obj8);
6294 if (arg9 == NULL) SWIG_fail;
6295 temp9 = True;
6296 }
6297 }
6298 {
6299 PyThreadState* __tstate = wxPyBeginAllowThreads();
6300 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6301
6302 wxPyEndAllowThreads(__tstate);
6303 if (PyErr_Occurred()) SWIG_fail;
6304 }
6305 {
6306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6307 }
6308 {
6309 if (temp6) delete arg6;
6310 }
6311 {
6312 if (temp9)
6313 delete arg9;
6314 }
6315 return resultobj;
6316 fail:
6317 {
6318 if (temp6) delete arg6;
6319 }
6320 {
6321 if (temp9)
6322 delete arg9;
6323 }
6324 return NULL;
6325 }
6326
6327
6328 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6329 PyObject *resultobj;
6330 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6331 int arg2 ;
6332 bool result;
6333 PyObject * obj0 = 0 ;
6334 PyObject * obj1 = 0 ;
6335 char *kwnames[] = {
6336 (char *) "self",(char *) "index", NULL
6337 };
6338
6339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6342 arg2 = (int) SWIG_AsInt(obj1);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 {
6345 PyThreadState* __tstate = wxPyBeginAllowThreads();
6346 result = (bool)(arg1)->IsChecked(arg2);
6347
6348 wxPyEndAllowThreads(__tstate);
6349 if (PyErr_Occurred()) SWIG_fail;
6350 }
6351 {
6352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6353 }
6354 return resultobj;
6355 fail:
6356 return NULL;
6357 }
6358
6359
6360 static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6361 PyObject *resultobj;
6362 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6363 int arg2 ;
6364 int arg3 = (int) True ;
6365 PyObject * obj0 = 0 ;
6366 PyObject * obj1 = 0 ;
6367 PyObject * obj2 = 0 ;
6368 char *kwnames[] = {
6369 (char *) "self",(char *) "index",(char *) "check", NULL
6370 };
6371
6372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6375 arg2 = (int) SWIG_AsInt(obj1);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 if (obj2) {
6378 arg3 = (int) SWIG_AsInt(obj2);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 {
6382 PyThreadState* __tstate = wxPyBeginAllowThreads();
6383 (arg1)->Check(arg2,arg3);
6384
6385 wxPyEndAllowThreads(__tstate);
6386 if (PyErr_Occurred()) SWIG_fail;
6387 }
6388 Py_INCREF(Py_None); resultobj = Py_None;
6389 return resultobj;
6390 fail:
6391 return NULL;
6392 }
6393
6394
6395 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6396 PyObject *resultobj;
6397 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6398 int result;
6399 PyObject * obj0 = 0 ;
6400 char *kwnames[] = {
6401 (char *) "self", NULL
6402 };
6403
6404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
6405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6407 {
6408 PyThreadState* __tstate = wxPyBeginAllowThreads();
6409 result = (int)(arg1)->GetItemHeight();
6410
6411 wxPyEndAllowThreads(__tstate);
6412 if (PyErr_Occurred()) SWIG_fail;
6413 }
6414 resultobj = SWIG_FromInt((int)result);
6415 return resultobj;
6416 fail:
6417 return NULL;
6418 }
6419
6420
6421 static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6422 PyObject *resultobj;
6423 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6424 wxPoint *arg2 = 0 ;
6425 int result;
6426 wxPoint temp2 ;
6427 PyObject * obj0 = 0 ;
6428 PyObject * obj1 = 0 ;
6429 char *kwnames[] = {
6430 (char *) "self",(char *) "pt", NULL
6431 };
6432
6433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6436 {
6437 arg2 = &temp2;
6438 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6439 }
6440 {
6441 PyThreadState* __tstate = wxPyBeginAllowThreads();
6442 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6443
6444 wxPyEndAllowThreads(__tstate);
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 resultobj = SWIG_FromInt((int)result);
6448 return resultobj;
6449 fail:
6450 return NULL;
6451 }
6452
6453
6454 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6455 PyObject *resultobj;
6456 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6457 int arg2 ;
6458 int arg3 ;
6459 int result;
6460 PyObject * obj0 = 0 ;
6461 PyObject * obj1 = 0 ;
6462 PyObject * obj2 = 0 ;
6463 char *kwnames[] = {
6464 (char *) "self",(char *) "x",(char *) "y", NULL
6465 };
6466
6467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6470 arg2 = (int) SWIG_AsInt(obj1);
6471 if (PyErr_Occurred()) SWIG_fail;
6472 arg3 = (int) SWIG_AsInt(obj2);
6473 if (PyErr_Occurred()) SWIG_fail;
6474 {
6475 PyThreadState* __tstate = wxPyBeginAllowThreads();
6476 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6477
6478 wxPyEndAllowThreads(__tstate);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 }
6481 resultobj = SWIG_FromInt((int)result);
6482 return resultobj;
6483 fail:
6484 return NULL;
6485 }
6486
6487
6488 static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6489 PyObject *obj;
6490 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6491 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6492 Py_INCREF(obj);
6493 return Py_BuildValue((char *)"");
6494 }
6495 static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6496 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6497 return 1;
6498 }
6499
6500
6501 static PyObject *_wrap_TextCtrlNameStr_get() {
6502 PyObject *pyobj;
6503
6504 {
6505 #if wxUSE_UNICODE
6506 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6507 #else
6508 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6509 #endif
6510 }
6511 return pyobj;
6512 }
6513
6514
6515 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6516 PyObject *resultobj;
6517 wxTextAttr *result;
6518
6519 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6520 {
6521 PyThreadState* __tstate = wxPyBeginAllowThreads();
6522 result = (wxTextAttr *)new wxTextAttr();
6523
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6528 return resultobj;
6529 fail:
6530 return NULL;
6531 }
6532
6533
6534 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6535 PyObject *resultobj;
6536 wxColour *arg1 = 0 ;
6537 wxColour const &arg2_defvalue = wxNullColour ;
6538 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6539 wxFont const &arg3_defvalue = wxNullFont ;
6540 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6541 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6542 wxTextAttr *result;
6543 wxColour temp1 ;
6544 wxColour temp2 ;
6545 PyObject * obj0 = 0 ;
6546 PyObject * obj1 = 0 ;
6547 PyObject * obj2 = 0 ;
6548 PyObject * obj3 = 0 ;
6549
6550 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6551 {
6552 arg1 = &temp1;
6553 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6554 }
6555 if (obj1) {
6556 {
6557 arg2 = &temp2;
6558 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6559 }
6560 }
6561 if (obj2) {
6562 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6563 SWIG_POINTER_EXCEPTION | 0)) == -1)
6564 SWIG_fail;
6565 if (arg3 == NULL) {
6566 PyErr_SetString(PyExc_TypeError,"null reference");
6567 SWIG_fail;
6568 }
6569 }
6570 if (obj3) {
6571 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 {
6575 PyThreadState* __tstate = wxPyBeginAllowThreads();
6576 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6577
6578 wxPyEndAllowThreads(__tstate);
6579 if (PyErr_Occurred()) SWIG_fail;
6580 }
6581 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6582 return resultobj;
6583 fail:
6584 return NULL;
6585 }
6586
6587
6588 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6589 int argc;
6590 PyObject *argv[5];
6591 int ii;
6592
6593 argc = PyObject_Length(args);
6594 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6595 argv[ii] = PyTuple_GetItem(args,ii);
6596 }
6597 if (argc == 0) {
6598 return _wrap_new_TextAttr__SWIG_0(self,args);
6599 }
6600 if ((argc >= 1) && (argc <= 4)) {
6601 int _v;
6602 {
6603 _v = wxColour_typecheck(argv[0]);
6604 }
6605 if (_v) {
6606 if (argc <= 1) {
6607 return _wrap_new_TextAttr__SWIG_1(self,args);
6608 }
6609 {
6610 _v = wxColour_typecheck(argv[1]);
6611 }
6612 if (_v) {
6613 if (argc <= 2) {
6614 return _wrap_new_TextAttr__SWIG_1(self,args);
6615 }
6616 {
6617 void *ptr;
6618 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
6619 _v = 0;
6620 PyErr_Clear();
6621 } else {
6622 _v = 1;
6623 }
6624 }
6625 if (_v) {
6626 if (argc <= 3) {
6627 return _wrap_new_TextAttr__SWIG_1(self,args);
6628 }
6629 _v = SWIG_CheckInt(argv[3]);
6630 if (_v) {
6631 return _wrap_new_TextAttr__SWIG_1(self,args);
6632 }
6633 }
6634 }
6635 }
6636 }
6637
6638 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
6639 return NULL;
6640 }
6641
6642
6643 static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6644 PyObject *resultobj;
6645 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6646 PyObject * obj0 = 0 ;
6647 char *kwnames[] = {
6648 (char *) "self", NULL
6649 };
6650
6651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
6652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6654 {
6655 PyThreadState* __tstate = wxPyBeginAllowThreads();
6656 delete arg1;
6657
6658 wxPyEndAllowThreads(__tstate);
6659 if (PyErr_Occurred()) SWIG_fail;
6660 }
6661 Py_INCREF(Py_None); resultobj = Py_None;
6662 return resultobj;
6663 fail:
6664 return NULL;
6665 }
6666
6667
6668 static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6669 PyObject *resultobj;
6670 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6671 PyObject * obj0 = 0 ;
6672 char *kwnames[] = {
6673 (char *) "self", NULL
6674 };
6675
6676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
6677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6679 {
6680 PyThreadState* __tstate = wxPyBeginAllowThreads();
6681 (arg1)->Init();
6682
6683 wxPyEndAllowThreads(__tstate);
6684 if (PyErr_Occurred()) SWIG_fail;
6685 }
6686 Py_INCREF(Py_None); resultobj = Py_None;
6687 return resultobj;
6688 fail:
6689 return NULL;
6690 }
6691
6692
6693 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6694 PyObject *resultobj;
6695 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6696 wxColour *arg2 = 0 ;
6697 wxColour temp2 ;
6698 PyObject * obj0 = 0 ;
6699 PyObject * obj1 = 0 ;
6700 char *kwnames[] = {
6701 (char *) "self",(char *) "colText", NULL
6702 };
6703
6704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
6705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6707 {
6708 arg2 = &temp2;
6709 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6710 }
6711 {
6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
6713 (arg1)->SetTextColour((wxColour const &)*arg2);
6714
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) SWIG_fail;
6717 }
6718 Py_INCREF(Py_None); resultobj = Py_None;
6719 return resultobj;
6720 fail:
6721 return NULL;
6722 }
6723
6724
6725 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6726 PyObject *resultobj;
6727 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6728 wxColour *arg2 = 0 ;
6729 wxColour temp2 ;
6730 PyObject * obj0 = 0 ;
6731 PyObject * obj1 = 0 ;
6732 char *kwnames[] = {
6733 (char *) "self",(char *) "colBack", NULL
6734 };
6735
6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
6737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6739 {
6740 arg2 = &temp2;
6741 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6742 }
6743 {
6744 PyThreadState* __tstate = wxPyBeginAllowThreads();
6745 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
6746
6747 wxPyEndAllowThreads(__tstate);
6748 if (PyErr_Occurred()) SWIG_fail;
6749 }
6750 Py_INCREF(Py_None); resultobj = Py_None;
6751 return resultobj;
6752 fail:
6753 return NULL;
6754 }
6755
6756
6757 static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6758 PyObject *resultobj;
6759 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6760 wxFont *arg2 = 0 ;
6761 long arg3 = (long) wxTEXT_ATTR_FONT ;
6762 PyObject * obj0 = 0 ;
6763 PyObject * obj1 = 0 ;
6764 PyObject * obj2 = 0 ;
6765 char *kwnames[] = {
6766 (char *) "self",(char *) "font",(char *) "flags", NULL
6767 };
6768
6769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6772 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6773 SWIG_POINTER_EXCEPTION | 0)) == -1)
6774 SWIG_fail;
6775 if (arg2 == NULL) {
6776 PyErr_SetString(PyExc_TypeError,"null reference");
6777 SWIG_fail;
6778 }
6779 if (obj2) {
6780 arg3 = (long) SWIG_AsLong(obj2);
6781 if (PyErr_Occurred()) SWIG_fail;
6782 }
6783 {
6784 PyThreadState* __tstate = wxPyBeginAllowThreads();
6785 (arg1)->SetFont((wxFont const &)*arg2,arg3);
6786
6787 wxPyEndAllowThreads(__tstate);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 Py_INCREF(Py_None); resultobj = Py_None;
6791 return resultobj;
6792 fail:
6793 return NULL;
6794 }
6795
6796
6797 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6798 PyObject *resultobj;
6799 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6800 int arg2 ;
6801 PyObject * obj0 = 0 ;
6802 PyObject * obj1 = 0 ;
6803 char *kwnames[] = {
6804 (char *) "self",(char *) "alignment", NULL
6805 };
6806
6807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
6808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6810 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
6811 if (PyErr_Occurred()) SWIG_fail;
6812 {
6813 PyThreadState* __tstate = wxPyBeginAllowThreads();
6814 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
6815
6816 wxPyEndAllowThreads(__tstate);
6817 if (PyErr_Occurred()) SWIG_fail;
6818 }
6819 Py_INCREF(Py_None); resultobj = Py_None;
6820 return resultobj;
6821 fail:
6822 return NULL;
6823 }
6824
6825
6826 static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6827 PyObject *resultobj;
6828 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6829 wxArrayInt *arg2 = 0 ;
6830 bool temp2 = False ;
6831 PyObject * obj0 = 0 ;
6832 PyObject * obj1 = 0 ;
6833 char *kwnames[] = {
6834 (char *) "self",(char *) "tabs", NULL
6835 };
6836
6837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
6838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6840 {
6841 if (! PySequence_Check(obj1)) {
6842 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
6843 SWIG_fail;
6844 }
6845 arg2 = new wxArrayInt;
6846 temp2 = True;
6847 int i, len=PySequence_Length(obj1);
6848 for (i=0; i<len; i++) {
6849 PyObject* item = PySequence_GetItem(obj1, i);
6850 PyObject* number = PyNumber_Int(item);
6851 arg2->Add(PyInt_AS_LONG(number));
6852 Py_DECREF(item);
6853 Py_DECREF(number);
6854 }
6855 }
6856 {
6857 PyThreadState* __tstate = wxPyBeginAllowThreads();
6858 (arg1)->SetTabs((wxArrayInt const &)*arg2);
6859
6860 wxPyEndAllowThreads(__tstate);
6861 if (PyErr_Occurred()) SWIG_fail;
6862 }
6863 Py_INCREF(Py_None); resultobj = Py_None;
6864 {
6865 if (temp2) delete arg2;
6866 }
6867 return resultobj;
6868 fail:
6869 {
6870 if (temp2) delete arg2;
6871 }
6872 return NULL;
6873 }
6874
6875
6876 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6877 PyObject *resultobj;
6878 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6879 int arg2 ;
6880 PyObject * obj0 = 0 ;
6881 PyObject * obj1 = 0 ;
6882 char *kwnames[] = {
6883 (char *) "self",(char *) "indent", NULL
6884 };
6885
6886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail;
6887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6889 arg2 = (int) SWIG_AsInt(obj1);
6890 if (PyErr_Occurred()) SWIG_fail;
6891 {
6892 PyThreadState* __tstate = wxPyBeginAllowThreads();
6893 (arg1)->SetLeftIndent(arg2);
6894
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 Py_INCREF(Py_None); resultobj = Py_None;
6899 return resultobj;
6900 fail:
6901 return NULL;
6902 }
6903
6904
6905 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6906 PyObject *resultobj;
6907 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6908 int arg2 ;
6909 PyObject * obj0 = 0 ;
6910 PyObject * obj1 = 0 ;
6911 char *kwnames[] = {
6912 (char *) "self",(char *) "indent", NULL
6913 };
6914
6915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
6916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6918 arg2 = (int) SWIG_AsInt(obj1);
6919 if (PyErr_Occurred()) SWIG_fail;
6920 {
6921 PyThreadState* __tstate = wxPyBeginAllowThreads();
6922 (arg1)->SetRightIndent(arg2);
6923
6924 wxPyEndAllowThreads(__tstate);
6925 if (PyErr_Occurred()) SWIG_fail;
6926 }
6927 Py_INCREF(Py_None); resultobj = Py_None;
6928 return resultobj;
6929 fail:
6930 return NULL;
6931 }
6932
6933
6934 static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
6935 PyObject *resultobj;
6936 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6937 long arg2 ;
6938 PyObject * obj0 = 0 ;
6939 PyObject * obj1 = 0 ;
6940 char *kwnames[] = {
6941 (char *) "self",(char *) "flags", NULL
6942 };
6943
6944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
6945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6947 arg2 = (long) SWIG_AsLong(obj1);
6948 if (PyErr_Occurred()) SWIG_fail;
6949 {
6950 PyThreadState* __tstate = wxPyBeginAllowThreads();
6951 (arg1)->SetFlags(arg2);
6952
6953 wxPyEndAllowThreads(__tstate);
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 Py_INCREF(Py_None); resultobj = Py_None;
6957 return resultobj;
6958 fail:
6959 return NULL;
6960 }
6961
6962
6963 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6964 PyObject *resultobj;
6965 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6966 bool result;
6967 PyObject * obj0 = 0 ;
6968 char *kwnames[] = {
6969 (char *) "self", NULL
6970 };
6971
6972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
6973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6975 {
6976 PyThreadState* __tstate = wxPyBeginAllowThreads();
6977 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
6978
6979 wxPyEndAllowThreads(__tstate);
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 {
6983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6984 }
6985 return resultobj;
6986 fail:
6987 return NULL;
6988 }
6989
6990
6991 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6992 PyObject *resultobj;
6993 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6994 bool result;
6995 PyObject * obj0 = 0 ;
6996 char *kwnames[] = {
6997 (char *) "self", NULL
6998 };
6999
7000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7003 {
7004 PyThreadState* __tstate = wxPyBeginAllowThreads();
7005 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7006
7007 wxPyEndAllowThreads(__tstate);
7008 if (PyErr_Occurred()) SWIG_fail;
7009 }
7010 {
7011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7012 }
7013 return resultobj;
7014 fail:
7015 return NULL;
7016 }
7017
7018
7019 static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7020 PyObject *resultobj;
7021 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7022 bool result;
7023 PyObject * obj0 = 0 ;
7024 char *kwnames[] = {
7025 (char *) "self", NULL
7026 };
7027
7028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7031 {
7032 PyThreadState* __tstate = wxPyBeginAllowThreads();
7033 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7034
7035 wxPyEndAllowThreads(__tstate);
7036 if (PyErr_Occurred()) SWIG_fail;
7037 }
7038 {
7039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7040 }
7041 return resultobj;
7042 fail:
7043 return NULL;
7044 }
7045
7046
7047 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj;
7049 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7050 bool result;
7051 PyObject * obj0 = 0 ;
7052 char *kwnames[] = {
7053 (char *) "self", NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7059 {
7060 PyThreadState* __tstate = wxPyBeginAllowThreads();
7061 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7062
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 {
7067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7068 }
7069 return resultobj;
7070 fail:
7071 return NULL;
7072 }
7073
7074
7075 static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7076 PyObject *resultobj;
7077 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7078 bool result;
7079 PyObject * obj0 = 0 ;
7080 char *kwnames[] = {
7081 (char *) "self", NULL
7082 };
7083
7084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7087 {
7088 PyThreadState* __tstate = wxPyBeginAllowThreads();
7089 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7090
7091 wxPyEndAllowThreads(__tstate);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 {
7095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7096 }
7097 return resultobj;
7098 fail:
7099 return NULL;
7100 }
7101
7102
7103 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7104 PyObject *resultobj;
7105 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7106 bool result;
7107 PyObject * obj0 = 0 ;
7108 char *kwnames[] = {
7109 (char *) "self", NULL
7110 };
7111
7112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7115 {
7116 PyThreadState* __tstate = wxPyBeginAllowThreads();
7117 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7118
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 }
7122 {
7123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7124 }
7125 return resultobj;
7126 fail:
7127 return NULL;
7128 }
7129
7130
7131 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7132 PyObject *resultobj;
7133 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7134 bool result;
7135 PyObject * obj0 = 0 ;
7136 char *kwnames[] = {
7137 (char *) "self", NULL
7138 };
7139
7140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7143 {
7144 PyThreadState* __tstate = wxPyBeginAllowThreads();
7145 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7146
7147 wxPyEndAllowThreads(__tstate);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 {
7151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7152 }
7153 return resultobj;
7154 fail:
7155 return NULL;
7156 }
7157
7158
7159 static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
7160 PyObject *resultobj;
7161 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7162 long arg2 ;
7163 bool result;
7164 PyObject * obj0 = 0 ;
7165 PyObject * obj1 = 0 ;
7166 char *kwnames[] = {
7167 (char *) "self",(char *) "flag", NULL
7168 };
7169
7170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7173 arg2 = (long) SWIG_AsLong(obj1);
7174 if (PyErr_Occurred()) SWIG_fail;
7175 {
7176 PyThreadState* __tstate = wxPyBeginAllowThreads();
7177 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7178
7179 wxPyEndAllowThreads(__tstate);
7180 if (PyErr_Occurred()) SWIG_fail;
7181 }
7182 {
7183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7184 }
7185 return resultobj;
7186 fail:
7187 return NULL;
7188 }
7189
7190
7191 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7192 PyObject *resultobj;
7193 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7194 wxColour *result;
7195 PyObject * obj0 = 0 ;
7196 char *kwnames[] = {
7197 (char *) "self", NULL
7198 };
7199
7200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7203 {
7204 PyThreadState* __tstate = wxPyBeginAllowThreads();
7205 {
7206 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7207 result = (wxColour *) &_result_ref;
7208 }
7209
7210 wxPyEndAllowThreads(__tstate);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7214 return resultobj;
7215 fail:
7216 return NULL;
7217 }
7218
7219
7220 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7221 PyObject *resultobj;
7222 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7223 wxColour *result;
7224 PyObject * obj0 = 0 ;
7225 char *kwnames[] = {
7226 (char *) "self", NULL
7227 };
7228
7229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7232 {
7233 PyThreadState* __tstate = wxPyBeginAllowThreads();
7234 {
7235 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7236 result = (wxColour *) &_result_ref;
7237 }
7238
7239 wxPyEndAllowThreads(__tstate);
7240 if (PyErr_Occurred()) SWIG_fail;
7241 }
7242 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7243 return resultobj;
7244 fail:
7245 return NULL;
7246 }
7247
7248
7249 static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj;
7251 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7252 wxFont *result;
7253 PyObject * obj0 = 0 ;
7254 char *kwnames[] = {
7255 (char *) "self", NULL
7256 };
7257
7258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7261 {
7262 PyThreadState* __tstate = wxPyBeginAllowThreads();
7263 {
7264 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7265 result = (wxFont *) &_result_ref;
7266 }
7267
7268 wxPyEndAllowThreads(__tstate);
7269 if (PyErr_Occurred()) SWIG_fail;
7270 }
7271 {
7272 wxFont* resultptr = new wxFont(*result);
7273 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7274 }
7275 return resultobj;
7276 fail:
7277 return NULL;
7278 }
7279
7280
7281 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7282 PyObject *resultobj;
7283 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7284 int result;
7285 PyObject * obj0 = 0 ;
7286 char *kwnames[] = {
7287 (char *) "self", NULL
7288 };
7289
7290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7293 {
7294 PyThreadState* __tstate = wxPyBeginAllowThreads();
7295 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7296
7297 wxPyEndAllowThreads(__tstate);
7298 if (PyErr_Occurred()) SWIG_fail;
7299 }
7300 resultobj = SWIG_FromInt((int)result);
7301 return resultobj;
7302 fail:
7303 return NULL;
7304 }
7305
7306
7307 static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7308 PyObject *resultobj;
7309 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7310 wxArrayInt *result;
7311 PyObject * obj0 = 0 ;
7312 char *kwnames[] = {
7313 (char *) "self", NULL
7314 };
7315
7316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7319 {
7320 PyThreadState* __tstate = wxPyBeginAllowThreads();
7321 {
7322 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7323 result = (wxArrayInt *) &_result_ref;
7324 }
7325
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 {
7330 resultobj = PyList_New(0);
7331 size_t idx;
7332 for (idx = 0; idx < result->GetCount(); idx += 1) {
7333 PyObject* val = PyInt_FromLong( result->Item(idx) );
7334 PyList_Append(resultobj, val);
7335 Py_DECREF(val);
7336 }
7337 }
7338 return resultobj;
7339 fail:
7340 return NULL;
7341 }
7342
7343
7344 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7345 PyObject *resultobj;
7346 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7347 long result;
7348 PyObject * obj0 = 0 ;
7349 char *kwnames[] = {
7350 (char *) "self", NULL
7351 };
7352
7353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7356 {
7357 PyThreadState* __tstate = wxPyBeginAllowThreads();
7358 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7359
7360 wxPyEndAllowThreads(__tstate);
7361 if (PyErr_Occurred()) SWIG_fail;
7362 }
7363 resultobj = SWIG_FromLong((long)result);
7364 return resultobj;
7365 fail:
7366 return NULL;
7367 }
7368
7369
7370 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7371 PyObject *resultobj;
7372 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7373 long result;
7374 PyObject * obj0 = 0 ;
7375 char *kwnames[] = {
7376 (char *) "self", NULL
7377 };
7378
7379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7382 {
7383 PyThreadState* __tstate = wxPyBeginAllowThreads();
7384 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7385
7386 wxPyEndAllowThreads(__tstate);
7387 if (PyErr_Occurred()) SWIG_fail;
7388 }
7389 resultobj = SWIG_FromLong((long)result);
7390 return resultobj;
7391 fail:
7392 return NULL;
7393 }
7394
7395
7396 static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7397 PyObject *resultobj;
7398 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7399 long result;
7400 PyObject * obj0 = 0 ;
7401 char *kwnames[] = {
7402 (char *) "self", NULL
7403 };
7404
7405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7408 {
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7411
7412 wxPyEndAllowThreads(__tstate);
7413 if (PyErr_Occurred()) SWIG_fail;
7414 }
7415 resultobj = SWIG_FromLong((long)result);
7416 return resultobj;
7417 fail:
7418 return NULL;
7419 }
7420
7421
7422 static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7423 PyObject *resultobj;
7424 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7425 bool result;
7426 PyObject * obj0 = 0 ;
7427 char *kwnames[] = {
7428 (char *) "self", NULL
7429 };
7430
7431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7434 {
7435 PyThreadState* __tstate = wxPyBeginAllowThreads();
7436 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7437
7438 wxPyEndAllowThreads(__tstate);
7439 if (PyErr_Occurred()) SWIG_fail;
7440 }
7441 {
7442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7443 }
7444 return resultobj;
7445 fail:
7446 return NULL;
7447 }
7448
7449
7450 static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7451 PyObject *resultobj;
7452 wxTextAttr *arg1 = 0 ;
7453 wxTextAttr *arg2 = 0 ;
7454 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7455 wxTextAttr result;
7456 PyObject * obj0 = 0 ;
7457 PyObject * obj1 = 0 ;
7458 PyObject * obj2 = 0 ;
7459 char *kwnames[] = {
7460 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7461 };
7462
7463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7465 SWIG_POINTER_EXCEPTION | 0)) == -1)
7466 SWIG_fail;
7467 if (arg1 == NULL) {
7468 PyErr_SetString(PyExc_TypeError,"null reference");
7469 SWIG_fail;
7470 }
7471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7472 SWIG_POINTER_EXCEPTION | 0)) == -1)
7473 SWIG_fail;
7474 if (arg2 == NULL) {
7475 PyErr_SetString(PyExc_TypeError,"null reference");
7476 SWIG_fail;
7477 }
7478 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7480 {
7481 PyThreadState* __tstate = wxPyBeginAllowThreads();
7482 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7483
7484 wxPyEndAllowThreads(__tstate);
7485 if (PyErr_Occurred()) SWIG_fail;
7486 }
7487 {
7488 wxTextAttr * resultptr;
7489 resultptr = new wxTextAttr((wxTextAttr &) result);
7490 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7491 }
7492 return resultobj;
7493 fail:
7494 return NULL;
7495 }
7496
7497
7498 static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7499 PyObject *obj;
7500 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7501 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7502 Py_INCREF(obj);
7503 return Py_BuildValue((char *)"");
7504 }
7505 static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7506 PyObject *resultobj;
7507 wxWindow *arg1 = (wxWindow *) 0 ;
7508 int arg2 ;
7509 wxString const &arg3_defvalue = wxPyEmptyString ;
7510 wxString *arg3 = (wxString *) &arg3_defvalue ;
7511 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7512 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7513 wxSize const &arg5_defvalue = wxDefaultSize ;
7514 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7515 long arg6 = (long) 0 ;
7516 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7517 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7518 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7519 wxString *arg8 = (wxString *) &arg8_defvalue ;
7520 wxTextCtrl *result;
7521 bool temp3 = False ;
7522 wxPoint temp4 ;
7523 wxSize temp5 ;
7524 bool temp8 = False ;
7525 PyObject * obj0 = 0 ;
7526 PyObject * obj1 = 0 ;
7527 PyObject * obj2 = 0 ;
7528 PyObject * obj3 = 0 ;
7529 PyObject * obj4 = 0 ;
7530 PyObject * obj5 = 0 ;
7531 PyObject * obj6 = 0 ;
7532 PyObject * obj7 = 0 ;
7533 char *kwnames[] = {
7534 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7535 };
7536
7537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7540 arg2 = (int) SWIG_AsInt(obj1);
7541 if (PyErr_Occurred()) SWIG_fail;
7542 if (obj2) {
7543 {
7544 arg3 = wxString_in_helper(obj2);
7545 if (arg3 == NULL) SWIG_fail;
7546 temp3 = True;
7547 }
7548 }
7549 if (obj3) {
7550 {
7551 arg4 = &temp4;
7552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7553 }
7554 }
7555 if (obj4) {
7556 {
7557 arg5 = &temp5;
7558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7559 }
7560 }
7561 if (obj5) {
7562 arg6 = (long) SWIG_AsLong(obj5);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 if (obj6) {
7566 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7567 SWIG_POINTER_EXCEPTION | 0)) == -1)
7568 SWIG_fail;
7569 if (arg7 == NULL) {
7570 PyErr_SetString(PyExc_TypeError,"null reference");
7571 SWIG_fail;
7572 }
7573 }
7574 if (obj7) {
7575 {
7576 arg8 = wxString_in_helper(obj7);
7577 if (arg8 == NULL) SWIG_fail;
7578 temp8 = True;
7579 }
7580 }
7581 {
7582 PyThreadState* __tstate = wxPyBeginAllowThreads();
7583 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7584
7585 wxPyEndAllowThreads(__tstate);
7586 if (PyErr_Occurred()) SWIG_fail;
7587 }
7588 {
7589 resultobj = wxPyMake_wxObject(result);
7590 }
7591 {
7592 if (temp3)
7593 delete arg3;
7594 }
7595 {
7596 if (temp8)
7597 delete arg8;
7598 }
7599 return resultobj;
7600 fail:
7601 {
7602 if (temp3)
7603 delete arg3;
7604 }
7605 {
7606 if (temp8)
7607 delete arg8;
7608 }
7609 return NULL;
7610 }
7611
7612
7613 static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7614 PyObject *resultobj;
7615 wxTextCtrl *result;
7616 char *kwnames[] = {
7617 NULL
7618 };
7619
7620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
7621 {
7622 PyThreadState* __tstate = wxPyBeginAllowThreads();
7623 result = (wxTextCtrl *)new wxTextCtrl();
7624
7625 wxPyEndAllowThreads(__tstate);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 {
7629 resultobj = wxPyMake_wxObject(result);
7630 }
7631 return resultobj;
7632 fail:
7633 return NULL;
7634 }
7635
7636
7637 static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7638 PyObject *resultobj;
7639 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7640 wxWindow *arg2 = (wxWindow *) 0 ;
7641 int arg3 ;
7642 wxString const &arg4_defvalue = wxPyEmptyString ;
7643 wxString *arg4 = (wxString *) &arg4_defvalue ;
7644 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7645 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7646 wxSize const &arg6_defvalue = wxDefaultSize ;
7647 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7648 long arg7 = (long) 0 ;
7649 wxValidator const &arg8_defvalue = wxDefaultValidator ;
7650 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
7651 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
7652 wxString *arg9 = (wxString *) &arg9_defvalue ;
7653 bool result;
7654 bool temp4 = False ;
7655 wxPoint temp5 ;
7656 wxSize temp6 ;
7657 bool temp9 = False ;
7658 PyObject * obj0 = 0 ;
7659 PyObject * obj1 = 0 ;
7660 PyObject * obj2 = 0 ;
7661 PyObject * obj3 = 0 ;
7662 PyObject * obj4 = 0 ;
7663 PyObject * obj5 = 0 ;
7664 PyObject * obj6 = 0 ;
7665 PyObject * obj7 = 0 ;
7666 PyObject * obj8 = 0 ;
7667 char *kwnames[] = {
7668 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7669 };
7670
7671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
7672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7676 arg3 = (int) SWIG_AsInt(obj2);
7677 if (PyErr_Occurred()) SWIG_fail;
7678 if (obj3) {
7679 {
7680 arg4 = wxString_in_helper(obj3);
7681 if (arg4 == NULL) SWIG_fail;
7682 temp4 = True;
7683 }
7684 }
7685 if (obj4) {
7686 {
7687 arg5 = &temp5;
7688 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7689 }
7690 }
7691 if (obj5) {
7692 {
7693 arg6 = &temp6;
7694 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7695 }
7696 }
7697 if (obj6) {
7698 arg7 = (long) SWIG_AsLong(obj6);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 }
7701 if (obj7) {
7702 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
7703 SWIG_POINTER_EXCEPTION | 0)) == -1)
7704 SWIG_fail;
7705 if (arg8 == NULL) {
7706 PyErr_SetString(PyExc_TypeError,"null reference");
7707 SWIG_fail;
7708 }
7709 }
7710 if (obj8) {
7711 {
7712 arg9 = wxString_in_helper(obj8);
7713 if (arg9 == NULL) SWIG_fail;
7714 temp9 = True;
7715 }
7716 }
7717 {
7718 PyThreadState* __tstate = wxPyBeginAllowThreads();
7719 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7720
7721 wxPyEndAllowThreads(__tstate);
7722 if (PyErr_Occurred()) SWIG_fail;
7723 }
7724 {
7725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7726 }
7727 {
7728 if (temp4)
7729 delete arg4;
7730 }
7731 {
7732 if (temp9)
7733 delete arg9;
7734 }
7735 return resultobj;
7736 fail:
7737 {
7738 if (temp4)
7739 delete arg4;
7740 }
7741 {
7742 if (temp9)
7743 delete arg9;
7744 }
7745 return NULL;
7746 }
7747
7748
7749 static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7750 PyObject *resultobj;
7751 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7752 wxString result;
7753 PyObject * obj0 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "self", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
7759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7761 {
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 result = ((wxTextCtrl const *)arg1)->GetValue();
7764
7765 wxPyEndAllowThreads(__tstate);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 }
7768 {
7769 #if wxUSE_UNICODE
7770 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7771 #else
7772 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7773 #endif
7774 }
7775 return resultobj;
7776 fail:
7777 return NULL;
7778 }
7779
7780
7781 static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7782 PyObject *resultobj;
7783 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7784 wxString *arg2 = 0 ;
7785 bool temp2 = False ;
7786 PyObject * obj0 = 0 ;
7787 PyObject * obj1 = 0 ;
7788 char *kwnames[] = {
7789 (char *) "self",(char *) "value", NULL
7790 };
7791
7792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
7793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7795 {
7796 arg2 = wxString_in_helper(obj1);
7797 if (arg2 == NULL) SWIG_fail;
7798 temp2 = True;
7799 }
7800 {
7801 PyThreadState* __tstate = wxPyBeginAllowThreads();
7802 (arg1)->SetValue((wxString const &)*arg2);
7803
7804 wxPyEndAllowThreads(__tstate);
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 Py_INCREF(Py_None); resultobj = Py_None;
7808 {
7809 if (temp2)
7810 delete arg2;
7811 }
7812 return resultobj;
7813 fail:
7814 {
7815 if (temp2)
7816 delete arg2;
7817 }
7818 return NULL;
7819 }
7820
7821
7822 static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
7823 PyObject *resultobj;
7824 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7825 long arg2 ;
7826 long arg3 ;
7827 wxString result;
7828 PyObject * obj0 = 0 ;
7829 PyObject * obj1 = 0 ;
7830 PyObject * obj2 = 0 ;
7831 char *kwnames[] = {
7832 (char *) "self",(char *) "from",(char *) "to", NULL
7833 };
7834
7835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
7836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7838 arg2 = (long) SWIG_AsLong(obj1);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 arg3 = (long) SWIG_AsLong(obj2);
7841 if (PyErr_Occurred()) SWIG_fail;
7842 {
7843 PyThreadState* __tstate = wxPyBeginAllowThreads();
7844 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
7845
7846 wxPyEndAllowThreads(__tstate);
7847 if (PyErr_Occurred()) SWIG_fail;
7848 }
7849 {
7850 #if wxUSE_UNICODE
7851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7852 #else
7853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7854 #endif
7855 }
7856 return resultobj;
7857 fail:
7858 return NULL;
7859 }
7860
7861
7862 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
7863 PyObject *resultobj;
7864 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7865 long arg2 ;
7866 int result;
7867 PyObject * obj0 = 0 ;
7868 PyObject * obj1 = 0 ;
7869 char *kwnames[] = {
7870 (char *) "self",(char *) "lineNo", NULL
7871 };
7872
7873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
7874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7876 arg2 = (long) SWIG_AsLong(obj1);
7877 if (PyErr_Occurred()) SWIG_fail;
7878 {
7879 PyThreadState* __tstate = wxPyBeginAllowThreads();
7880 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
7881
7882 wxPyEndAllowThreads(__tstate);
7883 if (PyErr_Occurred()) SWIG_fail;
7884 }
7885 resultobj = SWIG_FromInt((int)result);
7886 return resultobj;
7887 fail:
7888 return NULL;
7889 }
7890
7891
7892 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
7893 PyObject *resultobj;
7894 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7895 long arg2 ;
7896 wxString result;
7897 PyObject * obj0 = 0 ;
7898 PyObject * obj1 = 0 ;
7899 char *kwnames[] = {
7900 (char *) "self",(char *) "lineNo", NULL
7901 };
7902
7903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
7904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7906 arg2 = (long) SWIG_AsLong(obj1);
7907 if (PyErr_Occurred()) SWIG_fail;
7908 {
7909 PyThreadState* __tstate = wxPyBeginAllowThreads();
7910 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
7911
7912 wxPyEndAllowThreads(__tstate);
7913 if (PyErr_Occurred()) SWIG_fail;
7914 }
7915 {
7916 #if wxUSE_UNICODE
7917 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7918 #else
7919 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7920 #endif
7921 }
7922 return resultobj;
7923 fail:
7924 return NULL;
7925 }
7926
7927
7928 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7929 PyObject *resultobj;
7930 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7931 int result;
7932 PyObject * obj0 = 0 ;
7933 char *kwnames[] = {
7934 (char *) "self", NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
7938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7940 {
7941 PyThreadState* __tstate = wxPyBeginAllowThreads();
7942 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
7943
7944 wxPyEndAllowThreads(__tstate);
7945 if (PyErr_Occurred()) SWIG_fail;
7946 }
7947 resultobj = SWIG_FromInt((int)result);
7948 return resultobj;
7949 fail:
7950 return NULL;
7951 }
7952
7953
7954 static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
7955 PyObject *resultobj;
7956 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7957 bool result;
7958 PyObject * obj0 = 0 ;
7959 char *kwnames[] = {
7960 (char *) "self", NULL
7961 };
7962
7963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
7964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7966 {
7967 PyThreadState* __tstate = wxPyBeginAllowThreads();
7968 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
7969
7970 wxPyEndAllowThreads(__tstate);
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 {
7974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7975 }
7976 return resultobj;
7977 fail:
7978 return NULL;
7979 }
7980
7981
7982 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
7983 PyObject *resultobj;
7984 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7985 bool result;
7986 PyObject * obj0 = 0 ;
7987 char *kwnames[] = {
7988 (char *) "self", NULL
7989 };
7990
7991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
7992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7994 {
7995 PyThreadState* __tstate = wxPyBeginAllowThreads();
7996 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
7997
7998 wxPyEndAllowThreads(__tstate);
7999 if (PyErr_Occurred()) SWIG_fail;
8000 }
8001 {
8002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8003 }
8004 return resultobj;
8005 fail:
8006 return NULL;
8007 }
8008
8009
8010 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8011 PyObject *resultobj;
8012 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8013 bool result;
8014 PyObject * obj0 = 0 ;
8015 char *kwnames[] = {
8016 (char *) "self", NULL
8017 };
8018
8019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8022 {
8023 PyThreadState* __tstate = wxPyBeginAllowThreads();
8024 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8025
8026 wxPyEndAllowThreads(__tstate);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 {
8030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8031 }
8032 return resultobj;
8033 fail:
8034 return NULL;
8035 }
8036
8037
8038 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8039 PyObject *resultobj;
8040 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8041 bool result;
8042 PyObject * obj0 = 0 ;
8043 char *kwnames[] = {
8044 (char *) "self", NULL
8045 };
8046
8047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8050 {
8051 PyThreadState* __tstate = wxPyBeginAllowThreads();
8052 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8053
8054 wxPyEndAllowThreads(__tstate);
8055 if (PyErr_Occurred()) SWIG_fail;
8056 }
8057 {
8058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8059 }
8060 return resultobj;
8061 fail:
8062 return NULL;
8063 }
8064
8065
8066 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8067 PyObject *resultobj;
8068 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8069 long *arg2 = (long *) 0 ;
8070 long *arg3 = (long *) 0 ;
8071 long temp2 ;
8072 long temp3 ;
8073 PyObject * obj0 = 0 ;
8074 char *kwnames[] = {
8075 (char *) "self", NULL
8076 };
8077
8078 arg2 = &temp2;
8079 arg3 = &temp3;
8080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8083 {
8084 PyThreadState* __tstate = wxPyBeginAllowThreads();
8085 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8086
8087 wxPyEndAllowThreads(__tstate);
8088 if (PyErr_Occurred()) SWIG_fail;
8089 }
8090 Py_INCREF(Py_None); resultobj = Py_None;
8091 {
8092 PyObject *o = PyInt_FromLong((long) (*arg2));
8093 resultobj = t_output_helper(resultobj,o);
8094 }
8095 {
8096 PyObject *o = PyInt_FromLong((long) (*arg3));
8097 resultobj = t_output_helper(resultobj,o);
8098 }
8099 return resultobj;
8100 fail:
8101 return NULL;
8102 }
8103
8104
8105 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj;
8107 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8108 wxString result;
8109 PyObject * obj0 = 0 ;
8110 char *kwnames[] = {
8111 (char *) "self", NULL
8112 };
8113
8114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8117 {
8118 PyThreadState* __tstate = wxPyBeginAllowThreads();
8119 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8120
8121 wxPyEndAllowThreads(__tstate);
8122 if (PyErr_Occurred()) SWIG_fail;
8123 }
8124 {
8125 #if wxUSE_UNICODE
8126 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8127 #else
8128 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8129 #endif
8130 }
8131 return resultobj;
8132 fail:
8133 return NULL;
8134 }
8135
8136
8137 static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8138 PyObject *resultobj;
8139 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8140 PyObject * obj0 = 0 ;
8141 char *kwnames[] = {
8142 (char *) "self", NULL
8143 };
8144
8145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8148 {
8149 PyThreadState* __tstate = wxPyBeginAllowThreads();
8150 (arg1)->Clear();
8151
8152 wxPyEndAllowThreads(__tstate);
8153 if (PyErr_Occurred()) SWIG_fail;
8154 }
8155 Py_INCREF(Py_None); resultobj = Py_None;
8156 return resultobj;
8157 fail:
8158 return NULL;
8159 }
8160
8161
8162 static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8163 PyObject *resultobj;
8164 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8165 long arg2 ;
8166 long arg3 ;
8167 wxString *arg4 = 0 ;
8168 bool temp4 = False ;
8169 PyObject * obj0 = 0 ;
8170 PyObject * obj1 = 0 ;
8171 PyObject * obj2 = 0 ;
8172 PyObject * obj3 = 0 ;
8173 char *kwnames[] = {
8174 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8175 };
8176
8177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8180 arg2 = (long) SWIG_AsLong(obj1);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 arg3 = (long) SWIG_AsLong(obj2);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 {
8185 arg4 = wxString_in_helper(obj3);
8186 if (arg4 == NULL) SWIG_fail;
8187 temp4 = True;
8188 }
8189 {
8190 PyThreadState* __tstate = wxPyBeginAllowThreads();
8191 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8192
8193 wxPyEndAllowThreads(__tstate);
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
8196 Py_INCREF(Py_None); resultobj = Py_None;
8197 {
8198 if (temp4)
8199 delete arg4;
8200 }
8201 return resultobj;
8202 fail:
8203 {
8204 if (temp4)
8205 delete arg4;
8206 }
8207 return NULL;
8208 }
8209
8210
8211 static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8212 PyObject *resultobj;
8213 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8214 long arg2 ;
8215 long arg3 ;
8216 PyObject * obj0 = 0 ;
8217 PyObject * obj1 = 0 ;
8218 PyObject * obj2 = 0 ;
8219 char *kwnames[] = {
8220 (char *) "self",(char *) "from",(char *) "to", NULL
8221 };
8222
8223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8226 arg2 = (long) SWIG_AsLong(obj1);
8227 if (PyErr_Occurred()) SWIG_fail;
8228 arg3 = (long) SWIG_AsLong(obj2);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 {
8231 PyThreadState* __tstate = wxPyBeginAllowThreads();
8232 (arg1)->Remove(arg2,arg3);
8233
8234 wxPyEndAllowThreads(__tstate);
8235 if (PyErr_Occurred()) SWIG_fail;
8236 }
8237 Py_INCREF(Py_None); resultobj = Py_None;
8238 return resultobj;
8239 fail:
8240 return NULL;
8241 }
8242
8243
8244 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8245 PyObject *resultobj;
8246 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8247 wxString *arg2 = 0 ;
8248 bool result;
8249 bool temp2 = False ;
8250 PyObject * obj0 = 0 ;
8251 PyObject * obj1 = 0 ;
8252 char *kwnames[] = {
8253 (char *) "self",(char *) "file", NULL
8254 };
8255
8256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8259 {
8260 arg2 = wxString_in_helper(obj1);
8261 if (arg2 == NULL) SWIG_fail;
8262 temp2 = True;
8263 }
8264 {
8265 PyThreadState* __tstate = wxPyBeginAllowThreads();
8266 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8267
8268 wxPyEndAllowThreads(__tstate);
8269 if (PyErr_Occurred()) SWIG_fail;
8270 }
8271 {
8272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8273 }
8274 {
8275 if (temp2)
8276 delete arg2;
8277 }
8278 return resultobj;
8279 fail:
8280 {
8281 if (temp2)
8282 delete arg2;
8283 }
8284 return NULL;
8285 }
8286
8287
8288 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8289 PyObject *resultobj;
8290 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8291 wxString const &arg2_defvalue = wxPyEmptyString ;
8292 wxString *arg2 = (wxString *) &arg2_defvalue ;
8293 bool result;
8294 bool temp2 = False ;
8295 PyObject * obj0 = 0 ;
8296 PyObject * obj1 = 0 ;
8297 char *kwnames[] = {
8298 (char *) "self",(char *) "file", NULL
8299 };
8300
8301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8304 if (obj1) {
8305 {
8306 arg2 = wxString_in_helper(obj1);
8307 if (arg2 == NULL) SWIG_fail;
8308 temp2 = True;
8309 }
8310 }
8311 {
8312 PyThreadState* __tstate = wxPyBeginAllowThreads();
8313 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8314
8315 wxPyEndAllowThreads(__tstate);
8316 if (PyErr_Occurred()) SWIG_fail;
8317 }
8318 {
8319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8320 }
8321 {
8322 if (temp2)
8323 delete arg2;
8324 }
8325 return resultobj;
8326 fail:
8327 {
8328 if (temp2)
8329 delete arg2;
8330 }
8331 return NULL;
8332 }
8333
8334
8335 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8336 PyObject *resultobj;
8337 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8338 PyObject * obj0 = 0 ;
8339 char *kwnames[] = {
8340 (char *) "self", NULL
8341 };
8342
8343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8346 {
8347 PyThreadState* __tstate = wxPyBeginAllowThreads();
8348 (arg1)->MarkDirty();
8349
8350 wxPyEndAllowThreads(__tstate);
8351 if (PyErr_Occurred()) SWIG_fail;
8352 }
8353 Py_INCREF(Py_None); resultobj = Py_None;
8354 return resultobj;
8355 fail:
8356 return NULL;
8357 }
8358
8359
8360 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8361 PyObject *resultobj;
8362 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8363 PyObject * obj0 = 0 ;
8364 char *kwnames[] = {
8365 (char *) "self", NULL
8366 };
8367
8368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8371 {
8372 PyThreadState* __tstate = wxPyBeginAllowThreads();
8373 (arg1)->DiscardEdits();
8374
8375 wxPyEndAllowThreads(__tstate);
8376 if (PyErr_Occurred()) SWIG_fail;
8377 }
8378 Py_INCREF(Py_None); resultobj = Py_None;
8379 return resultobj;
8380 fail:
8381 return NULL;
8382 }
8383
8384
8385 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8386 PyObject *resultobj;
8387 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8388 unsigned long arg2 ;
8389 PyObject * obj0 = 0 ;
8390 PyObject * obj1 = 0 ;
8391 char *kwnames[] = {
8392 (char *) "self",(char *) "len", NULL
8393 };
8394
8395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8398 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8399 if (PyErr_Occurred()) SWIG_fail;
8400 {
8401 PyThreadState* __tstate = wxPyBeginAllowThreads();
8402 (arg1)->SetMaxLength(arg2);
8403
8404 wxPyEndAllowThreads(__tstate);
8405 if (PyErr_Occurred()) SWIG_fail;
8406 }
8407 Py_INCREF(Py_None); resultobj = Py_None;
8408 return resultobj;
8409 fail:
8410 return NULL;
8411 }
8412
8413
8414 static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8415 PyObject *resultobj;
8416 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8417 wxString *arg2 = 0 ;
8418 bool temp2 = False ;
8419 PyObject * obj0 = 0 ;
8420 PyObject * obj1 = 0 ;
8421 char *kwnames[] = {
8422 (char *) "self",(char *) "text", NULL
8423 };
8424
8425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8428 {
8429 arg2 = wxString_in_helper(obj1);
8430 if (arg2 == NULL) SWIG_fail;
8431 temp2 = True;
8432 }
8433 {
8434 PyThreadState* __tstate = wxPyBeginAllowThreads();
8435 (arg1)->WriteText((wxString const &)*arg2);
8436
8437 wxPyEndAllowThreads(__tstate);
8438 if (PyErr_Occurred()) SWIG_fail;
8439 }
8440 Py_INCREF(Py_None); resultobj = Py_None;
8441 {
8442 if (temp2)
8443 delete arg2;
8444 }
8445 return resultobj;
8446 fail:
8447 {
8448 if (temp2)
8449 delete arg2;
8450 }
8451 return NULL;
8452 }
8453
8454
8455 static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8456 PyObject *resultobj;
8457 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8458 wxString *arg2 = 0 ;
8459 bool temp2 = False ;
8460 PyObject * obj0 = 0 ;
8461 PyObject * obj1 = 0 ;
8462 char *kwnames[] = {
8463 (char *) "self",(char *) "text", NULL
8464 };
8465
8466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8469 {
8470 arg2 = wxString_in_helper(obj1);
8471 if (arg2 == NULL) SWIG_fail;
8472 temp2 = True;
8473 }
8474 {
8475 PyThreadState* __tstate = wxPyBeginAllowThreads();
8476 (arg1)->AppendText((wxString const &)*arg2);
8477
8478 wxPyEndAllowThreads(__tstate);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 Py_INCREF(Py_None); resultobj = Py_None;
8482 {
8483 if (temp2)
8484 delete arg2;
8485 }
8486 return resultobj;
8487 fail:
8488 {
8489 if (temp2)
8490 delete arg2;
8491 }
8492 return NULL;
8493 }
8494
8495
8496 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8497 PyObject *resultobj;
8498 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8499 wxKeyEvent *arg2 = 0 ;
8500 bool result;
8501 PyObject * obj0 = 0 ;
8502 PyObject * obj1 = 0 ;
8503 char *kwnames[] = {
8504 (char *) "self",(char *) "event", NULL
8505 };
8506
8507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8510 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8511 SWIG_POINTER_EXCEPTION | 0)) == -1)
8512 SWIG_fail;
8513 if (arg2 == NULL) {
8514 PyErr_SetString(PyExc_TypeError,"null reference");
8515 SWIG_fail;
8516 }
8517 {
8518 PyThreadState* __tstate = wxPyBeginAllowThreads();
8519 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8520
8521 wxPyEndAllowThreads(__tstate);
8522 if (PyErr_Occurred()) SWIG_fail;
8523 }
8524 {
8525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8526 }
8527 return resultobj;
8528 fail:
8529 return NULL;
8530 }
8531
8532
8533 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8534 PyObject *resultobj;
8535 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8536 long arg2 ;
8537 long arg3 ;
8538 wxTextAttr *arg4 = 0 ;
8539 bool result;
8540 PyObject * obj0 = 0 ;
8541 PyObject * obj1 = 0 ;
8542 PyObject * obj2 = 0 ;
8543 PyObject * obj3 = 0 ;
8544 char *kwnames[] = {
8545 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8546 };
8547
8548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8551 arg2 = (long) SWIG_AsLong(obj1);
8552 if (PyErr_Occurred()) SWIG_fail;
8553 arg3 = (long) SWIG_AsLong(obj2);
8554 if (PyErr_Occurred()) SWIG_fail;
8555 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8556 SWIG_POINTER_EXCEPTION | 0)) == -1)
8557 SWIG_fail;
8558 if (arg4 == NULL) {
8559 PyErr_SetString(PyExc_TypeError,"null reference");
8560 SWIG_fail;
8561 }
8562 {
8563 PyThreadState* __tstate = wxPyBeginAllowThreads();
8564 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8565
8566 wxPyEndAllowThreads(__tstate);
8567 if (PyErr_Occurred()) SWIG_fail;
8568 }
8569 {
8570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8571 }
8572 return resultobj;
8573 fail:
8574 return NULL;
8575 }
8576
8577
8578 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8579 PyObject *resultobj;
8580 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8581 long arg2 ;
8582 wxTextAttr *arg3 = 0 ;
8583 bool result;
8584 PyObject * obj0 = 0 ;
8585 PyObject * obj1 = 0 ;
8586 PyObject * obj2 = 0 ;
8587 char *kwnames[] = {
8588 (char *) "self",(char *) "position",(char *) "style", NULL
8589 };
8590
8591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8594 arg2 = (long) SWIG_AsLong(obj1);
8595 if (PyErr_Occurred()) SWIG_fail;
8596 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
8597 SWIG_POINTER_EXCEPTION | 0)) == -1)
8598 SWIG_fail;
8599 if (arg3 == NULL) {
8600 PyErr_SetString(PyExc_TypeError,"null reference");
8601 SWIG_fail;
8602 }
8603 {
8604 PyThreadState* __tstate = wxPyBeginAllowThreads();
8605 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8606
8607 wxPyEndAllowThreads(__tstate);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 }
8610 {
8611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8612 }
8613 return resultobj;
8614 fail:
8615 return NULL;
8616 }
8617
8618
8619 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8620 PyObject *resultobj;
8621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8622 wxTextAttr *arg2 = 0 ;
8623 bool result;
8624 PyObject * obj0 = 0 ;
8625 PyObject * obj1 = 0 ;
8626 char *kwnames[] = {
8627 (char *) "self",(char *) "style", NULL
8628 };
8629
8630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
8631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8633 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8634 SWIG_POINTER_EXCEPTION | 0)) == -1)
8635 SWIG_fail;
8636 if (arg2 == NULL) {
8637 PyErr_SetString(PyExc_TypeError,"null reference");
8638 SWIG_fail;
8639 }
8640 {
8641 PyThreadState* __tstate = wxPyBeginAllowThreads();
8642 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
8643
8644 wxPyEndAllowThreads(__tstate);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 {
8648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8649 }
8650 return resultobj;
8651 fail:
8652 return NULL;
8653 }
8654
8655
8656 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8657 PyObject *resultobj;
8658 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8659 wxTextAttr *result;
8660 PyObject * obj0 = 0 ;
8661 char *kwnames[] = {
8662 (char *) "self", NULL
8663 };
8664
8665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
8666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 {
8671 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
8672 result = (wxTextAttr *) &_result_ref;
8673 }
8674
8675 wxPyEndAllowThreads(__tstate);
8676 if (PyErr_Occurred()) SWIG_fail;
8677 }
8678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
8679 return resultobj;
8680 fail:
8681 return NULL;
8682 }
8683
8684
8685 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8686 PyObject *resultobj;
8687 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8688 long arg2 ;
8689 long arg3 ;
8690 long result;
8691 PyObject * obj0 = 0 ;
8692 PyObject * obj1 = 0 ;
8693 PyObject * obj2 = 0 ;
8694 char *kwnames[] = {
8695 (char *) "self",(char *) "x",(char *) "y", NULL
8696 };
8697
8698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
8699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8701 arg2 = (long) SWIG_AsLong(obj1);
8702 if (PyErr_Occurred()) SWIG_fail;
8703 arg3 = (long) SWIG_AsLong(obj2);
8704 if (PyErr_Occurred()) SWIG_fail;
8705 {
8706 PyThreadState* __tstate = wxPyBeginAllowThreads();
8707 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
8708
8709 wxPyEndAllowThreads(__tstate);
8710 if (PyErr_Occurred()) SWIG_fail;
8711 }
8712 resultobj = SWIG_FromLong((long)result);
8713 return resultobj;
8714 fail:
8715 return NULL;
8716 }
8717
8718
8719 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
8720 PyObject *resultobj;
8721 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8722 long arg2 ;
8723 long *arg3 = (long *) 0 ;
8724 long *arg4 = (long *) 0 ;
8725 long temp3 ;
8726 long temp4 ;
8727 PyObject * obj0 = 0 ;
8728 PyObject * obj1 = 0 ;
8729 char *kwnames[] = {
8730 (char *) "self",(char *) "pos", NULL
8731 };
8732
8733 arg3 = &temp3;
8734 arg4 = &temp4;
8735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
8736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8738 arg2 = (long) SWIG_AsLong(obj1);
8739 if (PyErr_Occurred()) SWIG_fail;
8740 {
8741 PyThreadState* __tstate = wxPyBeginAllowThreads();
8742 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
8743
8744 wxPyEndAllowThreads(__tstate);
8745 if (PyErr_Occurred()) SWIG_fail;
8746 }
8747 Py_INCREF(Py_None); resultobj = Py_None;
8748 {
8749 PyObject *o = PyInt_FromLong((long) (*arg3));
8750 resultobj = t_output_helper(resultobj,o);
8751 }
8752 {
8753 PyObject *o = PyInt_FromLong((long) (*arg4));
8754 resultobj = t_output_helper(resultobj,o);
8755 }
8756 return resultobj;
8757 fail:
8758 return NULL;
8759 }
8760
8761
8762 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8763 PyObject *resultobj;
8764 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8765 long arg2 ;
8766 PyObject * obj0 = 0 ;
8767 PyObject * obj1 = 0 ;
8768 char *kwnames[] = {
8769 (char *) "self",(char *) "pos", NULL
8770 };
8771
8772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
8773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8775 arg2 = (long) SWIG_AsLong(obj1);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 {
8778 PyThreadState* __tstate = wxPyBeginAllowThreads();
8779 (arg1)->ShowPosition(arg2);
8780
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 Py_INCREF(Py_None); resultobj = Py_None;
8785 return resultobj;
8786 fail:
8787 return NULL;
8788 }
8789
8790
8791 static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
8792 PyObject *resultobj;
8793 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8794 wxPoint *arg2 = 0 ;
8795 long *arg3 = (long *) 0 ;
8796 long *arg4 = (long *) 0 ;
8797 int result;
8798 wxPoint temp2 ;
8799 long temp3 ;
8800 long temp4 ;
8801 PyObject * obj0 = 0 ;
8802 PyObject * obj1 = 0 ;
8803 char *kwnames[] = {
8804 (char *) "self",(char *) "pt", NULL
8805 };
8806
8807 arg3 = &temp3;
8808 arg4 = &temp4;
8809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
8810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8812 {
8813 arg2 = &temp2;
8814 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8815 }
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
8819
8820 wxPyEndAllowThreads(__tstate);
8821 if (PyErr_Occurred()) SWIG_fail;
8822 }
8823 resultobj = SWIG_FromInt((int)result);
8824 {
8825 PyObject *o = PyInt_FromLong((long) (*arg3));
8826 resultobj = t_output_helper(resultobj,o);
8827 }
8828 {
8829 PyObject *o = PyInt_FromLong((long) (*arg4));
8830 resultobj = t_output_helper(resultobj,o);
8831 }
8832 return resultobj;
8833 fail:
8834 return NULL;
8835 }
8836
8837
8838 static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
8839 PyObject *resultobj;
8840 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8841 PyObject * obj0 = 0 ;
8842 char *kwnames[] = {
8843 (char *) "self", NULL
8844 };
8845
8846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
8847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8849 {
8850 PyThreadState* __tstate = wxPyBeginAllowThreads();
8851 (arg1)->Copy();
8852
8853 wxPyEndAllowThreads(__tstate);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 }
8856 Py_INCREF(Py_None); resultobj = Py_None;
8857 return resultobj;
8858 fail:
8859 return NULL;
8860 }
8861
8862
8863 static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
8864 PyObject *resultobj;
8865 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8866 PyObject * obj0 = 0 ;
8867 char *kwnames[] = {
8868 (char *) "self", NULL
8869 };
8870
8871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
8872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8874 {
8875 PyThreadState* __tstate = wxPyBeginAllowThreads();
8876 (arg1)->Cut();
8877
8878 wxPyEndAllowThreads(__tstate);
8879 if (PyErr_Occurred()) SWIG_fail;
8880 }
8881 Py_INCREF(Py_None); resultobj = Py_None;
8882 return resultobj;
8883 fail:
8884 return NULL;
8885 }
8886
8887
8888 static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
8889 PyObject *resultobj;
8890 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8891 PyObject * obj0 = 0 ;
8892 char *kwnames[] = {
8893 (char *) "self", NULL
8894 };
8895
8896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
8897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 (arg1)->Paste();
8902
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 Py_INCREF(Py_None); resultobj = Py_None;
8907 return resultobj;
8908 fail:
8909 return NULL;
8910 }
8911
8912
8913 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
8914 PyObject *resultobj;
8915 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8916 bool result;
8917 PyObject * obj0 = 0 ;
8918 char *kwnames[] = {
8919 (char *) "self", NULL
8920 };
8921
8922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
8923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8925 {
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
8928
8929 wxPyEndAllowThreads(__tstate);
8930 if (PyErr_Occurred()) SWIG_fail;
8931 }
8932 {
8933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8934 }
8935 return resultobj;
8936 fail:
8937 return NULL;
8938 }
8939
8940
8941 static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
8942 PyObject *resultobj;
8943 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8944 bool result;
8945 PyObject * obj0 = 0 ;
8946 char *kwnames[] = {
8947 (char *) "self", NULL
8948 };
8949
8950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
8951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8953 {
8954 PyThreadState* __tstate = wxPyBeginAllowThreads();
8955 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
8956
8957 wxPyEndAllowThreads(__tstate);
8958 if (PyErr_Occurred()) SWIG_fail;
8959 }
8960 {
8961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8962 }
8963 return resultobj;
8964 fail:
8965 return NULL;
8966 }
8967
8968
8969 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
8970 PyObject *resultobj;
8971 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8972 bool result;
8973 PyObject * obj0 = 0 ;
8974 char *kwnames[] = {
8975 (char *) "self", NULL
8976 };
8977
8978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
8979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8981 {
8982 PyThreadState* __tstate = wxPyBeginAllowThreads();
8983 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
8984
8985 wxPyEndAllowThreads(__tstate);
8986 if (PyErr_Occurred()) SWIG_fail;
8987 }
8988 {
8989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8990 }
8991 return resultobj;
8992 fail:
8993 return NULL;
8994 }
8995
8996
8997 static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj;
8999 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9000 PyObject * obj0 = 0 ;
9001 char *kwnames[] = {
9002 (char *) "self", NULL
9003 };
9004
9005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9008 {
9009 PyThreadState* __tstate = wxPyBeginAllowThreads();
9010 (arg1)->Undo();
9011
9012 wxPyEndAllowThreads(__tstate);
9013 if (PyErr_Occurred()) SWIG_fail;
9014 }
9015 Py_INCREF(Py_None); resultobj = Py_None;
9016 return resultobj;
9017 fail:
9018 return NULL;
9019 }
9020
9021
9022 static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
9023 PyObject *resultobj;
9024 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9025 PyObject * obj0 = 0 ;
9026 char *kwnames[] = {
9027 (char *) "self", NULL
9028 };
9029
9030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9033 {
9034 PyThreadState* __tstate = wxPyBeginAllowThreads();
9035 (arg1)->Redo();
9036
9037 wxPyEndAllowThreads(__tstate);
9038 if (PyErr_Occurred()) SWIG_fail;
9039 }
9040 Py_INCREF(Py_None); resultobj = Py_None;
9041 return resultobj;
9042 fail:
9043 return NULL;
9044 }
9045
9046
9047 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
9048 PyObject *resultobj;
9049 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9050 bool result;
9051 PyObject * obj0 = 0 ;
9052 char *kwnames[] = {
9053 (char *) "self", NULL
9054 };
9055
9056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9059 {
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9062
9063 wxPyEndAllowThreads(__tstate);
9064 if (PyErr_Occurred()) SWIG_fail;
9065 }
9066 {
9067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9068 }
9069 return resultobj;
9070 fail:
9071 return NULL;
9072 }
9073
9074
9075 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
9076 PyObject *resultobj;
9077 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9078 bool result;
9079 PyObject * obj0 = 0 ;
9080 char *kwnames[] = {
9081 (char *) "self", NULL
9082 };
9083
9084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9090
9091 wxPyEndAllowThreads(__tstate);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 }
9094 {
9095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9096 }
9097 return resultobj;
9098 fail:
9099 return NULL;
9100 }
9101
9102
9103 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9104 PyObject *resultobj;
9105 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9106 long arg2 ;
9107 PyObject * obj0 = 0 ;
9108 PyObject * obj1 = 0 ;
9109 char *kwnames[] = {
9110 (char *) "self",(char *) "pos", NULL
9111 };
9112
9113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9116 arg2 = (long) SWIG_AsLong(obj1);
9117 if (PyErr_Occurred()) SWIG_fail;
9118 {
9119 PyThreadState* __tstate = wxPyBeginAllowThreads();
9120 (arg1)->SetInsertionPoint(arg2);
9121
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 }
9125 Py_INCREF(Py_None); resultobj = Py_None;
9126 return resultobj;
9127 fail:
9128 return NULL;
9129 }
9130
9131
9132 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9133 PyObject *resultobj;
9134 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9135 PyObject * obj0 = 0 ;
9136 char *kwnames[] = {
9137 (char *) "self", NULL
9138 };
9139
9140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9143 {
9144 PyThreadState* __tstate = wxPyBeginAllowThreads();
9145 (arg1)->SetInsertionPointEnd();
9146
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 Py_INCREF(Py_None); resultobj = Py_None;
9151 return resultobj;
9152 fail:
9153 return NULL;
9154 }
9155
9156
9157 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9158 PyObject *resultobj;
9159 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9160 long result;
9161 PyObject * obj0 = 0 ;
9162 char *kwnames[] = {
9163 (char *) "self", NULL
9164 };
9165
9166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9169 {
9170 PyThreadState* __tstate = wxPyBeginAllowThreads();
9171 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9172
9173 wxPyEndAllowThreads(__tstate);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 resultobj = SWIG_FromLong((long)result);
9177 return resultobj;
9178 fail:
9179 return NULL;
9180 }
9181
9182
9183 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9184 PyObject *resultobj;
9185 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9186 long result;
9187 PyObject * obj0 = 0 ;
9188 char *kwnames[] = {
9189 (char *) "self", NULL
9190 };
9191
9192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9195 {
9196 PyThreadState* __tstate = wxPyBeginAllowThreads();
9197 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9198
9199 wxPyEndAllowThreads(__tstate);
9200 if (PyErr_Occurred()) SWIG_fail;
9201 }
9202 resultobj = SWIG_FromLong((long)result);
9203 return resultobj;
9204 fail:
9205 return NULL;
9206 }
9207
9208
9209 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9210 PyObject *resultobj;
9211 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9212 long arg2 ;
9213 long arg3 ;
9214 PyObject * obj0 = 0 ;
9215 PyObject * obj1 = 0 ;
9216 PyObject * obj2 = 0 ;
9217 char *kwnames[] = {
9218 (char *) "self",(char *) "from",(char *) "to", NULL
9219 };
9220
9221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9224 arg2 = (long) SWIG_AsLong(obj1);
9225 if (PyErr_Occurred()) SWIG_fail;
9226 arg3 = (long) SWIG_AsLong(obj2);
9227 if (PyErr_Occurred()) SWIG_fail;
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
9230 (arg1)->SetSelection(arg2,arg3);
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_SelectAll(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_SelectAll",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)->SelectAll();
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_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9268 PyObject *resultobj;
9269 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9270 bool arg2 ;
9271 PyObject * obj0 = 0 ;
9272 PyObject * obj1 = 0 ;
9273 char *kwnames[] = {
9274 (char *) "self",(char *) "editable", NULL
9275 };
9276
9277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9280 arg2 = (bool) SWIG_AsBool(obj1);
9281 if (PyErr_Occurred()) SWIG_fail;
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 (arg1)->SetEditable(arg2);
9285
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 Py_INCREF(Py_None); resultobj = Py_None;
9290 return resultobj;
9291 fail:
9292 return NULL;
9293 }
9294
9295
9296 static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
9297 PyObject *resultobj;
9298 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9299 bool arg2 = (bool) True ;
9300 bool result;
9301 PyObject * obj0 = 0 ;
9302 PyObject * obj1 = 0 ;
9303 char *kwnames[] = {
9304 (char *) "self",(char *) "show", NULL
9305 };
9306
9307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail;
9308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9310 if (obj1) {
9311 arg2 = (bool) SWIG_AsBool(obj1);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 }
9314 {
9315 PyThreadState* __tstate = wxPyBeginAllowThreads();
9316 result = (bool)(arg1)->ShowNativeCaret(arg2);
9317
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 {
9322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9323 }
9324 return resultobj;
9325 fail:
9326 return NULL;
9327 }
9328
9329
9330 static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj;
9332 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9333 bool result;
9334 PyObject * obj0 = 0 ;
9335 char *kwnames[] = {
9336 (char *) "self", NULL
9337 };
9338
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail;
9340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9342 {
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 result = (bool)(arg1)->HideNativeCaret();
9345
9346 wxPyEndAllowThreads(__tstate);
9347 if (PyErr_Occurred()) SWIG_fail;
9348 }
9349 {
9350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9351 }
9352 return resultobj;
9353 fail:
9354 return NULL;
9355 }
9356
9357
9358 static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9359 PyObject *resultobj;
9360 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9361 wxString *arg2 = 0 ;
9362 bool temp2 = False ;
9363 PyObject * obj0 = 0 ;
9364 PyObject * obj1 = 0 ;
9365 char *kwnames[] = {
9366 (char *) "self",(char *) "text", NULL
9367 };
9368
9369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9372 {
9373 arg2 = wxString_in_helper(obj1);
9374 if (arg2 == NULL) SWIG_fail;
9375 temp2 = True;
9376 }
9377 {
9378 PyThreadState* __tstate = wxPyBeginAllowThreads();
9379 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9380
9381 wxPyEndAllowThreads(__tstate);
9382 if (PyErr_Occurred()) SWIG_fail;
9383 }
9384 Py_INCREF(Py_None); resultobj = Py_None;
9385 {
9386 if (temp2)
9387 delete arg2;
9388 }
9389 return resultobj;
9390 fail:
9391 {
9392 if (temp2)
9393 delete arg2;
9394 }
9395 return NULL;
9396 }
9397
9398
9399 static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj;
9401 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9402 long arg2 ;
9403 long arg3 ;
9404 wxString result;
9405 PyObject * obj0 = 0 ;
9406 PyObject * obj1 = 0 ;
9407 PyObject * obj2 = 0 ;
9408 char *kwnames[] = {
9409 (char *) "self",(char *) "from",(char *) "to", NULL
9410 };
9411
9412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9415 arg2 = (long) SWIG_AsLong(obj1);
9416 if (PyErr_Occurred()) SWIG_fail;
9417 arg3 = (long) SWIG_AsLong(obj2);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 {
9420 PyThreadState* __tstate = wxPyBeginAllowThreads();
9421 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9422
9423 wxPyEndAllowThreads(__tstate);
9424 if (PyErr_Occurred()) SWIG_fail;
9425 }
9426 {
9427 #if wxUSE_UNICODE
9428 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9429 #else
9430 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9431 #endif
9432 }
9433 return resultobj;
9434 fail:
9435 return NULL;
9436 }
9437
9438
9439 static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9440 PyObject *obj;
9441 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9442 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9443 Py_INCREF(obj);
9444 return Py_BuildValue((char *)"");
9445 }
9446 static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9447 PyObject *resultobj;
9448 int arg1 ;
9449 wxMouseEvent *arg2 = 0 ;
9450 long arg3 ;
9451 long arg4 ;
9452 wxTextUrlEvent *result;
9453 PyObject * obj0 = 0 ;
9454 PyObject * obj1 = 0 ;
9455 PyObject * obj2 = 0 ;
9456 PyObject * obj3 = 0 ;
9457 char *kwnames[] = {
9458 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9459 };
9460
9461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9462 arg1 = (int) SWIG_AsInt(obj0);
9463 if (PyErr_Occurred()) SWIG_fail;
9464 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9465 SWIG_POINTER_EXCEPTION | 0)) == -1)
9466 SWIG_fail;
9467 if (arg2 == NULL) {
9468 PyErr_SetString(PyExc_TypeError,"null reference");
9469 SWIG_fail;
9470 }
9471 arg3 = (long) SWIG_AsLong(obj2);
9472 if (PyErr_Occurred()) SWIG_fail;
9473 arg4 = (long) SWIG_AsLong(obj3);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 {
9476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9477 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9478
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9483 return resultobj;
9484 fail:
9485 return NULL;
9486 }
9487
9488
9489 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9490 PyObject *resultobj;
9491 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9492 wxMouseEvent *result;
9493 PyObject * obj0 = 0 ;
9494 char *kwnames[] = {
9495 (char *) "self", NULL
9496 };
9497
9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 {
9504 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9505 result = (wxMouseEvent *) &_result_ref;
9506 }
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9512 return resultobj;
9513 fail:
9514 return NULL;
9515 }
9516
9517
9518 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9519 PyObject *resultobj;
9520 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9521 long result;
9522 PyObject * obj0 = 0 ;
9523 char *kwnames[] = {
9524 (char *) "self", NULL
9525 };
9526
9527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9530 {
9531 PyThreadState* __tstate = wxPyBeginAllowThreads();
9532 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9533
9534 wxPyEndAllowThreads(__tstate);
9535 if (PyErr_Occurred()) SWIG_fail;
9536 }
9537 resultobj = SWIG_FromLong((long)result);
9538 return resultobj;
9539 fail:
9540 return NULL;
9541 }
9542
9543
9544 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj;
9546 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9547 long result;
9548 PyObject * obj0 = 0 ;
9549 char *kwnames[] = {
9550 (char *) "self", NULL
9551 };
9552
9553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9556 {
9557 PyThreadState* __tstate = wxPyBeginAllowThreads();
9558 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9559
9560 wxPyEndAllowThreads(__tstate);
9561 if (PyErr_Occurred()) SWIG_fail;
9562 }
9563 resultobj = SWIG_FromLong((long)result);
9564 return resultobj;
9565 fail:
9566 return NULL;
9567 }
9568
9569
9570 static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
9571 PyObject *obj;
9572 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9573 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9574 Py_INCREF(obj);
9575 return Py_BuildValue((char *)"");
9576 }
9577 static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
9578 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9579 return 1;
9580 }
9581
9582
9583 static PyObject *_wrap_ScrollBarNameStr_get() {
9584 PyObject *pyobj;
9585
9586 {
9587 #if wxUSE_UNICODE
9588 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9589 #else
9590 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9591 #endif
9592 }
9593 return pyobj;
9594 }
9595
9596
9597 static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9598 PyObject *resultobj;
9599 wxWindow *arg1 = (wxWindow *) 0 ;
9600 int arg2 = (int) -1 ;
9601 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9602 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9603 wxSize const &arg4_defvalue = wxDefaultSize ;
9604 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9605 long arg5 = (long) wxSB_HORIZONTAL ;
9606 wxValidator const &arg6_defvalue = wxDefaultValidator ;
9607 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
9608 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
9609 wxString *arg7 = (wxString *) &arg7_defvalue ;
9610 wxScrollBar *result;
9611 wxPoint temp3 ;
9612 wxSize temp4 ;
9613 bool temp7 = False ;
9614 PyObject * obj0 = 0 ;
9615 PyObject * obj1 = 0 ;
9616 PyObject * obj2 = 0 ;
9617 PyObject * obj3 = 0 ;
9618 PyObject * obj4 = 0 ;
9619 PyObject * obj5 = 0 ;
9620 PyObject * obj6 = 0 ;
9621 char *kwnames[] = {
9622 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9623 };
9624
9625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9628 if (obj1) {
9629 arg2 = (int) SWIG_AsInt(obj1);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 if (obj2) {
9633 {
9634 arg3 = &temp3;
9635 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9636 }
9637 }
9638 if (obj3) {
9639 {
9640 arg4 = &temp4;
9641 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9642 }
9643 }
9644 if (obj4) {
9645 arg5 = (long) SWIG_AsLong(obj4);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 }
9648 if (obj5) {
9649 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
9650 SWIG_POINTER_EXCEPTION | 0)) == -1)
9651 SWIG_fail;
9652 if (arg6 == NULL) {
9653 PyErr_SetString(PyExc_TypeError,"null reference");
9654 SWIG_fail;
9655 }
9656 }
9657 if (obj6) {
9658 {
9659 arg7 = wxString_in_helper(obj6);
9660 if (arg7 == NULL) SWIG_fail;
9661 temp7 = True;
9662 }
9663 }
9664 {
9665 PyThreadState* __tstate = wxPyBeginAllowThreads();
9666 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
9667
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
9672 {
9673 if (temp7)
9674 delete arg7;
9675 }
9676 return resultobj;
9677 fail:
9678 {
9679 if (temp7)
9680 delete arg7;
9681 }
9682 return NULL;
9683 }
9684
9685
9686 static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9687 PyObject *resultobj;
9688 wxScrollBar *result;
9689 char *kwnames[] = {
9690 NULL
9691 };
9692
9693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
9694 {
9695 PyThreadState* __tstate = wxPyBeginAllowThreads();
9696 result = (wxScrollBar *)new wxScrollBar();
9697
9698 wxPyEndAllowThreads(__tstate);
9699 if (PyErr_Occurred()) SWIG_fail;
9700 }
9701 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
9702 return resultobj;
9703 fail:
9704 return NULL;
9705 }
9706
9707
9708 static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9709 PyObject *resultobj;
9710 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9711 wxWindow *arg2 = (wxWindow *) 0 ;
9712 int arg3 = (int) -1 ;
9713 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9714 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9715 wxSize const &arg5_defvalue = wxDefaultSize ;
9716 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9717 long arg6 = (long) wxSB_HORIZONTAL ;
9718 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9719 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9720 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
9721 wxString *arg8 = (wxString *) &arg8_defvalue ;
9722 bool result;
9723 wxPoint temp4 ;
9724 wxSize temp5 ;
9725 bool temp8 = False ;
9726 PyObject * obj0 = 0 ;
9727 PyObject * obj1 = 0 ;
9728 PyObject * obj2 = 0 ;
9729 PyObject * obj3 = 0 ;
9730 PyObject * obj4 = 0 ;
9731 PyObject * obj5 = 0 ;
9732 PyObject * obj6 = 0 ;
9733 PyObject * obj7 = 0 ;
9734 char *kwnames[] = {
9735 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9736 };
9737
9738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
9739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
9742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9743 if (obj2) {
9744 arg3 = (int) SWIG_AsInt(obj2);
9745 if (PyErr_Occurred()) SWIG_fail;
9746 }
9747 if (obj3) {
9748 {
9749 arg4 = &temp4;
9750 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9751 }
9752 }
9753 if (obj4) {
9754 {
9755 arg5 = &temp5;
9756 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9757 }
9758 }
9759 if (obj5) {
9760 arg6 = (long) SWIG_AsLong(obj5);
9761 if (PyErr_Occurred()) SWIG_fail;
9762 }
9763 if (obj6) {
9764 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
9765 SWIG_POINTER_EXCEPTION | 0)) == -1)
9766 SWIG_fail;
9767 if (arg7 == NULL) {
9768 PyErr_SetString(PyExc_TypeError,"null reference");
9769 SWIG_fail;
9770 }
9771 }
9772 if (obj7) {
9773 {
9774 arg8 = wxString_in_helper(obj7);
9775 if (arg8 == NULL) SWIG_fail;
9776 temp8 = True;
9777 }
9778 }
9779 {
9780 PyThreadState* __tstate = wxPyBeginAllowThreads();
9781 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
9782
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 {
9787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9788 }
9789 {
9790 if (temp8)
9791 delete arg8;
9792 }
9793 return resultobj;
9794 fail:
9795 {
9796 if (temp8)
9797 delete arg8;
9798 }
9799 return NULL;
9800 }
9801
9802
9803 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9804 PyObject *resultobj;
9805 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9806 int result;
9807 PyObject * obj0 = 0 ;
9808 char *kwnames[] = {
9809 (char *) "self", NULL
9810 };
9811
9812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
9813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9815 {
9816 PyThreadState* __tstate = wxPyBeginAllowThreads();
9817 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
9818
9819 wxPyEndAllowThreads(__tstate);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 }
9822 resultobj = SWIG_FromInt((int)result);
9823 return resultobj;
9824 fail:
9825 return NULL;
9826 }
9827
9828
9829 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9830 PyObject *resultobj;
9831 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9832 int result;
9833 PyObject * obj0 = 0 ;
9834 char *kwnames[] = {
9835 (char *) "self", NULL
9836 };
9837
9838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
9839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9841 {
9842 PyThreadState* __tstate = wxPyBeginAllowThreads();
9843 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
9844
9845 wxPyEndAllowThreads(__tstate);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 }
9848 resultobj = SWIG_FromInt((int)result);
9849 return resultobj;
9850 fail:
9851 return NULL;
9852 }
9853
9854
9855 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9856 PyObject *resultobj;
9857 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9858 int result;
9859 PyObject * obj0 = 0 ;
9860 char *kwnames[] = {
9861 (char *) "self", NULL
9862 };
9863
9864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
9865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9867 {
9868 PyThreadState* __tstate = wxPyBeginAllowThreads();
9869 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
9870
9871 wxPyEndAllowThreads(__tstate);
9872 if (PyErr_Occurred()) SWIG_fail;
9873 }
9874 resultobj = SWIG_FromInt((int)result);
9875 return resultobj;
9876 fail:
9877 return NULL;
9878 }
9879
9880
9881 static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
9882 PyObject *resultobj;
9883 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9884 int result;
9885 PyObject * obj0 = 0 ;
9886 char *kwnames[] = {
9887 (char *) "self", NULL
9888 };
9889
9890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
9891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9893 {
9894 PyThreadState* __tstate = wxPyBeginAllowThreads();
9895 result = (int)((wxScrollBar const *)arg1)->GetRange();
9896
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) SWIG_fail;
9899 }
9900 resultobj = SWIG_FromInt((int)result);
9901 return resultobj;
9902 fail:
9903 return NULL;
9904 }
9905
9906
9907 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj;
9909 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9910 bool result;
9911 PyObject * obj0 = 0 ;
9912 char *kwnames[] = {
9913 (char *) "self", NULL
9914 };
9915
9916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
9917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9919 {
9920 PyThreadState* __tstate = wxPyBeginAllowThreads();
9921 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
9922
9923 wxPyEndAllowThreads(__tstate);
9924 if (PyErr_Occurred()) SWIG_fail;
9925 }
9926 {
9927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9928 }
9929 return resultobj;
9930 fail:
9931 return NULL;
9932 }
9933
9934
9935 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9936 PyObject *resultobj;
9937 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9938 int arg2 ;
9939 PyObject * obj0 = 0 ;
9940 PyObject * obj1 = 0 ;
9941 char *kwnames[] = {
9942 (char *) "self",(char *) "viewStart", NULL
9943 };
9944
9945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
9946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9948 arg2 = (int) SWIG_AsInt(obj1);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 (arg1)->SetThumbPosition(arg2);
9953
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 Py_INCREF(Py_None); resultobj = Py_None;
9958 return resultobj;
9959 fail:
9960 return NULL;
9961 }
9962
9963
9964 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
9965 PyObject *resultobj;
9966 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9967 int arg2 ;
9968 int arg3 ;
9969 int arg4 ;
9970 int arg5 ;
9971 bool arg6 = (bool) True ;
9972 PyObject * obj0 = 0 ;
9973 PyObject * obj1 = 0 ;
9974 PyObject * obj2 = 0 ;
9975 PyObject * obj3 = 0 ;
9976 PyObject * obj4 = 0 ;
9977 PyObject * obj5 = 0 ;
9978 char *kwnames[] = {
9979 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
9980 };
9981
9982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9985 arg2 = (int) SWIG_AsInt(obj1);
9986 if (PyErr_Occurred()) SWIG_fail;
9987 arg3 = (int) SWIG_AsInt(obj2);
9988 if (PyErr_Occurred()) SWIG_fail;
9989 arg4 = (int) SWIG_AsInt(obj3);
9990 if (PyErr_Occurred()) SWIG_fail;
9991 arg5 = (int) SWIG_AsInt(obj4);
9992 if (PyErr_Occurred()) SWIG_fail;
9993 if (obj5) {
9994 arg6 = (bool) SWIG_AsBool(obj5);
9995 if (PyErr_Occurred()) SWIG_fail;
9996 }
9997 {
9998 PyThreadState* __tstate = wxPyBeginAllowThreads();
9999 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10000
10001 wxPyEndAllowThreads(__tstate);
10002 if (PyErr_Occurred()) SWIG_fail;
10003 }
10004 Py_INCREF(Py_None); resultobj = Py_None;
10005 return resultobj;
10006 fail:
10007 return NULL;
10008 }
10009
10010
10011 static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
10012 PyObject *obj;
10013 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10014 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10015 Py_INCREF(obj);
10016 return Py_BuildValue((char *)"");
10017 }
10018 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
10019 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10020 return 1;
10021 }
10022
10023
10024 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10025 PyObject *pyobj;
10026
10027 {
10028 #if wxUSE_UNICODE
10029 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10030 #else
10031 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10032 #endif
10033 }
10034 return pyobj;
10035 }
10036
10037
10038 static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
10039 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10040 return 1;
10041 }
10042
10043
10044 static PyObject *_wrap_SpinCtrlNameStr_get() {
10045 PyObject *pyobj;
10046
10047 {
10048 #if wxUSE_UNICODE
10049 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10050 #else
10051 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10052 #endif
10053 }
10054 return pyobj;
10055 }
10056
10057
10058 static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10059 PyObject *resultobj;
10060 wxWindow *arg1 = (wxWindow *) 0 ;
10061 int arg2 = (int) -1 ;
10062 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10063 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10064 wxSize const &arg4_defvalue = wxDefaultSize ;
10065 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10066 long arg5 = (long) wxSP_HORIZONTAL ;
10067 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10068 wxString *arg6 = (wxString *) &arg6_defvalue ;
10069 wxSpinButton *result;
10070 wxPoint temp3 ;
10071 wxSize temp4 ;
10072 bool temp6 = False ;
10073 PyObject * obj0 = 0 ;
10074 PyObject * obj1 = 0 ;
10075 PyObject * obj2 = 0 ;
10076 PyObject * obj3 = 0 ;
10077 PyObject * obj4 = 0 ;
10078 PyObject * obj5 = 0 ;
10079 char *kwnames[] = {
10080 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10081 };
10082
10083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10086 if (obj1) {
10087 arg2 = (int) SWIG_AsInt(obj1);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 if (obj2) {
10091 {
10092 arg3 = &temp3;
10093 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10094 }
10095 }
10096 if (obj3) {
10097 {
10098 arg4 = &temp4;
10099 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10100 }
10101 }
10102 if (obj4) {
10103 arg5 = (long) SWIG_AsLong(obj4);
10104 if (PyErr_Occurred()) SWIG_fail;
10105 }
10106 if (obj5) {
10107 {
10108 arg6 = wxString_in_helper(obj5);
10109 if (arg6 == NULL) SWIG_fail;
10110 temp6 = True;
10111 }
10112 }
10113 {
10114 PyThreadState* __tstate = wxPyBeginAllowThreads();
10115 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10116
10117 wxPyEndAllowThreads(__tstate);
10118 if (PyErr_Occurred()) SWIG_fail;
10119 }
10120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10121 {
10122 if (temp6)
10123 delete arg6;
10124 }
10125 return resultobj;
10126 fail:
10127 {
10128 if (temp6)
10129 delete arg6;
10130 }
10131 return NULL;
10132 }
10133
10134
10135 static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10136 PyObject *resultobj;
10137 wxSpinButton *result;
10138 char *kwnames[] = {
10139 NULL
10140 };
10141
10142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10143 {
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = (wxSpinButton *)new wxSpinButton();
10146
10147 wxPyEndAllowThreads(__tstate);
10148 if (PyErr_Occurred()) SWIG_fail;
10149 }
10150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10151 return resultobj;
10152 fail:
10153 return NULL;
10154 }
10155
10156
10157 static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10158 PyObject *resultobj;
10159 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10160 wxWindow *arg2 = (wxWindow *) 0 ;
10161 int arg3 = (int) -1 ;
10162 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10163 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10164 wxSize const &arg5_defvalue = wxDefaultSize ;
10165 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10166 long arg6 = (long) wxSP_HORIZONTAL ;
10167 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10168 wxString *arg7 = (wxString *) &arg7_defvalue ;
10169 bool result;
10170 wxPoint temp4 ;
10171 wxSize temp5 ;
10172 bool temp7 = False ;
10173 PyObject * obj0 = 0 ;
10174 PyObject * obj1 = 0 ;
10175 PyObject * obj2 = 0 ;
10176 PyObject * obj3 = 0 ;
10177 PyObject * obj4 = 0 ;
10178 PyObject * obj5 = 0 ;
10179 PyObject * obj6 = 0 ;
10180 char *kwnames[] = {
10181 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10182 };
10183
10184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10189 if (obj2) {
10190 arg3 = (int) SWIG_AsInt(obj2);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 }
10193 if (obj3) {
10194 {
10195 arg4 = &temp4;
10196 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10197 }
10198 }
10199 if (obj4) {
10200 {
10201 arg5 = &temp5;
10202 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10203 }
10204 }
10205 if (obj5) {
10206 arg6 = (long) SWIG_AsLong(obj5);
10207 if (PyErr_Occurred()) SWIG_fail;
10208 }
10209 if (obj6) {
10210 {
10211 arg7 = wxString_in_helper(obj6);
10212 if (arg7 == NULL) SWIG_fail;
10213 temp7 = True;
10214 }
10215 }
10216 {
10217 PyThreadState* __tstate = wxPyBeginAllowThreads();
10218 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10219
10220 wxPyEndAllowThreads(__tstate);
10221 if (PyErr_Occurred()) SWIG_fail;
10222 }
10223 {
10224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10225 }
10226 {
10227 if (temp7)
10228 delete arg7;
10229 }
10230 return resultobj;
10231 fail:
10232 {
10233 if (temp7)
10234 delete arg7;
10235 }
10236 return NULL;
10237 }
10238
10239
10240 static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10241 PyObject *resultobj;
10242 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10243 int result;
10244 PyObject * obj0 = 0 ;
10245 char *kwnames[] = {
10246 (char *) "self", NULL
10247 };
10248
10249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10252 {
10253 PyThreadState* __tstate = wxPyBeginAllowThreads();
10254 result = (int)((wxSpinButton const *)arg1)->GetValue();
10255
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 resultobj = SWIG_FromInt((int)result);
10260 return resultobj;
10261 fail:
10262 return NULL;
10263 }
10264
10265
10266 static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10267 PyObject *resultobj;
10268 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10269 int result;
10270 PyObject * obj0 = 0 ;
10271 char *kwnames[] = {
10272 (char *) "self", NULL
10273 };
10274
10275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10278 {
10279 PyThreadState* __tstate = wxPyBeginAllowThreads();
10280 result = (int)((wxSpinButton const *)arg1)->GetMin();
10281
10282 wxPyEndAllowThreads(__tstate);
10283 if (PyErr_Occurred()) SWIG_fail;
10284 }
10285 resultobj = SWIG_FromInt((int)result);
10286 return resultobj;
10287 fail:
10288 return NULL;
10289 }
10290
10291
10292 static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10293 PyObject *resultobj;
10294 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10295 int result;
10296 PyObject * obj0 = 0 ;
10297 char *kwnames[] = {
10298 (char *) "self", NULL
10299 };
10300
10301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10304 {
10305 PyThreadState* __tstate = wxPyBeginAllowThreads();
10306 result = (int)((wxSpinButton const *)arg1)->GetMax();
10307
10308 wxPyEndAllowThreads(__tstate);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 }
10311 resultobj = SWIG_FromInt((int)result);
10312 return resultobj;
10313 fail:
10314 return NULL;
10315 }
10316
10317
10318 static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10319 PyObject *resultobj;
10320 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10321 int arg2 ;
10322 PyObject * obj0 = 0 ;
10323 PyObject * obj1 = 0 ;
10324 char *kwnames[] = {
10325 (char *) "self",(char *) "val", NULL
10326 };
10327
10328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10331 arg2 = (int) SWIG_AsInt(obj1);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 {
10334 PyThreadState* __tstate = wxPyBeginAllowThreads();
10335 (arg1)->SetValue(arg2);
10336
10337 wxPyEndAllowThreads(__tstate);
10338 if (PyErr_Occurred()) SWIG_fail;
10339 }
10340 Py_INCREF(Py_None); resultobj = Py_None;
10341 return resultobj;
10342 fail:
10343 return NULL;
10344 }
10345
10346
10347 static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10348 PyObject *resultobj;
10349 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10350 int arg2 ;
10351 PyObject * obj0 = 0 ;
10352 PyObject * obj1 = 0 ;
10353 char *kwnames[] = {
10354 (char *) "self",(char *) "minVal", NULL
10355 };
10356
10357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10360 arg2 = (int) SWIG_AsInt(obj1);
10361 if (PyErr_Occurred()) SWIG_fail;
10362 {
10363 PyThreadState* __tstate = wxPyBeginAllowThreads();
10364 (arg1)->SetMin(arg2);
10365
10366 wxPyEndAllowThreads(__tstate);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 Py_INCREF(Py_None); resultobj = Py_None;
10370 return resultobj;
10371 fail:
10372 return NULL;
10373 }
10374
10375
10376 static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj;
10378 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10379 int arg2 ;
10380 PyObject * obj0 = 0 ;
10381 PyObject * obj1 = 0 ;
10382 char *kwnames[] = {
10383 (char *) "self",(char *) "maxVal", NULL
10384 };
10385
10386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10389 arg2 = (int) SWIG_AsInt(obj1);
10390 if (PyErr_Occurred()) SWIG_fail;
10391 {
10392 PyThreadState* __tstate = wxPyBeginAllowThreads();
10393 (arg1)->SetMax(arg2);
10394
10395 wxPyEndAllowThreads(__tstate);
10396 if (PyErr_Occurred()) SWIG_fail;
10397 }
10398 Py_INCREF(Py_None); resultobj = Py_None;
10399 return resultobj;
10400 fail:
10401 return NULL;
10402 }
10403
10404
10405 static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10406 PyObject *resultobj;
10407 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10408 int arg2 ;
10409 int arg3 ;
10410 PyObject * obj0 = 0 ;
10411 PyObject * obj1 = 0 ;
10412 PyObject * obj2 = 0 ;
10413 char *kwnames[] = {
10414 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10415 };
10416
10417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10420 arg2 = (int) SWIG_AsInt(obj1);
10421 if (PyErr_Occurred()) SWIG_fail;
10422 arg3 = (int) SWIG_AsInt(obj2);
10423 if (PyErr_Occurred()) SWIG_fail;
10424 {
10425 PyThreadState* __tstate = wxPyBeginAllowThreads();
10426 (arg1)->SetRange(arg2,arg3);
10427
10428 wxPyEndAllowThreads(__tstate);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 Py_INCREF(Py_None); resultobj = Py_None;
10432 return resultobj;
10433 fail:
10434 return NULL;
10435 }
10436
10437
10438 static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10439 PyObject *resultobj;
10440 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10441 bool result;
10442 PyObject * obj0 = 0 ;
10443 char *kwnames[] = {
10444 (char *) "self", NULL
10445 };
10446
10447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10453
10454 wxPyEndAllowThreads(__tstate);
10455 if (PyErr_Occurred()) SWIG_fail;
10456 }
10457 {
10458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10459 }
10460 return resultobj;
10461 fail:
10462 return NULL;
10463 }
10464
10465
10466 static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10467 PyObject *obj;
10468 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10469 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10470 Py_INCREF(obj);
10471 return Py_BuildValue((char *)"");
10472 }
10473 static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10474 PyObject *resultobj;
10475 wxWindow *arg1 = (wxWindow *) 0 ;
10476 int arg2 = (int) -1 ;
10477 wxString const &arg3_defvalue = wxPyEmptyString ;
10478 wxString *arg3 = (wxString *) &arg3_defvalue ;
10479 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10480 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10481 wxSize const &arg5_defvalue = wxDefaultSize ;
10482 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10483 long arg6 = (long) wxSP_ARROW_KEYS ;
10484 int arg7 = (int) 0 ;
10485 int arg8 = (int) 100 ;
10486 int arg9 = (int) 0 ;
10487 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10488 wxString *arg10 = (wxString *) &arg10_defvalue ;
10489 wxSpinCtrl *result;
10490 bool temp3 = False ;
10491 wxPoint temp4 ;
10492 wxSize temp5 ;
10493 bool temp10 = False ;
10494 PyObject * obj0 = 0 ;
10495 PyObject * obj1 = 0 ;
10496 PyObject * obj2 = 0 ;
10497 PyObject * obj3 = 0 ;
10498 PyObject * obj4 = 0 ;
10499 PyObject * obj5 = 0 ;
10500 PyObject * obj6 = 0 ;
10501 PyObject * obj7 = 0 ;
10502 PyObject * obj8 = 0 ;
10503 PyObject * obj9 = 0 ;
10504 char *kwnames[] = {
10505 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10506 };
10507
10508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10511 if (obj1) {
10512 arg2 = (int) SWIG_AsInt(obj1);
10513 if (PyErr_Occurred()) SWIG_fail;
10514 }
10515 if (obj2) {
10516 {
10517 arg3 = wxString_in_helper(obj2);
10518 if (arg3 == NULL) SWIG_fail;
10519 temp3 = True;
10520 }
10521 }
10522 if (obj3) {
10523 {
10524 arg4 = &temp4;
10525 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10526 }
10527 }
10528 if (obj4) {
10529 {
10530 arg5 = &temp5;
10531 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10532 }
10533 }
10534 if (obj5) {
10535 arg6 = (long) SWIG_AsLong(obj5);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 }
10538 if (obj6) {
10539 arg7 = (int) SWIG_AsInt(obj6);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 if (obj7) {
10543 arg8 = (int) SWIG_AsInt(obj7);
10544 if (PyErr_Occurred()) SWIG_fail;
10545 }
10546 if (obj8) {
10547 arg9 = (int) SWIG_AsInt(obj8);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 if (obj9) {
10551 {
10552 arg10 = wxString_in_helper(obj9);
10553 if (arg10 == NULL) SWIG_fail;
10554 temp10 = True;
10555 }
10556 }
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
10560
10561 wxPyEndAllowThreads(__tstate);
10562 if (PyErr_Occurred()) SWIG_fail;
10563 }
10564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10565 {
10566 if (temp3)
10567 delete arg3;
10568 }
10569 {
10570 if (temp10)
10571 delete arg10;
10572 }
10573 return resultobj;
10574 fail:
10575 {
10576 if (temp3)
10577 delete arg3;
10578 }
10579 {
10580 if (temp10)
10581 delete arg10;
10582 }
10583 return NULL;
10584 }
10585
10586
10587 static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10588 PyObject *resultobj;
10589 wxSpinCtrl *result;
10590 char *kwnames[] = {
10591 NULL
10592 };
10593
10594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
10595 {
10596 PyThreadState* __tstate = wxPyBeginAllowThreads();
10597 result = (wxSpinCtrl *)new wxSpinCtrl();
10598
10599 wxPyEndAllowThreads(__tstate);
10600 if (PyErr_Occurred()) SWIG_fail;
10601 }
10602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10603 return resultobj;
10604 fail:
10605 return NULL;
10606 }
10607
10608
10609 static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10610 PyObject *resultobj;
10611 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10612 wxWindow *arg2 = (wxWindow *) 0 ;
10613 int arg3 = (int) -1 ;
10614 wxString const &arg4_defvalue = wxPyEmptyString ;
10615 wxString *arg4 = (wxString *) &arg4_defvalue ;
10616 wxPoint const &arg5_defvalue = wxDefaultPosition ;
10617 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
10618 wxSize const &arg6_defvalue = wxDefaultSize ;
10619 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
10620 long arg7 = (long) wxSP_ARROW_KEYS ;
10621 int arg8 = (int) 0 ;
10622 int arg9 = (int) 100 ;
10623 int arg10 = (int) 0 ;
10624 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
10625 wxString *arg11 = (wxString *) &arg11_defvalue ;
10626 bool result;
10627 bool temp4 = False ;
10628 wxPoint temp5 ;
10629 wxSize temp6 ;
10630 bool temp11 = False ;
10631 PyObject * obj0 = 0 ;
10632 PyObject * obj1 = 0 ;
10633 PyObject * obj2 = 0 ;
10634 PyObject * obj3 = 0 ;
10635 PyObject * obj4 = 0 ;
10636 PyObject * obj5 = 0 ;
10637 PyObject * obj6 = 0 ;
10638 PyObject * obj7 = 0 ;
10639 PyObject * obj8 = 0 ;
10640 PyObject * obj9 = 0 ;
10641 PyObject * obj10 = 0 ;
10642 char *kwnames[] = {
10643 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10644 };
10645
10646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
10647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10649 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10651 if (obj2) {
10652 arg3 = (int) SWIG_AsInt(obj2);
10653 if (PyErr_Occurred()) SWIG_fail;
10654 }
10655 if (obj3) {
10656 {
10657 arg4 = wxString_in_helper(obj3);
10658 if (arg4 == NULL) SWIG_fail;
10659 temp4 = True;
10660 }
10661 }
10662 if (obj4) {
10663 {
10664 arg5 = &temp5;
10665 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10666 }
10667 }
10668 if (obj5) {
10669 {
10670 arg6 = &temp6;
10671 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
10672 }
10673 }
10674 if (obj6) {
10675 arg7 = (long) SWIG_AsLong(obj6);
10676 if (PyErr_Occurred()) SWIG_fail;
10677 }
10678 if (obj7) {
10679 arg8 = (int) SWIG_AsInt(obj7);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 if (obj8) {
10683 arg9 = (int) SWIG_AsInt(obj8);
10684 if (PyErr_Occurred()) SWIG_fail;
10685 }
10686 if (obj9) {
10687 arg10 = (int) SWIG_AsInt(obj9);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 if (obj10) {
10691 {
10692 arg11 = wxString_in_helper(obj10);
10693 if (arg11 == NULL) SWIG_fail;
10694 temp11 = True;
10695 }
10696 }
10697 {
10698 PyThreadState* __tstate = wxPyBeginAllowThreads();
10699 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
10700
10701 wxPyEndAllowThreads(__tstate);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 }
10704 {
10705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10706 }
10707 {
10708 if (temp4)
10709 delete arg4;
10710 }
10711 {
10712 if (temp11)
10713 delete arg11;
10714 }
10715 return resultobj;
10716 fail:
10717 {
10718 if (temp4)
10719 delete arg4;
10720 }
10721 {
10722 if (temp11)
10723 delete arg11;
10724 }
10725 return NULL;
10726 }
10727
10728
10729 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10730 PyObject *resultobj;
10731 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10732 int result;
10733 PyObject * obj0 = 0 ;
10734 char *kwnames[] = {
10735 (char *) "self", NULL
10736 };
10737
10738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
10739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10741 {
10742 PyThreadState* __tstate = wxPyBeginAllowThreads();
10743 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
10744
10745 wxPyEndAllowThreads(__tstate);
10746 if (PyErr_Occurred()) SWIG_fail;
10747 }
10748 resultobj = SWIG_FromInt((int)result);
10749 return resultobj;
10750 fail:
10751 return NULL;
10752 }
10753
10754
10755 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10756 PyObject *resultobj;
10757 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10758 int arg2 ;
10759 PyObject * obj0 = 0 ;
10760 PyObject * obj1 = 0 ;
10761 char *kwnames[] = {
10762 (char *) "self",(char *) "value", NULL
10763 };
10764
10765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
10766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10768 arg2 = (int) SWIG_AsInt(obj1);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 {
10771 PyThreadState* __tstate = wxPyBeginAllowThreads();
10772 (arg1)->SetValue(arg2);
10773
10774 wxPyEndAllowThreads(__tstate);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 Py_INCREF(Py_None); resultobj = Py_None;
10778 return resultobj;
10779 fail:
10780 return NULL;
10781 }
10782
10783
10784 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
10785 PyObject *resultobj;
10786 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10787 wxString *arg2 = 0 ;
10788 bool temp2 = False ;
10789 PyObject * obj0 = 0 ;
10790 PyObject * obj1 = 0 ;
10791 char *kwnames[] = {
10792 (char *) "self",(char *) "text", NULL
10793 };
10794
10795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
10796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10798 {
10799 arg2 = wxString_in_helper(obj1);
10800 if (arg2 == NULL) SWIG_fail;
10801 temp2 = True;
10802 }
10803 {
10804 PyThreadState* __tstate = wxPyBeginAllowThreads();
10805 (arg1)->SetValue((wxString const &)*arg2);
10806
10807 wxPyEndAllowThreads(__tstate);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 Py_INCREF(Py_None); resultobj = Py_None;
10811 {
10812 if (temp2)
10813 delete arg2;
10814 }
10815 return resultobj;
10816 fail:
10817 {
10818 if (temp2)
10819 delete arg2;
10820 }
10821 return NULL;
10822 }
10823
10824
10825 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10826 PyObject *resultobj;
10827 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10828 int arg2 ;
10829 int arg3 ;
10830 PyObject * obj0 = 0 ;
10831 PyObject * obj1 = 0 ;
10832 PyObject * obj2 = 0 ;
10833 char *kwnames[] = {
10834 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10835 };
10836
10837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10840 arg2 = (int) SWIG_AsInt(obj1);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 arg3 = (int) SWIG_AsInt(obj2);
10843 if (PyErr_Occurred()) SWIG_fail;
10844 {
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 (arg1)->SetRange(arg2,arg3);
10847
10848 wxPyEndAllowThreads(__tstate);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 Py_INCREF(Py_None); resultobj = Py_None;
10852 return resultobj;
10853 fail:
10854 return NULL;
10855 }
10856
10857
10858 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10859 PyObject *resultobj;
10860 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10861 int result;
10862 PyObject * obj0 = 0 ;
10863 char *kwnames[] = {
10864 (char *) "self", NULL
10865 };
10866
10867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
10868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10870 {
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
10873
10874 wxPyEndAllowThreads(__tstate);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 }
10877 resultobj = SWIG_FromInt((int)result);
10878 return resultobj;
10879 fail:
10880 return NULL;
10881 }
10882
10883
10884 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10885 PyObject *resultobj;
10886 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10887 int result;
10888 PyObject * obj0 = 0 ;
10889 char *kwnames[] = {
10890 (char *) "self", NULL
10891 };
10892
10893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
10894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10896 {
10897 PyThreadState* __tstate = wxPyBeginAllowThreads();
10898 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
10899
10900 wxPyEndAllowThreads(__tstate);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 }
10903 resultobj = SWIG_FromInt((int)result);
10904 return resultobj;
10905 fail:
10906 return NULL;
10907 }
10908
10909
10910 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
10911 PyObject *resultobj;
10912 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10913 long arg2 ;
10914 long arg3 ;
10915 PyObject * obj0 = 0 ;
10916 PyObject * obj1 = 0 ;
10917 PyObject * obj2 = 0 ;
10918 char *kwnames[] = {
10919 (char *) "self",(char *) "from",(char *) "to", NULL
10920 };
10921
10922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
10923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10925 arg2 = (long) SWIG_AsLong(obj1);
10926 if (PyErr_Occurred()) SWIG_fail;
10927 arg3 = (long) SWIG_AsLong(obj2);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 (arg1)->SetSelection(arg2,arg3);
10932
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 Py_INCREF(Py_None); resultobj = Py_None;
10937 return resultobj;
10938 fail:
10939 return NULL;
10940 }
10941
10942
10943 static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
10944 PyObject *obj;
10945 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10946 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
10947 Py_INCREF(obj);
10948 return Py_BuildValue((char *)"");
10949 }
10950 static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10951 PyObject *resultobj;
10952 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10953 int arg2 = (int) 0 ;
10954 wxSpinEvent *result;
10955 PyObject * obj0 = 0 ;
10956 PyObject * obj1 = 0 ;
10957 char *kwnames[] = {
10958 (char *) "commandType",(char *) "winid", NULL
10959 };
10960
10961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
10962 if (obj0) {
10963 arg1 = (wxEventType) SWIG_AsInt(obj0);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 if (obj1) {
10967 arg2 = (int) SWIG_AsInt(obj1);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 }
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
10973
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
10978 return resultobj;
10979 fail:
10980 return NULL;
10981 }
10982
10983
10984 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj;
10986 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10987 int result;
10988 PyObject * obj0 = 0 ;
10989 char *kwnames[] = {
10990 (char *) "self", NULL
10991 };
10992
10993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
10994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
10995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10996 {
10997 PyThreadState* __tstate = wxPyBeginAllowThreads();
10998 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
10999
11000 wxPyEndAllowThreads(__tstate);
11001 if (PyErr_Occurred()) SWIG_fail;
11002 }
11003 resultobj = SWIG_FromInt((int)result);
11004 return resultobj;
11005 fail:
11006 return NULL;
11007 }
11008
11009
11010 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj;
11012 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11013 int arg2 ;
11014 PyObject * obj0 = 0 ;
11015 PyObject * obj1 = 0 ;
11016 char *kwnames[] = {
11017 (char *) "self",(char *) "pos", NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11023 arg2 = (int) SWIG_AsInt(obj1);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 {
11026 PyThreadState* __tstate = wxPyBeginAllowThreads();
11027 (arg1)->SetPosition(arg2);
11028
11029 wxPyEndAllowThreads(__tstate);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 Py_INCREF(Py_None); resultobj = Py_None;
11033 return resultobj;
11034 fail:
11035 return NULL;
11036 }
11037
11038
11039 static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
11040 PyObject *obj;
11041 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11042 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11043 Py_INCREF(obj);
11044 return Py_BuildValue((char *)"");
11045 }
11046 static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
11047 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11048 return 1;
11049 }
11050
11051
11052 static PyObject *_wrap_RadioBoxNameStr_get() {
11053 PyObject *pyobj;
11054
11055 {
11056 #if wxUSE_UNICODE
11057 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11058 #else
11059 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11060 #endif
11061 }
11062 return pyobj;
11063 }
11064
11065
11066 static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
11067 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11068 return 1;
11069 }
11070
11071
11072 static PyObject *_wrap_RadioButtonNameStr_get() {
11073 PyObject *pyobj;
11074
11075 {
11076 #if wxUSE_UNICODE
11077 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11078 #else
11079 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11080 #endif
11081 }
11082 return pyobj;
11083 }
11084
11085
11086 static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11087 PyObject *resultobj;
11088 wxWindow *arg1 = (wxWindow *) 0 ;
11089 int arg2 ;
11090 wxString *arg3 = 0 ;
11091 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11092 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11093 wxSize const &arg5_defvalue = wxDefaultSize ;
11094 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11095 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11096 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11097 int arg7 = (int) 0 ;
11098 long arg8 = (long) wxRA_HORIZONTAL ;
11099 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11100 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11101 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11102 wxString *arg10 = (wxString *) &arg10_defvalue ;
11103 wxRadioBox *result;
11104 bool temp3 = False ;
11105 wxPoint temp4 ;
11106 wxSize temp5 ;
11107 bool temp6 = False ;
11108 bool temp10 = False ;
11109 PyObject * obj0 = 0 ;
11110 PyObject * obj1 = 0 ;
11111 PyObject * obj2 = 0 ;
11112 PyObject * obj3 = 0 ;
11113 PyObject * obj4 = 0 ;
11114 PyObject * obj5 = 0 ;
11115 PyObject * obj6 = 0 ;
11116 PyObject * obj7 = 0 ;
11117 PyObject * obj8 = 0 ;
11118 PyObject * obj9 = 0 ;
11119 char *kwnames[] = {
11120 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11121 };
11122
11123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11126 arg2 = (int) SWIG_AsInt(obj1);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 {
11129 arg3 = wxString_in_helper(obj2);
11130 if (arg3 == NULL) SWIG_fail;
11131 temp3 = True;
11132 }
11133 if (obj3) {
11134 {
11135 arg4 = &temp4;
11136 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11137 }
11138 }
11139 if (obj4) {
11140 {
11141 arg5 = &temp5;
11142 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11143 }
11144 }
11145 if (obj5) {
11146 {
11147 if (! PySequence_Check(obj5)) {
11148 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11149 SWIG_fail;
11150 }
11151 arg6 = new wxArrayString;
11152 temp6 = True;
11153 int i, len=PySequence_Length(obj5);
11154 for (i=0; i<len; i++) {
11155 PyObject* item = PySequence_GetItem(obj5, i);
11156 #if wxUSE_UNICODE
11157 PyObject* str = PyObject_Unicode(item);
11158 #else
11159 PyObject* str = PyObject_Str(item);
11160 #endif
11161 if (PyErr_Occurred()) SWIG_fail;
11162 arg6->Add(Py2wxString(str));
11163 Py_DECREF(item);
11164 Py_DECREF(str);
11165 }
11166 }
11167 }
11168 if (obj6) {
11169 arg7 = (int) SWIG_AsInt(obj6);
11170 if (PyErr_Occurred()) SWIG_fail;
11171 }
11172 if (obj7) {
11173 arg8 = (long) SWIG_AsLong(obj7);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 if (obj8) {
11177 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11178 SWIG_POINTER_EXCEPTION | 0)) == -1)
11179 SWIG_fail;
11180 if (arg9 == NULL) {
11181 PyErr_SetString(PyExc_TypeError,"null reference");
11182 SWIG_fail;
11183 }
11184 }
11185 if (obj9) {
11186 {
11187 arg10 = wxString_in_helper(obj9);
11188 if (arg10 == NULL) SWIG_fail;
11189 temp10 = True;
11190 }
11191 }
11192 {
11193 PyThreadState* __tstate = wxPyBeginAllowThreads();
11194 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);
11195
11196 wxPyEndAllowThreads(__tstate);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 }
11199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11200 {
11201 if (temp3)
11202 delete arg3;
11203 }
11204 {
11205 if (temp6) delete arg6;
11206 }
11207 {
11208 if (temp10)
11209 delete arg10;
11210 }
11211 return resultobj;
11212 fail:
11213 {
11214 if (temp3)
11215 delete arg3;
11216 }
11217 {
11218 if (temp6) delete arg6;
11219 }
11220 {
11221 if (temp10)
11222 delete arg10;
11223 }
11224 return NULL;
11225 }
11226
11227
11228 static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11229 PyObject *resultobj;
11230 wxRadioBox *result;
11231 char *kwnames[] = {
11232 NULL
11233 };
11234
11235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11236 {
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 result = (wxRadioBox *)new wxRadioBox();
11239
11240 wxPyEndAllowThreads(__tstate);
11241 if (PyErr_Occurred()) SWIG_fail;
11242 }
11243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11244 return resultobj;
11245 fail:
11246 return NULL;
11247 }
11248
11249
11250 static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11251 PyObject *resultobj;
11252 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11253 wxWindow *arg2 = (wxWindow *) 0 ;
11254 int arg3 ;
11255 wxString *arg4 = 0 ;
11256 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11257 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11258 wxSize const &arg6_defvalue = wxDefaultSize ;
11259 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11260 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11261 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11262 int arg8 = (int) 0 ;
11263 long arg9 = (long) wxRA_HORIZONTAL ;
11264 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11265 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11266 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11267 wxString *arg11 = (wxString *) &arg11_defvalue ;
11268 bool result;
11269 bool temp4 = False ;
11270 wxPoint temp5 ;
11271 wxSize temp6 ;
11272 bool temp7 = False ;
11273 bool temp11 = False ;
11274 PyObject * obj0 = 0 ;
11275 PyObject * obj1 = 0 ;
11276 PyObject * obj2 = 0 ;
11277 PyObject * obj3 = 0 ;
11278 PyObject * obj4 = 0 ;
11279 PyObject * obj5 = 0 ;
11280 PyObject * obj6 = 0 ;
11281 PyObject * obj7 = 0 ;
11282 PyObject * obj8 = 0 ;
11283 PyObject * obj9 = 0 ;
11284 PyObject * obj10 = 0 ;
11285 char *kwnames[] = {
11286 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11287 };
11288
11289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11292 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11294 arg3 = (int) SWIG_AsInt(obj2);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 {
11297 arg4 = wxString_in_helper(obj3);
11298 if (arg4 == NULL) SWIG_fail;
11299 temp4 = True;
11300 }
11301 if (obj4) {
11302 {
11303 arg5 = &temp5;
11304 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11305 }
11306 }
11307 if (obj5) {
11308 {
11309 arg6 = &temp6;
11310 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11311 }
11312 }
11313 if (obj6) {
11314 {
11315 if (! PySequence_Check(obj6)) {
11316 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11317 SWIG_fail;
11318 }
11319 arg7 = new wxArrayString;
11320 temp7 = True;
11321 int i, len=PySequence_Length(obj6);
11322 for (i=0; i<len; i++) {
11323 PyObject* item = PySequence_GetItem(obj6, i);
11324 #if wxUSE_UNICODE
11325 PyObject* str = PyObject_Unicode(item);
11326 #else
11327 PyObject* str = PyObject_Str(item);
11328 #endif
11329 if (PyErr_Occurred()) SWIG_fail;
11330 arg7->Add(Py2wxString(str));
11331 Py_DECREF(item);
11332 Py_DECREF(str);
11333 }
11334 }
11335 }
11336 if (obj7) {
11337 arg8 = (int) SWIG_AsInt(obj7);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 }
11340 if (obj8) {
11341 arg9 = (long) SWIG_AsLong(obj8);
11342 if (PyErr_Occurred()) SWIG_fail;
11343 }
11344 if (obj9) {
11345 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11346 SWIG_POINTER_EXCEPTION | 0)) == -1)
11347 SWIG_fail;
11348 if (arg10 == NULL) {
11349 PyErr_SetString(PyExc_TypeError,"null reference");
11350 SWIG_fail;
11351 }
11352 }
11353 if (obj10) {
11354 {
11355 arg11 = wxString_in_helper(obj10);
11356 if (arg11 == NULL) SWIG_fail;
11357 temp11 = True;
11358 }
11359 }
11360 {
11361 PyThreadState* __tstate = wxPyBeginAllowThreads();
11362 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);
11363
11364 wxPyEndAllowThreads(__tstate);
11365 if (PyErr_Occurred()) SWIG_fail;
11366 }
11367 {
11368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11369 }
11370 {
11371 if (temp4)
11372 delete arg4;
11373 }
11374 {
11375 if (temp7) delete arg7;
11376 }
11377 {
11378 if (temp11)
11379 delete arg11;
11380 }
11381 return resultobj;
11382 fail:
11383 {
11384 if (temp4)
11385 delete arg4;
11386 }
11387 {
11388 if (temp7) delete arg7;
11389 }
11390 {
11391 if (temp11)
11392 delete arg11;
11393 }
11394 return NULL;
11395 }
11396
11397
11398 static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11399 PyObject *resultobj;
11400 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11401 int arg2 ;
11402 PyObject * obj0 = 0 ;
11403 PyObject * obj1 = 0 ;
11404 char *kwnames[] = {
11405 (char *) "self",(char *) "n", NULL
11406 };
11407
11408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11411 arg2 = (int) SWIG_AsInt(obj1);
11412 if (PyErr_Occurred()) SWIG_fail;
11413 {
11414 PyThreadState* __tstate = wxPyBeginAllowThreads();
11415 (arg1)->SetSelection(arg2);
11416
11417 wxPyEndAllowThreads(__tstate);
11418 if (PyErr_Occurred()) SWIG_fail;
11419 }
11420 Py_INCREF(Py_None); resultobj = Py_None;
11421 return resultobj;
11422 fail:
11423 return NULL;
11424 }
11425
11426
11427 static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11428 PyObject *resultobj;
11429 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11430 int result;
11431 PyObject * obj0 = 0 ;
11432 char *kwnames[] = {
11433 (char *) "self", NULL
11434 };
11435
11436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11439 {
11440 PyThreadState* __tstate = wxPyBeginAllowThreads();
11441 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11442
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 resultobj = SWIG_FromInt((int)result);
11447 return resultobj;
11448 fail:
11449 return NULL;
11450 }
11451
11452
11453 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11454 PyObject *resultobj;
11455 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11456 wxString result;
11457 PyObject * obj0 = 0 ;
11458 char *kwnames[] = {
11459 (char *) "self", NULL
11460 };
11461
11462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11468
11469 wxPyEndAllowThreads(__tstate);
11470 if (PyErr_Occurred()) SWIG_fail;
11471 }
11472 {
11473 #if wxUSE_UNICODE
11474 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11475 #else
11476 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11477 #endif
11478 }
11479 return resultobj;
11480 fail:
11481 return NULL;
11482 }
11483
11484
11485 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11486 PyObject *resultobj;
11487 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11488 wxString *arg2 = 0 ;
11489 bool result;
11490 bool temp2 = False ;
11491 PyObject * obj0 = 0 ;
11492 PyObject * obj1 = 0 ;
11493 char *kwnames[] = {
11494 (char *) "self",(char *) "s", NULL
11495 };
11496
11497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
11498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11500 {
11501 arg2 = wxString_in_helper(obj1);
11502 if (arg2 == NULL) SWIG_fail;
11503 temp2 = True;
11504 }
11505 {
11506 PyThreadState* __tstate = wxPyBeginAllowThreads();
11507 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
11508
11509 wxPyEndAllowThreads(__tstate);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
11512 {
11513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11514 }
11515 {
11516 if (temp2)
11517 delete arg2;
11518 }
11519 return resultobj;
11520 fail:
11521 {
11522 if (temp2)
11523 delete arg2;
11524 }
11525 return NULL;
11526 }
11527
11528
11529 static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11530 PyObject *resultobj;
11531 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11532 int result;
11533 PyObject * obj0 = 0 ;
11534 char *kwnames[] = {
11535 (char *) "self", NULL
11536 };
11537
11538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
11539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11541 {
11542 PyThreadState* __tstate = wxPyBeginAllowThreads();
11543 result = (int)((wxRadioBox const *)arg1)->GetCount();
11544
11545 wxPyEndAllowThreads(__tstate);
11546 if (PyErr_Occurred()) SWIG_fail;
11547 }
11548 resultobj = SWIG_FromInt((int)result);
11549 return resultobj;
11550 fail:
11551 return NULL;
11552 }
11553
11554
11555 static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
11556 PyObject *resultobj;
11557 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11558 wxString *arg2 = 0 ;
11559 int result;
11560 bool temp2 = False ;
11561 PyObject * obj0 = 0 ;
11562 PyObject * obj1 = 0 ;
11563 char *kwnames[] = {
11564 (char *) "self",(char *) "s", NULL
11565 };
11566
11567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
11568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11570 {
11571 arg2 = wxString_in_helper(obj1);
11572 if (arg2 == NULL) SWIG_fail;
11573 temp2 = True;
11574 }
11575 {
11576 PyThreadState* __tstate = wxPyBeginAllowThreads();
11577 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
11578
11579 wxPyEndAllowThreads(__tstate);
11580 if (PyErr_Occurred()) SWIG_fail;
11581 }
11582 resultobj = SWIG_FromInt((int)result);
11583 {
11584 if (temp2)
11585 delete arg2;
11586 }
11587 return resultobj;
11588 fail:
11589 {
11590 if (temp2)
11591 delete arg2;
11592 }
11593 return NULL;
11594 }
11595
11596
11597 static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
11598 PyObject *resultobj;
11599 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11600 int arg2 ;
11601 wxString result;
11602 PyObject * obj0 = 0 ;
11603 PyObject * obj1 = 0 ;
11604 char *kwnames[] = {
11605 (char *) "self",(char *) "n", NULL
11606 };
11607
11608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
11609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11611 arg2 = (int) SWIG_AsInt(obj1);
11612 if (PyErr_Occurred()) SWIG_fail;
11613 {
11614 PyThreadState* __tstate = wxPyBeginAllowThreads();
11615 result = ((wxRadioBox const *)arg1)->GetString(arg2);
11616
11617 wxPyEndAllowThreads(__tstate);
11618 if (PyErr_Occurred()) SWIG_fail;
11619 }
11620 {
11621 #if wxUSE_UNICODE
11622 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11623 #else
11624 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11625 #endif
11626 }
11627 return resultobj;
11628 fail:
11629 return NULL;
11630 }
11631
11632
11633 static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
11634 PyObject *resultobj;
11635 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11636 int arg2 ;
11637 wxString *arg3 = 0 ;
11638 bool temp3 = False ;
11639 PyObject * obj0 = 0 ;
11640 PyObject * obj1 = 0 ;
11641 PyObject * obj2 = 0 ;
11642 char *kwnames[] = {
11643 (char *) "self",(char *) "n",(char *) "label", NULL
11644 };
11645
11646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
11647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11649 arg2 = (int) SWIG_AsInt(obj1);
11650 if (PyErr_Occurred()) SWIG_fail;
11651 {
11652 arg3 = wxString_in_helper(obj2);
11653 if (arg3 == NULL) SWIG_fail;
11654 temp3 = True;
11655 }
11656 {
11657 PyThreadState* __tstate = wxPyBeginAllowThreads();
11658 (arg1)->SetString(arg2,(wxString const &)*arg3);
11659
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 Py_INCREF(Py_None); resultobj = Py_None;
11664 {
11665 if (temp3)
11666 delete arg3;
11667 }
11668 return resultobj;
11669 fail:
11670 {
11671 if (temp3)
11672 delete arg3;
11673 }
11674 return NULL;
11675 }
11676
11677
11678 static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11679 PyObject *resultobj;
11680 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11681 int arg2 ;
11682 bool arg3 = (bool) True ;
11683 PyObject * obj0 = 0 ;
11684 PyObject * obj1 = 0 ;
11685 PyObject * obj2 = 0 ;
11686 char *kwnames[] = {
11687 (char *) "self",(char *) "n",(char *) "enable", NULL
11688 };
11689
11690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11693 arg2 = (int) SWIG_AsInt(obj1);
11694 if (PyErr_Occurred()) SWIG_fail;
11695 if (obj2) {
11696 arg3 = (bool) SWIG_AsBool(obj2);
11697 if (PyErr_Occurred()) SWIG_fail;
11698 }
11699 {
11700 PyThreadState* __tstate = wxPyBeginAllowThreads();
11701 (arg1)->Enable(arg2,arg3);
11702
11703 wxPyEndAllowThreads(__tstate);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 }
11706 Py_INCREF(Py_None); resultobj = Py_None;
11707 return resultobj;
11708 fail:
11709 return NULL;
11710 }
11711
11712
11713 static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11714 PyObject *resultobj;
11715 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11716 int arg2 ;
11717 bool arg3 = (bool) True ;
11718 PyObject * obj0 = 0 ;
11719 PyObject * obj1 = 0 ;
11720 PyObject * obj2 = 0 ;
11721 char *kwnames[] = {
11722 (char *) "self",(char *) "n",(char *) "show", NULL
11723 };
11724
11725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11728 arg2 = (int) SWIG_AsInt(obj1);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 if (obj2) {
11731 arg3 = (bool) SWIG_AsBool(obj2);
11732 if (PyErr_Occurred()) SWIG_fail;
11733 }
11734 {
11735 PyThreadState* __tstate = wxPyBeginAllowThreads();
11736 (arg1)->Show(arg2,arg3);
11737
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 Py_INCREF(Py_None); resultobj = Py_None;
11742 return resultobj;
11743 fail:
11744 return NULL;
11745 }
11746
11747
11748 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11749 PyObject *resultobj;
11750 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11751 int result;
11752 PyObject * obj0 = 0 ;
11753 char *kwnames[] = {
11754 (char *) "self", NULL
11755 };
11756
11757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
11758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11760 {
11761 PyThreadState* __tstate = wxPyBeginAllowThreads();
11762 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
11763
11764 wxPyEndAllowThreads(__tstate);
11765 if (PyErr_Occurred()) SWIG_fail;
11766 }
11767 resultobj = SWIG_FromInt((int)result);
11768 return resultobj;
11769 fail:
11770 return NULL;
11771 }
11772
11773
11774 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11775 PyObject *resultobj;
11776 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11777 int result;
11778 PyObject * obj0 = 0 ;
11779 char *kwnames[] = {
11780 (char *) "self", NULL
11781 };
11782
11783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
11784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11786 {
11787 PyThreadState* __tstate = wxPyBeginAllowThreads();
11788 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
11789
11790 wxPyEndAllowThreads(__tstate);
11791 if (PyErr_Occurred()) SWIG_fail;
11792 }
11793 resultobj = SWIG_FromInt((int)result);
11794 return resultobj;
11795 fail:
11796 return NULL;
11797 }
11798
11799
11800 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11801 PyObject *resultobj;
11802 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11803 int arg2 ;
11804 int arg3 ;
11805 long arg4 ;
11806 int result;
11807 PyObject * obj0 = 0 ;
11808 PyObject * obj1 = 0 ;
11809 PyObject * obj2 = 0 ;
11810 PyObject * obj3 = 0 ;
11811 char *kwnames[] = {
11812 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
11813 };
11814
11815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11818 arg2 = (int) SWIG_AsInt(obj1);
11819 if (PyErr_Occurred()) SWIG_fail;
11820 arg3 = (wxDirection) SWIG_AsInt(obj2);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 arg4 = (long) SWIG_AsLong(obj3);
11823 if (PyErr_Occurred()) SWIG_fail;
11824 {
11825 PyThreadState* __tstate = wxPyBeginAllowThreads();
11826 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
11827
11828 wxPyEndAllowThreads(__tstate);
11829 if (PyErr_Occurred()) SWIG_fail;
11830 }
11831 resultobj = SWIG_FromInt((int)result);
11832 return resultobj;
11833 fail:
11834 return NULL;
11835 }
11836
11837
11838 static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
11839 PyObject *obj;
11840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11841 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
11842 Py_INCREF(obj);
11843 return Py_BuildValue((char *)"");
11844 }
11845 static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11846 PyObject *resultobj;
11847 wxWindow *arg1 = (wxWindow *) 0 ;
11848 int arg2 ;
11849 wxString *arg3 = 0 ;
11850 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11851 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11852 wxSize const &arg5_defvalue = wxDefaultSize ;
11853 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11854 long arg6 = (long) 0 ;
11855 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11856 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11857 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
11858 wxString *arg8 = (wxString *) &arg8_defvalue ;
11859 wxRadioButton *result;
11860 bool temp3 = False ;
11861 wxPoint temp4 ;
11862 wxSize temp5 ;
11863 bool temp8 = False ;
11864 PyObject * obj0 = 0 ;
11865 PyObject * obj1 = 0 ;
11866 PyObject * obj2 = 0 ;
11867 PyObject * obj3 = 0 ;
11868 PyObject * obj4 = 0 ;
11869 PyObject * obj5 = 0 ;
11870 PyObject * obj6 = 0 ;
11871 PyObject * obj7 = 0 ;
11872 char *kwnames[] = {
11873 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11874 };
11875
11876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11879 arg2 = (int) SWIG_AsInt(obj1);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 {
11882 arg3 = wxString_in_helper(obj2);
11883 if (arg3 == NULL) SWIG_fail;
11884 temp3 = True;
11885 }
11886 if (obj3) {
11887 {
11888 arg4 = &temp4;
11889 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11890 }
11891 }
11892 if (obj4) {
11893 {
11894 arg5 = &temp5;
11895 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11896 }
11897 }
11898 if (obj5) {
11899 arg6 = (long) SWIG_AsLong(obj5);
11900 if (PyErr_Occurred()) SWIG_fail;
11901 }
11902 if (obj6) {
11903 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
11904 SWIG_POINTER_EXCEPTION | 0)) == -1)
11905 SWIG_fail;
11906 if (arg7 == NULL) {
11907 PyErr_SetString(PyExc_TypeError,"null reference");
11908 SWIG_fail;
11909 }
11910 }
11911 if (obj7) {
11912 {
11913 arg8 = wxString_in_helper(obj7);
11914 if (arg8 == NULL) SWIG_fail;
11915 temp8 = True;
11916 }
11917 }
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11921
11922 wxPyEndAllowThreads(__tstate);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 }
11925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
11926 {
11927 if (temp3)
11928 delete arg3;
11929 }
11930 {
11931 if (temp8)
11932 delete arg8;
11933 }
11934 return resultobj;
11935 fail:
11936 {
11937 if (temp3)
11938 delete arg3;
11939 }
11940 {
11941 if (temp8)
11942 delete arg8;
11943 }
11944 return NULL;
11945 }
11946
11947
11948 static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11949 PyObject *resultobj;
11950 wxRadioButton *result;
11951 char *kwnames[] = {
11952 NULL
11953 };
11954
11955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
11956 {
11957 PyThreadState* __tstate = wxPyBeginAllowThreads();
11958 result = (wxRadioButton *)new wxRadioButton();
11959
11960 wxPyEndAllowThreads(__tstate);
11961 if (PyErr_Occurred()) SWIG_fail;
11962 }
11963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
11964 return resultobj;
11965 fail:
11966 return NULL;
11967 }
11968
11969
11970 static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11971 PyObject *resultobj;
11972 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11973 wxWindow *arg2 = (wxWindow *) 0 ;
11974 int arg3 ;
11975 wxString *arg4 = 0 ;
11976 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11977 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11978 wxSize const &arg6_defvalue = wxDefaultSize ;
11979 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11980 long arg7 = (long) 0 ;
11981 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11982 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11983 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
11984 wxString *arg9 = (wxString *) &arg9_defvalue ;
11985 bool result;
11986 bool temp4 = False ;
11987 wxPoint temp5 ;
11988 wxSize temp6 ;
11989 bool temp9 = False ;
11990 PyObject * obj0 = 0 ;
11991 PyObject * obj1 = 0 ;
11992 PyObject * obj2 = 0 ;
11993 PyObject * obj3 = 0 ;
11994 PyObject * obj4 = 0 ;
11995 PyObject * obj5 = 0 ;
11996 PyObject * obj6 = 0 ;
11997 PyObject * obj7 = 0 ;
11998 PyObject * obj8 = 0 ;
11999 char *kwnames[] = {
12000 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12001 };
12002
12003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12008 arg3 = (int) SWIG_AsInt(obj2);
12009 if (PyErr_Occurred()) SWIG_fail;
12010 {
12011 arg4 = wxString_in_helper(obj3);
12012 if (arg4 == NULL) SWIG_fail;
12013 temp4 = True;
12014 }
12015 if (obj4) {
12016 {
12017 arg5 = &temp5;
12018 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12019 }
12020 }
12021 if (obj5) {
12022 {
12023 arg6 = &temp6;
12024 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12025 }
12026 }
12027 if (obj6) {
12028 arg7 = (long) SWIG_AsLong(obj6);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 if (obj7) {
12032 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12033 SWIG_POINTER_EXCEPTION | 0)) == -1)
12034 SWIG_fail;
12035 if (arg8 == NULL) {
12036 PyErr_SetString(PyExc_TypeError,"null reference");
12037 SWIG_fail;
12038 }
12039 }
12040 if (obj8) {
12041 {
12042 arg9 = wxString_in_helper(obj8);
12043 if (arg9 == NULL) SWIG_fail;
12044 temp9 = True;
12045 }
12046 }
12047 {
12048 PyThreadState* __tstate = wxPyBeginAllowThreads();
12049 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12050
12051 wxPyEndAllowThreads(__tstate);
12052 if (PyErr_Occurred()) SWIG_fail;
12053 }
12054 {
12055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12056 }
12057 {
12058 if (temp4)
12059 delete arg4;
12060 }
12061 {
12062 if (temp9)
12063 delete arg9;
12064 }
12065 return resultobj;
12066 fail:
12067 {
12068 if (temp4)
12069 delete arg4;
12070 }
12071 {
12072 if (temp9)
12073 delete arg9;
12074 }
12075 return NULL;
12076 }
12077
12078
12079 static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12080 PyObject *resultobj;
12081 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12082 bool result;
12083 PyObject * obj0 = 0 ;
12084 char *kwnames[] = {
12085 (char *) "self", NULL
12086 };
12087
12088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 result = (bool)(arg1)->GetValue();
12094
12095 wxPyEndAllowThreads(__tstate);
12096 if (PyErr_Occurred()) SWIG_fail;
12097 }
12098 {
12099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12100 }
12101 return resultobj;
12102 fail:
12103 return NULL;
12104 }
12105
12106
12107 static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12108 PyObject *resultobj;
12109 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12110 bool arg2 ;
12111 PyObject * obj0 = 0 ;
12112 PyObject * obj1 = 0 ;
12113 char *kwnames[] = {
12114 (char *) "self",(char *) "value", NULL
12115 };
12116
12117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12120 arg2 = (bool) SWIG_AsBool(obj1);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 {
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 (arg1)->SetValue(arg2);
12125
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 Py_INCREF(Py_None); resultobj = Py_None;
12130 return resultobj;
12131 fail:
12132 return NULL;
12133 }
12134
12135
12136 static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
12137 PyObject *obj;
12138 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12139 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12140 Py_INCREF(obj);
12141 return Py_BuildValue((char *)"");
12142 }
12143 static int _wrap_SliderNameStr_set(PyObject *_val) {
12144 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12145 return 1;
12146 }
12147
12148
12149 static PyObject *_wrap_SliderNameStr_get() {
12150 PyObject *pyobj;
12151
12152 {
12153 #if wxUSE_UNICODE
12154 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12155 #else
12156 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12157 #endif
12158 }
12159 return pyobj;
12160 }
12161
12162
12163 static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
12164 PyObject *resultobj;
12165 wxWindow *arg1 = (wxWindow *) 0 ;
12166 int arg2 ;
12167 int arg3 ;
12168 int arg4 ;
12169 int arg5 ;
12170 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12171 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12172 wxSize const &arg7_defvalue = wxDefaultSize ;
12173 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12174 long arg8 = (long) wxSL_HORIZONTAL ;
12175 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12176 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12177 wxString const &arg10_defvalue = wxPySliderNameStr ;
12178 wxString *arg10 = (wxString *) &arg10_defvalue ;
12179 wxSlider *result;
12180 wxPoint temp6 ;
12181 wxSize temp7 ;
12182 bool temp10 = False ;
12183 PyObject * obj0 = 0 ;
12184 PyObject * obj1 = 0 ;
12185 PyObject * obj2 = 0 ;
12186 PyObject * obj3 = 0 ;
12187 PyObject * obj4 = 0 ;
12188 PyObject * obj5 = 0 ;
12189 PyObject * obj6 = 0 ;
12190 PyObject * obj7 = 0 ;
12191 PyObject * obj8 = 0 ;
12192 PyObject * obj9 = 0 ;
12193 char *kwnames[] = {
12194 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12195 };
12196
12197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12200 arg2 = (int) SWIG_AsInt(obj1);
12201 if (PyErr_Occurred()) SWIG_fail;
12202 arg3 = (int) SWIG_AsInt(obj2);
12203 if (PyErr_Occurred()) SWIG_fail;
12204 arg4 = (int) SWIG_AsInt(obj3);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 arg5 = (int) SWIG_AsInt(obj4);
12207 if (PyErr_Occurred()) SWIG_fail;
12208 if (obj5) {
12209 {
12210 arg6 = &temp6;
12211 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12212 }
12213 }
12214 if (obj6) {
12215 {
12216 arg7 = &temp7;
12217 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12218 }
12219 }
12220 if (obj7) {
12221 arg8 = (long) SWIG_AsLong(obj7);
12222 if (PyErr_Occurred()) SWIG_fail;
12223 }
12224 if (obj8) {
12225 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12226 SWIG_POINTER_EXCEPTION | 0)) == -1)
12227 SWIG_fail;
12228 if (arg9 == NULL) {
12229 PyErr_SetString(PyExc_TypeError,"null reference");
12230 SWIG_fail;
12231 }
12232 }
12233 if (obj9) {
12234 {
12235 arg10 = wxString_in_helper(obj9);
12236 if (arg10 == NULL) SWIG_fail;
12237 temp10 = True;
12238 }
12239 }
12240 {
12241 PyThreadState* __tstate = wxPyBeginAllowThreads();
12242 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12243
12244 wxPyEndAllowThreads(__tstate);
12245 if (PyErr_Occurred()) SWIG_fail;
12246 }
12247 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12248 {
12249 if (temp10)
12250 delete arg10;
12251 }
12252 return resultobj;
12253 fail:
12254 {
12255 if (temp10)
12256 delete arg10;
12257 }
12258 return NULL;
12259 }
12260
12261
12262 static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
12263 PyObject *resultobj;
12264 wxSlider *result;
12265 char *kwnames[] = {
12266 NULL
12267 };
12268
12269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12270 {
12271 PyThreadState* __tstate = wxPyBeginAllowThreads();
12272 result = (wxSlider *)new wxSlider();
12273
12274 wxPyEndAllowThreads(__tstate);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 }
12277 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12278 return resultobj;
12279 fail:
12280 return NULL;
12281 }
12282
12283
12284 static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12285 PyObject *resultobj;
12286 wxSlider *arg1 = (wxSlider *) 0 ;
12287 wxWindow *arg2 = (wxWindow *) 0 ;
12288 int arg3 ;
12289 int arg4 ;
12290 int arg5 ;
12291 int arg6 ;
12292 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12293 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12294 wxSize const &arg8_defvalue = wxDefaultSize ;
12295 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12296 long arg9 = (long) wxSL_HORIZONTAL ;
12297 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12298 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12299 wxString const &arg11_defvalue = wxPySliderNameStr ;
12300 wxString *arg11 = (wxString *) &arg11_defvalue ;
12301 bool result;
12302 wxPoint temp7 ;
12303 wxSize temp8 ;
12304 bool temp11 = False ;
12305 PyObject * obj0 = 0 ;
12306 PyObject * obj1 = 0 ;
12307 PyObject * obj2 = 0 ;
12308 PyObject * obj3 = 0 ;
12309 PyObject * obj4 = 0 ;
12310 PyObject * obj5 = 0 ;
12311 PyObject * obj6 = 0 ;
12312 PyObject * obj7 = 0 ;
12313 PyObject * obj8 = 0 ;
12314 PyObject * obj9 = 0 ;
12315 PyObject * obj10 = 0 ;
12316 char *kwnames[] = {
12317 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12318 };
12319
12320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12323 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12325 arg3 = (int) SWIG_AsInt(obj2);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 arg4 = (int) SWIG_AsInt(obj3);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 arg5 = (int) SWIG_AsInt(obj4);
12330 if (PyErr_Occurred()) SWIG_fail;
12331 arg6 = (int) SWIG_AsInt(obj5);
12332 if (PyErr_Occurred()) SWIG_fail;
12333 if (obj6) {
12334 {
12335 arg7 = &temp7;
12336 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12337 }
12338 }
12339 if (obj7) {
12340 {
12341 arg8 = &temp8;
12342 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12343 }
12344 }
12345 if (obj8) {
12346 arg9 = (long) SWIG_AsLong(obj8);
12347 if (PyErr_Occurred()) SWIG_fail;
12348 }
12349 if (obj9) {
12350 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12351 SWIG_POINTER_EXCEPTION | 0)) == -1)
12352 SWIG_fail;
12353 if (arg10 == NULL) {
12354 PyErr_SetString(PyExc_TypeError,"null reference");
12355 SWIG_fail;
12356 }
12357 }
12358 if (obj10) {
12359 {
12360 arg11 = wxString_in_helper(obj10);
12361 if (arg11 == NULL) SWIG_fail;
12362 temp11 = True;
12363 }
12364 }
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12368
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 {
12373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12374 }
12375 {
12376 if (temp11)
12377 delete arg11;
12378 }
12379 return resultobj;
12380 fail:
12381 {
12382 if (temp11)
12383 delete arg11;
12384 }
12385 return NULL;
12386 }
12387
12388
12389 static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12390 PyObject *resultobj;
12391 wxSlider *arg1 = (wxSlider *) 0 ;
12392 int result;
12393 PyObject * obj0 = 0 ;
12394 char *kwnames[] = {
12395 (char *) "self", NULL
12396 };
12397
12398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12401 {
12402 PyThreadState* __tstate = wxPyBeginAllowThreads();
12403 result = (int)((wxSlider const *)arg1)->GetValue();
12404
12405 wxPyEndAllowThreads(__tstate);
12406 if (PyErr_Occurred()) SWIG_fail;
12407 }
12408 resultobj = SWIG_FromInt((int)result);
12409 return resultobj;
12410 fail:
12411 return NULL;
12412 }
12413
12414
12415 static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12416 PyObject *resultobj;
12417 wxSlider *arg1 = (wxSlider *) 0 ;
12418 int arg2 ;
12419 PyObject * obj0 = 0 ;
12420 PyObject * obj1 = 0 ;
12421 char *kwnames[] = {
12422 (char *) "self",(char *) "value", NULL
12423 };
12424
12425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12428 arg2 = (int) SWIG_AsInt(obj1);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
12432 (arg1)->SetValue(arg2);
12433
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 Py_INCREF(Py_None); resultobj = Py_None;
12438 return resultobj;
12439 fail:
12440 return NULL;
12441 }
12442
12443
12444 static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
12445 PyObject *resultobj;
12446 wxSlider *arg1 = (wxSlider *) 0 ;
12447 int arg2 ;
12448 int arg3 ;
12449 PyObject * obj0 = 0 ;
12450 PyObject * obj1 = 0 ;
12451 PyObject * obj2 = 0 ;
12452 char *kwnames[] = {
12453 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
12454 };
12455
12456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
12457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12459 arg2 = (int) SWIG_AsInt(obj1);
12460 if (PyErr_Occurred()) SWIG_fail;
12461 arg3 = (int) SWIG_AsInt(obj2);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 {
12464 PyThreadState* __tstate = wxPyBeginAllowThreads();
12465 (arg1)->SetRange(arg2,arg3);
12466
12467 wxPyEndAllowThreads(__tstate);
12468 if (PyErr_Occurred()) SWIG_fail;
12469 }
12470 Py_INCREF(Py_None); resultobj = Py_None;
12471 return resultobj;
12472 fail:
12473 return NULL;
12474 }
12475
12476
12477 static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12478 PyObject *resultobj;
12479 wxSlider *arg1 = (wxSlider *) 0 ;
12480 int result;
12481 PyObject * obj0 = 0 ;
12482 char *kwnames[] = {
12483 (char *) "self", NULL
12484 };
12485
12486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
12487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12489 {
12490 PyThreadState* __tstate = wxPyBeginAllowThreads();
12491 result = (int)((wxSlider const *)arg1)->GetMin();
12492
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 resultobj = SWIG_FromInt((int)result);
12497 return resultobj;
12498 fail:
12499 return NULL;
12500 }
12501
12502
12503 static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12504 PyObject *resultobj;
12505 wxSlider *arg1 = (wxSlider *) 0 ;
12506 int result;
12507 PyObject * obj0 = 0 ;
12508 char *kwnames[] = {
12509 (char *) "self", NULL
12510 };
12511
12512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
12513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12515 {
12516 PyThreadState* __tstate = wxPyBeginAllowThreads();
12517 result = (int)((wxSlider const *)arg1)->GetMax();
12518
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 resultobj = SWIG_FromInt((int)result);
12523 return resultobj;
12524 fail:
12525 return NULL;
12526 }
12527
12528
12529 static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12530 PyObject *resultobj;
12531 wxSlider *arg1 = (wxSlider *) 0 ;
12532 int arg2 ;
12533 PyObject * obj0 = 0 ;
12534 PyObject * obj1 = 0 ;
12535 char *kwnames[] = {
12536 (char *) "self",(char *) "minValue", NULL
12537 };
12538
12539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
12540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12542 arg2 = (int) SWIG_AsInt(obj1);
12543 if (PyErr_Occurred()) SWIG_fail;
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
12546 (arg1)->SetMin(arg2);
12547
12548 wxPyEndAllowThreads(__tstate);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 }
12551 Py_INCREF(Py_None); resultobj = Py_None;
12552 return resultobj;
12553 fail:
12554 return NULL;
12555 }
12556
12557
12558 static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12559 PyObject *resultobj;
12560 wxSlider *arg1 = (wxSlider *) 0 ;
12561 int arg2 ;
12562 PyObject * obj0 = 0 ;
12563 PyObject * obj1 = 0 ;
12564 char *kwnames[] = {
12565 (char *) "self",(char *) "maxValue", NULL
12566 };
12567
12568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
12569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12571 arg2 = (int) SWIG_AsInt(obj1);
12572 if (PyErr_Occurred()) SWIG_fail;
12573 {
12574 PyThreadState* __tstate = wxPyBeginAllowThreads();
12575 (arg1)->SetMax(arg2);
12576
12577 wxPyEndAllowThreads(__tstate);
12578 if (PyErr_Occurred()) SWIG_fail;
12579 }
12580 Py_INCREF(Py_None); resultobj = Py_None;
12581 return resultobj;
12582 fail:
12583 return NULL;
12584 }
12585
12586
12587 static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12588 PyObject *resultobj;
12589 wxSlider *arg1 = (wxSlider *) 0 ;
12590 int arg2 ;
12591 PyObject * obj0 = 0 ;
12592 PyObject * obj1 = 0 ;
12593 char *kwnames[] = {
12594 (char *) "self",(char *) "lineSize", NULL
12595 };
12596
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
12598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12600 arg2 = (int) SWIG_AsInt(obj1);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 {
12603 PyThreadState* __tstate = wxPyBeginAllowThreads();
12604 (arg1)->SetLineSize(arg2);
12605
12606 wxPyEndAllowThreads(__tstate);
12607 if (PyErr_Occurred()) SWIG_fail;
12608 }
12609 Py_INCREF(Py_None); resultobj = Py_None;
12610 return resultobj;
12611 fail:
12612 return NULL;
12613 }
12614
12615
12616 static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12617 PyObject *resultobj;
12618 wxSlider *arg1 = (wxSlider *) 0 ;
12619 int arg2 ;
12620 PyObject * obj0 = 0 ;
12621 PyObject * obj1 = 0 ;
12622 char *kwnames[] = {
12623 (char *) "self",(char *) "pageSize", NULL
12624 };
12625
12626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
12627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12629 arg2 = (int) SWIG_AsInt(obj1);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 (arg1)->SetPageSize(arg2);
12634
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 Py_INCREF(Py_None); resultobj = Py_None;
12639 return resultobj;
12640 fail:
12641 return NULL;
12642 }
12643
12644
12645 static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12646 PyObject *resultobj;
12647 wxSlider *arg1 = (wxSlider *) 0 ;
12648 int result;
12649 PyObject * obj0 = 0 ;
12650 char *kwnames[] = {
12651 (char *) "self", NULL
12652 };
12653
12654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
12655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12657 {
12658 PyThreadState* __tstate = wxPyBeginAllowThreads();
12659 result = (int)((wxSlider const *)arg1)->GetLineSize();
12660
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 resultobj = SWIG_FromInt((int)result);
12665 return resultobj;
12666 fail:
12667 return NULL;
12668 }
12669
12670
12671 static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12672 PyObject *resultobj;
12673 wxSlider *arg1 = (wxSlider *) 0 ;
12674 int result;
12675 PyObject * obj0 = 0 ;
12676 char *kwnames[] = {
12677 (char *) "self", NULL
12678 };
12679
12680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
12681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12683 {
12684 PyThreadState* __tstate = wxPyBeginAllowThreads();
12685 result = (int)((wxSlider const *)arg1)->GetPageSize();
12686
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 resultobj = SWIG_FromInt((int)result);
12691 return resultobj;
12692 fail:
12693 return NULL;
12694 }
12695
12696
12697 static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
12698 PyObject *resultobj;
12699 wxSlider *arg1 = (wxSlider *) 0 ;
12700 int arg2 ;
12701 PyObject * obj0 = 0 ;
12702 PyObject * obj1 = 0 ;
12703 char *kwnames[] = {
12704 (char *) "self",(char *) "lenPixels", NULL
12705 };
12706
12707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
12708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12710 arg2 = (int) SWIG_AsInt(obj1);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 {
12713 PyThreadState* __tstate = wxPyBeginAllowThreads();
12714 (arg1)->SetThumbLength(arg2);
12715
12716 wxPyEndAllowThreads(__tstate);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 Py_INCREF(Py_None); resultobj = Py_None;
12720 return resultobj;
12721 fail:
12722 return NULL;
12723 }
12724
12725
12726 static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
12727 PyObject *resultobj;
12728 wxSlider *arg1 = (wxSlider *) 0 ;
12729 int result;
12730 PyObject * obj0 = 0 ;
12731 char *kwnames[] = {
12732 (char *) "self", NULL
12733 };
12734
12735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
12736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12738 {
12739 PyThreadState* __tstate = wxPyBeginAllowThreads();
12740 result = (int)((wxSlider const *)arg1)->GetThumbLength();
12741
12742 wxPyEndAllowThreads(__tstate);
12743 if (PyErr_Occurred()) SWIG_fail;
12744 }
12745 resultobj = SWIG_FromInt((int)result);
12746 return resultobj;
12747 fail:
12748 return NULL;
12749 }
12750
12751
12752 static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
12753 PyObject *resultobj;
12754 wxSlider *arg1 = (wxSlider *) 0 ;
12755 int arg2 ;
12756 int arg3 = (int) 1 ;
12757 PyObject * obj0 = 0 ;
12758 PyObject * obj1 = 0 ;
12759 PyObject * obj2 = 0 ;
12760 char *kwnames[] = {
12761 (char *) "self",(char *) "n",(char *) "pos", NULL
12762 };
12763
12764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
12765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12767 arg2 = (int) SWIG_AsInt(obj1);
12768 if (PyErr_Occurred()) SWIG_fail;
12769 if (obj2) {
12770 arg3 = (int) SWIG_AsInt(obj2);
12771 if (PyErr_Occurred()) SWIG_fail;
12772 }
12773 {
12774 PyThreadState* __tstate = wxPyBeginAllowThreads();
12775 (arg1)->SetTickFreq(arg2,arg3);
12776
12777 wxPyEndAllowThreads(__tstate);
12778 if (PyErr_Occurred()) SWIG_fail;
12779 }
12780 Py_INCREF(Py_None); resultobj = Py_None;
12781 return resultobj;
12782 fail:
12783 return NULL;
12784 }
12785
12786
12787 static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
12788 PyObject *resultobj;
12789 wxSlider *arg1 = (wxSlider *) 0 ;
12790 int result;
12791 PyObject * obj0 = 0 ;
12792 char *kwnames[] = {
12793 (char *) "self", NULL
12794 };
12795
12796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
12797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12799 {
12800 PyThreadState* __tstate = wxPyBeginAllowThreads();
12801 result = (int)((wxSlider const *)arg1)->GetTickFreq();
12802
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 resultobj = SWIG_FromInt((int)result);
12807 return resultobj;
12808 fail:
12809 return NULL;
12810 }
12811
12812
12813 static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
12814 PyObject *resultobj;
12815 wxSlider *arg1 = (wxSlider *) 0 ;
12816 PyObject * obj0 = 0 ;
12817 char *kwnames[] = {
12818 (char *) "self", NULL
12819 };
12820
12821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
12822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12824 {
12825 PyThreadState* __tstate = wxPyBeginAllowThreads();
12826 (arg1)->ClearTicks();
12827
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 Py_INCREF(Py_None); resultobj = Py_None;
12832 return resultobj;
12833 fail:
12834 return NULL;
12835 }
12836
12837
12838 static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
12839 PyObject *resultobj;
12840 wxSlider *arg1 = (wxSlider *) 0 ;
12841 int arg2 ;
12842 PyObject * obj0 = 0 ;
12843 PyObject * obj1 = 0 ;
12844 char *kwnames[] = {
12845 (char *) "self",(char *) "tickPos", NULL
12846 };
12847
12848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
12849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12851 arg2 = (int) SWIG_AsInt(obj1);
12852 if (PyErr_Occurred()) SWIG_fail;
12853 {
12854 PyThreadState* __tstate = wxPyBeginAllowThreads();
12855 (arg1)->SetTick(arg2);
12856
12857 wxPyEndAllowThreads(__tstate);
12858 if (PyErr_Occurred()) SWIG_fail;
12859 }
12860 Py_INCREF(Py_None); resultobj = Py_None;
12861 return resultobj;
12862 fail:
12863 return NULL;
12864 }
12865
12866
12867 static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
12868 PyObject *resultobj;
12869 wxSlider *arg1 = (wxSlider *) 0 ;
12870 PyObject * obj0 = 0 ;
12871 char *kwnames[] = {
12872 (char *) "self", NULL
12873 };
12874
12875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
12876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12878 {
12879 PyThreadState* __tstate = wxPyBeginAllowThreads();
12880 (arg1)->ClearSel();
12881
12882 wxPyEndAllowThreads(__tstate);
12883 if (PyErr_Occurred()) SWIG_fail;
12884 }
12885 Py_INCREF(Py_None); resultobj = Py_None;
12886 return resultobj;
12887 fail:
12888 return NULL;
12889 }
12890
12891
12892 static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
12893 PyObject *resultobj;
12894 wxSlider *arg1 = (wxSlider *) 0 ;
12895 int result;
12896 PyObject * obj0 = 0 ;
12897 char *kwnames[] = {
12898 (char *) "self", NULL
12899 };
12900
12901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
12902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12904 {
12905 PyThreadState* __tstate = wxPyBeginAllowThreads();
12906 result = (int)((wxSlider const *)arg1)->GetSelEnd();
12907
12908 wxPyEndAllowThreads(__tstate);
12909 if (PyErr_Occurred()) SWIG_fail;
12910 }
12911 resultobj = SWIG_FromInt((int)result);
12912 return resultobj;
12913 fail:
12914 return NULL;
12915 }
12916
12917
12918 static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj;
12920 wxSlider *arg1 = (wxSlider *) 0 ;
12921 int result;
12922 PyObject * obj0 = 0 ;
12923 char *kwnames[] = {
12924 (char *) "self", NULL
12925 };
12926
12927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
12928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 result = (int)((wxSlider const *)arg1)->GetSelStart();
12933
12934 wxPyEndAllowThreads(__tstate);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 }
12937 resultobj = SWIG_FromInt((int)result);
12938 return resultobj;
12939 fail:
12940 return NULL;
12941 }
12942
12943
12944 static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12945 PyObject *resultobj;
12946 wxSlider *arg1 = (wxSlider *) 0 ;
12947 int arg2 ;
12948 int arg3 ;
12949 PyObject * obj0 = 0 ;
12950 PyObject * obj1 = 0 ;
12951 PyObject * obj2 = 0 ;
12952 char *kwnames[] = {
12953 (char *) "self",(char *) "min",(char *) "max", NULL
12954 };
12955
12956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
12957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12959 arg2 = (int) SWIG_AsInt(obj1);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 arg3 = (int) SWIG_AsInt(obj2);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 {
12964 PyThreadState* __tstate = wxPyBeginAllowThreads();
12965 (arg1)->SetSelection(arg2,arg3);
12966
12967 wxPyEndAllowThreads(__tstate);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 Py_INCREF(Py_None); resultobj = Py_None;
12971 return resultobj;
12972 fail:
12973 return NULL;
12974 }
12975
12976
12977 static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
12978 PyObject *obj;
12979 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12980 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
12981 Py_INCREF(obj);
12982 return Py_BuildValue((char *)"");
12983 }
12984 static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
12985 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
12986 return 1;
12987 }
12988
12989
12990 static PyObject *_wrap_ToggleButtonNameStr_get() {
12991 PyObject *pyobj;
12992
12993 {
12994 #if wxUSE_UNICODE
12995 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12996 #else
12997 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12998 #endif
12999 }
13000 return pyobj;
13001 }
13002
13003
13004 static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13005 PyObject *resultobj;
13006 wxWindow *arg1 = (wxWindow *) 0 ;
13007 int arg2 ;
13008 wxString *arg3 = 0 ;
13009 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13010 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13011 wxSize const &arg5_defvalue = wxDefaultSize ;
13012 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13013 long arg6 = (long) 0 ;
13014 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13015 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13016 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13017 wxString *arg8 = (wxString *) &arg8_defvalue ;
13018 wxToggleButton *result;
13019 bool temp3 = False ;
13020 wxPoint temp4 ;
13021 wxSize temp5 ;
13022 bool temp8 = False ;
13023 PyObject * obj0 = 0 ;
13024 PyObject * obj1 = 0 ;
13025 PyObject * obj2 = 0 ;
13026 PyObject * obj3 = 0 ;
13027 PyObject * obj4 = 0 ;
13028 PyObject * obj5 = 0 ;
13029 PyObject * obj6 = 0 ;
13030 PyObject * obj7 = 0 ;
13031 char *kwnames[] = {
13032 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13033 };
13034
13035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13038 arg2 = (int) SWIG_AsInt(obj1);
13039 if (PyErr_Occurred()) SWIG_fail;
13040 {
13041 arg3 = wxString_in_helper(obj2);
13042 if (arg3 == NULL) SWIG_fail;
13043 temp3 = True;
13044 }
13045 if (obj3) {
13046 {
13047 arg4 = &temp4;
13048 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13049 }
13050 }
13051 if (obj4) {
13052 {
13053 arg5 = &temp5;
13054 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13055 }
13056 }
13057 if (obj5) {
13058 arg6 = (long) SWIG_AsLong(obj5);
13059 if (PyErr_Occurred()) SWIG_fail;
13060 }
13061 if (obj6) {
13062 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13063 SWIG_POINTER_EXCEPTION | 0)) == -1)
13064 SWIG_fail;
13065 if (arg7 == NULL) {
13066 PyErr_SetString(PyExc_TypeError,"null reference");
13067 SWIG_fail;
13068 }
13069 }
13070 if (obj7) {
13071 {
13072 arg8 = wxString_in_helper(obj7);
13073 if (arg8 == NULL) SWIG_fail;
13074 temp8 = True;
13075 }
13076 }
13077 {
13078 PyThreadState* __tstate = wxPyBeginAllowThreads();
13079 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13080
13081 wxPyEndAllowThreads(__tstate);
13082 if (PyErr_Occurred()) SWIG_fail;
13083 }
13084 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13085 {
13086 if (temp3)
13087 delete arg3;
13088 }
13089 {
13090 if (temp8)
13091 delete arg8;
13092 }
13093 return resultobj;
13094 fail:
13095 {
13096 if (temp3)
13097 delete arg3;
13098 }
13099 {
13100 if (temp8)
13101 delete arg8;
13102 }
13103 return NULL;
13104 }
13105
13106
13107 static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13108 PyObject *resultobj;
13109 wxToggleButton *result;
13110 char *kwnames[] = {
13111 NULL
13112 };
13113
13114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 result = (wxToggleButton *)new wxToggleButton();
13118
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13123 return resultobj;
13124 fail:
13125 return NULL;
13126 }
13127
13128
13129 static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13130 PyObject *resultobj;
13131 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13132 wxWindow *arg2 = (wxWindow *) 0 ;
13133 int arg3 ;
13134 wxString *arg4 = 0 ;
13135 wxPoint const &arg5_defvalue = wxDefaultPosition ;
13136 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
13137 wxSize const &arg6_defvalue = wxDefaultSize ;
13138 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
13139 long arg7 = (long) 0 ;
13140 wxValidator const &arg8_defvalue = wxDefaultValidator ;
13141 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
13142 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
13143 wxString *arg9 = (wxString *) &arg9_defvalue ;
13144 bool result;
13145 bool temp4 = False ;
13146 wxPoint temp5 ;
13147 wxSize temp6 ;
13148 bool temp9 = False ;
13149 PyObject * obj0 = 0 ;
13150 PyObject * obj1 = 0 ;
13151 PyObject * obj2 = 0 ;
13152 PyObject * obj3 = 0 ;
13153 PyObject * obj4 = 0 ;
13154 PyObject * obj5 = 0 ;
13155 PyObject * obj6 = 0 ;
13156 PyObject * obj7 = 0 ;
13157 PyObject * obj8 = 0 ;
13158 char *kwnames[] = {
13159 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13160 };
13161
13162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
13163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13165 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13167 arg3 = (int) SWIG_AsInt(obj2);
13168 if (PyErr_Occurred()) SWIG_fail;
13169 {
13170 arg4 = wxString_in_helper(obj3);
13171 if (arg4 == NULL) SWIG_fail;
13172 temp4 = True;
13173 }
13174 if (obj4) {
13175 {
13176 arg5 = &temp5;
13177 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13178 }
13179 }
13180 if (obj5) {
13181 {
13182 arg6 = &temp6;
13183 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13184 }
13185 }
13186 if (obj6) {
13187 arg7 = (long) SWIG_AsLong(obj6);
13188 if (PyErr_Occurred()) SWIG_fail;
13189 }
13190 if (obj7) {
13191 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13192 SWIG_POINTER_EXCEPTION | 0)) == -1)
13193 SWIG_fail;
13194 if (arg8 == NULL) {
13195 PyErr_SetString(PyExc_TypeError,"null reference");
13196 SWIG_fail;
13197 }
13198 }
13199 if (obj8) {
13200 {
13201 arg9 = wxString_in_helper(obj8);
13202 if (arg9 == NULL) SWIG_fail;
13203 temp9 = True;
13204 }
13205 }
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13209
13210 wxPyEndAllowThreads(__tstate);
13211 if (PyErr_Occurred()) SWIG_fail;
13212 }
13213 {
13214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13215 }
13216 {
13217 if (temp4)
13218 delete arg4;
13219 }
13220 {
13221 if (temp9)
13222 delete arg9;
13223 }
13224 return resultobj;
13225 fail:
13226 {
13227 if (temp4)
13228 delete arg4;
13229 }
13230 {
13231 if (temp9)
13232 delete arg9;
13233 }
13234 return NULL;
13235 }
13236
13237
13238 static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13239 PyObject *resultobj;
13240 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13241 bool arg2 ;
13242 PyObject * obj0 = 0 ;
13243 PyObject * obj1 = 0 ;
13244 char *kwnames[] = {
13245 (char *) "self",(char *) "value", NULL
13246 };
13247
13248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13251 arg2 = (bool) SWIG_AsBool(obj1);
13252 if (PyErr_Occurred()) SWIG_fail;
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 (arg1)->SetValue(arg2);
13256
13257 wxPyEndAllowThreads(__tstate);
13258 if (PyErr_Occurred()) SWIG_fail;
13259 }
13260 Py_INCREF(Py_None); resultobj = Py_None;
13261 return resultobj;
13262 fail:
13263 return NULL;
13264 }
13265
13266
13267 static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13268 PyObject *resultobj;
13269 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13270 bool result;
13271 PyObject * obj0 = 0 ;
13272 char *kwnames[] = {
13273 (char *) "self", NULL
13274 };
13275
13276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
13277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13279 {
13280 PyThreadState* __tstate = wxPyBeginAllowThreads();
13281 result = (bool)((wxToggleButton const *)arg1)->GetValue();
13282
13283 wxPyEndAllowThreads(__tstate);
13284 if (PyErr_Occurred()) SWIG_fail;
13285 }
13286 {
13287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13288 }
13289 return resultobj;
13290 fail:
13291 return NULL;
13292 }
13293
13294
13295 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
13296 PyObject *resultobj;
13297 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13298 wxString *arg2 = 0 ;
13299 bool temp2 = False ;
13300 PyObject * obj0 = 0 ;
13301 PyObject * obj1 = 0 ;
13302 char *kwnames[] = {
13303 (char *) "self",(char *) "label", NULL
13304 };
13305
13306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
13307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13309 {
13310 arg2 = wxString_in_helper(obj1);
13311 if (arg2 == NULL) SWIG_fail;
13312 temp2 = True;
13313 }
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 (arg1)->SetLabel((wxString const &)*arg2);
13317
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 Py_INCREF(Py_None); resultobj = Py_None;
13322 {
13323 if (temp2)
13324 delete arg2;
13325 }
13326 return resultobj;
13327 fail:
13328 {
13329 if (temp2)
13330 delete arg2;
13331 }
13332 return NULL;
13333 }
13334
13335
13336 static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
13337 PyObject *obj;
13338 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13339 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
13340 Py_INCREF(obj);
13341 return Py_BuildValue((char *)"");
13342 }
13343 static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
13344 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
13345 return 1;
13346 }
13347
13348
13349 static PyObject *_wrap_NOTEBOOK_NAME_get() {
13350 PyObject *pyobj;
13351
13352 {
13353 #if wxUSE_UNICODE
13354 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13355 #else
13356 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13357 #endif
13358 }
13359 return pyobj;
13360 }
13361
13362
13363 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13364 PyObject *resultobj;
13365 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13366 size_t result;
13367 PyObject * obj0 = 0 ;
13368 char *kwnames[] = {
13369 (char *) "self", NULL
13370 };
13371
13372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
13373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13375 {
13376 PyThreadState* __tstate = wxPyBeginAllowThreads();
13377 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
13378
13379 wxPyEndAllowThreads(__tstate);
13380 if (PyErr_Occurred()) SWIG_fail;
13381 }
13382 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
13383 return resultobj;
13384 fail:
13385 return NULL;
13386 }
13387
13388
13389 static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13390 PyObject *resultobj;
13391 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13392 size_t arg2 ;
13393 wxWindow *result;
13394 PyObject * obj0 = 0 ;
13395 PyObject * obj1 = 0 ;
13396 char *kwnames[] = {
13397 (char *) "self",(char *) "n", NULL
13398 };
13399
13400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
13401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13403 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13404 if (PyErr_Occurred()) SWIG_fail;
13405 {
13406 PyThreadState* __tstate = wxPyBeginAllowThreads();
13407 result = (wxWindow *)(arg1)->GetPage(arg2);
13408
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 {
13413 resultobj = wxPyMake_wxObject(result);
13414 }
13415 return resultobj;
13416 fail:
13417 return NULL;
13418 }
13419
13420
13421 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13422 PyObject *resultobj;
13423 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13424 int result;
13425 PyObject * obj0 = 0 ;
13426 char *kwnames[] = {
13427 (char *) "self", NULL
13428 };
13429
13430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
13431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13433 {
13434 PyThreadState* __tstate = wxPyBeginAllowThreads();
13435 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
13436
13437 wxPyEndAllowThreads(__tstate);
13438 if (PyErr_Occurred()) SWIG_fail;
13439 }
13440 resultobj = SWIG_FromInt((int)result);
13441 return resultobj;
13442 fail:
13443 return NULL;
13444 }
13445
13446
13447 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13448 PyObject *resultobj;
13449 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13450 size_t arg2 ;
13451 wxString *arg3 = 0 ;
13452 bool result;
13453 bool temp3 = False ;
13454 PyObject * obj0 = 0 ;
13455 PyObject * obj1 = 0 ;
13456 PyObject * obj2 = 0 ;
13457 char *kwnames[] = {
13458 (char *) "self",(char *) "n",(char *) "strText", NULL
13459 };
13460
13461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
13462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13464 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 {
13467 arg3 = wxString_in_helper(obj2);
13468 if (arg3 == NULL) SWIG_fail;
13469 temp3 = True;
13470 }
13471 {
13472 PyThreadState* __tstate = wxPyBeginAllowThreads();
13473 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
13474
13475 wxPyEndAllowThreads(__tstate);
13476 if (PyErr_Occurred()) SWIG_fail;
13477 }
13478 {
13479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13480 }
13481 {
13482 if (temp3)
13483 delete arg3;
13484 }
13485 return resultobj;
13486 fail:
13487 {
13488 if (temp3)
13489 delete arg3;
13490 }
13491 return NULL;
13492 }
13493
13494
13495 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13496 PyObject *resultobj;
13497 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13498 size_t arg2 ;
13499 wxString result;
13500 PyObject * obj0 = 0 ;
13501 PyObject * obj1 = 0 ;
13502 char *kwnames[] = {
13503 (char *) "self",(char *) "n", NULL
13504 };
13505
13506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
13507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13509 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 {
13512 PyThreadState* __tstate = wxPyBeginAllowThreads();
13513 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
13514
13515 wxPyEndAllowThreads(__tstate);
13516 if (PyErr_Occurred()) SWIG_fail;
13517 }
13518 {
13519 #if wxUSE_UNICODE
13520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13521 #else
13522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13523 #endif
13524 }
13525 return resultobj;
13526 fail:
13527 return NULL;
13528 }
13529
13530
13531 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13532 PyObject *resultobj;
13533 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13534 wxImageList *arg2 = (wxImageList *) 0 ;
13535 PyObject * obj0 = 0 ;
13536 PyObject * obj1 = 0 ;
13537 char *kwnames[] = {
13538 (char *) "self",(char *) "imageList", NULL
13539 };
13540
13541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
13542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
13545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 (arg1)->SetImageList(arg2);
13549
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 Py_INCREF(Py_None); resultobj = Py_None;
13554 return resultobj;
13555 fail:
13556 return NULL;
13557 }
13558
13559
13560 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13561 PyObject *resultobj;
13562 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13563 wxImageList *arg2 = (wxImageList *) 0 ;
13564 PyObject * obj0 = 0 ;
13565 PyObject * obj1 = 0 ;
13566 char *kwnames[] = {
13567 (char *) "self",(char *) "imageList", NULL
13568 };
13569
13570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
13571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13573 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
13574 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
13575 {
13576 PyThreadState* __tstate = wxPyBeginAllowThreads();
13577 (arg1)->AssignImageList(arg2);
13578
13579 wxPyEndAllowThreads(__tstate);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 }
13582 Py_INCREF(Py_None); resultobj = Py_None;
13583 return resultobj;
13584 fail:
13585 return NULL;
13586 }
13587
13588
13589 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13590 PyObject *resultobj;
13591 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13592 wxImageList *result;
13593 PyObject * obj0 = 0 ;
13594 char *kwnames[] = {
13595 (char *) "self", NULL
13596 };
13597
13598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
13599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13601 {
13602 PyThreadState* __tstate = wxPyBeginAllowThreads();
13603 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
13604
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 {
13609 resultobj = wxPyMake_wxObject(result);
13610 }
13611 return resultobj;
13612 fail:
13613 return NULL;
13614 }
13615
13616
13617 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
13618 PyObject *resultobj;
13619 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13620 size_t arg2 ;
13621 int result;
13622 PyObject * obj0 = 0 ;
13623 PyObject * obj1 = 0 ;
13624 char *kwnames[] = {
13625 (char *) "self",(char *) "n", NULL
13626 };
13627
13628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
13629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13631 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13632 if (PyErr_Occurred()) SWIG_fail;
13633 {
13634 PyThreadState* __tstate = wxPyBeginAllowThreads();
13635 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
13636
13637 wxPyEndAllowThreads(__tstate);
13638 if (PyErr_Occurred()) SWIG_fail;
13639 }
13640 resultobj = SWIG_FromInt((int)result);
13641 return resultobj;
13642 fail:
13643 return NULL;
13644 }
13645
13646
13647 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
13648 PyObject *resultobj;
13649 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13650 size_t arg2 ;
13651 int arg3 ;
13652 bool result;
13653 PyObject * obj0 = 0 ;
13654 PyObject * obj1 = 0 ;
13655 PyObject * obj2 = 0 ;
13656 char *kwnames[] = {
13657 (char *) "self",(char *) "n",(char *) "imageId", NULL
13658 };
13659
13660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
13661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13663 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13664 if (PyErr_Occurred()) SWIG_fail;
13665 arg3 = (int) SWIG_AsInt(obj2);
13666 if (PyErr_Occurred()) SWIG_fail;
13667 {
13668 PyThreadState* __tstate = wxPyBeginAllowThreads();
13669 result = (bool)(arg1)->SetPageImage(arg2,arg3);
13670
13671 wxPyEndAllowThreads(__tstate);
13672 if (PyErr_Occurred()) SWIG_fail;
13673 }
13674 {
13675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13676 }
13677 return resultobj;
13678 fail:
13679 return NULL;
13680 }
13681
13682
13683 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13684 PyObject *resultobj;
13685 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13686 wxSize *arg2 = 0 ;
13687 wxSize temp2 ;
13688 PyObject * obj0 = 0 ;
13689 PyObject * obj1 = 0 ;
13690 char *kwnames[] = {
13691 (char *) "self",(char *) "size", NULL
13692 };
13693
13694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13697 {
13698 arg2 = &temp2;
13699 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13700 }
13701 {
13702 PyThreadState* __tstate = wxPyBeginAllowThreads();
13703 (arg1)->SetPageSize((wxSize const &)*arg2);
13704
13705 wxPyEndAllowThreads(__tstate);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 Py_INCREF(Py_None); resultobj = Py_None;
13709 return resultobj;
13710 fail:
13711 return NULL;
13712 }
13713
13714
13715 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj;
13717 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13718 wxSize *arg2 = 0 ;
13719 wxSize result;
13720 wxSize temp2 ;
13721 PyObject * obj0 = 0 ;
13722 PyObject * obj1 = 0 ;
13723 char *kwnames[] = {
13724 (char *) "self",(char *) "sizePage", NULL
13725 };
13726
13727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
13728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13730 {
13731 arg2 = &temp2;
13732 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13733 }
13734 {
13735 PyThreadState* __tstate = wxPyBeginAllowThreads();
13736 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
13737
13738 wxPyEndAllowThreads(__tstate);
13739 if (PyErr_Occurred()) SWIG_fail;
13740 }
13741 {
13742 wxSize * resultptr;
13743 resultptr = new wxSize((wxSize &) result);
13744 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13745 }
13746 return resultobj;
13747 fail:
13748 return NULL;
13749 }
13750
13751
13752 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
13753 PyObject *resultobj;
13754 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13755 size_t arg2 ;
13756 bool result;
13757 PyObject * obj0 = 0 ;
13758 PyObject * obj1 = 0 ;
13759 char *kwnames[] = {
13760 (char *) "self",(char *) "n", NULL
13761 };
13762
13763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
13764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13766 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13767 if (PyErr_Occurred()) SWIG_fail;
13768 {
13769 PyThreadState* __tstate = wxPyBeginAllowThreads();
13770 result = (bool)(arg1)->DeletePage(arg2);
13771
13772 wxPyEndAllowThreads(__tstate);
13773 if (PyErr_Occurred()) SWIG_fail;
13774 }
13775 {
13776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13777 }
13778 return resultobj;
13779 fail:
13780 return NULL;
13781 }
13782
13783
13784 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
13785 PyObject *resultobj;
13786 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13787 size_t arg2 ;
13788 bool result;
13789 PyObject * obj0 = 0 ;
13790 PyObject * obj1 = 0 ;
13791 char *kwnames[] = {
13792 (char *) "self",(char *) "n", NULL
13793 };
13794
13795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
13796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13798 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13799 if (PyErr_Occurred()) SWIG_fail;
13800 {
13801 PyThreadState* __tstate = wxPyBeginAllowThreads();
13802 result = (bool)(arg1)->RemovePage(arg2);
13803
13804 wxPyEndAllowThreads(__tstate);
13805 if (PyErr_Occurred()) SWIG_fail;
13806 }
13807 {
13808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13809 }
13810 return resultobj;
13811 fail:
13812 return NULL;
13813 }
13814
13815
13816 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
13817 PyObject *resultobj;
13818 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13819 bool result;
13820 PyObject * obj0 = 0 ;
13821 char *kwnames[] = {
13822 (char *) "self", NULL
13823 };
13824
13825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
13826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13828 {
13829 PyThreadState* __tstate = wxPyBeginAllowThreads();
13830 result = (bool)(arg1)->DeleteAllPages();
13831
13832 wxPyEndAllowThreads(__tstate);
13833 if (PyErr_Occurred()) SWIG_fail;
13834 }
13835 {
13836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13837 }
13838 return resultobj;
13839 fail:
13840 return NULL;
13841 }
13842
13843
13844 static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13845 PyObject *resultobj;
13846 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13847 wxWindow *arg2 = (wxWindow *) 0 ;
13848 wxString *arg3 = 0 ;
13849 bool arg4 = (bool) False ;
13850 int arg5 = (int) -1 ;
13851 bool result;
13852 bool temp3 = False ;
13853 PyObject * obj0 = 0 ;
13854 PyObject * obj1 = 0 ;
13855 PyObject * obj2 = 0 ;
13856 PyObject * obj3 = 0 ;
13857 PyObject * obj4 = 0 ;
13858 char *kwnames[] = {
13859 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13860 };
13861
13862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13865 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13867 {
13868 arg3 = wxString_in_helper(obj2);
13869 if (arg3 == NULL) SWIG_fail;
13870 temp3 = True;
13871 }
13872 if (obj3) {
13873 arg4 = (bool) SWIG_AsBool(obj3);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 if (obj4) {
13877 arg5 = (int) SWIG_AsInt(obj4);
13878 if (PyErr_Occurred()) SWIG_fail;
13879 }
13880 {
13881 PyThreadState* __tstate = wxPyBeginAllowThreads();
13882 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
13883
13884 wxPyEndAllowThreads(__tstate);
13885 if (PyErr_Occurred()) SWIG_fail;
13886 }
13887 {
13888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13889 }
13890 {
13891 if (temp3)
13892 delete arg3;
13893 }
13894 return resultobj;
13895 fail:
13896 {
13897 if (temp3)
13898 delete arg3;
13899 }
13900 return NULL;
13901 }
13902
13903
13904 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13905 PyObject *resultobj;
13906 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13907 size_t arg2 ;
13908 wxWindow *arg3 = (wxWindow *) 0 ;
13909 wxString *arg4 = 0 ;
13910 bool arg5 = (bool) False ;
13911 int arg6 = (int) -1 ;
13912 bool result;
13913 bool temp4 = False ;
13914 PyObject * obj0 = 0 ;
13915 PyObject * obj1 = 0 ;
13916 PyObject * obj2 = 0 ;
13917 PyObject * obj3 = 0 ;
13918 PyObject * obj4 = 0 ;
13919 PyObject * obj5 = 0 ;
13920 char *kwnames[] = {
13921 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13922 };
13923
13924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13927 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
13930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13931 {
13932 arg4 = wxString_in_helper(obj3);
13933 if (arg4 == NULL) SWIG_fail;
13934 temp4 = True;
13935 }
13936 if (obj4) {
13937 arg5 = (bool) SWIG_AsBool(obj4);
13938 if (PyErr_Occurred()) SWIG_fail;
13939 }
13940 if (obj5) {
13941 arg6 = (int) SWIG_AsInt(obj5);
13942 if (PyErr_Occurred()) SWIG_fail;
13943 }
13944 {
13945 PyThreadState* __tstate = wxPyBeginAllowThreads();
13946 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
13947
13948 wxPyEndAllowThreads(__tstate);
13949 if (PyErr_Occurred()) SWIG_fail;
13950 }
13951 {
13952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13953 }
13954 {
13955 if (temp4)
13956 delete arg4;
13957 }
13958 return resultobj;
13959 fail:
13960 {
13961 if (temp4)
13962 delete arg4;
13963 }
13964 return NULL;
13965 }
13966
13967
13968 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13969 PyObject *resultobj;
13970 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13971 size_t arg2 ;
13972 int result;
13973 PyObject * obj0 = 0 ;
13974 PyObject * obj1 = 0 ;
13975 char *kwnames[] = {
13976 (char *) "self",(char *) "n", NULL
13977 };
13978
13979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13982 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13983 if (PyErr_Occurred()) SWIG_fail;
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 result = (int)(arg1)->SetSelection(arg2);
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 resultobj = SWIG_FromInt((int)result);
13992 return resultobj;
13993 fail:
13994 return NULL;
13995 }
13996
13997
13998 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj;
14000 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14001 bool arg2 = (bool) True ;
14002 PyObject * obj0 = 0 ;
14003 PyObject * obj1 = 0 ;
14004 char *kwnames[] = {
14005 (char *) "self",(char *) "forward", NULL
14006 };
14007
14008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14011 if (obj1) {
14012 arg2 = (bool) SWIG_AsBool(obj1);
14013 if (PyErr_Occurred()) SWIG_fail;
14014 }
14015 {
14016 PyThreadState* __tstate = wxPyBeginAllowThreads();
14017 (arg1)->AdvanceSelection(arg2);
14018
14019 wxPyEndAllowThreads(__tstate);
14020 if (PyErr_Occurred()) SWIG_fail;
14021 }
14022 Py_INCREF(Py_None); resultobj = Py_None;
14023 return resultobj;
14024 fail:
14025 return NULL;
14026 }
14027
14028
14029 static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
14030 PyObject *obj;
14031 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14032 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
14033 Py_INCREF(obj);
14034 return Py_BuildValue((char *)"");
14035 }
14036 static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14037 PyObject *resultobj;
14038 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14039 int arg2 = (int) 0 ;
14040 int arg3 = (int) -1 ;
14041 int arg4 = (int) -1 ;
14042 wxBookCtrlEvent *result;
14043 PyObject * obj0 = 0 ;
14044 PyObject * obj1 = 0 ;
14045 PyObject * obj2 = 0 ;
14046 PyObject * obj3 = 0 ;
14047 char *kwnames[] = {
14048 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14049 };
14050
14051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14052 if (obj0) {
14053 arg1 = (wxEventType) SWIG_AsInt(obj0);
14054 if (PyErr_Occurred()) SWIG_fail;
14055 }
14056 if (obj1) {
14057 arg2 = (int) SWIG_AsInt(obj1);
14058 if (PyErr_Occurred()) SWIG_fail;
14059 }
14060 if (obj2) {
14061 arg3 = (int) SWIG_AsInt(obj2);
14062 if (PyErr_Occurred()) SWIG_fail;
14063 }
14064 if (obj3) {
14065 arg4 = (int) SWIG_AsInt(obj3);
14066 if (PyErr_Occurred()) SWIG_fail;
14067 }
14068 {
14069 PyThreadState* __tstate = wxPyBeginAllowThreads();
14070 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
14071
14072 wxPyEndAllowThreads(__tstate);
14073 if (PyErr_Occurred()) SWIG_fail;
14074 }
14075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
14076 return resultobj;
14077 fail:
14078 return NULL;
14079 }
14080
14081
14082 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14083 PyObject *resultobj;
14084 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14085 int result;
14086 PyObject * obj0 = 0 ;
14087 char *kwnames[] = {
14088 (char *) "self", NULL
14089 };
14090
14091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
14092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
14097
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 resultobj = SWIG_FromInt((int)result);
14102 return resultobj;
14103 fail:
14104 return NULL;
14105 }
14106
14107
14108 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj;
14110 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14111 int arg2 ;
14112 PyObject * obj0 = 0 ;
14113 PyObject * obj1 = 0 ;
14114 char *kwnames[] = {
14115 (char *) "self",(char *) "nSel", NULL
14116 };
14117
14118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14121 arg2 = (int) SWIG_AsInt(obj1);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 {
14124 PyThreadState* __tstate = wxPyBeginAllowThreads();
14125 (arg1)->SetSelection(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_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14138 PyObject *resultobj;
14139 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14140 int result;
14141 PyObject * obj0 = 0 ;
14142 char *kwnames[] = {
14143 (char *) "self", NULL
14144 };
14145
14146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
14147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14149 {
14150 PyThreadState* __tstate = wxPyBeginAllowThreads();
14151 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
14152
14153 wxPyEndAllowThreads(__tstate);
14154 if (PyErr_Occurred()) SWIG_fail;
14155 }
14156 resultobj = SWIG_FromInt((int)result);
14157 return resultobj;
14158 fail:
14159 return NULL;
14160 }
14161
14162
14163 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14164 PyObject *resultobj;
14165 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14166 int arg2 ;
14167 PyObject * obj0 = 0 ;
14168 PyObject * obj1 = 0 ;
14169 char *kwnames[] = {
14170 (char *) "self",(char *) "nOldSel", NULL
14171 };
14172
14173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
14174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14176 arg2 = (int) SWIG_AsInt(obj1);
14177 if (PyErr_Occurred()) SWIG_fail;
14178 {
14179 PyThreadState* __tstate = wxPyBeginAllowThreads();
14180 (arg1)->SetOldSelection(arg2);
14181
14182 wxPyEndAllowThreads(__tstate);
14183 if (PyErr_Occurred()) SWIG_fail;
14184 }
14185 Py_INCREF(Py_None); resultobj = Py_None;
14186 return resultobj;
14187 fail:
14188 return NULL;
14189 }
14190
14191
14192 static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
14193 PyObject *obj;
14194 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14195 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
14196 Py_INCREF(obj);
14197 return Py_BuildValue((char *)"");
14198 }
14199 static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14200 PyObject *resultobj;
14201 wxWindow *arg1 = (wxWindow *) 0 ;
14202 int arg2 = (int) -1 ;
14203 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14204 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14205 wxSize const &arg4_defvalue = wxDefaultSize ;
14206 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14207 long arg5 = (long) 0 ;
14208 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
14209 wxString *arg6 = (wxString *) &arg6_defvalue ;
14210 wxNotebook *result;
14211 wxPoint temp3 ;
14212 wxSize temp4 ;
14213 bool temp6 = False ;
14214 PyObject * obj0 = 0 ;
14215 PyObject * obj1 = 0 ;
14216 PyObject * obj2 = 0 ;
14217 PyObject * obj3 = 0 ;
14218 PyObject * obj4 = 0 ;
14219 PyObject * obj5 = 0 ;
14220 char *kwnames[] = {
14221 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14222 };
14223
14224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14227 if (obj1) {
14228 arg2 = (int) SWIG_AsInt(obj1);
14229 if (PyErr_Occurred()) SWIG_fail;
14230 }
14231 if (obj2) {
14232 {
14233 arg3 = &temp3;
14234 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14235 }
14236 }
14237 if (obj3) {
14238 {
14239 arg4 = &temp4;
14240 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14241 }
14242 }
14243 if (obj4) {
14244 arg5 = (long) SWIG_AsLong(obj4);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 }
14247 if (obj5) {
14248 {
14249 arg6 = wxString_in_helper(obj5);
14250 if (arg6 == NULL) SWIG_fail;
14251 temp6 = True;
14252 }
14253 }
14254 {
14255 PyThreadState* __tstate = wxPyBeginAllowThreads();
14256 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14257
14258 wxPyEndAllowThreads(__tstate);
14259 if (PyErr_Occurred()) SWIG_fail;
14260 }
14261 {
14262 resultobj = wxPyMake_wxObject(result);
14263 }
14264 {
14265 if (temp6)
14266 delete arg6;
14267 }
14268 return resultobj;
14269 fail:
14270 {
14271 if (temp6)
14272 delete arg6;
14273 }
14274 return NULL;
14275 }
14276
14277
14278 static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14279 PyObject *resultobj;
14280 wxNotebook *result;
14281 char *kwnames[] = {
14282 NULL
14283 };
14284
14285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
14286 {
14287 PyThreadState* __tstate = wxPyBeginAllowThreads();
14288 result = (wxNotebook *)new wxNotebook();
14289
14290 wxPyEndAllowThreads(__tstate);
14291 if (PyErr_Occurred()) SWIG_fail;
14292 }
14293 {
14294 resultobj = wxPyMake_wxObject(result);
14295 }
14296 return resultobj;
14297 fail:
14298 return NULL;
14299 }
14300
14301
14302 static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14303 PyObject *resultobj;
14304 wxNotebook *arg1 = (wxNotebook *) 0 ;
14305 wxWindow *arg2 = (wxWindow *) 0 ;
14306 int arg3 ;
14307 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14308 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14309 wxSize const &arg5_defvalue = wxDefaultSize ;
14310 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14311 long arg6 = (long) 0 ;
14312 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
14313 wxString *arg7 = (wxString *) &arg7_defvalue ;
14314 bool result;
14315 wxPoint temp4 ;
14316 wxSize temp5 ;
14317 bool temp7 = False ;
14318 PyObject * obj0 = 0 ;
14319 PyObject * obj1 = 0 ;
14320 PyObject * obj2 = 0 ;
14321 PyObject * obj3 = 0 ;
14322 PyObject * obj4 = 0 ;
14323 PyObject * obj5 = 0 ;
14324 PyObject * obj6 = 0 ;
14325 char *kwnames[] = {
14326 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14327 };
14328
14329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14332 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14334 arg3 = (int) SWIG_AsInt(obj2);
14335 if (PyErr_Occurred()) SWIG_fail;
14336 if (obj3) {
14337 {
14338 arg4 = &temp4;
14339 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14340 }
14341 }
14342 if (obj4) {
14343 {
14344 arg5 = &temp5;
14345 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14346 }
14347 }
14348 if (obj5) {
14349 arg6 = (long) SWIG_AsLong(obj5);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 }
14352 if (obj6) {
14353 {
14354 arg7 = wxString_in_helper(obj6);
14355 if (arg7 == NULL) SWIG_fail;
14356 temp7 = True;
14357 }
14358 }
14359 {
14360 PyThreadState* __tstate = wxPyBeginAllowThreads();
14361 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14362
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 {
14367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14368 }
14369 {
14370 if (temp7)
14371 delete arg7;
14372 }
14373 return resultobj;
14374 fail:
14375 {
14376 if (temp7)
14377 delete arg7;
14378 }
14379 return NULL;
14380 }
14381
14382
14383 static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14384 PyObject *resultobj;
14385 wxNotebook *arg1 = (wxNotebook *) 0 ;
14386 int result;
14387 PyObject * obj0 = 0 ;
14388 char *kwnames[] = {
14389 (char *) "self", NULL
14390 };
14391
14392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
14393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14395 {
14396 PyThreadState* __tstate = wxPyBeginAllowThreads();
14397 result = (int)((wxNotebook const *)arg1)->GetRowCount();
14398
14399 wxPyEndAllowThreads(__tstate);
14400 if (PyErr_Occurred()) SWIG_fail;
14401 }
14402 resultobj = SWIG_FromInt((int)result);
14403 return resultobj;
14404 fail:
14405 return NULL;
14406 }
14407
14408
14409 static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
14410 PyObject *resultobj;
14411 wxNotebook *arg1 = (wxNotebook *) 0 ;
14412 wxSize *arg2 = 0 ;
14413 wxSize temp2 ;
14414 PyObject * obj0 = 0 ;
14415 PyObject * obj1 = 0 ;
14416 char *kwnames[] = {
14417 (char *) "self",(char *) "padding", NULL
14418 };
14419
14420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
14421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14423 {
14424 arg2 = &temp2;
14425 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14426 }
14427 {
14428 PyThreadState* __tstate = wxPyBeginAllowThreads();
14429 (arg1)->SetPadding((wxSize const &)*arg2);
14430
14431 wxPyEndAllowThreads(__tstate);
14432 if (PyErr_Occurred()) SWIG_fail;
14433 }
14434 Py_INCREF(Py_None); resultobj = Py_None;
14435 return resultobj;
14436 fail:
14437 return NULL;
14438 }
14439
14440
14441 static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14442 PyObject *resultobj;
14443 wxNotebook *arg1 = (wxNotebook *) 0 ;
14444 wxSize *arg2 = 0 ;
14445 wxSize temp2 ;
14446 PyObject * obj0 = 0 ;
14447 PyObject * obj1 = 0 ;
14448 char *kwnames[] = {
14449 (char *) "self",(char *) "sz", NULL
14450 };
14451
14452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
14453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14455 {
14456 arg2 = &temp2;
14457 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14458 }
14459 {
14460 PyThreadState* __tstate = wxPyBeginAllowThreads();
14461 (arg1)->SetTabSize((wxSize const &)*arg2);
14462
14463 wxPyEndAllowThreads(__tstate);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 }
14466 Py_INCREF(Py_None); resultobj = Py_None;
14467 return resultobj;
14468 fail:
14469 return NULL;
14470 }
14471
14472
14473 static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
14474 PyObject *resultobj;
14475 wxNotebook *arg1 = (wxNotebook *) 0 ;
14476 wxPoint *arg2 = 0 ;
14477 long *arg3 = (long *) 0 ;
14478 int result;
14479 wxPoint temp2 ;
14480 long temp3 ;
14481 PyObject * obj0 = 0 ;
14482 PyObject * obj1 = 0 ;
14483 char *kwnames[] = {
14484 (char *) "self",(char *) "pt", NULL
14485 };
14486
14487 arg3 = &temp3;
14488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
14489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14491 {
14492 arg2 = &temp2;
14493 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14494 }
14495 {
14496 PyThreadState* __tstate = wxPyBeginAllowThreads();
14497 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
14498
14499 wxPyEndAllowThreads(__tstate);
14500 if (PyErr_Occurred()) SWIG_fail;
14501 }
14502 resultobj = SWIG_FromInt((int)result);
14503 {
14504 PyObject *o = PyInt_FromLong((long) (*arg3));
14505 resultobj = t_output_helper(resultobj,o);
14506 }
14507 return resultobj;
14508 fail:
14509 return NULL;
14510 }
14511
14512
14513 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14514 PyObject *resultobj;
14515 wxNotebook *arg1 = (wxNotebook *) 0 ;
14516 wxSize *arg2 = 0 ;
14517 wxSize result;
14518 wxSize temp2 ;
14519 PyObject * obj0 = 0 ;
14520 PyObject * obj1 = 0 ;
14521 char *kwnames[] = {
14522 (char *) "self",(char *) "sizePage", NULL
14523 };
14524
14525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14528 {
14529 arg2 = &temp2;
14530 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14531 }
14532 {
14533 PyThreadState* __tstate = wxPyBeginAllowThreads();
14534 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14535
14536 wxPyEndAllowThreads(__tstate);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 }
14539 {
14540 wxSize * resultptr;
14541 resultptr = new wxSize((wxSize &) result);
14542 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14543 }
14544 return resultobj;
14545 fail:
14546 return NULL;
14547 }
14548
14549
14550 static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14551 PyObject *resultobj;
14552 wxNotebook *arg1 = (wxNotebook *) 0 ;
14553 wxWindow *arg2 = (wxWindow *) 0 ;
14554 wxColour *arg3 = 0 ;
14555 wxColour temp3 ;
14556 PyObject * obj0 = 0 ;
14557 PyObject * obj1 = 0 ;
14558 PyObject * obj2 = 0 ;
14559 char *kwnames[] = {
14560 (char *) "self",(char *) "window",(char *) "colour", NULL
14561 };
14562
14563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
14564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14568 {
14569 arg3 = &temp3;
14570 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14571 }
14572 {
14573 PyThreadState* __tstate = wxPyBeginAllowThreads();
14574 (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3);
14575
14576 wxPyEndAllowThreads(__tstate);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 }
14579 Py_INCREF(Py_None); resultobj = Py_None;
14580 return resultobj;
14581 fail:
14582 return NULL;
14583 }
14584
14585
14586 static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
14587 PyObject *obj;
14588 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14589 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
14590 Py_INCREF(obj);
14591 return Py_BuildValue((char *)"");
14592 }
14593 static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14594 PyObject *resultobj;
14595 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14596 int arg2 = (int) 0 ;
14597 int arg3 = (int) -1 ;
14598 int arg4 = (int) -1 ;
14599 wxNotebookEvent *result;
14600 PyObject * obj0 = 0 ;
14601 PyObject * obj1 = 0 ;
14602 PyObject * obj2 = 0 ;
14603 PyObject * obj3 = 0 ;
14604 char *kwnames[] = {
14605 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14606 };
14607
14608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14609 if (obj0) {
14610 arg1 = (wxEventType) SWIG_AsInt(obj0);
14611 if (PyErr_Occurred()) SWIG_fail;
14612 }
14613 if (obj1) {
14614 arg2 = (int) SWIG_AsInt(obj1);
14615 if (PyErr_Occurred()) SWIG_fail;
14616 }
14617 if (obj2) {
14618 arg3 = (int) SWIG_AsInt(obj2);
14619 if (PyErr_Occurred()) SWIG_fail;
14620 }
14621 if (obj3) {
14622 arg4 = (int) SWIG_AsInt(obj3);
14623 if (PyErr_Occurred()) SWIG_fail;
14624 }
14625 {
14626 PyThreadState* __tstate = wxPyBeginAllowThreads();
14627 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
14628
14629 wxPyEndAllowThreads(__tstate);
14630 if (PyErr_Occurred()) SWIG_fail;
14631 }
14632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
14633 return resultobj;
14634 fail:
14635 return NULL;
14636 }
14637
14638
14639 static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
14640 PyObject *obj;
14641 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14642 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
14643 Py_INCREF(obj);
14644 return Py_BuildValue((char *)"");
14645 }
14646 static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
14647 PyObject *resultobj;
14648 wxWindow *arg1 = (wxWindow *) 0 ;
14649 int arg2 = (int) -1 ;
14650 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14651 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14652 wxSize const &arg4_defvalue = wxDefaultSize ;
14653 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14654 long arg5 = (long) 0 ;
14655 wxString const &arg6_defvalue = wxPyEmptyString ;
14656 wxString *arg6 = (wxString *) &arg6_defvalue ;
14657 wxListbook *result;
14658 wxPoint temp3 ;
14659 wxSize temp4 ;
14660 bool temp6 = False ;
14661 PyObject * obj0 = 0 ;
14662 PyObject * obj1 = 0 ;
14663 PyObject * obj2 = 0 ;
14664 PyObject * obj3 = 0 ;
14665 PyObject * obj4 = 0 ;
14666 PyObject * obj5 = 0 ;
14667 char *kwnames[] = {
14668 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14669 };
14670
14671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14674 if (obj1) {
14675 arg2 = (int) SWIG_AsInt(obj1);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 if (obj2) {
14679 {
14680 arg3 = &temp3;
14681 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14682 }
14683 }
14684 if (obj3) {
14685 {
14686 arg4 = &temp4;
14687 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14688 }
14689 }
14690 if (obj4) {
14691 arg5 = (long) SWIG_AsLong(obj4);
14692 if (PyErr_Occurred()) SWIG_fail;
14693 }
14694 if (obj5) {
14695 {
14696 arg6 = wxString_in_helper(obj5);
14697 if (arg6 == NULL) SWIG_fail;
14698 temp6 = True;
14699 }
14700 }
14701 {
14702 PyThreadState* __tstate = wxPyBeginAllowThreads();
14703 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14704
14705 wxPyEndAllowThreads(__tstate);
14706 if (PyErr_Occurred()) SWIG_fail;
14707 }
14708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
14709 {
14710 if (temp6)
14711 delete arg6;
14712 }
14713 return resultobj;
14714 fail:
14715 {
14716 if (temp6)
14717 delete arg6;
14718 }
14719 return NULL;
14720 }
14721
14722
14723 static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
14724 PyObject *resultobj;
14725 wxListbook *result;
14726 char *kwnames[] = {
14727 NULL
14728 };
14729
14730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
14731 {
14732 PyThreadState* __tstate = wxPyBeginAllowThreads();
14733 result = (wxListbook *)new wxListbook();
14734
14735 wxPyEndAllowThreads(__tstate);
14736 if (PyErr_Occurred()) SWIG_fail;
14737 }
14738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
14739 return resultobj;
14740 fail:
14741 return NULL;
14742 }
14743
14744
14745 static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14746 PyObject *resultobj;
14747 wxListbook *arg1 = (wxListbook *) 0 ;
14748 wxWindow *arg2 = (wxWindow *) 0 ;
14749 int arg3 ;
14750 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14751 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14752 wxSize const &arg5_defvalue = wxDefaultSize ;
14753 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14754 long arg6 = (long) 0 ;
14755 wxString const &arg7_defvalue = wxPyEmptyString ;
14756 wxString *arg7 = (wxString *) &arg7_defvalue ;
14757 bool result;
14758 wxPoint temp4 ;
14759 wxSize temp5 ;
14760 bool temp7 = False ;
14761 PyObject * obj0 = 0 ;
14762 PyObject * obj1 = 0 ;
14763 PyObject * obj2 = 0 ;
14764 PyObject * obj3 = 0 ;
14765 PyObject * obj4 = 0 ;
14766 PyObject * obj5 = 0 ;
14767 PyObject * obj6 = 0 ;
14768 char *kwnames[] = {
14769 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14770 };
14771
14772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
14774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14775 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14777 arg3 = (int) SWIG_AsInt(obj2);
14778 if (PyErr_Occurred()) SWIG_fail;
14779 if (obj3) {
14780 {
14781 arg4 = &temp4;
14782 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14783 }
14784 }
14785 if (obj4) {
14786 {
14787 arg5 = &temp5;
14788 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14789 }
14790 }
14791 if (obj5) {
14792 arg6 = (long) SWIG_AsLong(obj5);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 }
14795 if (obj6) {
14796 {
14797 arg7 = wxString_in_helper(obj6);
14798 if (arg7 == NULL) SWIG_fail;
14799 temp7 = True;
14800 }
14801 }
14802 {
14803 PyThreadState* __tstate = wxPyBeginAllowThreads();
14804 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14805
14806 wxPyEndAllowThreads(__tstate);
14807 if (PyErr_Occurred()) SWIG_fail;
14808 }
14809 {
14810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14811 }
14812 {
14813 if (temp7)
14814 delete arg7;
14815 }
14816 return resultobj;
14817 fail:
14818 {
14819 if (temp7)
14820 delete arg7;
14821 }
14822 return NULL;
14823 }
14824
14825
14826 static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
14827 PyObject *resultobj;
14828 wxListbook *arg1 = (wxListbook *) 0 ;
14829 bool result;
14830 PyObject * obj0 = 0 ;
14831 char *kwnames[] = {
14832 (char *) "self", NULL
14833 };
14834
14835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
14836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
14837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14838 {
14839 PyThreadState* __tstate = wxPyBeginAllowThreads();
14840 result = (bool)((wxListbook const *)arg1)->IsVertical();
14841
14842 wxPyEndAllowThreads(__tstate);
14843 if (PyErr_Occurred()) SWIG_fail;
14844 }
14845 {
14846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14847 }
14848 return resultobj;
14849 fail:
14850 return NULL;
14851 }
14852
14853
14854 static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
14855 PyObject *obj;
14856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14857 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
14858 Py_INCREF(obj);
14859 return Py_BuildValue((char *)"");
14860 }
14861 static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14862 PyObject *resultobj;
14863 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14864 int arg2 = (int) 0 ;
14865 int arg3 = (int) -1 ;
14866 int arg4 = (int) -1 ;
14867 wxListbookEvent *result;
14868 PyObject * obj0 = 0 ;
14869 PyObject * obj1 = 0 ;
14870 PyObject * obj2 = 0 ;
14871 PyObject * obj3 = 0 ;
14872 char *kwnames[] = {
14873 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14874 };
14875
14876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14877 if (obj0) {
14878 arg1 = (wxEventType) SWIG_AsInt(obj0);
14879 if (PyErr_Occurred()) SWIG_fail;
14880 }
14881 if (obj1) {
14882 arg2 = (int) SWIG_AsInt(obj1);
14883 if (PyErr_Occurred()) SWIG_fail;
14884 }
14885 if (obj2) {
14886 arg3 = (int) SWIG_AsInt(obj2);
14887 if (PyErr_Occurred()) SWIG_fail;
14888 }
14889 if (obj3) {
14890 arg4 = (int) SWIG_AsInt(obj3);
14891 if (PyErr_Occurred()) SWIG_fail;
14892 }
14893 {
14894 PyThreadState* __tstate = wxPyBeginAllowThreads();
14895 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
14896
14897 wxPyEndAllowThreads(__tstate);
14898 if (PyErr_Occurred()) SWIG_fail;
14899 }
14900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
14901 return resultobj;
14902 fail:
14903 return NULL;
14904 }
14905
14906
14907 static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
14908 PyObject *obj;
14909 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14910 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
14911 Py_INCREF(obj);
14912 return Py_BuildValue((char *)"");
14913 }
14914 static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
14915 PyObject *resultobj;
14916 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14917 wxBookCtrlSizer *result;
14918 PyObject * obj0 = 0 ;
14919 char *kwnames[] = {
14920 (char *) "nb", NULL
14921 };
14922
14923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
14924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14926 {
14927 PyThreadState* __tstate = wxPyBeginAllowThreads();
14928 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
14929
14930 wxPyEndAllowThreads(__tstate);
14931 if (PyErr_Occurred()) SWIG_fail;
14932 }
14933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
14934 return resultobj;
14935 fail:
14936 return NULL;
14937 }
14938
14939
14940 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
14941 PyObject *resultobj;
14942 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14943 PyObject * obj0 = 0 ;
14944 char *kwnames[] = {
14945 (char *) "self", NULL
14946 };
14947
14948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14951 {
14952 PyThreadState* __tstate = wxPyBeginAllowThreads();
14953 (arg1)->RecalcSizes();
14954
14955 wxPyEndAllowThreads(__tstate);
14956 if (PyErr_Occurred()) SWIG_fail;
14957 }
14958 Py_INCREF(Py_None); resultobj = Py_None;
14959 return resultobj;
14960 fail:
14961 return NULL;
14962 }
14963
14964
14965 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
14966 PyObject *resultobj;
14967 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14968 wxSize result;
14969 PyObject * obj0 = 0 ;
14970 char *kwnames[] = {
14971 (char *) "self", NULL
14972 };
14973
14974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
14975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 result = (arg1)->CalcMin();
14980
14981 wxPyEndAllowThreads(__tstate);
14982 if (PyErr_Occurred()) SWIG_fail;
14983 }
14984 {
14985 wxSize * resultptr;
14986 resultptr = new wxSize((wxSize &) result);
14987 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14988 }
14989 return resultobj;
14990 fail:
14991 return NULL;
14992 }
14993
14994
14995 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14996 PyObject *resultobj;
14997 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14998 wxBookCtrl *result;
14999 PyObject * obj0 = 0 ;
15000 char *kwnames[] = {
15001 (char *) "self", NULL
15002 };
15003
15004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
15005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15007 {
15008 PyThreadState* __tstate = wxPyBeginAllowThreads();
15009 result = (wxBookCtrl *)(arg1)->GetControl();
15010
15011 wxPyEndAllowThreads(__tstate);
15012 if (PyErr_Occurred()) SWIG_fail;
15013 }
15014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
15015 return resultobj;
15016 fail:
15017 return NULL;
15018 }
15019
15020
15021 static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
15022 PyObject *obj;
15023 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15024 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
15025 Py_INCREF(obj);
15026 return Py_BuildValue((char *)"");
15027 }
15028 static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15029 PyObject *resultobj;
15030 wxNotebook *arg1 = (wxNotebook *) 0 ;
15031 wxNotebookSizer *result;
15032 PyObject * obj0 = 0 ;
15033 char *kwnames[] = {
15034 (char *) "nb", NULL
15035 };
15036
15037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
15038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15040 {
15041 PyThreadState* __tstate = wxPyBeginAllowThreads();
15042 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
15043
15044 wxPyEndAllowThreads(__tstate);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
15048 return resultobj;
15049 fail:
15050 return NULL;
15051 }
15052
15053
15054 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15055 PyObject *resultobj;
15056 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15057 PyObject * obj0 = 0 ;
15058 char *kwnames[] = {
15059 (char *) "self", NULL
15060 };
15061
15062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15065 {
15066 PyThreadState* __tstate = wxPyBeginAllowThreads();
15067 (arg1)->RecalcSizes();
15068
15069 wxPyEndAllowThreads(__tstate);
15070 if (PyErr_Occurred()) SWIG_fail;
15071 }
15072 Py_INCREF(Py_None); resultobj = Py_None;
15073 return resultobj;
15074 fail:
15075 return NULL;
15076 }
15077
15078
15079 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15080 PyObject *resultobj;
15081 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15082 wxSize result;
15083 PyObject * obj0 = 0 ;
15084 char *kwnames[] = {
15085 (char *) "self", NULL
15086 };
15087
15088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
15089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15091 {
15092 PyThreadState* __tstate = wxPyBeginAllowThreads();
15093 result = (arg1)->CalcMin();
15094
15095 wxPyEndAllowThreads(__tstate);
15096 if (PyErr_Occurred()) SWIG_fail;
15097 }
15098 {
15099 wxSize * resultptr;
15100 resultptr = new wxSize((wxSize &) result);
15101 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15102 }
15103 return resultobj;
15104 fail:
15105 return NULL;
15106 }
15107
15108
15109 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
15110 PyObject *resultobj;
15111 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15112 wxNotebook *result;
15113 PyObject * obj0 = 0 ;
15114 char *kwnames[] = {
15115 (char *) "self", NULL
15116 };
15117
15118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
15119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15121 {
15122 PyThreadState* __tstate = wxPyBeginAllowThreads();
15123 result = (wxNotebook *)(arg1)->GetNotebook();
15124
15125 wxPyEndAllowThreads(__tstate);
15126 if (PyErr_Occurred()) SWIG_fail;
15127 }
15128 {
15129 resultobj = wxPyMake_wxObject(result);
15130 }
15131 return resultobj;
15132 fail:
15133 return NULL;
15134 }
15135
15136
15137 static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
15138 PyObject *obj;
15139 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15140 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
15141 Py_INCREF(obj);
15142 return Py_BuildValue((char *)"");
15143 }
15144 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
15145 PyObject *resultobj;
15146 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15147 int result;
15148 PyObject * obj0 = 0 ;
15149 char *kwnames[] = {
15150 (char *) "self", NULL
15151 };
15152
15153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
15154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15156 {
15157 PyThreadState* __tstate = wxPyBeginAllowThreads();
15158 result = (int)(arg1)->GetId();
15159
15160 wxPyEndAllowThreads(__tstate);
15161 if (PyErr_Occurred()) SWIG_fail;
15162 }
15163 resultobj = SWIG_FromInt((int)result);
15164 return resultobj;
15165 fail:
15166 return NULL;
15167 }
15168
15169
15170 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15171 PyObject *resultobj;
15172 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15173 wxControl *result;
15174 PyObject * obj0 = 0 ;
15175 char *kwnames[] = {
15176 (char *) "self", NULL
15177 };
15178
15179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
15180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15182 {
15183 PyThreadState* __tstate = wxPyBeginAllowThreads();
15184 result = (wxControl *)(arg1)->GetControl();
15185
15186 wxPyEndAllowThreads(__tstate);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 {
15190 resultobj = wxPyMake_wxObject(result);
15191 }
15192 return resultobj;
15193 fail:
15194 return NULL;
15195 }
15196
15197
15198 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
15199 PyObject *resultobj;
15200 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15201 wxToolBarBase *result;
15202 PyObject * obj0 = 0 ;
15203 char *kwnames[] = {
15204 (char *) "self", NULL
15205 };
15206
15207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
15208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15210 {
15211 PyThreadState* __tstate = wxPyBeginAllowThreads();
15212 result = (wxToolBarBase *)(arg1)->GetToolBar();
15213
15214 wxPyEndAllowThreads(__tstate);
15215 if (PyErr_Occurred()) SWIG_fail;
15216 }
15217 {
15218 resultobj = wxPyMake_wxObject(result);
15219 }
15220 return resultobj;
15221 fail:
15222 return NULL;
15223 }
15224
15225
15226 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
15227 PyObject *resultobj;
15228 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15229 int result;
15230 PyObject * obj0 = 0 ;
15231 char *kwnames[] = {
15232 (char *) "self", NULL
15233 };
15234
15235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
15236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15238 {
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
15240 result = (int)(arg1)->IsButton();
15241
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 resultobj = SWIG_FromInt((int)result);
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15253 PyObject *resultobj;
15254 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15255 int result;
15256 PyObject * obj0 = 0 ;
15257 char *kwnames[] = {
15258 (char *) "self", NULL
15259 };
15260
15261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
15262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15264 {
15265 PyThreadState* __tstate = wxPyBeginAllowThreads();
15266 result = (int)(arg1)->IsControl();
15267
15268 wxPyEndAllowThreads(__tstate);
15269 if (PyErr_Occurred()) SWIG_fail;
15270 }
15271 resultobj = SWIG_FromInt((int)result);
15272 return resultobj;
15273 fail:
15274 return NULL;
15275 }
15276
15277
15278 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
15279 PyObject *resultobj;
15280 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15281 int result;
15282 PyObject * obj0 = 0 ;
15283 char *kwnames[] = {
15284 (char *) "self", NULL
15285 };
15286
15287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
15288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15290 {
15291 PyThreadState* __tstate = wxPyBeginAllowThreads();
15292 result = (int)(arg1)->IsSeparator();
15293
15294 wxPyEndAllowThreads(__tstate);
15295 if (PyErr_Occurred()) SWIG_fail;
15296 }
15297 resultobj = SWIG_FromInt((int)result);
15298 return resultobj;
15299 fail:
15300 return NULL;
15301 }
15302
15303
15304 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15305 PyObject *resultobj;
15306 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15307 int result;
15308 PyObject * obj0 = 0 ;
15309 char *kwnames[] = {
15310 (char *) "self", NULL
15311 };
15312
15313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
15314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15316 {
15317 PyThreadState* __tstate = wxPyBeginAllowThreads();
15318 result = (int)(arg1)->GetStyle();
15319
15320 wxPyEndAllowThreads(__tstate);
15321 if (PyErr_Occurred()) SWIG_fail;
15322 }
15323 resultobj = SWIG_FromInt((int)result);
15324 return resultobj;
15325 fail:
15326 return NULL;
15327 }
15328
15329
15330 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
15331 PyObject *resultobj;
15332 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15333 int result;
15334 PyObject * obj0 = 0 ;
15335 char *kwnames[] = {
15336 (char *) "self", NULL
15337 };
15338
15339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
15340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15342 {
15343 PyThreadState* __tstate = wxPyBeginAllowThreads();
15344 result = (int)(arg1)->GetKind();
15345
15346 wxPyEndAllowThreads(__tstate);
15347 if (PyErr_Occurred()) SWIG_fail;
15348 }
15349 resultobj = SWIG_FromInt((int)result);
15350 return resultobj;
15351 fail:
15352 return NULL;
15353 }
15354
15355
15356 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
15357 PyObject *resultobj;
15358 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15359 bool result;
15360 PyObject * obj0 = 0 ;
15361 char *kwnames[] = {
15362 (char *) "self", NULL
15363 };
15364
15365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
15366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15368 {
15369 PyThreadState* __tstate = wxPyBeginAllowThreads();
15370 result = (bool)(arg1)->IsEnabled();
15371
15372 wxPyEndAllowThreads(__tstate);
15373 if (PyErr_Occurred()) SWIG_fail;
15374 }
15375 {
15376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15377 }
15378 return resultobj;
15379 fail:
15380 return NULL;
15381 }
15382
15383
15384 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15385 PyObject *resultobj;
15386 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15387 bool result;
15388 PyObject * obj0 = 0 ;
15389 char *kwnames[] = {
15390 (char *) "self", NULL
15391 };
15392
15393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
15394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15396 {
15397 PyThreadState* __tstate = wxPyBeginAllowThreads();
15398 result = (bool)(arg1)->IsToggled();
15399
15400 wxPyEndAllowThreads(__tstate);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 {
15404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15405 }
15406 return resultobj;
15407 fail:
15408 return NULL;
15409 }
15410
15411
15412 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15413 PyObject *resultobj;
15414 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15415 bool result;
15416 PyObject * obj0 = 0 ;
15417 char *kwnames[] = {
15418 (char *) "self", NULL
15419 };
15420
15421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
15422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15424 {
15425 PyThreadState* __tstate = wxPyBeginAllowThreads();
15426 result = (bool)(arg1)->CanBeToggled();
15427
15428 wxPyEndAllowThreads(__tstate);
15429 if (PyErr_Occurred()) SWIG_fail;
15430 }
15431 {
15432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15433 }
15434 return resultobj;
15435 fail:
15436 return NULL;
15437 }
15438
15439
15440 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15441 PyObject *resultobj;
15442 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15443 wxBitmap *result;
15444 PyObject * obj0 = 0 ;
15445 char *kwnames[] = {
15446 (char *) "self", NULL
15447 };
15448
15449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
15450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 {
15455 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
15456 result = (wxBitmap *) &_result_ref;
15457 }
15458
15459 wxPyEndAllowThreads(__tstate);
15460 if (PyErr_Occurred()) SWIG_fail;
15461 }
15462 {
15463 wxBitmap* resultptr = new wxBitmap(*result);
15464 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15465 }
15466 return resultobj;
15467 fail:
15468 return NULL;
15469 }
15470
15471
15472 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15473 PyObject *resultobj;
15474 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15475 wxBitmap *result;
15476 PyObject * obj0 = 0 ;
15477 char *kwnames[] = {
15478 (char *) "self", NULL
15479 };
15480
15481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
15482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15484 {
15485 PyThreadState* __tstate = wxPyBeginAllowThreads();
15486 {
15487 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
15488 result = (wxBitmap *) &_result_ref;
15489 }
15490
15491 wxPyEndAllowThreads(__tstate);
15492 if (PyErr_Occurred()) SWIG_fail;
15493 }
15494 {
15495 wxBitmap* resultptr = new wxBitmap(*result);
15496 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15497 }
15498 return resultobj;
15499 fail:
15500 return NULL;
15501 }
15502
15503
15504 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15505 PyObject *resultobj;
15506 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15507 wxBitmap result;
15508 PyObject * obj0 = 0 ;
15509 char *kwnames[] = {
15510 (char *) "self", NULL
15511 };
15512
15513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
15514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15516 {
15517 PyThreadState* __tstate = wxPyBeginAllowThreads();
15518 result = (arg1)->GetBitmap();
15519
15520 wxPyEndAllowThreads(__tstate);
15521 if (PyErr_Occurred()) SWIG_fail;
15522 }
15523 {
15524 wxBitmap * resultptr;
15525 resultptr = new wxBitmap((wxBitmap &) result);
15526 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15527 }
15528 return resultobj;
15529 fail:
15530 return NULL;
15531 }
15532
15533
15534 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
15535 PyObject *resultobj;
15536 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15537 wxString result;
15538 PyObject * obj0 = 0 ;
15539 char *kwnames[] = {
15540 (char *) "self", NULL
15541 };
15542
15543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
15544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15546 {
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 result = (arg1)->GetLabel();
15549
15550 wxPyEndAllowThreads(__tstate);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 {
15554 #if wxUSE_UNICODE
15555 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15556 #else
15557 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15558 #endif
15559 }
15560 return resultobj;
15561 fail:
15562 return NULL;
15563 }
15564
15565
15566 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15567 PyObject *resultobj;
15568 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15569 wxString result;
15570 PyObject * obj0 = 0 ;
15571 char *kwnames[] = {
15572 (char *) "self", NULL
15573 };
15574
15575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
15576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15578 {
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
15580 result = (arg1)->GetShortHelp();
15581
15582 wxPyEndAllowThreads(__tstate);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 {
15586 #if wxUSE_UNICODE
15587 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15588 #else
15589 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15590 #endif
15591 }
15592 return resultobj;
15593 fail:
15594 return NULL;
15595 }
15596
15597
15598 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15599 PyObject *resultobj;
15600 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15601 wxString result;
15602 PyObject * obj0 = 0 ;
15603 char *kwnames[] = {
15604 (char *) "self", NULL
15605 };
15606
15607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
15608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15610 {
15611 PyThreadState* __tstate = wxPyBeginAllowThreads();
15612 result = (arg1)->GetLongHelp();
15613
15614 wxPyEndAllowThreads(__tstate);
15615 if (PyErr_Occurred()) SWIG_fail;
15616 }
15617 {
15618 #if wxUSE_UNICODE
15619 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15620 #else
15621 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15622 #endif
15623 }
15624 return resultobj;
15625 fail:
15626 return NULL;
15627 }
15628
15629
15630 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
15631 PyObject *resultobj;
15632 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15633 bool arg2 ;
15634 bool result;
15635 PyObject * obj0 = 0 ;
15636 PyObject * obj1 = 0 ;
15637 char *kwnames[] = {
15638 (char *) "self",(char *) "enable", NULL
15639 };
15640
15641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
15642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15644 arg2 = (bool) SWIG_AsBool(obj1);
15645 if (PyErr_Occurred()) SWIG_fail;
15646 {
15647 PyThreadState* __tstate = wxPyBeginAllowThreads();
15648 result = (bool)(arg1)->Enable(arg2);
15649
15650 wxPyEndAllowThreads(__tstate);
15651 if (PyErr_Occurred()) SWIG_fail;
15652 }
15653 {
15654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15655 }
15656 return resultobj;
15657 fail:
15658 return NULL;
15659 }
15660
15661
15662 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
15663 PyObject *resultobj;
15664 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15665 PyObject * obj0 = 0 ;
15666 char *kwnames[] = {
15667 (char *) "self", NULL
15668 };
15669
15670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
15671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15673 {
15674 PyThreadState* __tstate = wxPyBeginAllowThreads();
15675 (arg1)->Toggle();
15676
15677 wxPyEndAllowThreads(__tstate);
15678 if (PyErr_Occurred()) SWIG_fail;
15679 }
15680 Py_INCREF(Py_None); resultobj = Py_None;
15681 return resultobj;
15682 fail:
15683 return NULL;
15684 }
15685
15686
15687 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
15688 PyObject *resultobj;
15689 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15690 bool arg2 ;
15691 bool result;
15692 PyObject * obj0 = 0 ;
15693 PyObject * obj1 = 0 ;
15694 char *kwnames[] = {
15695 (char *) "self",(char *) "toggle", NULL
15696 };
15697
15698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
15699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15701 arg2 = (bool) SWIG_AsBool(obj1);
15702 if (PyErr_Occurred()) SWIG_fail;
15703 {
15704 PyThreadState* __tstate = wxPyBeginAllowThreads();
15705 result = (bool)(arg1)->SetToggle(arg2);
15706
15707 wxPyEndAllowThreads(__tstate);
15708 if (PyErr_Occurred()) SWIG_fail;
15709 }
15710 {
15711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15712 }
15713 return resultobj;
15714 fail:
15715 return NULL;
15716 }
15717
15718
15719 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15720 PyObject *resultobj;
15721 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15722 wxString *arg2 = 0 ;
15723 bool result;
15724 bool temp2 = False ;
15725 PyObject * obj0 = 0 ;
15726 PyObject * obj1 = 0 ;
15727 char *kwnames[] = {
15728 (char *) "self",(char *) "help", NULL
15729 };
15730
15731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
15732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15734 {
15735 arg2 = wxString_in_helper(obj1);
15736 if (arg2 == NULL) SWIG_fail;
15737 temp2 = True;
15738 }
15739 {
15740 PyThreadState* __tstate = wxPyBeginAllowThreads();
15741 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
15742
15743 wxPyEndAllowThreads(__tstate);
15744 if (PyErr_Occurred()) SWIG_fail;
15745 }
15746 {
15747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15748 }
15749 {
15750 if (temp2)
15751 delete arg2;
15752 }
15753 return resultobj;
15754 fail:
15755 {
15756 if (temp2)
15757 delete arg2;
15758 }
15759 return NULL;
15760 }
15761
15762
15763 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15764 PyObject *resultobj;
15765 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15766 wxString *arg2 = 0 ;
15767 bool result;
15768 bool temp2 = False ;
15769 PyObject * obj0 = 0 ;
15770 PyObject * obj1 = 0 ;
15771 char *kwnames[] = {
15772 (char *) "self",(char *) "help", NULL
15773 };
15774
15775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
15776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15778 {
15779 arg2 = wxString_in_helper(obj1);
15780 if (arg2 == NULL) SWIG_fail;
15781 temp2 = True;
15782 }
15783 {
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
15786
15787 wxPyEndAllowThreads(__tstate);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 {
15791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15792 }
15793 {
15794 if (temp2)
15795 delete arg2;
15796 }
15797 return resultobj;
15798 fail:
15799 {
15800 if (temp2)
15801 delete arg2;
15802 }
15803 return NULL;
15804 }
15805
15806
15807 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15808 PyObject *resultobj;
15809 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15810 wxBitmap *arg2 = 0 ;
15811 PyObject * obj0 = 0 ;
15812 PyObject * obj1 = 0 ;
15813 char *kwnames[] = {
15814 (char *) "self",(char *) "bmp", NULL
15815 };
15816
15817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
15818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15821 SWIG_POINTER_EXCEPTION | 0)) == -1)
15822 SWIG_fail;
15823 if (arg2 == NULL) {
15824 PyErr_SetString(PyExc_TypeError,"null reference");
15825 SWIG_fail;
15826 }
15827 {
15828 PyThreadState* __tstate = wxPyBeginAllowThreads();
15829 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
15830
15831 wxPyEndAllowThreads(__tstate);
15832 if (PyErr_Occurred()) SWIG_fail;
15833 }
15834 Py_INCREF(Py_None); resultobj = Py_None;
15835 return resultobj;
15836 fail:
15837 return NULL;
15838 }
15839
15840
15841 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15842 PyObject *resultobj;
15843 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15844 wxBitmap *arg2 = 0 ;
15845 PyObject * obj0 = 0 ;
15846 PyObject * obj1 = 0 ;
15847 char *kwnames[] = {
15848 (char *) "self",(char *) "bmp", NULL
15849 };
15850
15851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
15852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15854 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15855 SWIG_POINTER_EXCEPTION | 0)) == -1)
15856 SWIG_fail;
15857 if (arg2 == NULL) {
15858 PyErr_SetString(PyExc_TypeError,"null reference");
15859 SWIG_fail;
15860 }
15861 {
15862 PyThreadState* __tstate = wxPyBeginAllowThreads();
15863 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
15864
15865 wxPyEndAllowThreads(__tstate);
15866 if (PyErr_Occurred()) SWIG_fail;
15867 }
15868 Py_INCREF(Py_None); resultobj = Py_None;
15869 return resultobj;
15870 fail:
15871 return NULL;
15872 }
15873
15874
15875 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
15876 PyObject *resultobj;
15877 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15878 wxString *arg2 = 0 ;
15879 bool temp2 = False ;
15880 PyObject * obj0 = 0 ;
15881 PyObject * obj1 = 0 ;
15882 char *kwnames[] = {
15883 (char *) "self",(char *) "label", NULL
15884 };
15885
15886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
15887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15889 {
15890 arg2 = wxString_in_helper(obj1);
15891 if (arg2 == NULL) SWIG_fail;
15892 temp2 = True;
15893 }
15894 {
15895 PyThreadState* __tstate = wxPyBeginAllowThreads();
15896 (arg1)->SetLabel((wxString const &)*arg2);
15897
15898 wxPyEndAllowThreads(__tstate);
15899 if (PyErr_Occurred()) SWIG_fail;
15900 }
15901 Py_INCREF(Py_None); resultobj = Py_None;
15902 {
15903 if (temp2)
15904 delete arg2;
15905 }
15906 return resultobj;
15907 fail:
15908 {
15909 if (temp2)
15910 delete arg2;
15911 }
15912 return NULL;
15913 }
15914
15915
15916 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
15917 PyObject *resultobj;
15918 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15919 PyObject * obj0 = 0 ;
15920 char *kwnames[] = {
15921 (char *) "self", NULL
15922 };
15923
15924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
15925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15927 {
15928 PyThreadState* __tstate = wxPyBeginAllowThreads();
15929 (arg1)->Detach();
15930
15931 wxPyEndAllowThreads(__tstate);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 }
15934 Py_INCREF(Py_None); resultobj = Py_None;
15935 return resultobj;
15936 fail:
15937 return NULL;
15938 }
15939
15940
15941 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
15942 PyObject *resultobj;
15943 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15944 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
15945 PyObject * obj0 = 0 ;
15946 PyObject * obj1 = 0 ;
15947 char *kwnames[] = {
15948 (char *) "self",(char *) "tbar", NULL
15949 };
15950
15951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
15952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
15955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15956 {
15957 PyThreadState* __tstate = wxPyBeginAllowThreads();
15958 (arg1)->Attach(arg2);
15959
15960 wxPyEndAllowThreads(__tstate);
15961 if (PyErr_Occurred()) SWIG_fail;
15962 }
15963 Py_INCREF(Py_None); resultobj = Py_None;
15964 return resultobj;
15965 fail:
15966 return NULL;
15967 }
15968
15969
15970 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
15971 PyObject *resultobj;
15972 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15973 PyObject *result;
15974 PyObject * obj0 = 0 ;
15975 char *kwnames[] = {
15976 (char *) "self", NULL
15977 };
15978
15979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
15980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15982 {
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
15985
15986 wxPyEndAllowThreads(__tstate);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
15989 resultobj = result;
15990 return resultobj;
15991 fail:
15992 return NULL;
15993 }
15994
15995
15996 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
15997 PyObject *resultobj;
15998 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15999 PyObject *arg2 = (PyObject *) 0 ;
16000 PyObject * obj0 = 0 ;
16001 PyObject * obj1 = 0 ;
16002 char *kwnames[] = {
16003 (char *) "self",(char *) "clientData", NULL
16004 };
16005
16006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
16007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16009 arg2 = obj1;
16010 {
16011 PyThreadState* __tstate = wxPyBeginAllowThreads();
16012 wxToolBarToolBase_SetClientData(arg1,arg2);
16013
16014 wxPyEndAllowThreads(__tstate);
16015 if (PyErr_Occurred()) SWIG_fail;
16016 }
16017 Py_INCREF(Py_None); resultobj = Py_None;
16018 return resultobj;
16019 fail:
16020 return NULL;
16021 }
16022
16023
16024 static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
16025 PyObject *obj;
16026 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16027 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
16028 Py_INCREF(obj);
16029 return Py_BuildValue((char *)"");
16030 }
16031 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16032 PyObject *resultobj;
16033 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16034 int arg2 ;
16035 wxString *arg3 = 0 ;
16036 wxBitmap *arg4 = 0 ;
16037 wxBitmap const &arg5_defvalue = wxNullBitmap ;
16038 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
16039 int arg6 = (int) wxITEM_NORMAL ;
16040 wxString const &arg7_defvalue = wxPyEmptyString ;
16041 wxString *arg7 = (wxString *) &arg7_defvalue ;
16042 wxString const &arg8_defvalue = wxPyEmptyString ;
16043 wxString *arg8 = (wxString *) &arg8_defvalue ;
16044 PyObject *arg9 = (PyObject *) NULL ;
16045 wxToolBarToolBase *result;
16046 bool temp3 = False ;
16047 bool temp7 = False ;
16048 bool temp8 = False ;
16049 PyObject * obj0 = 0 ;
16050 PyObject * obj1 = 0 ;
16051 PyObject * obj2 = 0 ;
16052 PyObject * obj3 = 0 ;
16053 PyObject * obj4 = 0 ;
16054 PyObject * obj5 = 0 ;
16055 PyObject * obj6 = 0 ;
16056 PyObject * obj7 = 0 ;
16057 PyObject * obj8 = 0 ;
16058 char *kwnames[] = {
16059 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16060 };
16061
16062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
16063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16065 arg2 = (int) SWIG_AsInt(obj1);
16066 if (PyErr_Occurred()) SWIG_fail;
16067 {
16068 arg3 = wxString_in_helper(obj2);
16069 if (arg3 == NULL) SWIG_fail;
16070 temp3 = True;
16071 }
16072 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16073 SWIG_POINTER_EXCEPTION | 0)) == -1)
16074 SWIG_fail;
16075 if (arg4 == NULL) {
16076 PyErr_SetString(PyExc_TypeError,"null reference");
16077 SWIG_fail;
16078 }
16079 if (obj4) {
16080 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16081 SWIG_POINTER_EXCEPTION | 0)) == -1)
16082 SWIG_fail;
16083 if (arg5 == NULL) {
16084 PyErr_SetString(PyExc_TypeError,"null reference");
16085 SWIG_fail;
16086 }
16087 }
16088 if (obj5) {
16089 arg6 = (wxItemKind) SWIG_AsInt(obj5);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 }
16092 if (obj6) {
16093 {
16094 arg7 = wxString_in_helper(obj6);
16095 if (arg7 == NULL) SWIG_fail;
16096 temp7 = True;
16097 }
16098 }
16099 if (obj7) {
16100 {
16101 arg8 = wxString_in_helper(obj7);
16102 if (arg8 == NULL) SWIG_fail;
16103 temp8 = True;
16104 }
16105 }
16106 if (obj8) {
16107 arg9 = obj8;
16108 }
16109 {
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
16112
16113 wxPyEndAllowThreads(__tstate);
16114 if (PyErr_Occurred()) SWIG_fail;
16115 }
16116 {
16117 resultobj = wxPyMake_wxObject(result);
16118 }
16119 {
16120 if (temp3)
16121 delete arg3;
16122 }
16123 {
16124 if (temp7)
16125 delete arg7;
16126 }
16127 {
16128 if (temp8)
16129 delete arg8;
16130 }
16131 return resultobj;
16132 fail:
16133 {
16134 if (temp3)
16135 delete arg3;
16136 }
16137 {
16138 if (temp7)
16139 delete arg7;
16140 }
16141 {
16142 if (temp8)
16143 delete arg8;
16144 }
16145 return NULL;
16146 }
16147
16148
16149 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16150 PyObject *resultobj;
16151 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16152 size_t arg2 ;
16153 int arg3 ;
16154 wxString *arg4 = 0 ;
16155 wxBitmap *arg5 = 0 ;
16156 wxBitmap const &arg6_defvalue = wxNullBitmap ;
16157 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
16158 int arg7 = (int) wxITEM_NORMAL ;
16159 wxString const &arg8_defvalue = wxPyEmptyString ;
16160 wxString *arg8 = (wxString *) &arg8_defvalue ;
16161 wxString const &arg9_defvalue = wxPyEmptyString ;
16162 wxString *arg9 = (wxString *) &arg9_defvalue ;
16163 PyObject *arg10 = (PyObject *) NULL ;
16164 wxToolBarToolBase *result;
16165 bool temp4 = False ;
16166 bool temp8 = False ;
16167 bool temp9 = False ;
16168 PyObject * obj0 = 0 ;
16169 PyObject * obj1 = 0 ;
16170 PyObject * obj2 = 0 ;
16171 PyObject * obj3 = 0 ;
16172 PyObject * obj4 = 0 ;
16173 PyObject * obj5 = 0 ;
16174 PyObject * obj6 = 0 ;
16175 PyObject * obj7 = 0 ;
16176 PyObject * obj8 = 0 ;
16177 PyObject * obj9 = 0 ;
16178 char *kwnames[] = {
16179 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16180 };
16181
16182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
16183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16185 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16186 if (PyErr_Occurred()) SWIG_fail;
16187 arg3 = (int) SWIG_AsInt(obj2);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 {
16190 arg4 = wxString_in_helper(obj3);
16191 if (arg4 == NULL) SWIG_fail;
16192 temp4 = True;
16193 }
16194 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16195 SWIG_POINTER_EXCEPTION | 0)) == -1)
16196 SWIG_fail;
16197 if (arg5 == NULL) {
16198 PyErr_SetString(PyExc_TypeError,"null reference");
16199 SWIG_fail;
16200 }
16201 if (obj5) {
16202 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
16203 SWIG_POINTER_EXCEPTION | 0)) == -1)
16204 SWIG_fail;
16205 if (arg6 == NULL) {
16206 PyErr_SetString(PyExc_TypeError,"null reference");
16207 SWIG_fail;
16208 }
16209 }
16210 if (obj6) {
16211 arg7 = (wxItemKind) SWIG_AsInt(obj6);
16212 if (PyErr_Occurred()) SWIG_fail;
16213 }
16214 if (obj7) {
16215 {
16216 arg8 = wxString_in_helper(obj7);
16217 if (arg8 == NULL) SWIG_fail;
16218 temp8 = True;
16219 }
16220 }
16221 if (obj8) {
16222 {
16223 arg9 = wxString_in_helper(obj8);
16224 if (arg9 == NULL) SWIG_fail;
16225 temp9 = True;
16226 }
16227 }
16228 if (obj9) {
16229 arg10 = obj9;
16230 }
16231 {
16232 PyThreadState* __tstate = wxPyBeginAllowThreads();
16233 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);
16234
16235 wxPyEndAllowThreads(__tstate);
16236 if (PyErr_Occurred()) SWIG_fail;
16237 }
16238 {
16239 resultobj = wxPyMake_wxObject(result);
16240 }
16241 {
16242 if (temp4)
16243 delete arg4;
16244 }
16245 {
16246 if (temp8)
16247 delete arg8;
16248 }
16249 {
16250 if (temp9)
16251 delete arg9;
16252 }
16253 return resultobj;
16254 fail:
16255 {
16256 if (temp4)
16257 delete arg4;
16258 }
16259 {
16260 if (temp8)
16261 delete arg8;
16262 }
16263 {
16264 if (temp9)
16265 delete arg9;
16266 }
16267 return NULL;
16268 }
16269
16270
16271 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16272 PyObject *resultobj;
16273 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16274 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
16275 wxToolBarToolBase *result;
16276 PyObject * obj0 = 0 ;
16277 PyObject * obj1 = 0 ;
16278 char *kwnames[] = {
16279 (char *) "self",(char *) "tool", NULL
16280 };
16281
16282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
16283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16285 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
16286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16287 {
16288 PyThreadState* __tstate = wxPyBeginAllowThreads();
16289 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
16290
16291 wxPyEndAllowThreads(__tstate);
16292 if (PyErr_Occurred()) SWIG_fail;
16293 }
16294 {
16295 resultobj = wxPyMake_wxObject(result);
16296 }
16297 return resultobj;
16298 fail:
16299 return NULL;
16300 }
16301
16302
16303 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16304 PyObject *resultobj;
16305 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16306 size_t arg2 ;
16307 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
16308 wxToolBarToolBase *result;
16309 PyObject * obj0 = 0 ;
16310 PyObject * obj1 = 0 ;
16311 PyObject * obj2 = 0 ;
16312 char *kwnames[] = {
16313 (char *) "self",(char *) "pos",(char *) "tool", NULL
16314 };
16315
16316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
16317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16319 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
16322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16323 {
16324 PyThreadState* __tstate = wxPyBeginAllowThreads();
16325 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
16326
16327 wxPyEndAllowThreads(__tstate);
16328 if (PyErr_Occurred()) SWIG_fail;
16329 }
16330 {
16331 resultobj = wxPyMake_wxObject(result);
16332 }
16333 return resultobj;
16334 fail:
16335 return NULL;
16336 }
16337
16338
16339 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16340 PyObject *resultobj;
16341 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16342 wxControl *arg2 = (wxControl *) 0 ;
16343 wxToolBarToolBase *result;
16344 PyObject * obj0 = 0 ;
16345 PyObject * obj1 = 0 ;
16346 char *kwnames[] = {
16347 (char *) "self",(char *) "control", NULL
16348 };
16349
16350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
16351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16353 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
16354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16355 {
16356 PyThreadState* __tstate = wxPyBeginAllowThreads();
16357 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
16358
16359 wxPyEndAllowThreads(__tstate);
16360 if (PyErr_Occurred()) SWIG_fail;
16361 }
16362 {
16363 resultobj = wxPyMake_wxObject(result);
16364 }
16365 return resultobj;
16366 fail:
16367 return NULL;
16368 }
16369
16370
16371 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16372 PyObject *resultobj;
16373 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16374 size_t arg2 ;
16375 wxControl *arg3 = (wxControl *) 0 ;
16376 wxToolBarToolBase *result;
16377 PyObject * obj0 = 0 ;
16378 PyObject * obj1 = 0 ;
16379 PyObject * obj2 = 0 ;
16380 char *kwnames[] = {
16381 (char *) "self",(char *) "pos",(char *) "control", NULL
16382 };
16383
16384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
16385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16387 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16388 if (PyErr_Occurred()) SWIG_fail;
16389 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
16390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16391 {
16392 PyThreadState* __tstate = wxPyBeginAllowThreads();
16393 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
16394
16395 wxPyEndAllowThreads(__tstate);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 }
16398 {
16399 resultobj = wxPyMake_wxObject(result);
16400 }
16401 return resultobj;
16402 fail:
16403 return NULL;
16404 }
16405
16406
16407 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16408 PyObject *resultobj;
16409 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16410 int arg2 ;
16411 wxControl *result;
16412 PyObject * obj0 = 0 ;
16413 PyObject * obj1 = 0 ;
16414 char *kwnames[] = {
16415 (char *) "self",(char *) "id", NULL
16416 };
16417
16418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
16419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16421 arg2 = (int) SWIG_AsInt(obj1);
16422 if (PyErr_Occurred()) SWIG_fail;
16423 {
16424 PyThreadState* __tstate = wxPyBeginAllowThreads();
16425 result = (wxControl *)(arg1)->FindControl(arg2);
16426
16427 wxPyEndAllowThreads(__tstate);
16428 if (PyErr_Occurred()) SWIG_fail;
16429 }
16430 {
16431 resultobj = wxPyMake_wxObject(result);
16432 }
16433 return resultobj;
16434 fail:
16435 return NULL;
16436 }
16437
16438
16439 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16440 PyObject *resultobj;
16441 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16442 wxToolBarToolBase *result;
16443 PyObject * obj0 = 0 ;
16444 char *kwnames[] = {
16445 (char *) "self", NULL
16446 };
16447
16448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
16449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16451 {
16452 PyThreadState* __tstate = wxPyBeginAllowThreads();
16453 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
16454
16455 wxPyEndAllowThreads(__tstate);
16456 if (PyErr_Occurred()) SWIG_fail;
16457 }
16458 {
16459 resultobj = wxPyMake_wxObject(result);
16460 }
16461 return resultobj;
16462 fail:
16463 return NULL;
16464 }
16465
16466
16467 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16468 PyObject *resultobj;
16469 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16470 size_t arg2 ;
16471 wxToolBarToolBase *result;
16472 PyObject * obj0 = 0 ;
16473 PyObject * obj1 = 0 ;
16474 char *kwnames[] = {
16475 (char *) "self",(char *) "pos", NULL
16476 };
16477
16478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
16479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16481 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16482 if (PyErr_Occurred()) SWIG_fail;
16483 {
16484 PyThreadState* __tstate = wxPyBeginAllowThreads();
16485 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
16486
16487 wxPyEndAllowThreads(__tstate);
16488 if (PyErr_Occurred()) SWIG_fail;
16489 }
16490 {
16491 resultobj = wxPyMake_wxObject(result);
16492 }
16493 return resultobj;
16494 fail:
16495 return NULL;
16496 }
16497
16498
16499 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16500 PyObject *resultobj;
16501 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16502 int arg2 ;
16503 wxToolBarToolBase *result;
16504 PyObject * obj0 = 0 ;
16505 PyObject * obj1 = 0 ;
16506 char *kwnames[] = {
16507 (char *) "self",(char *) "id", NULL
16508 };
16509
16510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
16511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16513 arg2 = (int) SWIG_AsInt(obj1);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 {
16516 PyThreadState* __tstate = wxPyBeginAllowThreads();
16517 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
16518
16519 wxPyEndAllowThreads(__tstate);
16520 if (PyErr_Occurred()) SWIG_fail;
16521 }
16522 {
16523 resultobj = wxPyMake_wxObject(result);
16524 }
16525 return resultobj;
16526 fail:
16527 return NULL;
16528 }
16529
16530
16531 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
16532 PyObject *resultobj;
16533 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16534 size_t arg2 ;
16535 bool result;
16536 PyObject * obj0 = 0 ;
16537 PyObject * obj1 = 0 ;
16538 char *kwnames[] = {
16539 (char *) "self",(char *) "pos", NULL
16540 };
16541
16542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
16543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16545 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16546 if (PyErr_Occurred()) SWIG_fail;
16547 {
16548 PyThreadState* __tstate = wxPyBeginAllowThreads();
16549 result = (bool)(arg1)->DeleteToolByPos(arg2);
16550
16551 wxPyEndAllowThreads(__tstate);
16552 if (PyErr_Occurred()) SWIG_fail;
16553 }
16554 {
16555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16556 }
16557 return resultobj;
16558 fail:
16559 return NULL;
16560 }
16561
16562
16563 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16564 PyObject *resultobj;
16565 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16566 int arg2 ;
16567 bool result;
16568 PyObject * obj0 = 0 ;
16569 PyObject * obj1 = 0 ;
16570 char *kwnames[] = {
16571 (char *) "self",(char *) "id", NULL
16572 };
16573
16574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
16575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16577 arg2 = (int) SWIG_AsInt(obj1);
16578 if (PyErr_Occurred()) SWIG_fail;
16579 {
16580 PyThreadState* __tstate = wxPyBeginAllowThreads();
16581 result = (bool)(arg1)->DeleteTool(arg2);
16582
16583 wxPyEndAllowThreads(__tstate);
16584 if (PyErr_Occurred()) SWIG_fail;
16585 }
16586 {
16587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16588 }
16589 return resultobj;
16590 fail:
16591 return NULL;
16592 }
16593
16594
16595 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
16596 PyObject *resultobj;
16597 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16598 PyObject * obj0 = 0 ;
16599 char *kwnames[] = {
16600 (char *) "self", NULL
16601 };
16602
16603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
16604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16606 {
16607 PyThreadState* __tstate = wxPyBeginAllowThreads();
16608 (arg1)->ClearTools();
16609
16610 wxPyEndAllowThreads(__tstate);
16611 if (PyErr_Occurred()) SWIG_fail;
16612 }
16613 Py_INCREF(Py_None); resultobj = Py_None;
16614 return resultobj;
16615 fail:
16616 return NULL;
16617 }
16618
16619
16620 static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
16621 PyObject *resultobj;
16622 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16623 bool result;
16624 PyObject * obj0 = 0 ;
16625 char *kwnames[] = {
16626 (char *) "self", NULL
16627 };
16628
16629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
16630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16632 {
16633 PyThreadState* __tstate = wxPyBeginAllowThreads();
16634 result = (bool)(arg1)->Realize();
16635
16636 wxPyEndAllowThreads(__tstate);
16637 if (PyErr_Occurred()) SWIG_fail;
16638 }
16639 {
16640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16641 }
16642 return resultobj;
16643 fail:
16644 return NULL;
16645 }
16646
16647
16648 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16649 PyObject *resultobj;
16650 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16651 int arg2 ;
16652 bool arg3 ;
16653 PyObject * obj0 = 0 ;
16654 PyObject * obj1 = 0 ;
16655 PyObject * obj2 = 0 ;
16656 char *kwnames[] = {
16657 (char *) "self",(char *) "id",(char *) "enable", NULL
16658 };
16659
16660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16663 arg2 = (int) SWIG_AsInt(obj1);
16664 if (PyErr_Occurred()) SWIG_fail;
16665 arg3 = (bool) SWIG_AsBool(obj2);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 {
16668 PyThreadState* __tstate = wxPyBeginAllowThreads();
16669 (arg1)->EnableTool(arg2,arg3);
16670
16671 wxPyEndAllowThreads(__tstate);
16672 if (PyErr_Occurred()) SWIG_fail;
16673 }
16674 Py_INCREF(Py_None); resultobj = Py_None;
16675 return resultobj;
16676 fail:
16677 return NULL;
16678 }
16679
16680
16681 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16682 PyObject *resultobj;
16683 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16684 int arg2 ;
16685 bool arg3 ;
16686 PyObject * obj0 = 0 ;
16687 PyObject * obj1 = 0 ;
16688 PyObject * obj2 = 0 ;
16689 char *kwnames[] = {
16690 (char *) "self",(char *) "id",(char *) "toggle", NULL
16691 };
16692
16693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16696 arg2 = (int) SWIG_AsInt(obj1);
16697 if (PyErr_Occurred()) SWIG_fail;
16698 arg3 = (bool) SWIG_AsBool(obj2);
16699 if (PyErr_Occurred()) SWIG_fail;
16700 {
16701 PyThreadState* __tstate = wxPyBeginAllowThreads();
16702 (arg1)->ToggleTool(arg2,arg3);
16703
16704 wxPyEndAllowThreads(__tstate);
16705 if (PyErr_Occurred()) SWIG_fail;
16706 }
16707 Py_INCREF(Py_None); resultobj = Py_None;
16708 return resultobj;
16709 fail:
16710 return NULL;
16711 }
16712
16713
16714 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16715 PyObject *resultobj;
16716 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16717 int arg2 ;
16718 bool arg3 ;
16719 PyObject * obj0 = 0 ;
16720 PyObject * obj1 = 0 ;
16721 PyObject * obj2 = 0 ;
16722 char *kwnames[] = {
16723 (char *) "self",(char *) "id",(char *) "toggle", NULL
16724 };
16725
16726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
16727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16729 arg2 = (int) SWIG_AsInt(obj1);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 arg3 = (bool) SWIG_AsBool(obj2);
16732 if (PyErr_Occurred()) SWIG_fail;
16733 {
16734 PyThreadState* __tstate = wxPyBeginAllowThreads();
16735 (arg1)->SetToggle(arg2,arg3);
16736
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 Py_INCREF(Py_None); resultobj = Py_None;
16741 return resultobj;
16742 fail:
16743 return NULL;
16744 }
16745
16746
16747 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16748 PyObject *resultobj;
16749 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16750 int arg2 ;
16751 PyObject *result;
16752 PyObject * obj0 = 0 ;
16753 PyObject * obj1 = 0 ;
16754 char *kwnames[] = {
16755 (char *) "self",(char *) "id", NULL
16756 };
16757
16758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
16759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16761 arg2 = (int) SWIG_AsInt(obj1);
16762 if (PyErr_Occurred()) SWIG_fail;
16763 {
16764 PyThreadState* __tstate = wxPyBeginAllowThreads();
16765 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
16766
16767 wxPyEndAllowThreads(__tstate);
16768 if (PyErr_Occurred()) SWIG_fail;
16769 }
16770 resultobj = result;
16771 return resultobj;
16772 fail:
16773 return NULL;
16774 }
16775
16776
16777 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16778 PyObject *resultobj;
16779 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16780 int arg2 ;
16781 PyObject *arg3 = (PyObject *) 0 ;
16782 PyObject * obj0 = 0 ;
16783 PyObject * obj1 = 0 ;
16784 PyObject * obj2 = 0 ;
16785 char *kwnames[] = {
16786 (char *) "self",(char *) "id",(char *) "clientData", NULL
16787 };
16788
16789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
16790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16792 arg2 = (int) SWIG_AsInt(obj1);
16793 if (PyErr_Occurred()) SWIG_fail;
16794 arg3 = obj2;
16795 {
16796 PyThreadState* __tstate = wxPyBeginAllowThreads();
16797 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
16798
16799 wxPyEndAllowThreads(__tstate);
16800 if (PyErr_Occurred()) SWIG_fail;
16801 }
16802 Py_INCREF(Py_None); resultobj = Py_None;
16803 return resultobj;
16804 fail:
16805 return NULL;
16806 }
16807
16808
16809 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
16810 PyObject *resultobj;
16811 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16812 int arg2 ;
16813 int result;
16814 PyObject * obj0 = 0 ;
16815 PyObject * obj1 = 0 ;
16816 char *kwnames[] = {
16817 (char *) "self",(char *) "id", NULL
16818 };
16819
16820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
16821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16823 arg2 = (int) SWIG_AsInt(obj1);
16824 if (PyErr_Occurred()) SWIG_fail;
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
16828
16829 wxPyEndAllowThreads(__tstate);
16830 if (PyErr_Occurred()) SWIG_fail;
16831 }
16832 resultobj = SWIG_FromInt((int)result);
16833 return resultobj;
16834 fail:
16835 return NULL;
16836 }
16837
16838
16839 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
16840 PyObject *resultobj;
16841 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16842 int arg2 ;
16843 bool result;
16844 PyObject * obj0 = 0 ;
16845 PyObject * obj1 = 0 ;
16846 char *kwnames[] = {
16847 (char *) "self",(char *) "id", NULL
16848 };
16849
16850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
16851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16853 arg2 = (int) SWIG_AsInt(obj1);
16854 if (PyErr_Occurred()) SWIG_fail;
16855 {
16856 PyThreadState* __tstate = wxPyBeginAllowThreads();
16857 result = (bool)(arg1)->GetToolState(arg2);
16858
16859 wxPyEndAllowThreads(__tstate);
16860 if (PyErr_Occurred()) SWIG_fail;
16861 }
16862 {
16863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16864 }
16865 return resultobj;
16866 fail:
16867 return NULL;
16868 }
16869
16870
16871 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
16872 PyObject *resultobj;
16873 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16874 int arg2 ;
16875 bool result;
16876 PyObject * obj0 = 0 ;
16877 PyObject * obj1 = 0 ;
16878 char *kwnames[] = {
16879 (char *) "self",(char *) "id", NULL
16880 };
16881
16882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
16883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16885 arg2 = (int) SWIG_AsInt(obj1);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 {
16888 PyThreadState* __tstate = wxPyBeginAllowThreads();
16889 result = (bool)(arg1)->GetToolEnabled(arg2);
16890
16891 wxPyEndAllowThreads(__tstate);
16892 if (PyErr_Occurred()) SWIG_fail;
16893 }
16894 {
16895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16896 }
16897 return resultobj;
16898 fail:
16899 return NULL;
16900 }
16901
16902
16903 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16904 PyObject *resultobj;
16905 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16906 int arg2 ;
16907 wxString *arg3 = 0 ;
16908 bool temp3 = False ;
16909 PyObject * obj0 = 0 ;
16910 PyObject * obj1 = 0 ;
16911 PyObject * obj2 = 0 ;
16912 char *kwnames[] = {
16913 (char *) "self",(char *) "id",(char *) "helpString", NULL
16914 };
16915
16916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16919 arg2 = (int) SWIG_AsInt(obj1);
16920 if (PyErr_Occurred()) SWIG_fail;
16921 {
16922 arg3 = wxString_in_helper(obj2);
16923 if (arg3 == NULL) SWIG_fail;
16924 temp3 = True;
16925 }
16926 {
16927 PyThreadState* __tstate = wxPyBeginAllowThreads();
16928 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
16929
16930 wxPyEndAllowThreads(__tstate);
16931 if (PyErr_Occurred()) SWIG_fail;
16932 }
16933 Py_INCREF(Py_None); resultobj = Py_None;
16934 {
16935 if (temp3)
16936 delete arg3;
16937 }
16938 return resultobj;
16939 fail:
16940 {
16941 if (temp3)
16942 delete arg3;
16943 }
16944 return NULL;
16945 }
16946
16947
16948 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16949 PyObject *resultobj;
16950 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16951 int arg2 ;
16952 wxString result;
16953 PyObject * obj0 = 0 ;
16954 PyObject * obj1 = 0 ;
16955 char *kwnames[] = {
16956 (char *) "self",(char *) "id", NULL
16957 };
16958
16959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
16960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16962 arg2 = (int) SWIG_AsInt(obj1);
16963 if (PyErr_Occurred()) SWIG_fail;
16964 {
16965 PyThreadState* __tstate = wxPyBeginAllowThreads();
16966 result = (arg1)->GetToolShortHelp(arg2);
16967
16968 wxPyEndAllowThreads(__tstate);
16969 if (PyErr_Occurred()) SWIG_fail;
16970 }
16971 {
16972 #if wxUSE_UNICODE
16973 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16974 #else
16975 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16976 #endif
16977 }
16978 return resultobj;
16979 fail:
16980 return NULL;
16981 }
16982
16983
16984 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16985 PyObject *resultobj;
16986 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16987 int arg2 ;
16988 wxString *arg3 = 0 ;
16989 bool temp3 = False ;
16990 PyObject * obj0 = 0 ;
16991 PyObject * obj1 = 0 ;
16992 PyObject * obj2 = 0 ;
16993 char *kwnames[] = {
16994 (char *) "self",(char *) "id",(char *) "helpString", NULL
16995 };
16996
16997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17000 arg2 = (int) SWIG_AsInt(obj1);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 {
17003 arg3 = wxString_in_helper(obj2);
17004 if (arg3 == NULL) SWIG_fail;
17005 temp3 = True;
17006 }
17007 {
17008 PyThreadState* __tstate = wxPyBeginAllowThreads();
17009 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
17010
17011 wxPyEndAllowThreads(__tstate);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 Py_INCREF(Py_None); resultobj = Py_None;
17015 {
17016 if (temp3)
17017 delete arg3;
17018 }
17019 return resultobj;
17020 fail:
17021 {
17022 if (temp3)
17023 delete arg3;
17024 }
17025 return NULL;
17026 }
17027
17028
17029 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17030 PyObject *resultobj;
17031 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17032 int arg2 ;
17033 wxString result;
17034 PyObject * obj0 = 0 ;
17035 PyObject * obj1 = 0 ;
17036 char *kwnames[] = {
17037 (char *) "self",(char *) "id", NULL
17038 };
17039
17040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
17041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17043 arg2 = (int) SWIG_AsInt(obj1);
17044 if (PyErr_Occurred()) SWIG_fail;
17045 {
17046 PyThreadState* __tstate = wxPyBeginAllowThreads();
17047 result = (arg1)->GetToolLongHelp(arg2);
17048
17049 wxPyEndAllowThreads(__tstate);
17050 if (PyErr_Occurred()) SWIG_fail;
17051 }
17052 {
17053 #if wxUSE_UNICODE
17054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17055 #else
17056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17057 #endif
17058 }
17059 return resultobj;
17060 fail:
17061 return NULL;
17062 }
17063
17064
17065 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
17066 PyObject *resultobj;
17067 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17068 int arg2 ;
17069 int arg3 ;
17070 PyObject * obj0 = 0 ;
17071 PyObject * obj1 = 0 ;
17072 PyObject * obj2 = 0 ;
17073 char *kwnames[] = {
17074 (char *) "self",(char *) "x",(char *) "y", NULL
17075 };
17076
17077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
17078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17080 arg2 = (int) SWIG_AsInt(obj1);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 arg3 = (int) SWIG_AsInt(obj2);
17083 if (PyErr_Occurred()) SWIG_fail;
17084 {
17085 PyThreadState* __tstate = wxPyBeginAllowThreads();
17086 (arg1)->SetMargins(arg2,arg3);
17087
17088 wxPyEndAllowThreads(__tstate);
17089 if (PyErr_Occurred()) SWIG_fail;
17090 }
17091 Py_INCREF(Py_None); resultobj = Py_None;
17092 return resultobj;
17093 fail:
17094 return NULL;
17095 }
17096
17097
17098 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17099 PyObject *resultobj;
17100 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17101 wxSize *arg2 = 0 ;
17102 wxSize temp2 ;
17103 PyObject * obj0 = 0 ;
17104 PyObject * obj1 = 0 ;
17105 char *kwnames[] = {
17106 (char *) "self",(char *) "size", NULL
17107 };
17108
17109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
17110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17112 {
17113 arg2 = &temp2;
17114 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17115 }
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 (arg1)->SetMargins((wxSize const &)*arg2);
17119
17120 wxPyEndAllowThreads(__tstate);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 Py_INCREF(Py_None); resultobj = Py_None;
17124 return resultobj;
17125 fail:
17126 return NULL;
17127 }
17128
17129
17130 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17131 PyObject *resultobj;
17132 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17133 int arg2 ;
17134 PyObject * obj0 = 0 ;
17135 PyObject * obj1 = 0 ;
17136 char *kwnames[] = {
17137 (char *) "self",(char *) "packing", NULL
17138 };
17139
17140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
17141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17143 arg2 = (int) SWIG_AsInt(obj1);
17144 if (PyErr_Occurred()) SWIG_fail;
17145 {
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 (arg1)->SetToolPacking(arg2);
17148
17149 wxPyEndAllowThreads(__tstate);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 Py_INCREF(Py_None); resultobj = Py_None;
17153 return resultobj;
17154 fail:
17155 return NULL;
17156 }
17157
17158
17159 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17160 PyObject *resultobj;
17161 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17162 int arg2 ;
17163 PyObject * obj0 = 0 ;
17164 PyObject * obj1 = 0 ;
17165 char *kwnames[] = {
17166 (char *) "self",(char *) "separation", NULL
17167 };
17168
17169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
17170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17172 arg2 = (int) SWIG_AsInt(obj1);
17173 if (PyErr_Occurred()) SWIG_fail;
17174 {
17175 PyThreadState* __tstate = wxPyBeginAllowThreads();
17176 (arg1)->SetToolSeparation(arg2);
17177
17178 wxPyEndAllowThreads(__tstate);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 Py_INCREF(Py_None); resultobj = Py_None;
17182 return resultobj;
17183 fail:
17184 return NULL;
17185 }
17186
17187
17188 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17189 PyObject *resultobj;
17190 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17191 wxSize result;
17192 PyObject * obj0 = 0 ;
17193 char *kwnames[] = {
17194 (char *) "self", NULL
17195 };
17196
17197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
17198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17200 {
17201 PyThreadState* __tstate = wxPyBeginAllowThreads();
17202 result = (arg1)->GetToolMargins();
17203
17204 wxPyEndAllowThreads(__tstate);
17205 if (PyErr_Occurred()) SWIG_fail;
17206 }
17207 {
17208 wxSize * resultptr;
17209 resultptr = new wxSize((wxSize &) result);
17210 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17211 }
17212 return resultobj;
17213 fail:
17214 return NULL;
17215 }
17216
17217
17218 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17219 PyObject *resultobj;
17220 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17221 wxSize result;
17222 PyObject * obj0 = 0 ;
17223 char *kwnames[] = {
17224 (char *) "self", NULL
17225 };
17226
17227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
17228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17230 {
17231 PyThreadState* __tstate = wxPyBeginAllowThreads();
17232 result = (arg1)->GetMargins();
17233
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 {
17238 wxSize * resultptr;
17239 resultptr = new wxSize((wxSize &) result);
17240 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17241 }
17242 return resultobj;
17243 fail:
17244 return NULL;
17245 }
17246
17247
17248 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17249 PyObject *resultobj;
17250 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17251 int result;
17252 PyObject * obj0 = 0 ;
17253 char *kwnames[] = {
17254 (char *) "self", NULL
17255 };
17256
17257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
17258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17260 {
17261 PyThreadState* __tstate = wxPyBeginAllowThreads();
17262 result = (int)(arg1)->GetToolPacking();
17263
17264 wxPyEndAllowThreads(__tstate);
17265 if (PyErr_Occurred()) SWIG_fail;
17266 }
17267 resultobj = SWIG_FromInt((int)result);
17268 return resultobj;
17269 fail:
17270 return NULL;
17271 }
17272
17273
17274 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17275 PyObject *resultobj;
17276 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17277 int result;
17278 PyObject * obj0 = 0 ;
17279 char *kwnames[] = {
17280 (char *) "self", NULL
17281 };
17282
17283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
17284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17286 {
17287 PyThreadState* __tstate = wxPyBeginAllowThreads();
17288 result = (int)(arg1)->GetToolSeparation();
17289
17290 wxPyEndAllowThreads(__tstate);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 resultobj = SWIG_FromInt((int)result);
17294 return resultobj;
17295 fail:
17296 return NULL;
17297 }
17298
17299
17300 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17301 PyObject *resultobj;
17302 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17303 int arg2 ;
17304 PyObject * obj0 = 0 ;
17305 PyObject * obj1 = 0 ;
17306 char *kwnames[] = {
17307 (char *) "self",(char *) "nRows", NULL
17308 };
17309
17310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
17311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17313 arg2 = (int) SWIG_AsInt(obj1);
17314 if (PyErr_Occurred()) SWIG_fail;
17315 {
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 (arg1)->SetRows(arg2);
17318
17319 wxPyEndAllowThreads(__tstate);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 Py_INCREF(Py_None); resultobj = Py_None;
17323 return resultobj;
17324 fail:
17325 return NULL;
17326 }
17327
17328
17329 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17330 PyObject *resultobj;
17331 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17332 int arg2 ;
17333 int arg3 ;
17334 PyObject * obj0 = 0 ;
17335 PyObject * obj1 = 0 ;
17336 PyObject * obj2 = 0 ;
17337 char *kwnames[] = {
17338 (char *) "self",(char *) "rows",(char *) "cols", NULL
17339 };
17340
17341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
17342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17344 arg2 = (int) SWIG_AsInt(obj1);
17345 if (PyErr_Occurred()) SWIG_fail;
17346 arg3 = (int) SWIG_AsInt(obj2);
17347 if (PyErr_Occurred()) SWIG_fail;
17348 {
17349 PyThreadState* __tstate = wxPyBeginAllowThreads();
17350 (arg1)->SetMaxRowsCols(arg2,arg3);
17351
17352 wxPyEndAllowThreads(__tstate);
17353 if (PyErr_Occurred()) SWIG_fail;
17354 }
17355 Py_INCREF(Py_None); resultobj = Py_None;
17356 return resultobj;
17357 fail:
17358 return NULL;
17359 }
17360
17361
17362 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17363 PyObject *resultobj;
17364 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17365 int result;
17366 PyObject * obj0 = 0 ;
17367 char *kwnames[] = {
17368 (char *) "self", NULL
17369 };
17370
17371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
17372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17374 {
17375 PyThreadState* __tstate = wxPyBeginAllowThreads();
17376 result = (int)(arg1)->GetMaxRows();
17377
17378 wxPyEndAllowThreads(__tstate);
17379 if (PyErr_Occurred()) SWIG_fail;
17380 }
17381 resultobj = SWIG_FromInt((int)result);
17382 return resultobj;
17383 fail:
17384 return NULL;
17385 }
17386
17387
17388 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17389 PyObject *resultobj;
17390 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17391 int result;
17392 PyObject * obj0 = 0 ;
17393 char *kwnames[] = {
17394 (char *) "self", NULL
17395 };
17396
17397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
17398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17400 {
17401 PyThreadState* __tstate = wxPyBeginAllowThreads();
17402 result = (int)(arg1)->GetMaxCols();
17403
17404 wxPyEndAllowThreads(__tstate);
17405 if (PyErr_Occurred()) SWIG_fail;
17406 }
17407 resultobj = SWIG_FromInt((int)result);
17408 return resultobj;
17409 fail:
17410 return NULL;
17411 }
17412
17413
17414 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17415 PyObject *resultobj;
17416 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17417 wxSize *arg2 = 0 ;
17418 wxSize temp2 ;
17419 PyObject * obj0 = 0 ;
17420 PyObject * obj1 = 0 ;
17421 char *kwnames[] = {
17422 (char *) "self",(char *) "size", NULL
17423 };
17424
17425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
17426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17428 {
17429 arg2 = &temp2;
17430 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17431 }
17432 {
17433 PyThreadState* __tstate = wxPyBeginAllowThreads();
17434 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
17435
17436 wxPyEndAllowThreads(__tstate);
17437 if (PyErr_Occurred()) SWIG_fail;
17438 }
17439 Py_INCREF(Py_None); resultobj = Py_None;
17440 return resultobj;
17441 fail:
17442 return NULL;
17443 }
17444
17445
17446 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17447 PyObject *resultobj;
17448 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17449 wxSize result;
17450 PyObject * obj0 = 0 ;
17451 char *kwnames[] = {
17452 (char *) "self", NULL
17453 };
17454
17455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
17456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17458 {
17459 PyThreadState* __tstate = wxPyBeginAllowThreads();
17460 result = (arg1)->GetToolBitmapSize();
17461
17462 wxPyEndAllowThreads(__tstate);
17463 if (PyErr_Occurred()) SWIG_fail;
17464 }
17465 {
17466 wxSize * resultptr;
17467 resultptr = new wxSize((wxSize &) result);
17468 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17469 }
17470 return resultobj;
17471 fail:
17472 return NULL;
17473 }
17474
17475
17476 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17477 PyObject *resultobj;
17478 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17479 wxSize result;
17480 PyObject * obj0 = 0 ;
17481 char *kwnames[] = {
17482 (char *) "self", NULL
17483 };
17484
17485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
17486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17488 {
17489 PyThreadState* __tstate = wxPyBeginAllowThreads();
17490 result = (arg1)->GetToolSize();
17491
17492 wxPyEndAllowThreads(__tstate);
17493 if (PyErr_Occurred()) SWIG_fail;
17494 }
17495 {
17496 wxSize * resultptr;
17497 resultptr = new wxSize((wxSize &) result);
17498 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17499 }
17500 return resultobj;
17501 fail:
17502 return NULL;
17503 }
17504
17505
17506 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17507 PyObject *resultobj;
17508 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17509 int arg2 ;
17510 int arg3 ;
17511 wxToolBarToolBase *result;
17512 PyObject * obj0 = 0 ;
17513 PyObject * obj1 = 0 ;
17514 PyObject * obj2 = 0 ;
17515 char *kwnames[] = {
17516 (char *) "self",(char *) "x",(char *) "y", NULL
17517 };
17518
17519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17522 arg2 = (int) SWIG_AsInt(obj1);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 arg3 = (int) SWIG_AsInt(obj2);
17525 if (PyErr_Occurred()) SWIG_fail;
17526 {
17527 PyThreadState* __tstate = wxPyBeginAllowThreads();
17528 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17529
17530 wxPyEndAllowThreads(__tstate);
17531 if (PyErr_Occurred()) SWIG_fail;
17532 }
17533 {
17534 resultobj = wxPyMake_wxObject(result);
17535 }
17536 return resultobj;
17537 fail:
17538 return NULL;
17539 }
17540
17541
17542 static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
17543 PyObject *resultobj;
17544 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17545 int arg2 ;
17546 wxToolBarToolBase *result;
17547 PyObject * obj0 = 0 ;
17548 PyObject * obj1 = 0 ;
17549 char *kwnames[] = {
17550 (char *) "self",(char *) "toolid", NULL
17551 };
17552
17553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
17554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17556 arg2 = (int) SWIG_AsInt(obj1);
17557 if (PyErr_Occurred()) SWIG_fail;
17558 {
17559 PyThreadState* __tstate = wxPyBeginAllowThreads();
17560 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
17561
17562 wxPyEndAllowThreads(__tstate);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 {
17566 resultobj = wxPyMake_wxObject(result);
17567 }
17568 return resultobj;
17569 fail:
17570 return NULL;
17571 }
17572
17573
17574 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
17575 PyObject *resultobj;
17576 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17577 bool result;
17578 PyObject * obj0 = 0 ;
17579 char *kwnames[] = {
17580 (char *) "self", NULL
17581 };
17582
17583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
17584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17586 {
17587 PyThreadState* __tstate = wxPyBeginAllowThreads();
17588 result = (bool)(arg1)->IsVertical();
17589
17590 wxPyEndAllowThreads(__tstate);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
17593 {
17594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17595 }
17596 return resultobj;
17597 fail:
17598 return NULL;
17599 }
17600
17601
17602 static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
17603 PyObject *obj;
17604 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17605 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
17606 Py_INCREF(obj);
17607 return Py_BuildValue((char *)"");
17608 }
17609 static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
17610 PyObject *resultobj;
17611 wxWindow *arg1 = (wxWindow *) 0 ;
17612 int arg2 ;
17613 wxPoint const &arg3_defvalue = wxDefaultPosition ;
17614 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
17615 wxSize const &arg4_defvalue = wxDefaultSize ;
17616 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
17617 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17618 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
17619 wxString *arg6 = (wxString *) &arg6_defvalue ;
17620 wxToolBar *result;
17621 wxPoint temp3 ;
17622 wxSize temp4 ;
17623 bool temp6 = False ;
17624 PyObject * obj0 = 0 ;
17625 PyObject * obj1 = 0 ;
17626 PyObject * obj2 = 0 ;
17627 PyObject * obj3 = 0 ;
17628 PyObject * obj4 = 0 ;
17629 PyObject * obj5 = 0 ;
17630 char *kwnames[] = {
17631 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17632 };
17633
17634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
17636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17637 arg2 = (int) SWIG_AsInt(obj1);
17638 if (PyErr_Occurred()) SWIG_fail;
17639 if (obj2) {
17640 {
17641 arg3 = &temp3;
17642 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17643 }
17644 }
17645 if (obj3) {
17646 {
17647 arg4 = &temp4;
17648 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
17649 }
17650 }
17651 if (obj4) {
17652 arg5 = (long) SWIG_AsLong(obj4);
17653 if (PyErr_Occurred()) SWIG_fail;
17654 }
17655 if (obj5) {
17656 {
17657 arg6 = wxString_in_helper(obj5);
17658 if (arg6 == NULL) SWIG_fail;
17659 temp6 = True;
17660 }
17661 }
17662 {
17663 PyThreadState* __tstate = wxPyBeginAllowThreads();
17664 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
17665
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 {
17670 resultobj = wxPyMake_wxObject(result);
17671 }
17672 {
17673 if (temp6)
17674 delete arg6;
17675 }
17676 return resultobj;
17677 fail:
17678 {
17679 if (temp6)
17680 delete arg6;
17681 }
17682 return NULL;
17683 }
17684
17685
17686 static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
17687 PyObject *resultobj;
17688 wxToolBar *result;
17689 char *kwnames[] = {
17690 NULL
17691 };
17692
17693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
17694 {
17695 PyThreadState* __tstate = wxPyBeginAllowThreads();
17696 result = (wxToolBar *)new wxToolBar();
17697
17698 wxPyEndAllowThreads(__tstate);
17699 if (PyErr_Occurred()) SWIG_fail;
17700 }
17701 {
17702 resultobj = wxPyMake_wxObject(result);
17703 }
17704 return resultobj;
17705 fail:
17706 return NULL;
17707 }
17708
17709
17710 static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
17711 PyObject *resultobj;
17712 wxToolBar *arg1 = (wxToolBar *) 0 ;
17713 wxWindow *arg2 = (wxWindow *) 0 ;
17714 int arg3 ;
17715 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17716 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17717 wxSize const &arg5_defvalue = wxDefaultSize ;
17718 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17719 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17720 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
17721 wxString *arg7 = (wxString *) &arg7_defvalue ;
17722 bool result;
17723 wxPoint temp4 ;
17724 wxSize temp5 ;
17725 bool temp7 = False ;
17726 PyObject * obj0 = 0 ;
17727 PyObject * obj1 = 0 ;
17728 PyObject * obj2 = 0 ;
17729 PyObject * obj3 = 0 ;
17730 PyObject * obj4 = 0 ;
17731 PyObject * obj5 = 0 ;
17732 PyObject * obj6 = 0 ;
17733 char *kwnames[] = {
17734 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17735 };
17736
17737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
17739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17740 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
17741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17742 arg3 = (int) SWIG_AsInt(obj2);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 if (obj3) {
17745 {
17746 arg4 = &temp4;
17747 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17748 }
17749 }
17750 if (obj4) {
17751 {
17752 arg5 = &temp5;
17753 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17754 }
17755 }
17756 if (obj5) {
17757 arg6 = (long) SWIG_AsLong(obj5);
17758 if (PyErr_Occurred()) SWIG_fail;
17759 }
17760 if (obj6) {
17761 {
17762 arg7 = wxString_in_helper(obj6);
17763 if (arg7 == NULL) SWIG_fail;
17764 temp7 = True;
17765 }
17766 }
17767 {
17768 PyThreadState* __tstate = wxPyBeginAllowThreads();
17769 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
17770
17771 wxPyEndAllowThreads(__tstate);
17772 if (PyErr_Occurred()) SWIG_fail;
17773 }
17774 {
17775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17776 }
17777 {
17778 if (temp7)
17779 delete arg7;
17780 }
17781 return resultobj;
17782 fail:
17783 {
17784 if (temp7)
17785 delete arg7;
17786 }
17787 return NULL;
17788 }
17789
17790
17791 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17792 PyObject *resultobj;
17793 wxToolBar *arg1 = (wxToolBar *) 0 ;
17794 int arg2 ;
17795 int arg3 ;
17796 wxToolBarToolBase *result;
17797 PyObject * obj0 = 0 ;
17798 PyObject * obj1 = 0 ;
17799 PyObject * obj2 = 0 ;
17800 char *kwnames[] = {
17801 (char *) "self",(char *) "x",(char *) "y", NULL
17802 };
17803
17804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
17806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17807 arg2 = (int) SWIG_AsInt(obj1);
17808 if (PyErr_Occurred()) SWIG_fail;
17809 arg3 = (int) SWIG_AsInt(obj2);
17810 if (PyErr_Occurred()) SWIG_fail;
17811 {
17812 PyThreadState* __tstate = wxPyBeginAllowThreads();
17813 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17814
17815 wxPyEndAllowThreads(__tstate);
17816 if (PyErr_Occurred()) SWIG_fail;
17817 }
17818 {
17819 resultobj = wxPyMake_wxObject(result);
17820 }
17821 return resultobj;
17822 fail:
17823 return NULL;
17824 }
17825
17826
17827 static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
17828 PyObject *obj;
17829 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17830 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
17831 Py_INCREF(obj);
17832 return Py_BuildValue((char *)"");
17833 }
17834 static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
17835 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
17836 return 1;
17837 }
17838
17839
17840 static PyObject *_wrap_ListCtrlNameStr_get() {
17841 PyObject *pyobj;
17842
17843 {
17844 #if wxUSE_UNICODE
17845 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17846 #else
17847 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17848 #endif
17849 }
17850 return pyobj;
17851 }
17852
17853
17854 static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
17855 PyObject *resultobj;
17856 wxColour const &arg1_defvalue = wxNullColour ;
17857 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
17858 wxColour const &arg2_defvalue = wxNullColour ;
17859 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
17860 wxFont const &arg3_defvalue = wxNullFont ;
17861 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
17862 wxListItemAttr *result;
17863 wxColour temp1 ;
17864 wxColour temp2 ;
17865 PyObject * obj0 = 0 ;
17866 PyObject * obj1 = 0 ;
17867 PyObject * obj2 = 0 ;
17868 char *kwnames[] = {
17869 (char *) "colText",(char *) "colBack",(char *) "font", NULL
17870 };
17871
17872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
17873 if (obj0) {
17874 {
17875 arg1 = &temp1;
17876 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
17877 }
17878 }
17879 if (obj1) {
17880 {
17881 arg2 = &temp2;
17882 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17883 }
17884 }
17885 if (obj2) {
17886 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
17887 SWIG_POINTER_EXCEPTION | 0)) == -1)
17888 SWIG_fail;
17889 if (arg3 == NULL) {
17890 PyErr_SetString(PyExc_TypeError,"null reference");
17891 SWIG_fail;
17892 }
17893 }
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
17897
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
17902 return resultobj;
17903 fail:
17904 return NULL;
17905 }
17906
17907
17908 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj;
17910 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17911 wxColour *arg2 = 0 ;
17912 wxColour temp2 ;
17913 PyObject * obj0 = 0 ;
17914 PyObject * obj1 = 0 ;
17915 char *kwnames[] = {
17916 (char *) "self",(char *) "colText", NULL
17917 };
17918
17919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
17920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17922 {
17923 arg2 = &temp2;
17924 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17925 }
17926 {
17927 PyThreadState* __tstate = wxPyBeginAllowThreads();
17928 (arg1)->SetTextColour((wxColour const &)*arg2);
17929
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 Py_INCREF(Py_None); resultobj = Py_None;
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj;
17942 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17943 wxColour *arg2 = 0 ;
17944 wxColour temp2 ;
17945 PyObject * obj0 = 0 ;
17946 PyObject * obj1 = 0 ;
17947 char *kwnames[] = {
17948 (char *) "self",(char *) "colBack", NULL
17949 };
17950
17951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
17952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17954 {
17955 arg2 = &temp2;
17956 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17957 }
17958 {
17959 PyThreadState* __tstate = wxPyBeginAllowThreads();
17960 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
17961
17962 wxPyEndAllowThreads(__tstate);
17963 if (PyErr_Occurred()) SWIG_fail;
17964 }
17965 Py_INCREF(Py_None); resultobj = Py_None;
17966 return resultobj;
17967 fail:
17968 return NULL;
17969 }
17970
17971
17972 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17973 PyObject *resultobj;
17974 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17975 wxFont *arg2 = 0 ;
17976 PyObject * obj0 = 0 ;
17977 PyObject * obj1 = 0 ;
17978 char *kwnames[] = {
17979 (char *) "self",(char *) "font", NULL
17980 };
17981
17982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
17983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17985 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17986 SWIG_POINTER_EXCEPTION | 0)) == -1)
17987 SWIG_fail;
17988 if (arg2 == NULL) {
17989 PyErr_SetString(PyExc_TypeError,"null reference");
17990 SWIG_fail;
17991 }
17992 {
17993 PyThreadState* __tstate = wxPyBeginAllowThreads();
17994 (arg1)->SetFont((wxFont const &)*arg2);
17995
17996 wxPyEndAllowThreads(__tstate);
17997 if (PyErr_Occurred()) SWIG_fail;
17998 }
17999 Py_INCREF(Py_None); resultobj = Py_None;
18000 return resultobj;
18001 fail:
18002 return NULL;
18003 }
18004
18005
18006 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18007 PyObject *resultobj;
18008 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18009 bool result;
18010 PyObject * obj0 = 0 ;
18011 char *kwnames[] = {
18012 (char *) "self", NULL
18013 };
18014
18015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
18016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18018 {
18019 PyThreadState* __tstate = wxPyBeginAllowThreads();
18020 result = (bool)(arg1)->HasTextColour();
18021
18022 wxPyEndAllowThreads(__tstate);
18023 if (PyErr_Occurred()) SWIG_fail;
18024 }
18025 {
18026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18027 }
18028 return resultobj;
18029 fail:
18030 return NULL;
18031 }
18032
18033
18034 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18035 PyObject *resultobj;
18036 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18037 bool result;
18038 PyObject * obj0 = 0 ;
18039 char *kwnames[] = {
18040 (char *) "self", NULL
18041 };
18042
18043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
18044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18046 {
18047 PyThreadState* __tstate = wxPyBeginAllowThreads();
18048 result = (bool)(arg1)->HasBackgroundColour();
18049
18050 wxPyEndAllowThreads(__tstate);
18051 if (PyErr_Occurred()) SWIG_fail;
18052 }
18053 {
18054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18055 }
18056 return resultobj;
18057 fail:
18058 return NULL;
18059 }
18060
18061
18062 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18063 PyObject *resultobj;
18064 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18065 bool result;
18066 PyObject * obj0 = 0 ;
18067 char *kwnames[] = {
18068 (char *) "self", NULL
18069 };
18070
18071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
18072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18074 {
18075 PyThreadState* __tstate = wxPyBeginAllowThreads();
18076 result = (bool)(arg1)->HasFont();
18077
18078 wxPyEndAllowThreads(__tstate);
18079 if (PyErr_Occurred()) SWIG_fail;
18080 }
18081 {
18082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18083 }
18084 return resultobj;
18085 fail:
18086 return NULL;
18087 }
18088
18089
18090 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18091 PyObject *resultobj;
18092 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18093 wxColour result;
18094 PyObject * obj0 = 0 ;
18095 char *kwnames[] = {
18096 (char *) "self", NULL
18097 };
18098
18099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
18100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18102 {
18103 PyThreadState* __tstate = wxPyBeginAllowThreads();
18104 result = (arg1)->GetTextColour();
18105
18106 wxPyEndAllowThreads(__tstate);
18107 if (PyErr_Occurred()) SWIG_fail;
18108 }
18109 {
18110 wxColour * resultptr;
18111 resultptr = new wxColour((wxColour &) result);
18112 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18113 }
18114 return resultobj;
18115 fail:
18116 return NULL;
18117 }
18118
18119
18120 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18121 PyObject *resultobj;
18122 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18123 wxColour result;
18124 PyObject * obj0 = 0 ;
18125 char *kwnames[] = {
18126 (char *) "self", NULL
18127 };
18128
18129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
18130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18132 {
18133 PyThreadState* __tstate = wxPyBeginAllowThreads();
18134 result = (arg1)->GetBackgroundColour();
18135
18136 wxPyEndAllowThreads(__tstate);
18137 if (PyErr_Occurred()) SWIG_fail;
18138 }
18139 {
18140 wxColour * resultptr;
18141 resultptr = new wxColour((wxColour &) result);
18142 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18143 }
18144 return resultobj;
18145 fail:
18146 return NULL;
18147 }
18148
18149
18150 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18151 PyObject *resultobj;
18152 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18153 wxFont result;
18154 PyObject * obj0 = 0 ;
18155 char *kwnames[] = {
18156 (char *) "self", NULL
18157 };
18158
18159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
18160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 result = (arg1)->GetFont();
18165
18166 wxPyEndAllowThreads(__tstate);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 }
18169 {
18170 wxFont * resultptr;
18171 resultptr = new wxFont((wxFont &) result);
18172 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18173 }
18174 return resultobj;
18175 fail:
18176 return NULL;
18177 }
18178
18179
18180 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
18181 PyObject *resultobj;
18182 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18183 PyObject * obj0 = 0 ;
18184 char *kwnames[] = {
18185 (char *) "self", NULL
18186 };
18187
18188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
18189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18191 {
18192 PyThreadState* __tstate = wxPyBeginAllowThreads();
18193 wxListItemAttr_Destroy(arg1);
18194
18195 wxPyEndAllowThreads(__tstate);
18196 if (PyErr_Occurred()) SWIG_fail;
18197 }
18198 Py_INCREF(Py_None); resultobj = Py_None;
18199 return resultobj;
18200 fail:
18201 return NULL;
18202 }
18203
18204
18205 static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
18206 PyObject *obj;
18207 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18208 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
18209 Py_INCREF(obj);
18210 return Py_BuildValue((char *)"");
18211 }
18212 static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18213 PyObject *resultobj;
18214 wxListItem *result;
18215 char *kwnames[] = {
18216 NULL
18217 };
18218
18219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
18220 {
18221 PyThreadState* __tstate = wxPyBeginAllowThreads();
18222 result = (wxListItem *)new wxListItem();
18223
18224 wxPyEndAllowThreads(__tstate);
18225 if (PyErr_Occurred()) SWIG_fail;
18226 }
18227 {
18228 resultobj = wxPyMake_wxObject(result);
18229 }
18230 return resultobj;
18231 fail:
18232 return NULL;
18233 }
18234
18235
18236 static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18237 PyObject *resultobj;
18238 wxListItem *arg1 = (wxListItem *) 0 ;
18239 PyObject * obj0 = 0 ;
18240 char *kwnames[] = {
18241 (char *) "self", NULL
18242 };
18243
18244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
18245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18247 {
18248 PyThreadState* __tstate = wxPyBeginAllowThreads();
18249 delete arg1;
18250
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 Py_INCREF(Py_None); resultobj = Py_None;
18255 return resultobj;
18256 fail:
18257 return NULL;
18258 }
18259
18260
18261 static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
18262 PyObject *resultobj;
18263 wxListItem *arg1 = (wxListItem *) 0 ;
18264 PyObject * obj0 = 0 ;
18265 char *kwnames[] = {
18266 (char *) "self", NULL
18267 };
18268
18269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
18270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18272 {
18273 PyThreadState* __tstate = wxPyBeginAllowThreads();
18274 (arg1)->Clear();
18275
18276 wxPyEndAllowThreads(__tstate);
18277 if (PyErr_Occurred()) SWIG_fail;
18278 }
18279 Py_INCREF(Py_None); resultobj = Py_None;
18280 return resultobj;
18281 fail:
18282 return NULL;
18283 }
18284
18285
18286 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18287 PyObject *resultobj;
18288 wxListItem *arg1 = (wxListItem *) 0 ;
18289 PyObject * obj0 = 0 ;
18290 char *kwnames[] = {
18291 (char *) "self", NULL
18292 };
18293
18294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
18295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18297 {
18298 PyThreadState* __tstate = wxPyBeginAllowThreads();
18299 (arg1)->ClearAttributes();
18300
18301 wxPyEndAllowThreads(__tstate);
18302 if (PyErr_Occurred()) SWIG_fail;
18303 }
18304 Py_INCREF(Py_None); resultobj = Py_None;
18305 return resultobj;
18306 fail:
18307 return NULL;
18308 }
18309
18310
18311 static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18312 PyObject *resultobj;
18313 wxListItem *arg1 = (wxListItem *) 0 ;
18314 long arg2 ;
18315 PyObject * obj0 = 0 ;
18316 PyObject * obj1 = 0 ;
18317 char *kwnames[] = {
18318 (char *) "self",(char *) "mask", NULL
18319 };
18320
18321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
18322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18324 arg2 = (long) SWIG_AsLong(obj1);
18325 if (PyErr_Occurred()) SWIG_fail;
18326 {
18327 PyThreadState* __tstate = wxPyBeginAllowThreads();
18328 (arg1)->SetMask(arg2);
18329
18330 wxPyEndAllowThreads(__tstate);
18331 if (PyErr_Occurred()) SWIG_fail;
18332 }
18333 Py_INCREF(Py_None); resultobj = Py_None;
18334 return resultobj;
18335 fail:
18336 return NULL;
18337 }
18338
18339
18340 static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18341 PyObject *resultobj;
18342 wxListItem *arg1 = (wxListItem *) 0 ;
18343 long arg2 ;
18344 PyObject * obj0 = 0 ;
18345 PyObject * obj1 = 0 ;
18346 char *kwnames[] = {
18347 (char *) "self",(char *) "id", NULL
18348 };
18349
18350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
18351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18353 arg2 = (long) SWIG_AsLong(obj1);
18354 if (PyErr_Occurred()) SWIG_fail;
18355 {
18356 PyThreadState* __tstate = wxPyBeginAllowThreads();
18357 (arg1)->SetId(arg2);
18358
18359 wxPyEndAllowThreads(__tstate);
18360 if (PyErr_Occurred()) SWIG_fail;
18361 }
18362 Py_INCREF(Py_None); resultobj = Py_None;
18363 return resultobj;
18364 fail:
18365 return NULL;
18366 }
18367
18368
18369 static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
18370 PyObject *resultobj;
18371 wxListItem *arg1 = (wxListItem *) 0 ;
18372 int arg2 ;
18373 PyObject * obj0 = 0 ;
18374 PyObject * obj1 = 0 ;
18375 char *kwnames[] = {
18376 (char *) "self",(char *) "col", NULL
18377 };
18378
18379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
18380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18382 arg2 = (int) SWIG_AsInt(obj1);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 {
18385 PyThreadState* __tstate = wxPyBeginAllowThreads();
18386 (arg1)->SetColumn(arg2);
18387
18388 wxPyEndAllowThreads(__tstate);
18389 if (PyErr_Occurred()) SWIG_fail;
18390 }
18391 Py_INCREF(Py_None); resultobj = Py_None;
18392 return resultobj;
18393 fail:
18394 return NULL;
18395 }
18396
18397
18398 static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
18399 PyObject *resultobj;
18400 wxListItem *arg1 = (wxListItem *) 0 ;
18401 long arg2 ;
18402 PyObject * obj0 = 0 ;
18403 PyObject * obj1 = 0 ;
18404 char *kwnames[] = {
18405 (char *) "self",(char *) "state", NULL
18406 };
18407
18408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
18409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18411 arg2 = (long) SWIG_AsLong(obj1);
18412 if (PyErr_Occurred()) SWIG_fail;
18413 {
18414 PyThreadState* __tstate = wxPyBeginAllowThreads();
18415 (arg1)->SetState(arg2);
18416
18417 wxPyEndAllowThreads(__tstate);
18418 if (PyErr_Occurred()) SWIG_fail;
18419 }
18420 Py_INCREF(Py_None); resultobj = Py_None;
18421 return resultobj;
18422 fail:
18423 return NULL;
18424 }
18425
18426
18427 static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18428 PyObject *resultobj;
18429 wxListItem *arg1 = (wxListItem *) 0 ;
18430 long arg2 ;
18431 PyObject * obj0 = 0 ;
18432 PyObject * obj1 = 0 ;
18433 char *kwnames[] = {
18434 (char *) "self",(char *) "stateMask", NULL
18435 };
18436
18437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
18438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18440 arg2 = (long) SWIG_AsLong(obj1);
18441 if (PyErr_Occurred()) SWIG_fail;
18442 {
18443 PyThreadState* __tstate = wxPyBeginAllowThreads();
18444 (arg1)->SetStateMask(arg2);
18445
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 Py_INCREF(Py_None); resultobj = Py_None;
18450 return resultobj;
18451 fail:
18452 return NULL;
18453 }
18454
18455
18456 static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18457 PyObject *resultobj;
18458 wxListItem *arg1 = (wxListItem *) 0 ;
18459 wxString *arg2 = 0 ;
18460 bool temp2 = False ;
18461 PyObject * obj0 = 0 ;
18462 PyObject * obj1 = 0 ;
18463 char *kwnames[] = {
18464 (char *) "self",(char *) "text", NULL
18465 };
18466
18467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
18468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18470 {
18471 arg2 = wxString_in_helper(obj1);
18472 if (arg2 == NULL) SWIG_fail;
18473 temp2 = True;
18474 }
18475 {
18476 PyThreadState* __tstate = wxPyBeginAllowThreads();
18477 (arg1)->SetText((wxString const &)*arg2);
18478
18479 wxPyEndAllowThreads(__tstate);
18480 if (PyErr_Occurred()) SWIG_fail;
18481 }
18482 Py_INCREF(Py_None); resultobj = Py_None;
18483 {
18484 if (temp2)
18485 delete arg2;
18486 }
18487 return resultobj;
18488 fail:
18489 {
18490 if (temp2)
18491 delete arg2;
18492 }
18493 return NULL;
18494 }
18495
18496
18497 static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
18498 PyObject *resultobj;
18499 wxListItem *arg1 = (wxListItem *) 0 ;
18500 int arg2 ;
18501 PyObject * obj0 = 0 ;
18502 PyObject * obj1 = 0 ;
18503 char *kwnames[] = {
18504 (char *) "self",(char *) "image", NULL
18505 };
18506
18507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
18508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18510 arg2 = (int) SWIG_AsInt(obj1);
18511 if (PyErr_Occurred()) SWIG_fail;
18512 {
18513 PyThreadState* __tstate = wxPyBeginAllowThreads();
18514 (arg1)->SetImage(arg2);
18515
18516 wxPyEndAllowThreads(__tstate);
18517 if (PyErr_Occurred()) SWIG_fail;
18518 }
18519 Py_INCREF(Py_None); resultobj = Py_None;
18520 return resultobj;
18521 fail:
18522 return NULL;
18523 }
18524
18525
18526 static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
18527 PyObject *resultobj;
18528 wxListItem *arg1 = (wxListItem *) 0 ;
18529 long arg2 ;
18530 PyObject * obj0 = 0 ;
18531 PyObject * obj1 = 0 ;
18532 char *kwnames[] = {
18533 (char *) "self",(char *) "data", NULL
18534 };
18535
18536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
18537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18539 arg2 = (long) SWIG_AsLong(obj1);
18540 if (PyErr_Occurred()) SWIG_fail;
18541 {
18542 PyThreadState* __tstate = wxPyBeginAllowThreads();
18543 (arg1)->SetData(arg2);
18544
18545 wxPyEndAllowThreads(__tstate);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 Py_INCREF(Py_None); resultobj = Py_None;
18549 return resultobj;
18550 fail:
18551 return NULL;
18552 }
18553
18554
18555 static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
18556 PyObject *resultobj;
18557 wxListItem *arg1 = (wxListItem *) 0 ;
18558 int arg2 ;
18559 PyObject * obj0 = 0 ;
18560 PyObject * obj1 = 0 ;
18561 char *kwnames[] = {
18562 (char *) "self",(char *) "width", NULL
18563 };
18564
18565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
18566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18568 arg2 = (int) SWIG_AsInt(obj1);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 {
18571 PyThreadState* __tstate = wxPyBeginAllowThreads();
18572 (arg1)->SetWidth(arg2);
18573
18574 wxPyEndAllowThreads(__tstate);
18575 if (PyErr_Occurred()) SWIG_fail;
18576 }
18577 Py_INCREF(Py_None); resultobj = Py_None;
18578 return resultobj;
18579 fail:
18580 return NULL;
18581 }
18582
18583
18584 static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
18585 PyObject *resultobj;
18586 wxListItem *arg1 = (wxListItem *) 0 ;
18587 int arg2 ;
18588 PyObject * obj0 = 0 ;
18589 PyObject * obj1 = 0 ;
18590 char *kwnames[] = {
18591 (char *) "self",(char *) "align", NULL
18592 };
18593
18594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
18595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18597 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
18598 if (PyErr_Occurred()) SWIG_fail;
18599 {
18600 PyThreadState* __tstate = wxPyBeginAllowThreads();
18601 (arg1)->SetAlign((wxListColumnFormat )arg2);
18602
18603 wxPyEndAllowThreads(__tstate);
18604 if (PyErr_Occurred()) SWIG_fail;
18605 }
18606 Py_INCREF(Py_None); resultobj = Py_None;
18607 return resultobj;
18608 fail:
18609 return NULL;
18610 }
18611
18612
18613 static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18614 PyObject *resultobj;
18615 wxListItem *arg1 = (wxListItem *) 0 ;
18616 wxColour *arg2 = 0 ;
18617 wxColour temp2 ;
18618 PyObject * obj0 = 0 ;
18619 PyObject * obj1 = 0 ;
18620 char *kwnames[] = {
18621 (char *) "self",(char *) "colText", NULL
18622 };
18623
18624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18627 {
18628 arg2 = &temp2;
18629 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18630 }
18631 {
18632 PyThreadState* __tstate = wxPyBeginAllowThreads();
18633 (arg1)->SetTextColour((wxColour const &)*arg2);
18634
18635 wxPyEndAllowThreads(__tstate);
18636 if (PyErr_Occurred()) SWIG_fail;
18637 }
18638 Py_INCREF(Py_None); resultobj = Py_None;
18639 return resultobj;
18640 fail:
18641 return NULL;
18642 }
18643
18644
18645 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18646 PyObject *resultobj;
18647 wxListItem *arg1 = (wxListItem *) 0 ;
18648 wxColour *arg2 = 0 ;
18649 wxColour temp2 ;
18650 PyObject * obj0 = 0 ;
18651 PyObject * obj1 = 0 ;
18652 char *kwnames[] = {
18653 (char *) "self",(char *) "colBack", NULL
18654 };
18655
18656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18659 {
18660 arg2 = &temp2;
18661 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18662 }
18663 {
18664 PyThreadState* __tstate = wxPyBeginAllowThreads();
18665 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18666
18667 wxPyEndAllowThreads(__tstate);
18668 if (PyErr_Occurred()) SWIG_fail;
18669 }
18670 Py_INCREF(Py_None); resultobj = Py_None;
18671 return resultobj;
18672 fail:
18673 return NULL;
18674 }
18675
18676
18677 static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18678 PyObject *resultobj;
18679 wxListItem *arg1 = (wxListItem *) 0 ;
18680 wxFont *arg2 = 0 ;
18681 PyObject * obj0 = 0 ;
18682 PyObject * obj1 = 0 ;
18683 char *kwnames[] = {
18684 (char *) "self",(char *) "font", NULL
18685 };
18686
18687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
18688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18690 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18691 SWIG_POINTER_EXCEPTION | 0)) == -1)
18692 SWIG_fail;
18693 if (arg2 == NULL) {
18694 PyErr_SetString(PyExc_TypeError,"null reference");
18695 SWIG_fail;
18696 }
18697 {
18698 PyThreadState* __tstate = wxPyBeginAllowThreads();
18699 (arg1)->SetFont((wxFont const &)*arg2);
18700
18701 wxPyEndAllowThreads(__tstate);
18702 if (PyErr_Occurred()) SWIG_fail;
18703 }
18704 Py_INCREF(Py_None); resultobj = Py_None;
18705 return resultobj;
18706 fail:
18707 return NULL;
18708 }
18709
18710
18711 static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18712 PyObject *resultobj;
18713 wxListItem *arg1 = (wxListItem *) 0 ;
18714 long result;
18715 PyObject * obj0 = 0 ;
18716 char *kwnames[] = {
18717 (char *) "self", NULL
18718 };
18719
18720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
18721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18723 {
18724 PyThreadState* __tstate = wxPyBeginAllowThreads();
18725 result = (long)(arg1)->GetMask();
18726
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 resultobj = SWIG_FromLong((long)result);
18731 return resultobj;
18732 fail:
18733 return NULL;
18734 }
18735
18736
18737 static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18738 PyObject *resultobj;
18739 wxListItem *arg1 = (wxListItem *) 0 ;
18740 long result;
18741 PyObject * obj0 = 0 ;
18742 char *kwnames[] = {
18743 (char *) "self", NULL
18744 };
18745
18746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
18747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18749 {
18750 PyThreadState* __tstate = wxPyBeginAllowThreads();
18751 result = (long)(arg1)->GetId();
18752
18753 wxPyEndAllowThreads(__tstate);
18754 if (PyErr_Occurred()) SWIG_fail;
18755 }
18756 resultobj = SWIG_FromLong((long)result);
18757 return resultobj;
18758 fail:
18759 return NULL;
18760 }
18761
18762
18763 static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
18764 PyObject *resultobj;
18765 wxListItem *arg1 = (wxListItem *) 0 ;
18766 int result;
18767 PyObject * obj0 = 0 ;
18768 char *kwnames[] = {
18769 (char *) "self", NULL
18770 };
18771
18772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
18773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18775 {
18776 PyThreadState* __tstate = wxPyBeginAllowThreads();
18777 result = (int)(arg1)->GetColumn();
18778
18779 wxPyEndAllowThreads(__tstate);
18780 if (PyErr_Occurred()) SWIG_fail;
18781 }
18782 resultobj = SWIG_FromInt((int)result);
18783 return resultobj;
18784 fail:
18785 return NULL;
18786 }
18787
18788
18789 static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
18790 PyObject *resultobj;
18791 wxListItem *arg1 = (wxListItem *) 0 ;
18792 long result;
18793 PyObject * obj0 = 0 ;
18794 char *kwnames[] = {
18795 (char *) "self", NULL
18796 };
18797
18798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
18799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18801 {
18802 PyThreadState* __tstate = wxPyBeginAllowThreads();
18803 result = (long)(arg1)->GetState();
18804
18805 wxPyEndAllowThreads(__tstate);
18806 if (PyErr_Occurred()) SWIG_fail;
18807 }
18808 resultobj = SWIG_FromLong((long)result);
18809 return resultobj;
18810 fail:
18811 return NULL;
18812 }
18813
18814
18815 static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18816 PyObject *resultobj;
18817 wxListItem *arg1 = (wxListItem *) 0 ;
18818 wxString *result;
18819 PyObject * obj0 = 0 ;
18820 char *kwnames[] = {
18821 (char *) "self", NULL
18822 };
18823
18824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
18825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18827 {
18828 PyThreadState* __tstate = wxPyBeginAllowThreads();
18829 {
18830 wxString const &_result_ref = (arg1)->GetText();
18831 result = (wxString *) &_result_ref;
18832 }
18833
18834 wxPyEndAllowThreads(__tstate);
18835 if (PyErr_Occurred()) SWIG_fail;
18836 }
18837 {
18838 #if wxUSE_UNICODE
18839 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18840 #else
18841 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18842 #endif
18843 }
18844 return resultobj;
18845 fail:
18846 return NULL;
18847 }
18848
18849
18850 static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
18851 PyObject *resultobj;
18852 wxListItem *arg1 = (wxListItem *) 0 ;
18853 int result;
18854 PyObject * obj0 = 0 ;
18855 char *kwnames[] = {
18856 (char *) "self", NULL
18857 };
18858
18859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
18860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18862 {
18863 PyThreadState* __tstate = wxPyBeginAllowThreads();
18864 result = (int)(arg1)->GetImage();
18865
18866 wxPyEndAllowThreads(__tstate);
18867 if (PyErr_Occurred()) SWIG_fail;
18868 }
18869 resultobj = SWIG_FromInt((int)result);
18870 return resultobj;
18871 fail:
18872 return NULL;
18873 }
18874
18875
18876 static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
18877 PyObject *resultobj;
18878 wxListItem *arg1 = (wxListItem *) 0 ;
18879 long result;
18880 PyObject * obj0 = 0 ;
18881 char *kwnames[] = {
18882 (char *) "self", NULL
18883 };
18884
18885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
18886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18888 {
18889 PyThreadState* __tstate = wxPyBeginAllowThreads();
18890 result = (long)(arg1)->GetData();
18891
18892 wxPyEndAllowThreads(__tstate);
18893 if (PyErr_Occurred()) SWIG_fail;
18894 }
18895 resultobj = SWIG_FromLong((long)result);
18896 return resultobj;
18897 fail:
18898 return NULL;
18899 }
18900
18901
18902 static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
18903 PyObject *resultobj;
18904 wxListItem *arg1 = (wxListItem *) 0 ;
18905 int result;
18906 PyObject * obj0 = 0 ;
18907 char *kwnames[] = {
18908 (char *) "self", NULL
18909 };
18910
18911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
18912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18914 {
18915 PyThreadState* __tstate = wxPyBeginAllowThreads();
18916 result = (int)(arg1)->GetWidth();
18917
18918 wxPyEndAllowThreads(__tstate);
18919 if (PyErr_Occurred()) SWIG_fail;
18920 }
18921 resultobj = SWIG_FromInt((int)result);
18922 return resultobj;
18923 fail:
18924 return NULL;
18925 }
18926
18927
18928 static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
18929 PyObject *resultobj;
18930 wxListItem *arg1 = (wxListItem *) 0 ;
18931 int result;
18932 PyObject * obj0 = 0 ;
18933 char *kwnames[] = {
18934 (char *) "self", NULL
18935 };
18936
18937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
18938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18940 {
18941 PyThreadState* __tstate = wxPyBeginAllowThreads();
18942 result = (int)(arg1)->GetAlign();
18943
18944 wxPyEndAllowThreads(__tstate);
18945 if (PyErr_Occurred()) SWIG_fail;
18946 }
18947 resultobj = SWIG_FromInt((int)result);
18948 return resultobj;
18949 fail:
18950 return NULL;
18951 }
18952
18953
18954 static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18955 PyObject *resultobj;
18956 wxListItem *arg1 = (wxListItem *) 0 ;
18957 wxListItemAttr *result;
18958 PyObject * obj0 = 0 ;
18959 char *kwnames[] = {
18960 (char *) "self", NULL
18961 };
18962
18963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
18964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18966 {
18967 PyThreadState* __tstate = wxPyBeginAllowThreads();
18968 result = (wxListItemAttr *)(arg1)->GetAttributes();
18969
18970 wxPyEndAllowThreads(__tstate);
18971 if (PyErr_Occurred()) SWIG_fail;
18972 }
18973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
18974 return resultobj;
18975 fail:
18976 return NULL;
18977 }
18978
18979
18980 static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18981 PyObject *resultobj;
18982 wxListItem *arg1 = (wxListItem *) 0 ;
18983 bool result;
18984 PyObject * obj0 = 0 ;
18985 char *kwnames[] = {
18986 (char *) "self", NULL
18987 };
18988
18989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
18990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18992 {
18993 PyThreadState* __tstate = wxPyBeginAllowThreads();
18994 result = (bool)(arg1)->HasAttributes();
18995
18996 wxPyEndAllowThreads(__tstate);
18997 if (PyErr_Occurred()) SWIG_fail;
18998 }
18999 {
19000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19001 }
19002 return resultobj;
19003 fail:
19004 return NULL;
19005 }
19006
19007
19008 static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19009 PyObject *resultobj;
19010 wxListItem *arg1 = (wxListItem *) 0 ;
19011 wxColour result;
19012 PyObject * obj0 = 0 ;
19013 char *kwnames[] = {
19014 (char *) "self", NULL
19015 };
19016
19017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
19018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19020 {
19021 PyThreadState* __tstate = wxPyBeginAllowThreads();
19022 result = ((wxListItem const *)arg1)->GetTextColour();
19023
19024 wxPyEndAllowThreads(__tstate);
19025 if (PyErr_Occurred()) SWIG_fail;
19026 }
19027 {
19028 wxColour * resultptr;
19029 resultptr = new wxColour((wxColour &) result);
19030 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19031 }
19032 return resultobj;
19033 fail:
19034 return NULL;
19035 }
19036
19037
19038 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19039 PyObject *resultobj;
19040 wxListItem *arg1 = (wxListItem *) 0 ;
19041 wxColour result;
19042 PyObject * obj0 = 0 ;
19043 char *kwnames[] = {
19044 (char *) "self", NULL
19045 };
19046
19047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
19048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19050 {
19051 PyThreadState* __tstate = wxPyBeginAllowThreads();
19052 result = ((wxListItem const *)arg1)->GetBackgroundColour();
19053
19054 wxPyEndAllowThreads(__tstate);
19055 if (PyErr_Occurred()) SWIG_fail;
19056 }
19057 {
19058 wxColour * resultptr;
19059 resultptr = new wxColour((wxColour &) result);
19060 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19061 }
19062 return resultobj;
19063 fail:
19064 return NULL;
19065 }
19066
19067
19068 static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19069 PyObject *resultobj;
19070 wxListItem *arg1 = (wxListItem *) 0 ;
19071 wxFont result;
19072 PyObject * obj0 = 0 ;
19073 char *kwnames[] = {
19074 (char *) "self", NULL
19075 };
19076
19077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
19078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19080 {
19081 PyThreadState* __tstate = wxPyBeginAllowThreads();
19082 result = ((wxListItem const *)arg1)->GetFont();
19083
19084 wxPyEndAllowThreads(__tstate);
19085 if (PyErr_Occurred()) SWIG_fail;
19086 }
19087 {
19088 wxFont * resultptr;
19089 resultptr = new wxFont((wxFont &) result);
19090 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19091 }
19092 return resultobj;
19093 fail:
19094 return NULL;
19095 }
19096
19097
19098 static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19099 PyObject *resultobj;
19100 wxListItem *arg1 = (wxListItem *) 0 ;
19101 long arg2 ;
19102 PyObject * obj0 = 0 ;
19103 PyObject * obj1 = 0 ;
19104 char *kwnames[] = {
19105 (char *) "self",(char *) "m_mask", NULL
19106 };
19107
19108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
19109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19111 arg2 = (long) SWIG_AsLong(obj1);
19112 if (PyErr_Occurred()) SWIG_fail;
19113 if (arg1) (arg1)->m_mask = arg2;
19114
19115 Py_INCREF(Py_None); resultobj = Py_None;
19116 return resultobj;
19117 fail:
19118 return NULL;
19119 }
19120
19121
19122 static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19123 PyObject *resultobj;
19124 wxListItem *arg1 = (wxListItem *) 0 ;
19125 long result;
19126 PyObject * obj0 = 0 ;
19127 char *kwnames[] = {
19128 (char *) "self", NULL
19129 };
19130
19131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
19132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19134 result = (long) ((arg1)->m_mask);
19135
19136 resultobj = SWIG_FromLong((long)result);
19137 return resultobj;
19138 fail:
19139 return NULL;
19140 }
19141
19142
19143 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19144 PyObject *resultobj;
19145 wxListItem *arg1 = (wxListItem *) 0 ;
19146 long arg2 ;
19147 PyObject * obj0 = 0 ;
19148 PyObject * obj1 = 0 ;
19149 char *kwnames[] = {
19150 (char *) "self",(char *) "m_itemId", NULL
19151 };
19152
19153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
19154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19156 arg2 = (long) SWIG_AsLong(obj1);
19157 if (PyErr_Occurred()) SWIG_fail;
19158 if (arg1) (arg1)->m_itemId = arg2;
19159
19160 Py_INCREF(Py_None); resultobj = Py_None;
19161 return resultobj;
19162 fail:
19163 return NULL;
19164 }
19165
19166
19167 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19168 PyObject *resultobj;
19169 wxListItem *arg1 = (wxListItem *) 0 ;
19170 long result;
19171 PyObject * obj0 = 0 ;
19172 char *kwnames[] = {
19173 (char *) "self", NULL
19174 };
19175
19176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
19177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19179 result = (long) ((arg1)->m_itemId);
19180
19181 resultobj = SWIG_FromLong((long)result);
19182 return resultobj;
19183 fail:
19184 return NULL;
19185 }
19186
19187
19188 static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19189 PyObject *resultobj;
19190 wxListItem *arg1 = (wxListItem *) 0 ;
19191 int arg2 ;
19192 PyObject * obj0 = 0 ;
19193 PyObject * obj1 = 0 ;
19194 char *kwnames[] = {
19195 (char *) "self",(char *) "m_col", NULL
19196 };
19197
19198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19201 arg2 = (int) SWIG_AsInt(obj1);
19202 if (PyErr_Occurred()) SWIG_fail;
19203 if (arg1) (arg1)->m_col = arg2;
19204
19205 Py_INCREF(Py_None); resultobj = Py_None;
19206 return resultobj;
19207 fail:
19208 return NULL;
19209 }
19210
19211
19212 static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19213 PyObject *resultobj;
19214 wxListItem *arg1 = (wxListItem *) 0 ;
19215 int result;
19216 PyObject * obj0 = 0 ;
19217 char *kwnames[] = {
19218 (char *) "self", NULL
19219 };
19220
19221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
19222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19224 result = (int) ((arg1)->m_col);
19225
19226 resultobj = SWIG_FromInt((int)result);
19227 return resultobj;
19228 fail:
19229 return NULL;
19230 }
19231
19232
19233 static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19234 PyObject *resultobj;
19235 wxListItem *arg1 = (wxListItem *) 0 ;
19236 long arg2 ;
19237 PyObject * obj0 = 0 ;
19238 PyObject * obj1 = 0 ;
19239 char *kwnames[] = {
19240 (char *) "self",(char *) "m_state", NULL
19241 };
19242
19243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
19244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19246 arg2 = (long) SWIG_AsLong(obj1);
19247 if (PyErr_Occurred()) SWIG_fail;
19248 if (arg1) (arg1)->m_state = arg2;
19249
19250 Py_INCREF(Py_None); resultobj = Py_None;
19251 return resultobj;
19252 fail:
19253 return NULL;
19254 }
19255
19256
19257 static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19258 PyObject *resultobj;
19259 wxListItem *arg1 = (wxListItem *) 0 ;
19260 long result;
19261 PyObject * obj0 = 0 ;
19262 char *kwnames[] = {
19263 (char *) "self", NULL
19264 };
19265
19266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
19267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19269 result = (long) ((arg1)->m_state);
19270
19271 resultobj = SWIG_FromLong((long)result);
19272 return resultobj;
19273 fail:
19274 return NULL;
19275 }
19276
19277
19278 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19279 PyObject *resultobj;
19280 wxListItem *arg1 = (wxListItem *) 0 ;
19281 long arg2 ;
19282 PyObject * obj0 = 0 ;
19283 PyObject * obj1 = 0 ;
19284 char *kwnames[] = {
19285 (char *) "self",(char *) "m_stateMask", NULL
19286 };
19287
19288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
19289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19291 arg2 = (long) SWIG_AsLong(obj1);
19292 if (PyErr_Occurred()) SWIG_fail;
19293 if (arg1) (arg1)->m_stateMask = arg2;
19294
19295 Py_INCREF(Py_None); resultobj = Py_None;
19296 return resultobj;
19297 fail:
19298 return NULL;
19299 }
19300
19301
19302 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19303 PyObject *resultobj;
19304 wxListItem *arg1 = (wxListItem *) 0 ;
19305 long result;
19306 PyObject * obj0 = 0 ;
19307 char *kwnames[] = {
19308 (char *) "self", NULL
19309 };
19310
19311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
19312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19314 result = (long) ((arg1)->m_stateMask);
19315
19316 resultobj = SWIG_FromLong((long)result);
19317 return resultobj;
19318 fail:
19319 return NULL;
19320 }
19321
19322
19323 static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19324 PyObject *resultobj;
19325 wxListItem *arg1 = (wxListItem *) 0 ;
19326 wxString *arg2 = (wxString *) 0 ;
19327 bool temp2 = False ;
19328 PyObject * obj0 = 0 ;
19329 PyObject * obj1 = 0 ;
19330 char *kwnames[] = {
19331 (char *) "self",(char *) "m_text", NULL
19332 };
19333
19334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
19335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19337 {
19338 arg2 = wxString_in_helper(obj1);
19339 if (arg2 == NULL) SWIG_fail;
19340 temp2 = True;
19341 }
19342 if (arg1) (arg1)->m_text = *arg2;
19343
19344 Py_INCREF(Py_None); resultobj = Py_None;
19345 {
19346 if (temp2)
19347 delete arg2;
19348 }
19349 return resultobj;
19350 fail:
19351 {
19352 if (temp2)
19353 delete arg2;
19354 }
19355 return NULL;
19356 }
19357
19358
19359 static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19360 PyObject *resultobj;
19361 wxListItem *arg1 = (wxListItem *) 0 ;
19362 wxString *result;
19363 PyObject * obj0 = 0 ;
19364 char *kwnames[] = {
19365 (char *) "self", NULL
19366 };
19367
19368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
19369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19371 result = (wxString *)& ((arg1)->m_text);
19372
19373 {
19374 #if wxUSE_UNICODE
19375 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19376 #else
19377 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19378 #endif
19379 }
19380 return resultobj;
19381 fail:
19382 return NULL;
19383 }
19384
19385
19386 static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19387 PyObject *resultobj;
19388 wxListItem *arg1 = (wxListItem *) 0 ;
19389 int arg2 ;
19390 PyObject * obj0 = 0 ;
19391 PyObject * obj1 = 0 ;
19392 char *kwnames[] = {
19393 (char *) "self",(char *) "m_image", NULL
19394 };
19395
19396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
19397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19399 arg2 = (int) SWIG_AsInt(obj1);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 if (arg1) (arg1)->m_image = arg2;
19402
19403 Py_INCREF(Py_None); resultobj = Py_None;
19404 return resultobj;
19405 fail:
19406 return NULL;
19407 }
19408
19409
19410 static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19411 PyObject *resultobj;
19412 wxListItem *arg1 = (wxListItem *) 0 ;
19413 int result;
19414 PyObject * obj0 = 0 ;
19415 char *kwnames[] = {
19416 (char *) "self", NULL
19417 };
19418
19419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
19420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19422 result = (int) ((arg1)->m_image);
19423
19424 resultobj = SWIG_FromInt((int)result);
19425 return resultobj;
19426 fail:
19427 return NULL;
19428 }
19429
19430
19431 static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19432 PyObject *resultobj;
19433 wxListItem *arg1 = (wxListItem *) 0 ;
19434 long arg2 ;
19435 PyObject * obj0 = 0 ;
19436 PyObject * obj1 = 0 ;
19437 char *kwnames[] = {
19438 (char *) "self",(char *) "m_data", NULL
19439 };
19440
19441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
19442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19444 arg2 = (long) SWIG_AsLong(obj1);
19445 if (PyErr_Occurred()) SWIG_fail;
19446 if (arg1) (arg1)->m_data = arg2;
19447
19448 Py_INCREF(Py_None); resultobj = Py_None;
19449 return resultobj;
19450 fail:
19451 return NULL;
19452 }
19453
19454
19455 static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19456 PyObject *resultobj;
19457 wxListItem *arg1 = (wxListItem *) 0 ;
19458 long result;
19459 PyObject * obj0 = 0 ;
19460 char *kwnames[] = {
19461 (char *) "self", NULL
19462 };
19463
19464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
19465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19467 result = (long) ((arg1)->m_data);
19468
19469 resultobj = SWIG_FromLong((long)result);
19470 return resultobj;
19471 fail:
19472 return NULL;
19473 }
19474
19475
19476 static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19477 PyObject *resultobj;
19478 wxListItem *arg1 = (wxListItem *) 0 ;
19479 int arg2 ;
19480 PyObject * obj0 = 0 ;
19481 PyObject * obj1 = 0 ;
19482 char *kwnames[] = {
19483 (char *) "self",(char *) "m_format", NULL
19484 };
19485
19486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
19487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19489 arg2 = (int) SWIG_AsInt(obj1);
19490 if (PyErr_Occurred()) SWIG_fail;
19491 if (arg1) (arg1)->m_format = arg2;
19492
19493 Py_INCREF(Py_None); resultobj = Py_None;
19494 return resultobj;
19495 fail:
19496 return NULL;
19497 }
19498
19499
19500 static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19501 PyObject *resultobj;
19502 wxListItem *arg1 = (wxListItem *) 0 ;
19503 int result;
19504 PyObject * obj0 = 0 ;
19505 char *kwnames[] = {
19506 (char *) "self", NULL
19507 };
19508
19509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
19510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19512 result = (int) ((arg1)->m_format);
19513
19514 resultobj = SWIG_FromInt((int)result);
19515 return resultobj;
19516 fail:
19517 return NULL;
19518 }
19519
19520
19521 static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19522 PyObject *resultobj;
19523 wxListItem *arg1 = (wxListItem *) 0 ;
19524 int arg2 ;
19525 PyObject * obj0 = 0 ;
19526 PyObject * obj1 = 0 ;
19527 char *kwnames[] = {
19528 (char *) "self",(char *) "m_width", NULL
19529 };
19530
19531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
19532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19534 arg2 = (int) SWIG_AsInt(obj1);
19535 if (PyErr_Occurred()) SWIG_fail;
19536 if (arg1) (arg1)->m_width = arg2;
19537
19538 Py_INCREF(Py_None); resultobj = Py_None;
19539 return resultobj;
19540 fail:
19541 return NULL;
19542 }
19543
19544
19545 static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19546 PyObject *resultobj;
19547 wxListItem *arg1 = (wxListItem *) 0 ;
19548 int result;
19549 PyObject * obj0 = 0 ;
19550 char *kwnames[] = {
19551 (char *) "self", NULL
19552 };
19553
19554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
19555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19557 result = (int) ((arg1)->m_width);
19558
19559 resultobj = SWIG_FromInt((int)result);
19560 return resultobj;
19561 fail:
19562 return NULL;
19563 }
19564
19565
19566 static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
19567 PyObject *obj;
19568 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19569 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
19570 Py_INCREF(obj);
19571 return Py_BuildValue((char *)"");
19572 }
19573 static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19574 PyObject *resultobj;
19575 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19576 int arg2 = (int) 0 ;
19577 wxListEvent *result;
19578 PyObject * obj0 = 0 ;
19579 PyObject * obj1 = 0 ;
19580 char *kwnames[] = {
19581 (char *) "commandType",(char *) "id", NULL
19582 };
19583
19584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
19585 if (obj0) {
19586 arg1 = (wxEventType) SWIG_AsInt(obj0);
19587 if (PyErr_Occurred()) SWIG_fail;
19588 }
19589 if (obj1) {
19590 arg2 = (int) SWIG_AsInt(obj1);
19591 if (PyErr_Occurred()) SWIG_fail;
19592 }
19593 {
19594 PyThreadState* __tstate = wxPyBeginAllowThreads();
19595 result = (wxListEvent *)new wxListEvent(arg1,arg2);
19596
19597 wxPyEndAllowThreads(__tstate);
19598 if (PyErr_Occurred()) SWIG_fail;
19599 }
19600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
19601 return resultobj;
19602 fail:
19603 return NULL;
19604 }
19605
19606
19607 static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19608 PyObject *resultobj;
19609 wxListEvent *arg1 = (wxListEvent *) 0 ;
19610 int arg2 ;
19611 PyObject * obj0 = 0 ;
19612 PyObject * obj1 = 0 ;
19613 char *kwnames[] = {
19614 (char *) "self",(char *) "m_code", NULL
19615 };
19616
19617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
19618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19620 arg2 = (int) SWIG_AsInt(obj1);
19621 if (PyErr_Occurred()) SWIG_fail;
19622 if (arg1) (arg1)->m_code = arg2;
19623
19624 Py_INCREF(Py_None); resultobj = Py_None;
19625 return resultobj;
19626 fail:
19627 return NULL;
19628 }
19629
19630
19631 static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19632 PyObject *resultobj;
19633 wxListEvent *arg1 = (wxListEvent *) 0 ;
19634 int result;
19635 PyObject * obj0 = 0 ;
19636 char *kwnames[] = {
19637 (char *) "self", NULL
19638 };
19639
19640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
19641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19643 result = (int) ((arg1)->m_code);
19644
19645 resultobj = SWIG_FromInt((int)result);
19646 return resultobj;
19647 fail:
19648 return NULL;
19649 }
19650
19651
19652 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19653 PyObject *resultobj;
19654 wxListEvent *arg1 = (wxListEvent *) 0 ;
19655 long arg2 ;
19656 PyObject * obj0 = 0 ;
19657 PyObject * obj1 = 0 ;
19658 char *kwnames[] = {
19659 (char *) "self",(char *) "m_oldItemIndex", NULL
19660 };
19661
19662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19665 arg2 = (long) SWIG_AsLong(obj1);
19666 if (PyErr_Occurred()) SWIG_fail;
19667 if (arg1) (arg1)->m_oldItemIndex = arg2;
19668
19669 Py_INCREF(Py_None); resultobj = Py_None;
19670 return resultobj;
19671 fail:
19672 return NULL;
19673 }
19674
19675
19676 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19677 PyObject *resultobj;
19678 wxListEvent *arg1 = (wxListEvent *) 0 ;
19679 long result;
19680 PyObject * obj0 = 0 ;
19681 char *kwnames[] = {
19682 (char *) "self", NULL
19683 };
19684
19685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
19686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19688 result = (long) ((arg1)->m_oldItemIndex);
19689
19690 resultobj = SWIG_FromLong((long)result);
19691 return resultobj;
19692 fail:
19693 return NULL;
19694 }
19695
19696
19697 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19698 PyObject *resultobj;
19699 wxListEvent *arg1 = (wxListEvent *) 0 ;
19700 long arg2 ;
19701 PyObject * obj0 = 0 ;
19702 PyObject * obj1 = 0 ;
19703 char *kwnames[] = {
19704 (char *) "self",(char *) "m_itemIndex", NULL
19705 };
19706
19707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19710 arg2 = (long) SWIG_AsLong(obj1);
19711 if (PyErr_Occurred()) SWIG_fail;
19712 if (arg1) (arg1)->m_itemIndex = arg2;
19713
19714 Py_INCREF(Py_None); resultobj = Py_None;
19715 return resultobj;
19716 fail:
19717 return NULL;
19718 }
19719
19720
19721 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19722 PyObject *resultobj;
19723 wxListEvent *arg1 = (wxListEvent *) 0 ;
19724 long result;
19725 PyObject * obj0 = 0 ;
19726 char *kwnames[] = {
19727 (char *) "self", NULL
19728 };
19729
19730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
19731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19733 result = (long) ((arg1)->m_itemIndex);
19734
19735 resultobj = SWIG_FromLong((long)result);
19736 return resultobj;
19737 fail:
19738 return NULL;
19739 }
19740
19741
19742 static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19743 PyObject *resultobj;
19744 wxListEvent *arg1 = (wxListEvent *) 0 ;
19745 int arg2 ;
19746 PyObject * obj0 = 0 ;
19747 PyObject * obj1 = 0 ;
19748 char *kwnames[] = {
19749 (char *) "self",(char *) "m_col", NULL
19750 };
19751
19752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19755 arg2 = (int) SWIG_AsInt(obj1);
19756 if (PyErr_Occurred()) SWIG_fail;
19757 if (arg1) (arg1)->m_col = arg2;
19758
19759 Py_INCREF(Py_None); resultobj = Py_None;
19760 return resultobj;
19761 fail:
19762 return NULL;
19763 }
19764
19765
19766 static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19767 PyObject *resultobj;
19768 wxListEvent *arg1 = (wxListEvent *) 0 ;
19769 int result;
19770 PyObject * obj0 = 0 ;
19771 char *kwnames[] = {
19772 (char *) "self", NULL
19773 };
19774
19775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
19776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19778 result = (int) ((arg1)->m_col);
19779
19780 resultobj = SWIG_FromInt((int)result);
19781 return resultobj;
19782 fail:
19783 return NULL;
19784 }
19785
19786
19787 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19788 PyObject *resultobj;
19789 wxListEvent *arg1 = (wxListEvent *) 0 ;
19790 wxPoint *arg2 = (wxPoint *) 0 ;
19791 PyObject * obj0 = 0 ;
19792 PyObject * obj1 = 0 ;
19793 char *kwnames[] = {
19794 (char *) "self",(char *) "m_pointDrag", NULL
19795 };
19796
19797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
19798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
19801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19802 if (arg1) (arg1)->m_pointDrag = *arg2;
19803
19804 Py_INCREF(Py_None); resultobj = Py_None;
19805 return resultobj;
19806 fail:
19807 return NULL;
19808 }
19809
19810
19811 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19812 PyObject *resultobj;
19813 wxListEvent *arg1 = (wxListEvent *) 0 ;
19814 wxPoint *result;
19815 PyObject * obj0 = 0 ;
19816 char *kwnames[] = {
19817 (char *) "self", NULL
19818 };
19819
19820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
19821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19823 result = (wxPoint *)& ((arg1)->m_pointDrag);
19824
19825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
19826 return resultobj;
19827 fail:
19828 return NULL;
19829 }
19830
19831
19832 static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19833 PyObject *resultobj;
19834 wxListEvent *arg1 = (wxListEvent *) 0 ;
19835 wxListItem *result;
19836 PyObject * obj0 = 0 ;
19837 char *kwnames[] = {
19838 (char *) "self", NULL
19839 };
19840
19841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
19842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19844 result = (wxListItem *)& ((arg1)->m_item);
19845
19846 {
19847 resultobj = wxPyMake_wxObject(result);
19848 }
19849 return resultobj;
19850 fail:
19851 return NULL;
19852 }
19853
19854
19855 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
19856 PyObject *resultobj;
19857 wxListEvent *arg1 = (wxListEvent *) 0 ;
19858 int result;
19859 PyObject * obj0 = 0 ;
19860 char *kwnames[] = {
19861 (char *) "self", NULL
19862 };
19863
19864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
19865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19867 {
19868 PyThreadState* __tstate = wxPyBeginAllowThreads();
19869 result = (int)(arg1)->GetKeyCode();
19870
19871 wxPyEndAllowThreads(__tstate);
19872 if (PyErr_Occurred()) SWIG_fail;
19873 }
19874 resultobj = SWIG_FromInt((int)result);
19875 return resultobj;
19876 fail:
19877 return NULL;
19878 }
19879
19880
19881 static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
19882 PyObject *resultobj;
19883 wxListEvent *arg1 = (wxListEvent *) 0 ;
19884 long result;
19885 PyObject * obj0 = 0 ;
19886 char *kwnames[] = {
19887 (char *) "self", NULL
19888 };
19889
19890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
19891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19893 {
19894 PyThreadState* __tstate = wxPyBeginAllowThreads();
19895 result = (long)(arg1)->GetIndex();
19896
19897 wxPyEndAllowThreads(__tstate);
19898 if (PyErr_Occurred()) SWIG_fail;
19899 }
19900 resultobj = SWIG_FromLong((long)result);
19901 return resultobj;
19902 fail:
19903 return NULL;
19904 }
19905
19906
19907 static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19908 PyObject *resultobj;
19909 wxListEvent *arg1 = (wxListEvent *) 0 ;
19910 int result;
19911 PyObject * obj0 = 0 ;
19912 char *kwnames[] = {
19913 (char *) "self", NULL
19914 };
19915
19916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
19917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19919 {
19920 PyThreadState* __tstate = wxPyBeginAllowThreads();
19921 result = (int)(arg1)->GetColumn();
19922
19923 wxPyEndAllowThreads(__tstate);
19924 if (PyErr_Occurred()) SWIG_fail;
19925 }
19926 resultobj = SWIG_FromInt((int)result);
19927 return resultobj;
19928 fail:
19929 return NULL;
19930 }
19931
19932
19933 static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
19934 PyObject *resultobj;
19935 wxListEvent *arg1 = (wxListEvent *) 0 ;
19936 wxPoint result;
19937 PyObject * obj0 = 0 ;
19938 char *kwnames[] = {
19939 (char *) "self", NULL
19940 };
19941
19942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
19943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19945 {
19946 PyThreadState* __tstate = wxPyBeginAllowThreads();
19947 result = (arg1)->GetPoint();
19948
19949 wxPyEndAllowThreads(__tstate);
19950 if (PyErr_Occurred()) SWIG_fail;
19951 }
19952 {
19953 wxPoint * resultptr;
19954 resultptr = new wxPoint((wxPoint &) result);
19955 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
19956 }
19957 return resultobj;
19958 fail:
19959 return NULL;
19960 }
19961
19962
19963 static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
19964 PyObject *resultobj;
19965 wxListEvent *arg1 = (wxListEvent *) 0 ;
19966 wxString *result;
19967 PyObject * obj0 = 0 ;
19968 char *kwnames[] = {
19969 (char *) "self", NULL
19970 };
19971
19972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
19973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19975 {
19976 PyThreadState* __tstate = wxPyBeginAllowThreads();
19977 {
19978 wxString const &_result_ref = (arg1)->GetLabel();
19979 result = (wxString *) &_result_ref;
19980 }
19981
19982 wxPyEndAllowThreads(__tstate);
19983 if (PyErr_Occurred()) SWIG_fail;
19984 }
19985 {
19986 #if wxUSE_UNICODE
19987 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19988 #else
19989 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19990 #endif
19991 }
19992 return resultobj;
19993 fail:
19994 return NULL;
19995 }
19996
19997
19998 static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19999 PyObject *resultobj;
20000 wxListEvent *arg1 = (wxListEvent *) 0 ;
20001 wxString *result;
20002 PyObject * obj0 = 0 ;
20003 char *kwnames[] = {
20004 (char *) "self", NULL
20005 };
20006
20007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
20008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20010 {
20011 PyThreadState* __tstate = wxPyBeginAllowThreads();
20012 {
20013 wxString const &_result_ref = (arg1)->GetText();
20014 result = (wxString *) &_result_ref;
20015 }
20016
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 {
20021 #if wxUSE_UNICODE
20022 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20023 #else
20024 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20025 #endif
20026 }
20027 return resultobj;
20028 fail:
20029 return NULL;
20030 }
20031
20032
20033 static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20034 PyObject *resultobj;
20035 wxListEvent *arg1 = (wxListEvent *) 0 ;
20036 int result;
20037 PyObject * obj0 = 0 ;
20038 char *kwnames[] = {
20039 (char *) "self", NULL
20040 };
20041
20042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
20043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20045 {
20046 PyThreadState* __tstate = wxPyBeginAllowThreads();
20047 result = (int)(arg1)->GetImage();
20048
20049 wxPyEndAllowThreads(__tstate);
20050 if (PyErr_Occurred()) SWIG_fail;
20051 }
20052 resultobj = SWIG_FromInt((int)result);
20053 return resultobj;
20054 fail:
20055 return NULL;
20056 }
20057
20058
20059 static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
20060 PyObject *resultobj;
20061 wxListEvent *arg1 = (wxListEvent *) 0 ;
20062 long result;
20063 PyObject * obj0 = 0 ;
20064 char *kwnames[] = {
20065 (char *) "self", NULL
20066 };
20067
20068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
20069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20071 {
20072 PyThreadState* __tstate = wxPyBeginAllowThreads();
20073 result = (long)(arg1)->GetData();
20074
20075 wxPyEndAllowThreads(__tstate);
20076 if (PyErr_Occurred()) SWIG_fail;
20077 }
20078 resultobj = SWIG_FromLong((long)result);
20079 return resultobj;
20080 fail:
20081 return NULL;
20082 }
20083
20084
20085 static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
20086 PyObject *resultobj;
20087 wxListEvent *arg1 = (wxListEvent *) 0 ;
20088 long result;
20089 PyObject * obj0 = 0 ;
20090 char *kwnames[] = {
20091 (char *) "self", NULL
20092 };
20093
20094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
20095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20097 {
20098 PyThreadState* __tstate = wxPyBeginAllowThreads();
20099 result = (long)(arg1)->GetMask();
20100
20101 wxPyEndAllowThreads(__tstate);
20102 if (PyErr_Occurred()) SWIG_fail;
20103 }
20104 resultobj = SWIG_FromLong((long)result);
20105 return resultobj;
20106 fail:
20107 return NULL;
20108 }
20109
20110
20111 static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20112 PyObject *resultobj;
20113 wxListEvent *arg1 = (wxListEvent *) 0 ;
20114 wxListItem *result;
20115 PyObject * obj0 = 0 ;
20116 char *kwnames[] = {
20117 (char *) "self", NULL
20118 };
20119
20120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
20121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20123 {
20124 PyThreadState* __tstate = wxPyBeginAllowThreads();
20125 {
20126 wxListItem const &_result_ref = (arg1)->GetItem();
20127 result = (wxListItem *) &_result_ref;
20128 }
20129
20130 wxPyEndAllowThreads(__tstate);
20131 if (PyErr_Occurred()) SWIG_fail;
20132 }
20133 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
20134 return resultobj;
20135 fail:
20136 return NULL;
20137 }
20138
20139
20140 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
20141 PyObject *resultobj;
20142 wxListEvent *arg1 = (wxListEvent *) 0 ;
20143 long result;
20144 PyObject * obj0 = 0 ;
20145 char *kwnames[] = {
20146 (char *) "self", NULL
20147 };
20148
20149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
20150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20152 {
20153 PyThreadState* __tstate = wxPyBeginAllowThreads();
20154 result = (long)(arg1)->GetCacheFrom();
20155
20156 wxPyEndAllowThreads(__tstate);
20157 if (PyErr_Occurred()) SWIG_fail;
20158 }
20159 resultobj = SWIG_FromLong((long)result);
20160 return resultobj;
20161 fail:
20162 return NULL;
20163 }
20164
20165
20166 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20167 PyObject *resultobj;
20168 wxListEvent *arg1 = (wxListEvent *) 0 ;
20169 long result;
20170 PyObject * obj0 = 0 ;
20171 char *kwnames[] = {
20172 (char *) "self", NULL
20173 };
20174
20175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
20176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20178 {
20179 PyThreadState* __tstate = wxPyBeginAllowThreads();
20180 result = (long)(arg1)->GetCacheTo();
20181
20182 wxPyEndAllowThreads(__tstate);
20183 if (PyErr_Occurred()) SWIG_fail;
20184 }
20185 resultobj = SWIG_FromLong((long)result);
20186 return resultobj;
20187 fail:
20188 return NULL;
20189 }
20190
20191
20192 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
20193 PyObject *resultobj;
20194 wxListEvent *arg1 = (wxListEvent *) 0 ;
20195 bool result;
20196 PyObject * obj0 = 0 ;
20197 char *kwnames[] = {
20198 (char *) "self", NULL
20199 };
20200
20201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
20202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20204 {
20205 PyThreadState* __tstate = wxPyBeginAllowThreads();
20206 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
20207
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 {
20212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20213 }
20214 return resultobj;
20215 fail:
20216 return NULL;
20217 }
20218
20219
20220 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
20221 PyObject *resultobj;
20222 wxListEvent *arg1 = (wxListEvent *) 0 ;
20223 bool arg2 ;
20224 PyObject * obj0 = 0 ;
20225 PyObject * obj1 = 0 ;
20226 char *kwnames[] = {
20227 (char *) "self",(char *) "editCancelled", NULL
20228 };
20229
20230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
20231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20233 arg2 = (bool) SWIG_AsBool(obj1);
20234 if (PyErr_Occurred()) SWIG_fail;
20235 {
20236 PyThreadState* __tstate = wxPyBeginAllowThreads();
20237 (arg1)->SetEditCanceled(arg2);
20238
20239 wxPyEndAllowThreads(__tstate);
20240 if (PyErr_Occurred()) SWIG_fail;
20241 }
20242 Py_INCREF(Py_None); resultobj = Py_None;
20243 return resultobj;
20244 fail:
20245 return NULL;
20246 }
20247
20248
20249 static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
20250 PyObject *obj;
20251 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20252 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
20253 Py_INCREF(obj);
20254 return Py_BuildValue((char *)"");
20255 }
20256 static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20257 PyObject *resultobj;
20258 wxWindow *arg1 = (wxWindow *) 0 ;
20259 int arg2 = (int) -1 ;
20260 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20261 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20262 wxSize const &arg4_defvalue = wxDefaultSize ;
20263 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20264 long arg5 = (long) wxLC_ICON ;
20265 wxValidator const &arg6_defvalue = wxDefaultValidator ;
20266 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
20267 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
20268 wxString *arg7 = (wxString *) &arg7_defvalue ;
20269 wxPyListCtrl *result;
20270 wxPoint temp3 ;
20271 wxSize temp4 ;
20272 bool temp7 = False ;
20273 PyObject * obj0 = 0 ;
20274 PyObject * obj1 = 0 ;
20275 PyObject * obj2 = 0 ;
20276 PyObject * obj3 = 0 ;
20277 PyObject * obj4 = 0 ;
20278 PyObject * obj5 = 0 ;
20279 PyObject * obj6 = 0 ;
20280 char *kwnames[] = {
20281 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
20282 };
20283
20284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
20285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20287 if (obj1) {
20288 arg2 = (int) SWIG_AsInt(obj1);
20289 if (PyErr_Occurred()) SWIG_fail;
20290 }
20291 if (obj2) {
20292 {
20293 arg3 = &temp3;
20294 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20295 }
20296 }
20297 if (obj3) {
20298 {
20299 arg4 = &temp4;
20300 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20301 }
20302 }
20303 if (obj4) {
20304 arg5 = (long) SWIG_AsLong(obj4);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 if (obj5) {
20308 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
20309 SWIG_POINTER_EXCEPTION | 0)) == -1)
20310 SWIG_fail;
20311 if (arg6 == NULL) {
20312 PyErr_SetString(PyExc_TypeError,"null reference");
20313 SWIG_fail;
20314 }
20315 }
20316 if (obj6) {
20317 {
20318 arg7 = wxString_in_helper(obj6);
20319 if (arg7 == NULL) SWIG_fail;
20320 temp7 = True;
20321 }
20322 }
20323 {
20324 PyThreadState* __tstate = wxPyBeginAllowThreads();
20325 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
20326
20327 wxPyEndAllowThreads(__tstate);
20328 if (PyErr_Occurred()) SWIG_fail;
20329 }
20330 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20331 {
20332 if (temp7)
20333 delete arg7;
20334 }
20335 return resultobj;
20336 fail:
20337 {
20338 if (temp7)
20339 delete arg7;
20340 }
20341 return NULL;
20342 }
20343
20344
20345 static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20346 PyObject *resultobj;
20347 wxPyListCtrl *result;
20348 char *kwnames[] = {
20349 NULL
20350 };
20351
20352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
20353 {
20354 PyThreadState* __tstate = wxPyBeginAllowThreads();
20355 result = (wxPyListCtrl *)new wxPyListCtrl();
20356
20357 wxPyEndAllowThreads(__tstate);
20358 if (PyErr_Occurred()) SWIG_fail;
20359 }
20360 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20361 return resultobj;
20362 fail:
20363 return NULL;
20364 }
20365
20366
20367 static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
20368 PyObject *resultobj;
20369 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20370 wxWindow *arg2 = (wxWindow *) 0 ;
20371 int arg3 = (int) -1 ;
20372 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20373 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20374 wxSize const &arg5_defvalue = wxDefaultSize ;
20375 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20376 long arg6 = (long) wxLC_ICON ;
20377 wxValidator const &arg7_defvalue = wxDefaultValidator ;
20378 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
20379 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
20380 wxString *arg8 = (wxString *) &arg8_defvalue ;
20381 bool result;
20382 wxPoint temp4 ;
20383 wxSize temp5 ;
20384 bool temp8 = False ;
20385 PyObject * obj0 = 0 ;
20386 PyObject * obj1 = 0 ;
20387 PyObject * obj2 = 0 ;
20388 PyObject * obj3 = 0 ;
20389 PyObject * obj4 = 0 ;
20390 PyObject * obj5 = 0 ;
20391 PyObject * obj6 = 0 ;
20392 PyObject * obj7 = 0 ;
20393 char *kwnames[] = {
20394 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
20395 };
20396
20397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
20398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20400 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20402 if (obj2) {
20403 arg3 = (int) SWIG_AsInt(obj2);
20404 if (PyErr_Occurred()) SWIG_fail;
20405 }
20406 if (obj3) {
20407 {
20408 arg4 = &temp4;
20409 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20410 }
20411 }
20412 if (obj4) {
20413 {
20414 arg5 = &temp5;
20415 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20416 }
20417 }
20418 if (obj5) {
20419 arg6 = (long) SWIG_AsLong(obj5);
20420 if (PyErr_Occurred()) SWIG_fail;
20421 }
20422 if (obj6) {
20423 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
20424 SWIG_POINTER_EXCEPTION | 0)) == -1)
20425 SWIG_fail;
20426 if (arg7 == NULL) {
20427 PyErr_SetString(PyExc_TypeError,"null reference");
20428 SWIG_fail;
20429 }
20430 }
20431 if (obj7) {
20432 {
20433 arg8 = wxString_in_helper(obj7);
20434 if (arg8 == NULL) SWIG_fail;
20435 temp8 = True;
20436 }
20437 }
20438 {
20439 PyThreadState* __tstate = wxPyBeginAllowThreads();
20440 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
20441
20442 wxPyEndAllowThreads(__tstate);
20443 if (PyErr_Occurred()) SWIG_fail;
20444 }
20445 {
20446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20447 }
20448 {
20449 if (temp8)
20450 delete arg8;
20451 }
20452 return resultobj;
20453 fail:
20454 {
20455 if (temp8)
20456 delete arg8;
20457 }
20458 return NULL;
20459 }
20460
20461
20462 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
20463 PyObject *resultobj;
20464 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20465 PyObject *arg2 = (PyObject *) 0 ;
20466 PyObject *arg3 = (PyObject *) 0 ;
20467 PyObject * obj0 = 0 ;
20468 PyObject * obj1 = 0 ;
20469 PyObject * obj2 = 0 ;
20470 char *kwnames[] = {
20471 (char *) "self",(char *) "self",(char *) "_class", NULL
20472 };
20473
20474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20477 arg2 = obj1;
20478 arg3 = obj2;
20479 {
20480 PyThreadState* __tstate = wxPyBeginAllowThreads();
20481 (arg1)->_setCallbackInfo(arg2,arg3);
20482
20483 wxPyEndAllowThreads(__tstate);
20484 if (PyErr_Occurred()) SWIG_fail;
20485 }
20486 Py_INCREF(Py_None); resultobj = Py_None;
20487 return resultobj;
20488 fail:
20489 return NULL;
20490 }
20491
20492
20493 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20494 PyObject *resultobj;
20495 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20496 wxColour *arg2 = 0 ;
20497 bool result;
20498 wxColour temp2 ;
20499 PyObject * obj0 = 0 ;
20500 PyObject * obj1 = 0 ;
20501 char *kwnames[] = {
20502 (char *) "self",(char *) "col", NULL
20503 };
20504
20505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
20506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20508 {
20509 arg2 = &temp2;
20510 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20511 }
20512 {
20513 PyThreadState* __tstate = wxPyBeginAllowThreads();
20514 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
20515
20516 wxPyEndAllowThreads(__tstate);
20517 if (PyErr_Occurred()) SWIG_fail;
20518 }
20519 {
20520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20521 }
20522 return resultobj;
20523 fail:
20524 return NULL;
20525 }
20526
20527
20528 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20529 PyObject *resultobj;
20530 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20531 wxColour *arg2 = 0 ;
20532 bool result;
20533 wxColour temp2 ;
20534 PyObject * obj0 = 0 ;
20535 PyObject * obj1 = 0 ;
20536 char *kwnames[] = {
20537 (char *) "self",(char *) "col", NULL
20538 };
20539
20540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
20541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20543 {
20544 arg2 = &temp2;
20545 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20546 }
20547 {
20548 PyThreadState* __tstate = wxPyBeginAllowThreads();
20549 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
20550
20551 wxPyEndAllowThreads(__tstate);
20552 if (PyErr_Occurred()) SWIG_fail;
20553 }
20554 {
20555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20556 }
20557 return resultobj;
20558 fail:
20559 return NULL;
20560 }
20561
20562
20563 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20564 PyObject *resultobj;
20565 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20566 int arg2 ;
20567 wxListItem *result;
20568 PyObject * obj0 = 0 ;
20569 PyObject * obj1 = 0 ;
20570 char *kwnames[] = {
20571 (char *) "self",(char *) "col", NULL
20572 };
20573
20574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
20575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20577 arg2 = (int) SWIG_AsInt(obj1);
20578 if (PyErr_Occurred()) SWIG_fail;
20579 {
20580 PyThreadState* __tstate = wxPyBeginAllowThreads();
20581 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
20582
20583 wxPyEndAllowThreads(__tstate);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 }
20586 {
20587 resultobj = wxPyMake_wxObject(result);
20588 }
20589 return resultobj;
20590 fail:
20591 return NULL;
20592 }
20593
20594
20595 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20596 PyObject *resultobj;
20597 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20598 int arg2 ;
20599 wxListItem *arg3 = 0 ;
20600 bool result;
20601 PyObject * obj0 = 0 ;
20602 PyObject * obj1 = 0 ;
20603 PyObject * obj2 = 0 ;
20604 char *kwnames[] = {
20605 (char *) "self",(char *) "col",(char *) "item", NULL
20606 };
20607
20608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
20609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20611 arg2 = (int) SWIG_AsInt(obj1);
20612 if (PyErr_Occurred()) SWIG_fail;
20613 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
20614 SWIG_POINTER_EXCEPTION | 0)) == -1)
20615 SWIG_fail;
20616 if (arg3 == NULL) {
20617 PyErr_SetString(PyExc_TypeError,"null reference");
20618 SWIG_fail;
20619 }
20620 {
20621 PyThreadState* __tstate = wxPyBeginAllowThreads();
20622 result = (bool)(arg1)->SetColumn(arg2,*arg3);
20623
20624 wxPyEndAllowThreads(__tstate);
20625 if (PyErr_Occurred()) SWIG_fail;
20626 }
20627 {
20628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20629 }
20630 return resultobj;
20631 fail:
20632 return NULL;
20633 }
20634
20635
20636 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
20637 PyObject *resultobj;
20638 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20639 int arg2 ;
20640 int result;
20641 PyObject * obj0 = 0 ;
20642 PyObject * obj1 = 0 ;
20643 char *kwnames[] = {
20644 (char *) "self",(char *) "col", NULL
20645 };
20646
20647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
20648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20650 arg2 = (int) SWIG_AsInt(obj1);
20651 if (PyErr_Occurred()) SWIG_fail;
20652 {
20653 PyThreadState* __tstate = wxPyBeginAllowThreads();
20654 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
20655
20656 wxPyEndAllowThreads(__tstate);
20657 if (PyErr_Occurred()) SWIG_fail;
20658 }
20659 resultobj = SWIG_FromInt((int)result);
20660 return resultobj;
20661 fail:
20662 return NULL;
20663 }
20664
20665
20666 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
20667 PyObject *resultobj;
20668 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20669 int arg2 ;
20670 int arg3 ;
20671 bool result;
20672 PyObject * obj0 = 0 ;
20673 PyObject * obj1 = 0 ;
20674 PyObject * obj2 = 0 ;
20675 char *kwnames[] = {
20676 (char *) "self",(char *) "col",(char *) "width", NULL
20677 };
20678
20679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20682 arg2 = (int) SWIG_AsInt(obj1);
20683 if (PyErr_Occurred()) SWIG_fail;
20684 arg3 = (int) SWIG_AsInt(obj2);
20685 if (PyErr_Occurred()) SWIG_fail;
20686 {
20687 PyThreadState* __tstate = wxPyBeginAllowThreads();
20688 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
20689
20690 wxPyEndAllowThreads(__tstate);
20691 if (PyErr_Occurred()) SWIG_fail;
20692 }
20693 {
20694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20695 }
20696 return resultobj;
20697 fail:
20698 return NULL;
20699 }
20700
20701
20702 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
20703 PyObject *resultobj;
20704 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20705 int result;
20706 PyObject * obj0 = 0 ;
20707 char *kwnames[] = {
20708 (char *) "self", NULL
20709 };
20710
20711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
20712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20714 {
20715 PyThreadState* __tstate = wxPyBeginAllowThreads();
20716 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
20717
20718 wxPyEndAllowThreads(__tstate);
20719 if (PyErr_Occurred()) SWIG_fail;
20720 }
20721 resultobj = SWIG_FromInt((int)result);
20722 return resultobj;
20723 fail:
20724 return NULL;
20725 }
20726
20727
20728 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
20729 PyObject *resultobj;
20730 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20731 wxRect result;
20732 PyObject * obj0 = 0 ;
20733 char *kwnames[] = {
20734 (char *) "self", NULL
20735 };
20736
20737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
20738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20740 {
20741 PyThreadState* __tstate = wxPyBeginAllowThreads();
20742 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
20743
20744 wxPyEndAllowThreads(__tstate);
20745 if (PyErr_Occurred()) SWIG_fail;
20746 }
20747 {
20748 wxRect * resultptr;
20749 resultptr = new wxRect((wxRect &) result);
20750 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
20751 }
20752 return resultobj;
20753 fail:
20754 return NULL;
20755 }
20756
20757
20758 static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
20759 PyObject *resultobj;
20760 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20761 wxTextCtrl *result;
20762 PyObject * obj0 = 0 ;
20763 char *kwnames[] = {
20764 (char *) "self", NULL
20765 };
20766
20767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail;
20768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20770 {
20771 PyThreadState* __tstate = wxPyBeginAllowThreads();
20772 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
20773
20774 wxPyEndAllowThreads(__tstate);
20775 if (PyErr_Occurred()) SWIG_fail;
20776 }
20777 {
20778 resultobj = wxPyMake_wxObject(result);
20779 }
20780 return resultobj;
20781 fail:
20782 return NULL;
20783 }
20784
20785
20786 static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20787 PyObject *resultobj;
20788 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20789 long arg2 ;
20790 int arg3 = (int) 0 ;
20791 wxListItem *result;
20792 PyObject * obj0 = 0 ;
20793 PyObject * obj1 = 0 ;
20794 PyObject * obj2 = 0 ;
20795 char *kwnames[] = {
20796 (char *) "self",(char *) "itemId",(char *) "col", NULL
20797 };
20798
20799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
20800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20802 arg2 = (long) SWIG_AsLong(obj1);
20803 if (PyErr_Occurred()) SWIG_fail;
20804 if (obj2) {
20805 arg3 = (int) SWIG_AsInt(obj2);
20806 if (PyErr_Occurred()) SWIG_fail;
20807 }
20808 {
20809 PyThreadState* __tstate = wxPyBeginAllowThreads();
20810 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
20811
20812 wxPyEndAllowThreads(__tstate);
20813 if (PyErr_Occurred()) SWIG_fail;
20814 }
20815 {
20816 resultobj = wxPyMake_wxObject(result);
20817 }
20818 return resultobj;
20819 fail:
20820 return NULL;
20821 }
20822
20823
20824 static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20825 PyObject *resultobj;
20826 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20827 wxListItem *arg2 = 0 ;
20828 bool result;
20829 PyObject * obj0 = 0 ;
20830 PyObject * obj1 = 0 ;
20831 char *kwnames[] = {
20832 (char *) "self",(char *) "info", NULL
20833 };
20834
20835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
20836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20838 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
20839 SWIG_POINTER_EXCEPTION | 0)) == -1)
20840 SWIG_fail;
20841 if (arg2 == NULL) {
20842 PyErr_SetString(PyExc_TypeError,"null reference");
20843 SWIG_fail;
20844 }
20845 {
20846 PyThreadState* __tstate = wxPyBeginAllowThreads();
20847 result = (bool)(arg1)->SetItem(*arg2);
20848
20849 wxPyEndAllowThreads(__tstate);
20850 if (PyErr_Occurred()) SWIG_fail;
20851 }
20852 {
20853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20854 }
20855 return resultobj;
20856 fail:
20857 return NULL;
20858 }
20859
20860
20861 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20862 PyObject *resultobj;
20863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20864 long arg2 ;
20865 int arg3 ;
20866 wxString *arg4 = 0 ;
20867 int arg5 = (int) -1 ;
20868 long result;
20869 bool temp4 = False ;
20870 PyObject * obj0 = 0 ;
20871 PyObject * obj1 = 0 ;
20872 PyObject * obj2 = 0 ;
20873 PyObject * obj3 = 0 ;
20874 PyObject * obj4 = 0 ;
20875 char *kwnames[] = {
20876 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
20877 };
20878
20879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20882 arg2 = (long) SWIG_AsLong(obj1);
20883 if (PyErr_Occurred()) SWIG_fail;
20884 arg3 = (int) SWIG_AsInt(obj2);
20885 if (PyErr_Occurred()) SWIG_fail;
20886 {
20887 arg4 = wxString_in_helper(obj3);
20888 if (arg4 == NULL) SWIG_fail;
20889 temp4 = True;
20890 }
20891 if (obj4) {
20892 arg5 = (int) SWIG_AsInt(obj4);
20893 if (PyErr_Occurred()) SWIG_fail;
20894 }
20895 {
20896 PyThreadState* __tstate = wxPyBeginAllowThreads();
20897 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
20898
20899 wxPyEndAllowThreads(__tstate);
20900 if (PyErr_Occurred()) SWIG_fail;
20901 }
20902 resultobj = SWIG_FromLong((long)result);
20903 {
20904 if (temp4)
20905 delete arg4;
20906 }
20907 return resultobj;
20908 fail:
20909 {
20910 if (temp4)
20911 delete arg4;
20912 }
20913 return NULL;
20914 }
20915
20916
20917 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
20918 PyObject *resultobj;
20919 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20920 long arg2 ;
20921 long arg3 ;
20922 int result;
20923 PyObject * obj0 = 0 ;
20924 PyObject * obj1 = 0 ;
20925 PyObject * obj2 = 0 ;
20926 char *kwnames[] = {
20927 (char *) "self",(char *) "item",(char *) "stateMask", NULL
20928 };
20929
20930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
20931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20933 arg2 = (long) SWIG_AsLong(obj1);
20934 if (PyErr_Occurred()) SWIG_fail;
20935 arg3 = (long) SWIG_AsLong(obj2);
20936 if (PyErr_Occurred()) SWIG_fail;
20937 {
20938 PyThreadState* __tstate = wxPyBeginAllowThreads();
20939 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
20940
20941 wxPyEndAllowThreads(__tstate);
20942 if (PyErr_Occurred()) SWIG_fail;
20943 }
20944 resultobj = SWIG_FromInt((int)result);
20945 return resultobj;
20946 fail:
20947 return NULL;
20948 }
20949
20950
20951 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
20952 PyObject *resultobj;
20953 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20954 long arg2 ;
20955 long arg3 ;
20956 long arg4 ;
20957 bool result;
20958 PyObject * obj0 = 0 ;
20959 PyObject * obj1 = 0 ;
20960 PyObject * obj2 = 0 ;
20961 PyObject * obj3 = 0 ;
20962 char *kwnames[] = {
20963 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
20964 };
20965
20966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20969 arg2 = (long) SWIG_AsLong(obj1);
20970 if (PyErr_Occurred()) SWIG_fail;
20971 arg3 = (long) SWIG_AsLong(obj2);
20972 if (PyErr_Occurred()) SWIG_fail;
20973 arg4 = (long) SWIG_AsLong(obj3);
20974 if (PyErr_Occurred()) SWIG_fail;
20975 {
20976 PyThreadState* __tstate = wxPyBeginAllowThreads();
20977 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
20978
20979 wxPyEndAllowThreads(__tstate);
20980 if (PyErr_Occurred()) SWIG_fail;
20981 }
20982 {
20983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20984 }
20985 return resultobj;
20986 fail:
20987 return NULL;
20988 }
20989
20990
20991 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20992 PyObject *resultobj;
20993 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20994 long arg2 ;
20995 int arg3 ;
20996 int arg4 ;
20997 bool result;
20998 PyObject * obj0 = 0 ;
20999 PyObject * obj1 = 0 ;
21000 PyObject * obj2 = 0 ;
21001 PyObject * obj3 = 0 ;
21002 char *kwnames[] = {
21003 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
21004 };
21005
21006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21009 arg2 = (long) SWIG_AsLong(obj1);
21010 if (PyErr_Occurred()) SWIG_fail;
21011 arg3 = (int) SWIG_AsInt(obj2);
21012 if (PyErr_Occurred()) SWIG_fail;
21013 arg4 = (int) SWIG_AsInt(obj3);
21014 if (PyErr_Occurred()) SWIG_fail;
21015 {
21016 PyThreadState* __tstate = wxPyBeginAllowThreads();
21017 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
21018
21019 wxPyEndAllowThreads(__tstate);
21020 if (PyErr_Occurred()) SWIG_fail;
21021 }
21022 {
21023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21024 }
21025 return resultobj;
21026 fail:
21027 return NULL;
21028 }
21029
21030
21031 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21032 PyObject *resultobj;
21033 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21034 long arg2 ;
21035 wxString result;
21036 PyObject * obj0 = 0 ;
21037 PyObject * obj1 = 0 ;
21038 char *kwnames[] = {
21039 (char *) "self",(char *) "item", NULL
21040 };
21041
21042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
21043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21045 arg2 = (long) SWIG_AsLong(obj1);
21046 if (PyErr_Occurred()) SWIG_fail;
21047 {
21048 PyThreadState* __tstate = wxPyBeginAllowThreads();
21049 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
21050
21051 wxPyEndAllowThreads(__tstate);
21052 if (PyErr_Occurred()) SWIG_fail;
21053 }
21054 {
21055 #if wxUSE_UNICODE
21056 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21057 #else
21058 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21059 #endif
21060 }
21061 return resultobj;
21062 fail:
21063 return NULL;
21064 }
21065
21066
21067 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21068 PyObject *resultobj;
21069 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21070 long arg2 ;
21071 wxString *arg3 = 0 ;
21072 bool temp3 = False ;
21073 PyObject * obj0 = 0 ;
21074 PyObject * obj1 = 0 ;
21075 PyObject * obj2 = 0 ;
21076 char *kwnames[] = {
21077 (char *) "self",(char *) "item",(char *) "str", NULL
21078 };
21079
21080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
21081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21083 arg2 = (long) SWIG_AsLong(obj1);
21084 if (PyErr_Occurred()) SWIG_fail;
21085 {
21086 arg3 = wxString_in_helper(obj2);
21087 if (arg3 == NULL) SWIG_fail;
21088 temp3 = True;
21089 }
21090 {
21091 PyThreadState* __tstate = wxPyBeginAllowThreads();
21092 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
21093
21094 wxPyEndAllowThreads(__tstate);
21095 if (PyErr_Occurred()) SWIG_fail;
21096 }
21097 Py_INCREF(Py_None); resultobj = Py_None;
21098 {
21099 if (temp3)
21100 delete arg3;
21101 }
21102 return resultobj;
21103 fail:
21104 {
21105 if (temp3)
21106 delete arg3;
21107 }
21108 return NULL;
21109 }
21110
21111
21112 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21113 PyObject *resultobj;
21114 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21115 long arg2 ;
21116 long result;
21117 PyObject * obj0 = 0 ;
21118 PyObject * obj1 = 0 ;
21119 char *kwnames[] = {
21120 (char *) "self",(char *) "item", NULL
21121 };
21122
21123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
21124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21126 arg2 = (long) SWIG_AsLong(obj1);
21127 if (PyErr_Occurred()) SWIG_fail;
21128 {
21129 PyThreadState* __tstate = wxPyBeginAllowThreads();
21130 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
21131
21132 wxPyEndAllowThreads(__tstate);
21133 if (PyErr_Occurred()) SWIG_fail;
21134 }
21135 resultobj = SWIG_FromLong((long)result);
21136 return resultobj;
21137 fail:
21138 return NULL;
21139 }
21140
21141
21142 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21143 PyObject *resultobj;
21144 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21145 long arg2 ;
21146 long arg3 ;
21147 bool result;
21148 PyObject * obj0 = 0 ;
21149 PyObject * obj1 = 0 ;
21150 PyObject * obj2 = 0 ;
21151 char *kwnames[] = {
21152 (char *) "self",(char *) "item",(char *) "data", NULL
21153 };
21154
21155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21158 arg2 = (long) SWIG_AsLong(obj1);
21159 if (PyErr_Occurred()) SWIG_fail;
21160 arg3 = (long) SWIG_AsLong(obj2);
21161 if (PyErr_Occurred()) SWIG_fail;
21162 {
21163 PyThreadState* __tstate = wxPyBeginAllowThreads();
21164 result = (bool)(arg1)->SetItemData(arg2,arg3);
21165
21166 wxPyEndAllowThreads(__tstate);
21167 if (PyErr_Occurred()) SWIG_fail;
21168 }
21169 {
21170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21171 }
21172 return resultobj;
21173 fail:
21174 return NULL;
21175 }
21176
21177
21178 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21179 PyObject *resultobj;
21180 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21181 long arg2 ;
21182 wxPoint result;
21183 PyObject * obj0 = 0 ;
21184 PyObject * obj1 = 0 ;
21185 char *kwnames[] = {
21186 (char *) "self",(char *) "item", NULL
21187 };
21188
21189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
21190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21192 arg2 = (long) SWIG_AsLong(obj1);
21193 if (PyErr_Occurred()) SWIG_fail;
21194 {
21195 PyThreadState* __tstate = wxPyBeginAllowThreads();
21196 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
21197
21198 wxPyEndAllowThreads(__tstate);
21199 if (PyErr_Occurred()) SWIG_fail;
21200 }
21201 {
21202 wxPoint * resultptr;
21203 resultptr = new wxPoint((wxPoint &) result);
21204 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21205 }
21206 return resultobj;
21207 fail:
21208 return NULL;
21209 }
21210
21211
21212 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21213 PyObject *resultobj;
21214 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21215 long arg2 ;
21216 int arg3 = (int) wxLIST_RECT_BOUNDS ;
21217 wxRect result;
21218 PyObject * obj0 = 0 ;
21219 PyObject * obj1 = 0 ;
21220 PyObject * obj2 = 0 ;
21221 char *kwnames[] = {
21222 (char *) "self",(char *) "item",(char *) "code", NULL
21223 };
21224
21225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
21226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21228 arg2 = (long) SWIG_AsLong(obj1);
21229 if (PyErr_Occurred()) SWIG_fail;
21230 if (obj2) {
21231 arg3 = (int) SWIG_AsInt(obj2);
21232 if (PyErr_Occurred()) SWIG_fail;
21233 }
21234 {
21235 PyThreadState* __tstate = wxPyBeginAllowThreads();
21236 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
21237
21238 wxPyEndAllowThreads(__tstate);
21239 if (PyErr_Occurred()) SWIG_fail;
21240 }
21241 {
21242 wxRect * resultptr;
21243 resultptr = new wxRect((wxRect &) result);
21244 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21245 }
21246 return resultobj;
21247 fail:
21248 return NULL;
21249 }
21250
21251
21252 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21253 PyObject *resultobj;
21254 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21255 long arg2 ;
21256 wxPoint *arg3 = 0 ;
21257 bool result;
21258 wxPoint temp3 ;
21259 PyObject * obj0 = 0 ;
21260 PyObject * obj1 = 0 ;
21261 PyObject * obj2 = 0 ;
21262 char *kwnames[] = {
21263 (char *) "self",(char *) "item",(char *) "pos", NULL
21264 };
21265
21266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
21267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21269 arg2 = (long) SWIG_AsLong(obj1);
21270 if (PyErr_Occurred()) SWIG_fail;
21271 {
21272 arg3 = &temp3;
21273 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21274 }
21275 {
21276 PyThreadState* __tstate = wxPyBeginAllowThreads();
21277 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
21278
21279 wxPyEndAllowThreads(__tstate);
21280 if (PyErr_Occurred()) SWIG_fail;
21281 }
21282 {
21283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21284 }
21285 return resultobj;
21286 fail:
21287 return NULL;
21288 }
21289
21290
21291 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21292 PyObject *resultobj;
21293 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21294 int result;
21295 PyObject * obj0 = 0 ;
21296 char *kwnames[] = {
21297 (char *) "self", NULL
21298 };
21299
21300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
21301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21303 {
21304 PyThreadState* __tstate = wxPyBeginAllowThreads();
21305 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
21306
21307 wxPyEndAllowThreads(__tstate);
21308 if (PyErr_Occurred()) SWIG_fail;
21309 }
21310 resultobj = SWIG_FromInt((int)result);
21311 return resultobj;
21312 fail:
21313 return NULL;
21314 }
21315
21316
21317 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21318 PyObject *resultobj;
21319 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21320 int result;
21321 PyObject * obj0 = 0 ;
21322 char *kwnames[] = {
21323 (char *) "self", NULL
21324 };
21325
21326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
21327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21329 {
21330 PyThreadState* __tstate = wxPyBeginAllowThreads();
21331 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
21332
21333 wxPyEndAllowThreads(__tstate);
21334 if (PyErr_Occurred()) SWIG_fail;
21335 }
21336 resultobj = SWIG_FromInt((int)result);
21337 return resultobj;
21338 fail:
21339 return NULL;
21340 }
21341
21342
21343 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
21344 PyObject *resultobj;
21345 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21346 wxSize result;
21347 PyObject * obj0 = 0 ;
21348 char *kwnames[] = {
21349 (char *) "self", NULL
21350 };
21351
21352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
21353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21355 {
21356 PyThreadState* __tstate = wxPyBeginAllowThreads();
21357 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
21358
21359 wxPyEndAllowThreads(__tstate);
21360 if (PyErr_Occurred()) SWIG_fail;
21361 }
21362 {
21363 wxSize * resultptr;
21364 resultptr = new wxSize((wxSize &) result);
21365 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
21366 }
21367 return resultobj;
21368 fail:
21369 return NULL;
21370 }
21371
21372
21373 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21374 PyObject *resultobj;
21375 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21376 int result;
21377 PyObject * obj0 = 0 ;
21378 char *kwnames[] = {
21379 (char *) "self", NULL
21380 };
21381
21382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
21383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21385 {
21386 PyThreadState* __tstate = wxPyBeginAllowThreads();
21387 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
21388
21389 wxPyEndAllowThreads(__tstate);
21390 if (PyErr_Occurred()) SWIG_fail;
21391 }
21392 resultobj = SWIG_FromInt((int)result);
21393 return resultobj;
21394 fail:
21395 return NULL;
21396 }
21397
21398
21399 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21400 PyObject *resultobj;
21401 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21402 wxColour result;
21403 PyObject * obj0 = 0 ;
21404 char *kwnames[] = {
21405 (char *) "self", NULL
21406 };
21407
21408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
21409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
21414
21415 wxPyEndAllowThreads(__tstate);
21416 if (PyErr_Occurred()) SWIG_fail;
21417 }
21418 {
21419 wxColour * resultptr;
21420 resultptr = new wxColour((wxColour &) result);
21421 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21422 }
21423 return resultobj;
21424 fail:
21425 return NULL;
21426 }
21427
21428
21429 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21430 PyObject *resultobj;
21431 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21432 wxColour *arg2 = 0 ;
21433 wxColour temp2 ;
21434 PyObject * obj0 = 0 ;
21435 PyObject * obj1 = 0 ;
21436 char *kwnames[] = {
21437 (char *) "self",(char *) "col", NULL
21438 };
21439
21440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
21441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21443 {
21444 arg2 = &temp2;
21445 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21446 }
21447 {
21448 PyThreadState* __tstate = wxPyBeginAllowThreads();
21449 (arg1)->SetTextColour((wxColour const &)*arg2);
21450
21451 wxPyEndAllowThreads(__tstate);
21452 if (PyErr_Occurred()) SWIG_fail;
21453 }
21454 Py_INCREF(Py_None); resultobj = Py_None;
21455 return resultobj;
21456 fail:
21457 return NULL;
21458 }
21459
21460
21461 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21462 PyObject *resultobj;
21463 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21464 long result;
21465 PyObject * obj0 = 0 ;
21466 char *kwnames[] = {
21467 (char *) "self", NULL
21468 };
21469
21470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
21471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21473 {
21474 PyThreadState* __tstate = wxPyBeginAllowThreads();
21475 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
21476
21477 wxPyEndAllowThreads(__tstate);
21478 if (PyErr_Occurred()) SWIG_fail;
21479 }
21480 resultobj = SWIG_FromLong((long)result);
21481 return resultobj;
21482 fail:
21483 return NULL;
21484 }
21485
21486
21487 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
21488 PyObject *resultobj;
21489 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21490 long arg2 ;
21491 bool arg3 = (bool) True ;
21492 PyObject * obj0 = 0 ;
21493 PyObject * obj1 = 0 ;
21494 PyObject * obj2 = 0 ;
21495 char *kwnames[] = {
21496 (char *) "self",(char *) "style",(char *) "add", NULL
21497 };
21498
21499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
21500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21502 arg2 = (long) SWIG_AsLong(obj1);
21503 if (PyErr_Occurred()) SWIG_fail;
21504 if (obj2) {
21505 arg3 = (bool) SWIG_AsBool(obj2);
21506 if (PyErr_Occurred()) SWIG_fail;
21507 }
21508 {
21509 PyThreadState* __tstate = wxPyBeginAllowThreads();
21510 (arg1)->SetSingleStyle(arg2,arg3);
21511
21512 wxPyEndAllowThreads(__tstate);
21513 if (PyErr_Occurred()) SWIG_fail;
21514 }
21515 Py_INCREF(Py_None); resultobj = Py_None;
21516 return resultobj;
21517 fail:
21518 return NULL;
21519 }
21520
21521
21522 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
21523 PyObject *resultobj;
21524 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21525 long arg2 ;
21526 PyObject * obj0 = 0 ;
21527 PyObject * obj1 = 0 ;
21528 char *kwnames[] = {
21529 (char *) "self",(char *) "style", NULL
21530 };
21531
21532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
21533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21535 arg2 = (long) SWIG_AsLong(obj1);
21536 if (PyErr_Occurred()) SWIG_fail;
21537 {
21538 PyThreadState* __tstate = wxPyBeginAllowThreads();
21539 (arg1)->SetWindowStyleFlag(arg2);
21540
21541 wxPyEndAllowThreads(__tstate);
21542 if (PyErr_Occurred()) SWIG_fail;
21543 }
21544 Py_INCREF(Py_None); resultobj = Py_None;
21545 return resultobj;
21546 fail:
21547 return NULL;
21548 }
21549
21550
21551 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21552 PyObject *resultobj;
21553 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21554 long arg2 ;
21555 int arg3 = (int) wxLIST_NEXT_ALL ;
21556 int arg4 = (int) wxLIST_STATE_DONTCARE ;
21557 long result;
21558 PyObject * obj0 = 0 ;
21559 PyObject * obj1 = 0 ;
21560 PyObject * obj2 = 0 ;
21561 PyObject * obj3 = 0 ;
21562 char *kwnames[] = {
21563 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
21564 };
21565
21566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21569 arg2 = (long) SWIG_AsLong(obj1);
21570 if (PyErr_Occurred()) SWIG_fail;
21571 if (obj2) {
21572 arg3 = (int) SWIG_AsInt(obj2);
21573 if (PyErr_Occurred()) SWIG_fail;
21574 }
21575 if (obj3) {
21576 arg4 = (int) SWIG_AsInt(obj3);
21577 if (PyErr_Occurred()) SWIG_fail;
21578 }
21579 {
21580 PyThreadState* __tstate = wxPyBeginAllowThreads();
21581 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
21582
21583 wxPyEndAllowThreads(__tstate);
21584 if (PyErr_Occurred()) SWIG_fail;
21585 }
21586 resultobj = SWIG_FromLong((long)result);
21587 return resultobj;
21588 fail:
21589 return NULL;
21590 }
21591
21592
21593 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21594 PyObject *resultobj;
21595 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21596 int arg2 ;
21597 wxImageList *result;
21598 PyObject * obj0 = 0 ;
21599 PyObject * obj1 = 0 ;
21600 char *kwnames[] = {
21601 (char *) "self",(char *) "which", NULL
21602 };
21603
21604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
21605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21607 arg2 = (int) SWIG_AsInt(obj1);
21608 if (PyErr_Occurred()) SWIG_fail;
21609 {
21610 PyThreadState* __tstate = wxPyBeginAllowThreads();
21611 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
21612
21613 wxPyEndAllowThreads(__tstate);
21614 if (PyErr_Occurred()) SWIG_fail;
21615 }
21616 {
21617 resultobj = wxPyMake_wxObject(result);
21618 }
21619 return resultobj;
21620 fail:
21621 return NULL;
21622 }
21623
21624
21625 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21626 PyObject *resultobj;
21627 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21628 wxImageList *arg2 = (wxImageList *) 0 ;
21629 int arg3 ;
21630 PyObject * obj0 = 0 ;
21631 PyObject * obj1 = 0 ;
21632 PyObject * obj2 = 0 ;
21633 char *kwnames[] = {
21634 (char *) "self",(char *) "imageList",(char *) "which", NULL
21635 };
21636
21637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21640 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
21641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21642 arg3 = (int) SWIG_AsInt(obj2);
21643 if (PyErr_Occurred()) SWIG_fail;
21644 {
21645 PyThreadState* __tstate = wxPyBeginAllowThreads();
21646 (arg1)->SetImageList(arg2,arg3);
21647
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 Py_INCREF(Py_None); resultobj = Py_None;
21652 return resultobj;
21653 fail:
21654 return NULL;
21655 }
21656
21657
21658 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21659 PyObject *resultobj;
21660 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21661 wxImageList *arg2 = (wxImageList *) 0 ;
21662 int arg3 ;
21663 PyObject * obj0 = 0 ;
21664 PyObject * obj1 = 0 ;
21665 PyObject * obj2 = 0 ;
21666 char *kwnames[] = {
21667 (char *) "self",(char *) "imageList",(char *) "which", NULL
21668 };
21669
21670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21673 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
21674 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
21675 arg3 = (int) SWIG_AsInt(obj2);
21676 if (PyErr_Occurred()) SWIG_fail;
21677 {
21678 PyThreadState* __tstate = wxPyBeginAllowThreads();
21679 (arg1)->AssignImageList(arg2,arg3);
21680
21681 wxPyEndAllowThreads(__tstate);
21682 if (PyErr_Occurred()) SWIG_fail;
21683 }
21684 Py_INCREF(Py_None); resultobj = Py_None;
21685 return resultobj;
21686 fail:
21687 return NULL;
21688 }
21689
21690
21691 static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) {
21692 PyObject *resultobj;
21693 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21694 bool result;
21695 PyObject * obj0 = 0 ;
21696 char *kwnames[] = {
21697 (char *) "self", NULL
21698 };
21699
21700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
21701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21703 {
21704 PyThreadState* __tstate = wxPyBeginAllowThreads();
21705 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
21706
21707 wxPyEndAllowThreads(__tstate);
21708 if (PyErr_Occurred()) SWIG_fail;
21709 }
21710 {
21711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21712 }
21713 return resultobj;
21714 fail:
21715 return NULL;
21716 }
21717
21718
21719 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
21720 PyObject *resultobj;
21721 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21722 bool result;
21723 PyObject * obj0 = 0 ;
21724 char *kwnames[] = {
21725 (char *) "self", NULL
21726 };
21727
21728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
21729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21731 {
21732 PyThreadState* __tstate = wxPyBeginAllowThreads();
21733 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
21734
21735 wxPyEndAllowThreads(__tstate);
21736 if (PyErr_Occurred()) SWIG_fail;
21737 }
21738 {
21739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21740 }
21741 return resultobj;
21742 fail:
21743 return NULL;
21744 }
21745
21746
21747 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21748 PyObject *resultobj;
21749 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21750 long arg2 ;
21751 PyObject * obj0 = 0 ;
21752 PyObject * obj1 = 0 ;
21753 char *kwnames[] = {
21754 (char *) "self",(char *) "item", NULL
21755 };
21756
21757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
21758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21760 arg2 = (long) SWIG_AsLong(obj1);
21761 if (PyErr_Occurred()) SWIG_fail;
21762 {
21763 PyThreadState* __tstate = wxPyBeginAllowThreads();
21764 (arg1)->RefreshItem(arg2);
21765
21766 wxPyEndAllowThreads(__tstate);
21767 if (PyErr_Occurred()) SWIG_fail;
21768 }
21769 Py_INCREF(Py_None); resultobj = Py_None;
21770 return resultobj;
21771 fail:
21772 return NULL;
21773 }
21774
21775
21776 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
21777 PyObject *resultobj;
21778 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21779 long arg2 ;
21780 long arg3 ;
21781 PyObject * obj0 = 0 ;
21782 PyObject * obj1 = 0 ;
21783 PyObject * obj2 = 0 ;
21784 char *kwnames[] = {
21785 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
21786 };
21787
21788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
21789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21791 arg2 = (long) SWIG_AsLong(obj1);
21792 if (PyErr_Occurred()) SWIG_fail;
21793 arg3 = (long) SWIG_AsLong(obj2);
21794 if (PyErr_Occurred()) SWIG_fail;
21795 {
21796 PyThreadState* __tstate = wxPyBeginAllowThreads();
21797 (arg1)->RefreshItems(arg2,arg3);
21798
21799 wxPyEndAllowThreads(__tstate);
21800 if (PyErr_Occurred()) SWIG_fail;
21801 }
21802 Py_INCREF(Py_None); resultobj = Py_None;
21803 return resultobj;
21804 fail:
21805 return NULL;
21806 }
21807
21808
21809 static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
21810 PyObject *resultobj;
21811 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21812 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
21813 bool result;
21814 PyObject * obj0 = 0 ;
21815 PyObject * obj1 = 0 ;
21816 char *kwnames[] = {
21817 (char *) "self",(char *) "flag", NULL
21818 };
21819
21820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
21821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21823 if (obj1) {
21824 arg2 = (int) SWIG_AsInt(obj1);
21825 if (PyErr_Occurred()) SWIG_fail;
21826 }
21827 {
21828 PyThreadState* __tstate = wxPyBeginAllowThreads();
21829 result = (bool)(arg1)->Arrange(arg2);
21830
21831 wxPyEndAllowThreads(__tstate);
21832 if (PyErr_Occurred()) SWIG_fail;
21833 }
21834 {
21835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21836 }
21837 return resultobj;
21838 fail:
21839 return NULL;
21840 }
21841
21842
21843 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21844 PyObject *resultobj;
21845 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21846 long arg2 ;
21847 bool result;
21848 PyObject * obj0 = 0 ;
21849 PyObject * obj1 = 0 ;
21850 char *kwnames[] = {
21851 (char *) "self",(char *) "item", NULL
21852 };
21853
21854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
21855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21857 arg2 = (long) SWIG_AsLong(obj1);
21858 if (PyErr_Occurred()) SWIG_fail;
21859 {
21860 PyThreadState* __tstate = wxPyBeginAllowThreads();
21861 result = (bool)(arg1)->DeleteItem(arg2);
21862
21863 wxPyEndAllowThreads(__tstate);
21864 if (PyErr_Occurred()) SWIG_fail;
21865 }
21866 {
21867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21868 }
21869 return resultobj;
21870 fail:
21871 return NULL;
21872 }
21873
21874
21875 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
21876 PyObject *resultobj;
21877 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21878 bool result;
21879 PyObject * obj0 = 0 ;
21880 char *kwnames[] = {
21881 (char *) "self", NULL
21882 };
21883
21884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
21885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21887 {
21888 PyThreadState* __tstate = wxPyBeginAllowThreads();
21889 result = (bool)(arg1)->DeleteAllItems();
21890
21891 wxPyEndAllowThreads(__tstate);
21892 if (PyErr_Occurred()) SWIG_fail;
21893 }
21894 {
21895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21896 }
21897 return resultobj;
21898 fail:
21899 return NULL;
21900 }
21901
21902
21903 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj;
21905 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21906 int arg2 ;
21907 bool result;
21908 PyObject * obj0 = 0 ;
21909 PyObject * obj1 = 0 ;
21910 char *kwnames[] = {
21911 (char *) "self",(char *) "col", NULL
21912 };
21913
21914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
21915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21917 arg2 = (int) SWIG_AsInt(obj1);
21918 if (PyErr_Occurred()) SWIG_fail;
21919 {
21920 PyThreadState* __tstate = wxPyBeginAllowThreads();
21921 result = (bool)(arg1)->DeleteColumn(arg2);
21922
21923 wxPyEndAllowThreads(__tstate);
21924 if (PyErr_Occurred()) SWIG_fail;
21925 }
21926 {
21927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21928 }
21929 return resultobj;
21930 fail:
21931 return NULL;
21932 }
21933
21934
21935 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
21936 PyObject *resultobj;
21937 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21938 bool result;
21939 PyObject * obj0 = 0 ;
21940 char *kwnames[] = {
21941 (char *) "self", NULL
21942 };
21943
21944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
21945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21947 {
21948 PyThreadState* __tstate = wxPyBeginAllowThreads();
21949 result = (bool)(arg1)->DeleteAllColumns();
21950
21951 wxPyEndAllowThreads(__tstate);
21952 if (PyErr_Occurred()) SWIG_fail;
21953 }
21954 {
21955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21956 }
21957 return resultobj;
21958 fail:
21959 return NULL;
21960 }
21961
21962
21963 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
21964 PyObject *resultobj;
21965 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21966 PyObject * obj0 = 0 ;
21967 char *kwnames[] = {
21968 (char *) "self", NULL
21969 };
21970
21971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
21972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21974 {
21975 PyThreadState* __tstate = wxPyBeginAllowThreads();
21976 (arg1)->ClearAll();
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_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21989 PyObject *resultobj;
21990 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21991 long arg2 ;
21992 wxTextCtrl *result;
21993 PyObject * obj0 = 0 ;
21994 PyObject * obj1 = 0 ;
21995 char *kwnames[] = {
21996 (char *) "self",(char *) "item", NULL
21997 };
21998
21999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
22000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22002 arg2 = (long) SWIG_AsLong(obj1);
22003 if (PyErr_Occurred()) SWIG_fail;
22004 {
22005 PyThreadState* __tstate = wxPyBeginAllowThreads();
22006 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
22007
22008 wxPyEndAllowThreads(__tstate);
22009 if (PyErr_Occurred()) SWIG_fail;
22010 }
22011 {
22012 resultobj = wxPyMake_wxObject(result);
22013 }
22014 return resultobj;
22015 fail:
22016 return NULL;
22017 }
22018
22019
22020 static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
22021 PyObject *resultobj;
22022 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22023 bool arg2 ;
22024 bool result;
22025 PyObject * obj0 = 0 ;
22026 PyObject * obj1 = 0 ;
22027 char *kwnames[] = {
22028 (char *) "self",(char *) "cancel", NULL
22029 };
22030
22031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail;
22032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22034 arg2 = (bool) SWIG_AsBool(obj1);
22035 if (PyErr_Occurred()) SWIG_fail;
22036 {
22037 PyThreadState* __tstate = wxPyBeginAllowThreads();
22038 result = (bool)(arg1)->EndEditLabel(arg2);
22039
22040 wxPyEndAllowThreads(__tstate);
22041 if (PyErr_Occurred()) SWIG_fail;
22042 }
22043 {
22044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22045 }
22046 return resultobj;
22047 fail:
22048 return NULL;
22049 }
22050
22051
22052 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
22053 PyObject *resultobj;
22054 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22055 long arg2 ;
22056 bool result;
22057 PyObject * obj0 = 0 ;
22058 PyObject * obj1 = 0 ;
22059 char *kwnames[] = {
22060 (char *) "self",(char *) "item", NULL
22061 };
22062
22063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
22064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22066 arg2 = (long) SWIG_AsLong(obj1);
22067 if (PyErr_Occurred()) SWIG_fail;
22068 {
22069 PyThreadState* __tstate = wxPyBeginAllowThreads();
22070 result = (bool)(arg1)->EnsureVisible(arg2);
22071
22072 wxPyEndAllowThreads(__tstate);
22073 if (PyErr_Occurred()) SWIG_fail;
22074 }
22075 {
22076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22077 }
22078 return resultobj;
22079 fail:
22080 return NULL;
22081 }
22082
22083
22084 static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22085 PyObject *resultobj;
22086 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22087 long arg2 ;
22088 wxString *arg3 = 0 ;
22089 bool arg4 = (bool) False ;
22090 long result;
22091 bool temp3 = False ;
22092 PyObject * obj0 = 0 ;
22093 PyObject * obj1 = 0 ;
22094 PyObject * obj2 = 0 ;
22095 PyObject * obj3 = 0 ;
22096 char *kwnames[] = {
22097 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
22098 };
22099
22100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22103 arg2 = (long) SWIG_AsLong(obj1);
22104 if (PyErr_Occurred()) SWIG_fail;
22105 {
22106 arg3 = wxString_in_helper(obj2);
22107 if (arg3 == NULL) SWIG_fail;
22108 temp3 = True;
22109 }
22110 if (obj3) {
22111 arg4 = (bool) SWIG_AsBool(obj3);
22112 if (PyErr_Occurred()) SWIG_fail;
22113 }
22114 {
22115 PyThreadState* __tstate = wxPyBeginAllowThreads();
22116 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
22117
22118 wxPyEndAllowThreads(__tstate);
22119 if (PyErr_Occurred()) SWIG_fail;
22120 }
22121 resultobj = SWIG_FromLong((long)result);
22122 {
22123 if (temp3)
22124 delete arg3;
22125 }
22126 return resultobj;
22127 fail:
22128 {
22129 if (temp3)
22130 delete arg3;
22131 }
22132 return NULL;
22133 }
22134
22135
22136 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
22137 PyObject *resultobj;
22138 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22139 long arg2 ;
22140 long arg3 ;
22141 long result;
22142 PyObject * obj0 = 0 ;
22143 PyObject * obj1 = 0 ;
22144 PyObject * obj2 = 0 ;
22145 char *kwnames[] = {
22146 (char *) "self",(char *) "start",(char *) "data", NULL
22147 };
22148
22149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22152 arg2 = (long) SWIG_AsLong(obj1);
22153 if (PyErr_Occurred()) SWIG_fail;
22154 arg3 = (long) SWIG_AsLong(obj2);
22155 if (PyErr_Occurred()) SWIG_fail;
22156 {
22157 PyThreadState* __tstate = wxPyBeginAllowThreads();
22158 result = (long)(arg1)->FindItem(arg2,arg3);
22159
22160 wxPyEndAllowThreads(__tstate);
22161 if (PyErr_Occurred()) SWIG_fail;
22162 }
22163 resultobj = SWIG_FromLong((long)result);
22164 return resultobj;
22165 fail:
22166 return NULL;
22167 }
22168
22169
22170 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
22171 PyObject *resultobj;
22172 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22173 long arg2 ;
22174 wxPoint *arg3 = 0 ;
22175 int arg4 ;
22176 long result;
22177 wxPoint temp3 ;
22178 PyObject * obj0 = 0 ;
22179 PyObject * obj1 = 0 ;
22180 PyObject * obj2 = 0 ;
22181 PyObject * obj3 = 0 ;
22182 char *kwnames[] = {
22183 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
22184 };
22185
22186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22189 arg2 = (long) SWIG_AsLong(obj1);
22190 if (PyErr_Occurred()) SWIG_fail;
22191 {
22192 arg3 = &temp3;
22193 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22194 }
22195 arg4 = (int) SWIG_AsInt(obj3);
22196 if (PyErr_Occurred()) SWIG_fail;
22197 {
22198 PyThreadState* __tstate = wxPyBeginAllowThreads();
22199 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
22200
22201 wxPyEndAllowThreads(__tstate);
22202 if (PyErr_Occurred()) SWIG_fail;
22203 }
22204 resultobj = SWIG_FromLong((long)result);
22205 return resultobj;
22206 fail:
22207 return NULL;
22208 }
22209
22210
22211 static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
22212 PyObject *resultobj;
22213 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22214 wxPoint *arg2 = 0 ;
22215 int *arg3 = 0 ;
22216 long result;
22217 wxPoint temp2 ;
22218 int temp3 ;
22219 PyObject * obj0 = 0 ;
22220 PyObject * obj1 = 0 ;
22221 char *kwnames[] = {
22222 (char *) "self",(char *) "point", NULL
22223 };
22224
22225 arg3 = &temp3;
22226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
22227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22229 {
22230 arg2 = &temp2;
22231 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22232 }
22233 {
22234 PyThreadState* __tstate = wxPyBeginAllowThreads();
22235 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
22236
22237 wxPyEndAllowThreads(__tstate);
22238 if (PyErr_Occurred()) SWIG_fail;
22239 }
22240 resultobj = SWIG_FromLong((long)result);
22241 {
22242 PyObject *o = PyInt_FromLong((long) (*arg3));
22243 resultobj = t_output_helper(resultobj,o);
22244 }
22245 return resultobj;
22246 fail:
22247 return NULL;
22248 }
22249
22250
22251 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22252 PyObject *resultobj;
22253 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22254 wxListItem *arg2 = 0 ;
22255 long result;
22256 PyObject * obj0 = 0 ;
22257 PyObject * obj1 = 0 ;
22258 char *kwnames[] = {
22259 (char *) "self",(char *) "info", NULL
22260 };
22261
22262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
22263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22265 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
22266 SWIG_POINTER_EXCEPTION | 0)) == -1)
22267 SWIG_fail;
22268 if (arg2 == NULL) {
22269 PyErr_SetString(PyExc_TypeError,"null reference");
22270 SWIG_fail;
22271 }
22272 {
22273 PyThreadState* __tstate = wxPyBeginAllowThreads();
22274 result = (long)(arg1)->InsertItem(*arg2);
22275
22276 wxPyEndAllowThreads(__tstate);
22277 if (PyErr_Occurred()) SWIG_fail;
22278 }
22279 resultobj = SWIG_FromLong((long)result);
22280 return resultobj;
22281 fail:
22282 return NULL;
22283 }
22284
22285
22286 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22287 PyObject *resultobj;
22288 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22289 long arg2 ;
22290 wxString *arg3 = 0 ;
22291 long result;
22292 bool temp3 = False ;
22293 PyObject * obj0 = 0 ;
22294 PyObject * obj1 = 0 ;
22295 PyObject * obj2 = 0 ;
22296 char *kwnames[] = {
22297 (char *) "self",(char *) "index",(char *) "label", NULL
22298 };
22299
22300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22303 arg2 = (long) SWIG_AsLong(obj1);
22304 if (PyErr_Occurred()) SWIG_fail;
22305 {
22306 arg3 = wxString_in_helper(obj2);
22307 if (arg3 == NULL) SWIG_fail;
22308 temp3 = True;
22309 }
22310 {
22311 PyThreadState* __tstate = wxPyBeginAllowThreads();
22312 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
22313
22314 wxPyEndAllowThreads(__tstate);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
22317 resultobj = SWIG_FromLong((long)result);
22318 {
22319 if (temp3)
22320 delete arg3;
22321 }
22322 return resultobj;
22323 fail:
22324 {
22325 if (temp3)
22326 delete arg3;
22327 }
22328 return NULL;
22329 }
22330
22331
22332 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22333 PyObject *resultobj;
22334 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22335 long arg2 ;
22336 int arg3 ;
22337 long result;
22338 PyObject * obj0 = 0 ;
22339 PyObject * obj1 = 0 ;
22340 PyObject * obj2 = 0 ;
22341 char *kwnames[] = {
22342 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
22343 };
22344
22345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22348 arg2 = (long) SWIG_AsLong(obj1);
22349 if (PyErr_Occurred()) SWIG_fail;
22350 arg3 = (int) SWIG_AsInt(obj2);
22351 if (PyErr_Occurred()) SWIG_fail;
22352 {
22353 PyThreadState* __tstate = wxPyBeginAllowThreads();
22354 result = (long)(arg1)->InsertItem(arg2,arg3);
22355
22356 wxPyEndAllowThreads(__tstate);
22357 if (PyErr_Occurred()) SWIG_fail;
22358 }
22359 resultobj = SWIG_FromLong((long)result);
22360 return resultobj;
22361 fail:
22362 return NULL;
22363 }
22364
22365
22366 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22367 PyObject *resultobj;
22368 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22369 long arg2 ;
22370 wxString *arg3 = 0 ;
22371 int arg4 ;
22372 long result;
22373 bool temp3 = False ;
22374 PyObject * obj0 = 0 ;
22375 PyObject * obj1 = 0 ;
22376 PyObject * obj2 = 0 ;
22377 PyObject * obj3 = 0 ;
22378 char *kwnames[] = {
22379 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
22380 };
22381
22382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22385 arg2 = (long) SWIG_AsLong(obj1);
22386 if (PyErr_Occurred()) SWIG_fail;
22387 {
22388 arg3 = wxString_in_helper(obj2);
22389 if (arg3 == NULL) SWIG_fail;
22390 temp3 = True;
22391 }
22392 arg4 = (int) SWIG_AsInt(obj3);
22393 if (PyErr_Occurred()) SWIG_fail;
22394 {
22395 PyThreadState* __tstate = wxPyBeginAllowThreads();
22396 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
22397
22398 wxPyEndAllowThreads(__tstate);
22399 if (PyErr_Occurred()) SWIG_fail;
22400 }
22401 resultobj = SWIG_FromLong((long)result);
22402 {
22403 if (temp3)
22404 delete arg3;
22405 }
22406 return resultobj;
22407 fail:
22408 {
22409 if (temp3)
22410 delete arg3;
22411 }
22412 return NULL;
22413 }
22414
22415
22416 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
22417 PyObject *resultobj;
22418 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22419 long arg2 ;
22420 wxListItem *arg3 = 0 ;
22421 long result;
22422 PyObject * obj0 = 0 ;
22423 PyObject * obj1 = 0 ;
22424 PyObject * obj2 = 0 ;
22425 char *kwnames[] = {
22426 (char *) "self",(char *) "col",(char *) "info", NULL
22427 };
22428
22429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22432 arg2 = (long) SWIG_AsLong(obj1);
22433 if (PyErr_Occurred()) SWIG_fail;
22434 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
22435 SWIG_POINTER_EXCEPTION | 0)) == -1)
22436 SWIG_fail;
22437 if (arg3 == NULL) {
22438 PyErr_SetString(PyExc_TypeError,"null reference");
22439 SWIG_fail;
22440 }
22441 {
22442 PyThreadState* __tstate = wxPyBeginAllowThreads();
22443 result = (long)(arg1)->InsertColumn(arg2,*arg3);
22444
22445 wxPyEndAllowThreads(__tstate);
22446 if (PyErr_Occurred()) SWIG_fail;
22447 }
22448 resultobj = SWIG_FromLong((long)result);
22449 return resultobj;
22450 fail:
22451 return NULL;
22452 }
22453
22454
22455 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22456 PyObject *resultobj;
22457 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22458 long arg2 ;
22459 wxString *arg3 = 0 ;
22460 int arg4 = (int) wxLIST_FORMAT_LEFT ;
22461 int arg5 = (int) -1 ;
22462 long result;
22463 bool temp3 = False ;
22464 PyObject * obj0 = 0 ;
22465 PyObject * obj1 = 0 ;
22466 PyObject * obj2 = 0 ;
22467 PyObject * obj3 = 0 ;
22468 PyObject * obj4 = 0 ;
22469 char *kwnames[] = {
22470 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
22471 };
22472
22473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22476 arg2 = (long) SWIG_AsLong(obj1);
22477 if (PyErr_Occurred()) SWIG_fail;
22478 {
22479 arg3 = wxString_in_helper(obj2);
22480 if (arg3 == NULL) SWIG_fail;
22481 temp3 = True;
22482 }
22483 if (obj3) {
22484 arg4 = (int) SWIG_AsInt(obj3);
22485 if (PyErr_Occurred()) SWIG_fail;
22486 }
22487 if (obj4) {
22488 arg5 = (int) SWIG_AsInt(obj4);
22489 if (PyErr_Occurred()) SWIG_fail;
22490 }
22491 {
22492 PyThreadState* __tstate = wxPyBeginAllowThreads();
22493 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
22494
22495 wxPyEndAllowThreads(__tstate);
22496 if (PyErr_Occurred()) SWIG_fail;
22497 }
22498 resultobj = SWIG_FromLong((long)result);
22499 {
22500 if (temp3)
22501 delete arg3;
22502 }
22503 return resultobj;
22504 fail:
22505 {
22506 if (temp3)
22507 delete arg3;
22508 }
22509 return NULL;
22510 }
22511
22512
22513 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22514 PyObject *resultobj;
22515 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22516 long arg2 ;
22517 PyObject * obj0 = 0 ;
22518 PyObject * obj1 = 0 ;
22519 char *kwnames[] = {
22520 (char *) "self",(char *) "count", NULL
22521 };
22522
22523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
22524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22526 arg2 = (long) SWIG_AsLong(obj1);
22527 if (PyErr_Occurred()) SWIG_fail;
22528 {
22529 PyThreadState* __tstate = wxPyBeginAllowThreads();
22530 (arg1)->SetItemCount(arg2);
22531
22532 wxPyEndAllowThreads(__tstate);
22533 if (PyErr_Occurred()) SWIG_fail;
22534 }
22535 Py_INCREF(Py_None); resultobj = Py_None;
22536 return resultobj;
22537 fail:
22538 return NULL;
22539 }
22540
22541
22542 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
22543 PyObject *resultobj;
22544 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22545 int arg2 ;
22546 int arg3 ;
22547 bool result;
22548 PyObject * obj0 = 0 ;
22549 PyObject * obj1 = 0 ;
22550 PyObject * obj2 = 0 ;
22551 char *kwnames[] = {
22552 (char *) "self",(char *) "dx",(char *) "dy", NULL
22553 };
22554
22555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22558 arg2 = (int) SWIG_AsInt(obj1);
22559 if (PyErr_Occurred()) SWIG_fail;
22560 arg3 = (int) SWIG_AsInt(obj2);
22561 if (PyErr_Occurred()) SWIG_fail;
22562 {
22563 PyThreadState* __tstate = wxPyBeginAllowThreads();
22564 result = (bool)(arg1)->ScrollList(arg2,arg3);
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_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22579 PyObject *resultobj;
22580 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22581 long arg2 ;
22582 wxColour *arg3 = 0 ;
22583 wxColour temp3 ;
22584 PyObject * obj0 = 0 ;
22585 PyObject * obj1 = 0 ;
22586 PyObject * obj2 = 0 ;
22587 char *kwnames[] = {
22588 (char *) "self",(char *) "item",(char *) "col", NULL
22589 };
22590
22591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22594 arg2 = (long) SWIG_AsLong(obj1);
22595 if (PyErr_Occurred()) SWIG_fail;
22596 {
22597 arg3 = &temp3;
22598 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22599 }
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
22603
22604 wxPyEndAllowThreads(__tstate);
22605 if (PyErr_Occurred()) SWIG_fail;
22606 }
22607 Py_INCREF(Py_None); resultobj = Py_None;
22608 return resultobj;
22609 fail:
22610 return NULL;
22611 }
22612
22613
22614 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22615 PyObject *resultobj;
22616 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22617 long arg2 ;
22618 wxColour result;
22619 PyObject * obj0 = 0 ;
22620 PyObject * obj1 = 0 ;
22621 char *kwnames[] = {
22622 (char *) "self",(char *) "item", NULL
22623 };
22624
22625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
22626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22628 arg2 = (long) SWIG_AsLong(obj1);
22629 if (PyErr_Occurred()) SWIG_fail;
22630 {
22631 PyThreadState* __tstate = wxPyBeginAllowThreads();
22632 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
22633
22634 wxPyEndAllowThreads(__tstate);
22635 if (PyErr_Occurred()) SWIG_fail;
22636 }
22637 {
22638 wxColour * resultptr;
22639 resultptr = new wxColour((wxColour &) result);
22640 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22641 }
22642 return resultobj;
22643 fail:
22644 return NULL;
22645 }
22646
22647
22648 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22649 PyObject *resultobj;
22650 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22651 long arg2 ;
22652 wxColour *arg3 = 0 ;
22653 wxColour temp3 ;
22654 PyObject * obj0 = 0 ;
22655 PyObject * obj1 = 0 ;
22656 PyObject * obj2 = 0 ;
22657 char *kwnames[] = {
22658 (char *) "self",(char *) "item",(char *) "col", NULL
22659 };
22660
22661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22664 arg2 = (long) SWIG_AsLong(obj1);
22665 if (PyErr_Occurred()) SWIG_fail;
22666 {
22667 arg3 = &temp3;
22668 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22669 }
22670 {
22671 PyThreadState* __tstate = wxPyBeginAllowThreads();
22672 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
22673
22674 wxPyEndAllowThreads(__tstate);
22675 if (PyErr_Occurred()) SWIG_fail;
22676 }
22677 Py_INCREF(Py_None); resultobj = Py_None;
22678 return resultobj;
22679 fail:
22680 return NULL;
22681 }
22682
22683
22684 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22685 PyObject *resultobj;
22686 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22687 long arg2 ;
22688 wxColour result;
22689 PyObject * obj0 = 0 ;
22690 PyObject * obj1 = 0 ;
22691 char *kwnames[] = {
22692 (char *) "self",(char *) "item", NULL
22693 };
22694
22695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
22696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22698 arg2 = (long) SWIG_AsLong(obj1);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
22703
22704 wxPyEndAllowThreads(__tstate);
22705 if (PyErr_Occurred()) SWIG_fail;
22706 }
22707 {
22708 wxColour * resultptr;
22709 resultptr = new wxColour((wxColour &) result);
22710 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22711 }
22712 return resultobj;
22713 fail:
22714 return NULL;
22715 }
22716
22717
22718 static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22719 PyObject *resultobj;
22720 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22721 PyObject *arg2 = (PyObject *) 0 ;
22722 bool result;
22723 PyObject * obj0 = 0 ;
22724 PyObject * obj1 = 0 ;
22725 char *kwnames[] = {
22726 (char *) "self",(char *) "func", NULL
22727 };
22728
22729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
22730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22732 arg2 = obj1;
22733 {
22734 PyThreadState* __tstate = wxPyBeginAllowThreads();
22735 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
22736
22737 wxPyEndAllowThreads(__tstate);
22738 if (PyErr_Occurred()) SWIG_fail;
22739 }
22740 {
22741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22742 }
22743 return resultobj;
22744 fail:
22745 return NULL;
22746 }
22747
22748
22749 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
22750 PyObject *resultobj;
22751 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22752 wxWindow *result;
22753 PyObject * obj0 = 0 ;
22754 char *kwnames[] = {
22755 (char *) "self", NULL
22756 };
22757
22758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
22759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22761 {
22762 PyThreadState* __tstate = wxPyBeginAllowThreads();
22763 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
22764
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 {
22769 resultobj = wxPyMake_wxObject(result);
22770 }
22771 return resultobj;
22772 fail:
22773 return NULL;
22774 }
22775
22776
22777 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
22778 PyObject *resultobj;
22779 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
22780 wxVisualAttributes result;
22781 PyObject * obj0 = 0 ;
22782 char *kwnames[] = {
22783 (char *) "variant", NULL
22784 };
22785
22786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
22787 if (obj0) {
22788 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
22789 if (PyErr_Occurred()) SWIG_fail;
22790 }
22791 {
22792 PyThreadState* __tstate = wxPyBeginAllowThreads();
22793 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
22794
22795 wxPyEndAllowThreads(__tstate);
22796 if (PyErr_Occurred()) SWIG_fail;
22797 }
22798 {
22799 wxVisualAttributes * resultptr;
22800 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
22801 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
22802 }
22803 return resultobj;
22804 fail:
22805 return NULL;
22806 }
22807
22808
22809 static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
22810 PyObject *obj;
22811 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22812 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
22813 Py_INCREF(obj);
22814 return Py_BuildValue((char *)"");
22815 }
22816 static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
22817 PyObject *resultobj;
22818 wxWindow *arg1 = (wxWindow *) 0 ;
22819 int arg2 = (int) -1 ;
22820 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22821 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22822 wxSize const &arg4_defvalue = wxDefaultSize ;
22823 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22824 long arg5 = (long) wxLC_REPORT ;
22825 wxValidator const &arg6_defvalue = wxDefaultValidator ;
22826 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
22827 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
22828 wxString *arg7 = (wxString *) &arg7_defvalue ;
22829 wxListView *result;
22830 wxPoint temp3 ;
22831 wxSize temp4 ;
22832 bool temp7 = False ;
22833 PyObject * obj0 = 0 ;
22834 PyObject * obj1 = 0 ;
22835 PyObject * obj2 = 0 ;
22836 PyObject * obj3 = 0 ;
22837 PyObject * obj4 = 0 ;
22838 PyObject * obj5 = 0 ;
22839 PyObject * obj6 = 0 ;
22840 char *kwnames[] = {
22841 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22842 };
22843
22844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22847 if (obj1) {
22848 arg2 = (int) SWIG_AsInt(obj1);
22849 if (PyErr_Occurred()) SWIG_fail;
22850 }
22851 if (obj2) {
22852 {
22853 arg3 = &temp3;
22854 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22855 }
22856 }
22857 if (obj3) {
22858 {
22859 arg4 = &temp4;
22860 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22861 }
22862 }
22863 if (obj4) {
22864 arg5 = (long) SWIG_AsLong(obj4);
22865 if (PyErr_Occurred()) SWIG_fail;
22866 }
22867 if (obj5) {
22868 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
22869 SWIG_POINTER_EXCEPTION | 0)) == -1)
22870 SWIG_fail;
22871 if (arg6 == NULL) {
22872 PyErr_SetString(PyExc_TypeError,"null reference");
22873 SWIG_fail;
22874 }
22875 }
22876 if (obj6) {
22877 {
22878 arg7 = wxString_in_helper(obj6);
22879 if (arg7 == NULL) SWIG_fail;
22880 temp7 = True;
22881 }
22882 }
22883 {
22884 PyThreadState* __tstate = wxPyBeginAllowThreads();
22885 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
22886
22887 wxPyEndAllowThreads(__tstate);
22888 if (PyErr_Occurred()) SWIG_fail;
22889 }
22890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
22891 {
22892 if (temp7)
22893 delete arg7;
22894 }
22895 return resultobj;
22896 fail:
22897 {
22898 if (temp7)
22899 delete arg7;
22900 }
22901 return NULL;
22902 }
22903
22904
22905 static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
22906 PyObject *resultobj;
22907 wxListView *result;
22908 char *kwnames[] = {
22909 NULL
22910 };
22911
22912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
22913 {
22914 PyThreadState* __tstate = wxPyBeginAllowThreads();
22915 result = (wxListView *)new wxListView();
22916
22917 wxPyEndAllowThreads(__tstate);
22918 if (PyErr_Occurred()) SWIG_fail;
22919 }
22920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
22921 return resultobj;
22922 fail:
22923 return NULL;
22924 }
22925
22926
22927 static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
22928 PyObject *resultobj;
22929 wxListView *arg1 = (wxListView *) 0 ;
22930 wxWindow *arg2 = (wxWindow *) 0 ;
22931 int arg3 = (int) -1 ;
22932 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22933 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22934 wxSize const &arg5_defvalue = wxDefaultSize ;
22935 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22936 long arg6 = (long) wxLC_REPORT ;
22937 wxValidator const &arg7_defvalue = wxDefaultValidator ;
22938 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
22939 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
22940 wxString *arg8 = (wxString *) &arg8_defvalue ;
22941 bool result;
22942 wxPoint temp4 ;
22943 wxSize temp5 ;
22944 bool temp8 = False ;
22945 PyObject * obj0 = 0 ;
22946 PyObject * obj1 = 0 ;
22947 PyObject * obj2 = 0 ;
22948 PyObject * obj3 = 0 ;
22949 PyObject * obj4 = 0 ;
22950 PyObject * obj5 = 0 ;
22951 PyObject * obj6 = 0 ;
22952 PyObject * obj7 = 0 ;
22953 char *kwnames[] = {
22954 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22955 };
22956
22957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
22958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22960 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
22961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22962 if (obj2) {
22963 arg3 = (int) SWIG_AsInt(obj2);
22964 if (PyErr_Occurred()) SWIG_fail;
22965 }
22966 if (obj3) {
22967 {
22968 arg4 = &temp4;
22969 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22970 }
22971 }
22972 if (obj4) {
22973 {
22974 arg5 = &temp5;
22975 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22976 }
22977 }
22978 if (obj5) {
22979 arg6 = (long) SWIG_AsLong(obj5);
22980 if (PyErr_Occurred()) SWIG_fail;
22981 }
22982 if (obj6) {
22983 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
22984 SWIG_POINTER_EXCEPTION | 0)) == -1)
22985 SWIG_fail;
22986 if (arg7 == NULL) {
22987 PyErr_SetString(PyExc_TypeError,"null reference");
22988 SWIG_fail;
22989 }
22990 }
22991 if (obj7) {
22992 {
22993 arg8 = wxString_in_helper(obj7);
22994 if (arg8 == NULL) SWIG_fail;
22995 temp8 = True;
22996 }
22997 }
22998 {
22999 PyThreadState* __tstate = wxPyBeginAllowThreads();
23000 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23001
23002 wxPyEndAllowThreads(__tstate);
23003 if (PyErr_Occurred()) SWIG_fail;
23004 }
23005 {
23006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23007 }
23008 {
23009 if (temp8)
23010 delete arg8;
23011 }
23012 return resultobj;
23013 fail:
23014 {
23015 if (temp8)
23016 delete arg8;
23017 }
23018 return NULL;
23019 }
23020
23021
23022 static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
23023 PyObject *resultobj;
23024 wxListView *arg1 = (wxListView *) 0 ;
23025 long arg2 ;
23026 bool arg3 = (bool) True ;
23027 PyObject * obj0 = 0 ;
23028 PyObject * obj1 = 0 ;
23029 PyObject * obj2 = 0 ;
23030 char *kwnames[] = {
23031 (char *) "self",(char *) "n",(char *) "on", NULL
23032 };
23033
23034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
23035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23037 arg2 = (long) SWIG_AsLong(obj1);
23038 if (PyErr_Occurred()) SWIG_fail;
23039 if (obj2) {
23040 arg3 = (bool) SWIG_AsBool(obj2);
23041 if (PyErr_Occurred()) SWIG_fail;
23042 }
23043 {
23044 PyThreadState* __tstate = wxPyBeginAllowThreads();
23045 (arg1)->Select(arg2,arg3);
23046
23047 wxPyEndAllowThreads(__tstate);
23048 if (PyErr_Occurred()) SWIG_fail;
23049 }
23050 Py_INCREF(Py_None); resultobj = Py_None;
23051 return resultobj;
23052 fail:
23053 return NULL;
23054 }
23055
23056
23057 static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
23058 PyObject *resultobj;
23059 wxListView *arg1 = (wxListView *) 0 ;
23060 long arg2 ;
23061 PyObject * obj0 = 0 ;
23062 PyObject * obj1 = 0 ;
23063 char *kwnames[] = {
23064 (char *) "self",(char *) "index", NULL
23065 };
23066
23067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
23068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23070 arg2 = (long) SWIG_AsLong(obj1);
23071 if (PyErr_Occurred()) SWIG_fail;
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 (arg1)->Focus(arg2);
23075
23076 wxPyEndAllowThreads(__tstate);
23077 if (PyErr_Occurred()) SWIG_fail;
23078 }
23079 Py_INCREF(Py_None); resultobj = Py_None;
23080 return resultobj;
23081 fail:
23082 return NULL;
23083 }
23084
23085
23086 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23087 PyObject *resultobj;
23088 wxListView *arg1 = (wxListView *) 0 ;
23089 long result;
23090 PyObject * obj0 = 0 ;
23091 char *kwnames[] = {
23092 (char *) "self", NULL
23093 };
23094
23095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
23096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23098 {
23099 PyThreadState* __tstate = wxPyBeginAllowThreads();
23100 result = (long)((wxListView const *)arg1)->GetFocusedItem();
23101
23102 wxPyEndAllowThreads(__tstate);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 resultobj = SWIG_FromLong((long)result);
23106 return resultobj;
23107 fail:
23108 return NULL;
23109 }
23110
23111
23112 static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23113 PyObject *resultobj;
23114 wxListView *arg1 = (wxListView *) 0 ;
23115 long arg2 ;
23116 long result;
23117 PyObject * obj0 = 0 ;
23118 PyObject * obj1 = 0 ;
23119 char *kwnames[] = {
23120 (char *) "self",(char *) "item", NULL
23121 };
23122
23123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
23124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23126 arg2 = (long) SWIG_AsLong(obj1);
23127 if (PyErr_Occurred()) SWIG_fail;
23128 {
23129 PyThreadState* __tstate = wxPyBeginAllowThreads();
23130 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
23131
23132 wxPyEndAllowThreads(__tstate);
23133 if (PyErr_Occurred()) SWIG_fail;
23134 }
23135 resultobj = SWIG_FromLong((long)result);
23136 return resultobj;
23137 fail:
23138 return NULL;
23139 }
23140
23141
23142 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23143 PyObject *resultobj;
23144 wxListView *arg1 = (wxListView *) 0 ;
23145 long result;
23146 PyObject * obj0 = 0 ;
23147 char *kwnames[] = {
23148 (char *) "self", NULL
23149 };
23150
23151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
23152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23154 {
23155 PyThreadState* __tstate = wxPyBeginAllowThreads();
23156 result = (long)((wxListView const *)arg1)->GetFirstSelected();
23157
23158 wxPyEndAllowThreads(__tstate);
23159 if (PyErr_Occurred()) SWIG_fail;
23160 }
23161 resultobj = SWIG_FromLong((long)result);
23162 return resultobj;
23163 fail:
23164 return NULL;
23165 }
23166
23167
23168 static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23169 PyObject *resultobj;
23170 wxListView *arg1 = (wxListView *) 0 ;
23171 long arg2 ;
23172 bool result;
23173 PyObject * obj0 = 0 ;
23174 PyObject * obj1 = 0 ;
23175 char *kwnames[] = {
23176 (char *) "self",(char *) "index", NULL
23177 };
23178
23179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
23180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23182 arg2 = (long) SWIG_AsLong(obj1);
23183 if (PyErr_Occurred()) SWIG_fail;
23184 {
23185 PyThreadState* __tstate = wxPyBeginAllowThreads();
23186 result = (bool)(arg1)->IsSelected(arg2);
23187
23188 wxPyEndAllowThreads(__tstate);
23189 if (PyErr_Occurred()) SWIG_fail;
23190 }
23191 {
23192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23193 }
23194 return resultobj;
23195 fail:
23196 return NULL;
23197 }
23198
23199
23200 static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23201 PyObject *resultobj;
23202 wxListView *arg1 = (wxListView *) 0 ;
23203 int arg2 ;
23204 int arg3 ;
23205 PyObject * obj0 = 0 ;
23206 PyObject * obj1 = 0 ;
23207 PyObject * obj2 = 0 ;
23208 char *kwnames[] = {
23209 (char *) "self",(char *) "col",(char *) "image", NULL
23210 };
23211
23212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
23213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23215 arg2 = (int) SWIG_AsInt(obj1);
23216 if (PyErr_Occurred()) SWIG_fail;
23217 arg3 = (int) SWIG_AsInt(obj2);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 {
23220 PyThreadState* __tstate = wxPyBeginAllowThreads();
23221 (arg1)->SetColumnImage(arg2,arg3);
23222
23223 wxPyEndAllowThreads(__tstate);
23224 if (PyErr_Occurred()) SWIG_fail;
23225 }
23226 Py_INCREF(Py_None); resultobj = Py_None;
23227 return resultobj;
23228 fail:
23229 return NULL;
23230 }
23231
23232
23233 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23234 PyObject *resultobj;
23235 wxListView *arg1 = (wxListView *) 0 ;
23236 int arg2 ;
23237 PyObject * obj0 = 0 ;
23238 PyObject * obj1 = 0 ;
23239 char *kwnames[] = {
23240 (char *) "self",(char *) "col", NULL
23241 };
23242
23243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
23244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23246 arg2 = (int) SWIG_AsInt(obj1);
23247 if (PyErr_Occurred()) SWIG_fail;
23248 {
23249 PyThreadState* __tstate = wxPyBeginAllowThreads();
23250 (arg1)->ClearColumnImage(arg2);
23251
23252 wxPyEndAllowThreads(__tstate);
23253 if (PyErr_Occurred()) SWIG_fail;
23254 }
23255 Py_INCREF(Py_None); resultobj = Py_None;
23256 return resultobj;
23257 fail:
23258 return NULL;
23259 }
23260
23261
23262 static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
23263 PyObject *obj;
23264 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23265 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
23266 Py_INCREF(obj);
23267 return Py_BuildValue((char *)"");
23268 }
23269 static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
23270 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
23271 return 1;
23272 }
23273
23274
23275 static PyObject *_wrap_TreeCtrlNameStr_get() {
23276 PyObject *pyobj;
23277
23278 {
23279 #if wxUSE_UNICODE
23280 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
23281 #else
23282 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
23283 #endif
23284 }
23285 return pyobj;
23286 }
23287
23288
23289 static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
23290 PyObject *resultobj;
23291 wxTreeItemId *result;
23292 char *kwnames[] = {
23293 NULL
23294 };
23295
23296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
23297 {
23298 PyThreadState* __tstate = wxPyBeginAllowThreads();
23299 result = (wxTreeItemId *)new wxTreeItemId();
23300
23301 wxPyEndAllowThreads(__tstate);
23302 if (PyErr_Occurred()) SWIG_fail;
23303 }
23304 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
23305 return resultobj;
23306 fail:
23307 return NULL;
23308 }
23309
23310
23311 static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
23312 PyObject *resultobj;
23313 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23314 PyObject * obj0 = 0 ;
23315 char *kwnames[] = {
23316 (char *) "self", NULL
23317 };
23318
23319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
23320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23322 {
23323 PyThreadState* __tstate = wxPyBeginAllowThreads();
23324 delete arg1;
23325
23326 wxPyEndAllowThreads(__tstate);
23327 if (PyErr_Occurred()) SWIG_fail;
23328 }
23329 Py_INCREF(Py_None); resultobj = Py_None;
23330 return resultobj;
23331 fail:
23332 return NULL;
23333 }
23334
23335
23336 static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
23337 PyObject *resultobj;
23338 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23339 bool result;
23340 PyObject * obj0 = 0 ;
23341 char *kwnames[] = {
23342 (char *) "self", NULL
23343 };
23344
23345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
23346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23348 {
23349 PyThreadState* __tstate = wxPyBeginAllowThreads();
23350 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
23351
23352 wxPyEndAllowThreads(__tstate);
23353 if (PyErr_Occurred()) SWIG_fail;
23354 }
23355 {
23356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23357 }
23358 return resultobj;
23359 fail:
23360 return NULL;
23361 }
23362
23363
23364 static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23365 PyObject *resultobj;
23366 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23367 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
23368 bool result;
23369 PyObject * obj0 = 0 ;
23370 PyObject * obj1 = 0 ;
23371 char *kwnames[] = {
23372 (char *) "self",(char *) "other", NULL
23373 };
23374
23375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
23376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23378 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23380 {
23381 PyThreadState* __tstate = wxPyBeginAllowThreads();
23382 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
23383
23384 wxPyEndAllowThreads(__tstate);
23385 if (PyErr_Occurred()) SWIG_fail;
23386 }
23387 {
23388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23389 }
23390 return resultobj;
23391 fail:
23392 return NULL;
23393 }
23394
23395
23396 static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23397 PyObject *resultobj;
23398 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23399 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
23400 bool result;
23401 PyObject * obj0 = 0 ;
23402 PyObject * obj1 = 0 ;
23403 char *kwnames[] = {
23404 (char *) "self",(char *) "other", NULL
23405 };
23406
23407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
23408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23410 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23412 {
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
23415
23416 wxPyEndAllowThreads(__tstate);
23417 if (PyErr_Occurred()) SWIG_fail;
23418 }
23419 {
23420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23421 }
23422 return resultobj;
23423 fail:
23424 return NULL;
23425 }
23426
23427
23428 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
23429 PyObject *resultobj;
23430 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23431 void *arg2 = (void *) 0 ;
23432 PyObject * obj0 = 0 ;
23433 PyObject * obj1 = 0 ;
23434 char *kwnames[] = {
23435 (char *) "self",(char *) "m_pItem", NULL
23436 };
23437
23438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
23439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23441 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23442 if (arg1) (arg1)->m_pItem = arg2;
23443
23444 Py_INCREF(Py_None); resultobj = Py_None;
23445 return resultobj;
23446 fail:
23447 return NULL;
23448 }
23449
23450
23451 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
23452 PyObject *resultobj;
23453 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23454 void *result;
23455 PyObject * obj0 = 0 ;
23456 char *kwnames[] = {
23457 (char *) "self", NULL
23458 };
23459
23460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
23461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23463 result = (void *) ((arg1)->m_pItem);
23464
23465 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
23466 return resultobj;
23467 fail:
23468 return NULL;
23469 }
23470
23471
23472 static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
23473 PyObject *obj;
23474 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23475 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
23476 Py_INCREF(obj);
23477 return Py_BuildValue((char *)"");
23478 }
23479 static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
23480 PyObject *resultobj;
23481 PyObject *arg1 = (PyObject *) NULL ;
23482 wxPyTreeItemData *result;
23483 PyObject * obj0 = 0 ;
23484 char *kwnames[] = {
23485 (char *) "obj", NULL
23486 };
23487
23488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
23489 if (obj0) {
23490 arg1 = obj0;
23491 }
23492 {
23493 PyThreadState* __tstate = wxPyBeginAllowThreads();
23494 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
23495
23496 wxPyEndAllowThreads(__tstate);
23497 if (PyErr_Occurred()) SWIG_fail;
23498 }
23499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
23500 return resultobj;
23501 fail:
23502 return NULL;
23503 }
23504
23505
23506 static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23507 PyObject *resultobj;
23508 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23509 PyObject *result;
23510 PyObject * obj0 = 0 ;
23511 char *kwnames[] = {
23512 (char *) "self", NULL
23513 };
23514
23515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
23516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 result = (PyObject *)(arg1)->GetData();
23521
23522 wxPyEndAllowThreads(__tstate);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 }
23525 resultobj = result;
23526 return resultobj;
23527 fail:
23528 return NULL;
23529 }
23530
23531
23532 static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23533 PyObject *resultobj;
23534 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23535 PyObject *arg2 = (PyObject *) 0 ;
23536 PyObject * obj0 = 0 ;
23537 PyObject * obj1 = 0 ;
23538 char *kwnames[] = {
23539 (char *) "self",(char *) "obj", NULL
23540 };
23541
23542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
23543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23545 arg2 = obj1;
23546 {
23547 PyThreadState* __tstate = wxPyBeginAllowThreads();
23548 (arg1)->SetData(arg2);
23549
23550 wxPyEndAllowThreads(__tstate);
23551 if (PyErr_Occurred()) SWIG_fail;
23552 }
23553 Py_INCREF(Py_None); resultobj = Py_None;
23554 return resultobj;
23555 fail:
23556 return NULL;
23557 }
23558
23559
23560 static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23561 PyObject *resultobj;
23562 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23563 wxTreeItemId *result;
23564 PyObject * obj0 = 0 ;
23565 char *kwnames[] = {
23566 (char *) "self", NULL
23567 };
23568
23569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
23570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23572 {
23573 PyThreadState* __tstate = wxPyBeginAllowThreads();
23574 {
23575 wxTreeItemId const &_result_ref = (arg1)->GetId();
23576 result = (wxTreeItemId *) &_result_ref;
23577 }
23578
23579 wxPyEndAllowThreads(__tstate);
23580 if (PyErr_Occurred()) SWIG_fail;
23581 }
23582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
23583 return resultobj;
23584 fail:
23585 return NULL;
23586 }
23587
23588
23589 static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23590 PyObject *resultobj;
23591 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23592 wxTreeItemId *arg2 = 0 ;
23593 PyObject * obj0 = 0 ;
23594 PyObject * obj1 = 0 ;
23595 char *kwnames[] = {
23596 (char *) "self",(char *) "id", NULL
23597 };
23598
23599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
23600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23602 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23603 SWIG_POINTER_EXCEPTION | 0)) == -1)
23604 SWIG_fail;
23605 if (arg2 == NULL) {
23606 PyErr_SetString(PyExc_TypeError,"null reference");
23607 SWIG_fail;
23608 }
23609 {
23610 PyThreadState* __tstate = wxPyBeginAllowThreads();
23611 (arg1)->SetId((wxTreeItemId const &)*arg2);
23612
23613 wxPyEndAllowThreads(__tstate);
23614 if (PyErr_Occurred()) SWIG_fail;
23615 }
23616 Py_INCREF(Py_None); resultobj = Py_None;
23617 return resultobj;
23618 fail:
23619 return NULL;
23620 }
23621
23622
23623 static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
23624 PyObject *resultobj;
23625 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23626 PyObject * obj0 = 0 ;
23627 char *kwnames[] = {
23628 (char *) "self", NULL
23629 };
23630
23631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
23632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23634 {
23635 PyThreadState* __tstate = wxPyBeginAllowThreads();
23636 wxPyTreeItemData_Destroy(arg1);
23637
23638 wxPyEndAllowThreads(__tstate);
23639 if (PyErr_Occurred()) SWIG_fail;
23640 }
23641 Py_INCREF(Py_None); resultobj = Py_None;
23642 return resultobj;
23643 fail:
23644 return NULL;
23645 }
23646
23647
23648 static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
23649 PyObject *obj;
23650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23651 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
23652 Py_INCREF(obj);
23653 return Py_BuildValue((char *)"");
23654 }
23655 static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23656 PyObject *resultobj;
23657 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
23658 int arg2 = (int) 0 ;
23659 wxTreeEvent *result;
23660 PyObject * obj0 = 0 ;
23661 PyObject * obj1 = 0 ;
23662 char *kwnames[] = {
23663 (char *) "commandType",(char *) "id", NULL
23664 };
23665
23666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
23667 if (obj0) {
23668 arg1 = (wxEventType) SWIG_AsInt(obj0);
23669 if (PyErr_Occurred()) SWIG_fail;
23670 }
23671 if (obj1) {
23672 arg2 = (int) SWIG_AsInt(obj1);
23673 if (PyErr_Occurred()) SWIG_fail;
23674 }
23675 {
23676 PyThreadState* __tstate = wxPyBeginAllowThreads();
23677 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
23678
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
23683 return resultobj;
23684 fail:
23685 return NULL;
23686 }
23687
23688
23689 static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23690 PyObject *resultobj;
23691 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23692 wxTreeItemId result;
23693 PyObject * obj0 = 0 ;
23694 char *kwnames[] = {
23695 (char *) "self", NULL
23696 };
23697
23698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
23699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23701 {
23702 PyThreadState* __tstate = wxPyBeginAllowThreads();
23703 result = ((wxTreeEvent const *)arg1)->GetItem();
23704
23705 wxPyEndAllowThreads(__tstate);
23706 if (PyErr_Occurred()) SWIG_fail;
23707 }
23708 {
23709 wxTreeItemId * resultptr;
23710 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23711 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
23712 }
23713 return resultobj;
23714 fail:
23715 return NULL;
23716 }
23717
23718
23719 static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23720 PyObject *resultobj;
23721 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23722 wxTreeItemId *arg2 = 0 ;
23723 PyObject * obj0 = 0 ;
23724 PyObject * obj1 = 0 ;
23725 char *kwnames[] = {
23726 (char *) "self",(char *) "item", NULL
23727 };
23728
23729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
23730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23732 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23733 SWIG_POINTER_EXCEPTION | 0)) == -1)
23734 SWIG_fail;
23735 if (arg2 == NULL) {
23736 PyErr_SetString(PyExc_TypeError,"null reference");
23737 SWIG_fail;
23738 }
23739 {
23740 PyThreadState* __tstate = wxPyBeginAllowThreads();
23741 (arg1)->SetItem((wxTreeItemId const &)*arg2);
23742
23743 wxPyEndAllowThreads(__tstate);
23744 if (PyErr_Occurred()) SWIG_fail;
23745 }
23746 Py_INCREF(Py_None); resultobj = Py_None;
23747 return resultobj;
23748 fail:
23749 return NULL;
23750 }
23751
23752
23753 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23754 PyObject *resultobj;
23755 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23756 wxTreeItemId result;
23757 PyObject * obj0 = 0 ;
23758 char *kwnames[] = {
23759 (char *) "self", NULL
23760 };
23761
23762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
23763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23765 {
23766 PyThreadState* __tstate = wxPyBeginAllowThreads();
23767 result = ((wxTreeEvent const *)arg1)->GetOldItem();
23768
23769 wxPyEndAllowThreads(__tstate);
23770 if (PyErr_Occurred()) SWIG_fail;
23771 }
23772 {
23773 wxTreeItemId * resultptr;
23774 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23775 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
23776 }
23777 return resultobj;
23778 fail:
23779 return NULL;
23780 }
23781
23782
23783 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23784 PyObject *resultobj;
23785 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23786 wxTreeItemId *arg2 = 0 ;
23787 PyObject * obj0 = 0 ;
23788 PyObject * obj1 = 0 ;
23789 char *kwnames[] = {
23790 (char *) "self",(char *) "item", NULL
23791 };
23792
23793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
23794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23796 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23797 SWIG_POINTER_EXCEPTION | 0)) == -1)
23798 SWIG_fail;
23799 if (arg2 == NULL) {
23800 PyErr_SetString(PyExc_TypeError,"null reference");
23801 SWIG_fail;
23802 }
23803 {
23804 PyThreadState* __tstate = wxPyBeginAllowThreads();
23805 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
23806
23807 wxPyEndAllowThreads(__tstate);
23808 if (PyErr_Occurred()) SWIG_fail;
23809 }
23810 Py_INCREF(Py_None); resultobj = Py_None;
23811 return resultobj;
23812 fail:
23813 return NULL;
23814 }
23815
23816
23817 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
23818 PyObject *resultobj;
23819 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23820 wxPoint result;
23821 PyObject * obj0 = 0 ;
23822 char *kwnames[] = {
23823 (char *) "self", NULL
23824 };
23825
23826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
23827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23829 {
23830 PyThreadState* __tstate = wxPyBeginAllowThreads();
23831 result = ((wxTreeEvent const *)arg1)->GetPoint();
23832
23833 wxPyEndAllowThreads(__tstate);
23834 if (PyErr_Occurred()) SWIG_fail;
23835 }
23836 {
23837 wxPoint * resultptr;
23838 resultptr = new wxPoint((wxPoint &) result);
23839 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
23840 }
23841 return resultobj;
23842 fail:
23843 return NULL;
23844 }
23845
23846
23847 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
23848 PyObject *resultobj;
23849 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23850 wxPoint *arg2 = 0 ;
23851 wxPoint temp2 ;
23852 PyObject * obj0 = 0 ;
23853 PyObject * obj1 = 0 ;
23854 char *kwnames[] = {
23855 (char *) "self",(char *) "pt", NULL
23856 };
23857
23858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
23859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23861 {
23862 arg2 = &temp2;
23863 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23864 }
23865 {
23866 PyThreadState* __tstate = wxPyBeginAllowThreads();
23867 (arg1)->SetPoint((wxPoint const &)*arg2);
23868
23869 wxPyEndAllowThreads(__tstate);
23870 if (PyErr_Occurred()) SWIG_fail;
23871 }
23872 Py_INCREF(Py_None); resultobj = Py_None;
23873 return resultobj;
23874 fail:
23875 return NULL;
23876 }
23877
23878
23879 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23880 PyObject *resultobj;
23881 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23882 wxKeyEvent *result;
23883 PyObject * obj0 = 0 ;
23884 char *kwnames[] = {
23885 (char *) "self", NULL
23886 };
23887
23888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
23889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23891 {
23892 PyThreadState* __tstate = wxPyBeginAllowThreads();
23893 {
23894 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
23895 result = (wxKeyEvent *) &_result_ref;
23896 }
23897
23898 wxPyEndAllowThreads(__tstate);
23899 if (PyErr_Occurred()) SWIG_fail;
23900 }
23901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
23902 return resultobj;
23903 fail:
23904 return NULL;
23905 }
23906
23907
23908 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
23909 PyObject *resultobj;
23910 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23911 int result;
23912 PyObject * obj0 = 0 ;
23913 char *kwnames[] = {
23914 (char *) "self", NULL
23915 };
23916
23917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
23918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23920 {
23921 PyThreadState* __tstate = wxPyBeginAllowThreads();
23922 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
23923
23924 wxPyEndAllowThreads(__tstate);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 resultobj = SWIG_FromInt((int)result);
23928 return resultobj;
23929 fail:
23930 return NULL;
23931 }
23932
23933
23934 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23935 PyObject *resultobj;
23936 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23937 wxKeyEvent *arg2 = 0 ;
23938 PyObject * obj0 = 0 ;
23939 PyObject * obj1 = 0 ;
23940 char *kwnames[] = {
23941 (char *) "self",(char *) "evt", NULL
23942 };
23943
23944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
23945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23947 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
23948 SWIG_POINTER_EXCEPTION | 0)) == -1)
23949 SWIG_fail;
23950 if (arg2 == NULL) {
23951 PyErr_SetString(PyExc_TypeError,"null reference");
23952 SWIG_fail;
23953 }
23954 {
23955 PyThreadState* __tstate = wxPyBeginAllowThreads();
23956 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
23957
23958 wxPyEndAllowThreads(__tstate);
23959 if (PyErr_Occurred()) SWIG_fail;
23960 }
23961 Py_INCREF(Py_None); resultobj = Py_None;
23962 return resultobj;
23963 fail:
23964 return NULL;
23965 }
23966
23967
23968 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
23969 PyObject *resultobj;
23970 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23971 wxString *result;
23972 PyObject * obj0 = 0 ;
23973 char *kwnames[] = {
23974 (char *) "self", NULL
23975 };
23976
23977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
23978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23980 {
23981 PyThreadState* __tstate = wxPyBeginAllowThreads();
23982 {
23983 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
23984 result = (wxString *) &_result_ref;
23985 }
23986
23987 wxPyEndAllowThreads(__tstate);
23988 if (PyErr_Occurred()) SWIG_fail;
23989 }
23990 {
23991 #if wxUSE_UNICODE
23992 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
23993 #else
23994 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
23995 #endif
23996 }
23997 return resultobj;
23998 fail:
23999 return NULL;
24000 }
24001
24002
24003 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24004 PyObject *resultobj;
24005 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24006 wxString *arg2 = 0 ;
24007 bool temp2 = False ;
24008 PyObject * obj0 = 0 ;
24009 PyObject * obj1 = 0 ;
24010 char *kwnames[] = {
24011 (char *) "self",(char *) "label", NULL
24012 };
24013
24014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
24015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24017 {
24018 arg2 = wxString_in_helper(obj1);
24019 if (arg2 == NULL) SWIG_fail;
24020 temp2 = True;
24021 }
24022 {
24023 PyThreadState* __tstate = wxPyBeginAllowThreads();
24024 (arg1)->SetLabel((wxString const &)*arg2);
24025
24026 wxPyEndAllowThreads(__tstate);
24027 if (PyErr_Occurred()) SWIG_fail;
24028 }
24029 Py_INCREF(Py_None); resultobj = Py_None;
24030 {
24031 if (temp2)
24032 delete arg2;
24033 }
24034 return resultobj;
24035 fail:
24036 {
24037 if (temp2)
24038 delete arg2;
24039 }
24040 return NULL;
24041 }
24042
24043
24044 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
24045 PyObject *resultobj;
24046 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24047 bool result;
24048 PyObject * obj0 = 0 ;
24049 char *kwnames[] = {
24050 (char *) "self", NULL
24051 };
24052
24053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
24054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24056 {
24057 PyThreadState* __tstate = wxPyBeginAllowThreads();
24058 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
24059
24060 wxPyEndAllowThreads(__tstate);
24061 if (PyErr_Occurred()) SWIG_fail;
24062 }
24063 {
24064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24065 }
24066 return resultobj;
24067 fail:
24068 return NULL;
24069 }
24070
24071
24072 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
24073 PyObject *resultobj;
24074 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24075 bool arg2 ;
24076 PyObject * obj0 = 0 ;
24077 PyObject * obj1 = 0 ;
24078 char *kwnames[] = {
24079 (char *) "self",(char *) "editCancelled", NULL
24080 };
24081
24082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
24083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24085 arg2 = (bool) SWIG_AsBool(obj1);
24086 if (PyErr_Occurred()) SWIG_fail;
24087 {
24088 PyThreadState* __tstate = wxPyBeginAllowThreads();
24089 (arg1)->SetEditCanceled(arg2);
24090
24091 wxPyEndAllowThreads(__tstate);
24092 if (PyErr_Occurred()) SWIG_fail;
24093 }
24094 Py_INCREF(Py_None); resultobj = Py_None;
24095 return resultobj;
24096 fail:
24097 return NULL;
24098 }
24099
24100
24101 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
24102 PyObject *resultobj;
24103 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24104 wxString *arg2 = 0 ;
24105 bool temp2 = False ;
24106 PyObject * obj0 = 0 ;
24107 PyObject * obj1 = 0 ;
24108 char *kwnames[] = {
24109 (char *) "self",(char *) "toolTip", NULL
24110 };
24111
24112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
24113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24115 {
24116 arg2 = wxString_in_helper(obj1);
24117 if (arg2 == NULL) SWIG_fail;
24118 temp2 = True;
24119 }
24120 {
24121 PyThreadState* __tstate = wxPyBeginAllowThreads();
24122 (arg1)->SetToolTip((wxString const &)*arg2);
24123
24124 wxPyEndAllowThreads(__tstate);
24125 if (PyErr_Occurred()) SWIG_fail;
24126 }
24127 Py_INCREF(Py_None); resultobj = Py_None;
24128 {
24129 if (temp2)
24130 delete arg2;
24131 }
24132 return resultobj;
24133 fail:
24134 {
24135 if (temp2)
24136 delete arg2;
24137 }
24138 return NULL;
24139 }
24140
24141
24142 static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
24143 PyObject *obj;
24144 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24145 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
24146 Py_INCREF(obj);
24147 return Py_BuildValue((char *)"");
24148 }
24149 static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24150 PyObject *resultobj;
24151 wxWindow *arg1 = (wxWindow *) 0 ;
24152 int arg2 = (int) -1 ;
24153 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24154 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24155 wxSize const &arg4_defvalue = wxDefaultSize ;
24156 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24157 long arg5 = (long) wxTR_DEFAULT_STYLE ;
24158 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24159 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24160 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
24161 wxString *arg7 = (wxString *) &arg7_defvalue ;
24162 wxPyTreeCtrl *result;
24163 wxPoint temp3 ;
24164 wxSize temp4 ;
24165 bool temp7 = False ;
24166 PyObject * obj0 = 0 ;
24167 PyObject * obj1 = 0 ;
24168 PyObject * obj2 = 0 ;
24169 PyObject * obj3 = 0 ;
24170 PyObject * obj4 = 0 ;
24171 PyObject * obj5 = 0 ;
24172 PyObject * obj6 = 0 ;
24173 char *kwnames[] = {
24174 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24175 };
24176
24177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24180 if (obj1) {
24181 arg2 = (int) SWIG_AsInt(obj1);
24182 if (PyErr_Occurred()) SWIG_fail;
24183 }
24184 if (obj2) {
24185 {
24186 arg3 = &temp3;
24187 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24188 }
24189 }
24190 if (obj3) {
24191 {
24192 arg4 = &temp4;
24193 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24194 }
24195 }
24196 if (obj4) {
24197 arg5 = (long) SWIG_AsLong(obj4);
24198 if (PyErr_Occurred()) SWIG_fail;
24199 }
24200 if (obj5) {
24201 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24202 SWIG_POINTER_EXCEPTION | 0)) == -1)
24203 SWIG_fail;
24204 if (arg6 == NULL) {
24205 PyErr_SetString(PyExc_TypeError,"null reference");
24206 SWIG_fail;
24207 }
24208 }
24209 if (obj6) {
24210 {
24211 arg7 = wxString_in_helper(obj6);
24212 if (arg7 == NULL) SWIG_fail;
24213 temp7 = True;
24214 }
24215 }
24216 {
24217 PyThreadState* __tstate = wxPyBeginAllowThreads();
24218 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24219
24220 wxPyEndAllowThreads(__tstate);
24221 if (PyErr_Occurred()) SWIG_fail;
24222 }
24223 {
24224 resultobj = wxPyMake_wxObject(result);
24225 }
24226 {
24227 if (temp7)
24228 delete arg7;
24229 }
24230 return resultobj;
24231 fail:
24232 {
24233 if (temp7)
24234 delete arg7;
24235 }
24236 return NULL;
24237 }
24238
24239
24240 static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24241 PyObject *resultobj;
24242 wxPyTreeCtrl *result;
24243 char *kwnames[] = {
24244 NULL
24245 };
24246
24247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
24248 {
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
24251
24252 wxPyEndAllowThreads(__tstate);
24253 if (PyErr_Occurred()) SWIG_fail;
24254 }
24255 {
24256 resultobj = wxPyMake_wxObject(result);
24257 }
24258 return resultobj;
24259 fail:
24260 return NULL;
24261 }
24262
24263
24264 static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
24265 PyObject *resultobj;
24266 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24267 wxWindow *arg2 = (wxWindow *) 0 ;
24268 int arg3 = (int) -1 ;
24269 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24270 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24271 wxSize const &arg5_defvalue = wxDefaultSize ;
24272 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24273 long arg6 = (long) wxTR_DEFAULT_STYLE ;
24274 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24275 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24276 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
24277 wxString *arg8 = (wxString *) &arg8_defvalue ;
24278 bool result;
24279 wxPoint temp4 ;
24280 wxSize temp5 ;
24281 bool temp8 = False ;
24282 PyObject * obj0 = 0 ;
24283 PyObject * obj1 = 0 ;
24284 PyObject * obj2 = 0 ;
24285 PyObject * obj3 = 0 ;
24286 PyObject * obj4 = 0 ;
24287 PyObject * obj5 = 0 ;
24288 PyObject * obj6 = 0 ;
24289 PyObject * obj7 = 0 ;
24290 char *kwnames[] = {
24291 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24292 };
24293
24294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24297 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24299 if (obj2) {
24300 arg3 = (int) SWIG_AsInt(obj2);
24301 if (PyErr_Occurred()) SWIG_fail;
24302 }
24303 if (obj3) {
24304 {
24305 arg4 = &temp4;
24306 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24307 }
24308 }
24309 if (obj4) {
24310 {
24311 arg5 = &temp5;
24312 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24313 }
24314 }
24315 if (obj5) {
24316 arg6 = (long) SWIG_AsLong(obj5);
24317 if (PyErr_Occurred()) SWIG_fail;
24318 }
24319 if (obj6) {
24320 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24321 SWIG_POINTER_EXCEPTION | 0)) == -1)
24322 SWIG_fail;
24323 if (arg7 == NULL) {
24324 PyErr_SetString(PyExc_TypeError,"null reference");
24325 SWIG_fail;
24326 }
24327 }
24328 if (obj7) {
24329 {
24330 arg8 = wxString_in_helper(obj7);
24331 if (arg8 == NULL) SWIG_fail;
24332 temp8 = True;
24333 }
24334 }
24335 {
24336 PyThreadState* __tstate = wxPyBeginAllowThreads();
24337 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24338
24339 wxPyEndAllowThreads(__tstate);
24340 if (PyErr_Occurred()) SWIG_fail;
24341 }
24342 {
24343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24344 }
24345 {
24346 if (temp8)
24347 delete arg8;
24348 }
24349 return resultobj;
24350 fail:
24351 {
24352 if (temp8)
24353 delete arg8;
24354 }
24355 return NULL;
24356 }
24357
24358
24359 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24360 PyObject *resultobj;
24361 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24362 PyObject *arg2 = (PyObject *) 0 ;
24363 PyObject *arg3 = (PyObject *) 0 ;
24364 PyObject * obj0 = 0 ;
24365 PyObject * obj1 = 0 ;
24366 PyObject * obj2 = 0 ;
24367 char *kwnames[] = {
24368 (char *) "self",(char *) "self",(char *) "_class", NULL
24369 };
24370
24371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24374 arg2 = obj1;
24375 arg3 = obj2;
24376 {
24377 PyThreadState* __tstate = wxPyBeginAllowThreads();
24378 (arg1)->_setCallbackInfo(arg2,arg3);
24379
24380 wxPyEndAllowThreads(__tstate);
24381 if (PyErr_Occurred()) SWIG_fail;
24382 }
24383 Py_INCREF(Py_None); resultobj = Py_None;
24384 return resultobj;
24385 fail:
24386 return NULL;
24387 }
24388
24389
24390 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24391 PyObject *resultobj;
24392 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24393 size_t result;
24394 PyObject * obj0 = 0 ;
24395 char *kwnames[] = {
24396 (char *) "self", NULL
24397 };
24398
24399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
24400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24402 {
24403 PyThreadState* __tstate = wxPyBeginAllowThreads();
24404 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
24405
24406 wxPyEndAllowThreads(__tstate);
24407 if (PyErr_Occurred()) SWIG_fail;
24408 }
24409 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24410 return resultobj;
24411 fail:
24412 return NULL;
24413 }
24414
24415
24416 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
24417 PyObject *resultobj;
24418 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24419 unsigned int result;
24420 PyObject * obj0 = 0 ;
24421 char *kwnames[] = {
24422 (char *) "self", NULL
24423 };
24424
24425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
24426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24428 {
24429 PyThreadState* __tstate = wxPyBeginAllowThreads();
24430 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
24431
24432 wxPyEndAllowThreads(__tstate);
24433 if (PyErr_Occurred()) SWIG_fail;
24434 }
24435 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
24436 return resultobj;
24437 fail:
24438 return NULL;
24439 }
24440
24441
24442 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
24443 PyObject *resultobj;
24444 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24445 unsigned int arg2 ;
24446 PyObject * obj0 = 0 ;
24447 PyObject * obj1 = 0 ;
24448 char *kwnames[] = {
24449 (char *) "self",(char *) "indent", NULL
24450 };
24451
24452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
24453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24455 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
24456 if (PyErr_Occurred()) SWIG_fail;
24457 {
24458 PyThreadState* __tstate = wxPyBeginAllowThreads();
24459 (arg1)->SetIndent(arg2);
24460
24461 wxPyEndAllowThreads(__tstate);
24462 if (PyErr_Occurred()) SWIG_fail;
24463 }
24464 Py_INCREF(Py_None); resultobj = Py_None;
24465 return resultobj;
24466 fail:
24467 return NULL;
24468 }
24469
24470
24471 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
24472 PyObject *resultobj;
24473 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24474 unsigned int result;
24475 PyObject * obj0 = 0 ;
24476 char *kwnames[] = {
24477 (char *) "self", NULL
24478 };
24479
24480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
24481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24483 {
24484 PyThreadState* __tstate = wxPyBeginAllowThreads();
24485 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
24486
24487 wxPyEndAllowThreads(__tstate);
24488 if (PyErr_Occurred()) SWIG_fail;
24489 }
24490 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
24491 return resultobj;
24492 fail:
24493 return NULL;
24494 }
24495
24496
24497 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
24498 PyObject *resultobj;
24499 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24500 unsigned int arg2 ;
24501 PyObject * obj0 = 0 ;
24502 PyObject * obj1 = 0 ;
24503 char *kwnames[] = {
24504 (char *) "self",(char *) "spacing", NULL
24505 };
24506
24507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
24508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24510 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
24511 if (PyErr_Occurred()) SWIG_fail;
24512 {
24513 PyThreadState* __tstate = wxPyBeginAllowThreads();
24514 (arg1)->SetSpacing(arg2);
24515
24516 wxPyEndAllowThreads(__tstate);
24517 if (PyErr_Occurred()) SWIG_fail;
24518 }
24519 Py_INCREF(Py_None); resultobj = Py_None;
24520 return resultobj;
24521 fail:
24522 return NULL;
24523 }
24524
24525
24526 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24527 PyObject *resultobj;
24528 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24529 wxImageList *result;
24530 PyObject * obj0 = 0 ;
24531 char *kwnames[] = {
24532 (char *) "self", NULL
24533 };
24534
24535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
24536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24538 {
24539 PyThreadState* __tstate = wxPyBeginAllowThreads();
24540 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
24541
24542 wxPyEndAllowThreads(__tstate);
24543 if (PyErr_Occurred()) SWIG_fail;
24544 }
24545 {
24546 resultobj = wxPyMake_wxObject(result);
24547 }
24548 return resultobj;
24549 fail:
24550 return NULL;
24551 }
24552
24553
24554 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24555 PyObject *resultobj;
24556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24557 wxImageList *result;
24558 PyObject * obj0 = 0 ;
24559 char *kwnames[] = {
24560 (char *) "self", NULL
24561 };
24562
24563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
24564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24566 {
24567 PyThreadState* __tstate = wxPyBeginAllowThreads();
24568 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
24569
24570 wxPyEndAllowThreads(__tstate);
24571 if (PyErr_Occurred()) SWIG_fail;
24572 }
24573 {
24574 resultobj = wxPyMake_wxObject(result);
24575 }
24576 return resultobj;
24577 fail:
24578 return NULL;
24579 }
24580
24581
24582 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24583 PyObject *resultobj;
24584 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24585 wxImageList *arg2 = (wxImageList *) 0 ;
24586 PyObject * obj0 = 0 ;
24587 PyObject * obj1 = 0 ;
24588 char *kwnames[] = {
24589 (char *) "self",(char *) "imageList", NULL
24590 };
24591
24592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
24593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24595 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24597 {
24598 PyThreadState* __tstate = wxPyBeginAllowThreads();
24599 (arg1)->SetImageList(arg2);
24600
24601 wxPyEndAllowThreads(__tstate);
24602 if (PyErr_Occurred()) SWIG_fail;
24603 }
24604 Py_INCREF(Py_None); resultobj = Py_None;
24605 return resultobj;
24606 fail:
24607 return NULL;
24608 }
24609
24610
24611 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24612 PyObject *resultobj;
24613 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24614 wxImageList *arg2 = (wxImageList *) 0 ;
24615 PyObject * obj0 = 0 ;
24616 PyObject * obj1 = 0 ;
24617 char *kwnames[] = {
24618 (char *) "self",(char *) "imageList", NULL
24619 };
24620
24621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
24622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24626 {
24627 PyThreadState* __tstate = wxPyBeginAllowThreads();
24628 (arg1)->SetStateImageList(arg2);
24629
24630 wxPyEndAllowThreads(__tstate);
24631 if (PyErr_Occurred()) SWIG_fail;
24632 }
24633 Py_INCREF(Py_None); resultobj = Py_None;
24634 return resultobj;
24635 fail:
24636 return NULL;
24637 }
24638
24639
24640 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24641 PyObject *resultobj;
24642 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24643 wxImageList *arg2 = (wxImageList *) 0 ;
24644 PyObject * obj0 = 0 ;
24645 PyObject * obj1 = 0 ;
24646 char *kwnames[] = {
24647 (char *) "self",(char *) "imageList", NULL
24648 };
24649
24650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
24651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24653 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24654 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24655 {
24656 PyThreadState* __tstate = wxPyBeginAllowThreads();
24657 (arg1)->AssignImageList(arg2);
24658
24659 wxPyEndAllowThreads(__tstate);
24660 if (PyErr_Occurred()) SWIG_fail;
24661 }
24662 Py_INCREF(Py_None); resultobj = Py_None;
24663 return resultobj;
24664 fail:
24665 return NULL;
24666 }
24667
24668
24669 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24670 PyObject *resultobj;
24671 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24672 wxImageList *arg2 = (wxImageList *) 0 ;
24673 PyObject * obj0 = 0 ;
24674 PyObject * obj1 = 0 ;
24675 char *kwnames[] = {
24676 (char *) "self",(char *) "imageList", NULL
24677 };
24678
24679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
24680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24682 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24683 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24684 {
24685 PyThreadState* __tstate = wxPyBeginAllowThreads();
24686 (arg1)->AssignStateImageList(arg2);
24687
24688 wxPyEndAllowThreads(__tstate);
24689 if (PyErr_Occurred()) SWIG_fail;
24690 }
24691 Py_INCREF(Py_None); resultobj = Py_None;
24692 return resultobj;
24693 fail:
24694 return NULL;
24695 }
24696
24697
24698 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
24699 PyObject *resultobj;
24700 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24701 wxTreeItemId *arg2 = 0 ;
24702 wxString result;
24703 PyObject * obj0 = 0 ;
24704 PyObject * obj1 = 0 ;
24705 char *kwnames[] = {
24706 (char *) "self",(char *) "item", NULL
24707 };
24708
24709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
24710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24712 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24713 SWIG_POINTER_EXCEPTION | 0)) == -1)
24714 SWIG_fail;
24715 if (arg2 == NULL) {
24716 PyErr_SetString(PyExc_TypeError,"null reference");
24717 SWIG_fail;
24718 }
24719 {
24720 PyThreadState* __tstate = wxPyBeginAllowThreads();
24721 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
24722
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 {
24727 #if wxUSE_UNICODE
24728 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24729 #else
24730 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24731 #endif
24732 }
24733 return resultobj;
24734 fail:
24735 return NULL;
24736 }
24737
24738
24739 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24740 PyObject *resultobj;
24741 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24742 wxTreeItemId *arg2 = 0 ;
24743 int arg3 = (int) wxTreeItemIcon_Normal ;
24744 int result;
24745 PyObject * obj0 = 0 ;
24746 PyObject * obj1 = 0 ;
24747 PyObject * obj2 = 0 ;
24748 char *kwnames[] = {
24749 (char *) "self",(char *) "item",(char *) "which", NULL
24750 };
24751
24752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24755 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24756 SWIG_POINTER_EXCEPTION | 0)) == -1)
24757 SWIG_fail;
24758 if (arg2 == NULL) {
24759 PyErr_SetString(PyExc_TypeError,"null reference");
24760 SWIG_fail;
24761 }
24762 if (obj2) {
24763 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
24764 if (PyErr_Occurred()) SWIG_fail;
24765 }
24766 {
24767 PyThreadState* __tstate = wxPyBeginAllowThreads();
24768 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
24769
24770 wxPyEndAllowThreads(__tstate);
24771 if (PyErr_Occurred()) SWIG_fail;
24772 }
24773 resultobj = SWIG_FromInt((int)result);
24774 return resultobj;
24775 fail:
24776 return NULL;
24777 }
24778
24779
24780 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24781 PyObject *resultobj;
24782 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24783 wxTreeItemId *arg2 = 0 ;
24784 wxPyTreeItemData *result;
24785 PyObject * obj0 = 0 ;
24786 PyObject * obj1 = 0 ;
24787 char *kwnames[] = {
24788 (char *) "self",(char *) "item", NULL
24789 };
24790
24791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
24792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24794 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24795 SWIG_POINTER_EXCEPTION | 0)) == -1)
24796 SWIG_fail;
24797 if (arg2 == NULL) {
24798 PyErr_SetString(PyExc_TypeError,"null reference");
24799 SWIG_fail;
24800 }
24801 {
24802 PyThreadState* __tstate = wxPyBeginAllowThreads();
24803 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
24804
24805 wxPyEndAllowThreads(__tstate);
24806 if (PyErr_Occurred()) SWIG_fail;
24807 }
24808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
24809 return resultobj;
24810 fail:
24811 return NULL;
24812 }
24813
24814
24815 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
24816 PyObject *resultobj;
24817 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24818 wxTreeItemId *arg2 = 0 ;
24819 PyObject *result;
24820 PyObject * obj0 = 0 ;
24821 PyObject * obj1 = 0 ;
24822 char *kwnames[] = {
24823 (char *) "self",(char *) "item", NULL
24824 };
24825
24826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
24827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24829 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24830 SWIG_POINTER_EXCEPTION | 0)) == -1)
24831 SWIG_fail;
24832 if (arg2 == NULL) {
24833 PyErr_SetString(PyExc_TypeError,"null reference");
24834 SWIG_fail;
24835 }
24836 {
24837 PyThreadState* __tstate = wxPyBeginAllowThreads();
24838 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
24839
24840 wxPyEndAllowThreads(__tstate);
24841 if (PyErr_Occurred()) SWIG_fail;
24842 }
24843 resultobj = result;
24844 return resultobj;
24845 fail:
24846 return NULL;
24847 }
24848
24849
24850 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24851 PyObject *resultobj;
24852 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24853 wxTreeItemId *arg2 = 0 ;
24854 wxColour result;
24855 PyObject * obj0 = 0 ;
24856 PyObject * obj1 = 0 ;
24857 char *kwnames[] = {
24858 (char *) "self",(char *) "item", NULL
24859 };
24860
24861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
24862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24864 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24865 SWIG_POINTER_EXCEPTION | 0)) == -1)
24866 SWIG_fail;
24867 if (arg2 == NULL) {
24868 PyErr_SetString(PyExc_TypeError,"null reference");
24869 SWIG_fail;
24870 }
24871 {
24872 PyThreadState* __tstate = wxPyBeginAllowThreads();
24873 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
24874
24875 wxPyEndAllowThreads(__tstate);
24876 if (PyErr_Occurred()) SWIG_fail;
24877 }
24878 {
24879 wxColour * resultptr;
24880 resultptr = new wxColour((wxColour &) result);
24881 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24882 }
24883 return resultobj;
24884 fail:
24885 return NULL;
24886 }
24887
24888
24889 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24890 PyObject *resultobj;
24891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24892 wxTreeItemId *arg2 = 0 ;
24893 wxColour result;
24894 PyObject * obj0 = 0 ;
24895 PyObject * obj1 = 0 ;
24896 char *kwnames[] = {
24897 (char *) "self",(char *) "item", NULL
24898 };
24899
24900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24903 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24904 SWIG_POINTER_EXCEPTION | 0)) == -1)
24905 SWIG_fail;
24906 if (arg2 == NULL) {
24907 PyErr_SetString(PyExc_TypeError,"null reference");
24908 SWIG_fail;
24909 }
24910 {
24911 PyThreadState* __tstate = wxPyBeginAllowThreads();
24912 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
24913
24914 wxPyEndAllowThreads(__tstate);
24915 if (PyErr_Occurred()) SWIG_fail;
24916 }
24917 {
24918 wxColour * resultptr;
24919 resultptr = new wxColour((wxColour &) result);
24920 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24921 }
24922 return resultobj;
24923 fail:
24924 return NULL;
24925 }
24926
24927
24928 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24929 PyObject *resultobj;
24930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24931 wxTreeItemId *arg2 = 0 ;
24932 wxFont result;
24933 PyObject * obj0 = 0 ;
24934 PyObject * obj1 = 0 ;
24935 char *kwnames[] = {
24936 (char *) "self",(char *) "item", NULL
24937 };
24938
24939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
24940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24942 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24943 SWIG_POINTER_EXCEPTION | 0)) == -1)
24944 SWIG_fail;
24945 if (arg2 == NULL) {
24946 PyErr_SetString(PyExc_TypeError,"null reference");
24947 SWIG_fail;
24948 }
24949 {
24950 PyThreadState* __tstate = wxPyBeginAllowThreads();
24951 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
24952
24953 wxPyEndAllowThreads(__tstate);
24954 if (PyErr_Occurred()) SWIG_fail;
24955 }
24956 {
24957 wxFont * resultptr;
24958 resultptr = new wxFont((wxFont &) result);
24959 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
24960 }
24961 return resultobj;
24962 fail:
24963 return NULL;
24964 }
24965
24966
24967 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
24968 PyObject *resultobj;
24969 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24970 wxTreeItemId *arg2 = 0 ;
24971 wxString *arg3 = 0 ;
24972 bool temp3 = False ;
24973 PyObject * obj0 = 0 ;
24974 PyObject * obj1 = 0 ;
24975 PyObject * obj2 = 0 ;
24976 char *kwnames[] = {
24977 (char *) "self",(char *) "item",(char *) "text", NULL
24978 };
24979
24980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
24981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24983 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24984 SWIG_POINTER_EXCEPTION | 0)) == -1)
24985 SWIG_fail;
24986 if (arg2 == NULL) {
24987 PyErr_SetString(PyExc_TypeError,"null reference");
24988 SWIG_fail;
24989 }
24990 {
24991 arg3 = wxString_in_helper(obj2);
24992 if (arg3 == NULL) SWIG_fail;
24993 temp3 = True;
24994 }
24995 {
24996 PyThreadState* __tstate = wxPyBeginAllowThreads();
24997 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
24998
24999 wxPyEndAllowThreads(__tstate);
25000 if (PyErr_Occurred()) SWIG_fail;
25001 }
25002 Py_INCREF(Py_None); resultobj = Py_None;
25003 {
25004 if (temp3)
25005 delete arg3;
25006 }
25007 return resultobj;
25008 fail:
25009 {
25010 if (temp3)
25011 delete arg3;
25012 }
25013 return NULL;
25014 }
25015
25016
25017 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25018 PyObject *resultobj;
25019 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25020 wxTreeItemId *arg2 = 0 ;
25021 int arg3 ;
25022 int arg4 = (int) wxTreeItemIcon_Normal ;
25023 PyObject * obj0 = 0 ;
25024 PyObject * obj1 = 0 ;
25025 PyObject * obj2 = 0 ;
25026 PyObject * obj3 = 0 ;
25027 char *kwnames[] = {
25028 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
25029 };
25030
25031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25034 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25035 SWIG_POINTER_EXCEPTION | 0)) == -1)
25036 SWIG_fail;
25037 if (arg2 == NULL) {
25038 PyErr_SetString(PyExc_TypeError,"null reference");
25039 SWIG_fail;
25040 }
25041 arg3 = (int) SWIG_AsInt(obj2);
25042 if (PyErr_Occurred()) SWIG_fail;
25043 if (obj3) {
25044 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 {
25048 PyThreadState* __tstate = wxPyBeginAllowThreads();
25049 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
25050
25051 wxPyEndAllowThreads(__tstate);
25052 if (PyErr_Occurred()) SWIG_fail;
25053 }
25054 Py_INCREF(Py_None); resultobj = Py_None;
25055 return resultobj;
25056 fail:
25057 return NULL;
25058 }
25059
25060
25061 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25062 PyObject *resultobj;
25063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25064 wxTreeItemId *arg2 = 0 ;
25065 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
25066 PyObject * obj0 = 0 ;
25067 PyObject * obj1 = 0 ;
25068 PyObject * obj2 = 0 ;
25069 char *kwnames[] = {
25070 (char *) "self",(char *) "item",(char *) "data", NULL
25071 };
25072
25073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25076 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25077 SWIG_POINTER_EXCEPTION | 0)) == -1)
25078 SWIG_fail;
25079 if (arg2 == NULL) {
25080 PyErr_SetString(PyExc_TypeError,"null reference");
25081 SWIG_fail;
25082 }
25083 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
25084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25085 {
25086 PyThreadState* __tstate = wxPyBeginAllowThreads();
25087 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
25088
25089 wxPyEndAllowThreads(__tstate);
25090 if (PyErr_Occurred()) SWIG_fail;
25091 }
25092 Py_INCREF(Py_None); resultobj = Py_None;
25093 return resultobj;
25094 fail:
25095 return NULL;
25096 }
25097
25098
25099 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25100 PyObject *resultobj;
25101 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25102 wxTreeItemId *arg2 = 0 ;
25103 PyObject *arg3 = (PyObject *) 0 ;
25104 PyObject * obj0 = 0 ;
25105 PyObject * obj1 = 0 ;
25106 PyObject * obj2 = 0 ;
25107 char *kwnames[] = {
25108 (char *) "self",(char *) "item",(char *) "obj", NULL
25109 };
25110
25111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25114 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25115 SWIG_POINTER_EXCEPTION | 0)) == -1)
25116 SWIG_fail;
25117 if (arg2 == NULL) {
25118 PyErr_SetString(PyExc_TypeError,"null reference");
25119 SWIG_fail;
25120 }
25121 arg3 = obj2;
25122 {
25123 PyThreadState* __tstate = wxPyBeginAllowThreads();
25124 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
25125
25126 wxPyEndAllowThreads(__tstate);
25127 if (PyErr_Occurred()) SWIG_fail;
25128 }
25129 Py_INCREF(Py_None); resultobj = Py_None;
25130 return resultobj;
25131 fail:
25132 return NULL;
25133 }
25134
25135
25136 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25137 PyObject *resultobj;
25138 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25139 wxTreeItemId *arg2 = 0 ;
25140 bool arg3 = (bool) True ;
25141 PyObject * obj0 = 0 ;
25142 PyObject * obj1 = 0 ;
25143 PyObject * obj2 = 0 ;
25144 char *kwnames[] = {
25145 (char *) "self",(char *) "item",(char *) "has", NULL
25146 };
25147
25148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
25149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25152 SWIG_POINTER_EXCEPTION | 0)) == -1)
25153 SWIG_fail;
25154 if (arg2 == NULL) {
25155 PyErr_SetString(PyExc_TypeError,"null reference");
25156 SWIG_fail;
25157 }
25158 if (obj2) {
25159 arg3 = (bool) SWIG_AsBool(obj2);
25160 if (PyErr_Occurred()) SWIG_fail;
25161 }
25162 {
25163 PyThreadState* __tstate = wxPyBeginAllowThreads();
25164 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
25165
25166 wxPyEndAllowThreads(__tstate);
25167 if (PyErr_Occurred()) SWIG_fail;
25168 }
25169 Py_INCREF(Py_None); resultobj = Py_None;
25170 return resultobj;
25171 fail:
25172 return NULL;
25173 }
25174
25175
25176 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
25177 PyObject *resultobj;
25178 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25179 wxTreeItemId *arg2 = 0 ;
25180 bool arg3 = (bool) True ;
25181 PyObject * obj0 = 0 ;
25182 PyObject * obj1 = 0 ;
25183 PyObject * obj2 = 0 ;
25184 char *kwnames[] = {
25185 (char *) "self",(char *) "item",(char *) "bold", NULL
25186 };
25187
25188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
25189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25191 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25192 SWIG_POINTER_EXCEPTION | 0)) == -1)
25193 SWIG_fail;
25194 if (arg2 == NULL) {
25195 PyErr_SetString(PyExc_TypeError,"null reference");
25196 SWIG_fail;
25197 }
25198 if (obj2) {
25199 arg3 = (bool) SWIG_AsBool(obj2);
25200 if (PyErr_Occurred()) SWIG_fail;
25201 }
25202 {
25203 PyThreadState* __tstate = wxPyBeginAllowThreads();
25204 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
25205
25206 wxPyEndAllowThreads(__tstate);
25207 if (PyErr_Occurred()) SWIG_fail;
25208 }
25209 Py_INCREF(Py_None); resultobj = Py_None;
25210 return resultobj;
25211 fail:
25212 return NULL;
25213 }
25214
25215
25216 static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
25217 PyObject *resultobj;
25218 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25219 wxTreeItemId *arg2 = 0 ;
25220 bool arg3 = (bool) True ;
25221 PyObject * obj0 = 0 ;
25222 PyObject * obj1 = 0 ;
25223 PyObject * obj2 = 0 ;
25224 char *kwnames[] = {
25225 (char *) "self",(char *) "item",(char *) "highlight", NULL
25226 };
25227
25228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
25229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25231 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25232 SWIG_POINTER_EXCEPTION | 0)) == -1)
25233 SWIG_fail;
25234 if (arg2 == NULL) {
25235 PyErr_SetString(PyExc_TypeError,"null reference");
25236 SWIG_fail;
25237 }
25238 if (obj2) {
25239 arg3 = (bool) SWIG_AsBool(obj2);
25240 if (PyErr_Occurred()) SWIG_fail;
25241 }
25242 {
25243 PyThreadState* __tstate = wxPyBeginAllowThreads();
25244 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
25245
25246 wxPyEndAllowThreads(__tstate);
25247 if (PyErr_Occurred()) SWIG_fail;
25248 }
25249 Py_INCREF(Py_None); resultobj = Py_None;
25250 return resultobj;
25251 fail:
25252 return NULL;
25253 }
25254
25255
25256 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25257 PyObject *resultobj;
25258 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25259 wxTreeItemId *arg2 = 0 ;
25260 wxColour *arg3 = 0 ;
25261 wxColour temp3 ;
25262 PyObject * obj0 = 0 ;
25263 PyObject * obj1 = 0 ;
25264 PyObject * obj2 = 0 ;
25265 char *kwnames[] = {
25266 (char *) "self",(char *) "item",(char *) "col", NULL
25267 };
25268
25269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
25270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25273 SWIG_POINTER_EXCEPTION | 0)) == -1)
25274 SWIG_fail;
25275 if (arg2 == NULL) {
25276 PyErr_SetString(PyExc_TypeError,"null reference");
25277 SWIG_fail;
25278 }
25279 {
25280 arg3 = &temp3;
25281 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25282 }
25283 {
25284 PyThreadState* __tstate = wxPyBeginAllowThreads();
25285 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
25286
25287 wxPyEndAllowThreads(__tstate);
25288 if (PyErr_Occurred()) SWIG_fail;
25289 }
25290 Py_INCREF(Py_None); resultobj = Py_None;
25291 return resultobj;
25292 fail:
25293 return NULL;
25294 }
25295
25296
25297 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25298 PyObject *resultobj;
25299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25300 wxTreeItemId *arg2 = 0 ;
25301 wxColour *arg3 = 0 ;
25302 wxColour temp3 ;
25303 PyObject * obj0 = 0 ;
25304 PyObject * obj1 = 0 ;
25305 PyObject * obj2 = 0 ;
25306 char *kwnames[] = {
25307 (char *) "self",(char *) "item",(char *) "col", NULL
25308 };
25309
25310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
25311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25314 SWIG_POINTER_EXCEPTION | 0)) == -1)
25315 SWIG_fail;
25316 if (arg2 == NULL) {
25317 PyErr_SetString(PyExc_TypeError,"null reference");
25318 SWIG_fail;
25319 }
25320 {
25321 arg3 = &temp3;
25322 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25323 }
25324 {
25325 PyThreadState* __tstate = wxPyBeginAllowThreads();
25326 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
25327
25328 wxPyEndAllowThreads(__tstate);
25329 if (PyErr_Occurred()) SWIG_fail;
25330 }
25331 Py_INCREF(Py_None); resultobj = Py_None;
25332 return resultobj;
25333 fail:
25334 return NULL;
25335 }
25336
25337
25338 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25339 PyObject *resultobj;
25340 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25341 wxTreeItemId *arg2 = 0 ;
25342 wxFont *arg3 = 0 ;
25343 PyObject * obj0 = 0 ;
25344 PyObject * obj1 = 0 ;
25345 PyObject * obj2 = 0 ;
25346 char *kwnames[] = {
25347 (char *) "self",(char *) "item",(char *) "font", NULL
25348 };
25349
25350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
25351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25353 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25354 SWIG_POINTER_EXCEPTION | 0)) == -1)
25355 SWIG_fail;
25356 if (arg2 == NULL) {
25357 PyErr_SetString(PyExc_TypeError,"null reference");
25358 SWIG_fail;
25359 }
25360 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
25361 SWIG_POINTER_EXCEPTION | 0)) == -1)
25362 SWIG_fail;
25363 if (arg3 == NULL) {
25364 PyErr_SetString(PyExc_TypeError,"null reference");
25365 SWIG_fail;
25366 }
25367 {
25368 PyThreadState* __tstate = wxPyBeginAllowThreads();
25369 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
25370
25371 wxPyEndAllowThreads(__tstate);
25372 if (PyErr_Occurred()) SWIG_fail;
25373 }
25374 Py_INCREF(Py_None); resultobj = Py_None;
25375 return resultobj;
25376 fail:
25377 return NULL;
25378 }
25379
25380
25381 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25382 PyObject *resultobj;
25383 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25384 wxTreeItemId *arg2 = 0 ;
25385 bool result;
25386 PyObject * obj0 = 0 ;
25387 PyObject * obj1 = 0 ;
25388 char *kwnames[] = {
25389 (char *) "self",(char *) "item", NULL
25390 };
25391
25392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
25393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25395 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25396 SWIG_POINTER_EXCEPTION | 0)) == -1)
25397 SWIG_fail;
25398 if (arg2 == NULL) {
25399 PyErr_SetString(PyExc_TypeError,"null reference");
25400 SWIG_fail;
25401 }
25402 {
25403 PyThreadState* __tstate = wxPyBeginAllowThreads();
25404 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
25405
25406 wxPyEndAllowThreads(__tstate);
25407 if (PyErr_Occurred()) SWIG_fail;
25408 }
25409 {
25410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25411 }
25412 return resultobj;
25413 fail:
25414 return NULL;
25415 }
25416
25417
25418 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25419 PyObject *resultobj;
25420 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25421 wxTreeItemId *arg2 = 0 ;
25422 bool result;
25423 PyObject * obj0 = 0 ;
25424 PyObject * obj1 = 0 ;
25425 char *kwnames[] = {
25426 (char *) "self",(char *) "item", NULL
25427 };
25428
25429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
25430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25432 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25433 SWIG_POINTER_EXCEPTION | 0)) == -1)
25434 SWIG_fail;
25435 if (arg2 == NULL) {
25436 PyErr_SetString(PyExc_TypeError,"null reference");
25437 SWIG_fail;
25438 }
25439 {
25440 PyThreadState* __tstate = wxPyBeginAllowThreads();
25441 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
25442
25443 wxPyEndAllowThreads(__tstate);
25444 if (PyErr_Occurred()) SWIG_fail;
25445 }
25446 {
25447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25448 }
25449 return resultobj;
25450 fail:
25451 return NULL;
25452 }
25453
25454
25455 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
25456 PyObject *resultobj;
25457 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25458 wxTreeItemId *arg2 = 0 ;
25459 bool result;
25460 PyObject * obj0 = 0 ;
25461 PyObject * obj1 = 0 ;
25462 char *kwnames[] = {
25463 (char *) "self",(char *) "item", NULL
25464 };
25465
25466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
25467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25470 SWIG_POINTER_EXCEPTION | 0)) == -1)
25471 SWIG_fail;
25472 if (arg2 == NULL) {
25473 PyErr_SetString(PyExc_TypeError,"null reference");
25474 SWIG_fail;
25475 }
25476 {
25477 PyThreadState* __tstate = wxPyBeginAllowThreads();
25478 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
25479
25480 wxPyEndAllowThreads(__tstate);
25481 if (PyErr_Occurred()) SWIG_fail;
25482 }
25483 {
25484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25485 }
25486 return resultobj;
25487 fail:
25488 return NULL;
25489 }
25490
25491
25492 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
25493 PyObject *resultobj;
25494 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25495 wxTreeItemId *arg2 = 0 ;
25496 bool result;
25497 PyObject * obj0 = 0 ;
25498 PyObject * obj1 = 0 ;
25499 char *kwnames[] = {
25500 (char *) "self",(char *) "item", NULL
25501 };
25502
25503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
25504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25506 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25507 SWIG_POINTER_EXCEPTION | 0)) == -1)
25508 SWIG_fail;
25509 if (arg2 == NULL) {
25510 PyErr_SetString(PyExc_TypeError,"null reference");
25511 SWIG_fail;
25512 }
25513 {
25514 PyThreadState* __tstate = wxPyBeginAllowThreads();
25515 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
25516
25517 wxPyEndAllowThreads(__tstate);
25518 if (PyErr_Occurred()) SWIG_fail;
25519 }
25520 {
25521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25522 }
25523 return resultobj;
25524 fail:
25525 return NULL;
25526 }
25527
25528
25529 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
25530 PyObject *resultobj;
25531 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25532 wxTreeItemId *arg2 = 0 ;
25533 bool result;
25534 PyObject * obj0 = 0 ;
25535 PyObject * obj1 = 0 ;
25536 char *kwnames[] = {
25537 (char *) "self",(char *) "item", NULL
25538 };
25539
25540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
25541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25543 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25544 SWIG_POINTER_EXCEPTION | 0)) == -1)
25545 SWIG_fail;
25546 if (arg2 == NULL) {
25547 PyErr_SetString(PyExc_TypeError,"null reference");
25548 SWIG_fail;
25549 }
25550 {
25551 PyThreadState* __tstate = wxPyBeginAllowThreads();
25552 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
25553
25554 wxPyEndAllowThreads(__tstate);
25555 if (PyErr_Occurred()) SWIG_fail;
25556 }
25557 {
25558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25559 }
25560 return resultobj;
25561 fail:
25562 return NULL;
25563 }
25564
25565
25566 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
25567 PyObject *resultobj;
25568 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25569 wxTreeItemId *arg2 = 0 ;
25570 bool arg3 = (bool) True ;
25571 size_t result;
25572 PyObject * obj0 = 0 ;
25573 PyObject * obj1 = 0 ;
25574 PyObject * obj2 = 0 ;
25575 char *kwnames[] = {
25576 (char *) "self",(char *) "item",(char *) "recursively", NULL
25577 };
25578
25579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
25580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25582 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25583 SWIG_POINTER_EXCEPTION | 0)) == -1)
25584 SWIG_fail;
25585 if (arg2 == NULL) {
25586 PyErr_SetString(PyExc_TypeError,"null reference");
25587 SWIG_fail;
25588 }
25589 if (obj2) {
25590 arg3 = (bool) SWIG_AsBool(obj2);
25591 if (PyErr_Occurred()) SWIG_fail;
25592 }
25593 {
25594 PyThreadState* __tstate = wxPyBeginAllowThreads();
25595 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
25596
25597 wxPyEndAllowThreads(__tstate);
25598 if (PyErr_Occurred()) SWIG_fail;
25599 }
25600 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25601 return resultobj;
25602 fail:
25603 return NULL;
25604 }
25605
25606
25607 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25608 PyObject *resultobj;
25609 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25610 wxTreeItemId result;
25611 PyObject * obj0 = 0 ;
25612 char *kwnames[] = {
25613 (char *) "self", NULL
25614 };
25615
25616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
25617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25619 {
25620 PyThreadState* __tstate = wxPyBeginAllowThreads();
25621 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
25622
25623 wxPyEndAllowThreads(__tstate);
25624 if (PyErr_Occurred()) SWIG_fail;
25625 }
25626 {
25627 wxTreeItemId * resultptr;
25628 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25629 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25630 }
25631 return resultobj;
25632 fail:
25633 return NULL;
25634 }
25635
25636
25637 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
25638 PyObject *resultobj;
25639 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25640 wxTreeItemId result;
25641 PyObject * obj0 = 0 ;
25642 char *kwnames[] = {
25643 (char *) "self", NULL
25644 };
25645
25646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
25647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25649 {
25650 PyThreadState* __tstate = wxPyBeginAllowThreads();
25651 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
25652
25653 wxPyEndAllowThreads(__tstate);
25654 if (PyErr_Occurred()) SWIG_fail;
25655 }
25656 {
25657 wxTreeItemId * resultptr;
25658 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25659 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25660 }
25661 return resultobj;
25662 fail:
25663 return NULL;
25664 }
25665
25666
25667 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
25668 PyObject *resultobj;
25669 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25670 PyObject *result;
25671 PyObject * obj0 = 0 ;
25672 char *kwnames[] = {
25673 (char *) "self", NULL
25674 };
25675
25676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
25677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25679 {
25680 PyThreadState* __tstate = wxPyBeginAllowThreads();
25681 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
25682
25683 wxPyEndAllowThreads(__tstate);
25684 if (PyErr_Occurred()) SWIG_fail;
25685 }
25686 resultobj = result;
25687 return resultobj;
25688 fail:
25689 return NULL;
25690 }
25691
25692
25693 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
25694 PyObject *resultobj;
25695 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25696 wxTreeItemId *arg2 = 0 ;
25697 wxTreeItemId result;
25698 PyObject * obj0 = 0 ;
25699 PyObject * obj1 = 0 ;
25700 char *kwnames[] = {
25701 (char *) "self",(char *) "item", NULL
25702 };
25703
25704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
25705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25707 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25708 SWIG_POINTER_EXCEPTION | 0)) == -1)
25709 SWIG_fail;
25710 if (arg2 == NULL) {
25711 PyErr_SetString(PyExc_TypeError,"null reference");
25712 SWIG_fail;
25713 }
25714 {
25715 PyThreadState* __tstate = wxPyBeginAllowThreads();
25716 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
25717
25718 wxPyEndAllowThreads(__tstate);
25719 if (PyErr_Occurred()) SWIG_fail;
25720 }
25721 {
25722 wxTreeItemId * resultptr;
25723 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25724 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25725 }
25726 return resultobj;
25727 fail:
25728 return NULL;
25729 }
25730
25731
25732 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25733 PyObject *resultobj;
25734 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25735 wxTreeItemId *arg2 = 0 ;
25736 PyObject *result;
25737 PyObject * obj0 = 0 ;
25738 PyObject * obj1 = 0 ;
25739 char *kwnames[] = {
25740 (char *) "self",(char *) "item", NULL
25741 };
25742
25743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
25744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25746 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25747 SWIG_POINTER_EXCEPTION | 0)) == -1)
25748 SWIG_fail;
25749 if (arg2 == NULL) {
25750 PyErr_SetString(PyExc_TypeError,"null reference");
25751 SWIG_fail;
25752 }
25753 {
25754 PyThreadState* __tstate = wxPyBeginAllowThreads();
25755 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
25756
25757 wxPyEndAllowThreads(__tstate);
25758 if (PyErr_Occurred()) SWIG_fail;
25759 }
25760 resultobj = result;
25761 return resultobj;
25762 fail:
25763 return NULL;
25764 }
25765
25766
25767 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25768 PyObject *resultobj;
25769 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25770 wxTreeItemId *arg2 = 0 ;
25771 void *arg3 = (void *) 0 ;
25772 PyObject *result;
25773 PyObject * obj0 = 0 ;
25774 PyObject * obj1 = 0 ;
25775 PyObject * obj2 = 0 ;
25776 char *kwnames[] = {
25777 (char *) "self",(char *) "item",(char *) "cookie", NULL
25778 };
25779
25780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
25781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25784 SWIG_POINTER_EXCEPTION | 0)) == -1)
25785 SWIG_fail;
25786 if (arg2 == NULL) {
25787 PyErr_SetString(PyExc_TypeError,"null reference");
25788 SWIG_fail;
25789 }
25790 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25791 {
25792 PyThreadState* __tstate = wxPyBeginAllowThreads();
25793 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
25794
25795 wxPyEndAllowThreads(__tstate);
25796 if (PyErr_Occurred()) SWIG_fail;
25797 }
25798 resultobj = result;
25799 return resultobj;
25800 fail:
25801 return NULL;
25802 }
25803
25804
25805 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25806 PyObject *resultobj;
25807 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25808 wxTreeItemId *arg2 = 0 ;
25809 wxTreeItemId result;
25810 PyObject * obj0 = 0 ;
25811 PyObject * obj1 = 0 ;
25812 char *kwnames[] = {
25813 (char *) "self",(char *) "item", NULL
25814 };
25815
25816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
25817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25819 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25820 SWIG_POINTER_EXCEPTION | 0)) == -1)
25821 SWIG_fail;
25822 if (arg2 == NULL) {
25823 PyErr_SetString(PyExc_TypeError,"null reference");
25824 SWIG_fail;
25825 }
25826 {
25827 PyThreadState* __tstate = wxPyBeginAllowThreads();
25828 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
25829
25830 wxPyEndAllowThreads(__tstate);
25831 if (PyErr_Occurred()) SWIG_fail;
25832 }
25833 {
25834 wxTreeItemId * resultptr;
25835 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25836 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25837 }
25838 return resultobj;
25839 fail:
25840 return NULL;
25841 }
25842
25843
25844 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
25845 PyObject *resultobj;
25846 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25847 wxTreeItemId *arg2 = 0 ;
25848 wxTreeItemId result;
25849 PyObject * obj0 = 0 ;
25850 PyObject * obj1 = 0 ;
25851 char *kwnames[] = {
25852 (char *) "self",(char *) "item", NULL
25853 };
25854
25855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
25856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25859 SWIG_POINTER_EXCEPTION | 0)) == -1)
25860 SWIG_fail;
25861 if (arg2 == NULL) {
25862 PyErr_SetString(PyExc_TypeError,"null reference");
25863 SWIG_fail;
25864 }
25865 {
25866 PyThreadState* __tstate = wxPyBeginAllowThreads();
25867 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
25868
25869 wxPyEndAllowThreads(__tstate);
25870 if (PyErr_Occurred()) SWIG_fail;
25871 }
25872 {
25873 wxTreeItemId * resultptr;
25874 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25875 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25876 }
25877 return resultobj;
25878 fail:
25879 return NULL;
25880 }
25881
25882
25883 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
25884 PyObject *resultobj;
25885 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25886 wxTreeItemId *arg2 = 0 ;
25887 wxTreeItemId result;
25888 PyObject * obj0 = 0 ;
25889 PyObject * obj1 = 0 ;
25890 char *kwnames[] = {
25891 (char *) "self",(char *) "item", NULL
25892 };
25893
25894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
25895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25897 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25898 SWIG_POINTER_EXCEPTION | 0)) == -1)
25899 SWIG_fail;
25900 if (arg2 == NULL) {
25901 PyErr_SetString(PyExc_TypeError,"null reference");
25902 SWIG_fail;
25903 }
25904 {
25905 PyThreadState* __tstate = wxPyBeginAllowThreads();
25906 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
25907
25908 wxPyEndAllowThreads(__tstate);
25909 if (PyErr_Occurred()) SWIG_fail;
25910 }
25911 {
25912 wxTreeItemId * resultptr;
25913 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25914 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25915 }
25916 return resultobj;
25917 fail:
25918 return NULL;
25919 }
25920
25921
25922 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25923 PyObject *resultobj;
25924 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25925 wxTreeItemId result;
25926 PyObject * obj0 = 0 ;
25927 char *kwnames[] = {
25928 (char *) "self", NULL
25929 };
25930
25931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
25932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25934 {
25935 PyThreadState* __tstate = wxPyBeginAllowThreads();
25936 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
25937
25938 wxPyEndAllowThreads(__tstate);
25939 if (PyErr_Occurred()) SWIG_fail;
25940 }
25941 {
25942 wxTreeItemId * resultptr;
25943 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25944 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25945 }
25946 return resultobj;
25947 fail:
25948 return NULL;
25949 }
25950
25951
25952 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25953 PyObject *resultobj;
25954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25955 wxTreeItemId *arg2 = 0 ;
25956 wxTreeItemId result;
25957 PyObject * obj0 = 0 ;
25958 PyObject * obj1 = 0 ;
25959 char *kwnames[] = {
25960 (char *) "self",(char *) "item", NULL
25961 };
25962
25963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
25964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25966 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25967 SWIG_POINTER_EXCEPTION | 0)) == -1)
25968 SWIG_fail;
25969 if (arg2 == NULL) {
25970 PyErr_SetString(PyExc_TypeError,"null reference");
25971 SWIG_fail;
25972 }
25973 {
25974 PyThreadState* __tstate = wxPyBeginAllowThreads();
25975 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
25976
25977 wxPyEndAllowThreads(__tstate);
25978 if (PyErr_Occurred()) SWIG_fail;
25979 }
25980 {
25981 wxTreeItemId * resultptr;
25982 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25983 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25984 }
25985 return resultobj;
25986 fail:
25987 return NULL;
25988 }
25989
25990
25991 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25992 PyObject *resultobj;
25993 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25994 wxTreeItemId *arg2 = 0 ;
25995 wxTreeItemId result;
25996 PyObject * obj0 = 0 ;
25997 PyObject * obj1 = 0 ;
25998 char *kwnames[] = {
25999 (char *) "self",(char *) "item", NULL
26000 };
26001
26002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
26003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26005 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26006 SWIG_POINTER_EXCEPTION | 0)) == -1)
26007 SWIG_fail;
26008 if (arg2 == NULL) {
26009 PyErr_SetString(PyExc_TypeError,"null reference");
26010 SWIG_fail;
26011 }
26012 {
26013 PyThreadState* __tstate = wxPyBeginAllowThreads();
26014 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
26015
26016 wxPyEndAllowThreads(__tstate);
26017 if (PyErr_Occurred()) SWIG_fail;
26018 }
26019 {
26020 wxTreeItemId * resultptr;
26021 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26022 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26023 }
26024 return resultobj;
26025 fail:
26026 return NULL;
26027 }
26028
26029
26030 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
26031 PyObject *resultobj;
26032 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26033 wxString *arg2 = 0 ;
26034 int arg3 = (int) -1 ;
26035 int arg4 = (int) -1 ;
26036 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
26037 wxTreeItemId result;
26038 bool temp2 = False ;
26039 PyObject * obj0 = 0 ;
26040 PyObject * obj1 = 0 ;
26041 PyObject * obj2 = 0 ;
26042 PyObject * obj3 = 0 ;
26043 PyObject * obj4 = 0 ;
26044 char *kwnames[] = {
26045 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26046 };
26047
26048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26051 {
26052 arg2 = wxString_in_helper(obj1);
26053 if (arg2 == NULL) SWIG_fail;
26054 temp2 = True;
26055 }
26056 if (obj2) {
26057 arg3 = (int) SWIG_AsInt(obj2);
26058 if (PyErr_Occurred()) SWIG_fail;
26059 }
26060 if (obj3) {
26061 arg4 = (int) SWIG_AsInt(obj3);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 }
26064 if (obj4) {
26065 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
26066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26067 }
26068 {
26069 PyThreadState* __tstate = wxPyBeginAllowThreads();
26070 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
26071
26072 wxPyEndAllowThreads(__tstate);
26073 if (PyErr_Occurred()) SWIG_fail;
26074 }
26075 {
26076 wxTreeItemId * resultptr;
26077 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26078 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26079 }
26080 {
26081 if (temp2)
26082 delete arg2;
26083 }
26084 return resultobj;
26085 fail:
26086 {
26087 if (temp2)
26088 delete arg2;
26089 }
26090 return NULL;
26091 }
26092
26093
26094 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26095 PyObject *resultobj;
26096 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26097 wxTreeItemId *arg2 = 0 ;
26098 wxString *arg3 = 0 ;
26099 int arg4 = (int) -1 ;
26100 int arg5 = (int) -1 ;
26101 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26102 wxTreeItemId result;
26103 bool temp3 = False ;
26104 PyObject * obj0 = 0 ;
26105 PyObject * obj1 = 0 ;
26106 PyObject * obj2 = 0 ;
26107 PyObject * obj3 = 0 ;
26108 PyObject * obj4 = 0 ;
26109 PyObject * obj5 = 0 ;
26110 char *kwnames[] = {
26111 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26112 };
26113
26114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26118 SWIG_POINTER_EXCEPTION | 0)) == -1)
26119 SWIG_fail;
26120 if (arg2 == NULL) {
26121 PyErr_SetString(PyExc_TypeError,"null reference");
26122 SWIG_fail;
26123 }
26124 {
26125 arg3 = wxString_in_helper(obj2);
26126 if (arg3 == NULL) SWIG_fail;
26127 temp3 = True;
26128 }
26129 if (obj3) {
26130 arg4 = (int) SWIG_AsInt(obj3);
26131 if (PyErr_Occurred()) SWIG_fail;
26132 }
26133 if (obj4) {
26134 arg5 = (int) SWIG_AsInt(obj4);
26135 if (PyErr_Occurred()) SWIG_fail;
26136 }
26137 if (obj5) {
26138 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26140 }
26141 {
26142 PyThreadState* __tstate = wxPyBeginAllowThreads();
26143 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26144
26145 wxPyEndAllowThreads(__tstate);
26146 if (PyErr_Occurred()) SWIG_fail;
26147 }
26148 {
26149 wxTreeItemId * resultptr;
26150 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26151 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26152 }
26153 {
26154 if (temp3)
26155 delete arg3;
26156 }
26157 return resultobj;
26158 fail:
26159 {
26160 if (temp3)
26161 delete arg3;
26162 }
26163 return NULL;
26164 }
26165
26166
26167 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26168 PyObject *resultobj;
26169 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26170 wxTreeItemId *arg2 = 0 ;
26171 wxTreeItemId *arg3 = 0 ;
26172 wxString *arg4 = 0 ;
26173 int arg5 = (int) -1 ;
26174 int arg6 = (int) -1 ;
26175 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26176 wxTreeItemId result;
26177 bool temp4 = False ;
26178 PyObject * obj0 = 0 ;
26179 PyObject * obj1 = 0 ;
26180 PyObject * obj2 = 0 ;
26181 PyObject * obj3 = 0 ;
26182 PyObject * obj4 = 0 ;
26183 PyObject * obj5 = 0 ;
26184 PyObject * obj6 = 0 ;
26185 char *kwnames[] = {
26186 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26187 };
26188
26189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26192 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26193 SWIG_POINTER_EXCEPTION | 0)) == -1)
26194 SWIG_fail;
26195 if (arg2 == NULL) {
26196 PyErr_SetString(PyExc_TypeError,"null reference");
26197 SWIG_fail;
26198 }
26199 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
26200 SWIG_POINTER_EXCEPTION | 0)) == -1)
26201 SWIG_fail;
26202 if (arg3 == NULL) {
26203 PyErr_SetString(PyExc_TypeError,"null reference");
26204 SWIG_fail;
26205 }
26206 {
26207 arg4 = wxString_in_helper(obj3);
26208 if (arg4 == NULL) SWIG_fail;
26209 temp4 = True;
26210 }
26211 if (obj4) {
26212 arg5 = (int) SWIG_AsInt(obj4);
26213 if (PyErr_Occurred()) SWIG_fail;
26214 }
26215 if (obj5) {
26216 arg6 = (int) SWIG_AsInt(obj5);
26217 if (PyErr_Occurred()) SWIG_fail;
26218 }
26219 if (obj6) {
26220 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26222 }
26223 {
26224 PyThreadState* __tstate = wxPyBeginAllowThreads();
26225 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26226
26227 wxPyEndAllowThreads(__tstate);
26228 if (PyErr_Occurred()) SWIG_fail;
26229 }
26230 {
26231 wxTreeItemId * resultptr;
26232 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26233 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26234 }
26235 {
26236 if (temp4)
26237 delete arg4;
26238 }
26239 return resultobj;
26240 fail:
26241 {
26242 if (temp4)
26243 delete arg4;
26244 }
26245 return NULL;
26246 }
26247
26248
26249 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
26250 PyObject *resultobj;
26251 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26252 wxTreeItemId *arg2 = 0 ;
26253 size_t arg3 ;
26254 wxString *arg4 = 0 ;
26255 int arg5 = (int) -1 ;
26256 int arg6 = (int) -1 ;
26257 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26258 wxTreeItemId result;
26259 bool temp4 = False ;
26260 PyObject * obj0 = 0 ;
26261 PyObject * obj1 = 0 ;
26262 PyObject * obj2 = 0 ;
26263 PyObject * obj3 = 0 ;
26264 PyObject * obj4 = 0 ;
26265 PyObject * obj5 = 0 ;
26266 PyObject * obj6 = 0 ;
26267 char *kwnames[] = {
26268 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26269 };
26270
26271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26275 SWIG_POINTER_EXCEPTION | 0)) == -1)
26276 SWIG_fail;
26277 if (arg2 == NULL) {
26278 PyErr_SetString(PyExc_TypeError,"null reference");
26279 SWIG_fail;
26280 }
26281 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
26282 if (PyErr_Occurred()) SWIG_fail;
26283 {
26284 arg4 = wxString_in_helper(obj3);
26285 if (arg4 == NULL) SWIG_fail;
26286 temp4 = True;
26287 }
26288 if (obj4) {
26289 arg5 = (int) SWIG_AsInt(obj4);
26290 if (PyErr_Occurred()) SWIG_fail;
26291 }
26292 if (obj5) {
26293 arg6 = (int) SWIG_AsInt(obj5);
26294 if (PyErr_Occurred()) SWIG_fail;
26295 }
26296 if (obj6) {
26297 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26299 }
26300 {
26301 PyThreadState* __tstate = wxPyBeginAllowThreads();
26302 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26303
26304 wxPyEndAllowThreads(__tstate);
26305 if (PyErr_Occurred()) SWIG_fail;
26306 }
26307 {
26308 wxTreeItemId * resultptr;
26309 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26310 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26311 }
26312 {
26313 if (temp4)
26314 delete arg4;
26315 }
26316 return resultobj;
26317 fail:
26318 {
26319 if (temp4)
26320 delete arg4;
26321 }
26322 return NULL;
26323 }
26324
26325
26326 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26327 PyObject *resultobj;
26328 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26329 wxTreeItemId *arg2 = 0 ;
26330 wxString *arg3 = 0 ;
26331 int arg4 = (int) -1 ;
26332 int arg5 = (int) -1 ;
26333 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26334 wxTreeItemId result;
26335 bool temp3 = False ;
26336 PyObject * obj0 = 0 ;
26337 PyObject * obj1 = 0 ;
26338 PyObject * obj2 = 0 ;
26339 PyObject * obj3 = 0 ;
26340 PyObject * obj4 = 0 ;
26341 PyObject * obj5 = 0 ;
26342 char *kwnames[] = {
26343 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26344 };
26345
26346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26350 SWIG_POINTER_EXCEPTION | 0)) == -1)
26351 SWIG_fail;
26352 if (arg2 == NULL) {
26353 PyErr_SetString(PyExc_TypeError,"null reference");
26354 SWIG_fail;
26355 }
26356 {
26357 arg3 = wxString_in_helper(obj2);
26358 if (arg3 == NULL) SWIG_fail;
26359 temp3 = True;
26360 }
26361 if (obj3) {
26362 arg4 = (int) SWIG_AsInt(obj3);
26363 if (PyErr_Occurred()) SWIG_fail;
26364 }
26365 if (obj4) {
26366 arg5 = (int) SWIG_AsInt(obj4);
26367 if (PyErr_Occurred()) SWIG_fail;
26368 }
26369 if (obj5) {
26370 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26372 }
26373 {
26374 PyThreadState* __tstate = wxPyBeginAllowThreads();
26375 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26376
26377 wxPyEndAllowThreads(__tstate);
26378 if (PyErr_Occurred()) SWIG_fail;
26379 }
26380 {
26381 wxTreeItemId * resultptr;
26382 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26383 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26384 }
26385 {
26386 if (temp3)
26387 delete arg3;
26388 }
26389 return resultobj;
26390 fail:
26391 {
26392 if (temp3)
26393 delete arg3;
26394 }
26395 return NULL;
26396 }
26397
26398
26399 static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
26400 PyObject *resultobj;
26401 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26402 wxTreeItemId *arg2 = 0 ;
26403 PyObject * obj0 = 0 ;
26404 PyObject * obj1 = 0 ;
26405 char *kwnames[] = {
26406 (char *) "self",(char *) "item", NULL
26407 };
26408
26409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
26410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26412 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26413 SWIG_POINTER_EXCEPTION | 0)) == -1)
26414 SWIG_fail;
26415 if (arg2 == NULL) {
26416 PyErr_SetString(PyExc_TypeError,"null reference");
26417 SWIG_fail;
26418 }
26419 {
26420 PyThreadState* __tstate = wxPyBeginAllowThreads();
26421 (arg1)->Delete((wxTreeItemId const &)*arg2);
26422
26423 wxPyEndAllowThreads(__tstate);
26424 if (PyErr_Occurred()) SWIG_fail;
26425 }
26426 Py_INCREF(Py_None); resultobj = Py_None;
26427 return resultobj;
26428 fail:
26429 return NULL;
26430 }
26431
26432
26433 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26434 PyObject *resultobj;
26435 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26436 wxTreeItemId *arg2 = 0 ;
26437 PyObject * obj0 = 0 ;
26438 PyObject * obj1 = 0 ;
26439 char *kwnames[] = {
26440 (char *) "self",(char *) "item", NULL
26441 };
26442
26443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
26444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26446 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26447 SWIG_POINTER_EXCEPTION | 0)) == -1)
26448 SWIG_fail;
26449 if (arg2 == NULL) {
26450 PyErr_SetString(PyExc_TypeError,"null reference");
26451 SWIG_fail;
26452 }
26453 {
26454 PyThreadState* __tstate = wxPyBeginAllowThreads();
26455 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
26456
26457 wxPyEndAllowThreads(__tstate);
26458 if (PyErr_Occurred()) SWIG_fail;
26459 }
26460 Py_INCREF(Py_None); resultobj = Py_None;
26461 return resultobj;
26462 fail:
26463 return NULL;
26464 }
26465
26466
26467 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
26468 PyObject *resultobj;
26469 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26470 PyObject * obj0 = 0 ;
26471 char *kwnames[] = {
26472 (char *) "self", NULL
26473 };
26474
26475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
26476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26478 {
26479 PyThreadState* __tstate = wxPyBeginAllowThreads();
26480 (arg1)->DeleteAllItems();
26481
26482 wxPyEndAllowThreads(__tstate);
26483 if (PyErr_Occurred()) SWIG_fail;
26484 }
26485 Py_INCREF(Py_None); resultobj = Py_None;
26486 return resultobj;
26487 fail:
26488 return NULL;
26489 }
26490
26491
26492 static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
26493 PyObject *resultobj;
26494 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26495 wxTreeItemId *arg2 = 0 ;
26496 PyObject * obj0 = 0 ;
26497 PyObject * obj1 = 0 ;
26498 char *kwnames[] = {
26499 (char *) "self",(char *) "item", NULL
26500 };
26501
26502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
26503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26506 SWIG_POINTER_EXCEPTION | 0)) == -1)
26507 SWIG_fail;
26508 if (arg2 == NULL) {
26509 PyErr_SetString(PyExc_TypeError,"null reference");
26510 SWIG_fail;
26511 }
26512 {
26513 PyThreadState* __tstate = wxPyBeginAllowThreads();
26514 (arg1)->Expand((wxTreeItemId const &)*arg2);
26515
26516 wxPyEndAllowThreads(__tstate);
26517 if (PyErr_Occurred()) SWIG_fail;
26518 }
26519 Py_INCREF(Py_None); resultobj = Py_None;
26520 return resultobj;
26521 fail:
26522 return NULL;
26523 }
26524
26525
26526 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
26527 PyObject *resultobj;
26528 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26529 wxTreeItemId *arg2 = 0 ;
26530 PyObject * obj0 = 0 ;
26531 PyObject * obj1 = 0 ;
26532 char *kwnames[] = {
26533 (char *) "self",(char *) "item", NULL
26534 };
26535
26536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
26537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26539 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26540 SWIG_POINTER_EXCEPTION | 0)) == -1)
26541 SWIG_fail;
26542 if (arg2 == NULL) {
26543 PyErr_SetString(PyExc_TypeError,"null reference");
26544 SWIG_fail;
26545 }
26546 {
26547 PyThreadState* __tstate = wxPyBeginAllowThreads();
26548 (arg1)->Collapse((wxTreeItemId const &)*arg2);
26549
26550 wxPyEndAllowThreads(__tstate);
26551 if (PyErr_Occurred()) SWIG_fail;
26552 }
26553 Py_INCREF(Py_None); resultobj = Py_None;
26554 return resultobj;
26555 fail:
26556 return NULL;
26557 }
26558
26559
26560 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
26561 PyObject *resultobj;
26562 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26563 wxTreeItemId *arg2 = 0 ;
26564 PyObject * obj0 = 0 ;
26565 PyObject * obj1 = 0 ;
26566 char *kwnames[] = {
26567 (char *) "self",(char *) "item", NULL
26568 };
26569
26570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
26571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26573 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26574 SWIG_POINTER_EXCEPTION | 0)) == -1)
26575 SWIG_fail;
26576 if (arg2 == NULL) {
26577 PyErr_SetString(PyExc_TypeError,"null reference");
26578 SWIG_fail;
26579 }
26580 {
26581 PyThreadState* __tstate = wxPyBeginAllowThreads();
26582 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
26583
26584 wxPyEndAllowThreads(__tstate);
26585 if (PyErr_Occurred()) SWIG_fail;
26586 }
26587 Py_INCREF(Py_None); resultobj = Py_None;
26588 return resultobj;
26589 fail:
26590 return NULL;
26591 }
26592
26593
26594 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
26595 PyObject *resultobj;
26596 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26597 wxTreeItemId *arg2 = 0 ;
26598 PyObject * obj0 = 0 ;
26599 PyObject * obj1 = 0 ;
26600 char *kwnames[] = {
26601 (char *) "self",(char *) "item", NULL
26602 };
26603
26604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
26605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26607 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26608 SWIG_POINTER_EXCEPTION | 0)) == -1)
26609 SWIG_fail;
26610 if (arg2 == NULL) {
26611 PyErr_SetString(PyExc_TypeError,"null reference");
26612 SWIG_fail;
26613 }
26614 {
26615 PyThreadState* __tstate = wxPyBeginAllowThreads();
26616 (arg1)->Toggle((wxTreeItemId const &)*arg2);
26617
26618 wxPyEndAllowThreads(__tstate);
26619 if (PyErr_Occurred()) SWIG_fail;
26620 }
26621 Py_INCREF(Py_None); resultobj = Py_None;
26622 return resultobj;
26623 fail:
26624 return NULL;
26625 }
26626
26627
26628 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
26629 PyObject *resultobj;
26630 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26631 PyObject * obj0 = 0 ;
26632 char *kwnames[] = {
26633 (char *) "self", NULL
26634 };
26635
26636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
26637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26639 {
26640 PyThreadState* __tstate = wxPyBeginAllowThreads();
26641 (arg1)->Unselect();
26642
26643 wxPyEndAllowThreads(__tstate);
26644 if (PyErr_Occurred()) SWIG_fail;
26645 }
26646 Py_INCREF(Py_None); resultobj = Py_None;
26647 return resultobj;
26648 fail:
26649 return NULL;
26650 }
26651
26652
26653 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26654 PyObject *resultobj;
26655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26656 wxTreeItemId *arg2 = 0 ;
26657 PyObject * obj0 = 0 ;
26658 PyObject * obj1 = 0 ;
26659 char *kwnames[] = {
26660 (char *) "self",(char *) "item", NULL
26661 };
26662
26663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
26664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26666 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26667 SWIG_POINTER_EXCEPTION | 0)) == -1)
26668 SWIG_fail;
26669 if (arg2 == NULL) {
26670 PyErr_SetString(PyExc_TypeError,"null reference");
26671 SWIG_fail;
26672 }
26673 {
26674 PyThreadState* __tstate = wxPyBeginAllowThreads();
26675 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
26676
26677 wxPyEndAllowThreads(__tstate);
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
26680 Py_INCREF(Py_None); resultobj = Py_None;
26681 return resultobj;
26682 fail:
26683 return NULL;
26684 }
26685
26686
26687 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
26688 PyObject *resultobj;
26689 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26690 PyObject * obj0 = 0 ;
26691 char *kwnames[] = {
26692 (char *) "self", NULL
26693 };
26694
26695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
26696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26698 {
26699 PyThreadState* __tstate = wxPyBeginAllowThreads();
26700 (arg1)->UnselectAll();
26701
26702 wxPyEndAllowThreads(__tstate);
26703 if (PyErr_Occurred()) SWIG_fail;
26704 }
26705 Py_INCREF(Py_None); resultobj = Py_None;
26706 return resultobj;
26707 fail:
26708 return NULL;
26709 }
26710
26711
26712 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26713 PyObject *resultobj;
26714 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26715 wxTreeItemId *arg2 = 0 ;
26716 bool arg3 = (bool) True ;
26717 PyObject * obj0 = 0 ;
26718 PyObject * obj1 = 0 ;
26719 PyObject * obj2 = 0 ;
26720 char *kwnames[] = {
26721 (char *) "self",(char *) "item",(char *) "select", NULL
26722 };
26723
26724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
26725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26728 SWIG_POINTER_EXCEPTION | 0)) == -1)
26729 SWIG_fail;
26730 if (arg2 == NULL) {
26731 PyErr_SetString(PyExc_TypeError,"null reference");
26732 SWIG_fail;
26733 }
26734 if (obj2) {
26735 arg3 = (bool) SWIG_AsBool(obj2);
26736 if (PyErr_Occurred()) SWIG_fail;
26737 }
26738 {
26739 PyThreadState* __tstate = wxPyBeginAllowThreads();
26740 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
26741
26742 wxPyEndAllowThreads(__tstate);
26743 if (PyErr_Occurred()) SWIG_fail;
26744 }
26745 Py_INCREF(Py_None); resultobj = Py_None;
26746 return resultobj;
26747 fail:
26748 return NULL;
26749 }
26750
26751
26752 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26753 PyObject *resultobj;
26754 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26755 wxTreeItemId *arg2 = 0 ;
26756 PyObject * obj0 = 0 ;
26757 PyObject * obj1 = 0 ;
26758 char *kwnames[] = {
26759 (char *) "self",(char *) "item", NULL
26760 };
26761
26762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
26763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26765 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26766 SWIG_POINTER_EXCEPTION | 0)) == -1)
26767 SWIG_fail;
26768 if (arg2 == NULL) {
26769 PyErr_SetString(PyExc_TypeError,"null reference");
26770 SWIG_fail;
26771 }
26772 {
26773 PyThreadState* __tstate = wxPyBeginAllowThreads();
26774 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
26775
26776 wxPyEndAllowThreads(__tstate);
26777 if (PyErr_Occurred()) SWIG_fail;
26778 }
26779 Py_INCREF(Py_None); resultobj = Py_None;
26780 return resultobj;
26781 fail:
26782 return NULL;
26783 }
26784
26785
26786 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26787 PyObject *resultobj;
26788 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26789 wxTreeItemId *arg2 = 0 ;
26790 PyObject * obj0 = 0 ;
26791 PyObject * obj1 = 0 ;
26792 char *kwnames[] = {
26793 (char *) "self",(char *) "item", NULL
26794 };
26795
26796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
26797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26799 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26800 SWIG_POINTER_EXCEPTION | 0)) == -1)
26801 SWIG_fail;
26802 if (arg2 == NULL) {
26803 PyErr_SetString(PyExc_TypeError,"null reference");
26804 SWIG_fail;
26805 }
26806 {
26807 PyThreadState* __tstate = wxPyBeginAllowThreads();
26808 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
26809
26810 wxPyEndAllowThreads(__tstate);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 }
26813 Py_INCREF(Py_None); resultobj = Py_None;
26814 return resultobj;
26815 fail:
26816 return NULL;
26817 }
26818
26819
26820 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
26821 PyObject *resultobj;
26822 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26823 wxTreeItemId *arg2 = 0 ;
26824 PyObject * obj0 = 0 ;
26825 PyObject * obj1 = 0 ;
26826 char *kwnames[] = {
26827 (char *) "self",(char *) "item", NULL
26828 };
26829
26830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
26831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26833 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26834 SWIG_POINTER_EXCEPTION | 0)) == -1)
26835 SWIG_fail;
26836 if (arg2 == NULL) {
26837 PyErr_SetString(PyExc_TypeError,"null reference");
26838 SWIG_fail;
26839 }
26840 {
26841 PyThreadState* __tstate = wxPyBeginAllowThreads();
26842 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
26843
26844 wxPyEndAllowThreads(__tstate);
26845 if (PyErr_Occurred()) SWIG_fail;
26846 }
26847 Py_INCREF(Py_None); resultobj = Py_None;
26848 return resultobj;
26849 fail:
26850 return NULL;
26851 }
26852
26853
26854 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
26855 PyObject *resultobj;
26856 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26857 wxTreeItemId *arg2 = 0 ;
26858 PyObject * obj0 = 0 ;
26859 PyObject * obj1 = 0 ;
26860 char *kwnames[] = {
26861 (char *) "self",(char *) "item", NULL
26862 };
26863
26864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
26865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26867 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26868 SWIG_POINTER_EXCEPTION | 0)) == -1)
26869 SWIG_fail;
26870 if (arg2 == NULL) {
26871 PyErr_SetString(PyExc_TypeError,"null reference");
26872 SWIG_fail;
26873 }
26874 {
26875 PyThreadState* __tstate = wxPyBeginAllowThreads();
26876 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
26877
26878 wxPyEndAllowThreads(__tstate);
26879 if (PyErr_Occurred()) SWIG_fail;
26880 }
26881 Py_INCREF(Py_None); resultobj = Py_None;
26882 return resultobj;
26883 fail:
26884 return NULL;
26885 }
26886
26887
26888 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
26889 PyObject *resultobj;
26890 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26891 wxTextCtrl *result;
26892 PyObject * obj0 = 0 ;
26893 char *kwnames[] = {
26894 (char *) "self", NULL
26895 };
26896
26897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
26898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26900 {
26901 PyThreadState* __tstate = wxPyBeginAllowThreads();
26902 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
26903
26904 wxPyEndAllowThreads(__tstate);
26905 if (PyErr_Occurred()) SWIG_fail;
26906 }
26907 {
26908 resultobj = wxPyMake_wxObject(result);
26909 }
26910 return resultobj;
26911 fail:
26912 return NULL;
26913 }
26914
26915
26916 static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
26917 PyObject *resultobj;
26918 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26919 wxTreeItemId *arg2 = 0 ;
26920 bool arg3 = (bool) False ;
26921 PyObject * obj0 = 0 ;
26922 PyObject * obj1 = 0 ;
26923 PyObject * obj2 = 0 ;
26924 char *kwnames[] = {
26925 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
26926 };
26927
26928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
26929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26931 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26932 SWIG_POINTER_EXCEPTION | 0)) == -1)
26933 SWIG_fail;
26934 if (arg2 == NULL) {
26935 PyErr_SetString(PyExc_TypeError,"null reference");
26936 SWIG_fail;
26937 }
26938 if (obj2) {
26939 arg3 = (bool) SWIG_AsBool(obj2);
26940 if (PyErr_Occurred()) SWIG_fail;
26941 }
26942 {
26943 PyThreadState* __tstate = wxPyBeginAllowThreads();
26944 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
26945
26946 wxPyEndAllowThreads(__tstate);
26947 if (PyErr_Occurred()) SWIG_fail;
26948 }
26949 Py_INCREF(Py_None); resultobj = Py_None;
26950 return resultobj;
26951 fail:
26952 return NULL;
26953 }
26954
26955
26956 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26957 PyObject *resultobj;
26958 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26959 wxTreeItemId *arg2 = 0 ;
26960 PyObject * obj0 = 0 ;
26961 PyObject * obj1 = 0 ;
26962 char *kwnames[] = {
26963 (char *) "self",(char *) "item", NULL
26964 };
26965
26966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
26967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26969 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26970 SWIG_POINTER_EXCEPTION | 0)) == -1)
26971 SWIG_fail;
26972 if (arg2 == NULL) {
26973 PyErr_SetString(PyExc_TypeError,"null reference");
26974 SWIG_fail;
26975 }
26976 {
26977 PyThreadState* __tstate = wxPyBeginAllowThreads();
26978 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
26979
26980 wxPyEndAllowThreads(__tstate);
26981 if (PyErr_Occurred()) SWIG_fail;
26982 }
26983 Py_INCREF(Py_None); resultobj = Py_None;
26984 return resultobj;
26985 fail:
26986 return NULL;
26987 }
26988
26989
26990 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
26991 PyObject *resultobj;
26992 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26993 wxPoint *arg2 = 0 ;
26994 int *arg3 = 0 ;
26995 wxTreeItemId result;
26996 wxPoint temp2 ;
26997 int temp3 ;
26998 PyObject * obj0 = 0 ;
26999 PyObject * obj1 = 0 ;
27000 char *kwnames[] = {
27001 (char *) "self",(char *) "point", NULL
27002 };
27003
27004 arg3 = &temp3;
27005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
27006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27008 {
27009 arg2 = &temp2;
27010 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27011 }
27012 {
27013 PyThreadState* __tstate = wxPyBeginAllowThreads();
27014 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
27015
27016 wxPyEndAllowThreads(__tstate);
27017 if (PyErr_Occurred()) SWIG_fail;
27018 }
27019 {
27020 wxTreeItemId * resultptr;
27021 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27022 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27023 }
27024 {
27025 PyObject *o = PyInt_FromLong((long) (*arg3));
27026 resultobj = t_output_helper(resultobj,o);
27027 }
27028 return resultobj;
27029 fail:
27030 return NULL;
27031 }
27032
27033
27034 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
27035 PyObject *resultobj;
27036 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27037 wxTreeItemId *arg2 = 0 ;
27038 bool arg3 = (bool) False ;
27039 PyObject *result;
27040 PyObject * obj0 = 0 ;
27041 PyObject * obj1 = 0 ;
27042 PyObject * obj2 = 0 ;
27043 char *kwnames[] = {
27044 (char *) "self",(char *) "item",(char *) "textOnly", NULL
27045 };
27046
27047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
27048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27050 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27051 SWIG_POINTER_EXCEPTION | 0)) == -1)
27052 SWIG_fail;
27053 if (arg2 == NULL) {
27054 PyErr_SetString(PyExc_TypeError,"null reference");
27055 SWIG_fail;
27056 }
27057 if (obj2) {
27058 arg3 = (bool) SWIG_AsBool(obj2);
27059 if (PyErr_Occurred()) SWIG_fail;
27060 }
27061 {
27062 PyThreadState* __tstate = wxPyBeginAllowThreads();
27063 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
27064
27065 wxPyEndAllowThreads(__tstate);
27066 if (PyErr_Occurred()) SWIG_fail;
27067 }
27068 resultobj = result;
27069 return resultobj;
27070 fail:
27071 return NULL;
27072 }
27073
27074
27075 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
27076 PyObject *resultobj;
27077 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
27078 wxVisualAttributes result;
27079 PyObject * obj0 = 0 ;
27080 char *kwnames[] = {
27081 (char *) "variant", NULL
27082 };
27083
27084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
27085 if (obj0) {
27086 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
27087 if (PyErr_Occurred()) SWIG_fail;
27088 }
27089 {
27090 PyThreadState* __tstate = wxPyBeginAllowThreads();
27091 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
27092
27093 wxPyEndAllowThreads(__tstate);
27094 if (PyErr_Occurred()) SWIG_fail;
27095 }
27096 {
27097 wxVisualAttributes * resultptr;
27098 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
27099 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
27100 }
27101 return resultobj;
27102 fail:
27103 return NULL;
27104 }
27105
27106
27107 static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
27108 PyObject *obj;
27109 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27110 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
27111 Py_INCREF(obj);
27112 return Py_BuildValue((char *)"");
27113 }
27114 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
27115 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
27116 return 1;
27117 }
27118
27119
27120 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
27121 PyObject *pyobj;
27122
27123 {
27124 #if wxUSE_UNICODE
27125 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27126 #else
27127 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27128 #endif
27129 }
27130 return pyobj;
27131 }
27132
27133
27134 static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27135 PyObject *resultobj;
27136 wxWindow *arg1 = (wxWindow *) 0 ;
27137 int arg2 = (int) (int)-1 ;
27138 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
27139 wxString *arg3 = (wxString *) &arg3_defvalue ;
27140 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27141 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27142 wxSize const &arg5_defvalue = wxDefaultSize ;
27143 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27144 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27145 wxString const &arg7_defvalue = wxPyEmptyString ;
27146 wxString *arg7 = (wxString *) &arg7_defvalue ;
27147 int arg8 = (int) 0 ;
27148 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
27149 wxString *arg9 = (wxString *) &arg9_defvalue ;
27150 wxGenericDirCtrl *result;
27151 bool temp3 = False ;
27152 wxPoint temp4 ;
27153 wxSize temp5 ;
27154 bool temp7 = False ;
27155 bool temp9 = False ;
27156 PyObject * obj0 = 0 ;
27157 PyObject * obj1 = 0 ;
27158 PyObject * obj2 = 0 ;
27159 PyObject * obj3 = 0 ;
27160 PyObject * obj4 = 0 ;
27161 PyObject * obj5 = 0 ;
27162 PyObject * obj6 = 0 ;
27163 PyObject * obj7 = 0 ;
27164 PyObject * obj8 = 0 ;
27165 char *kwnames[] = {
27166 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27167 };
27168
27169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
27170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27172 if (obj1) {
27173 arg2 = (int const) SWIG_AsInt(obj1);
27174 if (PyErr_Occurred()) SWIG_fail;
27175 }
27176 if (obj2) {
27177 {
27178 arg3 = wxString_in_helper(obj2);
27179 if (arg3 == NULL) SWIG_fail;
27180 temp3 = True;
27181 }
27182 }
27183 if (obj3) {
27184 {
27185 arg4 = &temp4;
27186 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27187 }
27188 }
27189 if (obj4) {
27190 {
27191 arg5 = &temp5;
27192 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27193 }
27194 }
27195 if (obj5) {
27196 arg6 = (long) SWIG_AsLong(obj5);
27197 if (PyErr_Occurred()) SWIG_fail;
27198 }
27199 if (obj6) {
27200 {
27201 arg7 = wxString_in_helper(obj6);
27202 if (arg7 == NULL) SWIG_fail;
27203 temp7 = True;
27204 }
27205 }
27206 if (obj7) {
27207 arg8 = (int) SWIG_AsInt(obj7);
27208 if (PyErr_Occurred()) SWIG_fail;
27209 }
27210 if (obj8) {
27211 {
27212 arg9 = wxString_in_helper(obj8);
27213 if (arg9 == NULL) SWIG_fail;
27214 temp9 = True;
27215 }
27216 }
27217 {
27218 PyThreadState* __tstate = wxPyBeginAllowThreads();
27219 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
27220
27221 wxPyEndAllowThreads(__tstate);
27222 if (PyErr_Occurred()) SWIG_fail;
27223 }
27224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27225 {
27226 if (temp3)
27227 delete arg3;
27228 }
27229 {
27230 if (temp7)
27231 delete arg7;
27232 }
27233 {
27234 if (temp9)
27235 delete arg9;
27236 }
27237 return resultobj;
27238 fail:
27239 {
27240 if (temp3)
27241 delete arg3;
27242 }
27243 {
27244 if (temp7)
27245 delete arg7;
27246 }
27247 {
27248 if (temp9)
27249 delete arg9;
27250 }
27251 return NULL;
27252 }
27253
27254
27255 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27256 PyObject *resultobj;
27257 wxGenericDirCtrl *result;
27258 char *kwnames[] = {
27259 NULL
27260 };
27261
27262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
27263 {
27264 PyThreadState* __tstate = wxPyBeginAllowThreads();
27265 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
27266
27267 wxPyEndAllowThreads(__tstate);
27268 if (PyErr_Occurred()) SWIG_fail;
27269 }
27270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27271 return resultobj;
27272 fail:
27273 return NULL;
27274 }
27275
27276
27277 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
27278 PyObject *resultobj;
27279 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27280 wxWindow *arg2 = (wxWindow *) 0 ;
27281 int arg3 = (int) (int)-1 ;
27282 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
27283 wxString *arg4 = (wxString *) &arg4_defvalue ;
27284 wxPoint const &arg5_defvalue = wxDefaultPosition ;
27285 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
27286 wxSize const &arg6_defvalue = wxDefaultSize ;
27287 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
27288 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27289 wxString const &arg8_defvalue = wxPyEmptyString ;
27290 wxString *arg8 = (wxString *) &arg8_defvalue ;
27291 int arg9 = (int) 0 ;
27292 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
27293 wxString *arg10 = (wxString *) &arg10_defvalue ;
27294 bool result;
27295 bool temp4 = False ;
27296 wxPoint temp5 ;
27297 wxSize temp6 ;
27298 bool temp8 = False ;
27299 bool temp10 = False ;
27300 PyObject * obj0 = 0 ;
27301 PyObject * obj1 = 0 ;
27302 PyObject * obj2 = 0 ;
27303 PyObject * obj3 = 0 ;
27304 PyObject * obj4 = 0 ;
27305 PyObject * obj5 = 0 ;
27306 PyObject * obj6 = 0 ;
27307 PyObject * obj7 = 0 ;
27308 PyObject * obj8 = 0 ;
27309 PyObject * obj9 = 0 ;
27310 char *kwnames[] = {
27311 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27312 };
27313
27314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
27315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27317 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
27318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27319 if (obj2) {
27320 arg3 = (int const) SWIG_AsInt(obj2);
27321 if (PyErr_Occurred()) SWIG_fail;
27322 }
27323 if (obj3) {
27324 {
27325 arg4 = wxString_in_helper(obj3);
27326 if (arg4 == NULL) SWIG_fail;
27327 temp4 = True;
27328 }
27329 }
27330 if (obj4) {
27331 {
27332 arg5 = &temp5;
27333 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
27334 }
27335 }
27336 if (obj5) {
27337 {
27338 arg6 = &temp6;
27339 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
27340 }
27341 }
27342 if (obj6) {
27343 arg7 = (long) SWIG_AsLong(obj6);
27344 if (PyErr_Occurred()) SWIG_fail;
27345 }
27346 if (obj7) {
27347 {
27348 arg8 = wxString_in_helper(obj7);
27349 if (arg8 == NULL) SWIG_fail;
27350 temp8 = True;
27351 }
27352 }
27353 if (obj8) {
27354 arg9 = (int) SWIG_AsInt(obj8);
27355 if (PyErr_Occurred()) SWIG_fail;
27356 }
27357 if (obj9) {
27358 {
27359 arg10 = wxString_in_helper(obj9);
27360 if (arg10 == NULL) SWIG_fail;
27361 temp10 = True;
27362 }
27363 }
27364 {
27365 PyThreadState* __tstate = wxPyBeginAllowThreads();
27366 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
27367
27368 wxPyEndAllowThreads(__tstate);
27369 if (PyErr_Occurred()) SWIG_fail;
27370 }
27371 {
27372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27373 }
27374 {
27375 if (temp4)
27376 delete arg4;
27377 }
27378 {
27379 if (temp8)
27380 delete arg8;
27381 }
27382 {
27383 if (temp10)
27384 delete arg10;
27385 }
27386 return resultobj;
27387 fail:
27388 {
27389 if (temp4)
27390 delete arg4;
27391 }
27392 {
27393 if (temp8)
27394 delete arg8;
27395 }
27396 {
27397 if (temp10)
27398 delete arg10;
27399 }
27400 return NULL;
27401 }
27402
27403
27404 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27405 PyObject *resultobj;
27406 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27407 wxString *arg2 = 0 ;
27408 bool result;
27409 bool temp2 = False ;
27410 PyObject * obj0 = 0 ;
27411 PyObject * obj1 = 0 ;
27412 char *kwnames[] = {
27413 (char *) "self",(char *) "path", NULL
27414 };
27415
27416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
27417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27419 {
27420 arg2 = wxString_in_helper(obj1);
27421 if (arg2 == NULL) SWIG_fail;
27422 temp2 = True;
27423 }
27424 {
27425 PyThreadState* __tstate = wxPyBeginAllowThreads();
27426 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
27427
27428 wxPyEndAllowThreads(__tstate);
27429 if (PyErr_Occurred()) SWIG_fail;
27430 }
27431 {
27432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27433 }
27434 {
27435 if (temp2)
27436 delete arg2;
27437 }
27438 return resultobj;
27439 fail:
27440 {
27441 if (temp2)
27442 delete arg2;
27443 }
27444 return NULL;
27445 }
27446
27447
27448 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27449 PyObject *resultobj;
27450 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27451 wxString result;
27452 PyObject * obj0 = 0 ;
27453 char *kwnames[] = {
27454 (char *) "self", NULL
27455 };
27456
27457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
27458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27460 {
27461 PyThreadState* __tstate = wxPyBeginAllowThreads();
27462 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
27463
27464 wxPyEndAllowThreads(__tstate);
27465 if (PyErr_Occurred()) SWIG_fail;
27466 }
27467 {
27468 #if wxUSE_UNICODE
27469 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27470 #else
27471 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27472 #endif
27473 }
27474 return resultobj;
27475 fail:
27476 return NULL;
27477 }
27478
27479
27480 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27481 PyObject *resultobj;
27482 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27483 wxString *arg2 = 0 ;
27484 bool temp2 = False ;
27485 PyObject * obj0 = 0 ;
27486 PyObject * obj1 = 0 ;
27487 char *kwnames[] = {
27488 (char *) "self",(char *) "path", NULL
27489 };
27490
27491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
27492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27494 {
27495 arg2 = wxString_in_helper(obj1);
27496 if (arg2 == NULL) SWIG_fail;
27497 temp2 = True;
27498 }
27499 {
27500 PyThreadState* __tstate = wxPyBeginAllowThreads();
27501 (arg1)->SetDefaultPath((wxString const &)*arg2);
27502
27503 wxPyEndAllowThreads(__tstate);
27504 if (PyErr_Occurred()) SWIG_fail;
27505 }
27506 Py_INCREF(Py_None); resultobj = Py_None;
27507 {
27508 if (temp2)
27509 delete arg2;
27510 }
27511 return resultobj;
27512 fail:
27513 {
27514 if (temp2)
27515 delete arg2;
27516 }
27517 return NULL;
27518 }
27519
27520
27521 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27522 PyObject *resultobj;
27523 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27524 wxString result;
27525 PyObject * obj0 = 0 ;
27526 char *kwnames[] = {
27527 (char *) "self", NULL
27528 };
27529
27530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
27531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27533 {
27534 PyThreadState* __tstate = wxPyBeginAllowThreads();
27535 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
27536
27537 wxPyEndAllowThreads(__tstate);
27538 if (PyErr_Occurred()) SWIG_fail;
27539 }
27540 {
27541 #if wxUSE_UNICODE
27542 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27543 #else
27544 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27545 #endif
27546 }
27547 return resultobj;
27548 fail:
27549 return NULL;
27550 }
27551
27552
27553 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
27554 PyObject *resultobj;
27555 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27556 wxString result;
27557 PyObject * obj0 = 0 ;
27558 char *kwnames[] = {
27559 (char *) "self", NULL
27560 };
27561
27562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
27563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27565 {
27566 PyThreadState* __tstate = wxPyBeginAllowThreads();
27567 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
27568
27569 wxPyEndAllowThreads(__tstate);
27570 if (PyErr_Occurred()) SWIG_fail;
27571 }
27572 {
27573 #if wxUSE_UNICODE
27574 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27575 #else
27576 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27577 #endif
27578 }
27579 return resultobj;
27580 fail:
27581 return NULL;
27582 }
27583
27584
27585 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27586 PyObject *resultobj;
27587 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27588 wxString *arg2 = 0 ;
27589 bool temp2 = False ;
27590 PyObject * obj0 = 0 ;
27591 PyObject * obj1 = 0 ;
27592 char *kwnames[] = {
27593 (char *) "self",(char *) "path", NULL
27594 };
27595
27596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
27597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27599 {
27600 arg2 = wxString_in_helper(obj1);
27601 if (arg2 == NULL) SWIG_fail;
27602 temp2 = True;
27603 }
27604 {
27605 PyThreadState* __tstate = wxPyBeginAllowThreads();
27606 (arg1)->SetPath((wxString const &)*arg2);
27607
27608 wxPyEndAllowThreads(__tstate);
27609 if (PyErr_Occurred()) SWIG_fail;
27610 }
27611 Py_INCREF(Py_None); resultobj = Py_None;
27612 {
27613 if (temp2)
27614 delete arg2;
27615 }
27616 return resultobj;
27617 fail:
27618 {
27619 if (temp2)
27620 delete arg2;
27621 }
27622 return NULL;
27623 }
27624
27625
27626 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
27627 PyObject *resultobj;
27628 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27629 bool arg2 ;
27630 PyObject * obj0 = 0 ;
27631 PyObject * obj1 = 0 ;
27632 char *kwnames[] = {
27633 (char *) "self",(char *) "show", NULL
27634 };
27635
27636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
27637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27639 arg2 = (bool) SWIG_AsBool(obj1);
27640 if (PyErr_Occurred()) SWIG_fail;
27641 {
27642 PyThreadState* __tstate = wxPyBeginAllowThreads();
27643 (arg1)->ShowHidden(arg2);
27644
27645 wxPyEndAllowThreads(__tstate);
27646 if (PyErr_Occurred()) SWIG_fail;
27647 }
27648 Py_INCREF(Py_None); resultobj = Py_None;
27649 return resultobj;
27650 fail:
27651 return NULL;
27652 }
27653
27654
27655 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
27656 PyObject *resultobj;
27657 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27658 bool result;
27659 PyObject * obj0 = 0 ;
27660 char *kwnames[] = {
27661 (char *) "self", NULL
27662 };
27663
27664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
27665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27667 {
27668 PyThreadState* __tstate = wxPyBeginAllowThreads();
27669 result = (bool)(arg1)->GetShowHidden();
27670
27671 wxPyEndAllowThreads(__tstate);
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
27674 {
27675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27676 }
27677 return resultobj;
27678 fail:
27679 return NULL;
27680 }
27681
27682
27683 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
27684 PyObject *resultobj;
27685 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27686 wxString result;
27687 PyObject * obj0 = 0 ;
27688 char *kwnames[] = {
27689 (char *) "self", NULL
27690 };
27691
27692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
27693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27695 {
27696 PyThreadState* __tstate = wxPyBeginAllowThreads();
27697 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
27698
27699 wxPyEndAllowThreads(__tstate);
27700 if (PyErr_Occurred()) SWIG_fail;
27701 }
27702 {
27703 #if wxUSE_UNICODE
27704 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27705 #else
27706 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27707 #endif
27708 }
27709 return resultobj;
27710 fail:
27711 return NULL;
27712 }
27713
27714
27715 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
27716 PyObject *resultobj;
27717 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27718 wxString *arg2 = 0 ;
27719 bool temp2 = False ;
27720 PyObject * obj0 = 0 ;
27721 PyObject * obj1 = 0 ;
27722 char *kwnames[] = {
27723 (char *) "self",(char *) "filter", NULL
27724 };
27725
27726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
27727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27729 {
27730 arg2 = wxString_in_helper(obj1);
27731 if (arg2 == NULL) SWIG_fail;
27732 temp2 = True;
27733 }
27734 {
27735 PyThreadState* __tstate = wxPyBeginAllowThreads();
27736 (arg1)->SetFilter((wxString const &)*arg2);
27737
27738 wxPyEndAllowThreads(__tstate);
27739 if (PyErr_Occurred()) SWIG_fail;
27740 }
27741 Py_INCREF(Py_None); resultobj = Py_None;
27742 {
27743 if (temp2)
27744 delete arg2;
27745 }
27746 return resultobj;
27747 fail:
27748 {
27749 if (temp2)
27750 delete arg2;
27751 }
27752 return NULL;
27753 }
27754
27755
27756 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
27757 PyObject *resultobj;
27758 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27759 int result;
27760 PyObject * obj0 = 0 ;
27761 char *kwnames[] = {
27762 (char *) "self", NULL
27763 };
27764
27765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
27766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27768 {
27769 PyThreadState* __tstate = wxPyBeginAllowThreads();
27770 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
27771
27772 wxPyEndAllowThreads(__tstate);
27773 if (PyErr_Occurred()) SWIG_fail;
27774 }
27775 resultobj = SWIG_FromInt((int)result);
27776 return resultobj;
27777 fail:
27778 return NULL;
27779 }
27780
27781
27782 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
27783 PyObject *resultobj;
27784 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27785 int arg2 ;
27786 PyObject * obj0 = 0 ;
27787 PyObject * obj1 = 0 ;
27788 char *kwnames[] = {
27789 (char *) "self",(char *) "n", NULL
27790 };
27791
27792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
27793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27795 arg2 = (int) SWIG_AsInt(obj1);
27796 if (PyErr_Occurred()) SWIG_fail;
27797 {
27798 PyThreadState* __tstate = wxPyBeginAllowThreads();
27799 (arg1)->SetFilterIndex(arg2);
27800
27801 wxPyEndAllowThreads(__tstate);
27802 if (PyErr_Occurred()) SWIG_fail;
27803 }
27804 Py_INCREF(Py_None); resultobj = Py_None;
27805 return resultobj;
27806 fail:
27807 return NULL;
27808 }
27809
27810
27811 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
27812 PyObject *resultobj;
27813 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27814 wxTreeItemId result;
27815 PyObject * obj0 = 0 ;
27816 char *kwnames[] = {
27817 (char *) "self", NULL
27818 };
27819
27820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
27821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27823 {
27824 PyThreadState* __tstate = wxPyBeginAllowThreads();
27825 result = (arg1)->GetRootId();
27826
27827 wxPyEndAllowThreads(__tstate);
27828 if (PyErr_Occurred()) SWIG_fail;
27829 }
27830 {
27831 wxTreeItemId * resultptr;
27832 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27833 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27834 }
27835 return resultobj;
27836 fail:
27837 return NULL;
27838 }
27839
27840
27841 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27842 PyObject *resultobj;
27843 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27844 wxPyTreeCtrl *result;
27845 PyObject * obj0 = 0 ;
27846 char *kwnames[] = {
27847 (char *) "self", NULL
27848 };
27849
27850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
27851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27853 {
27854 PyThreadState* __tstate = wxPyBeginAllowThreads();
27855 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
27856
27857 wxPyEndAllowThreads(__tstate);
27858 if (PyErr_Occurred()) SWIG_fail;
27859 }
27860 {
27861 resultobj = wxPyMake_wxObject(result);
27862 }
27863 return resultobj;
27864 fail:
27865 return NULL;
27866 }
27867
27868
27869 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27870 PyObject *resultobj;
27871 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27872 wxDirFilterListCtrl *result;
27873 PyObject * obj0 = 0 ;
27874 char *kwnames[] = {
27875 (char *) "self", NULL
27876 };
27877
27878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
27879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27881 {
27882 PyThreadState* __tstate = wxPyBeginAllowThreads();
27883 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
27884
27885 wxPyEndAllowThreads(__tstate);
27886 if (PyErr_Occurred()) SWIG_fail;
27887 }
27888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
27889 return resultobj;
27890 fail:
27891 return NULL;
27892 }
27893
27894
27895 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
27896 PyObject *resultobj;
27897 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27898 wxTreeItemId arg2 ;
27899 wxString *arg3 = 0 ;
27900 bool *arg4 = 0 ;
27901 wxTreeItemId result;
27902 wxTreeItemId *argp2 ;
27903 bool temp3 = False ;
27904 bool temp4 ;
27905 PyObject * obj0 = 0 ;
27906 PyObject * obj1 = 0 ;
27907 PyObject * obj2 = 0 ;
27908 char *kwnames[] = {
27909 (char *) "self",(char *) "parentId",(char *) "path", NULL
27910 };
27911
27912 arg4 = &temp4;
27913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
27914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27916 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
27917 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
27918 arg2 = *argp2;
27919 {
27920 arg3 = wxString_in_helper(obj2);
27921 if (arg3 == NULL) SWIG_fail;
27922 temp3 = True;
27923 }
27924 {
27925 PyThreadState* __tstate = wxPyBeginAllowThreads();
27926 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
27927
27928 wxPyEndAllowThreads(__tstate);
27929 if (PyErr_Occurred()) SWIG_fail;
27930 }
27931 {
27932 wxTreeItemId * resultptr;
27933 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27934 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27935 }
27936 {
27937 PyObject *o = PyInt_FromLong((long) (*arg4));
27938 resultobj = t_output_helper(resultobj,o);
27939 }
27940 {
27941 if (temp3)
27942 delete arg3;
27943 }
27944 return resultobj;
27945 fail:
27946 {
27947 if (temp3)
27948 delete arg3;
27949 }
27950 return NULL;
27951 }
27952
27953
27954 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
27955 PyObject *resultobj;
27956 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27957 PyObject * obj0 = 0 ;
27958 char *kwnames[] = {
27959 (char *) "self", NULL
27960 };
27961
27962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
27963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27965 {
27966 PyThreadState* __tstate = wxPyBeginAllowThreads();
27967 (arg1)->DoResize();
27968
27969 wxPyEndAllowThreads(__tstate);
27970 if (PyErr_Occurred()) SWIG_fail;
27971 }
27972 Py_INCREF(Py_None); resultobj = Py_None;
27973 return resultobj;
27974 fail:
27975 return NULL;
27976 }
27977
27978
27979 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
27980 PyObject *resultobj;
27981 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27982 PyObject * obj0 = 0 ;
27983 char *kwnames[] = {
27984 (char *) "self", NULL
27985 };
27986
27987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
27988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27990 {
27991 PyThreadState* __tstate = wxPyBeginAllowThreads();
27992 (arg1)->ReCreateTree();
27993
27994 wxPyEndAllowThreads(__tstate);
27995 if (PyErr_Occurred()) SWIG_fail;
27996 }
27997 Py_INCREF(Py_None); resultobj = Py_None;
27998 return resultobj;
27999 fail:
28000 return NULL;
28001 }
28002
28003
28004 static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
28005 PyObject *obj;
28006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28007 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
28008 Py_INCREF(obj);
28009 return Py_BuildValue((char *)"");
28010 }
28011 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28012 PyObject *resultobj;
28013 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28014 int arg2 = (int) (int)-1 ;
28015 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28016 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28017 wxSize const &arg4_defvalue = wxDefaultSize ;
28018 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28019 long arg5 = (long) 0 ;
28020 wxDirFilterListCtrl *result;
28021 wxPoint temp3 ;
28022 wxSize temp4 ;
28023 PyObject * obj0 = 0 ;
28024 PyObject * obj1 = 0 ;
28025 PyObject * obj2 = 0 ;
28026 PyObject * obj3 = 0 ;
28027 PyObject * obj4 = 0 ;
28028 char *kwnames[] = {
28029 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28030 };
28031
28032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28035 if (obj1) {
28036 arg2 = (int const) SWIG_AsInt(obj1);
28037 if (PyErr_Occurred()) SWIG_fail;
28038 }
28039 if (obj2) {
28040 {
28041 arg3 = &temp3;
28042 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28043 }
28044 }
28045 if (obj3) {
28046 {
28047 arg4 = &temp4;
28048 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28049 }
28050 }
28051 if (obj4) {
28052 arg5 = (long) SWIG_AsLong(obj4);
28053 if (PyErr_Occurred()) SWIG_fail;
28054 }
28055 {
28056 PyThreadState* __tstate = wxPyBeginAllowThreads();
28057 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28058
28059 wxPyEndAllowThreads(__tstate);
28060 if (PyErr_Occurred()) SWIG_fail;
28061 }
28062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28063 return resultobj;
28064 fail:
28065 return NULL;
28066 }
28067
28068
28069 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28070 PyObject *resultobj;
28071 wxDirFilterListCtrl *result;
28072 char *kwnames[] = {
28073 NULL
28074 };
28075
28076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
28077 {
28078 PyThreadState* __tstate = wxPyBeginAllowThreads();
28079 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
28080
28081 wxPyEndAllowThreads(__tstate);
28082 if (PyErr_Occurred()) SWIG_fail;
28083 }
28084 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28085 return resultobj;
28086 fail:
28087 return NULL;
28088 }
28089
28090
28091 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
28092 PyObject *resultobj;
28093 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28094 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
28095 int arg3 = (int) (int)-1 ;
28096 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28097 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28098 wxSize const &arg5_defvalue = wxDefaultSize ;
28099 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28100 long arg6 = (long) 0 ;
28101 bool result;
28102 wxPoint temp4 ;
28103 wxSize temp5 ;
28104 PyObject * obj0 = 0 ;
28105 PyObject * obj1 = 0 ;
28106 PyObject * obj2 = 0 ;
28107 PyObject * obj3 = 0 ;
28108 PyObject * obj4 = 0 ;
28109 PyObject * obj5 = 0 ;
28110 char *kwnames[] = {
28111 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28112 };
28113
28114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
28118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28119 if (obj2) {
28120 arg3 = (int const) SWIG_AsInt(obj2);
28121 if (PyErr_Occurred()) SWIG_fail;
28122 }
28123 if (obj3) {
28124 {
28125 arg4 = &temp4;
28126 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28127 }
28128 }
28129 if (obj4) {
28130 {
28131 arg5 = &temp5;
28132 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28133 }
28134 }
28135 if (obj5) {
28136 arg6 = (long) SWIG_AsLong(obj5);
28137 if (PyErr_Occurred()) SWIG_fail;
28138 }
28139 {
28140 PyThreadState* __tstate = wxPyBeginAllowThreads();
28141 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
28142
28143 wxPyEndAllowThreads(__tstate);
28144 if (PyErr_Occurred()) SWIG_fail;
28145 }
28146 {
28147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28148 }
28149 return resultobj;
28150 fail:
28151 return NULL;
28152 }
28153
28154
28155 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
28156 PyObject *resultobj;
28157 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28158 wxString *arg2 = 0 ;
28159 int arg3 ;
28160 bool temp2 = False ;
28161 PyObject * obj0 = 0 ;
28162 PyObject * obj1 = 0 ;
28163 PyObject * obj2 = 0 ;
28164 char *kwnames[] = {
28165 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
28166 };
28167
28168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
28169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28171 {
28172 arg2 = wxString_in_helper(obj1);
28173 if (arg2 == NULL) SWIG_fail;
28174 temp2 = True;
28175 }
28176 arg3 = (int) SWIG_AsInt(obj2);
28177 if (PyErr_Occurred()) SWIG_fail;
28178 {
28179 PyThreadState* __tstate = wxPyBeginAllowThreads();
28180 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
28181
28182 wxPyEndAllowThreads(__tstate);
28183 if (PyErr_Occurred()) SWIG_fail;
28184 }
28185 Py_INCREF(Py_None); resultobj = Py_None;
28186 {
28187 if (temp2)
28188 delete arg2;
28189 }
28190 return resultobj;
28191 fail:
28192 {
28193 if (temp2)
28194 delete arg2;
28195 }
28196 return NULL;
28197 }
28198
28199
28200 static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
28201 PyObject *obj;
28202 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28203 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
28204 Py_INCREF(obj);
28205 return Py_BuildValue((char *)"");
28206 }
28207 static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28208 PyObject *resultobj;
28209 wxWindow *arg1 = (wxWindow *) 0 ;
28210 int arg2 ;
28211 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28212 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28213 wxSize const &arg4_defvalue = wxDefaultSize ;
28214 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28215 long arg5 = (long) 0 ;
28216 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28217 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28218 wxString const &arg7_defvalue = wxPyControlNameStr ;
28219 wxString *arg7 = (wxString *) &arg7_defvalue ;
28220 wxPyControl *result;
28221 wxPoint temp3 ;
28222 wxSize temp4 ;
28223 bool temp7 = False ;
28224 PyObject * obj0 = 0 ;
28225 PyObject * obj1 = 0 ;
28226 PyObject * obj2 = 0 ;
28227 PyObject * obj3 = 0 ;
28228 PyObject * obj4 = 0 ;
28229 PyObject * obj5 = 0 ;
28230 PyObject * obj6 = 0 ;
28231 char *kwnames[] = {
28232 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28233 };
28234
28235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
28236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28238 arg2 = (int const) SWIG_AsInt(obj1);
28239 if (PyErr_Occurred()) SWIG_fail;
28240 if (obj2) {
28241 {
28242 arg3 = &temp3;
28243 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28244 }
28245 }
28246 if (obj3) {
28247 {
28248 arg4 = &temp4;
28249 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28250 }
28251 }
28252 if (obj4) {
28253 arg5 = (long) SWIG_AsLong(obj4);
28254 if (PyErr_Occurred()) SWIG_fail;
28255 }
28256 if (obj5) {
28257 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
28258 SWIG_POINTER_EXCEPTION | 0)) == -1)
28259 SWIG_fail;
28260 if (arg6 == NULL) {
28261 PyErr_SetString(PyExc_TypeError,"null reference");
28262 SWIG_fail;
28263 }
28264 }
28265 if (obj6) {
28266 {
28267 arg7 = wxString_in_helper(obj6);
28268 if (arg7 == NULL) SWIG_fail;
28269 temp7 = True;
28270 }
28271 }
28272 {
28273 PyThreadState* __tstate = wxPyBeginAllowThreads();
28274 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28275
28276 wxPyEndAllowThreads(__tstate);
28277 if (PyErr_Occurred()) SWIG_fail;
28278 }
28279 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28280 {
28281 if (temp7)
28282 delete arg7;
28283 }
28284 return resultobj;
28285 fail:
28286 {
28287 if (temp7)
28288 delete arg7;
28289 }
28290 return NULL;
28291 }
28292
28293
28294 static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28295 PyObject *resultobj;
28296 wxPyControl *result;
28297 char *kwnames[] = {
28298 NULL
28299 };
28300
28301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
28302 {
28303 PyThreadState* __tstate = wxPyBeginAllowThreads();
28304 result = (wxPyControl *)new wxPyControl();
28305
28306 wxPyEndAllowThreads(__tstate);
28307 if (PyErr_Occurred()) SWIG_fail;
28308 }
28309 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28310 return resultobj;
28311 fail:
28312 return NULL;
28313 }
28314
28315
28316 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
28317 PyObject *resultobj;
28318 wxPyControl *arg1 = (wxPyControl *) 0 ;
28319 PyObject *arg2 = (PyObject *) 0 ;
28320 PyObject *arg3 = (PyObject *) 0 ;
28321 PyObject * obj0 = 0 ;
28322 PyObject * obj1 = 0 ;
28323 PyObject * obj2 = 0 ;
28324 char *kwnames[] = {
28325 (char *) "self",(char *) "self",(char *) "_class", NULL
28326 };
28327
28328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
28329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28331 arg2 = obj1;
28332 arg3 = obj2;
28333 {
28334 PyThreadState* __tstate = wxPyBeginAllowThreads();
28335 (arg1)->_setCallbackInfo(arg2,arg3);
28336
28337 wxPyEndAllowThreads(__tstate);
28338 if (PyErr_Occurred()) SWIG_fail;
28339 }
28340 Py_INCREF(Py_None); resultobj = Py_None;
28341 return resultobj;
28342 fail:
28343 return NULL;
28344 }
28345
28346
28347 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28348 PyObject *resultobj;
28349 wxPyControl *arg1 = (wxPyControl *) 0 ;
28350 int arg2 ;
28351 int arg3 ;
28352 int arg4 ;
28353 int arg5 ;
28354 PyObject * obj0 = 0 ;
28355 PyObject * obj1 = 0 ;
28356 PyObject * obj2 = 0 ;
28357 PyObject * obj3 = 0 ;
28358 PyObject * obj4 = 0 ;
28359 char *kwnames[] = {
28360 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28361 };
28362
28363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28366 arg2 = (int) SWIG_AsInt(obj1);
28367 if (PyErr_Occurred()) SWIG_fail;
28368 arg3 = (int) SWIG_AsInt(obj2);
28369 if (PyErr_Occurred()) SWIG_fail;
28370 arg4 = (int) SWIG_AsInt(obj3);
28371 if (PyErr_Occurred()) SWIG_fail;
28372 arg5 = (int) SWIG_AsInt(obj4);
28373 if (PyErr_Occurred()) SWIG_fail;
28374 {
28375 PyThreadState* __tstate = wxPyBeginAllowThreads();
28376 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
28377
28378 wxPyEndAllowThreads(__tstate);
28379 if (PyErr_Occurred()) SWIG_fail;
28380 }
28381 Py_INCREF(Py_None); resultobj = Py_None;
28382 return resultobj;
28383 fail:
28384 return NULL;
28385 }
28386
28387
28388 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28389 PyObject *resultobj;
28390 wxPyControl *arg1 = (wxPyControl *) 0 ;
28391 int arg2 ;
28392 int arg3 ;
28393 int arg4 ;
28394 int arg5 ;
28395 int arg6 = (int) wxSIZE_AUTO ;
28396 PyObject * obj0 = 0 ;
28397 PyObject * obj1 = 0 ;
28398 PyObject * obj2 = 0 ;
28399 PyObject * obj3 = 0 ;
28400 PyObject * obj4 = 0 ;
28401 PyObject * obj5 = 0 ;
28402 char *kwnames[] = {
28403 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
28404 };
28405
28406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28409 arg2 = (int) SWIG_AsInt(obj1);
28410 if (PyErr_Occurred()) SWIG_fail;
28411 arg3 = (int) SWIG_AsInt(obj2);
28412 if (PyErr_Occurred()) SWIG_fail;
28413 arg4 = (int) SWIG_AsInt(obj3);
28414 if (PyErr_Occurred()) SWIG_fail;
28415 arg5 = (int) SWIG_AsInt(obj4);
28416 if (PyErr_Occurred()) SWIG_fail;
28417 if (obj5) {
28418 arg6 = (int) SWIG_AsInt(obj5);
28419 if (PyErr_Occurred()) SWIG_fail;
28420 }
28421 {
28422 PyThreadState* __tstate = wxPyBeginAllowThreads();
28423 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
28424
28425 wxPyEndAllowThreads(__tstate);
28426 if (PyErr_Occurred()) SWIG_fail;
28427 }
28428 Py_INCREF(Py_None); resultobj = Py_None;
28429 return resultobj;
28430 fail:
28431 return NULL;
28432 }
28433
28434
28435 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28436 PyObject *resultobj;
28437 wxPyControl *arg1 = (wxPyControl *) 0 ;
28438 int arg2 ;
28439 int arg3 ;
28440 PyObject * obj0 = 0 ;
28441 PyObject * obj1 = 0 ;
28442 PyObject * obj2 = 0 ;
28443 char *kwnames[] = {
28444 (char *) "self",(char *) "width",(char *) "height", NULL
28445 };
28446
28447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
28448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28450 arg2 = (int) SWIG_AsInt(obj1);
28451 if (PyErr_Occurred()) SWIG_fail;
28452 arg3 = (int) SWIG_AsInt(obj2);
28453 if (PyErr_Occurred()) SWIG_fail;
28454 {
28455 PyThreadState* __tstate = wxPyBeginAllowThreads();
28456 (arg1)->base_DoSetClientSize(arg2,arg3);
28457
28458 wxPyEndAllowThreads(__tstate);
28459 if (PyErr_Occurred()) SWIG_fail;
28460 }
28461 Py_INCREF(Py_None); resultobj = Py_None;
28462 return resultobj;
28463 fail:
28464 return NULL;
28465 }
28466
28467
28468 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28469 PyObject *resultobj;
28470 wxPyControl *arg1 = (wxPyControl *) 0 ;
28471 int arg2 ;
28472 int arg3 ;
28473 PyObject * obj0 = 0 ;
28474 PyObject * obj1 = 0 ;
28475 PyObject * obj2 = 0 ;
28476 char *kwnames[] = {
28477 (char *) "self",(char *) "x",(char *) "y", NULL
28478 };
28479
28480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
28481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28483 arg2 = (int) SWIG_AsInt(obj1);
28484 if (PyErr_Occurred()) SWIG_fail;
28485 arg3 = (int) SWIG_AsInt(obj2);
28486 if (PyErr_Occurred()) SWIG_fail;
28487 {
28488 PyThreadState* __tstate = wxPyBeginAllowThreads();
28489 (arg1)->base_DoSetVirtualSize(arg2,arg3);
28490
28491 wxPyEndAllowThreads(__tstate);
28492 if (PyErr_Occurred()) SWIG_fail;
28493 }
28494 Py_INCREF(Py_None); resultobj = Py_None;
28495 return resultobj;
28496 fail:
28497 return NULL;
28498 }
28499
28500
28501 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28502 PyObject *resultobj;
28503 wxPyControl *arg1 = (wxPyControl *) 0 ;
28504 int *arg2 = (int *) 0 ;
28505 int *arg3 = (int *) 0 ;
28506 int temp2 ;
28507 int temp3 ;
28508 PyObject * obj0 = 0 ;
28509 char *kwnames[] = {
28510 (char *) "self", NULL
28511 };
28512
28513 arg2 = &temp2;
28514 arg3 = &temp3;
28515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
28516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28518 {
28519 PyThreadState* __tstate = wxPyBeginAllowThreads();
28520 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
28521
28522 wxPyEndAllowThreads(__tstate);
28523 if (PyErr_Occurred()) SWIG_fail;
28524 }
28525 Py_INCREF(Py_None); resultobj = Py_None;
28526 {
28527 PyObject *o = PyInt_FromLong((long) (*arg2));
28528 resultobj = t_output_helper(resultobj,o);
28529 }
28530 {
28531 PyObject *o = PyInt_FromLong((long) (*arg3));
28532 resultobj = t_output_helper(resultobj,o);
28533 }
28534 return resultobj;
28535 fail:
28536 return NULL;
28537 }
28538
28539
28540 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28541 PyObject *resultobj;
28542 wxPyControl *arg1 = (wxPyControl *) 0 ;
28543 int *arg2 = (int *) 0 ;
28544 int *arg3 = (int *) 0 ;
28545 int temp2 ;
28546 int temp3 ;
28547 PyObject * obj0 = 0 ;
28548 char *kwnames[] = {
28549 (char *) "self", NULL
28550 };
28551
28552 arg2 = &temp2;
28553 arg3 = &temp3;
28554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
28555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28557 {
28558 PyThreadState* __tstate = wxPyBeginAllowThreads();
28559 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
28560
28561 wxPyEndAllowThreads(__tstate);
28562 if (PyErr_Occurred()) SWIG_fail;
28563 }
28564 Py_INCREF(Py_None); resultobj = Py_None;
28565 {
28566 PyObject *o = PyInt_FromLong((long) (*arg2));
28567 resultobj = t_output_helper(resultobj,o);
28568 }
28569 {
28570 PyObject *o = PyInt_FromLong((long) (*arg3));
28571 resultobj = t_output_helper(resultobj,o);
28572 }
28573 return resultobj;
28574 fail:
28575 return NULL;
28576 }
28577
28578
28579 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28580 PyObject *resultobj;
28581 wxPyControl *arg1 = (wxPyControl *) 0 ;
28582 int *arg2 = (int *) 0 ;
28583 int *arg3 = (int *) 0 ;
28584 int temp2 ;
28585 int temp3 ;
28586 PyObject * obj0 = 0 ;
28587 char *kwnames[] = {
28588 (char *) "self", NULL
28589 };
28590
28591 arg2 = &temp2;
28592 arg3 = &temp3;
28593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
28594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28596 {
28597 PyThreadState* __tstate = wxPyBeginAllowThreads();
28598 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
28599
28600 wxPyEndAllowThreads(__tstate);
28601 if (PyErr_Occurred()) SWIG_fail;
28602 }
28603 Py_INCREF(Py_None); resultobj = Py_None;
28604 {
28605 PyObject *o = PyInt_FromLong((long) (*arg2));
28606 resultobj = t_output_helper(resultobj,o);
28607 }
28608 {
28609 PyObject *o = PyInt_FromLong((long) (*arg3));
28610 resultobj = t_output_helper(resultobj,o);
28611 }
28612 return resultobj;
28613 fail:
28614 return NULL;
28615 }
28616
28617
28618 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28619 PyObject *resultobj;
28620 wxPyControl *arg1 = (wxPyControl *) 0 ;
28621 wxSize result;
28622 PyObject * obj0 = 0 ;
28623 char *kwnames[] = {
28624 (char *) "self", NULL
28625 };
28626
28627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
28628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28630 {
28631 PyThreadState* __tstate = wxPyBeginAllowThreads();
28632 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
28633
28634 wxPyEndAllowThreads(__tstate);
28635 if (PyErr_Occurred()) SWIG_fail;
28636 }
28637 {
28638 wxSize * resultptr;
28639 resultptr = new wxSize((wxSize &) result);
28640 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28641 }
28642 return resultobj;
28643 fail:
28644 return NULL;
28645 }
28646
28647
28648 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28649 PyObject *resultobj;
28650 wxPyControl *arg1 = (wxPyControl *) 0 ;
28651 wxSize result;
28652 PyObject * obj0 = 0 ;
28653 char *kwnames[] = {
28654 (char *) "self", NULL
28655 };
28656
28657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
28658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28660 {
28661 PyThreadState* __tstate = wxPyBeginAllowThreads();
28662 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
28663
28664 wxPyEndAllowThreads(__tstate);
28665 if (PyErr_Occurred()) SWIG_fail;
28666 }
28667 {
28668 wxSize * resultptr;
28669 resultptr = new wxSize((wxSize &) result);
28670 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28671 }
28672 return resultobj;
28673 fail:
28674 return NULL;
28675 }
28676
28677
28678 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
28679 PyObject *resultobj;
28680 wxPyControl *arg1 = (wxPyControl *) 0 ;
28681 PyObject * obj0 = 0 ;
28682 char *kwnames[] = {
28683 (char *) "self", NULL
28684 };
28685
28686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
28687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28689 {
28690 PyThreadState* __tstate = wxPyBeginAllowThreads();
28691 (arg1)->base_InitDialog();
28692
28693 wxPyEndAllowThreads(__tstate);
28694 if (PyErr_Occurred()) SWIG_fail;
28695 }
28696 Py_INCREF(Py_None); resultobj = Py_None;
28697 return resultobj;
28698 fail:
28699 return NULL;
28700 }
28701
28702
28703 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28704 PyObject *resultobj;
28705 wxPyControl *arg1 = (wxPyControl *) 0 ;
28706 bool result;
28707 PyObject * obj0 = 0 ;
28708 char *kwnames[] = {
28709 (char *) "self", NULL
28710 };
28711
28712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
28713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28715 {
28716 PyThreadState* __tstate = wxPyBeginAllowThreads();
28717 result = (bool)(arg1)->base_TransferDataToWindow();
28718
28719 wxPyEndAllowThreads(__tstate);
28720 if (PyErr_Occurred()) SWIG_fail;
28721 }
28722 {
28723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28724 }
28725 return resultobj;
28726 fail:
28727 return NULL;
28728 }
28729
28730
28731 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28732 PyObject *resultobj;
28733 wxPyControl *arg1 = (wxPyControl *) 0 ;
28734 bool result;
28735 PyObject * obj0 = 0 ;
28736 char *kwnames[] = {
28737 (char *) "self", NULL
28738 };
28739
28740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
28741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28743 {
28744 PyThreadState* __tstate = wxPyBeginAllowThreads();
28745 result = (bool)(arg1)->base_TransferDataFromWindow();
28746
28747 wxPyEndAllowThreads(__tstate);
28748 if (PyErr_Occurred()) SWIG_fail;
28749 }
28750 {
28751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28752 }
28753 return resultobj;
28754 fail:
28755 return NULL;
28756 }
28757
28758
28759 static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
28760 PyObject *resultobj;
28761 wxPyControl *arg1 = (wxPyControl *) 0 ;
28762 bool result;
28763 PyObject * obj0 = 0 ;
28764 char *kwnames[] = {
28765 (char *) "self", NULL
28766 };
28767
28768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
28769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28771 {
28772 PyThreadState* __tstate = wxPyBeginAllowThreads();
28773 result = (bool)(arg1)->base_Validate();
28774
28775 wxPyEndAllowThreads(__tstate);
28776 if (PyErr_Occurred()) SWIG_fail;
28777 }
28778 {
28779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28780 }
28781 return resultobj;
28782 fail:
28783 return NULL;
28784 }
28785
28786
28787 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
28788 PyObject *resultobj;
28789 wxPyControl *arg1 = (wxPyControl *) 0 ;
28790 bool result;
28791 PyObject * obj0 = 0 ;
28792 char *kwnames[] = {
28793 (char *) "self", NULL
28794 };
28795
28796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
28797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28799 {
28800 PyThreadState* __tstate = wxPyBeginAllowThreads();
28801 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
28802
28803 wxPyEndAllowThreads(__tstate);
28804 if (PyErr_Occurred()) SWIG_fail;
28805 }
28806 {
28807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28808 }
28809 return resultobj;
28810 fail:
28811 return NULL;
28812 }
28813
28814
28815 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
28816 PyObject *resultobj;
28817 wxPyControl *arg1 = (wxPyControl *) 0 ;
28818 bool result;
28819 PyObject * obj0 = 0 ;
28820 char *kwnames[] = {
28821 (char *) "self", NULL
28822 };
28823
28824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
28825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28827 {
28828 PyThreadState* __tstate = wxPyBeginAllowThreads();
28829 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
28830
28831 wxPyEndAllowThreads(__tstate);
28832 if (PyErr_Occurred()) SWIG_fail;
28833 }
28834 {
28835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28836 }
28837 return resultobj;
28838 fail:
28839 return NULL;
28840 }
28841
28842
28843 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28844 PyObject *resultobj;
28845 wxPyControl *arg1 = (wxPyControl *) 0 ;
28846 wxSize result;
28847 PyObject * obj0 = 0 ;
28848 char *kwnames[] = {
28849 (char *) "self", NULL
28850 };
28851
28852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
28853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28855 {
28856 PyThreadState* __tstate = wxPyBeginAllowThreads();
28857 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
28858
28859 wxPyEndAllowThreads(__tstate);
28860 if (PyErr_Occurred()) SWIG_fail;
28861 }
28862 {
28863 wxSize * resultptr;
28864 resultptr = new wxSize((wxSize &) result);
28865 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28866 }
28867 return resultobj;
28868 fail:
28869 return NULL;
28870 }
28871
28872
28873 static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28874 PyObject *resultobj;
28875 wxPyControl *arg1 = (wxPyControl *) 0 ;
28876 wxWindow *arg2 = (wxWindow *) 0 ;
28877 PyObject * obj0 = 0 ;
28878 PyObject * obj1 = 0 ;
28879 char *kwnames[] = {
28880 (char *) "self",(char *) "child", NULL
28881 };
28882
28883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
28884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28886 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28888 {
28889 PyThreadState* __tstate = wxPyBeginAllowThreads();
28890 (arg1)->base_AddChild(arg2);
28891
28892 wxPyEndAllowThreads(__tstate);
28893 if (PyErr_Occurred()) SWIG_fail;
28894 }
28895 Py_INCREF(Py_None); resultobj = Py_None;
28896 return resultobj;
28897 fail:
28898 return NULL;
28899 }
28900
28901
28902 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28903 PyObject *resultobj;
28904 wxPyControl *arg1 = (wxPyControl *) 0 ;
28905 wxWindow *arg2 = (wxWindow *) 0 ;
28906 PyObject * obj0 = 0 ;
28907 PyObject * obj1 = 0 ;
28908 char *kwnames[] = {
28909 (char *) "self",(char *) "child", NULL
28910 };
28911
28912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
28913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28917 {
28918 PyThreadState* __tstate = wxPyBeginAllowThreads();
28919 (arg1)->base_RemoveChild(arg2);
28920
28921 wxPyEndAllowThreads(__tstate);
28922 if (PyErr_Occurred()) SWIG_fail;
28923 }
28924 Py_INCREF(Py_None); resultobj = Py_None;
28925 return resultobj;
28926 fail:
28927 return NULL;
28928 }
28929
28930
28931 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
28932 PyObject *resultobj;
28933 wxPyControl *arg1 = (wxPyControl *) 0 ;
28934 bool result;
28935 PyObject * obj0 = 0 ;
28936 char *kwnames[] = {
28937 (char *) "self", NULL
28938 };
28939
28940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
28941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28943 {
28944 PyThreadState* __tstate = wxPyBeginAllowThreads();
28945 result = (bool)(arg1)->base_ShouldInheritColours();
28946
28947 wxPyEndAllowThreads(__tstate);
28948 if (PyErr_Occurred()) SWIG_fail;
28949 }
28950 {
28951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28952 }
28953 return resultobj;
28954 fail:
28955 return NULL;
28956 }
28957
28958
28959 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
28960 PyObject *resultobj;
28961 wxPyControl *arg1 = (wxPyControl *) 0 ;
28962 wxColour *arg2 = 0 ;
28963 wxColour temp2 ;
28964 PyObject * obj0 = 0 ;
28965 PyObject * obj1 = 0 ;
28966 char *kwnames[] = {
28967 (char *) "self",(char *) "c", NULL
28968 };
28969
28970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
28971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28973 {
28974 arg2 = &temp2;
28975 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28976 }
28977 {
28978 PyThreadState* __tstate = wxPyBeginAllowThreads();
28979 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
28980
28981 wxPyEndAllowThreads(__tstate);
28982 if (PyErr_Occurred()) SWIG_fail;
28983 }
28984 Py_INCREF(Py_None); resultobj = Py_None;
28985 return resultobj;
28986 fail:
28987 return NULL;
28988 }
28989
28990
28991 static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
28992 PyObject *obj;
28993 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28994 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
28995 Py_INCREF(obj);
28996 return Py_BuildValue((char *)"");
28997 }
28998 static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
28999 PyObject *resultobj;
29000 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29001 int arg2 = (int) 0 ;
29002 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29003 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29004 wxHelpEvent *result;
29005 wxPoint temp3 ;
29006 PyObject * obj0 = 0 ;
29007 PyObject * obj1 = 0 ;
29008 PyObject * obj2 = 0 ;
29009 char *kwnames[] = {
29010 (char *) "type",(char *) "winid",(char *) "pt", NULL
29011 };
29012
29013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
29014 if (obj0) {
29015 arg1 = (wxEventType) SWIG_AsInt(obj0);
29016 if (PyErr_Occurred()) SWIG_fail;
29017 }
29018 if (obj1) {
29019 arg2 = (int) SWIG_AsInt(obj1);
29020 if (PyErr_Occurred()) SWIG_fail;
29021 }
29022 if (obj2) {
29023 {
29024 arg3 = &temp3;
29025 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29026 }
29027 }
29028 {
29029 PyThreadState* __tstate = wxPyBeginAllowThreads();
29030 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
29031
29032 wxPyEndAllowThreads(__tstate);
29033 if (PyErr_Occurred()) SWIG_fail;
29034 }
29035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
29036 return resultobj;
29037 fail:
29038 return NULL;
29039 }
29040
29041
29042 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29043 PyObject *resultobj;
29044 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29045 wxPoint result;
29046 PyObject * obj0 = 0 ;
29047 char *kwnames[] = {
29048 (char *) "self", NULL
29049 };
29050
29051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
29052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29054 {
29055 PyThreadState* __tstate = wxPyBeginAllowThreads();
29056 result = ((wxHelpEvent const *)arg1)->GetPosition();
29057
29058 wxPyEndAllowThreads(__tstate);
29059 if (PyErr_Occurred()) SWIG_fail;
29060 }
29061 {
29062 wxPoint * resultptr;
29063 resultptr = new wxPoint((wxPoint &) result);
29064 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
29065 }
29066 return resultobj;
29067 fail:
29068 return NULL;
29069 }
29070
29071
29072 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29073 PyObject *resultobj;
29074 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29075 wxPoint *arg2 = 0 ;
29076 wxPoint temp2 ;
29077 PyObject * obj0 = 0 ;
29078 PyObject * obj1 = 0 ;
29079 char *kwnames[] = {
29080 (char *) "self",(char *) "pos", NULL
29081 };
29082
29083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
29084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29086 {
29087 arg2 = &temp2;
29088 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29089 }
29090 {
29091 PyThreadState* __tstate = wxPyBeginAllowThreads();
29092 (arg1)->SetPosition((wxPoint const &)*arg2);
29093
29094 wxPyEndAllowThreads(__tstate);
29095 if (PyErr_Occurred()) SWIG_fail;
29096 }
29097 Py_INCREF(Py_None); resultobj = Py_None;
29098 return resultobj;
29099 fail:
29100 return NULL;
29101 }
29102
29103
29104 static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29105 PyObject *resultobj;
29106 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29107 wxString *result;
29108 PyObject * obj0 = 0 ;
29109 char *kwnames[] = {
29110 (char *) "self", NULL
29111 };
29112
29113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
29114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29116 {
29117 PyThreadState* __tstate = wxPyBeginAllowThreads();
29118 {
29119 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
29120 result = (wxString *) &_result_ref;
29121 }
29122
29123 wxPyEndAllowThreads(__tstate);
29124 if (PyErr_Occurred()) SWIG_fail;
29125 }
29126 {
29127 #if wxUSE_UNICODE
29128 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29129 #else
29130 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29131 #endif
29132 }
29133 return resultobj;
29134 fail:
29135 return NULL;
29136 }
29137
29138
29139 static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29140 PyObject *resultobj;
29141 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29142 wxString *arg2 = 0 ;
29143 bool temp2 = False ;
29144 PyObject * obj0 = 0 ;
29145 PyObject * obj1 = 0 ;
29146 char *kwnames[] = {
29147 (char *) "self",(char *) "link", NULL
29148 };
29149
29150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
29151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29153 {
29154 arg2 = wxString_in_helper(obj1);
29155 if (arg2 == NULL) SWIG_fail;
29156 temp2 = True;
29157 }
29158 {
29159 PyThreadState* __tstate = wxPyBeginAllowThreads();
29160 (arg1)->SetLink((wxString const &)*arg2);
29161
29162 wxPyEndAllowThreads(__tstate);
29163 if (PyErr_Occurred()) SWIG_fail;
29164 }
29165 Py_INCREF(Py_None); resultobj = Py_None;
29166 {
29167 if (temp2)
29168 delete arg2;
29169 }
29170 return resultobj;
29171 fail:
29172 {
29173 if (temp2)
29174 delete arg2;
29175 }
29176 return NULL;
29177 }
29178
29179
29180 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29181 PyObject *resultobj;
29182 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29183 wxString *result;
29184 PyObject * obj0 = 0 ;
29185 char *kwnames[] = {
29186 (char *) "self", NULL
29187 };
29188
29189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
29190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29192 {
29193 PyThreadState* __tstate = wxPyBeginAllowThreads();
29194 {
29195 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
29196 result = (wxString *) &_result_ref;
29197 }
29198
29199 wxPyEndAllowThreads(__tstate);
29200 if (PyErr_Occurred()) SWIG_fail;
29201 }
29202 {
29203 #if wxUSE_UNICODE
29204 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29205 #else
29206 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29207 #endif
29208 }
29209 return resultobj;
29210 fail:
29211 return NULL;
29212 }
29213
29214
29215 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29216 PyObject *resultobj;
29217 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29218 wxString *arg2 = 0 ;
29219 bool temp2 = False ;
29220 PyObject * obj0 = 0 ;
29221 PyObject * obj1 = 0 ;
29222 char *kwnames[] = {
29223 (char *) "self",(char *) "target", NULL
29224 };
29225
29226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
29227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29229 {
29230 arg2 = wxString_in_helper(obj1);
29231 if (arg2 == NULL) SWIG_fail;
29232 temp2 = True;
29233 }
29234 {
29235 PyThreadState* __tstate = wxPyBeginAllowThreads();
29236 (arg1)->SetTarget((wxString const &)*arg2);
29237
29238 wxPyEndAllowThreads(__tstate);
29239 if (PyErr_Occurred()) SWIG_fail;
29240 }
29241 Py_INCREF(Py_None); resultobj = Py_None;
29242 {
29243 if (temp2)
29244 delete arg2;
29245 }
29246 return resultobj;
29247 fail:
29248 {
29249 if (temp2)
29250 delete arg2;
29251 }
29252 return NULL;
29253 }
29254
29255
29256 static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
29257 PyObject *obj;
29258 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29259 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
29260 Py_INCREF(obj);
29261 return Py_BuildValue((char *)"");
29262 }
29263 static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29264 PyObject *resultobj;
29265 wxWindow *arg1 = (wxWindow *) NULL ;
29266 bool arg2 = (bool) True ;
29267 wxContextHelp *result;
29268 PyObject * obj0 = 0 ;
29269 PyObject * obj1 = 0 ;
29270 char *kwnames[] = {
29271 (char *) "window",(char *) "doNow", NULL
29272 };
29273
29274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
29275 if (obj0) {
29276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29278 }
29279 if (obj1) {
29280 arg2 = (bool) SWIG_AsBool(obj1);
29281 if (PyErr_Occurred()) SWIG_fail;
29282 }
29283 {
29284 PyThreadState* __tstate = wxPyBeginAllowThreads();
29285 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
29286
29287 wxPyEndAllowThreads(__tstate);
29288 if (PyErr_Occurred()) SWIG_fail;
29289 }
29290 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
29291 return resultobj;
29292 fail:
29293 return NULL;
29294 }
29295
29296
29297 static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29298 PyObject *resultobj;
29299 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29300 PyObject * obj0 = 0 ;
29301 char *kwnames[] = {
29302 (char *) "self", NULL
29303 };
29304
29305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
29306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29308 {
29309 PyThreadState* __tstate = wxPyBeginAllowThreads();
29310 delete arg1;
29311
29312 wxPyEndAllowThreads(__tstate);
29313 if (PyErr_Occurred()) SWIG_fail;
29314 }
29315 Py_INCREF(Py_None); resultobj = Py_None;
29316 return resultobj;
29317 fail:
29318 return NULL;
29319 }
29320
29321
29322 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29323 PyObject *resultobj;
29324 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29325 wxWindow *arg2 = (wxWindow *) NULL ;
29326 bool result;
29327 PyObject * obj0 = 0 ;
29328 PyObject * obj1 = 0 ;
29329 char *kwnames[] = {
29330 (char *) "self",(char *) "window", NULL
29331 };
29332
29333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
29334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29336 if (obj1) {
29337 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29339 }
29340 {
29341 PyThreadState* __tstate = wxPyBeginAllowThreads();
29342 result = (bool)(arg1)->BeginContextHelp(arg2);
29343
29344 wxPyEndAllowThreads(__tstate);
29345 if (PyErr_Occurred()) SWIG_fail;
29346 }
29347 {
29348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29349 }
29350 return resultobj;
29351 fail:
29352 return NULL;
29353 }
29354
29355
29356 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29357 PyObject *resultobj;
29358 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29359 bool result;
29360 PyObject * obj0 = 0 ;
29361 char *kwnames[] = {
29362 (char *) "self", NULL
29363 };
29364
29365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
29366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29368 {
29369 PyThreadState* __tstate = wxPyBeginAllowThreads();
29370 result = (bool)(arg1)->EndContextHelp();
29371
29372 wxPyEndAllowThreads(__tstate);
29373 if (PyErr_Occurred()) SWIG_fail;
29374 }
29375 {
29376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29377 }
29378 return resultobj;
29379 fail:
29380 return NULL;
29381 }
29382
29383
29384 static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
29385 PyObject *obj;
29386 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29387 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
29388 Py_INCREF(obj);
29389 return Py_BuildValue((char *)"");
29390 }
29391 static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
29392 PyObject *resultobj;
29393 wxWindow *arg1 = (wxWindow *) 0 ;
29394 int arg2 = (int) wxID_CONTEXT_HELP ;
29395 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29396 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29397 wxSize const &arg4_defvalue = wxDefaultSize ;
29398 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29399 long arg5 = (long) wxBU_AUTODRAW ;
29400 wxContextHelpButton *result;
29401 wxPoint temp3 ;
29402 wxSize temp4 ;
29403 PyObject * obj0 = 0 ;
29404 PyObject * obj1 = 0 ;
29405 PyObject * obj2 = 0 ;
29406 PyObject * obj3 = 0 ;
29407 PyObject * obj4 = 0 ;
29408 char *kwnames[] = {
29409 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29410 };
29411
29412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29415 if (obj1) {
29416 arg2 = (int) SWIG_AsInt(obj1);
29417 if (PyErr_Occurred()) SWIG_fail;
29418 }
29419 if (obj2) {
29420 {
29421 arg3 = &temp3;
29422 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29423 }
29424 }
29425 if (obj3) {
29426 {
29427 arg4 = &temp4;
29428 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29429 }
29430 }
29431 if (obj4) {
29432 arg5 = (long) SWIG_AsLong(obj4);
29433 if (PyErr_Occurred()) SWIG_fail;
29434 }
29435 {
29436 PyThreadState* __tstate = wxPyBeginAllowThreads();
29437 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
29438
29439 wxPyEndAllowThreads(__tstate);
29440 if (PyErr_Occurred()) SWIG_fail;
29441 }
29442 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
29443 return resultobj;
29444 fail:
29445 return NULL;
29446 }
29447
29448
29449 static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
29450 PyObject *obj;
29451 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29452 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
29453 Py_INCREF(obj);
29454 return Py_BuildValue((char *)"");
29455 }
29456 static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
29457 PyObject *resultobj;
29458 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29459 wxHelpProvider *result;
29460 PyObject * obj0 = 0 ;
29461 char *kwnames[] = {
29462 (char *) "helpProvider", NULL
29463 };
29464
29465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
29466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29468 {
29469 PyThreadState* __tstate = wxPyBeginAllowThreads();
29470 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
29471
29472 wxPyEndAllowThreads(__tstate);
29473 if (PyErr_Occurred()) SWIG_fail;
29474 }
29475 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
29476 return resultobj;
29477 fail:
29478 return NULL;
29479 }
29480
29481
29482 static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
29483 PyObject *resultobj;
29484 wxHelpProvider *result;
29485 char *kwnames[] = {
29486 NULL
29487 };
29488
29489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
29490 {
29491 PyThreadState* __tstate = wxPyBeginAllowThreads();
29492 result = (wxHelpProvider *)wxHelpProvider::Get();
29493
29494 wxPyEndAllowThreads(__tstate);
29495 if (PyErr_Occurred()) SWIG_fail;
29496 }
29497 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
29498 return resultobj;
29499 fail:
29500 return NULL;
29501 }
29502
29503
29504 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29505 PyObject *resultobj;
29506 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29507 wxWindow *arg2 = (wxWindow *) 0 ;
29508 wxString result;
29509 PyObject * obj0 = 0 ;
29510 PyObject * obj1 = 0 ;
29511 char *kwnames[] = {
29512 (char *) "self",(char *) "window", NULL
29513 };
29514
29515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
29516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29520 {
29521 PyThreadState* __tstate = wxPyBeginAllowThreads();
29522 result = (arg1)->GetHelp((wxWindow const *)arg2);
29523
29524 wxPyEndAllowThreads(__tstate);
29525 if (PyErr_Occurred()) SWIG_fail;
29526 }
29527 {
29528 #if wxUSE_UNICODE
29529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29530 #else
29531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29532 #endif
29533 }
29534 return resultobj;
29535 fail:
29536 return NULL;
29537 }
29538
29539
29540 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29541 PyObject *resultobj;
29542 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29543 wxWindow *arg2 = (wxWindow *) 0 ;
29544 bool result;
29545 PyObject * obj0 = 0 ;
29546 PyObject * obj1 = 0 ;
29547 char *kwnames[] = {
29548 (char *) "self",(char *) "window", NULL
29549 };
29550
29551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
29552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29554 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29556 {
29557 PyThreadState* __tstate = wxPyBeginAllowThreads();
29558 result = (bool)(arg1)->ShowHelp(arg2);
29559
29560 wxPyEndAllowThreads(__tstate);
29561 if (PyErr_Occurred()) SWIG_fail;
29562 }
29563 {
29564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29565 }
29566 return resultobj;
29567 fail:
29568 return NULL;
29569 }
29570
29571
29572 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29573 PyObject *resultobj;
29574 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29575 wxWindow *arg2 = (wxWindow *) 0 ;
29576 wxString *arg3 = 0 ;
29577 bool temp3 = False ;
29578 PyObject * obj0 = 0 ;
29579 PyObject * obj1 = 0 ;
29580 PyObject * obj2 = 0 ;
29581 char *kwnames[] = {
29582 (char *) "self",(char *) "window",(char *) "text", NULL
29583 };
29584
29585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
29586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29588 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29590 {
29591 arg3 = wxString_in_helper(obj2);
29592 if (arg3 == NULL) SWIG_fail;
29593 temp3 = True;
29594 }
29595 {
29596 PyThreadState* __tstate = wxPyBeginAllowThreads();
29597 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
29598
29599 wxPyEndAllowThreads(__tstate);
29600 if (PyErr_Occurred()) SWIG_fail;
29601 }
29602 Py_INCREF(Py_None); resultobj = Py_None;
29603 {
29604 if (temp3)
29605 delete arg3;
29606 }
29607 return resultobj;
29608 fail:
29609 {
29610 if (temp3)
29611 delete arg3;
29612 }
29613 return NULL;
29614 }
29615
29616
29617 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
29618 PyObject *resultobj;
29619 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29620 int arg2 ;
29621 wxString *arg3 = 0 ;
29622 bool temp3 = False ;
29623 PyObject * obj0 = 0 ;
29624 PyObject * obj1 = 0 ;
29625 PyObject * obj2 = 0 ;
29626 char *kwnames[] = {
29627 (char *) "self",(char *) "id",(char *) "text", NULL
29628 };
29629
29630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
29631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29633 arg2 = (int) SWIG_AsInt(obj1);
29634 if (PyErr_Occurred()) SWIG_fail;
29635 {
29636 arg3 = wxString_in_helper(obj2);
29637 if (arg3 == NULL) SWIG_fail;
29638 temp3 = True;
29639 }
29640 {
29641 PyThreadState* __tstate = wxPyBeginAllowThreads();
29642 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
29643
29644 wxPyEndAllowThreads(__tstate);
29645 if (PyErr_Occurred()) SWIG_fail;
29646 }
29647 Py_INCREF(Py_None); resultobj = Py_None;
29648 {
29649 if (temp3)
29650 delete arg3;
29651 }
29652 return resultobj;
29653 fail:
29654 {
29655 if (temp3)
29656 delete arg3;
29657 }
29658 return NULL;
29659 }
29660
29661
29662 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29663 PyObject *resultobj;
29664 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29665 wxWindow *arg2 = (wxWindow *) 0 ;
29666 PyObject * obj0 = 0 ;
29667 PyObject * obj1 = 0 ;
29668 char *kwnames[] = {
29669 (char *) "self",(char *) "window", NULL
29670 };
29671
29672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
29673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29675 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29677 {
29678 PyThreadState* __tstate = wxPyBeginAllowThreads();
29679 (arg1)->RemoveHelp(arg2);
29680
29681 wxPyEndAllowThreads(__tstate);
29682 if (PyErr_Occurred()) SWIG_fail;
29683 }
29684 Py_INCREF(Py_None); resultobj = Py_None;
29685 return resultobj;
29686 fail:
29687 return NULL;
29688 }
29689
29690
29691 static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
29692 PyObject *resultobj;
29693 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29694 PyObject * obj0 = 0 ;
29695 char *kwnames[] = {
29696 (char *) "self", NULL
29697 };
29698
29699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
29700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29702 {
29703 PyThreadState* __tstate = wxPyBeginAllowThreads();
29704 wxHelpProvider_Destroy(arg1);
29705
29706 wxPyEndAllowThreads(__tstate);
29707 if (PyErr_Occurred()) SWIG_fail;
29708 }
29709 Py_INCREF(Py_None); resultobj = Py_None;
29710 return resultobj;
29711 fail:
29712 return NULL;
29713 }
29714
29715
29716 static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
29717 PyObject *obj;
29718 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29719 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
29720 Py_INCREF(obj);
29721 return Py_BuildValue((char *)"");
29722 }
29723 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
29724 PyObject *resultobj;
29725 wxSimpleHelpProvider *result;
29726 char *kwnames[] = {
29727 NULL
29728 };
29729
29730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
29731 {
29732 PyThreadState* __tstate = wxPyBeginAllowThreads();
29733 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
29734
29735 wxPyEndAllowThreads(__tstate);
29736 if (PyErr_Occurred()) SWIG_fail;
29737 }
29738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
29739 return resultobj;
29740 fail:
29741 return NULL;
29742 }
29743
29744
29745 static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
29746 PyObject *obj;
29747 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29748 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
29749 Py_INCREF(obj);
29750 return Py_BuildValue((char *)"");
29751 }
29752 static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29753 PyObject *resultobj;
29754 wxBitmap *arg1 = 0 ;
29755 wxCursor const &arg2_defvalue = wxNullCursor ;
29756 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29757 wxGenericDragImage *result;
29758 PyObject * obj0 = 0 ;
29759 PyObject * obj1 = 0 ;
29760 char *kwnames[] = {
29761 (char *) "image",(char *) "cursor", NULL
29762 };
29763
29764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
29765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
29766 SWIG_POINTER_EXCEPTION | 0)) == -1)
29767 SWIG_fail;
29768 if (arg1 == NULL) {
29769 PyErr_SetString(PyExc_TypeError,"null reference");
29770 SWIG_fail;
29771 }
29772 if (obj1) {
29773 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29774 SWIG_POINTER_EXCEPTION | 0)) == -1)
29775 SWIG_fail;
29776 if (arg2 == NULL) {
29777 PyErr_SetString(PyExc_TypeError,"null reference");
29778 SWIG_fail;
29779 }
29780 }
29781 {
29782 PyThreadState* __tstate = wxPyBeginAllowThreads();
29783 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
29784
29785 wxPyEndAllowThreads(__tstate);
29786 if (PyErr_Occurred()) SWIG_fail;
29787 }
29788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29789 return resultobj;
29790 fail:
29791 return NULL;
29792 }
29793
29794
29795 static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
29796 PyObject *resultobj;
29797 wxIcon *arg1 = 0 ;
29798 wxCursor const &arg2_defvalue = wxNullCursor ;
29799 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29800 wxGenericDragImage *result;
29801 PyObject * obj0 = 0 ;
29802 PyObject * obj1 = 0 ;
29803 char *kwnames[] = {
29804 (char *) "image",(char *) "cursor", NULL
29805 };
29806
29807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
29808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
29809 SWIG_POINTER_EXCEPTION | 0)) == -1)
29810 SWIG_fail;
29811 if (arg1 == NULL) {
29812 PyErr_SetString(PyExc_TypeError,"null reference");
29813 SWIG_fail;
29814 }
29815 if (obj1) {
29816 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29817 SWIG_POINTER_EXCEPTION | 0)) == -1)
29818 SWIG_fail;
29819 if (arg2 == NULL) {
29820 PyErr_SetString(PyExc_TypeError,"null reference");
29821 SWIG_fail;
29822 }
29823 }
29824 {
29825 PyThreadState* __tstate = wxPyBeginAllowThreads();
29826 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
29827
29828 wxPyEndAllowThreads(__tstate);
29829 if (PyErr_Occurred()) SWIG_fail;
29830 }
29831 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29832 return resultobj;
29833 fail:
29834 return NULL;
29835 }
29836
29837
29838 static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
29839 PyObject *resultobj;
29840 wxString *arg1 = 0 ;
29841 wxCursor const &arg2_defvalue = wxNullCursor ;
29842 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29843 wxGenericDragImage *result;
29844 bool temp1 = False ;
29845 PyObject * obj0 = 0 ;
29846 PyObject * obj1 = 0 ;
29847 char *kwnames[] = {
29848 (char *) "str",(char *) "cursor", NULL
29849 };
29850
29851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
29852 {
29853 arg1 = wxString_in_helper(obj0);
29854 if (arg1 == NULL) SWIG_fail;
29855 temp1 = True;
29856 }
29857 if (obj1) {
29858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29859 SWIG_POINTER_EXCEPTION | 0)) == -1)
29860 SWIG_fail;
29861 if (arg2 == NULL) {
29862 PyErr_SetString(PyExc_TypeError,"null reference");
29863 SWIG_fail;
29864 }
29865 }
29866 {
29867 PyThreadState* __tstate = wxPyBeginAllowThreads();
29868 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
29869
29870 wxPyEndAllowThreads(__tstate);
29871 if (PyErr_Occurred()) SWIG_fail;
29872 }
29873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29874 {
29875 if (temp1)
29876 delete arg1;
29877 }
29878 return resultobj;
29879 fail:
29880 {
29881 if (temp1)
29882 delete arg1;
29883 }
29884 return NULL;
29885 }
29886
29887
29888 static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29889 PyObject *resultobj;
29890 wxPyTreeCtrl *arg1 = 0 ;
29891 wxTreeItemId *arg2 = 0 ;
29892 wxGenericDragImage *result;
29893 PyObject * obj0 = 0 ;
29894 PyObject * obj1 = 0 ;
29895 char *kwnames[] = {
29896 (char *) "treeCtrl",(char *) "id", NULL
29897 };
29898
29899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
29900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
29901 SWIG_POINTER_EXCEPTION | 0)) == -1)
29902 SWIG_fail;
29903 if (arg1 == NULL) {
29904 PyErr_SetString(PyExc_TypeError,"null reference");
29905 SWIG_fail;
29906 }
29907 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
29908 SWIG_POINTER_EXCEPTION | 0)) == -1)
29909 SWIG_fail;
29910 if (arg2 == NULL) {
29911 PyErr_SetString(PyExc_TypeError,"null reference");
29912 SWIG_fail;
29913 }
29914 {
29915 PyThreadState* __tstate = wxPyBeginAllowThreads();
29916 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
29917
29918 wxPyEndAllowThreads(__tstate);
29919 if (PyErr_Occurred()) SWIG_fail;
29920 }
29921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29922 return resultobj;
29923 fail:
29924 return NULL;
29925 }
29926
29927
29928 static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29929 PyObject *resultobj;
29930 wxPyListCtrl *arg1 = 0 ;
29931 long arg2 ;
29932 wxGenericDragImage *result;
29933 PyObject * obj0 = 0 ;
29934 PyObject * obj1 = 0 ;
29935 char *kwnames[] = {
29936 (char *) "listCtrl",(char *) "id", NULL
29937 };
29938
29939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
29940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
29941 SWIG_POINTER_EXCEPTION | 0)) == -1)
29942 SWIG_fail;
29943 if (arg1 == NULL) {
29944 PyErr_SetString(PyExc_TypeError,"null reference");
29945 SWIG_fail;
29946 }
29947 arg2 = (long) SWIG_AsLong(obj1);
29948 if (PyErr_Occurred()) SWIG_fail;
29949 {
29950 PyThreadState* __tstate = wxPyBeginAllowThreads();
29951 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
29952
29953 wxPyEndAllowThreads(__tstate);
29954 if (PyErr_Occurred()) SWIG_fail;
29955 }
29956 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29957 return resultobj;
29958 fail:
29959 return NULL;
29960 }
29961
29962
29963 static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29964 PyObject *resultobj;
29965 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29966 PyObject * obj0 = 0 ;
29967 char *kwnames[] = {
29968 (char *) "self", NULL
29969 };
29970
29971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
29972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29974 {
29975 PyThreadState* __tstate = wxPyBeginAllowThreads();
29976 delete arg1;
29977
29978 wxPyEndAllowThreads(__tstate);
29979 if (PyErr_Occurred()) SWIG_fail;
29980 }
29981 Py_INCREF(Py_None); resultobj = Py_None;
29982 return resultobj;
29983 fail:
29984 return NULL;
29985 }
29986
29987
29988 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
29989 PyObject *resultobj;
29990 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29991 wxBitmap *arg2 = (wxBitmap *) 0 ;
29992 PyObject * obj0 = 0 ;
29993 PyObject * obj1 = 0 ;
29994 char *kwnames[] = {
29995 (char *) "self",(char *) "bitmap", NULL
29996 };
29997
29998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
29999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
30002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30003 {
30004 PyThreadState* __tstate = wxPyBeginAllowThreads();
30005 (arg1)->SetBackingBitmap(arg2);
30006
30007 wxPyEndAllowThreads(__tstate);
30008 if (PyErr_Occurred()) SWIG_fail;
30009 }
30010 Py_INCREF(Py_None); resultobj = Py_None;
30011 return resultobj;
30012 fail:
30013 return NULL;
30014 }
30015
30016
30017 static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30018 PyObject *resultobj;
30019 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30020 wxPoint *arg2 = 0 ;
30021 wxWindow *arg3 = (wxWindow *) 0 ;
30022 bool arg4 = (bool) False ;
30023 wxRect *arg5 = (wxRect *) NULL ;
30024 bool result;
30025 wxPoint temp2 ;
30026 PyObject * obj0 = 0 ;
30027 PyObject * obj1 = 0 ;
30028 PyObject * obj2 = 0 ;
30029 PyObject * obj3 = 0 ;
30030 PyObject * obj4 = 0 ;
30031 char *kwnames[] = {
30032 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
30033 };
30034
30035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30038 {
30039 arg2 = &temp2;
30040 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30041 }
30042 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30044 if (obj3) {
30045 arg4 = (bool) SWIG_AsBool(obj3);
30046 if (PyErr_Occurred()) SWIG_fail;
30047 }
30048 if (obj4) {
30049 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
30050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30051 }
30052 {
30053 PyThreadState* __tstate = wxPyBeginAllowThreads();
30054 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
30055
30056 wxPyEndAllowThreads(__tstate);
30057 if (PyErr_Occurred()) SWIG_fail;
30058 }
30059 {
30060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30061 }
30062 return resultobj;
30063 fail:
30064 return NULL;
30065 }
30066
30067
30068 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
30069 PyObject *resultobj;
30070 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30071 wxPoint *arg2 = 0 ;
30072 wxWindow *arg3 = (wxWindow *) 0 ;
30073 wxWindow *arg4 = (wxWindow *) 0 ;
30074 bool result;
30075 wxPoint temp2 ;
30076 PyObject * obj0 = 0 ;
30077 PyObject * obj1 = 0 ;
30078 PyObject * obj2 = 0 ;
30079 PyObject * obj3 = 0 ;
30080 char *kwnames[] = {
30081 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
30082 };
30083
30084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30087 {
30088 arg2 = &temp2;
30089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30090 }
30091 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30093 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
30094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30095 {
30096 PyThreadState* __tstate = wxPyBeginAllowThreads();
30097 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
30098
30099 wxPyEndAllowThreads(__tstate);
30100 if (PyErr_Occurred()) SWIG_fail;
30101 }
30102 {
30103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30104 }
30105 return resultobj;
30106 fail:
30107 return NULL;
30108 }
30109
30110
30111 static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30112 PyObject *resultobj;
30113 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30114 bool result;
30115 PyObject * obj0 = 0 ;
30116 char *kwnames[] = {
30117 (char *) "self", NULL
30118 };
30119
30120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
30121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30123 {
30124 PyThreadState* __tstate = wxPyBeginAllowThreads();
30125 result = (bool)(arg1)->EndDrag();
30126
30127 wxPyEndAllowThreads(__tstate);
30128 if (PyErr_Occurred()) SWIG_fail;
30129 }
30130 {
30131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30132 }
30133 return resultobj;
30134 fail:
30135 return NULL;
30136 }
30137
30138
30139 static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
30140 PyObject *resultobj;
30141 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30142 wxPoint *arg2 = 0 ;
30143 bool result;
30144 wxPoint temp2 ;
30145 PyObject * obj0 = 0 ;
30146 PyObject * obj1 = 0 ;
30147 char *kwnames[] = {
30148 (char *) "self",(char *) "pt", NULL
30149 };
30150
30151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
30152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30154 {
30155 arg2 = &temp2;
30156 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30157 }
30158 {
30159 PyThreadState* __tstate = wxPyBeginAllowThreads();
30160 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
30161
30162 wxPyEndAllowThreads(__tstate);
30163 if (PyErr_Occurred()) SWIG_fail;
30164 }
30165 {
30166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30167 }
30168 return resultobj;
30169 fail:
30170 return NULL;
30171 }
30172
30173
30174 static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
30175 PyObject *resultobj;
30176 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30177 bool result;
30178 PyObject * obj0 = 0 ;
30179 char *kwnames[] = {
30180 (char *) "self", NULL
30181 };
30182
30183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
30184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30186 {
30187 PyThreadState* __tstate = wxPyBeginAllowThreads();
30188 result = (bool)(arg1)->Show();
30189
30190 wxPyEndAllowThreads(__tstate);
30191 if (PyErr_Occurred()) SWIG_fail;
30192 }
30193 {
30194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30195 }
30196 return resultobj;
30197 fail:
30198 return NULL;
30199 }
30200
30201
30202 static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
30203 PyObject *resultobj;
30204 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30205 bool result;
30206 PyObject * obj0 = 0 ;
30207 char *kwnames[] = {
30208 (char *) "self", NULL
30209 };
30210
30211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
30212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30214 {
30215 PyThreadState* __tstate = wxPyBeginAllowThreads();
30216 result = (bool)(arg1)->Hide();
30217
30218 wxPyEndAllowThreads(__tstate);
30219 if (PyErr_Occurred()) SWIG_fail;
30220 }
30221 {
30222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30223 }
30224 return resultobj;
30225 fail:
30226 return NULL;
30227 }
30228
30229
30230 static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
30231 PyObject *resultobj;
30232 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30233 wxPoint *arg2 = 0 ;
30234 wxRect result;
30235 wxPoint temp2 ;
30236 PyObject * obj0 = 0 ;
30237 PyObject * obj1 = 0 ;
30238 char *kwnames[] = {
30239 (char *) "self",(char *) "pos", NULL
30240 };
30241
30242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
30243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30245 {
30246 arg2 = &temp2;
30247 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30248 }
30249 {
30250 PyThreadState* __tstate = wxPyBeginAllowThreads();
30251 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
30252
30253 wxPyEndAllowThreads(__tstate);
30254 if (PyErr_Occurred()) SWIG_fail;
30255 }
30256 {
30257 wxRect * resultptr;
30258 resultptr = new wxRect((wxRect &) result);
30259 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
30260 }
30261 return resultobj;
30262 fail:
30263 return NULL;
30264 }
30265
30266
30267 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30268 PyObject *resultobj;
30269 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30270 wxDC *arg2 = 0 ;
30271 wxPoint *arg3 = 0 ;
30272 bool result;
30273 wxPoint temp3 ;
30274 PyObject * obj0 = 0 ;
30275 PyObject * obj1 = 0 ;
30276 PyObject * obj2 = 0 ;
30277 char *kwnames[] = {
30278 (char *) "self",(char *) "dc",(char *) "pos", NULL
30279 };
30280
30281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
30282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
30285 SWIG_POINTER_EXCEPTION | 0)) == -1)
30286 SWIG_fail;
30287 if (arg2 == NULL) {
30288 PyErr_SetString(PyExc_TypeError,"null reference");
30289 SWIG_fail;
30290 }
30291 {
30292 arg3 = &temp3;
30293 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30294 }
30295 {
30296 PyThreadState* __tstate = wxPyBeginAllowThreads();
30297 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
30298
30299 wxPyEndAllowThreads(__tstate);
30300 if (PyErr_Occurred()) SWIG_fail;
30301 }
30302 {
30303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30304 }
30305 return resultobj;
30306 fail:
30307 return NULL;
30308 }
30309
30310
30311 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30312 PyObject *resultobj;
30313 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30314 wxDC *arg2 = 0 ;
30315 wxMemoryDC *arg3 = 0 ;
30316 wxRect *arg4 = 0 ;
30317 wxRect *arg5 = 0 ;
30318 bool result;
30319 wxRect temp4 ;
30320 wxRect temp5 ;
30321 PyObject * obj0 = 0 ;
30322 PyObject * obj1 = 0 ;
30323 PyObject * obj2 = 0 ;
30324 PyObject * obj3 = 0 ;
30325 PyObject * obj4 = 0 ;
30326 char *kwnames[] = {
30327 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
30328 };
30329
30330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30333 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
30334 SWIG_POINTER_EXCEPTION | 0)) == -1)
30335 SWIG_fail;
30336 if (arg2 == NULL) {
30337 PyErr_SetString(PyExc_TypeError,"null reference");
30338 SWIG_fail;
30339 }
30340 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
30341 SWIG_POINTER_EXCEPTION | 0)) == -1)
30342 SWIG_fail;
30343 if (arg3 == NULL) {
30344 PyErr_SetString(PyExc_TypeError,"null reference");
30345 SWIG_fail;
30346 }
30347 {
30348 arg4 = &temp4;
30349 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30350 }
30351 {
30352 arg5 = &temp5;
30353 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
30354 }
30355 {
30356 PyThreadState* __tstate = wxPyBeginAllowThreads();
30357 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
30358
30359 wxPyEndAllowThreads(__tstate);
30360 if (PyErr_Occurred()) SWIG_fail;
30361 }
30362 {
30363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30364 }
30365 return resultobj;
30366 fail:
30367 return NULL;
30368 }
30369
30370
30371 static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30372 PyObject *resultobj;
30373 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30374 wxPoint *arg2 = 0 ;
30375 wxPoint *arg3 = 0 ;
30376 bool arg4 ;
30377 bool arg5 ;
30378 bool result;
30379 wxPoint temp2 ;
30380 wxPoint temp3 ;
30381 PyObject * obj0 = 0 ;
30382 PyObject * obj1 = 0 ;
30383 PyObject * obj2 = 0 ;
30384 PyObject * obj3 = 0 ;
30385 PyObject * obj4 = 0 ;
30386 char *kwnames[] = {
30387 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
30388 };
30389
30390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30393 {
30394 arg2 = &temp2;
30395 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30396 }
30397 {
30398 arg3 = &temp3;
30399 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30400 }
30401 arg4 = (bool) SWIG_AsBool(obj3);
30402 if (PyErr_Occurred()) SWIG_fail;
30403 arg5 = (bool) SWIG_AsBool(obj4);
30404 if (PyErr_Occurred()) SWIG_fail;
30405 {
30406 PyThreadState* __tstate = wxPyBeginAllowThreads();
30407 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
30408
30409 wxPyEndAllowThreads(__tstate);
30410 if (PyErr_Occurred()) SWIG_fail;
30411 }
30412 {
30413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30414 }
30415 return resultobj;
30416 fail:
30417 return NULL;
30418 }
30419
30420
30421 static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
30422 PyObject *obj;
30423 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30424 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
30425 Py_INCREF(obj);
30426 return Py_BuildValue((char *)"");
30427 }
30428 static PyMethodDef SwigMethods[] = {
30429 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
30430 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
30431 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
30432 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
30433 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
30434 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
30435 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
30436 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
30437 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
30438 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
30439 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
30440 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
30441 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
30442 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
30443 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
30444 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
30445 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
30446 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
30447 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
30448 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
30449 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
30450 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
30451 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
30452 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
30453 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
30454 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
30455 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
30456 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
30457 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
30458 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
30459 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
30460 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
30461 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
30462 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
30463 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
30464 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
30465 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
30466 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
30467 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
30468 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
30469 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
30470 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
30471 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
30472 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
30473 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
30474 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
30475 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
30476 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
30477 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
30478 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
30479 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
30480 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
30481 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
30482 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
30483 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
30484 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
30485 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
30486 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
30487 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
30488 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
30489 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
30490 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
30491 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
30492 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
30493 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
30494 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
30495 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
30496 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
30497 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
30498 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
30499 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
30500 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
30501 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
30502 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
30503 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
30504 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
30505 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
30506 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
30507 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
30508 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
30509 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
30510 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
30511 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
30512 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
30513 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
30514 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
30515 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
30516 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
30517 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
30518 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
30519 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
30520 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
30521 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
30522 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
30523 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
30524 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
30525 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
30526 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
30527 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
30528 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
30529 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
30530 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
30531 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
30532 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
30533 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
30534 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
30535 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
30536 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
30537 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
30538 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
30539 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30540 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
30541 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
30542 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
30543 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
30544 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
30545 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
30546 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
30547 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
30548 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
30549 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
30550 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
30551 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
30552 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
30553 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
30554 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
30555 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30556 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30557 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
30558 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
30559 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
30560 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
30561 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
30562 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
30563 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
30564 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30565 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
30566 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
30567 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
30568 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
30569 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
30570 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
30571 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30572 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30573 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
30574 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
30575 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
30576 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
30577 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
30578 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
30579 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
30580 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
30581 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
30582 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
30583 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
30584 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30585 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
30586 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
30587 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
30588 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
30589 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
30590 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
30591 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
30592 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
30593 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
30594 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
30595 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
30596 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
30597 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
30598 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
30599 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
30600 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
30601 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
30602 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
30603 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
30604 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
30605 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
30606 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
30607 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
30608 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
30609 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
30610 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
30611 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
30612 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
30613 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
30614 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
30615 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
30616 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
30617 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
30618 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
30619 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
30620 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
30621 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
30622 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
30623 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
30624 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
30625 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
30626 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
30627 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
30628 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
30629 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
30630 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
30631 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
30632 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
30633 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS },
30634 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS },
30635 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
30636 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
30637 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
30638 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
30639 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
30640 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
30641 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
30642 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
30643 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
30644 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
30645 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
30646 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
30647 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
30648 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
30649 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
30650 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
30651 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
30652 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
30653 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
30654 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
30655 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
30656 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
30657 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
30658 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
30659 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
30660 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
30661 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
30662 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
30663 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
30664 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
30665 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
30666 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
30667 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
30668 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30669 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
30670 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
30671 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
30672 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
30673 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
30674 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
30675 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
30676 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
30677 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
30678 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
30679 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
30680 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
30681 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
30682 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
30683 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
30684 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
30685 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
30686 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
30687 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
30688 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
30689 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
30690 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
30691 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
30692 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
30693 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
30694 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
30695 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
30696 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
30697 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
30698 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
30699 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
30700 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
30701 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
30702 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
30703 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
30704 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
30705 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
30706 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
30707 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
30708 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
30709 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
30710 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
30711 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
30712 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
30713 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
30714 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
30715 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
30716 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
30717 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
30718 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
30719 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
30720 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
30721 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
30722 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
30723 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
30724 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
30725 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
30726 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
30727 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
30728 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
30729 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
30730 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
30731 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
30732 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
30733 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
30734 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
30735 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
30736 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
30737 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
30738 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
30739 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
30740 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
30741 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
30742 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
30743 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
30744 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
30745 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
30746 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
30747 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
30748 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
30749 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
30750 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
30751 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
30752 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
30753 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
30754 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
30755 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
30756 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
30757 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
30758 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
30759 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
30760 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
30761 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
30762 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
30763 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
30764 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
30765 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
30766 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
30767 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
30768 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
30769 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
30770 { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS },
30771 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
30772 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
30773 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
30774 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
30775 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
30776 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
30777 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
30778 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
30779 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
30780 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
30781 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
30782 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
30783 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
30784 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
30785 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
30786 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
30787 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
30788 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
30789 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
30790 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
30791 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
30792 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
30793 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
30794 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
30795 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
30796 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
30797 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
30798 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
30799 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
30800 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
30801 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
30802 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
30803 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
30804 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
30805 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
30806 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
30807 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
30808 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
30809 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
30810 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
30811 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
30812 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
30813 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
30814 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
30815 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
30816 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
30817 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
30818 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
30819 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
30820 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
30821 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
30822 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
30823 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
30824 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
30825 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
30826 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
30827 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
30828 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
30829 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
30830 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
30831 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
30832 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
30833 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
30834 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
30835 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
30836 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
30837 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
30838 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
30839 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
30840 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
30841 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
30842 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
30843 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
30844 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
30845 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
30846 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
30847 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
30848 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
30849 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
30850 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
30851 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
30852 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
30853 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
30854 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
30855 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
30856 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
30857 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
30858 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
30859 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
30860 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
30861 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
30862 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
30863 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
30864 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
30865 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
30866 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
30867 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
30868 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
30869 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
30870 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
30871 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
30872 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30873 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30874 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
30875 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
30876 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30877 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
30878 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30879 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30880 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
30881 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
30882 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
30883 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
30884 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
30885 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
30886 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
30887 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
30888 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
30889 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
30890 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
30891 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
30892 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
30893 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
30894 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
30895 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
30896 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
30897 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30898 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30899 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
30900 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
30901 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
30902 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
30903 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
30904 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
30905 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
30906 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
30907 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
30908 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
30909 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
30910 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
30911 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30912 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30913 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
30914 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
30915 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
30916 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
30917 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
30918 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
30919 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
30920 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
30921 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
30922 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
30923 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
30924 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
30925 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
30926 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
30927 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
30928 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
30929 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
30930 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
30931 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
30932 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
30933 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
30934 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
30935 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
30936 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
30937 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
30938 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
30939 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
30940 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
30941 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
30942 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
30943 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
30944 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
30945 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
30946 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
30947 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
30948 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
30949 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
30950 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
30951 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
30952 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
30953 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
30954 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
30955 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
30956 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
30957 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
30958 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
30959 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
30960 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
30961 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
30962 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
30963 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
30964 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30965 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30966 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
30967 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30968 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
30969 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
30970 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
30971 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
30972 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
30973 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
30974 { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
30975 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
30976 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
30977 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
30978 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
30979 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
30980 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
30981 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
30982 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
30983 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
30984 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
30985 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
30986 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
30987 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
30988 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
30989 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
30990 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
30991 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
30992 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30993 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30994 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
30995 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
30996 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
30997 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
30998 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
30999 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31000 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31001 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS },
31002 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
31003 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
31004 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
31005 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
31006 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
31007 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31008 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
31009 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
31010 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
31011 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31012 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
31013 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31014 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
31015 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
31016 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
31017 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31018 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31019 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
31020 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
31021 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
31022 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
31023 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
31024 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
31025 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
31026 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31027 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31028 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31029 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31030 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
31031 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
31032 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31033 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
31034 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
31035 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
31036 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
31037 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
31038 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
31039 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
31040 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
31041 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
31042 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
31043 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
31044 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
31045 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
31046 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31047 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31048 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
31049 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
31050 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
31051 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
31052 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
31053 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
31054 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
31055 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
31056 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
31057 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
31058 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
31059 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
31060 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
31061 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
31062 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31063 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
31064 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
31065 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
31066 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31067 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
31068 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31069 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31070 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31071 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31072 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
31073 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31074 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31075 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
31076 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
31077 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
31078 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31079 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31080 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31081 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
31082 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
31083 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
31084 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
31085 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
31086 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31087 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
31088 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31089 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
31090 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31091 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
31092 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31093 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
31094 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31095 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
31096 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31097 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31098 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
31099 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31100 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31101 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31102 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
31103 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31104 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
31105 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS },
31106 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31107 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31108 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31109 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
31110 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31111 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
31112 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
31113 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
31114 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
31115 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
31116 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31117 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
31118 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
31119 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
31120 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
31121 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
31122 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
31123 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
31124 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
31125 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
31126 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
31127 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
31128 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
31129 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31130 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
31131 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
31132 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
31133 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
31134 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31135 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
31136 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
31137 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
31138 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
31139 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
31140 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
31141 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
31142 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
31143 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
31144 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31145 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
31146 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31147 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
31148 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
31149 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
31150 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31151 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
31152 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31153 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
31154 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31155 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31156 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31157 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
31158 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31159 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31160 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
31161 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
31162 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
31163 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
31164 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
31165 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
31166 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
31167 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31168 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31169 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
31170 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31171 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31172 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
31173 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
31174 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
31175 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
31176 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31177 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31178 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31179 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
31180 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
31181 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
31182 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS },
31183 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31184 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
31185 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
31186 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
31187 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31188 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
31189 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
31190 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
31191 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31192 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
31193 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
31194 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
31195 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
31196 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
31197 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
31198 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
31199 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
31200 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
31201 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
31202 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
31203 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS },
31204 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
31205 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
31206 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31207 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31208 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
31209 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
31210 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
31211 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
31212 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
31213 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31214 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31215 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
31216 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
31217 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
31218 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
31219 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
31220 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
31221 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
31222 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
31223 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
31224 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
31225 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
31226 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS },
31227 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
31228 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
31229 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
31230 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
31231 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
31232 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
31233 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
31234 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
31235 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
31236 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
31237 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
31238 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
31239 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
31240 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
31241 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
31242 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
31243 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
31244 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
31245 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
31246 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
31247 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
31248 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
31249 { NULL, NULL }
31250 };
31251
31252
31253 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
31254
31255 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
31256 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31257 }
31258 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
31259 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
31260 }
31261 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
31262 return (void *)((wxSizer *) ((wxBoxSizer *) x));
31263 }
31264 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
31265 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
31266 }
31267 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
31268 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31269 }
31270 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
31271 return (void *)((wxSizer *) ((wxGridSizer *) x));
31272 }
31273 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
31274 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
31275 }
31276 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
31277 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
31278 }
31279 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
31280 return (void *)((wxSizer *) ((wxPySizer *) x));
31281 }
31282 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
31283 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
31284 }
31285 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
31286 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
31287 }
31288 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
31289 return (void *)((wxEvent *) ((wxMenuEvent *) x));
31290 }
31291 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
31292 return (void *)((wxEvent *) ((wxCloseEvent *) x));
31293 }
31294 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
31295 return (void *)((wxEvent *) ((wxMouseEvent *) x));
31296 }
31297 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
31298 return (void *)((wxEvent *) ((wxEraseEvent *) x));
31299 }
31300 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
31301 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
31302 }
31303 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
31304 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
31305 }
31306 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
31307 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
31308 }
31309 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
31310 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
31311 }
31312 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
31313 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
31314 }
31315 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
31316 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31317 }
31318 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
31319 return (void *)((wxEvent *) ((wxPyEvent *) x));
31320 }
31321 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
31322 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
31323 }
31324 static void *_p_wxListEventTo_p_wxEvent(void *x) {
31325 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
31326 }
31327 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
31328 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31329 }
31330 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
31331 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31332 }
31333 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
31334 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
31335 }
31336 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
31337 return (void *)((wxEvent *) ((wxIdleEvent *) x));
31338 }
31339 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
31340 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
31341 }
31342 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
31343 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
31344 }
31345 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
31346 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
31347 }
31348 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
31349 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
31350 }
31351 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
31352 return (void *)((wxEvent *) ((wxActivateEvent *) x));
31353 }
31354 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
31355 return (void *)((wxEvent *) ((wxSizeEvent *) x));
31356 }
31357 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
31358 return (void *)((wxEvent *) ((wxMoveEvent *) x));
31359 }
31360 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
31361 return (void *)((wxEvent *) ((wxPaintEvent *) x));
31362 }
31363 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
31364 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
31365 }
31366 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
31367 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
31368 }
31369 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
31370 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
31371 }
31372 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
31373 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
31374 }
31375 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
31376 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31377 }
31378 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
31379 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
31380 }
31381 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
31382 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
31383 }
31384 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
31385 return (void *)((wxEvent *) ((wxFocusEvent *) x));
31386 }
31387 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
31388 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
31389 }
31390 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
31391 return (void *)((wxEvent *) ((wxShowEvent *) x));
31392 }
31393 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
31394 return (void *)((wxEvent *) ((wxCommandEvent *) x));
31395 }
31396 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
31397 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
31398 }
31399 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
31400 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31401 }
31402 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
31403 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
31404 }
31405 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
31406 return (void *)((wxEvent *) ((wxKeyEvent *) x));
31407 }
31408 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
31409 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
31410 }
31411 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
31412 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
31413 }
31414 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
31415 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
31416 }
31417 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
31418 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31419 }
31420 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
31421 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
31422 }
31423 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
31424 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
31425 }
31426 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
31427 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
31428 }
31429 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
31430 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31431 }
31432 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
31433 return (void *)((wxPyListCtrl *) ((wxListView *) x));
31434 }
31435 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
31436 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31437 }
31438 static void *_p_wxListBoxTo_p_wxControl(void *x) {
31439 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
31440 }
31441 static void *_p_wxChoiceTo_p_wxControl(void *x) {
31442 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
31443 }
31444 static void *_p_wxToolBarTo_p_wxControl(void *x) {
31445 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
31446 }
31447 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
31448 return (void *)((wxControl *) ((wxStaticBitmap *) x));
31449 }
31450 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
31451 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
31452 }
31453 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
31454 return (void *)((wxControl *) ((wxSpinCtrl *) x));
31455 }
31456 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
31457 return (void *)((wxControl *) ((wxStaticBox *) x));
31458 }
31459 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
31460 return (void *)((wxControl *) ((wxPyListCtrl *) x));
31461 }
31462 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
31463 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
31464 }
31465 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
31466 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31467 }
31468 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
31469 return (void *)((wxControl *) ((wxScrollBar *) x));
31470 }
31471 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
31472 return (void *)((wxControl *) ((wxBookCtrl *) x));
31473 }
31474 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
31475 return (void *)((wxControl *) ((wxRadioButton *) x));
31476 }
31477 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
31478 return (void *)((wxControl *) ((wxToggleButton *) x));
31479 }
31480 static void *_p_wxGaugeTo_p_wxControl(void *x) {
31481 return (void *)((wxControl *) ((wxGauge *) x));
31482 }
31483 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
31484 return (void *)((wxControl *) ((wxToolBarBase *) x));
31485 }
31486 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
31487 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
31488 }
31489 static void *_p_wxButtonTo_p_wxControl(void *x) {
31490 return (void *)((wxControl *) ((wxButton *) x));
31491 }
31492 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
31493 return (void *)((wxControl *) ((wxSpinButton *) x));
31494 }
31495 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
31496 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31497 }
31498 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
31499 return (void *)((wxControl *) ((wxControlWithItems *) x));
31500 }
31501 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
31502 return (void *)((wxControl *) ((wxRadioBox *) x));
31503 }
31504 static void *_p_wxNotebookTo_p_wxControl(void *x) {
31505 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
31506 }
31507 static void *_p_wxListbookTo_p_wxControl(void *x) {
31508 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
31509 }
31510 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
31511 return (void *)((wxControl *) ((wxCheckBox *) x));
31512 }
31513 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
31514 return (void *)((wxControl *) ((wxTextCtrl *) x));
31515 }
31516 static void *_p_wxListViewTo_p_wxControl(void *x) {
31517 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
31518 }
31519 static void *_p_wxSliderTo_p_wxControl(void *x) {
31520 return (void *)((wxControl *) ((wxSlider *) x));
31521 }
31522 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
31523 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
31524 }
31525 static void *_p_wxPyControlTo_p_wxControl(void *x) {
31526 return (void *)((wxControl *) ((wxPyControl *) x));
31527 }
31528 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
31529 return (void *)((wxControl *) ((wxStaticLine *) x));
31530 }
31531 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
31532 return (void *)((wxControl *) ((wxStaticText *) x));
31533 }
31534 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
31535 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
31536 }
31537 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
31538 return (void *)((wxChoice *) ((wxComboBox *) x));
31539 }
31540 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
31541 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
31542 }
31543 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
31544 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
31545 }
31546 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
31547 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31548 }
31549 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
31550 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
31551 }
31552 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
31553 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
31554 }
31555 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
31556 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31557 }
31558 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
31559 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
31560 }
31561 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
31562 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
31563 }
31564 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
31565 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
31566 }
31567 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
31568 return (void *)((wxEvtHandler *) ((wxValidator *) x));
31569 }
31570 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
31571 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
31572 }
31573 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
31574 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31575 }
31576 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
31577 return (void *)((wxEvtHandler *) ((wxMenu *) x));
31578 }
31579 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
31580 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
31581 }
31582 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
31583 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
31584 }
31585 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
31586 return (void *)((wxEvtHandler *) ((wxWindow *) x));
31587 }
31588 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
31589 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
31590 }
31591 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
31592 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
31593 }
31594 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
31595 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
31596 }
31597 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
31598 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
31599 }
31600 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
31601 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31602 }
31603 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
31604 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
31605 }
31606 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
31607 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
31608 }
31609 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
31610 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
31611 }
31612 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
31613 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
31614 }
31615 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
31616 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31617 }
31618 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
31619 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
31620 }
31621 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
31622 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
31623 }
31624 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
31625 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31626 }
31627 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
31628 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
31629 }
31630 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
31631 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
31632 }
31633 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
31634 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
31635 }
31636 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
31637 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31638 }
31639 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
31640 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31641 }
31642 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
31643 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31644 }
31645 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
31646 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31647 }
31648 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
31649 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
31650 }
31651 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
31652 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31653 }
31654 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
31655 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
31656 }
31657 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
31658 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
31659 }
31660 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
31661 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
31662 }
31663 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
31664 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
31665 }
31666 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
31667 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
31668 }
31669 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
31670 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
31671 }
31672 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
31673 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
31674 }
31675 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
31676 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31677 }
31678 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
31679 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
31680 }
31681 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
31682 return (void *)((wxListBox *) ((wxCheckListBox *) x));
31683 }
31684 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
31685 return (void *)((wxBookCtrl *) ((wxListbook *) x));
31686 }
31687 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
31688 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
31689 }
31690 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
31691 return (void *)((wxButton *) ((wxBitmapButton *) x));
31692 }
31693 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
31694 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
31695 }
31696 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
31697 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
31698 }
31699 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
31700 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
31701 }
31702 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
31703 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
31704 }
31705 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
31706 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
31707 }
31708 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
31709 return (void *)((wxObject *) ((wxSizerItem *) x));
31710 }
31711 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
31712 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
31713 }
31714 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
31715 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
31716 }
31717 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
31718 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
31719 }
31720 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
31721 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31722 }
31723 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
31724 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
31725 }
31726 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
31727 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
31728 }
31729 static void *_p_wxSizerTo_p_wxObject(void *x) {
31730 return (void *)((wxObject *) ((wxSizer *) x));
31731 }
31732 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
31733 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31734 }
31735 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
31736 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
31737 }
31738 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
31739 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
31740 }
31741 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
31742 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
31743 }
31744 static void *_p_wxEventTo_p_wxObject(void *x) {
31745 return (void *)((wxObject *) ((wxEvent *) x));
31746 }
31747 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
31748 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
31749 }
31750 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
31751 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
31752 }
31753 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
31754 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
31755 }
31756 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
31757 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
31758 }
31759 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
31760 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
31761 }
31762 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
31763 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31764 }
31765 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
31766 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
31767 }
31768 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
31769 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
31770 }
31771 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
31772 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
31773 }
31774 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
31775 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
31776 }
31777 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
31778 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31779 }
31780 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
31781 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
31782 }
31783 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
31784 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
31785 }
31786 static void *_p_wxControlTo_p_wxObject(void *x) {
31787 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
31788 }
31789 static void *_p_wxPyControlTo_p_wxObject(void *x) {
31790 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
31791 }
31792 static void *_p_wxGaugeTo_p_wxObject(void *x) {
31793 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
31794 }
31795 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
31796 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
31797 }
31798 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
31799 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
31800 }
31801 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
31802 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
31803 }
31804 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
31805 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
31806 }
31807 static void *_p_wxChoiceTo_p_wxObject(void *x) {
31808 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31809 }
31810 static void *_p_wxFSFileTo_p_wxObject(void *x) {
31811 return (void *)((wxObject *) ((wxFSFile *) x));
31812 }
31813 static void *_p_wxPySizerTo_p_wxObject(void *x) {
31814 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
31815 }
31816 static void *_p_wxListViewTo_p_wxObject(void *x) {
31817 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31818 }
31819 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
31820 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
31821 }
31822 static void *_p_wxNotebookTo_p_wxObject(void *x) {
31823 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31824 }
31825 static void *_p_wxPyEventTo_p_wxObject(void *x) {
31826 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
31827 }
31828 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
31829 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
31830 }
31831 static void *_p_wxListbookTo_p_wxObject(void *x) {
31832 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31833 }
31834 static void *_p_wxShowEventTo_p_wxObject(void *x) {
31835 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
31836 }
31837 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
31838 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
31839 }
31840 static void *_p_wxSliderTo_p_wxObject(void *x) {
31841 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
31842 }
31843 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
31844 return (void *)((wxObject *) ((wxMenuItem *) x));
31845 }
31846 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
31847 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
31848 }
31849 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
31850 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
31851 }
31852 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
31853 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
31854 }
31855 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
31856 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
31857 }
31858 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
31859 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
31860 }
31861 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
31862 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
31863 }
31864 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
31865 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
31866 }
31867 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
31868 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
31869 }
31870 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
31871 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
31872 }
31873 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
31874 return (void *)((wxObject *) ((wxContextHelp *) x));
31875 }
31876 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
31877 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
31878 }
31879 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
31880 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
31881 }
31882 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
31883 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
31884 }
31885 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
31886 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
31887 }
31888 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
31889 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
31890 }
31891 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
31892 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
31893 }
31894 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
31895 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
31896 }
31897 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
31898 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
31899 }
31900 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
31901 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
31902 }
31903 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
31904 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
31905 }
31906 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
31907 return (void *)((wxObject *) ((wxImageHandler *) x));
31908 }
31909 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
31910 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
31911 }
31912 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
31913 return (void *)((wxObject *) ((wxEvtHandler *) x));
31914 }
31915 static void *_p_wxListEventTo_p_wxObject(void *x) {
31916 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
31917 }
31918 static void *_p_wxListBoxTo_p_wxObject(void *x) {
31919 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31920 }
31921 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
31922 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31923 }
31924 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
31925 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
31926 }
31927 static void *_p_wxButtonTo_p_wxObject(void *x) {
31928 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
31929 }
31930 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
31931 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
31932 }
31933 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
31934 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
31935 }
31936 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
31937 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31938 }
31939 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
31940 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
31941 }
31942 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
31943 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
31944 }
31945 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
31946 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
31947 }
31948 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
31949 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
31950 }
31951 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
31952 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
31953 }
31954 static void *_p_wxListItemTo_p_wxObject(void *x) {
31955 return (void *)((wxObject *) ((wxListItem *) x));
31956 }
31957 static void *_p_wxImageTo_p_wxObject(void *x) {
31958 return (void *)((wxObject *) ((wxImage *) x));
31959 }
31960 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
31961 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
31962 }
31963 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
31964 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
31965 }
31966 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
31967 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
31968 }
31969 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
31970 return (void *)((wxObject *) ((wxGenericDragImage *) x));
31971 }
31972 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
31973 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
31974 }
31975 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
31976 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31977 }
31978 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
31979 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31980 }
31981 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
31982 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31983 }
31984 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
31985 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
31986 }
31987 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
31988 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
31989 }
31990 static void *_p_wxWindowTo_p_wxObject(void *x) {
31991 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
31992 }
31993 static void *_p_wxMenuTo_p_wxObject(void *x) {
31994 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
31995 }
31996 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
31997 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
31998 }
31999 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32000 return (void *)((wxObject *) ((wxFileSystem *) x));
32001 }
32002 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32003 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32004 }
32005 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32006 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32007 }
32008 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32009 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32010 }
32011 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32012 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32013 }
32014 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32015 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32016 }
32017 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32018 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32019 }
32020 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
32021 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32022 }
32023 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32024 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32025 }
32026 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32027 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32028 }
32029 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
32030 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
32031 }
32032 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32033 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32034 }
32035 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32036 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32037 }
32038 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32039 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32040 }
32041 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32042 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32043 }
32044 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
32045 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
32046 }
32047 static void *_p_wxToolBarTo_p_wxObject(void *x) {
32048 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32049 }
32050 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32051 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32052 }
32053 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32054 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32055 }
32056 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
32057 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
32058 }
32059 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
32060 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
32061 }
32062 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32063 return (void *)((wxWindow *) ((wxMenuBar *) x));
32064 }
32065 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
32066 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32067 }
32068 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
32069 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
32070 }
32071 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
32072 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
32073 }
32074 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
32075 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
32076 }
32077 static void *_p_wxControlTo_p_wxWindow(void *x) {
32078 return (void *)((wxWindow *) ((wxControl *) x));
32079 }
32080 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
32081 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
32082 }
32083 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
32084 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32085 }
32086 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
32087 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
32088 }
32089 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
32090 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32091 }
32092 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
32093 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
32094 }
32095 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
32096 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
32097 }
32098 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32099 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32100 }
32101 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
32102 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
32103 }
32104 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
32105 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
32106 }
32107 static void *_p_wxListbookTo_p_wxWindow(void *x) {
32108 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32109 }
32110 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
32111 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
32112 }
32113 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
32114 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
32115 }
32116 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
32117 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
32118 }
32119 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
32120 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32121 }
32122 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
32123 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32124 }
32125 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
32126 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32127 }
32128 static void *_p_wxListViewTo_p_wxWindow(void *x) {
32129 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32130 }
32131 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
32132 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32133 }
32134 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
32135 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
32136 }
32137 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
32138 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
32139 }
32140 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
32141 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
32142 }
32143 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
32144 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
32145 }
32146 static void *_p_wxSliderTo_p_wxWindow(void *x) {
32147 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
32148 }
32149 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
32150 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
32151 }
32152 static void *_p_wxButtonTo_p_wxWindow(void *x) {
32153 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
32154 }
32155 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
32156 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
32157 }
32158 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
32159 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32160 }
32161 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
32162 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
32163 }
32164 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
32165 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32166 }
32167 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
32168 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32169 }
32170 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
32171 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
32172 }
32173 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
32174 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
32175 }
32176 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
32177 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
32178 }
32179 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
32180 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
32181 }
32182 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
32183 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
32184 }
32185 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
32186 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32187 }
32188 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
32189 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32190 }
32191 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
32192 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
32193 }
32194 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
32195 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
32196 }
32197 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
32198 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
32199 }
32200 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
32201 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
32202 }
32203 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
32204 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
32205 }
32206 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
32207 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
32208 }
32209 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
32210 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
32211 }
32212 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
32213 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
32214 }
32215 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
32216 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
32217 }
32218 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
32219 return (void *)((wxControlWithItems *) ((wxChoice *) x));
32220 }
32221 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
32222 return (void *)((wxControlWithItems *) ((wxListBox *) x));
32223 }
32224 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
32225 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
32226 }
32227 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
32228 return (void *)((wxValidator *) ((wxPyValidator *) x));
32229 }
32230 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}};
32231 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}};
32232 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}};
32233 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}};
32234 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}};
32235 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}};
32236 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}};
32237 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}};
32238 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}};
32239 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}};
32240 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}};
32241 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}};
32242 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}};
32243 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}};
32244 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}};
32245 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}};
32246 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}};
32247 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}};
32248 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}};
32249 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}};
32250 static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32251 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}};
32252 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}};
32253 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}};
32254 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}};
32255 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}};
32256 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}};
32257 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}};
32258 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}};
32259 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}};
32260 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}};
32261 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}};
32262 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}};
32263 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}};
32264 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}};
32265 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}};
32266 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}};
32267 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}};
32268 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}};
32269 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}};
32270 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}};
32271 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}};
32272 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}};
32273 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}};
32274 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}};
32275 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}};
32276 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}};
32277 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}};
32278 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}};
32279 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}};
32280 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}};
32281 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}};
32282 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}};
32283 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}};
32284 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}};
32285 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}};
32286 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}};
32287 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}};
32288 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}};
32289 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}};
32290 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}};
32291 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}};
32292 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}};
32293 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}};
32294 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}};
32295 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}};
32296 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}};
32297 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}};
32298 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}};
32299 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}};
32300 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}};
32301 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}};
32302 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}};
32303 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}};
32304 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}};
32305 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}};
32306 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}};
32307 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}};
32308 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}};
32309 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32310 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}};
32311 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}};
32312 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}};
32313 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}};
32314 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}};
32315
32316 static swig_type_info *swig_types_initial[] = {
32317 _swigt__p_wxTextUrlEvent,
32318 _swigt__p_wxBookCtrlEvent,
32319 _swigt__p_wxSizer,
32320 _swigt__p_wxCheckBox,
32321 _swigt__p_wxPyTreeCtrl,
32322 _swigt__p_wxEvent,
32323 _swigt__p_wxGenericDirCtrl,
32324 _swigt__p_bool,
32325 _swigt__p_wxPyTreeItemData,
32326 _swigt__p_wxItemContainer,
32327 _swigt__p_wxPyListCtrl,
32328 _swigt__p_wxDirFilterListCtrl,
32329 _swigt__p_wxStaticLine,
32330 _swigt__p_wxControl,
32331 _swigt__p_wxPyControl,
32332 _swigt__p_wxGauge,
32333 _swigt__p_wxToolBarBase,
32334 _swigt__p_wxFont,
32335 _swigt__p_wxToggleButton,
32336 _swigt__p_wxRadioButton,
32337 _swigt__p_wxChoice,
32338 _swigt__p_wxMemoryDC,
32339 _swigt__p_wxListItemAttr,
32340 _swigt__p_void,
32341 _swigt__p_int,
32342 _swigt__p_wxSize,
32343 _swigt__p_wxDC,
32344 _swigt__p_wxListView,
32345 _swigt__p_wxIcon,
32346 _swigt__p_wxVisualAttributes,
32347 _swigt__p_wxTextCtrl,
32348 _swigt__p_wxNotebook,
32349 _swigt__p_wxNotifyEvent,
32350 _swigt__p_wxArrayString,
32351 _swigt__p_wxListbook,
32352 _swigt__p_wxStaticBitmap,
32353 _swigt__p_wxSlider,
32354 _swigt__p_wxStaticBox,
32355 _swigt__p_wxArrayInt,
32356 _swigt__p_wxContextHelp,
32357 _swigt__p_long,
32358 _swigt__p_wxEvtHandler,
32359 _swigt__p_wxListEvent,
32360 _swigt__p_wxCheckListBox,
32361 _swigt__p_wxListBox,
32362 _swigt__p_wxBookCtrl,
32363 _swigt__p_wxSpinButton,
32364 _swigt__p_wxButton,
32365 _swigt__p_wxBitmapButton,
32366 _swigt__p_wxRect,
32367 _swigt__p_wxContextHelpButton,
32368 _swigt__p_wxRadioBox,
32369 _swigt__p_wxScrollBar,
32370 _swigt__p_char,
32371 _swigt__p_wxTreeItemId,
32372 _swigt__p_wxComboBox,
32373 _swigt__p_wxHelpEvent,
32374 _swigt__p_wxListItem,
32375 _swigt__p_wxNotebookSizer,
32376 _swigt__p_wxSpinEvent,
32377 _swigt__p_wxGenericDragImage,
32378 _swigt__p_wxSpinCtrl,
32379 _swigt__p_wxImageList,
32380 _swigt__p_wxHelpProvider,
32381 _swigt__p_wxTextAttr,
32382 _swigt__p_wxSimpleHelpProvider,
32383 _swigt__p_wxPoint,
32384 _swigt__p_wxListbookEvent,
32385 _swigt__p_wxNotebookEvent,
32386 _swigt__p_wxObject,
32387 _swigt__p_wxCursor,
32388 _swigt__p_wxKeyEvent,
32389 _swigt__p_wxWindow,
32390 _swigt__p_wxString,
32391 _swigt__p_wxBitmap,
32392 _swigt__p_wxTreeEvent,
32393 _swigt__p_wxMouseEvent,
32394 _swigt__p_wxCommandEvent,
32395 _swigt__p_wxStaticText,
32396 _swigt__p_wxControlWithItems,
32397 _swigt__p_wxToolBarToolBase,
32398 _swigt__p_wxColour,
32399 _swigt__p_wxToolBar,
32400 _swigt__p_wxBookCtrlSizer,
32401 _swigt__p_wxValidator,
32402 0
32403 };
32404
32405
32406 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
32407
32408 static swig_const_info swig_const_table[] = {
32409 {0}};
32410
32411 #ifdef __cplusplus
32412 }
32413 #endif
32414
32415 #ifdef __cplusplus
32416 extern "C"
32417 #endif
32418 SWIGEXPORT(void) SWIG_init(void) {
32419 static PyObject *SWIG_globals = 0;
32420 static int typeinit = 0;
32421 PyObject *m, *d;
32422 int i;
32423 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
32424 m = Py_InitModule((char *) SWIG_name, SwigMethods);
32425 d = PyModule_GetDict(m);
32426
32427 if (!typeinit) {
32428 for (i = 0; swig_types_initial[i]; i++) {
32429 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
32430 }
32431 typeinit = 1;
32432 }
32433 SWIG_InstallConstants(d,swig_const_table);
32434
32435 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
32436 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
32437 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
32438 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
32439 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
32440 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
32441 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
32442 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
32443 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
32444 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
32445 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
32446 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
32447 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
32448 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
32449 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
32450 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
32451 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
32452 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
32453 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
32454 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
32455 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
32456 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
32457 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
32458 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
32459 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
32460 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
32461 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
32462 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
32463 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
32464 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
32465 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
32466 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
32467 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
32468 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
32469 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
32470 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
32471 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
32472 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
32473 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
32474 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
32475 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
32476 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
32477 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
32478 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
32479 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
32480 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
32481 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
32482 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
32483 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
32484 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
32485 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
32486 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
32487 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
32488 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
32489 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
32490 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
32491 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
32492 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
32493 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
32494 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
32495 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
32496 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
32497 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
32498 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
32499 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
32500 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
32501 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
32502 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
32503 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
32504 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
32505 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
32506 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
32507 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
32508 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
32509 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
32510 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
32511 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
32512 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
32513 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
32514 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
32515 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
32516 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
32517 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
32518 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
32519 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
32520 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
32521 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
32522 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
32523 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
32524 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
32525 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
32526 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
32527 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
32528 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
32529 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
32530 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
32531 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
32532 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
32533 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
32534 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
32535 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
32536 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
32537 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
32538 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
32539 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
32540 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
32541 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
32542 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
32543 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
32544 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
32545 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
32546 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
32547 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
32548 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
32549 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
32550 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
32551 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
32552 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
32553 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
32554 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
32555 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
32556 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
32557 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
32558 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
32559 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
32560 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
32561 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
32562 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
32563 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
32564 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
32565 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
32566 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
32567 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
32568 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
32569 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
32570 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
32571 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
32572 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
32573 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
32574 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
32575 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
32576 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
32577 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
32578 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
32579 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
32580 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
32581 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
32582 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
32583 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
32584 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
32585 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
32586 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
32587 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
32588 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
32589 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
32590 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
32591 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
32592 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
32593 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
32594 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
32595 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
32596 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
32597 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
32598 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
32599 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
32600 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
32601 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
32602 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
32603 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
32604 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
32605 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
32606 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
32607 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
32608 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
32609 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
32610 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
32611 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
32612 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
32613 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
32614 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
32615 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
32616 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
32617 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
32618 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
32619 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
32620 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
32621 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
32622 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
32623 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
32624 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
32625 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
32626 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
32627 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
32628 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
32629 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
32630 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
32631 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
32632 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
32633 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
32634 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
32635 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
32636 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
32637 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
32638 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
32639 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
32640 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
32641 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
32642 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
32643 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
32644 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
32645 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
32646
32647 // Map renamed classes back to their common name for OOR
32648 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
32649
32650 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
32651 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
32652 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
32653 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
32654 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
32655 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
32656 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
32657 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
32658 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
32659 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
32660 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
32661 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
32662 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
32663 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
32664 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
32665 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
32666 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
32667 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
32668 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
32669 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
32670 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
32671 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
32672 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
32673 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
32674 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
32675 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
32676 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
32677 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
32678 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
32679 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
32680 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
32681 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
32682 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
32683 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
32684 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
32685 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
32686 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
32687 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
32688 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
32689 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
32690 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
32691 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
32692 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
32693 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
32694 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
32695 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
32696 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
32697 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
32698 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
32699 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
32700 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
32701 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
32702 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
32703 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
32704 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
32705 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
32706
32707 // Map renamed classes back to their common name for OOR
32708 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
32709 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
32710
32711 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
32712 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
32713 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
32714 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
32715 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
32716 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
32717 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
32718 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
32719 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
32720 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
32721
32722 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
32723
32724 }
32725