]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_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 int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; }
574 int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; }
575 int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; }
576
577 #include <wx/slider.h>
578
579
580 static const wxString wxPySliderNameStr(wxSliderNameStr);
581 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
582
583 #if !wxUSE_TOGGLEBTN
584 // implement dummy items for platforms that don't have this class
585
586 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
587
588 class wxToggleButton : public wxControl
589 {
590 public:
591 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
592 const wxPoint&, const wxSize&, long,
593 const wxValidator&, const wxString&)
594 { wxPyRaiseNotImplemented(); }
595
596 wxToggleButton()
597 { wxPyRaiseNotImplemented(); }
598 };
599 #endif
600
601 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
602
603 SWIGSTATICINLINE(PyObject* )
604 SWIG_FromUnsignedLong(unsigned long value)
605 {
606 return (value > LONG_MAX) ?
607 PyLong_FromUnsignedLong(value)
608 : PyInt_FromLong(swig_numeric_cast(long,value));
609 }
610
611 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
612 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
613 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
614 if (udata) {
615 Py_INCREF(udata->m_obj);
616 return udata->m_obj;
617 } else {
618 Py_INCREF(Py_None);
619 return Py_None;
620 }
621 }
622 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
623 self->SetClientData(new wxPyUserData(clientData));
624 }
625 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){
626 wxPyUserData* udata = NULL;
627 if (clientData && clientData != Py_None)
628 udata = new wxPyUserData(clientData);
629 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
630 shortHelp, longHelp, udata);
631 }
632 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){
633 wxPyUserData* udata = NULL;
634 if (clientData && clientData != Py_None)
635 udata = new wxPyUserData(clientData);
636 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
637 shortHelp, longHelp, udata);
638 }
639 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
640 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
641 if (udata) {
642 Py_INCREF(udata->m_obj);
643 return udata->m_obj;
644 } else {
645 Py_INCREF(Py_None);
646 return Py_None;
647 }
648 }
649 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
650 self->SetToolClientData(id, new wxPyUserData(clientData));
651 }
652
653 #include <wx/listctrl.h>
654
655
656 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
657 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
658 // Python aware sorting function for wxPyListCtrl
659 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
660 int retval = 0;
661 PyObject* func = (PyObject*)funcPtr;
662 bool blocked = wxPyBeginBlockThreads();
663
664 PyObject* args = Py_BuildValue("(ii)", item1, item2);
665 PyObject* result = PyEval_CallObject(func, args);
666 Py_DECREF(args);
667 if (result) {
668 retval = PyInt_AsLong(result);
669 Py_DECREF(result);
670 }
671
672 wxPyEndBlockThreads(blocked);
673 return retval;
674 }
675
676 // C++ Version of a Python aware class
677 class wxPyListCtrl : public wxListCtrl {
678 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
679 public:
680 wxPyListCtrl() : wxListCtrl() {}
681 wxPyListCtrl(wxWindow* parent, wxWindowID id,
682 const wxPoint& pos,
683 const wxSize& size,
684 long style,
685 const wxValidator& validator,
686 const wxString& name) :
687 wxListCtrl(parent, id, pos, size, style, validator, name) {}
688
689 bool Create(wxWindow* parent, wxWindowID id,
690 const wxPoint& pos,
691 const wxSize& size,
692 long style,
693 const wxValidator& validator,
694 const wxString& name) {
695 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
696 }
697
698 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
699 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
700 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
701
702 PYPRIVATE;
703 };
704
705 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
706
707 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
708 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
709 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
710
711 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
712 wxListItem item;
713 item.SetMask( wxLIST_MASK_STATE |
714 wxLIST_MASK_TEXT |
715 wxLIST_MASK_IMAGE |
716 wxLIST_MASK_DATA |
717 wxLIST_SET_ITEM |
718 wxLIST_MASK_WIDTH |
719 wxLIST_MASK_FORMAT
720 );
721 if (self->GetColumn(col, item))
722 return new wxListItem(item);
723 else
724 return NULL;
725 }
726 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
727 wxListItem* info = new wxListItem;
728 info->m_itemId = itemId;
729 info->m_col = col;
730 info->m_mask = 0xFFFF;
731 self->GetItem(*info);
732 return info;
733 }
734 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
735 wxPoint pos;
736 self->GetItemPosition(item, pos);
737 return pos;
738 }
739 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
740 wxRect rect;
741 self->GetItemRect(item, rect, code);
742 return rect;
743 }
744 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
745 if (!PyCallable_Check(func))
746 return False;
747 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
748 }
749 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
750
751
752
753 return (wxWindow*)self->m_mainWin;
754
755 }
756
757 #include <wx/treectrl.h>
758 #include "wx/wxPython/pytree.h"
759
760 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
761 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
762 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
763 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
764 // C++ version of Python aware wxTreeCtrl
765 class wxPyTreeCtrl : public wxTreeCtrl {
766 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
767 public:
768 wxPyTreeCtrl() : wxTreeCtrl() {}
769 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
770 const wxPoint& pos,
771 const wxSize& size,
772 long style,
773 const wxValidator& validator,
774 const wxString& name) :
775 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
776
777 bool Create(wxWindow *parent, wxWindowID id,
778 const wxPoint& pos,
779 const wxSize& size,
780 long style,
781 const wxValidator& validator,
782 const wxString& name) {
783 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
784 }
785
786
787 int OnCompareItems(const wxTreeItemId& item1,
788 const wxTreeItemId& item2) {
789 int rval = 0;
790 bool found;
791 bool blocked = wxPyBeginBlockThreads();
792 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
793 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
794 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
795 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
796 Py_DECREF(o1);
797 Py_DECREF(o2);
798 }
799 wxPyEndBlockThreads(blocked);
800 if (! found)
801 rval = wxTreeCtrl::OnCompareItems(item1, item2);
802 return rval;
803 }
804 PYPRIVATE;
805 };
806
807 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
808
809
810
811 #if UINT_MAX < LONG_MAX
812 #define SWIG_FromUnsignedInt SWIG_FromLong
813 #else
814 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
815 #endif
816
817
818 SWIGSTATICINLINE(unsigned long)
819 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
820 unsigned long max_value)
821 {
822 if (!PyErr_Occurred()) {
823 if (value > max_value) {
824 PyObject *err =
825 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
826 value, type, max_value);
827 PyErr_SetObject(PyExc_OverflowError, err);
828 Py_DECREF(err);
829 }
830 }
831 return value;
832 }
833
834
835 #if UINT_MAX != ULONG_MAX
836 SWIGSTATICINLINE(unsigned int)
837 SWIG_AsUnsignedInt(PyObject *obj)
838 {
839 return swig_numeric_cast(unsigned int,
840 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
841 "unsigned int", UINT_MAX));
842 }
843 #else
844 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
845 #endif
846
847
848 SWIGSTATICINLINE(int)
849 SWIG_CheckUnsignedInt(PyObject* obj)
850 {
851 SWIG_AsUnsignedInt(obj);
852 if (PyErr_Occurred()) {
853 PyErr_Clear();
854 return 0;
855 } else {
856 return 1;
857 }
858 }
859
860 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
861 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
862 if (data == NULL) {
863 data = new wxPyTreeItemData();
864 data->SetId(item); // set the id
865 self->SetItemData(item, data);
866 }
867 return data;
868 }
869 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
870 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
871 if (data == NULL) {
872 data = new wxPyTreeItemData();
873 data->SetId(item); // set the id
874 self->SetItemData(item, data);
875 }
876 return data->GetData();
877 }
878 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
879 data->SetId(item); // set the id
880 self->SetItemData(item, data);
881 }
882 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
883 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
884 if (data == NULL) {
885 data = new wxPyTreeItemData(obj);
886 data->SetId(item); // set the id
887 self->SetItemData(item, data);
888 } else
889 data->SetData(obj);
890 }
891 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
892 bool blocked = wxPyBeginBlockThreads();
893 PyObject* rval = PyList_New(0);
894 wxArrayTreeItemIds array;
895 size_t num, x;
896 num = self->GetSelections(array);
897 for (x=0; x < num; x++) {
898 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
899 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
900 PyList_Append(rval, item);
901 }
902 wxPyEndBlockThreads(blocked);
903 return rval;
904 }
905 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
906 void* cookie = 0;
907 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
908 bool blocked = wxPyBeginBlockThreads();
909 PyObject* tup = PyTuple_New(2);
910 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
911 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
912 wxPyEndBlockThreads(blocked);
913 return tup;
914 }
915 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
916 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
917 bool blocked = wxPyBeginBlockThreads();
918 PyObject* tup = PyTuple_New(2);
919 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
920 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
921 wxPyEndBlockThreads(blocked);
922 return tup;
923 }
924 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
925 wxRect rect;
926 if (self->GetBoundingRect(item, rect, textOnly)) {
927 bool blocked = wxPyBeginBlockThreads();
928 wxRect* r = new wxRect(rect);
929 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
930 wxPyEndBlockThreads(blocked);
931 return val;
932 }
933 else
934 RETURN_NONE();
935 }
936 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
937 // C++ version of Python aware wxControl
938 class wxPyControl : public wxControl
939 {
940 DECLARE_DYNAMIC_CLASS(wxPyControl)
941 public:
942 wxPyControl() : wxControl() {}
943 wxPyControl(wxWindow* parent, const wxWindowID id,
944 const wxPoint& pos = wxDefaultPosition,
945 const wxSize& size = wxDefaultSize,
946 long style = 0,
947 const wxValidator& validator=wxDefaultValidator,
948 const wxString& name = wxPyControlNameStr)
949 : wxControl(parent, id, pos, size, style, validator, name) {}
950
951
952 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
953 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
954 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
955 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
956
957 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
958 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
959 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
960
961 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
962 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
963
964 DEC_PYCALLBACK__(InitDialog);
965 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
966 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
967 DEC_PYCALLBACK_BOOL_(Validate);
968
969 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
970 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
971 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
972
973 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
974 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
975
976 DEC_PYCALLBACK_BOOL_(ShouldInheritColours);
977 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
978
979 PYPRIVATE;
980 };
981
982 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
983
984 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
985 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
986 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
987 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
988
989 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
990 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
991 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
992
993 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
994 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
995
996 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
997 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
998 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
999 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1000
1001 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1002 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1003 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1004
1005 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1006 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1007
1008 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours);
1009 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1010
1011
1012
1013 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1014
1015 #include <wx/generic/dragimgg.h>
1016
1017 #ifdef __cplusplus
1018 extern "C" {
1019 #endif
1020 static int _wrap_ButtonNameStr_set(PyObject *_val) {
1021 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1022 return 1;
1023 }
1024
1025
1026 static PyObject *_wrap_ButtonNameStr_get() {
1027 PyObject *pyobj;
1028
1029 {
1030 #if wxUSE_UNICODE
1031 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1032 #else
1033 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1034 #endif
1035 }
1036 return pyobj;
1037 }
1038
1039
1040 static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
1041 PyObject *resultobj;
1042 wxWindow *arg1 = (wxWindow *) 0 ;
1043 int arg2 ;
1044 wxString *arg3 = 0 ;
1045 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1046 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1047 wxSize const &arg5_defvalue = wxDefaultSize ;
1048 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1049 long arg6 = (long) 0 ;
1050 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1051 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1052 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1053 wxString *arg8 = (wxString *) &arg8_defvalue ;
1054 wxButton *result;
1055 bool temp3 = False ;
1056 wxPoint temp4 ;
1057 wxSize temp5 ;
1058 bool temp8 = False ;
1059 PyObject * obj0 = 0 ;
1060 PyObject * obj1 = 0 ;
1061 PyObject * obj2 = 0 ;
1062 PyObject * obj3 = 0 ;
1063 PyObject * obj4 = 0 ;
1064 PyObject * obj5 = 0 ;
1065 PyObject * obj6 = 0 ;
1066 PyObject * obj7 = 0 ;
1067 char *kwnames[] = {
1068 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1069 };
1070
1071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1074 arg2 = (int) SWIG_AsInt(obj1);
1075 if (PyErr_Occurred()) SWIG_fail;
1076 {
1077 arg3 = wxString_in_helper(obj2);
1078 if (arg3 == NULL) SWIG_fail;
1079 temp3 = True;
1080 }
1081 if (obj3) {
1082 {
1083 arg4 = &temp4;
1084 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1085 }
1086 }
1087 if (obj4) {
1088 {
1089 arg5 = &temp5;
1090 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1091 }
1092 }
1093 if (obj5) {
1094 arg6 = (long) SWIG_AsLong(obj5);
1095 if (PyErr_Occurred()) SWIG_fail;
1096 }
1097 if (obj6) {
1098 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1099 SWIG_POINTER_EXCEPTION | 0)) == -1)
1100 SWIG_fail;
1101 if (arg7 == NULL) {
1102 PyErr_SetString(PyExc_TypeError,"null reference");
1103 SWIG_fail;
1104 }
1105 }
1106 if (obj7) {
1107 {
1108 arg8 = wxString_in_helper(obj7);
1109 if (arg8 == NULL) SWIG_fail;
1110 temp8 = True;
1111 }
1112 }
1113 {
1114 PyThreadState* __tstate = wxPyBeginAllowThreads();
1115 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1116
1117 wxPyEndAllowThreads(__tstate);
1118 if (PyErr_Occurred()) SWIG_fail;
1119 }
1120 {
1121 resultobj = wxPyMake_wxObject(result);
1122 }
1123 {
1124 if (temp3)
1125 delete arg3;
1126 }
1127 {
1128 if (temp8)
1129 delete arg8;
1130 }
1131 return resultobj;
1132 fail:
1133 {
1134 if (temp3)
1135 delete arg3;
1136 }
1137 {
1138 if (temp8)
1139 delete arg8;
1140 }
1141 return NULL;
1142 }
1143
1144
1145 static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1146 PyObject *resultobj;
1147 wxButton *result;
1148 char *kwnames[] = {
1149 NULL
1150 };
1151
1152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1153 {
1154 PyThreadState* __tstate = wxPyBeginAllowThreads();
1155 result = (wxButton *)new wxButton();
1156
1157 wxPyEndAllowThreads(__tstate);
1158 if (PyErr_Occurred()) SWIG_fail;
1159 }
1160 {
1161 resultobj = wxPyMake_wxObject(result);
1162 }
1163 return resultobj;
1164 fail:
1165 return NULL;
1166 }
1167
1168
1169 static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1170 PyObject *resultobj;
1171 wxButton *arg1 = (wxButton *) 0 ;
1172 wxWindow *arg2 = (wxWindow *) 0 ;
1173 int arg3 ;
1174 wxString *arg4 = 0 ;
1175 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1176 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1177 wxSize const &arg6_defvalue = wxDefaultSize ;
1178 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1179 long arg7 = (long) 0 ;
1180 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1181 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1182 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1183 wxString *arg9 = (wxString *) &arg9_defvalue ;
1184 bool result;
1185 bool temp4 = False ;
1186 wxPoint temp5 ;
1187 wxSize temp6 ;
1188 bool temp9 = False ;
1189 PyObject * obj0 = 0 ;
1190 PyObject * obj1 = 0 ;
1191 PyObject * obj2 = 0 ;
1192 PyObject * obj3 = 0 ;
1193 PyObject * obj4 = 0 ;
1194 PyObject * obj5 = 0 ;
1195 PyObject * obj6 = 0 ;
1196 PyObject * obj7 = 0 ;
1197 PyObject * obj8 = 0 ;
1198 char *kwnames[] = {
1199 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1200 };
1201
1202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1205 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1207 arg3 = (int) SWIG_AsInt(obj2);
1208 if (PyErr_Occurred()) SWIG_fail;
1209 {
1210 arg4 = wxString_in_helper(obj3);
1211 if (arg4 == NULL) SWIG_fail;
1212 temp4 = True;
1213 }
1214 if (obj4) {
1215 {
1216 arg5 = &temp5;
1217 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1218 }
1219 }
1220 if (obj5) {
1221 {
1222 arg6 = &temp6;
1223 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1224 }
1225 }
1226 if (obj6) {
1227 arg7 = (long) SWIG_AsLong(obj6);
1228 if (PyErr_Occurred()) SWIG_fail;
1229 }
1230 if (obj7) {
1231 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1232 SWIG_POINTER_EXCEPTION | 0)) == -1)
1233 SWIG_fail;
1234 if (arg8 == NULL) {
1235 PyErr_SetString(PyExc_TypeError,"null reference");
1236 SWIG_fail;
1237 }
1238 }
1239 if (obj8) {
1240 {
1241 arg9 = wxString_in_helper(obj8);
1242 if (arg9 == NULL) SWIG_fail;
1243 temp9 = True;
1244 }
1245 }
1246 {
1247 PyThreadState* __tstate = wxPyBeginAllowThreads();
1248 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1249
1250 wxPyEndAllowThreads(__tstate);
1251 if (PyErr_Occurred()) SWIG_fail;
1252 }
1253 {
1254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1255 }
1256 {
1257 if (temp4)
1258 delete arg4;
1259 }
1260 {
1261 if (temp9)
1262 delete arg9;
1263 }
1264 return resultobj;
1265 fail:
1266 {
1267 if (temp4)
1268 delete arg4;
1269 }
1270 {
1271 if (temp9)
1272 delete arg9;
1273 }
1274 return NULL;
1275 }
1276
1277
1278 static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1279 PyObject *resultobj;
1280 wxButton *arg1 = (wxButton *) 0 ;
1281 PyObject * obj0 = 0 ;
1282 char *kwnames[] = {
1283 (char *) "self", NULL
1284 };
1285
1286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1289 {
1290 PyThreadState* __tstate = wxPyBeginAllowThreads();
1291 (arg1)->SetDefault();
1292
1293 wxPyEndAllowThreads(__tstate);
1294 if (PyErr_Occurred()) SWIG_fail;
1295 }
1296 Py_INCREF(Py_None); resultobj = Py_None;
1297 return resultobj;
1298 fail:
1299 return NULL;
1300 }
1301
1302
1303 static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1304 PyObject *resultobj;
1305 wxSize result;
1306 char *kwnames[] = {
1307 NULL
1308 };
1309
1310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1311 {
1312 PyThreadState* __tstate = wxPyBeginAllowThreads();
1313 result = wxButton::GetDefaultSize();
1314
1315 wxPyEndAllowThreads(__tstate);
1316 if (PyErr_Occurred()) SWIG_fail;
1317 }
1318 {
1319 wxSize * resultptr;
1320 resultptr = new wxSize((wxSize &) result);
1321 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1322 }
1323 return resultobj;
1324 fail:
1325 return NULL;
1326 }
1327
1328
1329 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1330 PyObject *resultobj;
1331 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1332 wxVisualAttributes result;
1333 PyObject * obj0 = 0 ;
1334 char *kwnames[] = {
1335 (char *) "variant", NULL
1336 };
1337
1338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1339 if (obj0) {
1340 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
1341 if (PyErr_Occurred()) SWIG_fail;
1342 }
1343 {
1344 PyThreadState* __tstate = wxPyBeginAllowThreads();
1345 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1346
1347 wxPyEndAllowThreads(__tstate);
1348 if (PyErr_Occurred()) SWIG_fail;
1349 }
1350 {
1351 wxVisualAttributes * resultptr;
1352 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1353 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1354 }
1355 return resultobj;
1356 fail:
1357 return NULL;
1358 }
1359
1360
1361 static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1362 PyObject *obj;
1363 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1364 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1365 Py_INCREF(obj);
1366 return Py_BuildValue((char *)"");
1367 }
1368 static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1369 PyObject *resultobj;
1370 wxWindow *arg1 = (wxWindow *) 0 ;
1371 int arg2 ;
1372 wxBitmap *arg3 = 0 ;
1373 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1374 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1375 wxSize const &arg5_defvalue = wxDefaultSize ;
1376 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1377 long arg6 = (long) wxBU_AUTODRAW ;
1378 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1379 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1380 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1381 wxString *arg8 = (wxString *) &arg8_defvalue ;
1382 wxBitmapButton *result;
1383 wxPoint temp4 ;
1384 wxSize temp5 ;
1385 bool temp8 = False ;
1386 PyObject * obj0 = 0 ;
1387 PyObject * obj1 = 0 ;
1388 PyObject * obj2 = 0 ;
1389 PyObject * obj3 = 0 ;
1390 PyObject * obj4 = 0 ;
1391 PyObject * obj5 = 0 ;
1392 PyObject * obj6 = 0 ;
1393 PyObject * obj7 = 0 ;
1394 char *kwnames[] = {
1395 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1396 };
1397
1398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1401 arg2 = (int) SWIG_AsInt(obj1);
1402 if (PyErr_Occurred()) SWIG_fail;
1403 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1404 SWIG_POINTER_EXCEPTION | 0)) == -1)
1405 SWIG_fail;
1406 if (arg3 == NULL) {
1407 PyErr_SetString(PyExc_TypeError,"null reference");
1408 SWIG_fail;
1409 }
1410 if (obj3) {
1411 {
1412 arg4 = &temp4;
1413 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1414 }
1415 }
1416 if (obj4) {
1417 {
1418 arg5 = &temp5;
1419 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1420 }
1421 }
1422 if (obj5) {
1423 arg6 = (long) SWIG_AsLong(obj5);
1424 if (PyErr_Occurred()) SWIG_fail;
1425 }
1426 if (obj6) {
1427 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1428 SWIG_POINTER_EXCEPTION | 0)) == -1)
1429 SWIG_fail;
1430 if (arg7 == NULL) {
1431 PyErr_SetString(PyExc_TypeError,"null reference");
1432 SWIG_fail;
1433 }
1434 }
1435 if (obj7) {
1436 {
1437 arg8 = wxString_in_helper(obj7);
1438 if (arg8 == NULL) SWIG_fail;
1439 temp8 = True;
1440 }
1441 }
1442 {
1443 PyThreadState* __tstate = wxPyBeginAllowThreads();
1444 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1445
1446 wxPyEndAllowThreads(__tstate);
1447 if (PyErr_Occurred()) SWIG_fail;
1448 }
1449 {
1450 resultobj = wxPyMake_wxObject(result);
1451 }
1452 {
1453 if (temp8)
1454 delete arg8;
1455 }
1456 return resultobj;
1457 fail:
1458 {
1459 if (temp8)
1460 delete arg8;
1461 }
1462 return NULL;
1463 }
1464
1465
1466 static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1467 PyObject *resultobj;
1468 wxBitmapButton *result;
1469 char *kwnames[] = {
1470 NULL
1471 };
1472
1473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1474 {
1475 PyThreadState* __tstate = wxPyBeginAllowThreads();
1476 result = (wxBitmapButton *)new wxBitmapButton();
1477
1478 wxPyEndAllowThreads(__tstate);
1479 if (PyErr_Occurred()) SWIG_fail;
1480 }
1481 {
1482 resultobj = wxPyMake_wxObject(result);
1483 }
1484 return resultobj;
1485 fail:
1486 return NULL;
1487 }
1488
1489
1490 static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1491 PyObject *resultobj;
1492 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1493 wxWindow *arg2 = (wxWindow *) 0 ;
1494 int arg3 ;
1495 wxBitmap *arg4 = 0 ;
1496 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1497 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1498 wxSize const &arg6_defvalue = wxDefaultSize ;
1499 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1500 long arg7 = (long) wxBU_AUTODRAW ;
1501 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1502 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1503 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1504 wxString *arg9 = (wxString *) &arg9_defvalue ;
1505 bool result;
1506 wxPoint temp5 ;
1507 wxSize temp6 ;
1508 bool temp9 = False ;
1509 PyObject * obj0 = 0 ;
1510 PyObject * obj1 = 0 ;
1511 PyObject * obj2 = 0 ;
1512 PyObject * obj3 = 0 ;
1513 PyObject * obj4 = 0 ;
1514 PyObject * obj5 = 0 ;
1515 PyObject * obj6 = 0 ;
1516 PyObject * obj7 = 0 ;
1517 PyObject * obj8 = 0 ;
1518 char *kwnames[] = {
1519 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1520 };
1521
1522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1527 arg3 = (int) SWIG_AsInt(obj2);
1528 if (PyErr_Occurred()) SWIG_fail;
1529 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1530 SWIG_POINTER_EXCEPTION | 0)) == -1)
1531 SWIG_fail;
1532 if (arg4 == NULL) {
1533 PyErr_SetString(PyExc_TypeError,"null reference");
1534 SWIG_fail;
1535 }
1536 if (obj4) {
1537 {
1538 arg5 = &temp5;
1539 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1540 }
1541 }
1542 if (obj5) {
1543 {
1544 arg6 = &temp6;
1545 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1546 }
1547 }
1548 if (obj6) {
1549 arg7 = (long) SWIG_AsLong(obj6);
1550 if (PyErr_Occurred()) SWIG_fail;
1551 }
1552 if (obj7) {
1553 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1554 SWIG_POINTER_EXCEPTION | 0)) == -1)
1555 SWIG_fail;
1556 if (arg8 == NULL) {
1557 PyErr_SetString(PyExc_TypeError,"null reference");
1558 SWIG_fail;
1559 }
1560 }
1561 if (obj8) {
1562 {
1563 arg9 = wxString_in_helper(obj8);
1564 if (arg9 == NULL) SWIG_fail;
1565 temp9 = True;
1566 }
1567 }
1568 {
1569 PyThreadState* __tstate = wxPyBeginAllowThreads();
1570 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1571
1572 wxPyEndAllowThreads(__tstate);
1573 if (PyErr_Occurred()) SWIG_fail;
1574 }
1575 {
1576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1577 }
1578 {
1579 if (temp9)
1580 delete arg9;
1581 }
1582 return resultobj;
1583 fail:
1584 {
1585 if (temp9)
1586 delete arg9;
1587 }
1588 return NULL;
1589 }
1590
1591
1592 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1593 PyObject *resultobj;
1594 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1595 wxBitmap result;
1596 PyObject * obj0 = 0 ;
1597 char *kwnames[] = {
1598 (char *) "self", NULL
1599 };
1600
1601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1604 {
1605 PyThreadState* __tstate = wxPyBeginAllowThreads();
1606 result = (arg1)->GetBitmapLabel();
1607
1608 wxPyEndAllowThreads(__tstate);
1609 if (PyErr_Occurred()) SWIG_fail;
1610 }
1611 {
1612 wxBitmap * resultptr;
1613 resultptr = new wxBitmap((wxBitmap &) result);
1614 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1615 }
1616 return resultobj;
1617 fail:
1618 return NULL;
1619 }
1620
1621
1622 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1623 PyObject *resultobj;
1624 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1625 wxBitmap result;
1626 PyObject * obj0 = 0 ;
1627 char *kwnames[] = {
1628 (char *) "self", NULL
1629 };
1630
1631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1634 {
1635 PyThreadState* __tstate = wxPyBeginAllowThreads();
1636 result = (arg1)->GetBitmapDisabled();
1637
1638 wxPyEndAllowThreads(__tstate);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 }
1641 {
1642 wxBitmap * resultptr;
1643 resultptr = new wxBitmap((wxBitmap &) result);
1644 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1645 }
1646 return resultobj;
1647 fail:
1648 return NULL;
1649 }
1650
1651
1652 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1653 PyObject *resultobj;
1654 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1655 wxBitmap result;
1656 PyObject * obj0 = 0 ;
1657 char *kwnames[] = {
1658 (char *) "self", NULL
1659 };
1660
1661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1664 {
1665 PyThreadState* __tstate = wxPyBeginAllowThreads();
1666 result = (arg1)->GetBitmapFocus();
1667
1668 wxPyEndAllowThreads(__tstate);
1669 if (PyErr_Occurred()) SWIG_fail;
1670 }
1671 {
1672 wxBitmap * resultptr;
1673 resultptr = new wxBitmap((wxBitmap &) result);
1674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1675 }
1676 return resultobj;
1677 fail:
1678 return NULL;
1679 }
1680
1681
1682 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1683 PyObject *resultobj;
1684 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1685 wxBitmap result;
1686 PyObject * obj0 = 0 ;
1687 char *kwnames[] = {
1688 (char *) "self", NULL
1689 };
1690
1691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1694 {
1695 PyThreadState* __tstate = wxPyBeginAllowThreads();
1696 result = (arg1)->GetBitmapSelected();
1697
1698 wxPyEndAllowThreads(__tstate);
1699 if (PyErr_Occurred()) SWIG_fail;
1700 }
1701 {
1702 wxBitmap * resultptr;
1703 resultptr = new wxBitmap((wxBitmap &) result);
1704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1705 }
1706 return resultobj;
1707 fail:
1708 return NULL;
1709 }
1710
1711
1712 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1713 PyObject *resultobj;
1714 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1715 wxBitmap *arg2 = 0 ;
1716 PyObject * obj0 = 0 ;
1717 PyObject * obj1 = 0 ;
1718 char *kwnames[] = {
1719 (char *) "self",(char *) "bitmap", NULL
1720 };
1721
1722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1725 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1726 SWIG_POINTER_EXCEPTION | 0)) == -1)
1727 SWIG_fail;
1728 if (arg2 == NULL) {
1729 PyErr_SetString(PyExc_TypeError,"null reference");
1730 SWIG_fail;
1731 }
1732 {
1733 PyThreadState* __tstate = wxPyBeginAllowThreads();
1734 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1735
1736 wxPyEndAllowThreads(__tstate);
1737 if (PyErr_Occurred()) SWIG_fail;
1738 }
1739 Py_INCREF(Py_None); resultobj = Py_None;
1740 return resultobj;
1741 fail:
1742 return NULL;
1743 }
1744
1745
1746 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1747 PyObject *resultobj;
1748 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1749 wxBitmap *arg2 = 0 ;
1750 PyObject * obj0 = 0 ;
1751 PyObject * obj1 = 0 ;
1752 char *kwnames[] = {
1753 (char *) "self",(char *) "bitmap", NULL
1754 };
1755
1756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1759 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1760 SWIG_POINTER_EXCEPTION | 0)) == -1)
1761 SWIG_fail;
1762 if (arg2 == NULL) {
1763 PyErr_SetString(PyExc_TypeError,"null reference");
1764 SWIG_fail;
1765 }
1766 {
1767 PyThreadState* __tstate = wxPyBeginAllowThreads();
1768 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1769
1770 wxPyEndAllowThreads(__tstate);
1771 if (PyErr_Occurred()) SWIG_fail;
1772 }
1773 Py_INCREF(Py_None); resultobj = Py_None;
1774 return resultobj;
1775 fail:
1776 return NULL;
1777 }
1778
1779
1780 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1781 PyObject *resultobj;
1782 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1783 wxBitmap *arg2 = 0 ;
1784 PyObject * obj0 = 0 ;
1785 PyObject * obj1 = 0 ;
1786 char *kwnames[] = {
1787 (char *) "self",(char *) "bitmap", NULL
1788 };
1789
1790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1793 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1794 SWIG_POINTER_EXCEPTION | 0)) == -1)
1795 SWIG_fail;
1796 if (arg2 == NULL) {
1797 PyErr_SetString(PyExc_TypeError,"null reference");
1798 SWIG_fail;
1799 }
1800 {
1801 PyThreadState* __tstate = wxPyBeginAllowThreads();
1802 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1803
1804 wxPyEndAllowThreads(__tstate);
1805 if (PyErr_Occurred()) SWIG_fail;
1806 }
1807 Py_INCREF(Py_None); resultobj = Py_None;
1808 return resultobj;
1809 fail:
1810 return NULL;
1811 }
1812
1813
1814 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1815 PyObject *resultobj;
1816 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1817 wxBitmap *arg2 = 0 ;
1818 PyObject * obj0 = 0 ;
1819 PyObject * obj1 = 0 ;
1820 char *kwnames[] = {
1821 (char *) "self",(char *) "bitmap", NULL
1822 };
1823
1824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1827 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1828 SWIG_POINTER_EXCEPTION | 0)) == -1)
1829 SWIG_fail;
1830 if (arg2 == NULL) {
1831 PyErr_SetString(PyExc_TypeError,"null reference");
1832 SWIG_fail;
1833 }
1834 {
1835 PyThreadState* __tstate = wxPyBeginAllowThreads();
1836 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1837
1838 wxPyEndAllowThreads(__tstate);
1839 if (PyErr_Occurred()) SWIG_fail;
1840 }
1841 Py_INCREF(Py_None); resultobj = Py_None;
1842 return resultobj;
1843 fail:
1844 return NULL;
1845 }
1846
1847
1848 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1849 PyObject *resultobj;
1850 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1851 int arg2 ;
1852 int arg3 ;
1853 PyObject * obj0 = 0 ;
1854 PyObject * obj1 = 0 ;
1855 PyObject * obj2 = 0 ;
1856 char *kwnames[] = {
1857 (char *) "self",(char *) "x",(char *) "y", NULL
1858 };
1859
1860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1863 arg2 = (int) SWIG_AsInt(obj1);
1864 if (PyErr_Occurred()) SWIG_fail;
1865 arg3 = (int) SWIG_AsInt(obj2);
1866 if (PyErr_Occurred()) SWIG_fail;
1867 {
1868 PyThreadState* __tstate = wxPyBeginAllowThreads();
1869 (arg1)->SetMargins(arg2,arg3);
1870
1871 wxPyEndAllowThreads(__tstate);
1872 if (PyErr_Occurred()) SWIG_fail;
1873 }
1874 Py_INCREF(Py_None); resultobj = Py_None;
1875 return resultobj;
1876 fail:
1877 return NULL;
1878 }
1879
1880
1881 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1882 PyObject *resultobj;
1883 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1884 int result;
1885 PyObject * obj0 = 0 ;
1886 char *kwnames[] = {
1887 (char *) "self", NULL
1888 };
1889
1890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1893 {
1894 PyThreadState* __tstate = wxPyBeginAllowThreads();
1895 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1896
1897 wxPyEndAllowThreads(__tstate);
1898 if (PyErr_Occurred()) SWIG_fail;
1899 }
1900 resultobj = SWIG_FromInt((int)result);
1901 return resultobj;
1902 fail:
1903 return NULL;
1904 }
1905
1906
1907 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1908 PyObject *resultobj;
1909 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1910 int result;
1911 PyObject * obj0 = 0 ;
1912 char *kwnames[] = {
1913 (char *) "self", NULL
1914 };
1915
1916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1919 {
1920 PyThreadState* __tstate = wxPyBeginAllowThreads();
1921 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1922
1923 wxPyEndAllowThreads(__tstate);
1924 if (PyErr_Occurred()) SWIG_fail;
1925 }
1926 resultobj = SWIG_FromInt((int)result);
1927 return resultobj;
1928 fail:
1929 return NULL;
1930 }
1931
1932
1933 static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1934 PyObject *obj;
1935 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1936 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1937 Py_INCREF(obj);
1938 return Py_BuildValue((char *)"");
1939 }
1940 static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1941 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1942 return 1;
1943 }
1944
1945
1946 static PyObject *_wrap_CheckBoxNameStr_get() {
1947 PyObject *pyobj;
1948
1949 {
1950 #if wxUSE_UNICODE
1951 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1952 #else
1953 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1954 #endif
1955 }
1956 return pyobj;
1957 }
1958
1959
1960 static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1961 PyObject *resultobj;
1962 wxWindow *arg1 = (wxWindow *) 0 ;
1963 int arg2 ;
1964 wxString *arg3 = 0 ;
1965 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1966 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1967 wxSize const &arg5_defvalue = wxDefaultSize ;
1968 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1969 long arg6 = (long) 0 ;
1970 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1971 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1972 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1973 wxString *arg8 = (wxString *) &arg8_defvalue ;
1974 wxCheckBox *result;
1975 bool temp3 = False ;
1976 wxPoint temp4 ;
1977 wxSize temp5 ;
1978 bool temp8 = False ;
1979 PyObject * obj0 = 0 ;
1980 PyObject * obj1 = 0 ;
1981 PyObject * obj2 = 0 ;
1982 PyObject * obj3 = 0 ;
1983 PyObject * obj4 = 0 ;
1984 PyObject * obj5 = 0 ;
1985 PyObject * obj6 = 0 ;
1986 PyObject * obj7 = 0 ;
1987 char *kwnames[] = {
1988 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1989 };
1990
1991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1994 arg2 = (int) SWIG_AsInt(obj1);
1995 if (PyErr_Occurred()) SWIG_fail;
1996 {
1997 arg3 = wxString_in_helper(obj2);
1998 if (arg3 == NULL) SWIG_fail;
1999 temp3 = True;
2000 }
2001 if (obj3) {
2002 {
2003 arg4 = &temp4;
2004 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2005 }
2006 }
2007 if (obj4) {
2008 {
2009 arg5 = &temp5;
2010 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2011 }
2012 }
2013 if (obj5) {
2014 arg6 = (long) SWIG_AsLong(obj5);
2015 if (PyErr_Occurred()) SWIG_fail;
2016 }
2017 if (obj6) {
2018 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2019 SWIG_POINTER_EXCEPTION | 0)) == -1)
2020 SWIG_fail;
2021 if (arg7 == NULL) {
2022 PyErr_SetString(PyExc_TypeError,"null reference");
2023 SWIG_fail;
2024 }
2025 }
2026 if (obj7) {
2027 {
2028 arg8 = wxString_in_helper(obj7);
2029 if (arg8 == NULL) SWIG_fail;
2030 temp8 = True;
2031 }
2032 }
2033 {
2034 PyThreadState* __tstate = wxPyBeginAllowThreads();
2035 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2036
2037 wxPyEndAllowThreads(__tstate);
2038 if (PyErr_Occurred()) SWIG_fail;
2039 }
2040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2041 {
2042 if (temp3)
2043 delete arg3;
2044 }
2045 {
2046 if (temp8)
2047 delete arg8;
2048 }
2049 return resultobj;
2050 fail:
2051 {
2052 if (temp3)
2053 delete arg3;
2054 }
2055 {
2056 if (temp8)
2057 delete arg8;
2058 }
2059 return NULL;
2060 }
2061
2062
2063 static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2064 PyObject *resultobj;
2065 wxCheckBox *result;
2066 char *kwnames[] = {
2067 NULL
2068 };
2069
2070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2071 {
2072 PyThreadState* __tstate = wxPyBeginAllowThreads();
2073 result = (wxCheckBox *)new wxCheckBox();
2074
2075 wxPyEndAllowThreads(__tstate);
2076 if (PyErr_Occurred()) SWIG_fail;
2077 }
2078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2079 return resultobj;
2080 fail:
2081 return NULL;
2082 }
2083
2084
2085 static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2086 PyObject *resultobj;
2087 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2088 wxWindow *arg2 = (wxWindow *) 0 ;
2089 int arg3 ;
2090 wxString *arg4 = 0 ;
2091 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2092 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2093 wxSize const &arg6_defvalue = wxDefaultSize ;
2094 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2095 long arg7 = (long) 0 ;
2096 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2097 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2098 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2099 wxString *arg9 = (wxString *) &arg9_defvalue ;
2100 bool result;
2101 bool temp4 = False ;
2102 wxPoint temp5 ;
2103 wxSize temp6 ;
2104 bool temp9 = False ;
2105 PyObject * obj0 = 0 ;
2106 PyObject * obj1 = 0 ;
2107 PyObject * obj2 = 0 ;
2108 PyObject * obj3 = 0 ;
2109 PyObject * obj4 = 0 ;
2110 PyObject * obj5 = 0 ;
2111 PyObject * obj6 = 0 ;
2112 PyObject * obj7 = 0 ;
2113 PyObject * obj8 = 0 ;
2114 char *kwnames[] = {
2115 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2116 };
2117
2118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2123 arg3 = (int) SWIG_AsInt(obj2);
2124 if (PyErr_Occurred()) SWIG_fail;
2125 {
2126 arg4 = wxString_in_helper(obj3);
2127 if (arg4 == NULL) SWIG_fail;
2128 temp4 = True;
2129 }
2130 if (obj4) {
2131 {
2132 arg5 = &temp5;
2133 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2134 }
2135 }
2136 if (obj5) {
2137 {
2138 arg6 = &temp6;
2139 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2140 }
2141 }
2142 if (obj6) {
2143 arg7 = (long) SWIG_AsLong(obj6);
2144 if (PyErr_Occurred()) SWIG_fail;
2145 }
2146 if (obj7) {
2147 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2148 SWIG_POINTER_EXCEPTION | 0)) == -1)
2149 SWIG_fail;
2150 if (arg8 == NULL) {
2151 PyErr_SetString(PyExc_TypeError,"null reference");
2152 SWIG_fail;
2153 }
2154 }
2155 if (obj8) {
2156 {
2157 arg9 = wxString_in_helper(obj8);
2158 if (arg9 == NULL) SWIG_fail;
2159 temp9 = True;
2160 }
2161 }
2162 {
2163 PyThreadState* __tstate = wxPyBeginAllowThreads();
2164 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2165
2166 wxPyEndAllowThreads(__tstate);
2167 if (PyErr_Occurred()) SWIG_fail;
2168 }
2169 {
2170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2171 }
2172 {
2173 if (temp4)
2174 delete arg4;
2175 }
2176 {
2177 if (temp9)
2178 delete arg9;
2179 }
2180 return resultobj;
2181 fail:
2182 {
2183 if (temp4)
2184 delete arg4;
2185 }
2186 {
2187 if (temp9)
2188 delete arg9;
2189 }
2190 return NULL;
2191 }
2192
2193
2194 static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2195 PyObject *resultobj;
2196 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2197 bool result;
2198 PyObject * obj0 = 0 ;
2199 char *kwnames[] = {
2200 (char *) "self", NULL
2201 };
2202
2203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2206 {
2207 PyThreadState* __tstate = wxPyBeginAllowThreads();
2208 result = (bool)(arg1)->GetValue();
2209
2210 wxPyEndAllowThreads(__tstate);
2211 if (PyErr_Occurred()) SWIG_fail;
2212 }
2213 {
2214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2215 }
2216 return resultobj;
2217 fail:
2218 return NULL;
2219 }
2220
2221
2222 static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2223 PyObject *resultobj;
2224 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2225 bool result;
2226 PyObject * obj0 = 0 ;
2227 char *kwnames[] = {
2228 (char *) "self", NULL
2229 };
2230
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2234 {
2235 PyThreadState* __tstate = wxPyBeginAllowThreads();
2236 result = (bool)(arg1)->IsChecked();
2237
2238 wxPyEndAllowThreads(__tstate);
2239 if (PyErr_Occurred()) SWIG_fail;
2240 }
2241 {
2242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2243 }
2244 return resultobj;
2245 fail:
2246 return NULL;
2247 }
2248
2249
2250 static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2251 PyObject *resultobj;
2252 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2253 bool arg2 ;
2254 PyObject * obj0 = 0 ;
2255 PyObject * obj1 = 0 ;
2256 char *kwnames[] = {
2257 (char *) "self",(char *) "state", NULL
2258 };
2259
2260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2263 arg2 = (bool const) SWIG_AsBool(obj1);
2264 if (PyErr_Occurred()) SWIG_fail;
2265 {
2266 PyThreadState* __tstate = wxPyBeginAllowThreads();
2267 (arg1)->SetValue(arg2);
2268
2269 wxPyEndAllowThreads(__tstate);
2270 if (PyErr_Occurred()) SWIG_fail;
2271 }
2272 Py_INCREF(Py_None); resultobj = Py_None;
2273 return resultobj;
2274 fail:
2275 return NULL;
2276 }
2277
2278
2279 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2280 PyObject *resultobj;
2281 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2282 int result;
2283 PyObject * obj0 = 0 ;
2284 char *kwnames[] = {
2285 (char *) "self", NULL
2286 };
2287
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2291 {
2292 PyThreadState* __tstate = wxPyBeginAllowThreads();
2293 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2294
2295 wxPyEndAllowThreads(__tstate);
2296 if (PyErr_Occurred()) SWIG_fail;
2297 }
2298 resultobj = SWIG_FromInt((int)result);
2299 return resultobj;
2300 fail:
2301 return NULL;
2302 }
2303
2304
2305 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2306 PyObject *resultobj;
2307 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2308 int arg2 ;
2309 PyObject * obj0 = 0 ;
2310 PyObject * obj1 = 0 ;
2311 char *kwnames[] = {
2312 (char *) "self",(char *) "state", NULL
2313 };
2314
2315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2318 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2319 if (PyErr_Occurred()) SWIG_fail;
2320 {
2321 PyThreadState* __tstate = wxPyBeginAllowThreads();
2322 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2323
2324 wxPyEndAllowThreads(__tstate);
2325 if (PyErr_Occurred()) SWIG_fail;
2326 }
2327 Py_INCREF(Py_None); resultobj = Py_None;
2328 return resultobj;
2329 fail:
2330 return NULL;
2331 }
2332
2333
2334 static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2335 PyObject *resultobj;
2336 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2337 bool result;
2338 PyObject * obj0 = 0 ;
2339 char *kwnames[] = {
2340 (char *) "self", NULL
2341 };
2342
2343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2346 {
2347 PyThreadState* __tstate = wxPyBeginAllowThreads();
2348 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2349
2350 wxPyEndAllowThreads(__tstate);
2351 if (PyErr_Occurred()) SWIG_fail;
2352 }
2353 {
2354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2355 }
2356 return resultobj;
2357 fail:
2358 return NULL;
2359 }
2360
2361
2362 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2363 PyObject *resultobj;
2364 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2365 bool result;
2366 PyObject * obj0 = 0 ;
2367 char *kwnames[] = {
2368 (char *) "self", NULL
2369 };
2370
2371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2374 {
2375 PyThreadState* __tstate = wxPyBeginAllowThreads();
2376 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2377
2378 wxPyEndAllowThreads(__tstate);
2379 if (PyErr_Occurred()) SWIG_fail;
2380 }
2381 {
2382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2383 }
2384 return resultobj;
2385 fail:
2386 return NULL;
2387 }
2388
2389
2390 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2391 PyObject *resultobj;
2392 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2393 wxVisualAttributes result;
2394 PyObject * obj0 = 0 ;
2395 char *kwnames[] = {
2396 (char *) "variant", NULL
2397 };
2398
2399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2400 if (obj0) {
2401 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2402 if (PyErr_Occurred()) SWIG_fail;
2403 }
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 {
2412 wxVisualAttributes * resultptr;
2413 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2414 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2415 }
2416 return resultobj;
2417 fail:
2418 return NULL;
2419 }
2420
2421
2422 static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2423 PyObject *obj;
2424 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2425 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2426 Py_INCREF(obj);
2427 return Py_BuildValue((char *)"");
2428 }
2429 static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2430 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2431 return 1;
2432 }
2433
2434
2435 static PyObject *_wrap_ChoiceNameStr_get() {
2436 PyObject *pyobj;
2437
2438 {
2439 #if wxUSE_UNICODE
2440 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2441 #else
2442 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2443 #endif
2444 }
2445 return pyobj;
2446 }
2447
2448
2449 static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2450 PyObject *resultobj;
2451 wxWindow *arg1 = (wxWindow *) 0 ;
2452 int arg2 = (int) -1 ;
2453 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2454 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2455 wxSize const &arg4_defvalue = wxDefaultSize ;
2456 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2457 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2458 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2459 long arg6 = (long) 0 ;
2460 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2461 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2462 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2463 wxString *arg8 = (wxString *) &arg8_defvalue ;
2464 wxChoice *result;
2465 wxPoint temp3 ;
2466 wxSize temp4 ;
2467 bool temp5 = False ;
2468 bool temp8 = False ;
2469 PyObject * obj0 = 0 ;
2470 PyObject * obj1 = 0 ;
2471 PyObject * obj2 = 0 ;
2472 PyObject * obj3 = 0 ;
2473 PyObject * obj4 = 0 ;
2474 PyObject * obj5 = 0 ;
2475 PyObject * obj6 = 0 ;
2476 PyObject * obj7 = 0 ;
2477 char *kwnames[] = {
2478 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2479 };
2480
2481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2484 if (obj1) {
2485 arg2 = (int) SWIG_AsInt(obj1);
2486 if (PyErr_Occurred()) SWIG_fail;
2487 }
2488 if (obj2) {
2489 {
2490 arg3 = &temp3;
2491 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2492 }
2493 }
2494 if (obj3) {
2495 {
2496 arg4 = &temp4;
2497 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2498 }
2499 }
2500 if (obj4) {
2501 {
2502 if (! PySequence_Check(obj4)) {
2503 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2504 SWIG_fail;
2505 }
2506 arg5 = new wxArrayString;
2507 temp5 = True;
2508 int i, len=PySequence_Length(obj4);
2509 for (i=0; i<len; i++) {
2510 PyObject* item = PySequence_GetItem(obj4, i);
2511 #if wxUSE_UNICODE
2512 PyObject* str = PyObject_Unicode(item);
2513 #else
2514 PyObject* str = PyObject_Str(item);
2515 #endif
2516 if (PyErr_Occurred()) SWIG_fail;
2517 arg5->Add(Py2wxString(str));
2518 Py_DECREF(item);
2519 Py_DECREF(str);
2520 }
2521 }
2522 }
2523 if (obj5) {
2524 arg6 = (long) SWIG_AsLong(obj5);
2525 if (PyErr_Occurred()) SWIG_fail;
2526 }
2527 if (obj6) {
2528 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2529 SWIG_POINTER_EXCEPTION | 0)) == -1)
2530 SWIG_fail;
2531 if (arg7 == NULL) {
2532 PyErr_SetString(PyExc_TypeError,"null reference");
2533 SWIG_fail;
2534 }
2535 }
2536 if (obj7) {
2537 {
2538 arg8 = wxString_in_helper(obj7);
2539 if (arg8 == NULL) SWIG_fail;
2540 temp8 = True;
2541 }
2542 }
2543 {
2544 PyThreadState* __tstate = wxPyBeginAllowThreads();
2545 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2546
2547 wxPyEndAllowThreads(__tstate);
2548 if (PyErr_Occurred()) SWIG_fail;
2549 }
2550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2551 {
2552 if (temp5) delete arg5;
2553 }
2554 {
2555 if (temp8)
2556 delete arg8;
2557 }
2558 return resultobj;
2559 fail:
2560 {
2561 if (temp5) delete arg5;
2562 }
2563 {
2564 if (temp8)
2565 delete arg8;
2566 }
2567 return NULL;
2568 }
2569
2570
2571 static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2572 PyObject *resultobj;
2573 wxChoice *result;
2574 char *kwnames[] = {
2575 NULL
2576 };
2577
2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2579 {
2580 PyThreadState* __tstate = wxPyBeginAllowThreads();
2581 result = (wxChoice *)new wxChoice();
2582
2583 wxPyEndAllowThreads(__tstate);
2584 if (PyErr_Occurred()) SWIG_fail;
2585 }
2586 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2587 return resultobj;
2588 fail:
2589 return NULL;
2590 }
2591
2592
2593 static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2594 PyObject *resultobj;
2595 wxChoice *arg1 = (wxChoice *) 0 ;
2596 wxWindow *arg2 = (wxWindow *) 0 ;
2597 int arg3 = (int) -1 ;
2598 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2599 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2600 wxSize const &arg5_defvalue = wxDefaultSize ;
2601 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2602 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2603 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2604 long arg7 = (long) 0 ;
2605 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2606 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2607 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2608 wxString *arg9 = (wxString *) &arg9_defvalue ;
2609 bool result;
2610 wxPoint temp4 ;
2611 wxSize temp5 ;
2612 bool temp6 = False ;
2613 bool temp9 = False ;
2614 PyObject * obj0 = 0 ;
2615 PyObject * obj1 = 0 ;
2616 PyObject * obj2 = 0 ;
2617 PyObject * obj3 = 0 ;
2618 PyObject * obj4 = 0 ;
2619 PyObject * obj5 = 0 ;
2620 PyObject * obj6 = 0 ;
2621 PyObject * obj7 = 0 ;
2622 PyObject * obj8 = 0 ;
2623 char *kwnames[] = {
2624 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2625 };
2626
2627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2632 if (obj2) {
2633 arg3 = (int) SWIG_AsInt(obj2);
2634 if (PyErr_Occurred()) SWIG_fail;
2635 }
2636 if (obj3) {
2637 {
2638 arg4 = &temp4;
2639 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2640 }
2641 }
2642 if (obj4) {
2643 {
2644 arg5 = &temp5;
2645 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2646 }
2647 }
2648 if (obj5) {
2649 {
2650 if (! PySequence_Check(obj5)) {
2651 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2652 SWIG_fail;
2653 }
2654 arg6 = new wxArrayString;
2655 temp6 = True;
2656 int i, len=PySequence_Length(obj5);
2657 for (i=0; i<len; i++) {
2658 PyObject* item = PySequence_GetItem(obj5, i);
2659 #if wxUSE_UNICODE
2660 PyObject* str = PyObject_Unicode(item);
2661 #else
2662 PyObject* str = PyObject_Str(item);
2663 #endif
2664 if (PyErr_Occurred()) SWIG_fail;
2665 arg6->Add(Py2wxString(str));
2666 Py_DECREF(item);
2667 Py_DECREF(str);
2668 }
2669 }
2670 }
2671 if (obj6) {
2672 arg7 = (long) SWIG_AsLong(obj6);
2673 if (PyErr_Occurred()) SWIG_fail;
2674 }
2675 if (obj7) {
2676 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2677 SWIG_POINTER_EXCEPTION | 0)) == -1)
2678 SWIG_fail;
2679 if (arg8 == NULL) {
2680 PyErr_SetString(PyExc_TypeError,"null reference");
2681 SWIG_fail;
2682 }
2683 }
2684 if (obj8) {
2685 {
2686 arg9 = wxString_in_helper(obj8);
2687 if (arg9 == NULL) SWIG_fail;
2688 temp9 = True;
2689 }
2690 }
2691 {
2692 PyThreadState* __tstate = wxPyBeginAllowThreads();
2693 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2694
2695 wxPyEndAllowThreads(__tstate);
2696 if (PyErr_Occurred()) SWIG_fail;
2697 }
2698 {
2699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2700 }
2701 {
2702 if (temp6) delete arg6;
2703 }
2704 {
2705 if (temp9)
2706 delete arg9;
2707 }
2708 return resultobj;
2709 fail:
2710 {
2711 if (temp6) delete arg6;
2712 }
2713 {
2714 if (temp9)
2715 delete arg9;
2716 }
2717 return NULL;
2718 }
2719
2720
2721 static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2722 PyObject *resultobj;
2723 wxChoice *arg1 = (wxChoice *) 0 ;
2724 int arg2 ;
2725 PyObject * obj0 = 0 ;
2726 PyObject * obj1 = 0 ;
2727 char *kwnames[] = {
2728 (char *) "self",(char *) "n", NULL
2729 };
2730
2731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2734 arg2 = (int const) SWIG_AsInt(obj1);
2735 if (PyErr_Occurred()) SWIG_fail;
2736 {
2737 PyThreadState* __tstate = wxPyBeginAllowThreads();
2738 (arg1)->SetSelection(arg2);
2739
2740 wxPyEndAllowThreads(__tstate);
2741 if (PyErr_Occurred()) SWIG_fail;
2742 }
2743 Py_INCREF(Py_None); resultobj = Py_None;
2744 return resultobj;
2745 fail:
2746 return NULL;
2747 }
2748
2749
2750 static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2751 PyObject *resultobj;
2752 wxChoice *arg1 = (wxChoice *) 0 ;
2753 wxString *arg2 = 0 ;
2754 bool result;
2755 bool temp2 = False ;
2756 PyObject * obj0 = 0 ;
2757 PyObject * obj1 = 0 ;
2758 char *kwnames[] = {
2759 (char *) "self",(char *) "string", NULL
2760 };
2761
2762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2765 {
2766 arg2 = wxString_in_helper(obj1);
2767 if (arg2 == NULL) SWIG_fail;
2768 temp2 = True;
2769 }
2770 {
2771 PyThreadState* __tstate = wxPyBeginAllowThreads();
2772 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2773
2774 wxPyEndAllowThreads(__tstate);
2775 if (PyErr_Occurred()) SWIG_fail;
2776 }
2777 {
2778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2779 }
2780 {
2781 if (temp2)
2782 delete arg2;
2783 }
2784 return resultobj;
2785 fail:
2786 {
2787 if (temp2)
2788 delete arg2;
2789 }
2790 return NULL;
2791 }
2792
2793
2794 static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2795 PyObject *resultobj;
2796 wxChoice *arg1 = (wxChoice *) 0 ;
2797 int arg2 ;
2798 wxString *arg3 = 0 ;
2799 bool temp3 = False ;
2800 PyObject * obj0 = 0 ;
2801 PyObject * obj1 = 0 ;
2802 PyObject * obj2 = 0 ;
2803 char *kwnames[] = {
2804 (char *) "self",(char *) "n",(char *) "string", NULL
2805 };
2806
2807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2810 arg2 = (int) SWIG_AsInt(obj1);
2811 if (PyErr_Occurred()) SWIG_fail;
2812 {
2813 arg3 = wxString_in_helper(obj2);
2814 if (arg3 == NULL) SWIG_fail;
2815 temp3 = True;
2816 }
2817 {
2818 PyThreadState* __tstate = wxPyBeginAllowThreads();
2819 (arg1)->SetString(arg2,(wxString const &)*arg3);
2820
2821 wxPyEndAllowThreads(__tstate);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 }
2824 Py_INCREF(Py_None); resultobj = Py_None;
2825 {
2826 if (temp3)
2827 delete arg3;
2828 }
2829 return resultobj;
2830 fail:
2831 {
2832 if (temp3)
2833 delete arg3;
2834 }
2835 return NULL;
2836 }
2837
2838
2839 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2840 PyObject *resultobj;
2841 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2842 wxVisualAttributes result;
2843 PyObject * obj0 = 0 ;
2844 char *kwnames[] = {
2845 (char *) "variant", NULL
2846 };
2847
2848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2849 if (obj0) {
2850 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2851 if (PyErr_Occurred()) SWIG_fail;
2852 }
2853 {
2854 PyThreadState* __tstate = wxPyBeginAllowThreads();
2855 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
2856
2857 wxPyEndAllowThreads(__tstate);
2858 if (PyErr_Occurred()) SWIG_fail;
2859 }
2860 {
2861 wxVisualAttributes * resultptr;
2862 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2863 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2864 }
2865 return resultobj;
2866 fail:
2867 return NULL;
2868 }
2869
2870
2871 static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2872 PyObject *obj;
2873 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2874 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2875 Py_INCREF(obj);
2876 return Py_BuildValue((char *)"");
2877 }
2878 static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2879 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2880 return 1;
2881 }
2882
2883
2884 static PyObject *_wrap_ComboBoxNameStr_get() {
2885 PyObject *pyobj;
2886
2887 {
2888 #if wxUSE_UNICODE
2889 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2890 #else
2891 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2892 #endif
2893 }
2894 return pyobj;
2895 }
2896
2897
2898 static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2899 PyObject *resultobj;
2900 wxWindow *arg1 = (wxWindow *) 0 ;
2901 int arg2 = (int) -1 ;
2902 wxString const &arg3_defvalue = wxPyEmptyString ;
2903 wxString *arg3 = (wxString *) &arg3_defvalue ;
2904 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2905 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2906 wxSize const &arg5_defvalue = wxDefaultSize ;
2907 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2908 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2909 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2910 long arg7 = (long) 0 ;
2911 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2912 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2913 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2914 wxString *arg9 = (wxString *) &arg9_defvalue ;
2915 wxComboBox *result;
2916 bool temp3 = False ;
2917 wxPoint temp4 ;
2918 wxSize temp5 ;
2919 bool temp6 = False ;
2920 bool temp9 = False ;
2921 PyObject * obj0 = 0 ;
2922 PyObject * obj1 = 0 ;
2923 PyObject * obj2 = 0 ;
2924 PyObject * obj3 = 0 ;
2925 PyObject * obj4 = 0 ;
2926 PyObject * obj5 = 0 ;
2927 PyObject * obj6 = 0 ;
2928 PyObject * obj7 = 0 ;
2929 PyObject * obj8 = 0 ;
2930 char *kwnames[] = {
2931 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2932 };
2933
2934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2937 if (obj1) {
2938 arg2 = (int) SWIG_AsInt(obj1);
2939 if (PyErr_Occurred()) SWIG_fail;
2940 }
2941 if (obj2) {
2942 {
2943 arg3 = wxString_in_helper(obj2);
2944 if (arg3 == NULL) SWIG_fail;
2945 temp3 = True;
2946 }
2947 }
2948 if (obj3) {
2949 {
2950 arg4 = &temp4;
2951 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2952 }
2953 }
2954 if (obj4) {
2955 {
2956 arg5 = &temp5;
2957 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2958 }
2959 }
2960 if (obj5) {
2961 {
2962 if (! PySequence_Check(obj5)) {
2963 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2964 SWIG_fail;
2965 }
2966 arg6 = new wxArrayString;
2967 temp6 = True;
2968 int i, len=PySequence_Length(obj5);
2969 for (i=0; i<len; i++) {
2970 PyObject* item = PySequence_GetItem(obj5, i);
2971 #if wxUSE_UNICODE
2972 PyObject* str = PyObject_Unicode(item);
2973 #else
2974 PyObject* str = PyObject_Str(item);
2975 #endif
2976 if (PyErr_Occurred()) SWIG_fail;
2977 arg6->Add(Py2wxString(str));
2978 Py_DECREF(item);
2979 Py_DECREF(str);
2980 }
2981 }
2982 }
2983 if (obj6) {
2984 arg7 = (long) SWIG_AsLong(obj6);
2985 if (PyErr_Occurred()) SWIG_fail;
2986 }
2987 if (obj7) {
2988 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2989 SWIG_POINTER_EXCEPTION | 0)) == -1)
2990 SWIG_fail;
2991 if (arg8 == NULL) {
2992 PyErr_SetString(PyExc_TypeError,"null reference");
2993 SWIG_fail;
2994 }
2995 }
2996 if (obj8) {
2997 {
2998 arg9 = wxString_in_helper(obj8);
2999 if (arg9 == NULL) SWIG_fail;
3000 temp9 = True;
3001 }
3002 }
3003 {
3004 PyThreadState* __tstate = wxPyBeginAllowThreads();
3005 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);
3006
3007 wxPyEndAllowThreads(__tstate);
3008 if (PyErr_Occurred()) SWIG_fail;
3009 }
3010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3011 {
3012 if (temp3)
3013 delete arg3;
3014 }
3015 {
3016 if (temp6) delete arg6;
3017 }
3018 {
3019 if (temp9)
3020 delete arg9;
3021 }
3022 return resultobj;
3023 fail:
3024 {
3025 if (temp3)
3026 delete arg3;
3027 }
3028 {
3029 if (temp6) delete arg6;
3030 }
3031 {
3032 if (temp9)
3033 delete arg9;
3034 }
3035 return NULL;
3036 }
3037
3038
3039 static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3040 PyObject *resultobj;
3041 wxComboBox *result;
3042 char *kwnames[] = {
3043 NULL
3044 };
3045
3046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3047 {
3048 PyThreadState* __tstate = wxPyBeginAllowThreads();
3049 result = (wxComboBox *)new wxComboBox();
3050
3051 wxPyEndAllowThreads(__tstate);
3052 if (PyErr_Occurred()) SWIG_fail;
3053 }
3054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3055 return resultobj;
3056 fail:
3057 return NULL;
3058 }
3059
3060
3061 static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3062 PyObject *resultobj;
3063 wxComboBox *arg1 = (wxComboBox *) 0 ;
3064 wxWindow *arg2 = (wxWindow *) 0 ;
3065 int arg3 = (int) -1 ;
3066 wxString const &arg4_defvalue = wxPyEmptyString ;
3067 wxString *arg4 = (wxString *) &arg4_defvalue ;
3068 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3069 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3070 wxSize const &arg6_defvalue = wxDefaultSize ;
3071 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3072 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3073 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3074 long arg8 = (long) 0 ;
3075 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3076 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3077 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3078 wxString *arg10 = (wxString *) &arg10_defvalue ;
3079 bool result;
3080 bool temp4 = False ;
3081 wxPoint temp5 ;
3082 wxSize temp6 ;
3083 bool temp7 = False ;
3084 bool temp10 = False ;
3085 PyObject * obj0 = 0 ;
3086 PyObject * obj1 = 0 ;
3087 PyObject * obj2 = 0 ;
3088 PyObject * obj3 = 0 ;
3089 PyObject * obj4 = 0 ;
3090 PyObject * obj5 = 0 ;
3091 PyObject * obj6 = 0 ;
3092 PyObject * obj7 = 0 ;
3093 PyObject * obj8 = 0 ;
3094 PyObject * obj9 = 0 ;
3095 char *kwnames[] = {
3096 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3097 };
3098
3099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3104 if (obj2) {
3105 arg3 = (int) SWIG_AsInt(obj2);
3106 if (PyErr_Occurred()) SWIG_fail;
3107 }
3108 if (obj3) {
3109 {
3110 arg4 = wxString_in_helper(obj3);
3111 if (arg4 == NULL) SWIG_fail;
3112 temp4 = True;
3113 }
3114 }
3115 if (obj4) {
3116 {
3117 arg5 = &temp5;
3118 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3119 }
3120 }
3121 if (obj5) {
3122 {
3123 arg6 = &temp6;
3124 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3125 }
3126 }
3127 if (obj6) {
3128 {
3129 if (! PySequence_Check(obj6)) {
3130 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3131 SWIG_fail;
3132 }
3133 arg7 = new wxArrayString;
3134 temp7 = True;
3135 int i, len=PySequence_Length(obj6);
3136 for (i=0; i<len; i++) {
3137 PyObject* item = PySequence_GetItem(obj6, i);
3138 #if wxUSE_UNICODE
3139 PyObject* str = PyObject_Unicode(item);
3140 #else
3141 PyObject* str = PyObject_Str(item);
3142 #endif
3143 if (PyErr_Occurred()) SWIG_fail;
3144 arg7->Add(Py2wxString(str));
3145 Py_DECREF(item);
3146 Py_DECREF(str);
3147 }
3148 }
3149 }
3150 if (obj7) {
3151 arg8 = (long) SWIG_AsLong(obj7);
3152 if (PyErr_Occurred()) SWIG_fail;
3153 }
3154 if (obj8) {
3155 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3156 SWIG_POINTER_EXCEPTION | 0)) == -1)
3157 SWIG_fail;
3158 if (arg9 == NULL) {
3159 PyErr_SetString(PyExc_TypeError,"null reference");
3160 SWIG_fail;
3161 }
3162 }
3163 if (obj9) {
3164 {
3165 arg10 = wxString_in_helper(obj9);
3166 if (arg10 == NULL) SWIG_fail;
3167 temp10 = True;
3168 }
3169 }
3170 {
3171 PyThreadState* __tstate = wxPyBeginAllowThreads();
3172 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);
3173
3174 wxPyEndAllowThreads(__tstate);
3175 if (PyErr_Occurred()) SWIG_fail;
3176 }
3177 {
3178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3179 }
3180 {
3181 if (temp4)
3182 delete arg4;
3183 }
3184 {
3185 if (temp7) delete arg7;
3186 }
3187 {
3188 if (temp10)
3189 delete arg10;
3190 }
3191 return resultobj;
3192 fail:
3193 {
3194 if (temp4)
3195 delete arg4;
3196 }
3197 {
3198 if (temp7) delete arg7;
3199 }
3200 {
3201 if (temp10)
3202 delete arg10;
3203 }
3204 return NULL;
3205 }
3206
3207
3208 static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3209 PyObject *resultobj;
3210 wxComboBox *arg1 = (wxComboBox *) 0 ;
3211 wxString result;
3212 PyObject * obj0 = 0 ;
3213 char *kwnames[] = {
3214 (char *) "self", NULL
3215 };
3216
3217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3220 {
3221 PyThreadState* __tstate = wxPyBeginAllowThreads();
3222 result = ((wxComboBox const *)arg1)->GetValue();
3223
3224 wxPyEndAllowThreads(__tstate);
3225 if (PyErr_Occurred()) SWIG_fail;
3226 }
3227 {
3228 #if wxUSE_UNICODE
3229 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3230 #else
3231 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3232 #endif
3233 }
3234 return resultobj;
3235 fail:
3236 return NULL;
3237 }
3238
3239
3240 static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3241 PyObject *resultobj;
3242 wxComboBox *arg1 = (wxComboBox *) 0 ;
3243 wxString *arg2 = 0 ;
3244 bool temp2 = False ;
3245 PyObject * obj0 = 0 ;
3246 PyObject * obj1 = 0 ;
3247 char *kwnames[] = {
3248 (char *) "self",(char *) "value", NULL
3249 };
3250
3251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3254 {
3255 arg2 = wxString_in_helper(obj1);
3256 if (arg2 == NULL) SWIG_fail;
3257 temp2 = True;
3258 }
3259 {
3260 PyThreadState* __tstate = wxPyBeginAllowThreads();
3261 (arg1)->SetValue((wxString const &)*arg2);
3262
3263 wxPyEndAllowThreads(__tstate);
3264 if (PyErr_Occurred()) SWIG_fail;
3265 }
3266 Py_INCREF(Py_None); resultobj = Py_None;
3267 {
3268 if (temp2)
3269 delete arg2;
3270 }
3271 return resultobj;
3272 fail:
3273 {
3274 if (temp2)
3275 delete arg2;
3276 }
3277 return NULL;
3278 }
3279
3280
3281 static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3282 PyObject *resultobj;
3283 wxComboBox *arg1 = (wxComboBox *) 0 ;
3284 PyObject * obj0 = 0 ;
3285 char *kwnames[] = {
3286 (char *) "self", NULL
3287 };
3288
3289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3292 {
3293 PyThreadState* __tstate = wxPyBeginAllowThreads();
3294 (arg1)->Copy();
3295
3296 wxPyEndAllowThreads(__tstate);
3297 if (PyErr_Occurred()) SWIG_fail;
3298 }
3299 Py_INCREF(Py_None); resultobj = Py_None;
3300 return resultobj;
3301 fail:
3302 return NULL;
3303 }
3304
3305
3306 static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3307 PyObject *resultobj;
3308 wxComboBox *arg1 = (wxComboBox *) 0 ;
3309 PyObject * obj0 = 0 ;
3310 char *kwnames[] = {
3311 (char *) "self", NULL
3312 };
3313
3314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3317 {
3318 PyThreadState* __tstate = wxPyBeginAllowThreads();
3319 (arg1)->Cut();
3320
3321 wxPyEndAllowThreads(__tstate);
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
3324 Py_INCREF(Py_None); resultobj = Py_None;
3325 return resultobj;
3326 fail:
3327 return NULL;
3328 }
3329
3330
3331 static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3332 PyObject *resultobj;
3333 wxComboBox *arg1 = (wxComboBox *) 0 ;
3334 PyObject * obj0 = 0 ;
3335 char *kwnames[] = {
3336 (char *) "self", NULL
3337 };
3338
3339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3342 {
3343 PyThreadState* __tstate = wxPyBeginAllowThreads();
3344 (arg1)->Paste();
3345
3346 wxPyEndAllowThreads(__tstate);
3347 if (PyErr_Occurred()) SWIG_fail;
3348 }
3349 Py_INCREF(Py_None); resultobj = Py_None;
3350 return resultobj;
3351 fail:
3352 return NULL;
3353 }
3354
3355
3356 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3357 PyObject *resultobj;
3358 wxComboBox *arg1 = (wxComboBox *) 0 ;
3359 long arg2 ;
3360 PyObject * obj0 = 0 ;
3361 PyObject * obj1 = 0 ;
3362 char *kwnames[] = {
3363 (char *) "self",(char *) "pos", NULL
3364 };
3365
3366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3369 arg2 = (long) SWIG_AsLong(obj1);
3370 if (PyErr_Occurred()) SWIG_fail;
3371 {
3372 PyThreadState* __tstate = wxPyBeginAllowThreads();
3373 (arg1)->SetInsertionPoint(arg2);
3374
3375 wxPyEndAllowThreads(__tstate);
3376 if (PyErr_Occurred()) SWIG_fail;
3377 }
3378 Py_INCREF(Py_None); resultobj = Py_None;
3379 return resultobj;
3380 fail:
3381 return NULL;
3382 }
3383
3384
3385 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3386 PyObject *resultobj;
3387 wxComboBox *arg1 = (wxComboBox *) 0 ;
3388 long result;
3389 PyObject * obj0 = 0 ;
3390 char *kwnames[] = {
3391 (char *) "self", NULL
3392 };
3393
3394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3397 {
3398 PyThreadState* __tstate = wxPyBeginAllowThreads();
3399 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3400
3401 wxPyEndAllowThreads(__tstate);
3402 if (PyErr_Occurred()) SWIG_fail;
3403 }
3404 resultobj = SWIG_FromLong((long)result);
3405 return resultobj;
3406 fail:
3407 return NULL;
3408 }
3409
3410
3411 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3412 PyObject *resultobj;
3413 wxComboBox *arg1 = (wxComboBox *) 0 ;
3414 long result;
3415 PyObject * obj0 = 0 ;
3416 char *kwnames[] = {
3417 (char *) "self", NULL
3418 };
3419
3420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3423 {
3424 PyThreadState* __tstate = wxPyBeginAllowThreads();
3425 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3426
3427 wxPyEndAllowThreads(__tstate);
3428 if (PyErr_Occurred()) SWIG_fail;
3429 }
3430 resultobj = SWIG_FromLong((long)result);
3431 return resultobj;
3432 fail:
3433 return NULL;
3434 }
3435
3436
3437 static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3438 PyObject *resultobj;
3439 wxComboBox *arg1 = (wxComboBox *) 0 ;
3440 long arg2 ;
3441 long arg3 ;
3442 wxString *arg4 = 0 ;
3443 bool temp4 = False ;
3444 PyObject * obj0 = 0 ;
3445 PyObject * obj1 = 0 ;
3446 PyObject * obj2 = 0 ;
3447 PyObject * obj3 = 0 ;
3448 char *kwnames[] = {
3449 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3450 };
3451
3452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3455 arg2 = (long) SWIG_AsLong(obj1);
3456 if (PyErr_Occurred()) SWIG_fail;
3457 arg3 = (long) SWIG_AsLong(obj2);
3458 if (PyErr_Occurred()) SWIG_fail;
3459 {
3460 arg4 = wxString_in_helper(obj3);
3461 if (arg4 == NULL) SWIG_fail;
3462 temp4 = True;
3463 }
3464 {
3465 PyThreadState* __tstate = wxPyBeginAllowThreads();
3466 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3467
3468 wxPyEndAllowThreads(__tstate);
3469 if (PyErr_Occurred()) SWIG_fail;
3470 }
3471 Py_INCREF(Py_None); resultobj = Py_None;
3472 {
3473 if (temp4)
3474 delete arg4;
3475 }
3476 return resultobj;
3477 fail:
3478 {
3479 if (temp4)
3480 delete arg4;
3481 }
3482 return NULL;
3483 }
3484
3485
3486 static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3487 PyObject *resultobj;
3488 wxComboBox *arg1 = (wxComboBox *) 0 ;
3489 int arg2 ;
3490 PyObject * obj0 = 0 ;
3491 PyObject * obj1 = 0 ;
3492 char *kwnames[] = {
3493 (char *) "self",(char *) "n", NULL
3494 };
3495
3496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3499 arg2 = (int) SWIG_AsInt(obj1);
3500 if (PyErr_Occurred()) SWIG_fail;
3501 {
3502 PyThreadState* __tstate = wxPyBeginAllowThreads();
3503 (arg1)->SetSelection(arg2);
3504
3505 wxPyEndAllowThreads(__tstate);
3506 if (PyErr_Occurred()) SWIG_fail;
3507 }
3508 Py_INCREF(Py_None); resultobj = Py_None;
3509 return resultobj;
3510 fail:
3511 return NULL;
3512 }
3513
3514
3515 static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3516 PyObject *resultobj;
3517 wxComboBox *arg1 = (wxComboBox *) 0 ;
3518 long arg2 ;
3519 long arg3 ;
3520 PyObject * obj0 = 0 ;
3521 PyObject * obj1 = 0 ;
3522 PyObject * obj2 = 0 ;
3523 char *kwnames[] = {
3524 (char *) "self",(char *) "from",(char *) "to", NULL
3525 };
3526
3527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3530 arg2 = (long) SWIG_AsLong(obj1);
3531 if (PyErr_Occurred()) SWIG_fail;
3532 arg3 = (long) SWIG_AsLong(obj2);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 {
3535 PyThreadState* __tstate = wxPyBeginAllowThreads();
3536 (arg1)->SetSelection(arg2,arg3);
3537
3538 wxPyEndAllowThreads(__tstate);
3539 if (PyErr_Occurred()) SWIG_fail;
3540 }
3541 Py_INCREF(Py_None); resultobj = Py_None;
3542 return resultobj;
3543 fail:
3544 return NULL;
3545 }
3546
3547
3548 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3549 PyObject *resultobj;
3550 wxComboBox *arg1 = (wxComboBox *) 0 ;
3551 wxString *arg2 = 0 ;
3552 bool result;
3553 bool temp2 = False ;
3554 PyObject * obj0 = 0 ;
3555 PyObject * obj1 = 0 ;
3556 char *kwnames[] = {
3557 (char *) "self",(char *) "string", NULL
3558 };
3559
3560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3563 {
3564 arg2 = wxString_in_helper(obj1);
3565 if (arg2 == NULL) SWIG_fail;
3566 temp2 = True;
3567 }
3568 {
3569 PyThreadState* __tstate = wxPyBeginAllowThreads();
3570 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3571
3572 wxPyEndAllowThreads(__tstate);
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
3575 {
3576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3577 }
3578 {
3579 if (temp2)
3580 delete arg2;
3581 }
3582 return resultobj;
3583 fail:
3584 {
3585 if (temp2)
3586 delete arg2;
3587 }
3588 return NULL;
3589 }
3590
3591
3592 static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3593 PyObject *resultobj;
3594 wxComboBox *arg1 = (wxComboBox *) 0 ;
3595 int arg2 ;
3596 wxString *arg3 = 0 ;
3597 bool temp3 = False ;
3598 PyObject * obj0 = 0 ;
3599 PyObject * obj1 = 0 ;
3600 PyObject * obj2 = 0 ;
3601 char *kwnames[] = {
3602 (char *) "self",(char *) "n",(char *) "string", NULL
3603 };
3604
3605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3608 arg2 = (int) SWIG_AsInt(obj1);
3609 if (PyErr_Occurred()) SWIG_fail;
3610 {
3611 arg3 = wxString_in_helper(obj2);
3612 if (arg3 == NULL) SWIG_fail;
3613 temp3 = True;
3614 }
3615 {
3616 PyThreadState* __tstate = wxPyBeginAllowThreads();
3617 (arg1)->SetString(arg2,(wxString const &)*arg3);
3618
3619 wxPyEndAllowThreads(__tstate);
3620 if (PyErr_Occurred()) SWIG_fail;
3621 }
3622 Py_INCREF(Py_None); resultobj = Py_None;
3623 {
3624 if (temp3)
3625 delete arg3;
3626 }
3627 return resultobj;
3628 fail:
3629 {
3630 if (temp3)
3631 delete arg3;
3632 }
3633 return NULL;
3634 }
3635
3636
3637 static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3638 PyObject *resultobj;
3639 wxComboBox *arg1 = (wxComboBox *) 0 ;
3640 bool arg2 ;
3641 PyObject * obj0 = 0 ;
3642 PyObject * obj1 = 0 ;
3643 char *kwnames[] = {
3644 (char *) "self",(char *) "editable", NULL
3645 };
3646
3647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3650 arg2 = (bool) SWIG_AsBool(obj1);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 {
3653 PyThreadState* __tstate = wxPyBeginAllowThreads();
3654 (arg1)->SetEditable(arg2);
3655
3656 wxPyEndAllowThreads(__tstate);
3657 if (PyErr_Occurred()) SWIG_fail;
3658 }
3659 Py_INCREF(Py_None); resultobj = Py_None;
3660 return resultobj;
3661 fail:
3662 return NULL;
3663 }
3664
3665
3666 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3667 PyObject *resultobj;
3668 wxComboBox *arg1 = (wxComboBox *) 0 ;
3669 PyObject * obj0 = 0 ;
3670 char *kwnames[] = {
3671 (char *) "self", NULL
3672 };
3673
3674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3677 {
3678 PyThreadState* __tstate = wxPyBeginAllowThreads();
3679 (arg1)->SetInsertionPointEnd();
3680
3681 wxPyEndAllowThreads(__tstate);
3682 if (PyErr_Occurred()) SWIG_fail;
3683 }
3684 Py_INCREF(Py_None); resultobj = Py_None;
3685 return resultobj;
3686 fail:
3687 return NULL;
3688 }
3689
3690
3691 static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3692 PyObject *resultobj;
3693 wxComboBox *arg1 = (wxComboBox *) 0 ;
3694 long arg2 ;
3695 long arg3 ;
3696 PyObject * obj0 = 0 ;
3697 PyObject * obj1 = 0 ;
3698 PyObject * obj2 = 0 ;
3699 char *kwnames[] = {
3700 (char *) "self",(char *) "from",(char *) "to", NULL
3701 };
3702
3703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3706 arg2 = (long) SWIG_AsLong(obj1);
3707 if (PyErr_Occurred()) SWIG_fail;
3708 arg3 = (long) SWIG_AsLong(obj2);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 {
3711 PyThreadState* __tstate = wxPyBeginAllowThreads();
3712 (arg1)->Remove(arg2,arg3);
3713
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 Py_INCREF(Py_None); resultobj = Py_None;
3718 return resultobj;
3719 fail:
3720 return NULL;
3721 }
3722
3723
3724 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj;
3726 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3727 wxVisualAttributes result;
3728 PyObject * obj0 = 0 ;
3729 char *kwnames[] = {
3730 (char *) "variant", NULL
3731 };
3732
3733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3734 if (obj0) {
3735 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
3736 if (PyErr_Occurred()) SWIG_fail;
3737 }
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 {
3746 wxVisualAttributes * resultptr;
3747 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3748 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3749 }
3750 return resultobj;
3751 fail:
3752 return NULL;
3753 }
3754
3755
3756 static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3757 PyObject *obj;
3758 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3759 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3760 Py_INCREF(obj);
3761 return Py_BuildValue((char *)"");
3762 }
3763 static int _wrap_GaugeNameStr_set(PyObject *_val) {
3764 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3765 return 1;
3766 }
3767
3768
3769 static PyObject *_wrap_GaugeNameStr_get() {
3770 PyObject *pyobj;
3771
3772 {
3773 #if wxUSE_UNICODE
3774 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3775 #else
3776 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3777 #endif
3778 }
3779 return pyobj;
3780 }
3781
3782
3783 static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3784 PyObject *resultobj;
3785 wxWindow *arg1 = (wxWindow *) 0 ;
3786 int arg2 ;
3787 int arg3 ;
3788 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3789 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3790 wxSize const &arg5_defvalue = wxDefaultSize ;
3791 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3792 long arg6 = (long) wxGA_HORIZONTAL ;
3793 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3794 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3795 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3796 wxString *arg8 = (wxString *) &arg8_defvalue ;
3797 wxGauge *result;
3798 wxPoint temp4 ;
3799 wxSize temp5 ;
3800 bool temp8 = False ;
3801 PyObject * obj0 = 0 ;
3802 PyObject * obj1 = 0 ;
3803 PyObject * obj2 = 0 ;
3804 PyObject * obj3 = 0 ;
3805 PyObject * obj4 = 0 ;
3806 PyObject * obj5 = 0 ;
3807 PyObject * obj6 = 0 ;
3808 PyObject * obj7 = 0 ;
3809 char *kwnames[] = {
3810 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3811 };
3812
3813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3816 arg2 = (int) SWIG_AsInt(obj1);
3817 if (PyErr_Occurred()) SWIG_fail;
3818 arg3 = (int) SWIG_AsInt(obj2);
3819 if (PyErr_Occurred()) SWIG_fail;
3820 if (obj3) {
3821 {
3822 arg4 = &temp4;
3823 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3824 }
3825 }
3826 if (obj4) {
3827 {
3828 arg5 = &temp5;
3829 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3830 }
3831 }
3832 if (obj5) {
3833 arg6 = (long) SWIG_AsLong(obj5);
3834 if (PyErr_Occurred()) SWIG_fail;
3835 }
3836 if (obj6) {
3837 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3838 SWIG_POINTER_EXCEPTION | 0)) == -1)
3839 SWIG_fail;
3840 if (arg7 == NULL) {
3841 PyErr_SetString(PyExc_TypeError,"null reference");
3842 SWIG_fail;
3843 }
3844 }
3845 if (obj7) {
3846 {
3847 arg8 = wxString_in_helper(obj7);
3848 if (arg8 == NULL) SWIG_fail;
3849 temp8 = True;
3850 }
3851 }
3852 {
3853 PyThreadState* __tstate = wxPyBeginAllowThreads();
3854 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3855
3856 wxPyEndAllowThreads(__tstate);
3857 if (PyErr_Occurred()) SWIG_fail;
3858 }
3859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3860 {
3861 if (temp8)
3862 delete arg8;
3863 }
3864 return resultobj;
3865 fail:
3866 {
3867 if (temp8)
3868 delete arg8;
3869 }
3870 return NULL;
3871 }
3872
3873
3874 static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject *resultobj;
3876 wxGauge *result;
3877 char *kwnames[] = {
3878 NULL
3879 };
3880
3881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3882 {
3883 PyThreadState* __tstate = wxPyBeginAllowThreads();
3884 result = (wxGauge *)new wxGauge();
3885
3886 wxPyEndAllowThreads(__tstate);
3887 if (PyErr_Occurred()) SWIG_fail;
3888 }
3889 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3890 return resultobj;
3891 fail:
3892 return NULL;
3893 }
3894
3895
3896 static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3897 PyObject *resultobj;
3898 wxGauge *arg1 = (wxGauge *) 0 ;
3899 wxWindow *arg2 = (wxWindow *) 0 ;
3900 int arg3 ;
3901 int arg4 ;
3902 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3903 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3904 wxSize const &arg6_defvalue = wxDefaultSize ;
3905 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3906 long arg7 = (long) wxGA_HORIZONTAL ;
3907 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3908 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3909 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3910 wxString *arg9 = (wxString *) &arg9_defvalue ;
3911 bool result;
3912 wxPoint temp5 ;
3913 wxSize temp6 ;
3914 bool temp9 = False ;
3915 PyObject * obj0 = 0 ;
3916 PyObject * obj1 = 0 ;
3917 PyObject * obj2 = 0 ;
3918 PyObject * obj3 = 0 ;
3919 PyObject * obj4 = 0 ;
3920 PyObject * obj5 = 0 ;
3921 PyObject * obj6 = 0 ;
3922 PyObject * obj7 = 0 ;
3923 PyObject * obj8 = 0 ;
3924 char *kwnames[] = {
3925 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3926 };
3927
3928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3931 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3933 arg3 = (int) SWIG_AsInt(obj2);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 arg4 = (int) SWIG_AsInt(obj3);
3936 if (PyErr_Occurred()) SWIG_fail;
3937 if (obj4) {
3938 {
3939 arg5 = &temp5;
3940 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3941 }
3942 }
3943 if (obj5) {
3944 {
3945 arg6 = &temp6;
3946 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3947 }
3948 }
3949 if (obj6) {
3950 arg7 = (long) SWIG_AsLong(obj6);
3951 if (PyErr_Occurred()) SWIG_fail;
3952 }
3953 if (obj7) {
3954 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3955 SWIG_POINTER_EXCEPTION | 0)) == -1)
3956 SWIG_fail;
3957 if (arg8 == NULL) {
3958 PyErr_SetString(PyExc_TypeError,"null reference");
3959 SWIG_fail;
3960 }
3961 }
3962 if (obj8) {
3963 {
3964 arg9 = wxString_in_helper(obj8);
3965 if (arg9 == NULL) SWIG_fail;
3966 temp9 = True;
3967 }
3968 }
3969 {
3970 PyThreadState* __tstate = wxPyBeginAllowThreads();
3971 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3972
3973 wxPyEndAllowThreads(__tstate);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
3976 {
3977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3978 }
3979 {
3980 if (temp9)
3981 delete arg9;
3982 }
3983 return resultobj;
3984 fail:
3985 {
3986 if (temp9)
3987 delete arg9;
3988 }
3989 return NULL;
3990 }
3991
3992
3993 static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3994 PyObject *resultobj;
3995 wxGauge *arg1 = (wxGauge *) 0 ;
3996 int arg2 ;
3997 PyObject * obj0 = 0 ;
3998 PyObject * obj1 = 0 ;
3999 char *kwnames[] = {
4000 (char *) "self",(char *) "range", NULL
4001 };
4002
4003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4006 arg2 = (int) SWIG_AsInt(obj1);
4007 if (PyErr_Occurred()) SWIG_fail;
4008 {
4009 PyThreadState* __tstate = wxPyBeginAllowThreads();
4010 (arg1)->SetRange(arg2);
4011
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 Py_INCREF(Py_None); resultobj = Py_None;
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj;
4024 wxGauge *arg1 = (wxGauge *) 0 ;
4025 int result;
4026 PyObject * obj0 = 0 ;
4027 char *kwnames[] = {
4028 (char *) "self", NULL
4029 };
4030
4031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4034 {
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = (int)((wxGauge const *)arg1)->GetRange();
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 resultobj = SWIG_FromInt((int)result);
4042 return resultobj;
4043 fail:
4044 return NULL;
4045 }
4046
4047
4048 static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4049 PyObject *resultobj;
4050 wxGauge *arg1 = (wxGauge *) 0 ;
4051 int arg2 ;
4052 PyObject * obj0 = 0 ;
4053 PyObject * obj1 = 0 ;
4054 char *kwnames[] = {
4055 (char *) "self",(char *) "pos", NULL
4056 };
4057
4058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4061 arg2 = (int) SWIG_AsInt(obj1);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 {
4064 PyThreadState* __tstate = wxPyBeginAllowThreads();
4065 (arg1)->SetValue(arg2);
4066
4067 wxPyEndAllowThreads(__tstate);
4068 if (PyErr_Occurred()) SWIG_fail;
4069 }
4070 Py_INCREF(Py_None); resultobj = Py_None;
4071 return resultobj;
4072 fail:
4073 return NULL;
4074 }
4075
4076
4077 static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4078 PyObject *resultobj;
4079 wxGauge *arg1 = (wxGauge *) 0 ;
4080 int result;
4081 PyObject * obj0 = 0 ;
4082 char *kwnames[] = {
4083 (char *) "self", NULL
4084 };
4085
4086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 result = (int)((wxGauge const *)arg1)->GetValue();
4092
4093 wxPyEndAllowThreads(__tstate);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 }
4096 resultobj = SWIG_FromInt((int)result);
4097 return resultobj;
4098 fail:
4099 return NULL;
4100 }
4101
4102
4103 static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4104 PyObject *resultobj;
4105 wxGauge *arg1 = (wxGauge *) 0 ;
4106 bool result;
4107 PyObject * obj0 = 0 ;
4108 char *kwnames[] = {
4109 (char *) "self", NULL
4110 };
4111
4112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4115 {
4116 PyThreadState* __tstate = wxPyBeginAllowThreads();
4117 result = (bool)((wxGauge const *)arg1)->IsVertical();
4118
4119 wxPyEndAllowThreads(__tstate);
4120 if (PyErr_Occurred()) SWIG_fail;
4121 }
4122 {
4123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4124 }
4125 return resultobj;
4126 fail:
4127 return NULL;
4128 }
4129
4130
4131 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4132 PyObject *resultobj;
4133 wxGauge *arg1 = (wxGauge *) 0 ;
4134 int arg2 ;
4135 PyObject * obj0 = 0 ;
4136 PyObject * obj1 = 0 ;
4137 char *kwnames[] = {
4138 (char *) "self",(char *) "w", NULL
4139 };
4140
4141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4144 arg2 = (int) SWIG_AsInt(obj1);
4145 if (PyErr_Occurred()) SWIG_fail;
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 (arg1)->SetShadowWidth(arg2);
4149
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 Py_INCREF(Py_None); resultobj = Py_None;
4154 return resultobj;
4155 fail:
4156 return NULL;
4157 }
4158
4159
4160 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4161 PyObject *resultobj;
4162 wxGauge *arg1 = (wxGauge *) 0 ;
4163 int result;
4164 PyObject * obj0 = 0 ;
4165 char *kwnames[] = {
4166 (char *) "self", NULL
4167 };
4168
4169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4172 {
4173 PyThreadState* __tstate = wxPyBeginAllowThreads();
4174 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4175
4176 wxPyEndAllowThreads(__tstate);
4177 if (PyErr_Occurred()) SWIG_fail;
4178 }
4179 resultobj = SWIG_FromInt((int)result);
4180 return resultobj;
4181 fail:
4182 return NULL;
4183 }
4184
4185
4186 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4187 PyObject *resultobj;
4188 wxGauge *arg1 = (wxGauge *) 0 ;
4189 int arg2 ;
4190 PyObject * obj0 = 0 ;
4191 PyObject * obj1 = 0 ;
4192 char *kwnames[] = {
4193 (char *) "self",(char *) "w", NULL
4194 };
4195
4196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4199 arg2 = (int) SWIG_AsInt(obj1);
4200 if (PyErr_Occurred()) SWIG_fail;
4201 {
4202 PyThreadState* __tstate = wxPyBeginAllowThreads();
4203 (arg1)->SetBezelFace(arg2);
4204
4205 wxPyEndAllowThreads(__tstate);
4206 if (PyErr_Occurred()) SWIG_fail;
4207 }
4208 Py_INCREF(Py_None); resultobj = Py_None;
4209 return resultobj;
4210 fail:
4211 return NULL;
4212 }
4213
4214
4215 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4216 PyObject *resultobj;
4217 wxGauge *arg1 = (wxGauge *) 0 ;
4218 int result;
4219 PyObject * obj0 = 0 ;
4220 char *kwnames[] = {
4221 (char *) "self", NULL
4222 };
4223
4224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4230
4231 wxPyEndAllowThreads(__tstate);
4232 if (PyErr_Occurred()) SWIG_fail;
4233 }
4234 resultobj = SWIG_FromInt((int)result);
4235 return resultobj;
4236 fail:
4237 return NULL;
4238 }
4239
4240
4241 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4242 PyObject *resultobj;
4243 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4244 wxVisualAttributes result;
4245 PyObject * obj0 = 0 ;
4246 char *kwnames[] = {
4247 (char *) "variant", NULL
4248 };
4249
4250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4251 if (obj0) {
4252 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 {
4256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4257 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4258
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 {
4263 wxVisualAttributes * resultptr;
4264 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4265 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4266 }
4267 return resultobj;
4268 fail:
4269 return NULL;
4270 }
4271
4272
4273 static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
4274 PyObject *obj;
4275 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4276 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4277 Py_INCREF(obj);
4278 return Py_BuildValue((char *)"");
4279 }
4280 static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
4281 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4282 return 1;
4283 }
4284
4285
4286 static PyObject *_wrap_StaticBitmapNameStr_get() {
4287 PyObject *pyobj;
4288
4289 {
4290 #if wxUSE_UNICODE
4291 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4292 #else
4293 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4294 #endif
4295 }
4296 return pyobj;
4297 }
4298
4299
4300 static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
4301 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4302 return 1;
4303 }
4304
4305
4306 static PyObject *_wrap_StaticBoxNameStr_get() {
4307 PyObject *pyobj;
4308
4309 {
4310 #if wxUSE_UNICODE
4311 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4312 #else
4313 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4314 #endif
4315 }
4316 return pyobj;
4317 }
4318
4319
4320 static int _wrap_StaticTextNameStr_set(PyObject *_val) {
4321 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4322 return 1;
4323 }
4324
4325
4326 static PyObject *_wrap_StaticTextNameStr_get() {
4327 PyObject *pyobj;
4328
4329 {
4330 #if wxUSE_UNICODE
4331 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4332 #else
4333 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4334 #endif
4335 }
4336 return pyobj;
4337 }
4338
4339
4340 static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj;
4342 wxWindow *arg1 = (wxWindow *) 0 ;
4343 int arg2 ;
4344 wxString *arg3 = 0 ;
4345 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4346 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4347 wxSize const &arg5_defvalue = wxDefaultSize ;
4348 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4349 long arg6 = (long) 0 ;
4350 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4351 wxString *arg7 = (wxString *) &arg7_defvalue ;
4352 wxStaticBox *result;
4353 bool temp3 = False ;
4354 wxPoint temp4 ;
4355 wxSize temp5 ;
4356 bool temp7 = False ;
4357 PyObject * obj0 = 0 ;
4358 PyObject * obj1 = 0 ;
4359 PyObject * obj2 = 0 ;
4360 PyObject * obj3 = 0 ;
4361 PyObject * obj4 = 0 ;
4362 PyObject * obj5 = 0 ;
4363 PyObject * obj6 = 0 ;
4364 char *kwnames[] = {
4365 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4366 };
4367
4368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4371 arg2 = (int) SWIG_AsInt(obj1);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 {
4374 arg3 = wxString_in_helper(obj2);
4375 if (arg3 == NULL) SWIG_fail;
4376 temp3 = True;
4377 }
4378 if (obj3) {
4379 {
4380 arg4 = &temp4;
4381 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4382 }
4383 }
4384 if (obj4) {
4385 {
4386 arg5 = &temp5;
4387 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4388 }
4389 }
4390 if (obj5) {
4391 arg6 = (long) SWIG_AsLong(obj5);
4392 if (PyErr_Occurred()) SWIG_fail;
4393 }
4394 if (obj6) {
4395 {
4396 arg7 = wxString_in_helper(obj6);
4397 if (arg7 == NULL) SWIG_fail;
4398 temp7 = True;
4399 }
4400 }
4401 {
4402 PyThreadState* __tstate = wxPyBeginAllowThreads();
4403 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4404
4405 wxPyEndAllowThreads(__tstate);
4406 if (PyErr_Occurred()) SWIG_fail;
4407 }
4408 {
4409 resultobj = wxPyMake_wxObject(result);
4410 }
4411 {
4412 if (temp3)
4413 delete arg3;
4414 }
4415 {
4416 if (temp7)
4417 delete arg7;
4418 }
4419 return resultobj;
4420 fail:
4421 {
4422 if (temp3)
4423 delete arg3;
4424 }
4425 {
4426 if (temp7)
4427 delete arg7;
4428 }
4429 return NULL;
4430 }
4431
4432
4433 static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4434 PyObject *resultobj;
4435 wxStaticBox *result;
4436 char *kwnames[] = {
4437 NULL
4438 };
4439
4440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4441 {
4442 PyThreadState* __tstate = wxPyBeginAllowThreads();
4443 result = (wxStaticBox *)new wxStaticBox();
4444
4445 wxPyEndAllowThreads(__tstate);
4446 if (PyErr_Occurred()) SWIG_fail;
4447 }
4448 {
4449 resultobj = wxPyMake_wxObject(result);
4450 }
4451 return resultobj;
4452 fail:
4453 return NULL;
4454 }
4455
4456
4457 static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4458 PyObject *resultobj;
4459 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4460 wxWindow *arg2 = (wxWindow *) 0 ;
4461 int arg3 ;
4462 wxString *arg4 = 0 ;
4463 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4464 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4465 wxSize const &arg6_defvalue = wxDefaultSize ;
4466 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4467 long arg7 = (long) 0 ;
4468 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4469 wxString *arg8 = (wxString *) &arg8_defvalue ;
4470 bool result;
4471 bool temp4 = False ;
4472 wxPoint temp5 ;
4473 wxSize temp6 ;
4474 bool temp8 = False ;
4475 PyObject * obj0 = 0 ;
4476 PyObject * obj1 = 0 ;
4477 PyObject * obj2 = 0 ;
4478 PyObject * obj3 = 0 ;
4479 PyObject * obj4 = 0 ;
4480 PyObject * obj5 = 0 ;
4481 PyObject * obj6 = 0 ;
4482 PyObject * obj7 = 0 ;
4483 char *kwnames[] = {
4484 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4485 };
4486
4487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4492 arg3 = (int) SWIG_AsInt(obj2);
4493 if (PyErr_Occurred()) SWIG_fail;
4494 {
4495 arg4 = wxString_in_helper(obj3);
4496 if (arg4 == NULL) SWIG_fail;
4497 temp4 = True;
4498 }
4499 if (obj4) {
4500 {
4501 arg5 = &temp5;
4502 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4503 }
4504 }
4505 if (obj5) {
4506 {
4507 arg6 = &temp6;
4508 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4509 }
4510 }
4511 if (obj6) {
4512 arg7 = (long) SWIG_AsLong(obj6);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 }
4515 if (obj7) {
4516 {
4517 arg8 = wxString_in_helper(obj7);
4518 if (arg8 == NULL) SWIG_fail;
4519 temp8 = True;
4520 }
4521 }
4522 {
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4525
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 {
4530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4531 }
4532 {
4533 if (temp4)
4534 delete arg4;
4535 }
4536 {
4537 if (temp8)
4538 delete arg8;
4539 }
4540 return resultobj;
4541 fail:
4542 {
4543 if (temp4)
4544 delete arg4;
4545 }
4546 {
4547 if (temp8)
4548 delete arg8;
4549 }
4550 return NULL;
4551 }
4552
4553
4554 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4555 PyObject *resultobj;
4556 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4557 wxVisualAttributes result;
4558 PyObject * obj0 = 0 ;
4559 char *kwnames[] = {
4560 (char *) "variant", NULL
4561 };
4562
4563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4564 if (obj0) {
4565 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4566 if (PyErr_Occurred()) SWIG_fail;
4567 }
4568 {
4569 PyThreadState* __tstate = wxPyBeginAllowThreads();
4570 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4571
4572 wxPyEndAllowThreads(__tstate);
4573 if (PyErr_Occurred()) SWIG_fail;
4574 }
4575 {
4576 wxVisualAttributes * resultptr;
4577 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4578 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4579 }
4580 return resultobj;
4581 fail:
4582 return NULL;
4583 }
4584
4585
4586 static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4587 PyObject *obj;
4588 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4589 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4590 Py_INCREF(obj);
4591 return Py_BuildValue((char *)"");
4592 }
4593 static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4594 PyObject *resultobj;
4595 wxWindow *arg1 = (wxWindow *) 0 ;
4596 int arg2 ;
4597 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4598 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4599 wxSize const &arg4_defvalue = wxDefaultSize ;
4600 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4601 long arg5 = (long) wxLI_HORIZONTAL ;
4602 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4603 wxString *arg6 = (wxString *) &arg6_defvalue ;
4604 wxStaticLine *result;
4605 wxPoint temp3 ;
4606 wxSize temp4 ;
4607 bool temp6 = False ;
4608 PyObject * obj0 = 0 ;
4609 PyObject * obj1 = 0 ;
4610 PyObject * obj2 = 0 ;
4611 PyObject * obj3 = 0 ;
4612 PyObject * obj4 = 0 ;
4613 PyObject * obj5 = 0 ;
4614 char *kwnames[] = {
4615 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4616 };
4617
4618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4621 arg2 = (int) SWIG_AsInt(obj1);
4622 if (PyErr_Occurred()) SWIG_fail;
4623 if (obj2) {
4624 {
4625 arg3 = &temp3;
4626 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4627 }
4628 }
4629 if (obj3) {
4630 {
4631 arg4 = &temp4;
4632 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4633 }
4634 }
4635 if (obj4) {
4636 arg5 = (long) SWIG_AsLong(obj4);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 if (obj5) {
4640 {
4641 arg6 = wxString_in_helper(obj5);
4642 if (arg6 == NULL) SWIG_fail;
4643 temp6 = True;
4644 }
4645 }
4646 {
4647 PyThreadState* __tstate = wxPyBeginAllowThreads();
4648 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4649
4650 wxPyEndAllowThreads(__tstate);
4651 if (PyErr_Occurred()) SWIG_fail;
4652 }
4653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4654 {
4655 if (temp6)
4656 delete arg6;
4657 }
4658 return resultobj;
4659 fail:
4660 {
4661 if (temp6)
4662 delete arg6;
4663 }
4664 return NULL;
4665 }
4666
4667
4668 static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4669 PyObject *resultobj;
4670 wxStaticLine *result;
4671 char *kwnames[] = {
4672 NULL
4673 };
4674
4675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4676 {
4677 PyThreadState* __tstate = wxPyBeginAllowThreads();
4678 result = (wxStaticLine *)new wxStaticLine();
4679
4680 wxPyEndAllowThreads(__tstate);
4681 if (PyErr_Occurred()) SWIG_fail;
4682 }
4683 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4684 return resultobj;
4685 fail:
4686 return NULL;
4687 }
4688
4689
4690 static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4691 PyObject *resultobj;
4692 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4693 wxWindow *arg2 = (wxWindow *) 0 ;
4694 int arg3 ;
4695 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4696 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4697 wxSize const &arg5_defvalue = wxDefaultSize ;
4698 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4699 long arg6 = (long) wxLI_HORIZONTAL ;
4700 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4701 wxString *arg7 = (wxString *) &arg7_defvalue ;
4702 bool result;
4703 wxPoint temp4 ;
4704 wxSize temp5 ;
4705 bool temp7 = False ;
4706 PyObject * obj0 = 0 ;
4707 PyObject * obj1 = 0 ;
4708 PyObject * obj2 = 0 ;
4709 PyObject * obj3 = 0 ;
4710 PyObject * obj4 = 0 ;
4711 PyObject * obj5 = 0 ;
4712 PyObject * obj6 = 0 ;
4713 char *kwnames[] = {
4714 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4715 };
4716
4717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4720 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4722 arg3 = (int) SWIG_AsInt(obj2);
4723 if (PyErr_Occurred()) SWIG_fail;
4724 if (obj3) {
4725 {
4726 arg4 = &temp4;
4727 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4728 }
4729 }
4730 if (obj4) {
4731 {
4732 arg5 = &temp5;
4733 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4734 }
4735 }
4736 if (obj5) {
4737 arg6 = (long) SWIG_AsLong(obj5);
4738 if (PyErr_Occurred()) SWIG_fail;
4739 }
4740 if (obj6) {
4741 {
4742 arg7 = wxString_in_helper(obj6);
4743 if (arg7 == NULL) SWIG_fail;
4744 temp7 = True;
4745 }
4746 }
4747 {
4748 PyThreadState* __tstate = wxPyBeginAllowThreads();
4749 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4750
4751 wxPyEndAllowThreads(__tstate);
4752 if (PyErr_Occurred()) SWIG_fail;
4753 }
4754 {
4755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4756 }
4757 {
4758 if (temp7)
4759 delete arg7;
4760 }
4761 return resultobj;
4762 fail:
4763 {
4764 if (temp7)
4765 delete arg7;
4766 }
4767 return NULL;
4768 }
4769
4770
4771 static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4772 PyObject *resultobj;
4773 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4774 bool result;
4775 PyObject * obj0 = 0 ;
4776 char *kwnames[] = {
4777 (char *) "self", NULL
4778 };
4779
4780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4783 {
4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
4785 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4786
4787 wxPyEndAllowThreads(__tstate);
4788 if (PyErr_Occurred()) SWIG_fail;
4789 }
4790 {
4791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4792 }
4793 return resultobj;
4794 fail:
4795 return NULL;
4796 }
4797
4798
4799 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4800 PyObject *resultobj;
4801 int result;
4802 char *kwnames[] = {
4803 NULL
4804 };
4805
4806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (int)wxStaticLine::GetDefaultSize();
4810
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 resultobj = SWIG_FromInt((int)result);
4815 return resultobj;
4816 fail:
4817 return NULL;
4818 }
4819
4820
4821 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4822 PyObject *resultobj;
4823 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4824 wxVisualAttributes result;
4825 PyObject * obj0 = 0 ;
4826 char *kwnames[] = {
4827 (char *) "variant", NULL
4828 };
4829
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4831 if (obj0) {
4832 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 {
4836 PyThreadState* __tstate = wxPyBeginAllowThreads();
4837 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
4838
4839 wxPyEndAllowThreads(__tstate);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 }
4842 {
4843 wxVisualAttributes * resultptr;
4844 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4845 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4846 }
4847 return resultobj;
4848 fail:
4849 return NULL;
4850 }
4851
4852
4853 static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4854 PyObject *obj;
4855 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4856 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4857 Py_INCREF(obj);
4858 return Py_BuildValue((char *)"");
4859 }
4860 static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4861 PyObject *resultobj;
4862 wxWindow *arg1 = (wxWindow *) 0 ;
4863 int arg2 ;
4864 wxString *arg3 = 0 ;
4865 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4866 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4867 wxSize const &arg5_defvalue = wxDefaultSize ;
4868 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4869 long arg6 = (long) 0 ;
4870 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4871 wxString *arg7 = (wxString *) &arg7_defvalue ;
4872 wxStaticText *result;
4873 bool temp3 = False ;
4874 wxPoint temp4 ;
4875 wxSize temp5 ;
4876 bool temp7 = False ;
4877 PyObject * obj0 = 0 ;
4878 PyObject * obj1 = 0 ;
4879 PyObject * obj2 = 0 ;
4880 PyObject * obj3 = 0 ;
4881 PyObject * obj4 = 0 ;
4882 PyObject * obj5 = 0 ;
4883 PyObject * obj6 = 0 ;
4884 char *kwnames[] = {
4885 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4886 };
4887
4888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4891 arg2 = (int) SWIG_AsInt(obj1);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 {
4894 arg3 = wxString_in_helper(obj2);
4895 if (arg3 == NULL) SWIG_fail;
4896 temp3 = True;
4897 }
4898 if (obj3) {
4899 {
4900 arg4 = &temp4;
4901 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4902 }
4903 }
4904 if (obj4) {
4905 {
4906 arg5 = &temp5;
4907 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4908 }
4909 }
4910 if (obj5) {
4911 arg6 = (long) SWIG_AsLong(obj5);
4912 if (PyErr_Occurred()) SWIG_fail;
4913 }
4914 if (obj6) {
4915 {
4916 arg7 = wxString_in_helper(obj6);
4917 if (arg7 == NULL) SWIG_fail;
4918 temp7 = True;
4919 }
4920 }
4921 {
4922 PyThreadState* __tstate = wxPyBeginAllowThreads();
4923 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4924
4925 wxPyEndAllowThreads(__tstate);
4926 if (PyErr_Occurred()) SWIG_fail;
4927 }
4928 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4929 {
4930 if (temp3)
4931 delete arg3;
4932 }
4933 {
4934 if (temp7)
4935 delete arg7;
4936 }
4937 return resultobj;
4938 fail:
4939 {
4940 if (temp3)
4941 delete arg3;
4942 }
4943 {
4944 if (temp7)
4945 delete arg7;
4946 }
4947 return NULL;
4948 }
4949
4950
4951 static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4952 PyObject *resultobj;
4953 wxStaticText *result;
4954 char *kwnames[] = {
4955 NULL
4956 };
4957
4958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4959 {
4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
4961 result = (wxStaticText *)new wxStaticText();
4962
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4967 return resultobj;
4968 fail:
4969 return NULL;
4970 }
4971
4972
4973 static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4974 PyObject *resultobj;
4975 wxStaticText *arg1 = (wxStaticText *) 0 ;
4976 wxWindow *arg2 = (wxWindow *) 0 ;
4977 int arg3 ;
4978 wxString *arg4 = 0 ;
4979 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4980 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4981 wxSize const &arg6_defvalue = wxDefaultSize ;
4982 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4983 long arg7 = (long) 0 ;
4984 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4985 wxString *arg8 = (wxString *) &arg8_defvalue ;
4986 bool result;
4987 bool temp4 = False ;
4988 wxPoint temp5 ;
4989 wxSize temp6 ;
4990 bool temp8 = False ;
4991 PyObject * obj0 = 0 ;
4992 PyObject * obj1 = 0 ;
4993 PyObject * obj2 = 0 ;
4994 PyObject * obj3 = 0 ;
4995 PyObject * obj4 = 0 ;
4996 PyObject * obj5 = 0 ;
4997 PyObject * obj6 = 0 ;
4998 PyObject * obj7 = 0 ;
4999 char *kwnames[] = {
5000 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5001 };
5002
5003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5008 arg3 = (int) SWIG_AsInt(obj2);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 {
5011 arg4 = wxString_in_helper(obj3);
5012 if (arg4 == NULL) SWIG_fail;
5013 temp4 = True;
5014 }
5015 if (obj4) {
5016 {
5017 arg5 = &temp5;
5018 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5019 }
5020 }
5021 if (obj5) {
5022 {
5023 arg6 = &temp6;
5024 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5025 }
5026 }
5027 if (obj6) {
5028 arg7 = (long) SWIG_AsLong(obj6);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 }
5031 if (obj7) {
5032 {
5033 arg8 = wxString_in_helper(obj7);
5034 if (arg8 == NULL) SWIG_fail;
5035 temp8 = True;
5036 }
5037 }
5038 {
5039 PyThreadState* __tstate = wxPyBeginAllowThreads();
5040 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5041
5042 wxPyEndAllowThreads(__tstate);
5043 if (PyErr_Occurred()) SWIG_fail;
5044 }
5045 {
5046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5047 }
5048 {
5049 if (temp4)
5050 delete arg4;
5051 }
5052 {
5053 if (temp8)
5054 delete arg8;
5055 }
5056 return resultobj;
5057 fail:
5058 {
5059 if (temp4)
5060 delete arg4;
5061 }
5062 {
5063 if (temp8)
5064 delete arg8;
5065 }
5066 return NULL;
5067 }
5068
5069
5070 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5071 PyObject *resultobj;
5072 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5073 wxVisualAttributes result;
5074 PyObject * obj0 = 0 ;
5075 char *kwnames[] = {
5076 (char *) "variant", NULL
5077 };
5078
5079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5080 if (obj0) {
5081 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 {
5085 PyThreadState* __tstate = wxPyBeginAllowThreads();
5086 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5087
5088 wxPyEndAllowThreads(__tstate);
5089 if (PyErr_Occurred()) SWIG_fail;
5090 }
5091 {
5092 wxVisualAttributes * resultptr;
5093 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5094 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5095 }
5096 return resultobj;
5097 fail:
5098 return NULL;
5099 }
5100
5101
5102 static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
5103 PyObject *obj;
5104 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5105 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5106 Py_INCREF(obj);
5107 return Py_BuildValue((char *)"");
5108 }
5109 static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5110 PyObject *resultobj;
5111 wxWindow *arg1 = (wxWindow *) 0 ;
5112 int arg2 ;
5113 wxBitmap *arg3 = 0 ;
5114 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5115 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5116 wxSize const &arg5_defvalue = wxDefaultSize ;
5117 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5118 long arg6 = (long) 0 ;
5119 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5120 wxString *arg7 = (wxString *) &arg7_defvalue ;
5121 wxStaticBitmap *result;
5122 wxPoint temp4 ;
5123 wxSize temp5 ;
5124 bool temp7 = False ;
5125 PyObject * obj0 = 0 ;
5126 PyObject * obj1 = 0 ;
5127 PyObject * obj2 = 0 ;
5128 PyObject * obj3 = 0 ;
5129 PyObject * obj4 = 0 ;
5130 PyObject * obj5 = 0 ;
5131 PyObject * obj6 = 0 ;
5132 char *kwnames[] = {
5133 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5134 };
5135
5136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5139 arg2 = (int) SWIG_AsInt(obj1);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5142 SWIG_POINTER_EXCEPTION | 0)) == -1)
5143 SWIG_fail;
5144 if (arg3 == NULL) {
5145 PyErr_SetString(PyExc_TypeError,"null reference");
5146 SWIG_fail;
5147 }
5148 if (obj3) {
5149 {
5150 arg4 = &temp4;
5151 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5152 }
5153 }
5154 if (obj4) {
5155 {
5156 arg5 = &temp5;
5157 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5158 }
5159 }
5160 if (obj5) {
5161 arg6 = (long) SWIG_AsLong(obj5);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 }
5164 if (obj6) {
5165 {
5166 arg7 = wxString_in_helper(obj6);
5167 if (arg7 == NULL) SWIG_fail;
5168 temp7 = True;
5169 }
5170 }
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5174
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5179 {
5180 if (temp7)
5181 delete arg7;
5182 }
5183 return resultobj;
5184 fail:
5185 {
5186 if (temp7)
5187 delete arg7;
5188 }
5189 return NULL;
5190 }
5191
5192
5193 static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5194 PyObject *resultobj;
5195 wxStaticBitmap *result;
5196 char *kwnames[] = {
5197 NULL
5198 };
5199
5200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5201 {
5202 PyThreadState* __tstate = wxPyBeginAllowThreads();
5203 result = (wxStaticBitmap *)new wxStaticBitmap();
5204
5205 wxPyEndAllowThreads(__tstate);
5206 if (PyErr_Occurred()) SWIG_fail;
5207 }
5208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5209 return resultobj;
5210 fail:
5211 return NULL;
5212 }
5213
5214
5215 static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5216 PyObject *resultobj;
5217 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5218 wxWindow *arg2 = (wxWindow *) 0 ;
5219 int arg3 ;
5220 wxBitmap *arg4 = 0 ;
5221 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5222 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5223 wxSize const &arg6_defvalue = wxDefaultSize ;
5224 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5225 long arg7 = (long) 0 ;
5226 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5227 wxString *arg8 = (wxString *) &arg8_defvalue ;
5228 bool result;
5229 wxPoint temp5 ;
5230 wxSize temp6 ;
5231 bool temp8 = False ;
5232 PyObject * obj0 = 0 ;
5233 PyObject * obj1 = 0 ;
5234 PyObject * obj2 = 0 ;
5235 PyObject * obj3 = 0 ;
5236 PyObject * obj4 = 0 ;
5237 PyObject * obj5 = 0 ;
5238 PyObject * obj6 = 0 ;
5239 PyObject * obj7 = 0 ;
5240 char *kwnames[] = {
5241 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5242 };
5243
5244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5249 arg3 = (int) SWIG_AsInt(obj2);
5250 if (PyErr_Occurred()) SWIG_fail;
5251 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5252 SWIG_POINTER_EXCEPTION | 0)) == -1)
5253 SWIG_fail;
5254 if (arg4 == NULL) {
5255 PyErr_SetString(PyExc_TypeError,"null reference");
5256 SWIG_fail;
5257 }
5258 if (obj4) {
5259 {
5260 arg5 = &temp5;
5261 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5262 }
5263 }
5264 if (obj5) {
5265 {
5266 arg6 = &temp6;
5267 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5268 }
5269 }
5270 if (obj6) {
5271 arg7 = (long) SWIG_AsLong(obj6);
5272 if (PyErr_Occurred()) SWIG_fail;
5273 }
5274 if (obj7) {
5275 {
5276 arg8 = wxString_in_helper(obj7);
5277 if (arg8 == NULL) SWIG_fail;
5278 temp8 = True;
5279 }
5280 }
5281 {
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5284
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 }
5288 {
5289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5290 }
5291 {
5292 if (temp8)
5293 delete arg8;
5294 }
5295 return resultobj;
5296 fail:
5297 {
5298 if (temp8)
5299 delete arg8;
5300 }
5301 return NULL;
5302 }
5303
5304
5305 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5306 PyObject *resultobj;
5307 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5308 wxBitmap result;
5309 PyObject * obj0 = 0 ;
5310 char *kwnames[] = {
5311 (char *) "self", NULL
5312 };
5313
5314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5317 {
5318 PyThreadState* __tstate = wxPyBeginAllowThreads();
5319 result = (arg1)->GetBitmap();
5320
5321 wxPyEndAllowThreads(__tstate);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 {
5325 wxBitmap * resultptr;
5326 resultptr = new wxBitmap((wxBitmap &) result);
5327 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5328 }
5329 return resultobj;
5330 fail:
5331 return NULL;
5332 }
5333
5334
5335 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5336 PyObject *resultobj;
5337 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5338 wxBitmap *arg2 = 0 ;
5339 PyObject * obj0 = 0 ;
5340 PyObject * obj1 = 0 ;
5341 char *kwnames[] = {
5342 (char *) "self",(char *) "bitmap", NULL
5343 };
5344
5345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5349 SWIG_POINTER_EXCEPTION | 0)) == -1)
5350 SWIG_fail;
5351 if (arg2 == NULL) {
5352 PyErr_SetString(PyExc_TypeError,"null reference");
5353 SWIG_fail;
5354 }
5355 {
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5358
5359 wxPyEndAllowThreads(__tstate);
5360 if (PyErr_Occurred()) SWIG_fail;
5361 }
5362 Py_INCREF(Py_None); resultobj = Py_None;
5363 return resultobj;
5364 fail:
5365 return NULL;
5366 }
5367
5368
5369 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5370 PyObject *resultobj;
5371 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5372 wxIcon *arg2 = 0 ;
5373 PyObject * obj0 = 0 ;
5374 PyObject * obj1 = 0 ;
5375 char *kwnames[] = {
5376 (char *) "self",(char *) "icon", NULL
5377 };
5378
5379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5382 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5383 SWIG_POINTER_EXCEPTION | 0)) == -1)
5384 SWIG_fail;
5385 if (arg2 == NULL) {
5386 PyErr_SetString(PyExc_TypeError,"null reference");
5387 SWIG_fail;
5388 }
5389 {
5390 PyThreadState* __tstate = wxPyBeginAllowThreads();
5391 (arg1)->SetIcon((wxIcon const &)*arg2);
5392
5393 wxPyEndAllowThreads(__tstate);
5394 if (PyErr_Occurred()) SWIG_fail;
5395 }
5396 Py_INCREF(Py_None); resultobj = Py_None;
5397 return resultobj;
5398 fail:
5399 return NULL;
5400 }
5401
5402
5403 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5404 PyObject *resultobj;
5405 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5406 wxVisualAttributes result;
5407 PyObject * obj0 = 0 ;
5408 char *kwnames[] = {
5409 (char *) "variant", NULL
5410 };
5411
5412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5413 if (obj0) {
5414 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 {
5418 PyThreadState* __tstate = wxPyBeginAllowThreads();
5419 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5420
5421 wxPyEndAllowThreads(__tstate);
5422 if (PyErr_Occurred()) SWIG_fail;
5423 }
5424 {
5425 wxVisualAttributes * resultptr;
5426 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5427 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5428 }
5429 return resultobj;
5430 fail:
5431 return NULL;
5432 }
5433
5434
5435 static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
5436 PyObject *obj;
5437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5438 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5439 Py_INCREF(obj);
5440 return Py_BuildValue((char *)"");
5441 }
5442 static int _wrap_ListBoxNameStr_set(PyObject *_val) {
5443 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5444 return 1;
5445 }
5446
5447
5448 static PyObject *_wrap_ListBoxNameStr_get() {
5449 PyObject *pyobj;
5450
5451 {
5452 #if wxUSE_UNICODE
5453 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5454 #else
5455 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5456 #endif
5457 }
5458 return pyobj;
5459 }
5460
5461
5462 static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5463 PyObject *resultobj;
5464 wxWindow *arg1 = (wxWindow *) 0 ;
5465 int arg2 ;
5466 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5467 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5468 wxSize const &arg4_defvalue = wxDefaultSize ;
5469 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5470 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5471 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5472 long arg6 = (long) 0 ;
5473 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5474 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5475 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5476 wxString *arg8 = (wxString *) &arg8_defvalue ;
5477 wxListBox *result;
5478 wxPoint temp3 ;
5479 wxSize temp4 ;
5480 bool temp5 = False ;
5481 bool temp8 = False ;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 PyObject * obj2 = 0 ;
5485 PyObject * obj3 = 0 ;
5486 PyObject * obj4 = 0 ;
5487 PyObject * obj5 = 0 ;
5488 PyObject * obj6 = 0 ;
5489 PyObject * obj7 = 0 ;
5490 char *kwnames[] = {
5491 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5492 };
5493
5494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5497 arg2 = (int) SWIG_AsInt(obj1);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 if (obj2) {
5500 {
5501 arg3 = &temp3;
5502 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5503 }
5504 }
5505 if (obj3) {
5506 {
5507 arg4 = &temp4;
5508 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5509 }
5510 }
5511 if (obj4) {
5512 {
5513 if (! PySequence_Check(obj4)) {
5514 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5515 SWIG_fail;
5516 }
5517 arg5 = new wxArrayString;
5518 temp5 = True;
5519 int i, len=PySequence_Length(obj4);
5520 for (i=0; i<len; i++) {
5521 PyObject* item = PySequence_GetItem(obj4, i);
5522 #if wxUSE_UNICODE
5523 PyObject* str = PyObject_Unicode(item);
5524 #else
5525 PyObject* str = PyObject_Str(item);
5526 #endif
5527 if (PyErr_Occurred()) SWIG_fail;
5528 arg5->Add(Py2wxString(str));
5529 Py_DECREF(item);
5530 Py_DECREF(str);
5531 }
5532 }
5533 }
5534 if (obj5) {
5535 arg6 = (long) SWIG_AsLong(obj5);
5536 if (PyErr_Occurred()) SWIG_fail;
5537 }
5538 if (obj6) {
5539 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5540 SWIG_POINTER_EXCEPTION | 0)) == -1)
5541 SWIG_fail;
5542 if (arg7 == NULL) {
5543 PyErr_SetString(PyExc_TypeError,"null reference");
5544 SWIG_fail;
5545 }
5546 }
5547 if (obj7) {
5548 {
5549 arg8 = wxString_in_helper(obj7);
5550 if (arg8 == NULL) SWIG_fail;
5551 temp8 = True;
5552 }
5553 }
5554 {
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5557
5558 wxPyEndAllowThreads(__tstate);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5562 {
5563 if (temp5) delete arg5;
5564 }
5565 {
5566 if (temp8)
5567 delete arg8;
5568 }
5569 return resultobj;
5570 fail:
5571 {
5572 if (temp5) delete arg5;
5573 }
5574 {
5575 if (temp8)
5576 delete arg8;
5577 }
5578 return NULL;
5579 }
5580
5581
5582 static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5583 PyObject *resultobj;
5584 wxListBox *result;
5585 char *kwnames[] = {
5586 NULL
5587 };
5588
5589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 result = (wxListBox *)new wxListBox();
5593
5594 wxPyEndAllowThreads(__tstate);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5598 return resultobj;
5599 fail:
5600 return NULL;
5601 }
5602
5603
5604 static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5605 PyObject *resultobj;
5606 wxListBox *arg1 = (wxListBox *) 0 ;
5607 wxWindow *arg2 = (wxWindow *) 0 ;
5608 int arg3 ;
5609 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5610 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5611 wxSize const &arg5_defvalue = wxDefaultSize ;
5612 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5613 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5614 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5615 long arg7 = (long) 0 ;
5616 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5617 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5618 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5619 wxString *arg9 = (wxString *) &arg9_defvalue ;
5620 bool result;
5621 wxPoint temp4 ;
5622 wxSize temp5 ;
5623 bool temp6 = False ;
5624 bool temp9 = False ;
5625 PyObject * obj0 = 0 ;
5626 PyObject * obj1 = 0 ;
5627 PyObject * obj2 = 0 ;
5628 PyObject * obj3 = 0 ;
5629 PyObject * obj4 = 0 ;
5630 PyObject * obj5 = 0 ;
5631 PyObject * obj6 = 0 ;
5632 PyObject * obj7 = 0 ;
5633 PyObject * obj8 = 0 ;
5634 char *kwnames[] = {
5635 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5636 };
5637
5638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5643 arg3 = (int) SWIG_AsInt(obj2);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 if (obj3) {
5646 {
5647 arg4 = &temp4;
5648 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5649 }
5650 }
5651 if (obj4) {
5652 {
5653 arg5 = &temp5;
5654 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5655 }
5656 }
5657 if (obj5) {
5658 {
5659 if (! PySequence_Check(obj5)) {
5660 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5661 SWIG_fail;
5662 }
5663 arg6 = new wxArrayString;
5664 temp6 = True;
5665 int i, len=PySequence_Length(obj5);
5666 for (i=0; i<len; i++) {
5667 PyObject* item = PySequence_GetItem(obj5, i);
5668 #if wxUSE_UNICODE
5669 PyObject* str = PyObject_Unicode(item);
5670 #else
5671 PyObject* str = PyObject_Str(item);
5672 #endif
5673 if (PyErr_Occurred()) SWIG_fail;
5674 arg6->Add(Py2wxString(str));
5675 Py_DECREF(item);
5676 Py_DECREF(str);
5677 }
5678 }
5679 }
5680 if (obj6) {
5681 arg7 = (long) SWIG_AsLong(obj6);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 if (obj7) {
5685 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5686 SWIG_POINTER_EXCEPTION | 0)) == -1)
5687 SWIG_fail;
5688 if (arg8 == NULL) {
5689 PyErr_SetString(PyExc_TypeError,"null reference");
5690 SWIG_fail;
5691 }
5692 }
5693 if (obj8) {
5694 {
5695 arg9 = wxString_in_helper(obj8);
5696 if (arg9 == NULL) SWIG_fail;
5697 temp9 = True;
5698 }
5699 }
5700 {
5701 PyThreadState* __tstate = wxPyBeginAllowThreads();
5702 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5703
5704 wxPyEndAllowThreads(__tstate);
5705 if (PyErr_Occurred()) SWIG_fail;
5706 }
5707 {
5708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5709 }
5710 {
5711 if (temp6) delete arg6;
5712 }
5713 {
5714 if (temp9)
5715 delete arg9;
5716 }
5717 return resultobj;
5718 fail:
5719 {
5720 if (temp6) delete arg6;
5721 }
5722 {
5723 if (temp9)
5724 delete arg9;
5725 }
5726 return NULL;
5727 }
5728
5729
5730 static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5731 PyObject *resultobj;
5732 wxListBox *arg1 = (wxListBox *) 0 ;
5733 wxString *arg2 = 0 ;
5734 int arg3 ;
5735 PyObject *arg4 = (PyObject *) NULL ;
5736 bool temp2 = False ;
5737 PyObject * obj0 = 0 ;
5738 PyObject * obj1 = 0 ;
5739 PyObject * obj2 = 0 ;
5740 PyObject * obj3 = 0 ;
5741 char *kwnames[] = {
5742 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5743 };
5744
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5748 {
5749 arg2 = wxString_in_helper(obj1);
5750 if (arg2 == NULL) SWIG_fail;
5751 temp2 = True;
5752 }
5753 arg3 = (int) SWIG_AsInt(obj2);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 if (obj3) {
5756 arg4 = obj3;
5757 }
5758 {
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5761
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 Py_INCREF(Py_None); resultobj = Py_None;
5766 {
5767 if (temp2)
5768 delete arg2;
5769 }
5770 return resultobj;
5771 fail:
5772 {
5773 if (temp2)
5774 delete arg2;
5775 }
5776 return NULL;
5777 }
5778
5779
5780 static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5781 PyObject *resultobj;
5782 wxListBox *arg1 = (wxListBox *) 0 ;
5783 wxArrayString *arg2 = 0 ;
5784 int arg3 ;
5785 bool temp2 = False ;
5786 PyObject * obj0 = 0 ;
5787 PyObject * obj1 = 0 ;
5788 PyObject * obj2 = 0 ;
5789 char *kwnames[] = {
5790 (char *) "self",(char *) "items",(char *) "pos", NULL
5791 };
5792
5793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5796 {
5797 if (! PySequence_Check(obj1)) {
5798 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5799 SWIG_fail;
5800 }
5801 arg2 = new wxArrayString;
5802 temp2 = True;
5803 int i, len=PySequence_Length(obj1);
5804 for (i=0; i<len; i++) {
5805 PyObject* item = PySequence_GetItem(obj1, i);
5806 #if wxUSE_UNICODE
5807 PyObject* str = PyObject_Unicode(item);
5808 #else
5809 PyObject* str = PyObject_Str(item);
5810 #endif
5811 if (PyErr_Occurred()) SWIG_fail;
5812 arg2->Add(Py2wxString(str));
5813 Py_DECREF(item);
5814 Py_DECREF(str);
5815 }
5816 }
5817 arg3 = (int) SWIG_AsInt(obj2);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5822
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 Py_INCREF(Py_None); resultobj = Py_None;
5827 {
5828 if (temp2) delete arg2;
5829 }
5830 return resultobj;
5831 fail:
5832 {
5833 if (temp2) delete arg2;
5834 }
5835 return NULL;
5836 }
5837
5838
5839 static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5840 PyObject *resultobj;
5841 wxListBox *arg1 = (wxListBox *) 0 ;
5842 wxArrayString *arg2 = 0 ;
5843 bool temp2 = False ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 char *kwnames[] = {
5847 (char *) "self",(char *) "items", NULL
5848 };
5849
5850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5853 {
5854 if (! PySequence_Check(obj1)) {
5855 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5856 SWIG_fail;
5857 }
5858 arg2 = new wxArrayString;
5859 temp2 = True;
5860 int i, len=PySequence_Length(obj1);
5861 for (i=0; i<len; i++) {
5862 PyObject* item = PySequence_GetItem(obj1, i);
5863 #if wxUSE_UNICODE
5864 PyObject* str = PyObject_Unicode(item);
5865 #else
5866 PyObject* str = PyObject_Str(item);
5867 #endif
5868 if (PyErr_Occurred()) SWIG_fail;
5869 arg2->Add(Py2wxString(str));
5870 Py_DECREF(item);
5871 Py_DECREF(str);
5872 }
5873 }
5874 {
5875 PyThreadState* __tstate = wxPyBeginAllowThreads();
5876 (arg1)->Set((wxArrayString const &)*arg2);
5877
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 Py_INCREF(Py_None); resultobj = Py_None;
5882 {
5883 if (temp2) delete arg2;
5884 }
5885 return resultobj;
5886 fail:
5887 {
5888 if (temp2) delete arg2;
5889 }
5890 return NULL;
5891 }
5892
5893
5894 static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj;
5896 wxListBox *arg1 = (wxListBox *) 0 ;
5897 int arg2 ;
5898 bool result;
5899 PyObject * obj0 = 0 ;
5900 PyObject * obj1 = 0 ;
5901 char *kwnames[] = {
5902 (char *) "self",(char *) "n", NULL
5903 };
5904
5905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5908 arg2 = (int) SWIG_AsInt(obj1);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5913
5914 wxPyEndAllowThreads(__tstate);
5915 if (PyErr_Occurred()) SWIG_fail;
5916 }
5917 {
5918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5919 }
5920 return resultobj;
5921 fail:
5922 return NULL;
5923 }
5924
5925
5926 static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5927 PyObject *resultobj;
5928 wxListBox *arg1 = (wxListBox *) 0 ;
5929 int arg2 ;
5930 bool arg3 = (bool) True ;
5931 PyObject * obj0 = 0 ;
5932 PyObject * obj1 = 0 ;
5933 PyObject * obj2 = 0 ;
5934 char *kwnames[] = {
5935 (char *) "self",(char *) "n",(char *) "select", NULL
5936 };
5937
5938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5941 arg2 = (int) SWIG_AsInt(obj1);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 if (obj2) {
5944 arg3 = (bool) SWIG_AsBool(obj2);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 {
5948 PyThreadState* __tstate = wxPyBeginAllowThreads();
5949 (arg1)->SetSelection(arg2,arg3);
5950
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 Py_INCREF(Py_None); resultobj = Py_None;
5955 return resultobj;
5956 fail:
5957 return NULL;
5958 }
5959
5960
5961 static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxListBox *arg1 = (wxListBox *) 0 ;
5964 int arg2 ;
5965 PyObject * obj0 = 0 ;
5966 PyObject * obj1 = 0 ;
5967 char *kwnames[] = {
5968 (char *) "self",(char *) "n", NULL
5969 };
5970
5971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5974 arg2 = (int) SWIG_AsInt(obj1);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 {
5977 PyThreadState* __tstate = wxPyBeginAllowThreads();
5978 (arg1)->Select(arg2);
5979
5980 wxPyEndAllowThreads(__tstate);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
5983 Py_INCREF(Py_None); resultobj = Py_None;
5984 return resultobj;
5985 fail:
5986 return NULL;
5987 }
5988
5989
5990 static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5991 PyObject *resultobj;
5992 wxListBox *arg1 = (wxListBox *) 0 ;
5993 int arg2 ;
5994 PyObject * obj0 = 0 ;
5995 PyObject * obj1 = 0 ;
5996 char *kwnames[] = {
5997 (char *) "self",(char *) "n", NULL
5998 };
5999
6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6003 arg2 = (int) SWIG_AsInt(obj1);
6004 if (PyErr_Occurred()) SWIG_fail;
6005 {
6006 PyThreadState* __tstate = wxPyBeginAllowThreads();
6007 (arg1)->Deselect(arg2);
6008
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 Py_INCREF(Py_None); resultobj = Py_None;
6013 return resultobj;
6014 fail:
6015 return NULL;
6016 }
6017
6018
6019 static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
6020 PyObject *resultobj;
6021 wxListBox *arg1 = (wxListBox *) 0 ;
6022 int arg2 = (int) -1 ;
6023 PyObject * obj0 = 0 ;
6024 PyObject * obj1 = 0 ;
6025 char *kwnames[] = {
6026 (char *) "self",(char *) "itemToLeaveSelected", NULL
6027 };
6028
6029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6032 if (obj1) {
6033 arg2 = (int) SWIG_AsInt(obj1);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 {
6037 PyThreadState* __tstate = wxPyBeginAllowThreads();
6038 (arg1)->DeselectAll(arg2);
6039
6040 wxPyEndAllowThreads(__tstate);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 Py_INCREF(Py_None); resultobj = Py_None;
6044 return resultobj;
6045 fail:
6046 return NULL;
6047 }
6048
6049
6050 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6051 PyObject *resultobj;
6052 wxListBox *arg1 = (wxListBox *) 0 ;
6053 wxString *arg2 = 0 ;
6054 bool arg3 = (bool) True ;
6055 bool result;
6056 bool temp2 = False ;
6057 PyObject * obj0 = 0 ;
6058 PyObject * obj1 = 0 ;
6059 PyObject * obj2 = 0 ;
6060 char *kwnames[] = {
6061 (char *) "self",(char *) "s",(char *) "select", NULL
6062 };
6063
6064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6067 {
6068 arg2 = wxString_in_helper(obj1);
6069 if (arg2 == NULL) SWIG_fail;
6070 temp2 = True;
6071 }
6072 if (obj2) {
6073 arg3 = (bool) SWIG_AsBool(obj2);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 {
6077 PyThreadState* __tstate = wxPyBeginAllowThreads();
6078 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6079
6080 wxPyEndAllowThreads(__tstate);
6081 if (PyErr_Occurred()) SWIG_fail;
6082 }
6083 {
6084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6085 }
6086 {
6087 if (temp2)
6088 delete arg2;
6089 }
6090 return resultobj;
6091 fail:
6092 {
6093 if (temp2)
6094 delete arg2;
6095 }
6096 return NULL;
6097 }
6098
6099
6100 static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
6101 PyObject *resultobj;
6102 wxListBox *arg1 = (wxListBox *) 0 ;
6103 PyObject *result;
6104 PyObject * obj0 = 0 ;
6105 char *kwnames[] = {
6106 (char *) "self", NULL
6107 };
6108
6109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 result = (PyObject *)wxListBox_GetSelections(arg1);
6115
6116 wxPyEndAllowThreads(__tstate);
6117 if (PyErr_Occurred()) SWIG_fail;
6118 }
6119 resultobj = result;
6120 return resultobj;
6121 fail:
6122 return NULL;
6123 }
6124
6125
6126 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6127 PyObject *resultobj;
6128 wxListBox *arg1 = (wxListBox *) 0 ;
6129 int arg2 ;
6130 PyObject * obj0 = 0 ;
6131 PyObject * obj1 = 0 ;
6132 char *kwnames[] = {
6133 (char *) "self",(char *) "n", NULL
6134 };
6135
6136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6139 arg2 = (int) SWIG_AsInt(obj1);
6140 if (PyErr_Occurred()) SWIG_fail;
6141 {
6142 PyThreadState* __tstate = wxPyBeginAllowThreads();
6143 (arg1)->SetFirstItem(arg2);
6144
6145 wxPyEndAllowThreads(__tstate);
6146 if (PyErr_Occurred()) SWIG_fail;
6147 }
6148 Py_INCREF(Py_None); resultobj = Py_None;
6149 return resultobj;
6150 fail:
6151 return NULL;
6152 }
6153
6154
6155 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
6156 PyObject *resultobj;
6157 wxListBox *arg1 = (wxListBox *) 0 ;
6158 wxString *arg2 = 0 ;
6159 bool temp2 = False ;
6160 PyObject * obj0 = 0 ;
6161 PyObject * obj1 = 0 ;
6162 char *kwnames[] = {
6163 (char *) "self",(char *) "s", NULL
6164 };
6165
6166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6169 {
6170 arg2 = wxString_in_helper(obj1);
6171 if (arg2 == NULL) SWIG_fail;
6172 temp2 = True;
6173 }
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 (arg1)->SetFirstItem((wxString const &)*arg2);
6177
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 Py_INCREF(Py_None); resultobj = Py_None;
6182 {
6183 if (temp2)
6184 delete arg2;
6185 }
6186 return resultobj;
6187 fail:
6188 {
6189 if (temp2)
6190 delete arg2;
6191 }
6192 return NULL;
6193 }
6194
6195
6196 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6197 PyObject *resultobj;
6198 wxListBox *arg1 = (wxListBox *) 0 ;
6199 int arg2 ;
6200 PyObject * obj0 = 0 ;
6201 PyObject * obj1 = 0 ;
6202 char *kwnames[] = {
6203 (char *) "self",(char *) "n", NULL
6204 };
6205
6206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6209 arg2 = (int) SWIG_AsInt(obj1);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 {
6212 PyThreadState* __tstate = wxPyBeginAllowThreads();
6213 (arg1)->EnsureVisible(arg2);
6214
6215 wxPyEndAllowThreads(__tstate);
6216 if (PyErr_Occurred()) SWIG_fail;
6217 }
6218 Py_INCREF(Py_None); resultobj = Py_None;
6219 return resultobj;
6220 fail:
6221 return NULL;
6222 }
6223
6224
6225 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj;
6227 wxListBox *arg1 = (wxListBox *) 0 ;
6228 wxString *arg2 = 0 ;
6229 bool temp2 = False ;
6230 PyObject * obj0 = 0 ;
6231 PyObject * obj1 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "self",(char *) "s", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6239 {
6240 arg2 = wxString_in_helper(obj1);
6241 if (arg2 == NULL) SWIG_fail;
6242 temp2 = True;
6243 }
6244 {
6245 PyThreadState* __tstate = wxPyBeginAllowThreads();
6246 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6247
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) SWIG_fail;
6250 }
6251 Py_INCREF(Py_None); resultobj = Py_None;
6252 {
6253 if (temp2)
6254 delete arg2;
6255 }
6256 return resultobj;
6257 fail:
6258 {
6259 if (temp2)
6260 delete arg2;
6261 }
6262 return NULL;
6263 }
6264
6265
6266 static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
6267 PyObject *resultobj;
6268 wxListBox *arg1 = (wxListBox *) 0 ;
6269 bool result;
6270 PyObject * obj0 = 0 ;
6271 char *kwnames[] = {
6272 (char *) "self", NULL
6273 };
6274
6275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 result = (bool)((wxListBox const *)arg1)->IsSorted();
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 {
6286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6287 }
6288 return resultobj;
6289 fail:
6290 return NULL;
6291 }
6292
6293
6294 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6295 PyObject *resultobj;
6296 wxListBox *arg1 = (wxListBox *) 0 ;
6297 int arg2 ;
6298 wxColour *arg3 = 0 ;
6299 wxColour temp3 ;
6300 PyObject * obj0 = 0 ;
6301 PyObject * obj1 = 0 ;
6302 PyObject * obj2 = 0 ;
6303 char *kwnames[] = {
6304 (char *) "self",(char *) "item",(char *) "c", NULL
6305 };
6306
6307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6310 arg2 = (int) SWIG_AsInt(obj1);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 {
6313 arg3 = &temp3;
6314 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6315 }
6316 {
6317 PyThreadState* __tstate = wxPyBeginAllowThreads();
6318 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6319
6320 wxPyEndAllowThreads(__tstate);
6321 if (PyErr_Occurred()) SWIG_fail;
6322 }
6323 Py_INCREF(Py_None); resultobj = Py_None;
6324 return resultobj;
6325 fail:
6326 return NULL;
6327 }
6328
6329
6330 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6331 PyObject *resultobj;
6332 wxListBox *arg1 = (wxListBox *) 0 ;
6333 int arg2 ;
6334 wxColour *arg3 = 0 ;
6335 wxColour temp3 ;
6336 PyObject * obj0 = 0 ;
6337 PyObject * obj1 = 0 ;
6338 PyObject * obj2 = 0 ;
6339 char *kwnames[] = {
6340 (char *) "self",(char *) "item",(char *) "c", NULL
6341 };
6342
6343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6346 arg2 = (int) SWIG_AsInt(obj1);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 {
6349 arg3 = &temp3;
6350 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6351 }
6352 {
6353 PyThreadState* __tstate = wxPyBeginAllowThreads();
6354 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6355
6356 wxPyEndAllowThreads(__tstate);
6357 if (PyErr_Occurred()) SWIG_fail;
6358 }
6359 Py_INCREF(Py_None); resultobj = Py_None;
6360 return resultobj;
6361 fail:
6362 return NULL;
6363 }
6364
6365
6366 static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6367 PyObject *resultobj;
6368 wxListBox *arg1 = (wxListBox *) 0 ;
6369 int arg2 ;
6370 wxFont *arg3 = 0 ;
6371 PyObject * obj0 = 0 ;
6372 PyObject * obj1 = 0 ;
6373 PyObject * obj2 = 0 ;
6374 char *kwnames[] = {
6375 (char *) "self",(char *) "item",(char *) "f", NULL
6376 };
6377
6378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6381 arg2 = (int) SWIG_AsInt(obj1);
6382 if (PyErr_Occurred()) SWIG_fail;
6383 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6384 SWIG_POINTER_EXCEPTION | 0)) == -1)
6385 SWIG_fail;
6386 if (arg3 == NULL) {
6387 PyErr_SetString(PyExc_TypeError,"null reference");
6388 SWIG_fail;
6389 }
6390 {
6391 PyThreadState* __tstate = wxPyBeginAllowThreads();
6392 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6393
6394 wxPyEndAllowThreads(__tstate);
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 Py_INCREF(Py_None); resultobj = Py_None;
6398 return resultobj;
6399 fail:
6400 return NULL;
6401 }
6402
6403
6404 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6405 PyObject *resultobj;
6406 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6407 wxVisualAttributes result;
6408 PyObject * obj0 = 0 ;
6409 char *kwnames[] = {
6410 (char *) "variant", NULL
6411 };
6412
6413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6414 if (obj0) {
6415 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
6416 if (PyErr_Occurred()) SWIG_fail;
6417 }
6418 {
6419 PyThreadState* __tstate = wxPyBeginAllowThreads();
6420 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6421
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 {
6426 wxVisualAttributes * resultptr;
6427 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6429 }
6430 return resultobj;
6431 fail:
6432 return NULL;
6433 }
6434
6435
6436 static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
6437 PyObject *obj;
6438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6439 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6440 Py_INCREF(obj);
6441 return Py_BuildValue((char *)"");
6442 }
6443 static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj;
6445 wxWindow *arg1 = (wxWindow *) 0 ;
6446 int arg2 ;
6447 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6448 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6449 wxSize const &arg4_defvalue = wxDefaultSize ;
6450 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6451 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6452 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6453 long arg6 = (long) 0 ;
6454 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6455 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6456 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6457 wxString *arg8 = (wxString *) &arg8_defvalue ;
6458 wxCheckListBox *result;
6459 wxPoint temp3 ;
6460 wxSize temp4 ;
6461 bool temp5 = False ;
6462 bool temp8 = False ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 PyObject * obj2 = 0 ;
6466 PyObject * obj3 = 0 ;
6467 PyObject * obj4 = 0 ;
6468 PyObject * obj5 = 0 ;
6469 PyObject * obj6 = 0 ;
6470 PyObject * obj7 = 0 ;
6471 char *kwnames[] = {
6472 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6473 };
6474
6475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6478 arg2 = (int) SWIG_AsInt(obj1);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 if (obj2) {
6481 {
6482 arg3 = &temp3;
6483 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6484 }
6485 }
6486 if (obj3) {
6487 {
6488 arg4 = &temp4;
6489 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6490 }
6491 }
6492 if (obj4) {
6493 {
6494 if (! PySequence_Check(obj4)) {
6495 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6496 SWIG_fail;
6497 }
6498 arg5 = new wxArrayString;
6499 temp5 = True;
6500 int i, len=PySequence_Length(obj4);
6501 for (i=0; i<len; i++) {
6502 PyObject* item = PySequence_GetItem(obj4, i);
6503 #if wxUSE_UNICODE
6504 PyObject* str = PyObject_Unicode(item);
6505 #else
6506 PyObject* str = PyObject_Str(item);
6507 #endif
6508 if (PyErr_Occurred()) SWIG_fail;
6509 arg5->Add(Py2wxString(str));
6510 Py_DECREF(item);
6511 Py_DECREF(str);
6512 }
6513 }
6514 }
6515 if (obj5) {
6516 arg6 = (long) SWIG_AsLong(obj5);
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 if (obj6) {
6520 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6521 SWIG_POINTER_EXCEPTION | 0)) == -1)
6522 SWIG_fail;
6523 if (arg7 == NULL) {
6524 PyErr_SetString(PyExc_TypeError,"null reference");
6525 SWIG_fail;
6526 }
6527 }
6528 if (obj7) {
6529 {
6530 arg8 = wxString_in_helper(obj7);
6531 if (arg8 == NULL) SWIG_fail;
6532 temp8 = True;
6533 }
6534 }
6535 {
6536 PyThreadState* __tstate = wxPyBeginAllowThreads();
6537 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6538
6539 wxPyEndAllowThreads(__tstate);
6540 if (PyErr_Occurred()) SWIG_fail;
6541 }
6542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6543 {
6544 if (temp5) delete arg5;
6545 }
6546 {
6547 if (temp8)
6548 delete arg8;
6549 }
6550 return resultobj;
6551 fail:
6552 {
6553 if (temp5) delete arg5;
6554 }
6555 {
6556 if (temp8)
6557 delete arg8;
6558 }
6559 return NULL;
6560 }
6561
6562
6563 static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj;
6565 wxCheckListBox *result;
6566 char *kwnames[] = {
6567 NULL
6568 };
6569
6570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 result = (wxCheckListBox *)new wxCheckListBox();
6574
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6579 return resultobj;
6580 fail:
6581 return NULL;
6582 }
6583
6584
6585 static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6586 PyObject *resultobj;
6587 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6588 wxWindow *arg2 = (wxWindow *) 0 ;
6589 int arg3 ;
6590 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6591 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6592 wxSize const &arg5_defvalue = wxDefaultSize ;
6593 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6594 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6595 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6596 long arg7 = (long) 0 ;
6597 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6598 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6599 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6600 wxString *arg9 = (wxString *) &arg9_defvalue ;
6601 bool result;
6602 wxPoint temp4 ;
6603 wxSize temp5 ;
6604 bool temp6 = False ;
6605 bool temp9 = False ;
6606 PyObject * obj0 = 0 ;
6607 PyObject * obj1 = 0 ;
6608 PyObject * obj2 = 0 ;
6609 PyObject * obj3 = 0 ;
6610 PyObject * obj4 = 0 ;
6611 PyObject * obj5 = 0 ;
6612 PyObject * obj6 = 0 ;
6613 PyObject * obj7 = 0 ;
6614 PyObject * obj8 = 0 ;
6615 char *kwnames[] = {
6616 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6617 };
6618
6619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6624 arg3 = (int) SWIG_AsInt(obj2);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 if (obj3) {
6627 {
6628 arg4 = &temp4;
6629 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6630 }
6631 }
6632 if (obj4) {
6633 {
6634 arg5 = &temp5;
6635 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6636 }
6637 }
6638 if (obj5) {
6639 {
6640 if (! PySequence_Check(obj5)) {
6641 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6642 SWIG_fail;
6643 }
6644 arg6 = new wxArrayString;
6645 temp6 = True;
6646 int i, len=PySequence_Length(obj5);
6647 for (i=0; i<len; i++) {
6648 PyObject* item = PySequence_GetItem(obj5, i);
6649 #if wxUSE_UNICODE
6650 PyObject* str = PyObject_Unicode(item);
6651 #else
6652 PyObject* str = PyObject_Str(item);
6653 #endif
6654 if (PyErr_Occurred()) SWIG_fail;
6655 arg6->Add(Py2wxString(str));
6656 Py_DECREF(item);
6657 Py_DECREF(str);
6658 }
6659 }
6660 }
6661 if (obj6) {
6662 arg7 = (long) SWIG_AsLong(obj6);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 if (obj7) {
6666 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6667 SWIG_POINTER_EXCEPTION | 0)) == -1)
6668 SWIG_fail;
6669 if (arg8 == NULL) {
6670 PyErr_SetString(PyExc_TypeError,"null reference");
6671 SWIG_fail;
6672 }
6673 }
6674 if (obj8) {
6675 {
6676 arg9 = wxString_in_helper(obj8);
6677 if (arg9 == NULL) SWIG_fail;
6678 temp9 = True;
6679 }
6680 }
6681 {
6682 PyThreadState* __tstate = wxPyBeginAllowThreads();
6683 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6684
6685 wxPyEndAllowThreads(__tstate);
6686 if (PyErr_Occurred()) SWIG_fail;
6687 }
6688 {
6689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6690 }
6691 {
6692 if (temp6) delete arg6;
6693 }
6694 {
6695 if (temp9)
6696 delete arg9;
6697 }
6698 return resultobj;
6699 fail:
6700 {
6701 if (temp6) delete arg6;
6702 }
6703 {
6704 if (temp9)
6705 delete arg9;
6706 }
6707 return NULL;
6708 }
6709
6710
6711 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6712 PyObject *resultobj;
6713 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6714 int arg2 ;
6715 bool result;
6716 PyObject * obj0 = 0 ;
6717 PyObject * obj1 = 0 ;
6718 char *kwnames[] = {
6719 (char *) "self",(char *) "index", NULL
6720 };
6721
6722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6725 arg2 = (int) SWIG_AsInt(obj1);
6726 if (PyErr_Occurred()) SWIG_fail;
6727 {
6728 PyThreadState* __tstate = wxPyBeginAllowThreads();
6729 result = (bool)(arg1)->IsChecked(arg2);
6730
6731 wxPyEndAllowThreads(__tstate);
6732 if (PyErr_Occurred()) SWIG_fail;
6733 }
6734 {
6735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6736 }
6737 return resultobj;
6738 fail:
6739 return NULL;
6740 }
6741
6742
6743 static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6744 PyObject *resultobj;
6745 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6746 int arg2 ;
6747 int arg3 = (int) True ;
6748 PyObject * obj0 = 0 ;
6749 PyObject * obj1 = 0 ;
6750 PyObject * obj2 = 0 ;
6751 char *kwnames[] = {
6752 (char *) "self",(char *) "index",(char *) "check", NULL
6753 };
6754
6755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6758 arg2 = (int) SWIG_AsInt(obj1);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 if (obj2) {
6761 arg3 = (int) SWIG_AsInt(obj2);
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 {
6765 PyThreadState* __tstate = wxPyBeginAllowThreads();
6766 (arg1)->Check(arg2,arg3);
6767
6768 wxPyEndAllowThreads(__tstate);
6769 if (PyErr_Occurred()) SWIG_fail;
6770 }
6771 Py_INCREF(Py_None); resultobj = Py_None;
6772 return resultobj;
6773 fail:
6774 return NULL;
6775 }
6776
6777
6778 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6779 PyObject *resultobj;
6780 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6781 int result;
6782 PyObject * obj0 = 0 ;
6783 char *kwnames[] = {
6784 (char *) "self", NULL
6785 };
6786
6787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
6788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6790 {
6791 PyThreadState* __tstate = wxPyBeginAllowThreads();
6792 result = (int)(arg1)->GetItemHeight();
6793
6794 wxPyEndAllowThreads(__tstate);
6795 if (PyErr_Occurred()) SWIG_fail;
6796 }
6797 resultobj = SWIG_FromInt((int)result);
6798 return resultobj;
6799 fail:
6800 return NULL;
6801 }
6802
6803
6804 static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6805 PyObject *resultobj;
6806 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6807 wxPoint *arg2 = 0 ;
6808 int result;
6809 wxPoint temp2 ;
6810 PyObject * obj0 = 0 ;
6811 PyObject * obj1 = 0 ;
6812 char *kwnames[] = {
6813 (char *) "self",(char *) "pt", NULL
6814 };
6815
6816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6819 {
6820 arg2 = &temp2;
6821 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6822 }
6823 {
6824 PyThreadState* __tstate = wxPyBeginAllowThreads();
6825 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6826
6827 wxPyEndAllowThreads(__tstate);
6828 if (PyErr_Occurred()) SWIG_fail;
6829 }
6830 resultobj = SWIG_FromInt((int)result);
6831 return resultobj;
6832 fail:
6833 return NULL;
6834 }
6835
6836
6837 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6838 PyObject *resultobj;
6839 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6840 int arg2 ;
6841 int arg3 ;
6842 int result;
6843 PyObject * obj0 = 0 ;
6844 PyObject * obj1 = 0 ;
6845 PyObject * obj2 = 0 ;
6846 char *kwnames[] = {
6847 (char *) "self",(char *) "x",(char *) "y", NULL
6848 };
6849
6850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6853 arg2 = (int) SWIG_AsInt(obj1);
6854 if (PyErr_Occurred()) SWIG_fail;
6855 arg3 = (int) SWIG_AsInt(obj2);
6856 if (PyErr_Occurred()) SWIG_fail;
6857 {
6858 PyThreadState* __tstate = wxPyBeginAllowThreads();
6859 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6860
6861 wxPyEndAllowThreads(__tstate);
6862 if (PyErr_Occurred()) SWIG_fail;
6863 }
6864 resultobj = SWIG_FromInt((int)result);
6865 return resultobj;
6866 fail:
6867 return NULL;
6868 }
6869
6870
6871 static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6872 PyObject *obj;
6873 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6874 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6875 Py_INCREF(obj);
6876 return Py_BuildValue((char *)"");
6877 }
6878 static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6879 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6880 return 1;
6881 }
6882
6883
6884 static PyObject *_wrap_TextCtrlNameStr_get() {
6885 PyObject *pyobj;
6886
6887 {
6888 #if wxUSE_UNICODE
6889 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6890 #else
6891 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6892 #endif
6893 }
6894 return pyobj;
6895 }
6896
6897
6898 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6899 PyObject *resultobj;
6900 wxTextAttr *result;
6901
6902 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6903 {
6904 PyThreadState* __tstate = wxPyBeginAllowThreads();
6905 result = (wxTextAttr *)new wxTextAttr();
6906
6907 wxPyEndAllowThreads(__tstate);
6908 if (PyErr_Occurred()) SWIG_fail;
6909 }
6910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6911 return resultobj;
6912 fail:
6913 return NULL;
6914 }
6915
6916
6917 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6918 PyObject *resultobj;
6919 wxColour *arg1 = 0 ;
6920 wxColour const &arg2_defvalue = wxNullColour ;
6921 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6922 wxFont const &arg3_defvalue = wxNullFont ;
6923 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6924 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6925 wxTextAttr *result;
6926 wxColour temp1 ;
6927 wxColour temp2 ;
6928 PyObject * obj0 = 0 ;
6929 PyObject * obj1 = 0 ;
6930 PyObject * obj2 = 0 ;
6931 PyObject * obj3 = 0 ;
6932
6933 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6934 {
6935 arg1 = &temp1;
6936 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6937 }
6938 if (obj1) {
6939 {
6940 arg2 = &temp2;
6941 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6942 }
6943 }
6944 if (obj2) {
6945 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6946 SWIG_POINTER_EXCEPTION | 0)) == -1)
6947 SWIG_fail;
6948 if (arg3 == NULL) {
6949 PyErr_SetString(PyExc_TypeError,"null reference");
6950 SWIG_fail;
6951 }
6952 }
6953 if (obj3) {
6954 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 {
6958 PyThreadState* __tstate = wxPyBeginAllowThreads();
6959 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6960
6961 wxPyEndAllowThreads(__tstate);
6962 if (PyErr_Occurred()) SWIG_fail;
6963 }
6964 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6965 return resultobj;
6966 fail:
6967 return NULL;
6968 }
6969
6970
6971 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6972 int argc;
6973 PyObject *argv[5];
6974 int ii;
6975
6976 argc = PyObject_Length(args);
6977 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6978 argv[ii] = PyTuple_GetItem(args,ii);
6979 }
6980 if (argc == 0) {
6981 return _wrap_new_TextAttr__SWIG_0(self,args);
6982 }
6983 if ((argc >= 1) && (argc <= 4)) {
6984 int _v;
6985 {
6986 _v = wxColour_typecheck(argv[0]);
6987 }
6988 if (_v) {
6989 if (argc <= 1) {
6990 return _wrap_new_TextAttr__SWIG_1(self,args);
6991 }
6992 {
6993 _v = wxColour_typecheck(argv[1]);
6994 }
6995 if (_v) {
6996 if (argc <= 2) {
6997 return _wrap_new_TextAttr__SWIG_1(self,args);
6998 }
6999 {
7000 void *ptr;
7001 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
7002 _v = 0;
7003 PyErr_Clear();
7004 } else {
7005 _v = 1;
7006 }
7007 }
7008 if (_v) {
7009 if (argc <= 3) {
7010 return _wrap_new_TextAttr__SWIG_1(self,args);
7011 }
7012 _v = SWIG_CheckInt(argv[3]);
7013 if (_v) {
7014 return _wrap_new_TextAttr__SWIG_1(self,args);
7015 }
7016 }
7017 }
7018 }
7019 }
7020
7021 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
7022 return NULL;
7023 }
7024
7025
7026 static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7027 PyObject *resultobj;
7028 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7029 PyObject * obj0 = 0 ;
7030 char *kwnames[] = {
7031 (char *) "self", NULL
7032 };
7033
7034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7037 {
7038 PyThreadState* __tstate = wxPyBeginAllowThreads();
7039 delete arg1;
7040
7041 wxPyEndAllowThreads(__tstate);
7042 if (PyErr_Occurred()) SWIG_fail;
7043 }
7044 Py_INCREF(Py_None); resultobj = Py_None;
7045 return resultobj;
7046 fail:
7047 return NULL;
7048 }
7049
7050
7051 static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
7052 PyObject *resultobj;
7053 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7054 PyObject * obj0 = 0 ;
7055 char *kwnames[] = {
7056 (char *) "self", NULL
7057 };
7058
7059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7062 {
7063 PyThreadState* __tstate = wxPyBeginAllowThreads();
7064 (arg1)->Init();
7065
7066 wxPyEndAllowThreads(__tstate);
7067 if (PyErr_Occurred()) SWIG_fail;
7068 }
7069 Py_INCREF(Py_None); resultobj = Py_None;
7070 return resultobj;
7071 fail:
7072 return NULL;
7073 }
7074
7075
7076 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7077 PyObject *resultobj;
7078 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7079 wxColour *arg2 = 0 ;
7080 wxColour temp2 ;
7081 PyObject * obj0 = 0 ;
7082 PyObject * obj1 = 0 ;
7083 char *kwnames[] = {
7084 (char *) "self",(char *) "colText", NULL
7085 };
7086
7087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7090 {
7091 arg2 = &temp2;
7092 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7093 }
7094 {
7095 PyThreadState* __tstate = wxPyBeginAllowThreads();
7096 (arg1)->SetTextColour((wxColour const &)*arg2);
7097
7098 wxPyEndAllowThreads(__tstate);
7099 if (PyErr_Occurred()) SWIG_fail;
7100 }
7101 Py_INCREF(Py_None); resultobj = Py_None;
7102 return resultobj;
7103 fail:
7104 return NULL;
7105 }
7106
7107
7108 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7109 PyObject *resultobj;
7110 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7111 wxColour *arg2 = 0 ;
7112 wxColour temp2 ;
7113 PyObject * obj0 = 0 ;
7114 PyObject * obj1 = 0 ;
7115 char *kwnames[] = {
7116 (char *) "self",(char *) "colBack", NULL
7117 };
7118
7119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7122 {
7123 arg2 = &temp2;
7124 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7125 }
7126 {
7127 PyThreadState* __tstate = wxPyBeginAllowThreads();
7128 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7129
7130 wxPyEndAllowThreads(__tstate);
7131 if (PyErr_Occurred()) SWIG_fail;
7132 }
7133 Py_INCREF(Py_None); resultobj = Py_None;
7134 return resultobj;
7135 fail:
7136 return NULL;
7137 }
7138
7139
7140 static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7141 PyObject *resultobj;
7142 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7143 wxFont *arg2 = 0 ;
7144 long arg3 = (long) wxTEXT_ATTR_FONT ;
7145 PyObject * obj0 = 0 ;
7146 PyObject * obj1 = 0 ;
7147 PyObject * obj2 = 0 ;
7148 char *kwnames[] = {
7149 (char *) "self",(char *) "font",(char *) "flags", NULL
7150 };
7151
7152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7155 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7156 SWIG_POINTER_EXCEPTION | 0)) == -1)
7157 SWIG_fail;
7158 if (arg2 == NULL) {
7159 PyErr_SetString(PyExc_TypeError,"null reference");
7160 SWIG_fail;
7161 }
7162 if (obj2) {
7163 arg3 = (long) SWIG_AsLong(obj2);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 Py_INCREF(Py_None); resultobj = Py_None;
7174 return resultobj;
7175 fail:
7176 return NULL;
7177 }
7178
7179
7180 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7181 PyObject *resultobj;
7182 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7183 int arg2 ;
7184 PyObject * obj0 = 0 ;
7185 PyObject * obj1 = 0 ;
7186 char *kwnames[] = {
7187 (char *) "self",(char *) "alignment", NULL
7188 };
7189
7190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7193 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
7194 if (PyErr_Occurred()) SWIG_fail;
7195 {
7196 PyThreadState* __tstate = wxPyBeginAllowThreads();
7197 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7198
7199 wxPyEndAllowThreads(__tstate);
7200 if (PyErr_Occurred()) SWIG_fail;
7201 }
7202 Py_INCREF(Py_None); resultobj = Py_None;
7203 return resultobj;
7204 fail:
7205 return NULL;
7206 }
7207
7208
7209 static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7210 PyObject *resultobj;
7211 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7212 wxArrayInt *arg2 = 0 ;
7213 bool temp2 = False ;
7214 PyObject * obj0 = 0 ;
7215 PyObject * obj1 = 0 ;
7216 char *kwnames[] = {
7217 (char *) "self",(char *) "tabs", NULL
7218 };
7219
7220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7223 {
7224 if (! PySequence_Check(obj1)) {
7225 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7226 SWIG_fail;
7227 }
7228 arg2 = new wxArrayInt;
7229 temp2 = True;
7230 int i, len=PySequence_Length(obj1);
7231 for (i=0; i<len; i++) {
7232 PyObject* item = PySequence_GetItem(obj1, i);
7233 PyObject* number = PyNumber_Int(item);
7234 arg2->Add(PyInt_AS_LONG(number));
7235 Py_DECREF(item);
7236 Py_DECREF(number);
7237 }
7238 }
7239 {
7240 PyThreadState* __tstate = wxPyBeginAllowThreads();
7241 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7242
7243 wxPyEndAllowThreads(__tstate);
7244 if (PyErr_Occurred()) SWIG_fail;
7245 }
7246 Py_INCREF(Py_None); resultobj = Py_None;
7247 {
7248 if (temp2) delete arg2;
7249 }
7250 return resultobj;
7251 fail:
7252 {
7253 if (temp2) delete arg2;
7254 }
7255 return NULL;
7256 }
7257
7258
7259 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7260 PyObject *resultobj;
7261 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7262 int arg2 ;
7263 PyObject * obj0 = 0 ;
7264 PyObject * obj1 = 0 ;
7265 char *kwnames[] = {
7266 (char *) "self",(char *) "indent", NULL
7267 };
7268
7269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail;
7270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7272 arg2 = (int) SWIG_AsInt(obj1);
7273 if (PyErr_Occurred()) SWIG_fail;
7274 {
7275 PyThreadState* __tstate = wxPyBeginAllowThreads();
7276 (arg1)->SetLeftIndent(arg2);
7277
7278 wxPyEndAllowThreads(__tstate);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 }
7281 Py_INCREF(Py_None); resultobj = Py_None;
7282 return resultobj;
7283 fail:
7284 return NULL;
7285 }
7286
7287
7288 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj;
7290 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7291 int arg2 ;
7292 PyObject * obj0 = 0 ;
7293 PyObject * obj1 = 0 ;
7294 char *kwnames[] = {
7295 (char *) "self",(char *) "indent", NULL
7296 };
7297
7298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7301 arg2 = (int) SWIG_AsInt(obj1);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 (arg1)->SetRightIndent(arg2);
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 Py_INCREF(Py_None); resultobj = Py_None;
7311 return resultobj;
7312 fail:
7313 return NULL;
7314 }
7315
7316
7317 static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7318 PyObject *resultobj;
7319 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7320 long arg2 ;
7321 PyObject * obj0 = 0 ;
7322 PyObject * obj1 = 0 ;
7323 char *kwnames[] = {
7324 (char *) "self",(char *) "flags", NULL
7325 };
7326
7327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7330 arg2 = (long) SWIG_AsLong(obj1);
7331 if (PyErr_Occurred()) SWIG_fail;
7332 {
7333 PyThreadState* __tstate = wxPyBeginAllowThreads();
7334 (arg1)->SetFlags(arg2);
7335
7336 wxPyEndAllowThreads(__tstate);
7337 if (PyErr_Occurred()) SWIG_fail;
7338 }
7339 Py_INCREF(Py_None); resultobj = Py_None;
7340 return resultobj;
7341 fail:
7342 return NULL;
7343 }
7344
7345
7346 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7347 PyObject *resultobj;
7348 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7349 bool result;
7350 PyObject * obj0 = 0 ;
7351 char *kwnames[] = {
7352 (char *) "self", NULL
7353 };
7354
7355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7358 {
7359 PyThreadState* __tstate = wxPyBeginAllowThreads();
7360 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7361
7362 wxPyEndAllowThreads(__tstate);
7363 if (PyErr_Occurred()) SWIG_fail;
7364 }
7365 {
7366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7367 }
7368 return resultobj;
7369 fail:
7370 return NULL;
7371 }
7372
7373
7374 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7375 PyObject *resultobj;
7376 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7377 bool result;
7378 PyObject * obj0 = 0 ;
7379 char *kwnames[] = {
7380 (char *) "self", NULL
7381 };
7382
7383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7386 {
7387 PyThreadState* __tstate = wxPyBeginAllowThreads();
7388 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7389
7390 wxPyEndAllowThreads(__tstate);
7391 if (PyErr_Occurred()) SWIG_fail;
7392 }
7393 {
7394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7395 }
7396 return resultobj;
7397 fail:
7398 return NULL;
7399 }
7400
7401
7402 static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7403 PyObject *resultobj;
7404 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7405 bool result;
7406 PyObject * obj0 = 0 ;
7407 char *kwnames[] = {
7408 (char *) "self", NULL
7409 };
7410
7411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7414 {
7415 PyThreadState* __tstate = wxPyBeginAllowThreads();
7416 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7417
7418 wxPyEndAllowThreads(__tstate);
7419 if (PyErr_Occurred()) SWIG_fail;
7420 }
7421 {
7422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7423 }
7424 return resultobj;
7425 fail:
7426 return NULL;
7427 }
7428
7429
7430 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7431 PyObject *resultobj;
7432 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7433 bool result;
7434 PyObject * obj0 = 0 ;
7435 char *kwnames[] = {
7436 (char *) "self", NULL
7437 };
7438
7439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7442 {
7443 PyThreadState* __tstate = wxPyBeginAllowThreads();
7444 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7445
7446 wxPyEndAllowThreads(__tstate);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 }
7449 {
7450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7451 }
7452 return resultobj;
7453 fail:
7454 return NULL;
7455 }
7456
7457
7458 static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7459 PyObject *resultobj;
7460 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7461 bool result;
7462 PyObject * obj0 = 0 ;
7463 char *kwnames[] = {
7464 (char *) "self", NULL
7465 };
7466
7467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7470 {
7471 PyThreadState* __tstate = wxPyBeginAllowThreads();
7472 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7473
7474 wxPyEndAllowThreads(__tstate);
7475 if (PyErr_Occurred()) SWIG_fail;
7476 }
7477 {
7478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7479 }
7480 return resultobj;
7481 fail:
7482 return NULL;
7483 }
7484
7485
7486 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7487 PyObject *resultobj;
7488 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7489 bool result;
7490 PyObject * obj0 = 0 ;
7491 char *kwnames[] = {
7492 (char *) "self", NULL
7493 };
7494
7495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7498 {
7499 PyThreadState* __tstate = wxPyBeginAllowThreads();
7500 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7501
7502 wxPyEndAllowThreads(__tstate);
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
7505 {
7506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7507 }
7508 return resultobj;
7509 fail:
7510 return NULL;
7511 }
7512
7513
7514 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7515 PyObject *resultobj;
7516 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7517 bool result;
7518 PyObject * obj0 = 0 ;
7519 char *kwnames[] = {
7520 (char *) "self", NULL
7521 };
7522
7523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7526 {
7527 PyThreadState* __tstate = wxPyBeginAllowThreads();
7528 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7529
7530 wxPyEndAllowThreads(__tstate);
7531 if (PyErr_Occurred()) SWIG_fail;
7532 }
7533 {
7534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7535 }
7536 return resultobj;
7537 fail:
7538 return NULL;
7539 }
7540
7541
7542 static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
7543 PyObject *resultobj;
7544 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7545 long arg2 ;
7546 bool result;
7547 PyObject * obj0 = 0 ;
7548 PyObject * obj1 = 0 ;
7549 char *kwnames[] = {
7550 (char *) "self",(char *) "flag", NULL
7551 };
7552
7553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7556 arg2 = (long) SWIG_AsLong(obj1);
7557 if (PyErr_Occurred()) SWIG_fail;
7558 {
7559 PyThreadState* __tstate = wxPyBeginAllowThreads();
7560 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7561
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 {
7566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7567 }
7568 return resultobj;
7569 fail:
7570 return NULL;
7571 }
7572
7573
7574 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7575 PyObject *resultobj;
7576 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7577 wxColour *result;
7578 PyObject * obj0 = 0 ;
7579 char *kwnames[] = {
7580 (char *) "self", NULL
7581 };
7582
7583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7586 {
7587 PyThreadState* __tstate = wxPyBeginAllowThreads();
7588 {
7589 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7590 result = (wxColour *) &_result_ref;
7591 }
7592
7593 wxPyEndAllowThreads(__tstate);
7594 if (PyErr_Occurred()) SWIG_fail;
7595 }
7596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7597 return resultobj;
7598 fail:
7599 return NULL;
7600 }
7601
7602
7603 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7604 PyObject *resultobj;
7605 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7606 wxColour *result;
7607 PyObject * obj0 = 0 ;
7608 char *kwnames[] = {
7609 (char *) "self", NULL
7610 };
7611
7612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7615 {
7616 PyThreadState* __tstate = wxPyBeginAllowThreads();
7617 {
7618 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7619 result = (wxColour *) &_result_ref;
7620 }
7621
7622 wxPyEndAllowThreads(__tstate);
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7626 return resultobj;
7627 fail:
7628 return NULL;
7629 }
7630
7631
7632 static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7633 PyObject *resultobj;
7634 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7635 wxFont *result;
7636 PyObject * obj0 = 0 ;
7637 char *kwnames[] = {
7638 (char *) "self", NULL
7639 };
7640
7641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7644 {
7645 PyThreadState* __tstate = wxPyBeginAllowThreads();
7646 {
7647 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7648 result = (wxFont *) &_result_ref;
7649 }
7650
7651 wxPyEndAllowThreads(__tstate);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 {
7655 wxFont* resultptr = new wxFont(*result);
7656 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7657 }
7658 return resultobj;
7659 fail:
7660 return NULL;
7661 }
7662
7663
7664 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7665 PyObject *resultobj;
7666 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7667 int result;
7668 PyObject * obj0 = 0 ;
7669 char *kwnames[] = {
7670 (char *) "self", NULL
7671 };
7672
7673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7676 {
7677 PyThreadState* __tstate = wxPyBeginAllowThreads();
7678 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7679
7680 wxPyEndAllowThreads(__tstate);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 resultobj = SWIG_FromInt((int)result);
7684 return resultobj;
7685 fail:
7686 return NULL;
7687 }
7688
7689
7690 static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj;
7692 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7693 wxArrayInt *result;
7694 PyObject * obj0 = 0 ;
7695 char *kwnames[] = {
7696 (char *) "self", NULL
7697 };
7698
7699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7702 {
7703 PyThreadState* __tstate = wxPyBeginAllowThreads();
7704 {
7705 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7706 result = (wxArrayInt *) &_result_ref;
7707 }
7708
7709 wxPyEndAllowThreads(__tstate);
7710 if (PyErr_Occurred()) SWIG_fail;
7711 }
7712 {
7713 resultobj = PyList_New(0);
7714 size_t idx;
7715 for (idx = 0; idx < result->GetCount(); idx += 1) {
7716 PyObject* val = PyInt_FromLong( result->Item(idx) );
7717 PyList_Append(resultobj, val);
7718 Py_DECREF(val);
7719 }
7720 }
7721 return resultobj;
7722 fail:
7723 return NULL;
7724 }
7725
7726
7727 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7728 PyObject *resultobj;
7729 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7730 long result;
7731 PyObject * obj0 = 0 ;
7732 char *kwnames[] = {
7733 (char *) "self", NULL
7734 };
7735
7736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7739 {
7740 PyThreadState* __tstate = wxPyBeginAllowThreads();
7741 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7742
7743 wxPyEndAllowThreads(__tstate);
7744 if (PyErr_Occurred()) SWIG_fail;
7745 }
7746 resultobj = SWIG_FromLong((long)result);
7747 return resultobj;
7748 fail:
7749 return NULL;
7750 }
7751
7752
7753 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7754 PyObject *resultobj;
7755 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7756 long result;
7757 PyObject * obj0 = 0 ;
7758 char *kwnames[] = {
7759 (char *) "self", NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7765 {
7766 PyThreadState* __tstate = wxPyBeginAllowThreads();
7767 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7768
7769 wxPyEndAllowThreads(__tstate);
7770 if (PyErr_Occurred()) SWIG_fail;
7771 }
7772 resultobj = SWIG_FromLong((long)result);
7773 return resultobj;
7774 fail:
7775 return NULL;
7776 }
7777
7778
7779 static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7780 PyObject *resultobj;
7781 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7782 long result;
7783 PyObject * obj0 = 0 ;
7784 char *kwnames[] = {
7785 (char *) "self", NULL
7786 };
7787
7788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7791 {
7792 PyThreadState* __tstate = wxPyBeginAllowThreads();
7793 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7794
7795 wxPyEndAllowThreads(__tstate);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
7798 resultobj = SWIG_FromLong((long)result);
7799 return resultobj;
7800 fail:
7801 return NULL;
7802 }
7803
7804
7805 static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7806 PyObject *resultobj;
7807 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7808 bool result;
7809 PyObject * obj0 = 0 ;
7810 char *kwnames[] = {
7811 (char *) "self", NULL
7812 };
7813
7814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7817 {
7818 PyThreadState* __tstate = wxPyBeginAllowThreads();
7819 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7820
7821 wxPyEndAllowThreads(__tstate);
7822 if (PyErr_Occurred()) SWIG_fail;
7823 }
7824 {
7825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7826 }
7827 return resultobj;
7828 fail:
7829 return NULL;
7830 }
7831
7832
7833 static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7834 PyObject *resultobj;
7835 wxTextAttr *arg1 = 0 ;
7836 wxTextAttr *arg2 = 0 ;
7837 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7838 wxTextAttr result;
7839 PyObject * obj0 = 0 ;
7840 PyObject * obj1 = 0 ;
7841 PyObject * obj2 = 0 ;
7842 char *kwnames[] = {
7843 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7844 };
7845
7846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7848 SWIG_POINTER_EXCEPTION | 0)) == -1)
7849 SWIG_fail;
7850 if (arg1 == NULL) {
7851 PyErr_SetString(PyExc_TypeError,"null reference");
7852 SWIG_fail;
7853 }
7854 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7855 SWIG_POINTER_EXCEPTION | 0)) == -1)
7856 SWIG_fail;
7857 if (arg2 == NULL) {
7858 PyErr_SetString(PyExc_TypeError,"null reference");
7859 SWIG_fail;
7860 }
7861 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7863 {
7864 PyThreadState* __tstate = wxPyBeginAllowThreads();
7865 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7866
7867 wxPyEndAllowThreads(__tstate);
7868 if (PyErr_Occurred()) SWIG_fail;
7869 }
7870 {
7871 wxTextAttr * resultptr;
7872 resultptr = new wxTextAttr((wxTextAttr &) result);
7873 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7874 }
7875 return resultobj;
7876 fail:
7877 return NULL;
7878 }
7879
7880
7881 static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7882 PyObject *obj;
7883 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7884 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7885 Py_INCREF(obj);
7886 return Py_BuildValue((char *)"");
7887 }
7888 static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7889 PyObject *resultobj;
7890 wxWindow *arg1 = (wxWindow *) 0 ;
7891 int arg2 ;
7892 wxString const &arg3_defvalue = wxPyEmptyString ;
7893 wxString *arg3 = (wxString *) &arg3_defvalue ;
7894 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7895 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7896 wxSize const &arg5_defvalue = wxDefaultSize ;
7897 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7898 long arg6 = (long) 0 ;
7899 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7900 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7901 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7902 wxString *arg8 = (wxString *) &arg8_defvalue ;
7903 wxTextCtrl *result;
7904 bool temp3 = False ;
7905 wxPoint temp4 ;
7906 wxSize temp5 ;
7907 bool temp8 = False ;
7908 PyObject * obj0 = 0 ;
7909 PyObject * obj1 = 0 ;
7910 PyObject * obj2 = 0 ;
7911 PyObject * obj3 = 0 ;
7912 PyObject * obj4 = 0 ;
7913 PyObject * obj5 = 0 ;
7914 PyObject * obj6 = 0 ;
7915 PyObject * obj7 = 0 ;
7916 char *kwnames[] = {
7917 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7918 };
7919
7920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7923 arg2 = (int) SWIG_AsInt(obj1);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 if (obj2) {
7926 {
7927 arg3 = wxString_in_helper(obj2);
7928 if (arg3 == NULL) SWIG_fail;
7929 temp3 = True;
7930 }
7931 }
7932 if (obj3) {
7933 {
7934 arg4 = &temp4;
7935 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7936 }
7937 }
7938 if (obj4) {
7939 {
7940 arg5 = &temp5;
7941 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7942 }
7943 }
7944 if (obj5) {
7945 arg6 = (long) SWIG_AsLong(obj5);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 if (obj6) {
7949 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7950 SWIG_POINTER_EXCEPTION | 0)) == -1)
7951 SWIG_fail;
7952 if (arg7 == NULL) {
7953 PyErr_SetString(PyExc_TypeError,"null reference");
7954 SWIG_fail;
7955 }
7956 }
7957 if (obj7) {
7958 {
7959 arg8 = wxString_in_helper(obj7);
7960 if (arg8 == NULL) SWIG_fail;
7961 temp8 = True;
7962 }
7963 }
7964 {
7965 PyThreadState* __tstate = wxPyBeginAllowThreads();
7966 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7967
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 {
7972 resultobj = wxPyMake_wxObject(result);
7973 }
7974 {
7975 if (temp3)
7976 delete arg3;
7977 }
7978 {
7979 if (temp8)
7980 delete arg8;
7981 }
7982 return resultobj;
7983 fail:
7984 {
7985 if (temp3)
7986 delete arg3;
7987 }
7988 {
7989 if (temp8)
7990 delete arg8;
7991 }
7992 return NULL;
7993 }
7994
7995
7996 static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7997 PyObject *resultobj;
7998 wxTextCtrl *result;
7999 char *kwnames[] = {
8000 NULL
8001 };
8002
8003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8004 {
8005 PyThreadState* __tstate = wxPyBeginAllowThreads();
8006 result = (wxTextCtrl *)new wxTextCtrl();
8007
8008 wxPyEndAllowThreads(__tstate);
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 {
8012 resultobj = wxPyMake_wxObject(result);
8013 }
8014 return resultobj;
8015 fail:
8016 return NULL;
8017 }
8018
8019
8020 static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8021 PyObject *resultobj;
8022 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8023 wxWindow *arg2 = (wxWindow *) 0 ;
8024 int arg3 ;
8025 wxString const &arg4_defvalue = wxPyEmptyString ;
8026 wxString *arg4 = (wxString *) &arg4_defvalue ;
8027 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8028 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8029 wxSize const &arg6_defvalue = wxDefaultSize ;
8030 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8031 long arg7 = (long) 0 ;
8032 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8033 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8034 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8035 wxString *arg9 = (wxString *) &arg9_defvalue ;
8036 bool result;
8037 bool temp4 = False ;
8038 wxPoint temp5 ;
8039 wxSize temp6 ;
8040 bool temp9 = False ;
8041 PyObject * obj0 = 0 ;
8042 PyObject * obj1 = 0 ;
8043 PyObject * obj2 = 0 ;
8044 PyObject * obj3 = 0 ;
8045 PyObject * obj4 = 0 ;
8046 PyObject * obj5 = 0 ;
8047 PyObject * obj6 = 0 ;
8048 PyObject * obj7 = 0 ;
8049 PyObject * obj8 = 0 ;
8050 char *kwnames[] = {
8051 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8052 };
8053
8054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8057 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8059 arg3 = (int) SWIG_AsInt(obj2);
8060 if (PyErr_Occurred()) SWIG_fail;
8061 if (obj3) {
8062 {
8063 arg4 = wxString_in_helper(obj3);
8064 if (arg4 == NULL) SWIG_fail;
8065 temp4 = True;
8066 }
8067 }
8068 if (obj4) {
8069 {
8070 arg5 = &temp5;
8071 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8072 }
8073 }
8074 if (obj5) {
8075 {
8076 arg6 = &temp6;
8077 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8078 }
8079 }
8080 if (obj6) {
8081 arg7 = (long) SWIG_AsLong(obj6);
8082 if (PyErr_Occurred()) SWIG_fail;
8083 }
8084 if (obj7) {
8085 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8086 SWIG_POINTER_EXCEPTION | 0)) == -1)
8087 SWIG_fail;
8088 if (arg8 == NULL) {
8089 PyErr_SetString(PyExc_TypeError,"null reference");
8090 SWIG_fail;
8091 }
8092 }
8093 if (obj8) {
8094 {
8095 arg9 = wxString_in_helper(obj8);
8096 if (arg9 == NULL) SWIG_fail;
8097 temp9 = True;
8098 }
8099 }
8100 {
8101 PyThreadState* __tstate = wxPyBeginAllowThreads();
8102 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8103
8104 wxPyEndAllowThreads(__tstate);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 {
8108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8109 }
8110 {
8111 if (temp4)
8112 delete arg4;
8113 }
8114 {
8115 if (temp9)
8116 delete arg9;
8117 }
8118 return resultobj;
8119 fail:
8120 {
8121 if (temp4)
8122 delete arg4;
8123 }
8124 {
8125 if (temp9)
8126 delete arg9;
8127 }
8128 return NULL;
8129 }
8130
8131
8132 static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8133 PyObject *resultobj;
8134 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8135 wxString result;
8136 PyObject * obj0 = 0 ;
8137 char *kwnames[] = {
8138 (char *) "self", NULL
8139 };
8140
8141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = ((wxTextCtrl const *)arg1)->GetValue();
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 {
8152 #if wxUSE_UNICODE
8153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8154 #else
8155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8156 #endif
8157 }
8158 return resultobj;
8159 fail:
8160 return NULL;
8161 }
8162
8163
8164 static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8165 PyObject *resultobj;
8166 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8167 wxString *arg2 = 0 ;
8168 bool temp2 = False ;
8169 PyObject * obj0 = 0 ;
8170 PyObject * obj1 = 0 ;
8171 char *kwnames[] = {
8172 (char *) "self",(char *) "value", NULL
8173 };
8174
8175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8178 {
8179 arg2 = wxString_in_helper(obj1);
8180 if (arg2 == NULL) SWIG_fail;
8181 temp2 = True;
8182 }
8183 {
8184 PyThreadState* __tstate = wxPyBeginAllowThreads();
8185 (arg1)->SetValue((wxString const &)*arg2);
8186
8187 wxPyEndAllowThreads(__tstate);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 Py_INCREF(Py_None); resultobj = Py_None;
8191 {
8192 if (temp2)
8193 delete arg2;
8194 }
8195 return resultobj;
8196 fail:
8197 {
8198 if (temp2)
8199 delete arg2;
8200 }
8201 return NULL;
8202 }
8203
8204
8205 static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8206 PyObject *resultobj;
8207 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8208 long arg2 ;
8209 long arg3 ;
8210 wxString result;
8211 PyObject * obj0 = 0 ;
8212 PyObject * obj1 = 0 ;
8213 PyObject * obj2 = 0 ;
8214 char *kwnames[] = {
8215 (char *) "self",(char *) "from",(char *) "to", NULL
8216 };
8217
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8221 arg2 = (long) SWIG_AsLong(obj1);
8222 if (PyErr_Occurred()) SWIG_fail;
8223 arg3 = (long) SWIG_AsLong(obj2);
8224 if (PyErr_Occurred()) SWIG_fail;
8225 {
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8228
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 {
8233 #if wxUSE_UNICODE
8234 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8235 #else
8236 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8237 #endif
8238 }
8239 return resultobj;
8240 fail:
8241 return NULL;
8242 }
8243
8244
8245 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8246 PyObject *resultobj;
8247 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8248 long arg2 ;
8249 int result;
8250 PyObject * obj0 = 0 ;
8251 PyObject * obj1 = 0 ;
8252 char *kwnames[] = {
8253 (char *) "self",(char *) "lineNo", NULL
8254 };
8255
8256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8259 arg2 = (long) SWIG_AsLong(obj1);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 {
8262 PyThreadState* __tstate = wxPyBeginAllowThreads();
8263 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8264
8265 wxPyEndAllowThreads(__tstate);
8266 if (PyErr_Occurred()) SWIG_fail;
8267 }
8268 resultobj = SWIG_FromInt((int)result);
8269 return resultobj;
8270 fail:
8271 return NULL;
8272 }
8273
8274
8275 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
8276 PyObject *resultobj;
8277 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8278 long arg2 ;
8279 wxString result;
8280 PyObject * obj0 = 0 ;
8281 PyObject * obj1 = 0 ;
8282 char *kwnames[] = {
8283 (char *) "self",(char *) "lineNo", NULL
8284 };
8285
8286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8289 arg2 = (long) SWIG_AsLong(obj1);
8290 if (PyErr_Occurred()) SWIG_fail;
8291 {
8292 PyThreadState* __tstate = wxPyBeginAllowThreads();
8293 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8294
8295 wxPyEndAllowThreads(__tstate);
8296 if (PyErr_Occurred()) SWIG_fail;
8297 }
8298 {
8299 #if wxUSE_UNICODE
8300 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8301 #else
8302 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8303 #endif
8304 }
8305 return resultobj;
8306 fail:
8307 return NULL;
8308 }
8309
8310
8311 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj;
8313 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8314 int result;
8315 PyObject * obj0 = 0 ;
8316 char *kwnames[] = {
8317 (char *) "self", NULL
8318 };
8319
8320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8323 {
8324 PyThreadState* __tstate = wxPyBeginAllowThreads();
8325 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8326
8327 wxPyEndAllowThreads(__tstate);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 resultobj = SWIG_FromInt((int)result);
8331 return resultobj;
8332 fail:
8333 return NULL;
8334 }
8335
8336
8337 static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
8338 PyObject *resultobj;
8339 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8340 bool result;
8341 PyObject * obj0 = 0 ;
8342 char *kwnames[] = {
8343 (char *) "self", NULL
8344 };
8345
8346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8349 {
8350 PyThreadState* __tstate = wxPyBeginAllowThreads();
8351 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8352
8353 wxPyEndAllowThreads(__tstate);
8354 if (PyErr_Occurred()) SWIG_fail;
8355 }
8356 {
8357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8358 }
8359 return resultobj;
8360 fail:
8361 return NULL;
8362 }
8363
8364
8365 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8366 PyObject *resultobj;
8367 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8368 bool result;
8369 PyObject * obj0 = 0 ;
8370 char *kwnames[] = {
8371 (char *) "self", NULL
8372 };
8373
8374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8377 {
8378 PyThreadState* __tstate = wxPyBeginAllowThreads();
8379 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8380
8381 wxPyEndAllowThreads(__tstate);
8382 if (PyErr_Occurred()) SWIG_fail;
8383 }
8384 {
8385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8386 }
8387 return resultobj;
8388 fail:
8389 return NULL;
8390 }
8391
8392
8393 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8394 PyObject *resultobj;
8395 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8396 bool result;
8397 PyObject * obj0 = 0 ;
8398 char *kwnames[] = {
8399 (char *) "self", NULL
8400 };
8401
8402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8405 {
8406 PyThreadState* __tstate = wxPyBeginAllowThreads();
8407 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8408
8409 wxPyEndAllowThreads(__tstate);
8410 if (PyErr_Occurred()) SWIG_fail;
8411 }
8412 {
8413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8414 }
8415 return resultobj;
8416 fail:
8417 return NULL;
8418 }
8419
8420
8421 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8422 PyObject *resultobj;
8423 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8424 bool result;
8425 PyObject * obj0 = 0 ;
8426 char *kwnames[] = {
8427 (char *) "self", NULL
8428 };
8429
8430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8433 {
8434 PyThreadState* __tstate = wxPyBeginAllowThreads();
8435 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8436
8437 wxPyEndAllowThreads(__tstate);
8438 if (PyErr_Occurred()) SWIG_fail;
8439 }
8440 {
8441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8442 }
8443 return resultobj;
8444 fail:
8445 return NULL;
8446 }
8447
8448
8449 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8450 PyObject *resultobj;
8451 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8452 long *arg2 = (long *) 0 ;
8453 long *arg3 = (long *) 0 ;
8454 long temp2 ;
8455 long temp3 ;
8456 PyObject * obj0 = 0 ;
8457 char *kwnames[] = {
8458 (char *) "self", NULL
8459 };
8460
8461 arg2 = &temp2;
8462 arg3 = &temp3;
8463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8466 {
8467 PyThreadState* __tstate = wxPyBeginAllowThreads();
8468 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8469
8470 wxPyEndAllowThreads(__tstate);
8471 if (PyErr_Occurred()) SWIG_fail;
8472 }
8473 Py_INCREF(Py_None); resultobj = Py_None;
8474 {
8475 PyObject *o = PyInt_FromLong((long) (*arg2));
8476 resultobj = t_output_helper(resultobj,o);
8477 }
8478 {
8479 PyObject *o = PyInt_FromLong((long) (*arg3));
8480 resultobj = t_output_helper(resultobj,o);
8481 }
8482 return resultobj;
8483 fail:
8484 return NULL;
8485 }
8486
8487
8488 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8489 PyObject *resultobj;
8490 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8491 wxString result;
8492 PyObject * obj0 = 0 ;
8493 char *kwnames[] = {
8494 (char *) "self", NULL
8495 };
8496
8497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8500 {
8501 PyThreadState* __tstate = wxPyBeginAllowThreads();
8502 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8503
8504 wxPyEndAllowThreads(__tstate);
8505 if (PyErr_Occurred()) SWIG_fail;
8506 }
8507 {
8508 #if wxUSE_UNICODE
8509 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8510 #else
8511 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8512 #endif
8513 }
8514 return resultobj;
8515 fail:
8516 return NULL;
8517 }
8518
8519
8520 static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8521 PyObject *resultobj;
8522 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8523 PyObject * obj0 = 0 ;
8524 char *kwnames[] = {
8525 (char *) "self", NULL
8526 };
8527
8528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8531 {
8532 PyThreadState* __tstate = wxPyBeginAllowThreads();
8533 (arg1)->Clear();
8534
8535 wxPyEndAllowThreads(__tstate);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 }
8538 Py_INCREF(Py_None); resultobj = Py_None;
8539 return resultobj;
8540 fail:
8541 return NULL;
8542 }
8543
8544
8545 static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8546 PyObject *resultobj;
8547 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8548 long arg2 ;
8549 long arg3 ;
8550 wxString *arg4 = 0 ;
8551 bool temp4 = False ;
8552 PyObject * obj0 = 0 ;
8553 PyObject * obj1 = 0 ;
8554 PyObject * obj2 = 0 ;
8555 PyObject * obj3 = 0 ;
8556 char *kwnames[] = {
8557 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8558 };
8559
8560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8563 arg2 = (long) SWIG_AsLong(obj1);
8564 if (PyErr_Occurred()) SWIG_fail;
8565 arg3 = (long) SWIG_AsLong(obj2);
8566 if (PyErr_Occurred()) SWIG_fail;
8567 {
8568 arg4 = wxString_in_helper(obj3);
8569 if (arg4 == NULL) SWIG_fail;
8570 temp4 = True;
8571 }
8572 {
8573 PyThreadState* __tstate = wxPyBeginAllowThreads();
8574 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8575
8576 wxPyEndAllowThreads(__tstate);
8577 if (PyErr_Occurred()) SWIG_fail;
8578 }
8579 Py_INCREF(Py_None); resultobj = Py_None;
8580 {
8581 if (temp4)
8582 delete arg4;
8583 }
8584 return resultobj;
8585 fail:
8586 {
8587 if (temp4)
8588 delete arg4;
8589 }
8590 return NULL;
8591 }
8592
8593
8594 static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8595 PyObject *resultobj;
8596 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8597 long arg2 ;
8598 long arg3 ;
8599 PyObject * obj0 = 0 ;
8600 PyObject * obj1 = 0 ;
8601 PyObject * obj2 = 0 ;
8602 char *kwnames[] = {
8603 (char *) "self",(char *) "from",(char *) "to", NULL
8604 };
8605
8606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8609 arg2 = (long) SWIG_AsLong(obj1);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 arg3 = (long) SWIG_AsLong(obj2);
8612 if (PyErr_Occurred()) SWIG_fail;
8613 {
8614 PyThreadState* __tstate = wxPyBeginAllowThreads();
8615 (arg1)->Remove(arg2,arg3);
8616
8617 wxPyEndAllowThreads(__tstate);
8618 if (PyErr_Occurred()) SWIG_fail;
8619 }
8620 Py_INCREF(Py_None); resultobj = Py_None;
8621 return resultobj;
8622 fail:
8623 return NULL;
8624 }
8625
8626
8627 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8628 PyObject *resultobj;
8629 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8630 wxString *arg2 = 0 ;
8631 bool result;
8632 bool temp2 = False ;
8633 PyObject * obj0 = 0 ;
8634 PyObject * obj1 = 0 ;
8635 char *kwnames[] = {
8636 (char *) "self",(char *) "file", NULL
8637 };
8638
8639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8642 {
8643 arg2 = wxString_in_helper(obj1);
8644 if (arg2 == NULL) SWIG_fail;
8645 temp2 = True;
8646 }
8647 {
8648 PyThreadState* __tstate = wxPyBeginAllowThreads();
8649 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8650
8651 wxPyEndAllowThreads(__tstate);
8652 if (PyErr_Occurred()) SWIG_fail;
8653 }
8654 {
8655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8656 }
8657 {
8658 if (temp2)
8659 delete arg2;
8660 }
8661 return resultobj;
8662 fail:
8663 {
8664 if (temp2)
8665 delete arg2;
8666 }
8667 return NULL;
8668 }
8669
8670
8671 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8672 PyObject *resultobj;
8673 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8674 wxString const &arg2_defvalue = wxPyEmptyString ;
8675 wxString *arg2 = (wxString *) &arg2_defvalue ;
8676 bool result;
8677 bool temp2 = False ;
8678 PyObject * obj0 = 0 ;
8679 PyObject * obj1 = 0 ;
8680 char *kwnames[] = {
8681 (char *) "self",(char *) "file", NULL
8682 };
8683
8684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8687 if (obj1) {
8688 {
8689 arg2 = wxString_in_helper(obj1);
8690 if (arg2 == NULL) SWIG_fail;
8691 temp2 = True;
8692 }
8693 }
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8697
8698 wxPyEndAllowThreads(__tstate);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 {
8702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8703 }
8704 {
8705 if (temp2)
8706 delete arg2;
8707 }
8708 return resultobj;
8709 fail:
8710 {
8711 if (temp2)
8712 delete arg2;
8713 }
8714 return NULL;
8715 }
8716
8717
8718 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj;
8720 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8721 PyObject * obj0 = 0 ;
8722 char *kwnames[] = {
8723 (char *) "self", NULL
8724 };
8725
8726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 (arg1)->MarkDirty();
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 Py_INCREF(Py_None); resultobj = Py_None;
8737 return resultobj;
8738 fail:
8739 return NULL;
8740 }
8741
8742
8743 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8744 PyObject *resultobj;
8745 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8746 PyObject * obj0 = 0 ;
8747 char *kwnames[] = {
8748 (char *) "self", NULL
8749 };
8750
8751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8754 {
8755 PyThreadState* __tstate = wxPyBeginAllowThreads();
8756 (arg1)->DiscardEdits();
8757
8758 wxPyEndAllowThreads(__tstate);
8759 if (PyErr_Occurred()) SWIG_fail;
8760 }
8761 Py_INCREF(Py_None); resultobj = Py_None;
8762 return resultobj;
8763 fail:
8764 return NULL;
8765 }
8766
8767
8768 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8769 PyObject *resultobj;
8770 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8771 unsigned long arg2 ;
8772 PyObject * obj0 = 0 ;
8773 PyObject * obj1 = 0 ;
8774 char *kwnames[] = {
8775 (char *) "self",(char *) "len", NULL
8776 };
8777
8778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8781 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 {
8784 PyThreadState* __tstate = wxPyBeginAllowThreads();
8785 (arg1)->SetMaxLength(arg2);
8786
8787 wxPyEndAllowThreads(__tstate);
8788 if (PyErr_Occurred()) SWIG_fail;
8789 }
8790 Py_INCREF(Py_None); resultobj = Py_None;
8791 return resultobj;
8792 fail:
8793 return NULL;
8794 }
8795
8796
8797 static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8798 PyObject *resultobj;
8799 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8800 wxString *arg2 = 0 ;
8801 bool temp2 = False ;
8802 PyObject * obj0 = 0 ;
8803 PyObject * obj1 = 0 ;
8804 char *kwnames[] = {
8805 (char *) "self",(char *) "text", NULL
8806 };
8807
8808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8811 {
8812 arg2 = wxString_in_helper(obj1);
8813 if (arg2 == NULL) SWIG_fail;
8814 temp2 = True;
8815 }
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 (arg1)->WriteText((wxString const &)*arg2);
8819
8820 wxPyEndAllowThreads(__tstate);
8821 if (PyErr_Occurred()) SWIG_fail;
8822 }
8823 Py_INCREF(Py_None); resultobj = Py_None;
8824 {
8825 if (temp2)
8826 delete arg2;
8827 }
8828 return resultobj;
8829 fail:
8830 {
8831 if (temp2)
8832 delete arg2;
8833 }
8834 return NULL;
8835 }
8836
8837
8838 static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8839 PyObject *resultobj;
8840 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8841 wxString *arg2 = 0 ;
8842 bool temp2 = False ;
8843 PyObject * obj0 = 0 ;
8844 PyObject * obj1 = 0 ;
8845 char *kwnames[] = {
8846 (char *) "self",(char *) "text", NULL
8847 };
8848
8849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8852 {
8853 arg2 = wxString_in_helper(obj1);
8854 if (arg2 == NULL) SWIG_fail;
8855 temp2 = True;
8856 }
8857 {
8858 PyThreadState* __tstate = wxPyBeginAllowThreads();
8859 (arg1)->AppendText((wxString const &)*arg2);
8860
8861 wxPyEndAllowThreads(__tstate);
8862 if (PyErr_Occurred()) SWIG_fail;
8863 }
8864 Py_INCREF(Py_None); resultobj = Py_None;
8865 {
8866 if (temp2)
8867 delete arg2;
8868 }
8869 return resultobj;
8870 fail:
8871 {
8872 if (temp2)
8873 delete arg2;
8874 }
8875 return NULL;
8876 }
8877
8878
8879 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8880 PyObject *resultobj;
8881 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8882 wxKeyEvent *arg2 = 0 ;
8883 bool result;
8884 PyObject * obj0 = 0 ;
8885 PyObject * obj1 = 0 ;
8886 char *kwnames[] = {
8887 (char *) "self",(char *) "event", NULL
8888 };
8889
8890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8893 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8894 SWIG_POINTER_EXCEPTION | 0)) == -1)
8895 SWIG_fail;
8896 if (arg2 == NULL) {
8897 PyErr_SetString(PyExc_TypeError,"null reference");
8898 SWIG_fail;
8899 }
8900 {
8901 PyThreadState* __tstate = wxPyBeginAllowThreads();
8902 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8903
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 {
8908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8909 }
8910 return resultobj;
8911 fail:
8912 return NULL;
8913 }
8914
8915
8916 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8917 PyObject *resultobj;
8918 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8919 long arg2 ;
8920 long arg3 ;
8921 wxTextAttr *arg4 = 0 ;
8922 bool result;
8923 PyObject * obj0 = 0 ;
8924 PyObject * obj1 = 0 ;
8925 PyObject * obj2 = 0 ;
8926 PyObject * obj3 = 0 ;
8927 char *kwnames[] = {
8928 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8929 };
8930
8931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8934 arg2 = (long) SWIG_AsLong(obj1);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 arg3 = (long) SWIG_AsLong(obj2);
8937 if (PyErr_Occurred()) SWIG_fail;
8938 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8939 SWIG_POINTER_EXCEPTION | 0)) == -1)
8940 SWIG_fail;
8941 if (arg4 == NULL) {
8942 PyErr_SetString(PyExc_TypeError,"null reference");
8943 SWIG_fail;
8944 }
8945 {
8946 PyThreadState* __tstate = wxPyBeginAllowThreads();
8947 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8948
8949 wxPyEndAllowThreads(__tstate);
8950 if (PyErr_Occurred()) SWIG_fail;
8951 }
8952 {
8953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8954 }
8955 return resultobj;
8956 fail:
8957 return NULL;
8958 }
8959
8960
8961 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8962 PyObject *resultobj;
8963 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8964 long arg2 ;
8965 wxTextAttr *arg3 = 0 ;
8966 bool result;
8967 PyObject * obj0 = 0 ;
8968 PyObject * obj1 = 0 ;
8969 PyObject * obj2 = 0 ;
8970 char *kwnames[] = {
8971 (char *) "self",(char *) "position",(char *) "style", NULL
8972 };
8973
8974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8977 arg2 = (long) SWIG_AsLong(obj1);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
8980 SWIG_POINTER_EXCEPTION | 0)) == -1)
8981 SWIG_fail;
8982 if (arg3 == NULL) {
8983 PyErr_SetString(PyExc_TypeError,"null reference");
8984 SWIG_fail;
8985 }
8986 {
8987 PyThreadState* __tstate = wxPyBeginAllowThreads();
8988 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8989
8990 wxPyEndAllowThreads(__tstate);
8991 if (PyErr_Occurred()) SWIG_fail;
8992 }
8993 {
8994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8995 }
8996 return resultobj;
8997 fail:
8998 return NULL;
8999 }
9000
9001
9002 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9003 PyObject *resultobj;
9004 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9005 wxTextAttr *arg2 = 0 ;
9006 bool result;
9007 PyObject * obj0 = 0 ;
9008 PyObject * obj1 = 0 ;
9009 char *kwnames[] = {
9010 (char *) "self",(char *) "style", NULL
9011 };
9012
9013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9016 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9017 SWIG_POINTER_EXCEPTION | 0)) == -1)
9018 SWIG_fail;
9019 if (arg2 == NULL) {
9020 PyErr_SetString(PyExc_TypeError,"null reference");
9021 SWIG_fail;
9022 }
9023 {
9024 PyThreadState* __tstate = wxPyBeginAllowThreads();
9025 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9026
9027 wxPyEndAllowThreads(__tstate);
9028 if (PyErr_Occurred()) SWIG_fail;
9029 }
9030 {
9031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9032 }
9033 return resultobj;
9034 fail:
9035 return NULL;
9036 }
9037
9038
9039 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9040 PyObject *resultobj;
9041 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9042 wxTextAttr *result;
9043 PyObject * obj0 = 0 ;
9044 char *kwnames[] = {
9045 (char *) "self", NULL
9046 };
9047
9048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9051 {
9052 PyThreadState* __tstate = wxPyBeginAllowThreads();
9053 {
9054 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9055 result = (wxTextAttr *) &_result_ref;
9056 }
9057
9058 wxPyEndAllowThreads(__tstate);
9059 if (PyErr_Occurred()) SWIG_fail;
9060 }
9061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9062 return resultobj;
9063 fail:
9064 return NULL;
9065 }
9066
9067
9068 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9069 PyObject *resultobj;
9070 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9071 long arg2 ;
9072 long arg3 ;
9073 long result;
9074 PyObject * obj0 = 0 ;
9075 PyObject * obj1 = 0 ;
9076 PyObject * obj2 = 0 ;
9077 char *kwnames[] = {
9078 (char *) "self",(char *) "x",(char *) "y", NULL
9079 };
9080
9081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9084 arg2 = (long) SWIG_AsLong(obj1);
9085 if (PyErr_Occurred()) SWIG_fail;
9086 arg3 = (long) SWIG_AsLong(obj2);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 {
9089 PyThreadState* __tstate = wxPyBeginAllowThreads();
9090 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9091
9092 wxPyEndAllowThreads(__tstate);
9093 if (PyErr_Occurred()) SWIG_fail;
9094 }
9095 resultobj = SWIG_FromLong((long)result);
9096 return resultobj;
9097 fail:
9098 return NULL;
9099 }
9100
9101
9102 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj;
9104 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9105 long arg2 ;
9106 long *arg3 = (long *) 0 ;
9107 long *arg4 = (long *) 0 ;
9108 long temp3 ;
9109 long temp4 ;
9110 PyObject * obj0 = 0 ;
9111 PyObject * obj1 = 0 ;
9112 char *kwnames[] = {
9113 (char *) "self",(char *) "pos", NULL
9114 };
9115
9116 arg3 = &temp3;
9117 arg4 = &temp4;
9118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9121 arg2 = (long) SWIG_AsLong(obj1);
9122 if (PyErr_Occurred()) SWIG_fail;
9123 {
9124 PyThreadState* __tstate = wxPyBeginAllowThreads();
9125 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9126
9127 wxPyEndAllowThreads(__tstate);
9128 if (PyErr_Occurred()) SWIG_fail;
9129 }
9130 Py_INCREF(Py_None); resultobj = Py_None;
9131 {
9132 PyObject *o = PyInt_FromLong((long) (*arg3));
9133 resultobj = t_output_helper(resultobj,o);
9134 }
9135 {
9136 PyObject *o = PyInt_FromLong((long) (*arg4));
9137 resultobj = t_output_helper(resultobj,o);
9138 }
9139 return resultobj;
9140 fail:
9141 return NULL;
9142 }
9143
9144
9145 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9146 PyObject *resultobj;
9147 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9148 long arg2 ;
9149 PyObject * obj0 = 0 ;
9150 PyObject * obj1 = 0 ;
9151 char *kwnames[] = {
9152 (char *) "self",(char *) "pos", NULL
9153 };
9154
9155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9158 arg2 = (long) SWIG_AsLong(obj1);
9159 if (PyErr_Occurred()) SWIG_fail;
9160 {
9161 PyThreadState* __tstate = wxPyBeginAllowThreads();
9162 (arg1)->ShowPosition(arg2);
9163
9164 wxPyEndAllowThreads(__tstate);
9165 if (PyErr_Occurred()) SWIG_fail;
9166 }
9167 Py_INCREF(Py_None); resultobj = Py_None;
9168 return resultobj;
9169 fail:
9170 return NULL;
9171 }
9172
9173
9174 static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
9175 PyObject *resultobj;
9176 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9177 wxPoint *arg2 = 0 ;
9178 long *arg3 = (long *) 0 ;
9179 long *arg4 = (long *) 0 ;
9180 int result;
9181 wxPoint temp2 ;
9182 long temp3 ;
9183 long temp4 ;
9184 PyObject * obj0 = 0 ;
9185 PyObject * obj1 = 0 ;
9186 char *kwnames[] = {
9187 (char *) "self",(char *) "pt", NULL
9188 };
9189
9190 arg3 = &temp3;
9191 arg4 = &temp4;
9192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9195 {
9196 arg2 = &temp2;
9197 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9198 }
9199 {
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9202
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 resultobj = SWIG_FromInt((int)result);
9207 {
9208 PyObject *o = PyInt_FromLong((long) (*arg3));
9209 resultobj = t_output_helper(resultobj,o);
9210 }
9211 {
9212 PyObject *o = PyInt_FromLong((long) (*arg4));
9213 resultobj = t_output_helper(resultobj,o);
9214 }
9215 return resultobj;
9216 fail:
9217 return NULL;
9218 }
9219
9220
9221 static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
9222 PyObject *resultobj;
9223 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9224 PyObject * obj0 = 0 ;
9225 char *kwnames[] = {
9226 (char *) "self", NULL
9227 };
9228
9229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9232 {
9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
9234 (arg1)->Copy();
9235
9236 wxPyEndAllowThreads(__tstate);
9237 if (PyErr_Occurred()) SWIG_fail;
9238 }
9239 Py_INCREF(Py_None); resultobj = Py_None;
9240 return resultobj;
9241 fail:
9242 return NULL;
9243 }
9244
9245
9246 static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
9247 PyObject *resultobj;
9248 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9249 PyObject * obj0 = 0 ;
9250 char *kwnames[] = {
9251 (char *) "self", NULL
9252 };
9253
9254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9257 {
9258 PyThreadState* __tstate = wxPyBeginAllowThreads();
9259 (arg1)->Cut();
9260
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 Py_INCREF(Py_None); resultobj = Py_None;
9265 return resultobj;
9266 fail:
9267 return NULL;
9268 }
9269
9270
9271 static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj;
9273 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9274 PyObject * obj0 = 0 ;
9275 char *kwnames[] = {
9276 (char *) "self", NULL
9277 };
9278
9279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 (arg1)->Paste();
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_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
9297 PyObject *resultobj;
9298 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9299 bool result;
9300 PyObject * obj0 = 0 ;
9301 char *kwnames[] = {
9302 (char *) "self", NULL
9303 };
9304
9305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9308 {
9309 PyThreadState* __tstate = wxPyBeginAllowThreads();
9310 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9311
9312 wxPyEndAllowThreads(__tstate);
9313 if (PyErr_Occurred()) SWIG_fail;
9314 }
9315 {
9316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9317 }
9318 return resultobj;
9319 fail:
9320 return NULL;
9321 }
9322
9323
9324 static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
9325 PyObject *resultobj;
9326 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9327 bool result;
9328 PyObject * obj0 = 0 ;
9329 char *kwnames[] = {
9330 (char *) "self", NULL
9331 };
9332
9333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9336 {
9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
9338 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9339
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 {
9344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9345 }
9346 return resultobj;
9347 fail:
9348 return NULL;
9349 }
9350
9351
9352 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj;
9354 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9355 bool result;
9356 PyObject * obj0 = 0 ;
9357 char *kwnames[] = {
9358 (char *) "self", NULL
9359 };
9360
9361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 {
9372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9373 }
9374 return resultobj;
9375 fail:
9376 return NULL;
9377 }
9378
9379
9380 static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
9381 PyObject *resultobj;
9382 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9383 PyObject * obj0 = 0 ;
9384 char *kwnames[] = {
9385 (char *) "self", NULL
9386 };
9387
9388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9391 {
9392 PyThreadState* __tstate = wxPyBeginAllowThreads();
9393 (arg1)->Undo();
9394
9395 wxPyEndAllowThreads(__tstate);
9396 if (PyErr_Occurred()) SWIG_fail;
9397 }
9398 Py_INCREF(Py_None); resultobj = Py_None;
9399 return resultobj;
9400 fail:
9401 return NULL;
9402 }
9403
9404
9405 static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
9406 PyObject *resultobj;
9407 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9408 PyObject * obj0 = 0 ;
9409 char *kwnames[] = {
9410 (char *) "self", NULL
9411 };
9412
9413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9416 {
9417 PyThreadState* __tstate = wxPyBeginAllowThreads();
9418 (arg1)->Redo();
9419
9420 wxPyEndAllowThreads(__tstate);
9421 if (PyErr_Occurred()) SWIG_fail;
9422 }
9423 Py_INCREF(Py_None); resultobj = Py_None;
9424 return resultobj;
9425 fail:
9426 return NULL;
9427 }
9428
9429
9430 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
9431 PyObject *resultobj;
9432 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9433 bool result;
9434 PyObject * obj0 = 0 ;
9435 char *kwnames[] = {
9436 (char *) "self", NULL
9437 };
9438
9439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9442 {
9443 PyThreadState* __tstate = wxPyBeginAllowThreads();
9444 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9445
9446 wxPyEndAllowThreads(__tstate);
9447 if (PyErr_Occurred()) SWIG_fail;
9448 }
9449 {
9450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9451 }
9452 return resultobj;
9453 fail:
9454 return NULL;
9455 }
9456
9457
9458 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
9459 PyObject *resultobj;
9460 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9461 bool result;
9462 PyObject * obj0 = 0 ;
9463 char *kwnames[] = {
9464 (char *) "self", NULL
9465 };
9466
9467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9470 {
9471 PyThreadState* __tstate = wxPyBeginAllowThreads();
9472 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9473
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 {
9478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9479 }
9480 return resultobj;
9481 fail:
9482 return NULL;
9483 }
9484
9485
9486 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9487 PyObject *resultobj;
9488 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9489 long arg2 ;
9490 PyObject * obj0 = 0 ;
9491 PyObject * obj1 = 0 ;
9492 char *kwnames[] = {
9493 (char *) "self",(char *) "pos", NULL
9494 };
9495
9496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9499 arg2 = (long) SWIG_AsLong(obj1);
9500 if (PyErr_Occurred()) SWIG_fail;
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 (arg1)->SetInsertionPoint(arg2);
9504
9505 wxPyEndAllowThreads(__tstate);
9506 if (PyErr_Occurred()) SWIG_fail;
9507 }
9508 Py_INCREF(Py_None); resultobj = Py_None;
9509 return resultobj;
9510 fail:
9511 return NULL;
9512 }
9513
9514
9515 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9516 PyObject *resultobj;
9517 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9518 PyObject * obj0 = 0 ;
9519 char *kwnames[] = {
9520 (char *) "self", NULL
9521 };
9522
9523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 (arg1)->SetInsertionPointEnd();
9529
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 Py_INCREF(Py_None); resultobj = Py_None;
9534 return resultobj;
9535 fail:
9536 return NULL;
9537 }
9538
9539
9540 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj;
9542 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9543 long result;
9544 PyObject * obj0 = 0 ;
9545 char *kwnames[] = {
9546 (char *) "self", NULL
9547 };
9548
9549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9555
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 resultobj = SWIG_FromLong((long)result);
9560 return resultobj;
9561 fail:
9562 return NULL;
9563 }
9564
9565
9566 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9567 PyObject *resultobj;
9568 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9569 long result;
9570 PyObject * obj0 = 0 ;
9571 char *kwnames[] = {
9572 (char *) "self", NULL
9573 };
9574
9575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9578 {
9579 PyThreadState* __tstate = wxPyBeginAllowThreads();
9580 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9581
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 resultobj = SWIG_FromLong((long)result);
9586 return resultobj;
9587 fail:
9588 return NULL;
9589 }
9590
9591
9592 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9593 PyObject *resultobj;
9594 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9595 long arg2 ;
9596 long arg3 ;
9597 PyObject * obj0 = 0 ;
9598 PyObject * obj1 = 0 ;
9599 PyObject * obj2 = 0 ;
9600 char *kwnames[] = {
9601 (char *) "self",(char *) "from",(char *) "to", NULL
9602 };
9603
9604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9607 arg2 = (long) SWIG_AsLong(obj1);
9608 if (PyErr_Occurred()) SWIG_fail;
9609 arg3 = (long) SWIG_AsLong(obj2);
9610 if (PyErr_Occurred()) SWIG_fail;
9611 {
9612 PyThreadState* __tstate = wxPyBeginAllowThreads();
9613 (arg1)->SetSelection(arg2,arg3);
9614
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) SWIG_fail;
9617 }
9618 Py_INCREF(Py_None); resultobj = Py_None;
9619 return resultobj;
9620 fail:
9621 return NULL;
9622 }
9623
9624
9625 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9626 PyObject *resultobj;
9627 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9628 PyObject * obj0 = 0 ;
9629 char *kwnames[] = {
9630 (char *) "self", NULL
9631 };
9632
9633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9636 {
9637 PyThreadState* __tstate = wxPyBeginAllowThreads();
9638 (arg1)->SelectAll();
9639
9640 wxPyEndAllowThreads(__tstate);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 Py_INCREF(Py_None); resultobj = Py_None;
9644 return resultobj;
9645 fail:
9646 return NULL;
9647 }
9648
9649
9650 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9651 PyObject *resultobj;
9652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9653 bool arg2 ;
9654 PyObject * obj0 = 0 ;
9655 PyObject * obj1 = 0 ;
9656 char *kwnames[] = {
9657 (char *) "self",(char *) "editable", NULL
9658 };
9659
9660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9663 arg2 = (bool) SWIG_AsBool(obj1);
9664 if (PyErr_Occurred()) SWIG_fail;
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 (arg1)->SetEditable(arg2);
9668
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 Py_INCREF(Py_None); resultobj = Py_None;
9673 return resultobj;
9674 fail:
9675 return NULL;
9676 }
9677
9678
9679 static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9680 PyObject *resultobj;
9681 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9682 wxString *arg2 = 0 ;
9683 bool temp2 = False ;
9684 PyObject * obj0 = 0 ;
9685 PyObject * obj1 = 0 ;
9686 char *kwnames[] = {
9687 (char *) "self",(char *) "text", NULL
9688 };
9689
9690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9693 {
9694 arg2 = wxString_in_helper(obj1);
9695 if (arg2 == NULL) SWIG_fail;
9696 temp2 = True;
9697 }
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9701
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 Py_INCREF(Py_None); resultobj = Py_None;
9706 {
9707 if (temp2)
9708 delete arg2;
9709 }
9710 return resultobj;
9711 fail:
9712 {
9713 if (temp2)
9714 delete arg2;
9715 }
9716 return NULL;
9717 }
9718
9719
9720 static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9721 PyObject *resultobj;
9722 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9723 long arg2 ;
9724 long arg3 ;
9725 wxString result;
9726 PyObject * obj0 = 0 ;
9727 PyObject * obj1 = 0 ;
9728 PyObject * obj2 = 0 ;
9729 char *kwnames[] = {
9730 (char *) "self",(char *) "from",(char *) "to", NULL
9731 };
9732
9733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9736 arg2 = (long) SWIG_AsLong(obj1);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 arg3 = (long) SWIG_AsLong(obj2);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
9742 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9743
9744 wxPyEndAllowThreads(__tstate);
9745 if (PyErr_Occurred()) SWIG_fail;
9746 }
9747 {
9748 #if wxUSE_UNICODE
9749 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9750 #else
9751 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9752 #endif
9753 }
9754 return resultobj;
9755 fail:
9756 return NULL;
9757 }
9758
9759
9760 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj;
9762 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
9763 wxVisualAttributes result;
9764 PyObject * obj0 = 0 ;
9765 char *kwnames[] = {
9766 (char *) "variant", NULL
9767 };
9768
9769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
9770 if (obj0) {
9771 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
9772 if (PyErr_Occurred()) SWIG_fail;
9773 }
9774 {
9775 PyThreadState* __tstate = wxPyBeginAllowThreads();
9776 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
9777
9778 wxPyEndAllowThreads(__tstate);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 {
9782 wxVisualAttributes * resultptr;
9783 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
9784 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
9785 }
9786 return resultobj;
9787 fail:
9788 return NULL;
9789 }
9790
9791
9792 static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9793 PyObject *obj;
9794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9795 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9796 Py_INCREF(obj);
9797 return Py_BuildValue((char *)"");
9798 }
9799 static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9800 PyObject *resultobj;
9801 int arg1 ;
9802 wxMouseEvent *arg2 = 0 ;
9803 long arg3 ;
9804 long arg4 ;
9805 wxTextUrlEvent *result;
9806 PyObject * obj0 = 0 ;
9807 PyObject * obj1 = 0 ;
9808 PyObject * obj2 = 0 ;
9809 PyObject * obj3 = 0 ;
9810 char *kwnames[] = {
9811 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9812 };
9813
9814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9815 arg1 = (int) SWIG_AsInt(obj0);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9818 SWIG_POINTER_EXCEPTION | 0)) == -1)
9819 SWIG_fail;
9820 if (arg2 == NULL) {
9821 PyErr_SetString(PyExc_TypeError,"null reference");
9822 SWIG_fail;
9823 }
9824 arg3 = (long) SWIG_AsLong(obj2);
9825 if (PyErr_Occurred()) SWIG_fail;
9826 arg4 = (long) SWIG_AsLong(obj3);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 {
9829 PyThreadState* __tstate = wxPyBeginAllowThreads();
9830 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9831
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 }
9835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9836 return resultobj;
9837 fail:
9838 return NULL;
9839 }
9840
9841
9842 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj;
9844 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9845 wxMouseEvent *result;
9846 PyObject * obj0 = 0 ;
9847 char *kwnames[] = {
9848 (char *) "self", NULL
9849 };
9850
9851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9854 {
9855 PyThreadState* __tstate = wxPyBeginAllowThreads();
9856 {
9857 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9858 result = (wxMouseEvent *) &_result_ref;
9859 }
9860
9861 wxPyEndAllowThreads(__tstate);
9862 if (PyErr_Occurred()) SWIG_fail;
9863 }
9864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9865 return resultobj;
9866 fail:
9867 return NULL;
9868 }
9869
9870
9871 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9872 PyObject *resultobj;
9873 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9874 long result;
9875 PyObject * obj0 = 0 ;
9876 char *kwnames[] = {
9877 (char *) "self", NULL
9878 };
9879
9880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9886
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 resultobj = SWIG_FromLong((long)result);
9891 return resultobj;
9892 fail:
9893 return NULL;
9894 }
9895
9896
9897 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9898 PyObject *resultobj;
9899 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9900 long result;
9901 PyObject * obj0 = 0 ;
9902 char *kwnames[] = {
9903 (char *) "self", NULL
9904 };
9905
9906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9909 {
9910 PyThreadState* __tstate = wxPyBeginAllowThreads();
9911 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9912
9913 wxPyEndAllowThreads(__tstate);
9914 if (PyErr_Occurred()) SWIG_fail;
9915 }
9916 resultobj = SWIG_FromLong((long)result);
9917 return resultobj;
9918 fail:
9919 return NULL;
9920 }
9921
9922
9923 static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
9924 PyObject *obj;
9925 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9926 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9927 Py_INCREF(obj);
9928 return Py_BuildValue((char *)"");
9929 }
9930 static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
9931 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9932 return 1;
9933 }
9934
9935
9936 static PyObject *_wrap_ScrollBarNameStr_get() {
9937 PyObject *pyobj;
9938
9939 {
9940 #if wxUSE_UNICODE
9941 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9942 #else
9943 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9944 #endif
9945 }
9946 return pyobj;
9947 }
9948
9949
9950 static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9951 PyObject *resultobj;
9952 wxWindow *arg1 = (wxWindow *) 0 ;
9953 int arg2 = (int) -1 ;
9954 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9955 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9956 wxSize const &arg4_defvalue = wxDefaultSize ;
9957 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9958 long arg5 = (long) wxSB_HORIZONTAL ;
9959 wxValidator const &arg6_defvalue = wxDefaultValidator ;
9960 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
9961 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
9962 wxString *arg7 = (wxString *) &arg7_defvalue ;
9963 wxScrollBar *result;
9964 wxPoint temp3 ;
9965 wxSize temp4 ;
9966 bool temp7 = False ;
9967 PyObject * obj0 = 0 ;
9968 PyObject * obj1 = 0 ;
9969 PyObject * obj2 = 0 ;
9970 PyObject * obj3 = 0 ;
9971 PyObject * obj4 = 0 ;
9972 PyObject * obj5 = 0 ;
9973 PyObject * obj6 = 0 ;
9974 char *kwnames[] = {
9975 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9976 };
9977
9978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9981 if (obj1) {
9982 arg2 = (int) SWIG_AsInt(obj1);
9983 if (PyErr_Occurred()) SWIG_fail;
9984 }
9985 if (obj2) {
9986 {
9987 arg3 = &temp3;
9988 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9989 }
9990 }
9991 if (obj3) {
9992 {
9993 arg4 = &temp4;
9994 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9995 }
9996 }
9997 if (obj4) {
9998 arg5 = (long) SWIG_AsLong(obj4);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 if (obj5) {
10002 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10003 SWIG_POINTER_EXCEPTION | 0)) == -1)
10004 SWIG_fail;
10005 if (arg6 == NULL) {
10006 PyErr_SetString(PyExc_TypeError,"null reference");
10007 SWIG_fail;
10008 }
10009 }
10010 if (obj6) {
10011 {
10012 arg7 = wxString_in_helper(obj6);
10013 if (arg7 == NULL) SWIG_fail;
10014 temp7 = True;
10015 }
10016 }
10017 {
10018 PyThreadState* __tstate = wxPyBeginAllowThreads();
10019 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10020
10021 wxPyEndAllowThreads(__tstate);
10022 if (PyErr_Occurred()) SWIG_fail;
10023 }
10024 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10025 {
10026 if (temp7)
10027 delete arg7;
10028 }
10029 return resultobj;
10030 fail:
10031 {
10032 if (temp7)
10033 delete arg7;
10034 }
10035 return NULL;
10036 }
10037
10038
10039 static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
10040 PyObject *resultobj;
10041 wxScrollBar *result;
10042 char *kwnames[] = {
10043 NULL
10044 };
10045
10046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10047 {
10048 PyThreadState* __tstate = wxPyBeginAllowThreads();
10049 result = (wxScrollBar *)new wxScrollBar();
10050
10051 wxPyEndAllowThreads(__tstate);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 }
10054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10055 return resultobj;
10056 fail:
10057 return NULL;
10058 }
10059
10060
10061 static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10062 PyObject *resultobj;
10063 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10064 wxWindow *arg2 = (wxWindow *) 0 ;
10065 int arg3 = (int) -1 ;
10066 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10067 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10068 wxSize const &arg5_defvalue = wxDefaultSize ;
10069 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10070 long arg6 = (long) wxSB_HORIZONTAL ;
10071 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10072 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10073 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10074 wxString *arg8 = (wxString *) &arg8_defvalue ;
10075 bool result;
10076 wxPoint temp4 ;
10077 wxSize temp5 ;
10078 bool temp8 = False ;
10079 PyObject * obj0 = 0 ;
10080 PyObject * obj1 = 0 ;
10081 PyObject * obj2 = 0 ;
10082 PyObject * obj3 = 0 ;
10083 PyObject * obj4 = 0 ;
10084 PyObject * obj5 = 0 ;
10085 PyObject * obj6 = 0 ;
10086 PyObject * obj7 = 0 ;
10087 char *kwnames[] = {
10088 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10089 };
10090
10091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10094 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10096 if (obj2) {
10097 arg3 = (int) SWIG_AsInt(obj2);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 if (obj3) {
10101 {
10102 arg4 = &temp4;
10103 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10104 }
10105 }
10106 if (obj4) {
10107 {
10108 arg5 = &temp5;
10109 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10110 }
10111 }
10112 if (obj5) {
10113 arg6 = (long) SWIG_AsLong(obj5);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 }
10116 if (obj6) {
10117 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10118 SWIG_POINTER_EXCEPTION | 0)) == -1)
10119 SWIG_fail;
10120 if (arg7 == NULL) {
10121 PyErr_SetString(PyExc_TypeError,"null reference");
10122 SWIG_fail;
10123 }
10124 }
10125 if (obj7) {
10126 {
10127 arg8 = wxString_in_helper(obj7);
10128 if (arg8 == NULL) SWIG_fail;
10129 temp8 = True;
10130 }
10131 }
10132 {
10133 PyThreadState* __tstate = wxPyBeginAllowThreads();
10134 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10135
10136 wxPyEndAllowThreads(__tstate);
10137 if (PyErr_Occurred()) SWIG_fail;
10138 }
10139 {
10140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10141 }
10142 {
10143 if (temp8)
10144 delete arg8;
10145 }
10146 return resultobj;
10147 fail:
10148 {
10149 if (temp8)
10150 delete arg8;
10151 }
10152 return NULL;
10153 }
10154
10155
10156 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj;
10158 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10159 int result;
10160 PyObject * obj0 = 0 ;
10161 char *kwnames[] = {
10162 (char *) "self", NULL
10163 };
10164
10165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10171
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 resultobj = SWIG_FromInt((int)result);
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj;
10184 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10185 int result;
10186 PyObject * obj0 = 0 ;
10187 char *kwnames[] = {
10188 (char *) "self", NULL
10189 };
10190
10191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10194 {
10195 PyThreadState* __tstate = wxPyBeginAllowThreads();
10196 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10197
10198 wxPyEndAllowThreads(__tstate);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 resultobj = SWIG_FromInt((int)result);
10202 return resultobj;
10203 fail:
10204 return NULL;
10205 }
10206
10207
10208 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10209 PyObject *resultobj;
10210 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10211 int result;
10212 PyObject * obj0 = 0 ;
10213 char *kwnames[] = {
10214 (char *) "self", NULL
10215 };
10216
10217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10220 {
10221 PyThreadState* __tstate = wxPyBeginAllowThreads();
10222 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10223
10224 wxPyEndAllowThreads(__tstate);
10225 if (PyErr_Occurred()) SWIG_fail;
10226 }
10227 resultobj = SWIG_FromInt((int)result);
10228 return resultobj;
10229 fail:
10230 return NULL;
10231 }
10232
10233
10234 static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10235 PyObject *resultobj;
10236 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10237 int result;
10238 PyObject * obj0 = 0 ;
10239 char *kwnames[] = {
10240 (char *) "self", NULL
10241 };
10242
10243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (int)((wxScrollBar const *)arg1)->GetRange();
10249
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 resultobj = SWIG_FromInt((int)result);
10254 return resultobj;
10255 fail:
10256 return NULL;
10257 }
10258
10259
10260 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj;
10262 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10263 bool result;
10264 PyObject * obj0 = 0 ;
10265 char *kwnames[] = {
10266 (char *) "self", NULL
10267 };
10268
10269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10272 {
10273 PyThreadState* __tstate = wxPyBeginAllowThreads();
10274 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10275
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 {
10280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10281 }
10282 return resultobj;
10283 fail:
10284 return NULL;
10285 }
10286
10287
10288 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10289 PyObject *resultobj;
10290 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10291 int arg2 ;
10292 PyObject * obj0 = 0 ;
10293 PyObject * obj1 = 0 ;
10294 char *kwnames[] = {
10295 (char *) "self",(char *) "viewStart", NULL
10296 };
10297
10298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10301 arg2 = (int) SWIG_AsInt(obj1);
10302 if (PyErr_Occurred()) SWIG_fail;
10303 {
10304 PyThreadState* __tstate = wxPyBeginAllowThreads();
10305 (arg1)->SetThumbPosition(arg2);
10306
10307 wxPyEndAllowThreads(__tstate);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 }
10310 Py_INCREF(Py_None); resultobj = Py_None;
10311 return resultobj;
10312 fail:
10313 return NULL;
10314 }
10315
10316
10317 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
10318 PyObject *resultobj;
10319 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10320 int arg2 ;
10321 int arg3 ;
10322 int arg4 ;
10323 int arg5 ;
10324 bool arg6 = (bool) True ;
10325 PyObject * obj0 = 0 ;
10326 PyObject * obj1 = 0 ;
10327 PyObject * obj2 = 0 ;
10328 PyObject * obj3 = 0 ;
10329 PyObject * obj4 = 0 ;
10330 PyObject * obj5 = 0 ;
10331 char *kwnames[] = {
10332 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10333 };
10334
10335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10338 arg2 = (int) SWIG_AsInt(obj1);
10339 if (PyErr_Occurred()) SWIG_fail;
10340 arg3 = (int) SWIG_AsInt(obj2);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 arg4 = (int) SWIG_AsInt(obj3);
10343 if (PyErr_Occurred()) SWIG_fail;
10344 arg5 = (int) SWIG_AsInt(obj4);
10345 if (PyErr_Occurred()) SWIG_fail;
10346 if (obj5) {
10347 arg6 = (bool) SWIG_AsBool(obj5);
10348 if (PyErr_Occurred()) SWIG_fail;
10349 }
10350 {
10351 PyThreadState* __tstate = wxPyBeginAllowThreads();
10352 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10353
10354 wxPyEndAllowThreads(__tstate);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 }
10357 Py_INCREF(Py_None); resultobj = Py_None;
10358 return resultobj;
10359 fail:
10360 return NULL;
10361 }
10362
10363
10364 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10365 PyObject *resultobj;
10366 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10367 wxVisualAttributes result;
10368 PyObject * obj0 = 0 ;
10369 char *kwnames[] = {
10370 (char *) "variant", NULL
10371 };
10372
10373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10374 if (obj0) {
10375 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10376 if (PyErr_Occurred()) SWIG_fail;
10377 }
10378 {
10379 PyThreadState* __tstate = wxPyBeginAllowThreads();
10380 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10381
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 {
10386 wxVisualAttributes * resultptr;
10387 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10388 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10389 }
10390 return resultobj;
10391 fail:
10392 return NULL;
10393 }
10394
10395
10396 static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
10397 PyObject *obj;
10398 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10399 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10400 Py_INCREF(obj);
10401 return Py_BuildValue((char *)"");
10402 }
10403 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
10404 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10405 return 1;
10406 }
10407
10408
10409 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10410 PyObject *pyobj;
10411
10412 {
10413 #if wxUSE_UNICODE
10414 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10415 #else
10416 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10417 #endif
10418 }
10419 return pyobj;
10420 }
10421
10422
10423 static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
10424 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10425 return 1;
10426 }
10427
10428
10429 static PyObject *_wrap_SpinCtrlNameStr_get() {
10430 PyObject *pyobj;
10431
10432 {
10433 #if wxUSE_UNICODE
10434 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10435 #else
10436 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10437 #endif
10438 }
10439 return pyobj;
10440 }
10441
10442
10443 static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10444 PyObject *resultobj;
10445 wxWindow *arg1 = (wxWindow *) 0 ;
10446 int arg2 = (int) -1 ;
10447 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10448 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10449 wxSize const &arg4_defvalue = wxDefaultSize ;
10450 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10451 long arg5 = (long) wxSP_HORIZONTAL ;
10452 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10453 wxString *arg6 = (wxString *) &arg6_defvalue ;
10454 wxSpinButton *result;
10455 wxPoint temp3 ;
10456 wxSize temp4 ;
10457 bool temp6 = False ;
10458 PyObject * obj0 = 0 ;
10459 PyObject * obj1 = 0 ;
10460 PyObject * obj2 = 0 ;
10461 PyObject * obj3 = 0 ;
10462 PyObject * obj4 = 0 ;
10463 PyObject * obj5 = 0 ;
10464 char *kwnames[] = {
10465 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10466 };
10467
10468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10471 if (obj1) {
10472 arg2 = (int) SWIG_AsInt(obj1);
10473 if (PyErr_Occurred()) SWIG_fail;
10474 }
10475 if (obj2) {
10476 {
10477 arg3 = &temp3;
10478 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10479 }
10480 }
10481 if (obj3) {
10482 {
10483 arg4 = &temp4;
10484 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10485 }
10486 }
10487 if (obj4) {
10488 arg5 = (long) SWIG_AsLong(obj4);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 if (obj5) {
10492 {
10493 arg6 = wxString_in_helper(obj5);
10494 if (arg6 == NULL) SWIG_fail;
10495 temp6 = True;
10496 }
10497 }
10498 {
10499 PyThreadState* __tstate = wxPyBeginAllowThreads();
10500 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10501
10502 wxPyEndAllowThreads(__tstate);
10503 if (PyErr_Occurred()) SWIG_fail;
10504 }
10505 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10506 {
10507 if (temp6)
10508 delete arg6;
10509 }
10510 return resultobj;
10511 fail:
10512 {
10513 if (temp6)
10514 delete arg6;
10515 }
10516 return NULL;
10517 }
10518
10519
10520 static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10521 PyObject *resultobj;
10522 wxSpinButton *result;
10523 char *kwnames[] = {
10524 NULL
10525 };
10526
10527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 result = (wxSpinButton *)new wxSpinButton();
10531
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10536 return resultobj;
10537 fail:
10538 return NULL;
10539 }
10540
10541
10542 static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10543 PyObject *resultobj;
10544 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10545 wxWindow *arg2 = (wxWindow *) 0 ;
10546 int arg3 = (int) -1 ;
10547 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10548 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10549 wxSize const &arg5_defvalue = wxDefaultSize ;
10550 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10551 long arg6 = (long) wxSP_HORIZONTAL ;
10552 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10553 wxString *arg7 = (wxString *) &arg7_defvalue ;
10554 bool result;
10555 wxPoint temp4 ;
10556 wxSize temp5 ;
10557 bool temp7 = False ;
10558 PyObject * obj0 = 0 ;
10559 PyObject * obj1 = 0 ;
10560 PyObject * obj2 = 0 ;
10561 PyObject * obj3 = 0 ;
10562 PyObject * obj4 = 0 ;
10563 PyObject * obj5 = 0 ;
10564 PyObject * obj6 = 0 ;
10565 char *kwnames[] = {
10566 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10567 };
10568
10569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10572 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10574 if (obj2) {
10575 arg3 = (int) SWIG_AsInt(obj2);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
10578 if (obj3) {
10579 {
10580 arg4 = &temp4;
10581 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10582 }
10583 }
10584 if (obj4) {
10585 {
10586 arg5 = &temp5;
10587 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10588 }
10589 }
10590 if (obj5) {
10591 arg6 = (long) SWIG_AsLong(obj5);
10592 if (PyErr_Occurred()) SWIG_fail;
10593 }
10594 if (obj6) {
10595 {
10596 arg7 = wxString_in_helper(obj6);
10597 if (arg7 == NULL) SWIG_fail;
10598 temp7 = True;
10599 }
10600 }
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10604
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 {
10609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10610 }
10611 {
10612 if (temp7)
10613 delete arg7;
10614 }
10615 return resultobj;
10616 fail:
10617 {
10618 if (temp7)
10619 delete arg7;
10620 }
10621 return NULL;
10622 }
10623
10624
10625 static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10626 PyObject *resultobj;
10627 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10628 int result;
10629 PyObject * obj0 = 0 ;
10630 char *kwnames[] = {
10631 (char *) "self", NULL
10632 };
10633
10634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10637 {
10638 PyThreadState* __tstate = wxPyBeginAllowThreads();
10639 result = (int)((wxSpinButton const *)arg1)->GetValue();
10640
10641 wxPyEndAllowThreads(__tstate);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
10644 resultobj = SWIG_FromInt((int)result);
10645 return resultobj;
10646 fail:
10647 return NULL;
10648 }
10649
10650
10651 static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj;
10653 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10654 int result;
10655 PyObject * obj0 = 0 ;
10656 char *kwnames[] = {
10657 (char *) "self", NULL
10658 };
10659
10660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10663 {
10664 PyThreadState* __tstate = wxPyBeginAllowThreads();
10665 result = (int)((wxSpinButton const *)arg1)->GetMin();
10666
10667 wxPyEndAllowThreads(__tstate);
10668 if (PyErr_Occurred()) SWIG_fail;
10669 }
10670 resultobj = SWIG_FromInt((int)result);
10671 return resultobj;
10672 fail:
10673 return NULL;
10674 }
10675
10676
10677 static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10678 PyObject *resultobj;
10679 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10680 int result;
10681 PyObject * obj0 = 0 ;
10682 char *kwnames[] = {
10683 (char *) "self", NULL
10684 };
10685
10686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10689 {
10690 PyThreadState* __tstate = wxPyBeginAllowThreads();
10691 result = (int)((wxSpinButton const *)arg1)->GetMax();
10692
10693 wxPyEndAllowThreads(__tstate);
10694 if (PyErr_Occurred()) SWIG_fail;
10695 }
10696 resultobj = SWIG_FromInt((int)result);
10697 return resultobj;
10698 fail:
10699 return NULL;
10700 }
10701
10702
10703 static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10704 PyObject *resultobj;
10705 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10706 int arg2 ;
10707 PyObject * obj0 = 0 ;
10708 PyObject * obj1 = 0 ;
10709 char *kwnames[] = {
10710 (char *) "self",(char *) "val", NULL
10711 };
10712
10713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10716 arg2 = (int) SWIG_AsInt(obj1);
10717 if (PyErr_Occurred()) SWIG_fail;
10718 {
10719 PyThreadState* __tstate = wxPyBeginAllowThreads();
10720 (arg1)->SetValue(arg2);
10721
10722 wxPyEndAllowThreads(__tstate);
10723 if (PyErr_Occurred()) SWIG_fail;
10724 }
10725 Py_INCREF(Py_None); resultobj = Py_None;
10726 return resultobj;
10727 fail:
10728 return NULL;
10729 }
10730
10731
10732 static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10733 PyObject *resultobj;
10734 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10735 int arg2 ;
10736 PyObject * obj0 = 0 ;
10737 PyObject * obj1 = 0 ;
10738 char *kwnames[] = {
10739 (char *) "self",(char *) "minVal", NULL
10740 };
10741
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10745 arg2 = (int) SWIG_AsInt(obj1);
10746 if (PyErr_Occurred()) SWIG_fail;
10747 {
10748 PyThreadState* __tstate = wxPyBeginAllowThreads();
10749 (arg1)->SetMin(arg2);
10750
10751 wxPyEndAllowThreads(__tstate);
10752 if (PyErr_Occurred()) SWIG_fail;
10753 }
10754 Py_INCREF(Py_None); resultobj = Py_None;
10755 return resultobj;
10756 fail:
10757 return NULL;
10758 }
10759
10760
10761 static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10762 PyObject *resultobj;
10763 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10764 int arg2 ;
10765 PyObject * obj0 = 0 ;
10766 PyObject * obj1 = 0 ;
10767 char *kwnames[] = {
10768 (char *) "self",(char *) "maxVal", NULL
10769 };
10770
10771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10774 arg2 = (int) SWIG_AsInt(obj1);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 {
10777 PyThreadState* __tstate = wxPyBeginAllowThreads();
10778 (arg1)->SetMax(arg2);
10779
10780 wxPyEndAllowThreads(__tstate);
10781 if (PyErr_Occurred()) SWIG_fail;
10782 }
10783 Py_INCREF(Py_None); resultobj = Py_None;
10784 return resultobj;
10785 fail:
10786 return NULL;
10787 }
10788
10789
10790 static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10791 PyObject *resultobj;
10792 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10793 int arg2 ;
10794 int arg3 ;
10795 PyObject * obj0 = 0 ;
10796 PyObject * obj1 = 0 ;
10797 PyObject * obj2 = 0 ;
10798 char *kwnames[] = {
10799 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10800 };
10801
10802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10805 arg2 = (int) SWIG_AsInt(obj1);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 arg3 = (int) SWIG_AsInt(obj2);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 {
10810 PyThreadState* __tstate = wxPyBeginAllowThreads();
10811 (arg1)->SetRange(arg2,arg3);
10812
10813 wxPyEndAllowThreads(__tstate);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 }
10816 Py_INCREF(Py_None); resultobj = Py_None;
10817 return resultobj;
10818 fail:
10819 return NULL;
10820 }
10821
10822
10823 static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10824 PyObject *resultobj;
10825 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10826 bool result;
10827 PyObject * obj0 = 0 ;
10828 char *kwnames[] = {
10829 (char *) "self", NULL
10830 };
10831
10832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10835 {
10836 PyThreadState* __tstate = wxPyBeginAllowThreads();
10837 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10838
10839 wxPyEndAllowThreads(__tstate);
10840 if (PyErr_Occurred()) SWIG_fail;
10841 }
10842 {
10843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10844 }
10845 return resultobj;
10846 fail:
10847 return NULL;
10848 }
10849
10850
10851 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10852 PyObject *resultobj;
10853 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10854 wxVisualAttributes result;
10855 PyObject * obj0 = 0 ;
10856 char *kwnames[] = {
10857 (char *) "variant", NULL
10858 };
10859
10860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10861 if (obj0) {
10862 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 }
10865 {
10866 PyThreadState* __tstate = wxPyBeginAllowThreads();
10867 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
10868
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 {
10873 wxVisualAttributes * resultptr;
10874 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10875 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10876 }
10877 return resultobj;
10878 fail:
10879 return NULL;
10880 }
10881
10882
10883 static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10884 PyObject *obj;
10885 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10886 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10887 Py_INCREF(obj);
10888 return Py_BuildValue((char *)"");
10889 }
10890 static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10891 PyObject *resultobj;
10892 wxWindow *arg1 = (wxWindow *) 0 ;
10893 int arg2 = (int) -1 ;
10894 wxString const &arg3_defvalue = wxPyEmptyString ;
10895 wxString *arg3 = (wxString *) &arg3_defvalue ;
10896 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10897 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10898 wxSize const &arg5_defvalue = wxDefaultSize ;
10899 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10900 long arg6 = (long) wxSP_ARROW_KEYS ;
10901 int arg7 = (int) 0 ;
10902 int arg8 = (int) 100 ;
10903 int arg9 = (int) 0 ;
10904 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10905 wxString *arg10 = (wxString *) &arg10_defvalue ;
10906 wxSpinCtrl *result;
10907 bool temp3 = False ;
10908 wxPoint temp4 ;
10909 wxSize temp5 ;
10910 bool temp10 = False ;
10911 PyObject * obj0 = 0 ;
10912 PyObject * obj1 = 0 ;
10913 PyObject * obj2 = 0 ;
10914 PyObject * obj3 = 0 ;
10915 PyObject * obj4 = 0 ;
10916 PyObject * obj5 = 0 ;
10917 PyObject * obj6 = 0 ;
10918 PyObject * obj7 = 0 ;
10919 PyObject * obj8 = 0 ;
10920 PyObject * obj9 = 0 ;
10921 char *kwnames[] = {
10922 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10923 };
10924
10925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10928 if (obj1) {
10929 arg2 = (int) SWIG_AsInt(obj1);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 if (obj2) {
10933 {
10934 arg3 = wxString_in_helper(obj2);
10935 if (arg3 == NULL) SWIG_fail;
10936 temp3 = True;
10937 }
10938 }
10939 if (obj3) {
10940 {
10941 arg4 = &temp4;
10942 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10943 }
10944 }
10945 if (obj4) {
10946 {
10947 arg5 = &temp5;
10948 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10949 }
10950 }
10951 if (obj5) {
10952 arg6 = (long) SWIG_AsLong(obj5);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 }
10955 if (obj6) {
10956 arg7 = (int) SWIG_AsInt(obj6);
10957 if (PyErr_Occurred()) SWIG_fail;
10958 }
10959 if (obj7) {
10960 arg8 = (int) SWIG_AsInt(obj7);
10961 if (PyErr_Occurred()) SWIG_fail;
10962 }
10963 if (obj8) {
10964 arg9 = (int) SWIG_AsInt(obj8);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 if (obj9) {
10968 {
10969 arg10 = wxString_in_helper(obj9);
10970 if (arg10 == NULL) SWIG_fail;
10971 temp10 = True;
10972 }
10973 }
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
10977
10978 wxPyEndAllowThreads(__tstate);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 }
10981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10982 {
10983 if (temp3)
10984 delete arg3;
10985 }
10986 {
10987 if (temp10)
10988 delete arg10;
10989 }
10990 return resultobj;
10991 fail:
10992 {
10993 if (temp3)
10994 delete arg3;
10995 }
10996 {
10997 if (temp10)
10998 delete arg10;
10999 }
11000 return NULL;
11001 }
11002
11003
11004 static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
11005 PyObject *resultobj;
11006 wxSpinCtrl *result;
11007 char *kwnames[] = {
11008 NULL
11009 };
11010
11011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11012 {
11013 PyThreadState* __tstate = wxPyBeginAllowThreads();
11014 result = (wxSpinCtrl *)new wxSpinCtrl();
11015
11016 wxPyEndAllowThreads(__tstate);
11017 if (PyErr_Occurred()) SWIG_fail;
11018 }
11019 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11020 return resultobj;
11021 fail:
11022 return NULL;
11023 }
11024
11025
11026 static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11027 PyObject *resultobj;
11028 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11029 wxWindow *arg2 = (wxWindow *) 0 ;
11030 int arg3 = (int) -1 ;
11031 wxString const &arg4_defvalue = wxPyEmptyString ;
11032 wxString *arg4 = (wxString *) &arg4_defvalue ;
11033 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11034 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11035 wxSize const &arg6_defvalue = wxDefaultSize ;
11036 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11037 long arg7 = (long) wxSP_ARROW_KEYS ;
11038 int arg8 = (int) 0 ;
11039 int arg9 = (int) 100 ;
11040 int arg10 = (int) 0 ;
11041 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11042 wxString *arg11 = (wxString *) &arg11_defvalue ;
11043 bool result;
11044 bool temp4 = False ;
11045 wxPoint temp5 ;
11046 wxSize temp6 ;
11047 bool temp11 = False ;
11048 PyObject * obj0 = 0 ;
11049 PyObject * obj1 = 0 ;
11050 PyObject * obj2 = 0 ;
11051 PyObject * obj3 = 0 ;
11052 PyObject * obj4 = 0 ;
11053 PyObject * obj5 = 0 ;
11054 PyObject * obj6 = 0 ;
11055 PyObject * obj7 = 0 ;
11056 PyObject * obj8 = 0 ;
11057 PyObject * obj9 = 0 ;
11058 PyObject * obj10 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11061 };
11062
11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11066 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11068 if (obj2) {
11069 arg3 = (int) SWIG_AsInt(obj2);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 }
11072 if (obj3) {
11073 {
11074 arg4 = wxString_in_helper(obj3);
11075 if (arg4 == NULL) SWIG_fail;
11076 temp4 = True;
11077 }
11078 }
11079 if (obj4) {
11080 {
11081 arg5 = &temp5;
11082 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11083 }
11084 }
11085 if (obj5) {
11086 {
11087 arg6 = &temp6;
11088 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11089 }
11090 }
11091 if (obj6) {
11092 arg7 = (long) SWIG_AsLong(obj6);
11093 if (PyErr_Occurred()) SWIG_fail;
11094 }
11095 if (obj7) {
11096 arg8 = (int) SWIG_AsInt(obj7);
11097 if (PyErr_Occurred()) SWIG_fail;
11098 }
11099 if (obj8) {
11100 arg9 = (int) SWIG_AsInt(obj8);
11101 if (PyErr_Occurred()) SWIG_fail;
11102 }
11103 if (obj9) {
11104 arg10 = (int) SWIG_AsInt(obj9);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 if (obj10) {
11108 {
11109 arg11 = wxString_in_helper(obj10);
11110 if (arg11 == NULL) SWIG_fail;
11111 temp11 = True;
11112 }
11113 }
11114 {
11115 PyThreadState* __tstate = wxPyBeginAllowThreads();
11116 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11117
11118 wxPyEndAllowThreads(__tstate);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 {
11122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11123 }
11124 {
11125 if (temp4)
11126 delete arg4;
11127 }
11128 {
11129 if (temp11)
11130 delete arg11;
11131 }
11132 return resultobj;
11133 fail:
11134 {
11135 if (temp4)
11136 delete arg4;
11137 }
11138 {
11139 if (temp11)
11140 delete arg11;
11141 }
11142 return NULL;
11143 }
11144
11145
11146 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11147 PyObject *resultobj;
11148 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11149 int result;
11150 PyObject * obj0 = 0 ;
11151 char *kwnames[] = {
11152 (char *) "self", NULL
11153 };
11154
11155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11161
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 resultobj = SWIG_FromInt((int)result);
11166 return resultobj;
11167 fail:
11168 return NULL;
11169 }
11170
11171
11172 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11173 PyObject *resultobj;
11174 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11175 int arg2 ;
11176 PyObject * obj0 = 0 ;
11177 PyObject * obj1 = 0 ;
11178 char *kwnames[] = {
11179 (char *) "self",(char *) "value", NULL
11180 };
11181
11182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11185 arg2 = (int) SWIG_AsInt(obj1);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 {
11188 PyThreadState* __tstate = wxPyBeginAllowThreads();
11189 (arg1)->SetValue(arg2);
11190
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 Py_INCREF(Py_None); resultobj = Py_None;
11195 return resultobj;
11196 fail:
11197 return NULL;
11198 }
11199
11200
11201 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
11202 PyObject *resultobj;
11203 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11204 wxString *arg2 = 0 ;
11205 bool temp2 = False ;
11206 PyObject * obj0 = 0 ;
11207 PyObject * obj1 = 0 ;
11208 char *kwnames[] = {
11209 (char *) "self",(char *) "text", NULL
11210 };
11211
11212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11215 {
11216 arg2 = wxString_in_helper(obj1);
11217 if (arg2 == NULL) SWIG_fail;
11218 temp2 = True;
11219 }
11220 {
11221 PyThreadState* __tstate = wxPyBeginAllowThreads();
11222 (arg1)->SetValue((wxString const &)*arg2);
11223
11224 wxPyEndAllowThreads(__tstate);
11225 if (PyErr_Occurred()) SWIG_fail;
11226 }
11227 Py_INCREF(Py_None); resultobj = Py_None;
11228 {
11229 if (temp2)
11230 delete arg2;
11231 }
11232 return resultobj;
11233 fail:
11234 {
11235 if (temp2)
11236 delete arg2;
11237 }
11238 return NULL;
11239 }
11240
11241
11242 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
11243 PyObject *resultobj;
11244 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11245 int arg2 ;
11246 int arg3 ;
11247 PyObject * obj0 = 0 ;
11248 PyObject * obj1 = 0 ;
11249 PyObject * obj2 = 0 ;
11250 char *kwnames[] = {
11251 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11252 };
11253
11254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11257 arg2 = (int) SWIG_AsInt(obj1);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 arg3 = (int) SWIG_AsInt(obj2);
11260 if (PyErr_Occurred()) SWIG_fail;
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 (arg1)->SetRange(arg2,arg3);
11264
11265 wxPyEndAllowThreads(__tstate);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 Py_INCREF(Py_None); resultobj = Py_None;
11269 return resultobj;
11270 fail:
11271 return NULL;
11272 }
11273
11274
11275 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
11276 PyObject *resultobj;
11277 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11278 int result;
11279 PyObject * obj0 = 0 ;
11280 char *kwnames[] = {
11281 (char *) "self", NULL
11282 };
11283
11284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
11289 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11290
11291 wxPyEndAllowThreads(__tstate);
11292 if (PyErr_Occurred()) SWIG_fail;
11293 }
11294 resultobj = SWIG_FromInt((int)result);
11295 return resultobj;
11296 fail:
11297 return NULL;
11298 }
11299
11300
11301 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
11302 PyObject *resultobj;
11303 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11304 int result;
11305 PyObject * obj0 = 0 ;
11306 char *kwnames[] = {
11307 (char *) "self", NULL
11308 };
11309
11310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11313 {
11314 PyThreadState* __tstate = wxPyBeginAllowThreads();
11315 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11316
11317 wxPyEndAllowThreads(__tstate);
11318 if (PyErr_Occurred()) SWIG_fail;
11319 }
11320 resultobj = SWIG_FromInt((int)result);
11321 return resultobj;
11322 fail:
11323 return NULL;
11324 }
11325
11326
11327 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11328 PyObject *resultobj;
11329 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11330 long arg2 ;
11331 long arg3 ;
11332 PyObject * obj0 = 0 ;
11333 PyObject * obj1 = 0 ;
11334 PyObject * obj2 = 0 ;
11335 char *kwnames[] = {
11336 (char *) "self",(char *) "from",(char *) "to", NULL
11337 };
11338
11339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11342 arg2 = (long) SWIG_AsLong(obj1);
11343 if (PyErr_Occurred()) SWIG_fail;
11344 arg3 = (long) SWIG_AsLong(obj2);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 {
11347 PyThreadState* __tstate = wxPyBeginAllowThreads();
11348 (arg1)->SetSelection(arg2,arg3);
11349
11350 wxPyEndAllowThreads(__tstate);
11351 if (PyErr_Occurred()) SWIG_fail;
11352 }
11353 Py_INCREF(Py_None); resultobj = Py_None;
11354 return resultobj;
11355 fail:
11356 return NULL;
11357 }
11358
11359
11360 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
11361 PyObject *resultobj;
11362 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11363 wxVisualAttributes result;
11364 PyObject * obj0 = 0 ;
11365 char *kwnames[] = {
11366 (char *) "variant", NULL
11367 };
11368
11369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11370 if (obj0) {
11371 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 {
11375 PyThreadState* __tstate = wxPyBeginAllowThreads();
11376 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11377
11378 wxPyEndAllowThreads(__tstate);
11379 if (PyErr_Occurred()) SWIG_fail;
11380 }
11381 {
11382 wxVisualAttributes * resultptr;
11383 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11384 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11385 }
11386 return resultobj;
11387 fail:
11388 return NULL;
11389 }
11390
11391
11392 static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
11393 PyObject *obj;
11394 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11395 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11396 Py_INCREF(obj);
11397 return Py_BuildValue((char *)"");
11398 }
11399 static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11400 PyObject *resultobj;
11401 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11402 int arg2 = (int) 0 ;
11403 wxSpinEvent *result;
11404 PyObject * obj0 = 0 ;
11405 PyObject * obj1 = 0 ;
11406 char *kwnames[] = {
11407 (char *) "commandType",(char *) "winid", NULL
11408 };
11409
11410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11411 if (obj0) {
11412 arg1 = (wxEventType) SWIG_AsInt(obj0);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 if (obj1) {
11416 arg2 = (int) SWIG_AsInt(obj1);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 }
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11422
11423 wxPyEndAllowThreads(__tstate);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11427 return resultobj;
11428 fail:
11429 return NULL;
11430 }
11431
11432
11433 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11434 PyObject *resultobj;
11435 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11436 int result;
11437 PyObject * obj0 = 0 ;
11438 char *kwnames[] = {
11439 (char *) "self", NULL
11440 };
11441
11442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11448
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 resultobj = SWIG_FromInt((int)result);
11453 return resultobj;
11454 fail:
11455 return NULL;
11456 }
11457
11458
11459 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11460 PyObject *resultobj;
11461 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11462 int arg2 ;
11463 PyObject * obj0 = 0 ;
11464 PyObject * obj1 = 0 ;
11465 char *kwnames[] = {
11466 (char *) "self",(char *) "pos", NULL
11467 };
11468
11469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11472 arg2 = (int) SWIG_AsInt(obj1);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 {
11475 PyThreadState* __tstate = wxPyBeginAllowThreads();
11476 (arg1)->SetPosition(arg2);
11477
11478 wxPyEndAllowThreads(__tstate);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 Py_INCREF(Py_None); resultobj = Py_None;
11482 return resultobj;
11483 fail:
11484 return NULL;
11485 }
11486
11487
11488 static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
11489 PyObject *obj;
11490 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11491 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11492 Py_INCREF(obj);
11493 return Py_BuildValue((char *)"");
11494 }
11495 static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
11496 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11497 return 1;
11498 }
11499
11500
11501 static PyObject *_wrap_RadioBoxNameStr_get() {
11502 PyObject *pyobj;
11503
11504 {
11505 #if wxUSE_UNICODE
11506 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11507 #else
11508 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11509 #endif
11510 }
11511 return pyobj;
11512 }
11513
11514
11515 static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
11516 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11517 return 1;
11518 }
11519
11520
11521 static PyObject *_wrap_RadioButtonNameStr_get() {
11522 PyObject *pyobj;
11523
11524 {
11525 #if wxUSE_UNICODE
11526 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11527 #else
11528 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11529 #endif
11530 }
11531 return pyobj;
11532 }
11533
11534
11535 static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11536 PyObject *resultobj;
11537 wxWindow *arg1 = (wxWindow *) 0 ;
11538 int arg2 ;
11539 wxString *arg3 = 0 ;
11540 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11541 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11542 wxSize const &arg5_defvalue = wxDefaultSize ;
11543 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11544 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11545 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11546 int arg7 = (int) 0 ;
11547 long arg8 = (long) wxRA_HORIZONTAL ;
11548 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11549 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11550 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11551 wxString *arg10 = (wxString *) &arg10_defvalue ;
11552 wxRadioBox *result;
11553 bool temp3 = False ;
11554 wxPoint temp4 ;
11555 wxSize temp5 ;
11556 bool temp6 = False ;
11557 bool temp10 = False ;
11558 PyObject * obj0 = 0 ;
11559 PyObject * obj1 = 0 ;
11560 PyObject * obj2 = 0 ;
11561 PyObject * obj3 = 0 ;
11562 PyObject * obj4 = 0 ;
11563 PyObject * obj5 = 0 ;
11564 PyObject * obj6 = 0 ;
11565 PyObject * obj7 = 0 ;
11566 PyObject * obj8 = 0 ;
11567 PyObject * obj9 = 0 ;
11568 char *kwnames[] = {
11569 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11570 };
11571
11572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11575 arg2 = (int) SWIG_AsInt(obj1);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 {
11578 arg3 = wxString_in_helper(obj2);
11579 if (arg3 == NULL) SWIG_fail;
11580 temp3 = True;
11581 }
11582 if (obj3) {
11583 {
11584 arg4 = &temp4;
11585 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11586 }
11587 }
11588 if (obj4) {
11589 {
11590 arg5 = &temp5;
11591 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11592 }
11593 }
11594 if (obj5) {
11595 {
11596 if (! PySequence_Check(obj5)) {
11597 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11598 SWIG_fail;
11599 }
11600 arg6 = new wxArrayString;
11601 temp6 = True;
11602 int i, len=PySequence_Length(obj5);
11603 for (i=0; i<len; i++) {
11604 PyObject* item = PySequence_GetItem(obj5, i);
11605 #if wxUSE_UNICODE
11606 PyObject* str = PyObject_Unicode(item);
11607 #else
11608 PyObject* str = PyObject_Str(item);
11609 #endif
11610 if (PyErr_Occurred()) SWIG_fail;
11611 arg6->Add(Py2wxString(str));
11612 Py_DECREF(item);
11613 Py_DECREF(str);
11614 }
11615 }
11616 }
11617 if (obj6) {
11618 arg7 = (int) SWIG_AsInt(obj6);
11619 if (PyErr_Occurred()) SWIG_fail;
11620 }
11621 if (obj7) {
11622 arg8 = (long) SWIG_AsLong(obj7);
11623 if (PyErr_Occurred()) SWIG_fail;
11624 }
11625 if (obj8) {
11626 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11627 SWIG_POINTER_EXCEPTION | 0)) == -1)
11628 SWIG_fail;
11629 if (arg9 == NULL) {
11630 PyErr_SetString(PyExc_TypeError,"null reference");
11631 SWIG_fail;
11632 }
11633 }
11634 if (obj9) {
11635 {
11636 arg10 = wxString_in_helper(obj9);
11637 if (arg10 == NULL) SWIG_fail;
11638 temp10 = True;
11639 }
11640 }
11641 {
11642 PyThreadState* __tstate = wxPyBeginAllowThreads();
11643 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);
11644
11645 wxPyEndAllowThreads(__tstate);
11646 if (PyErr_Occurred()) SWIG_fail;
11647 }
11648 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11649 {
11650 if (temp3)
11651 delete arg3;
11652 }
11653 {
11654 if (temp6) delete arg6;
11655 }
11656 {
11657 if (temp10)
11658 delete arg10;
11659 }
11660 return resultobj;
11661 fail:
11662 {
11663 if (temp3)
11664 delete arg3;
11665 }
11666 {
11667 if (temp6) delete arg6;
11668 }
11669 {
11670 if (temp10)
11671 delete arg10;
11672 }
11673 return NULL;
11674 }
11675
11676
11677 static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11678 PyObject *resultobj;
11679 wxRadioBox *result;
11680 char *kwnames[] = {
11681 NULL
11682 };
11683
11684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11685 {
11686 PyThreadState* __tstate = wxPyBeginAllowThreads();
11687 result = (wxRadioBox *)new wxRadioBox();
11688
11689 wxPyEndAllowThreads(__tstate);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11693 return resultobj;
11694 fail:
11695 return NULL;
11696 }
11697
11698
11699 static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11700 PyObject *resultobj;
11701 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11702 wxWindow *arg2 = (wxWindow *) 0 ;
11703 int arg3 ;
11704 wxString *arg4 = 0 ;
11705 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11706 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11707 wxSize const &arg6_defvalue = wxDefaultSize ;
11708 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11709 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11710 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11711 int arg8 = (int) 0 ;
11712 long arg9 = (long) wxRA_HORIZONTAL ;
11713 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11714 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11715 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11716 wxString *arg11 = (wxString *) &arg11_defvalue ;
11717 bool result;
11718 bool temp4 = False ;
11719 wxPoint temp5 ;
11720 wxSize temp6 ;
11721 bool temp7 = False ;
11722 bool temp11 = False ;
11723 PyObject * obj0 = 0 ;
11724 PyObject * obj1 = 0 ;
11725 PyObject * obj2 = 0 ;
11726 PyObject * obj3 = 0 ;
11727 PyObject * obj4 = 0 ;
11728 PyObject * obj5 = 0 ;
11729 PyObject * obj6 = 0 ;
11730 PyObject * obj7 = 0 ;
11731 PyObject * obj8 = 0 ;
11732 PyObject * obj9 = 0 ;
11733 PyObject * obj10 = 0 ;
11734 char *kwnames[] = {
11735 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11736 };
11737
11738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11743 arg3 = (int) SWIG_AsInt(obj2);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 {
11746 arg4 = wxString_in_helper(obj3);
11747 if (arg4 == NULL) SWIG_fail;
11748 temp4 = True;
11749 }
11750 if (obj4) {
11751 {
11752 arg5 = &temp5;
11753 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11754 }
11755 }
11756 if (obj5) {
11757 {
11758 arg6 = &temp6;
11759 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11760 }
11761 }
11762 if (obj6) {
11763 {
11764 if (! PySequence_Check(obj6)) {
11765 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11766 SWIG_fail;
11767 }
11768 arg7 = new wxArrayString;
11769 temp7 = True;
11770 int i, len=PySequence_Length(obj6);
11771 for (i=0; i<len; i++) {
11772 PyObject* item = PySequence_GetItem(obj6, i);
11773 #if wxUSE_UNICODE
11774 PyObject* str = PyObject_Unicode(item);
11775 #else
11776 PyObject* str = PyObject_Str(item);
11777 #endif
11778 if (PyErr_Occurred()) SWIG_fail;
11779 arg7->Add(Py2wxString(str));
11780 Py_DECREF(item);
11781 Py_DECREF(str);
11782 }
11783 }
11784 }
11785 if (obj7) {
11786 arg8 = (int) SWIG_AsInt(obj7);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 }
11789 if (obj8) {
11790 arg9 = (long) SWIG_AsLong(obj8);
11791 if (PyErr_Occurred()) SWIG_fail;
11792 }
11793 if (obj9) {
11794 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11795 SWIG_POINTER_EXCEPTION | 0)) == -1)
11796 SWIG_fail;
11797 if (arg10 == NULL) {
11798 PyErr_SetString(PyExc_TypeError,"null reference");
11799 SWIG_fail;
11800 }
11801 }
11802 if (obj10) {
11803 {
11804 arg11 = wxString_in_helper(obj10);
11805 if (arg11 == NULL) SWIG_fail;
11806 temp11 = True;
11807 }
11808 }
11809 {
11810 PyThreadState* __tstate = wxPyBeginAllowThreads();
11811 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);
11812
11813 wxPyEndAllowThreads(__tstate);
11814 if (PyErr_Occurred()) SWIG_fail;
11815 }
11816 {
11817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11818 }
11819 {
11820 if (temp4)
11821 delete arg4;
11822 }
11823 {
11824 if (temp7) delete arg7;
11825 }
11826 {
11827 if (temp11)
11828 delete arg11;
11829 }
11830 return resultobj;
11831 fail:
11832 {
11833 if (temp4)
11834 delete arg4;
11835 }
11836 {
11837 if (temp7) delete arg7;
11838 }
11839 {
11840 if (temp11)
11841 delete arg11;
11842 }
11843 return NULL;
11844 }
11845
11846
11847 static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11848 PyObject *resultobj;
11849 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11850 int arg2 ;
11851 PyObject * obj0 = 0 ;
11852 PyObject * obj1 = 0 ;
11853 char *kwnames[] = {
11854 (char *) "self",(char *) "n", NULL
11855 };
11856
11857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11860 arg2 = (int) SWIG_AsInt(obj1);
11861 if (PyErr_Occurred()) SWIG_fail;
11862 {
11863 PyThreadState* __tstate = wxPyBeginAllowThreads();
11864 (arg1)->SetSelection(arg2);
11865
11866 wxPyEndAllowThreads(__tstate);
11867 if (PyErr_Occurred()) SWIG_fail;
11868 }
11869 Py_INCREF(Py_None); resultobj = Py_None;
11870 return resultobj;
11871 fail:
11872 return NULL;
11873 }
11874
11875
11876 static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11877 PyObject *resultobj;
11878 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11879 int result;
11880 PyObject * obj0 = 0 ;
11881 char *kwnames[] = {
11882 (char *) "self", NULL
11883 };
11884
11885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11888 {
11889 PyThreadState* __tstate = wxPyBeginAllowThreads();
11890 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11891
11892 wxPyEndAllowThreads(__tstate);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 }
11895 resultobj = SWIG_FromInt((int)result);
11896 return resultobj;
11897 fail:
11898 return NULL;
11899 }
11900
11901
11902 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11903 PyObject *resultobj;
11904 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11905 wxString result;
11906 PyObject * obj0 = 0 ;
11907 char *kwnames[] = {
11908 (char *) "self", NULL
11909 };
11910
11911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11914 {
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11917
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 {
11922 #if wxUSE_UNICODE
11923 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11924 #else
11925 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11926 #endif
11927 }
11928 return resultobj;
11929 fail:
11930 return NULL;
11931 }
11932
11933
11934 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11935 PyObject *resultobj;
11936 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11937 wxString *arg2 = 0 ;
11938 bool result;
11939 bool temp2 = False ;
11940 PyObject * obj0 = 0 ;
11941 PyObject * obj1 = 0 ;
11942 char *kwnames[] = {
11943 (char *) "self",(char *) "s", NULL
11944 };
11945
11946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
11947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11949 {
11950 arg2 = wxString_in_helper(obj1);
11951 if (arg2 == NULL) SWIG_fail;
11952 temp2 = True;
11953 }
11954 {
11955 PyThreadState* __tstate = wxPyBeginAllowThreads();
11956 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
11957
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 {
11962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11963 }
11964 {
11965 if (temp2)
11966 delete arg2;
11967 }
11968 return resultobj;
11969 fail:
11970 {
11971 if (temp2)
11972 delete arg2;
11973 }
11974 return NULL;
11975 }
11976
11977
11978 static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11979 PyObject *resultobj;
11980 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11981 int result;
11982 PyObject * obj0 = 0 ;
11983 char *kwnames[] = {
11984 (char *) "self", NULL
11985 };
11986
11987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
11988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11990 {
11991 PyThreadState* __tstate = wxPyBeginAllowThreads();
11992 result = (int)((wxRadioBox const *)arg1)->GetCount();
11993
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 resultobj = SWIG_FromInt((int)result);
11998 return resultobj;
11999 fail:
12000 return NULL;
12001 }
12002
12003
12004 static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
12005 PyObject *resultobj;
12006 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12007 wxString *arg2 = 0 ;
12008 int result;
12009 bool temp2 = False ;
12010 PyObject * obj0 = 0 ;
12011 PyObject * obj1 = 0 ;
12012 char *kwnames[] = {
12013 (char *) "self",(char *) "s", NULL
12014 };
12015
12016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12019 {
12020 arg2 = wxString_in_helper(obj1);
12021 if (arg2 == NULL) SWIG_fail;
12022 temp2 = True;
12023 }
12024 {
12025 PyThreadState* __tstate = wxPyBeginAllowThreads();
12026 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12027
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 resultobj = SWIG_FromInt((int)result);
12032 {
12033 if (temp2)
12034 delete arg2;
12035 }
12036 return resultobj;
12037 fail:
12038 {
12039 if (temp2)
12040 delete arg2;
12041 }
12042 return NULL;
12043 }
12044
12045
12046 static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12047 PyObject *resultobj;
12048 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12049 int arg2 ;
12050 wxString result;
12051 PyObject * obj0 = 0 ;
12052 PyObject * obj1 = 0 ;
12053 char *kwnames[] = {
12054 (char *) "self",(char *) "n", NULL
12055 };
12056
12057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12060 arg2 = (int) SWIG_AsInt(obj1);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 {
12063 PyThreadState* __tstate = wxPyBeginAllowThreads();
12064 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12065
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 {
12070 #if wxUSE_UNICODE
12071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12072 #else
12073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12074 #endif
12075 }
12076 return resultobj;
12077 fail:
12078 return NULL;
12079 }
12080
12081
12082 static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12083 PyObject *resultobj;
12084 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12085 int arg2 ;
12086 wxString *arg3 = 0 ;
12087 bool temp3 = False ;
12088 PyObject * obj0 = 0 ;
12089 PyObject * obj1 = 0 ;
12090 PyObject * obj2 = 0 ;
12091 char *kwnames[] = {
12092 (char *) "self",(char *) "n",(char *) "label", NULL
12093 };
12094
12095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12098 arg2 = (int) SWIG_AsInt(obj1);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 {
12101 arg3 = wxString_in_helper(obj2);
12102 if (arg3 == NULL) SWIG_fail;
12103 temp3 = True;
12104 }
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 (arg1)->SetString(arg2,(wxString const &)*arg3);
12108
12109 wxPyEndAllowThreads(__tstate);
12110 if (PyErr_Occurred()) SWIG_fail;
12111 }
12112 Py_INCREF(Py_None); resultobj = Py_None;
12113 {
12114 if (temp3)
12115 delete arg3;
12116 }
12117 return resultobj;
12118 fail:
12119 {
12120 if (temp3)
12121 delete arg3;
12122 }
12123 return NULL;
12124 }
12125
12126
12127 static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12128 PyObject *resultobj;
12129 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12130 int arg2 ;
12131 bool arg3 = (bool) True ;
12132 PyObject * obj0 = 0 ;
12133 PyObject * obj1 = 0 ;
12134 PyObject * obj2 = 0 ;
12135 char *kwnames[] = {
12136 (char *) "self",(char *) "n",(char *) "enable", NULL
12137 };
12138
12139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12142 arg2 = (int) SWIG_AsInt(obj1);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 if (obj2) {
12145 arg3 = (bool) SWIG_AsBool(obj2);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 (arg1)->Enable(arg2,arg3);
12151
12152 wxPyEndAllowThreads(__tstate);
12153 if (PyErr_Occurred()) SWIG_fail;
12154 }
12155 Py_INCREF(Py_None); resultobj = Py_None;
12156 return resultobj;
12157 fail:
12158 return NULL;
12159 }
12160
12161
12162 static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12163 PyObject *resultobj;
12164 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12165 int arg2 ;
12166 bool arg3 = (bool) True ;
12167 PyObject * obj0 = 0 ;
12168 PyObject * obj1 = 0 ;
12169 PyObject * obj2 = 0 ;
12170 char *kwnames[] = {
12171 (char *) "self",(char *) "n",(char *) "show", NULL
12172 };
12173
12174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12177 arg2 = (int) SWIG_AsInt(obj1);
12178 if (PyErr_Occurred()) SWIG_fail;
12179 if (obj2) {
12180 arg3 = (bool) SWIG_AsBool(obj2);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 (arg1)->Show(arg2,arg3);
12186
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 Py_INCREF(Py_None); resultobj = Py_None;
12191 return resultobj;
12192 fail:
12193 return NULL;
12194 }
12195
12196
12197 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12198 PyObject *resultobj;
12199 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12200 int result;
12201 PyObject * obj0 = 0 ;
12202 char *kwnames[] = {
12203 (char *) "self", NULL
12204 };
12205
12206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1);
12212
12213 wxPyEndAllowThreads(__tstate);
12214 if (PyErr_Occurred()) SWIG_fail;
12215 }
12216 resultobj = SWIG_FromInt((int)result);
12217 return resultobj;
12218 fail:
12219 return NULL;
12220 }
12221
12222
12223 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12224 PyObject *resultobj;
12225 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12226 int result;
12227 PyObject * obj0 = 0 ;
12228 char *kwnames[] = {
12229 (char *) "self", NULL
12230 };
12231
12232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12235 {
12236 PyThreadState* __tstate = wxPyBeginAllowThreads();
12237 result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1);
12238
12239 wxPyEndAllowThreads(__tstate);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 resultobj = SWIG_FromInt((int)result);
12243 return resultobj;
12244 fail:
12245 return NULL;
12246 }
12247
12248
12249 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12250 PyObject *resultobj;
12251 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12252 int arg2 ;
12253 int arg3 ;
12254 long arg4 ;
12255 int result;
12256 PyObject * obj0 = 0 ;
12257 PyObject * obj1 = 0 ;
12258 PyObject * obj2 = 0 ;
12259 PyObject * obj3 = 0 ;
12260 char *kwnames[] = {
12261 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12262 };
12263
12264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12267 arg2 = (int) SWIG_AsInt(obj1);
12268 if (PyErr_Occurred()) SWIG_fail;
12269 arg3 = (wxDirection) SWIG_AsInt(obj2);
12270 if (PyErr_Occurred()) SWIG_fail;
12271 arg4 = (long) SWIG_AsLong(obj3);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 {
12274 PyThreadState* __tstate = wxPyBeginAllowThreads();
12275 result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4);
12276
12277 wxPyEndAllowThreads(__tstate);
12278 if (PyErr_Occurred()) SWIG_fail;
12279 }
12280 resultobj = SWIG_FromInt((int)result);
12281 return resultobj;
12282 fail:
12283 return NULL;
12284 }
12285
12286
12287 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12288 PyObject *resultobj;
12289 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12290 wxVisualAttributes result;
12291 PyObject * obj0 = 0 ;
12292 char *kwnames[] = {
12293 (char *) "variant", NULL
12294 };
12295
12296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12297 if (obj0) {
12298 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12304
12305 wxPyEndAllowThreads(__tstate);
12306 if (PyErr_Occurred()) SWIG_fail;
12307 }
12308 {
12309 wxVisualAttributes * resultptr;
12310 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12311 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12312 }
12313 return resultobj;
12314 fail:
12315 return NULL;
12316 }
12317
12318
12319 static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
12320 PyObject *obj;
12321 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12322 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12323 Py_INCREF(obj);
12324 return Py_BuildValue((char *)"");
12325 }
12326 static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12327 PyObject *resultobj;
12328 wxWindow *arg1 = (wxWindow *) 0 ;
12329 int arg2 ;
12330 wxString *arg3 = 0 ;
12331 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12332 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12333 wxSize const &arg5_defvalue = wxDefaultSize ;
12334 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12335 long arg6 = (long) 0 ;
12336 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12337 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12338 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12339 wxString *arg8 = (wxString *) &arg8_defvalue ;
12340 wxRadioButton *result;
12341 bool temp3 = False ;
12342 wxPoint temp4 ;
12343 wxSize temp5 ;
12344 bool temp8 = False ;
12345 PyObject * obj0 = 0 ;
12346 PyObject * obj1 = 0 ;
12347 PyObject * obj2 = 0 ;
12348 PyObject * obj3 = 0 ;
12349 PyObject * obj4 = 0 ;
12350 PyObject * obj5 = 0 ;
12351 PyObject * obj6 = 0 ;
12352 PyObject * obj7 = 0 ;
12353 char *kwnames[] = {
12354 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12355 };
12356
12357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12360 arg2 = (int) SWIG_AsInt(obj1);
12361 if (PyErr_Occurred()) SWIG_fail;
12362 {
12363 arg3 = wxString_in_helper(obj2);
12364 if (arg3 == NULL) SWIG_fail;
12365 temp3 = True;
12366 }
12367 if (obj3) {
12368 {
12369 arg4 = &temp4;
12370 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12371 }
12372 }
12373 if (obj4) {
12374 {
12375 arg5 = &temp5;
12376 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12377 }
12378 }
12379 if (obj5) {
12380 arg6 = (long) SWIG_AsLong(obj5);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 }
12383 if (obj6) {
12384 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12385 SWIG_POINTER_EXCEPTION | 0)) == -1)
12386 SWIG_fail;
12387 if (arg7 == NULL) {
12388 PyErr_SetString(PyExc_TypeError,"null reference");
12389 SWIG_fail;
12390 }
12391 }
12392 if (obj7) {
12393 {
12394 arg8 = wxString_in_helper(obj7);
12395 if (arg8 == NULL) SWIG_fail;
12396 temp8 = True;
12397 }
12398 }
12399 {
12400 PyThreadState* __tstate = wxPyBeginAllowThreads();
12401 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12402
12403 wxPyEndAllowThreads(__tstate);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 }
12406 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12407 {
12408 if (temp3)
12409 delete arg3;
12410 }
12411 {
12412 if (temp8)
12413 delete arg8;
12414 }
12415 return resultobj;
12416 fail:
12417 {
12418 if (temp3)
12419 delete arg3;
12420 }
12421 {
12422 if (temp8)
12423 delete arg8;
12424 }
12425 return NULL;
12426 }
12427
12428
12429 static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12430 PyObject *resultobj;
12431 wxRadioButton *result;
12432 char *kwnames[] = {
12433 NULL
12434 };
12435
12436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12437 {
12438 PyThreadState* __tstate = wxPyBeginAllowThreads();
12439 result = (wxRadioButton *)new wxRadioButton();
12440
12441 wxPyEndAllowThreads(__tstate);
12442 if (PyErr_Occurred()) SWIG_fail;
12443 }
12444 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12445 return resultobj;
12446 fail:
12447 return NULL;
12448 }
12449
12450
12451 static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12452 PyObject *resultobj;
12453 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12454 wxWindow *arg2 = (wxWindow *) 0 ;
12455 int arg3 ;
12456 wxString *arg4 = 0 ;
12457 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12458 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12459 wxSize const &arg6_defvalue = wxDefaultSize ;
12460 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12461 long arg7 = (long) 0 ;
12462 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12463 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12464 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12465 wxString *arg9 = (wxString *) &arg9_defvalue ;
12466 bool result;
12467 bool temp4 = False ;
12468 wxPoint temp5 ;
12469 wxSize temp6 ;
12470 bool temp9 = False ;
12471 PyObject * obj0 = 0 ;
12472 PyObject * obj1 = 0 ;
12473 PyObject * obj2 = 0 ;
12474 PyObject * obj3 = 0 ;
12475 PyObject * obj4 = 0 ;
12476 PyObject * obj5 = 0 ;
12477 PyObject * obj6 = 0 ;
12478 PyObject * obj7 = 0 ;
12479 PyObject * obj8 = 0 ;
12480 char *kwnames[] = {
12481 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12482 };
12483
12484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12489 arg3 = (int) SWIG_AsInt(obj2);
12490 if (PyErr_Occurred()) SWIG_fail;
12491 {
12492 arg4 = wxString_in_helper(obj3);
12493 if (arg4 == NULL) SWIG_fail;
12494 temp4 = True;
12495 }
12496 if (obj4) {
12497 {
12498 arg5 = &temp5;
12499 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12500 }
12501 }
12502 if (obj5) {
12503 {
12504 arg6 = &temp6;
12505 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12506 }
12507 }
12508 if (obj6) {
12509 arg7 = (long) SWIG_AsLong(obj6);
12510 if (PyErr_Occurred()) SWIG_fail;
12511 }
12512 if (obj7) {
12513 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12514 SWIG_POINTER_EXCEPTION | 0)) == -1)
12515 SWIG_fail;
12516 if (arg8 == NULL) {
12517 PyErr_SetString(PyExc_TypeError,"null reference");
12518 SWIG_fail;
12519 }
12520 }
12521 if (obj8) {
12522 {
12523 arg9 = wxString_in_helper(obj8);
12524 if (arg9 == NULL) SWIG_fail;
12525 temp9 = True;
12526 }
12527 }
12528 {
12529 PyThreadState* __tstate = wxPyBeginAllowThreads();
12530 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12531
12532 wxPyEndAllowThreads(__tstate);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 }
12535 {
12536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12537 }
12538 {
12539 if (temp4)
12540 delete arg4;
12541 }
12542 {
12543 if (temp9)
12544 delete arg9;
12545 }
12546 return resultobj;
12547 fail:
12548 {
12549 if (temp4)
12550 delete arg4;
12551 }
12552 {
12553 if (temp9)
12554 delete arg9;
12555 }
12556 return NULL;
12557 }
12558
12559
12560 static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj;
12562 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12563 bool result;
12564 PyObject * obj0 = 0 ;
12565 char *kwnames[] = {
12566 (char *) "self", NULL
12567 };
12568
12569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 result = (bool)(arg1)->GetValue();
12575
12576 wxPyEndAllowThreads(__tstate);
12577 if (PyErr_Occurred()) SWIG_fail;
12578 }
12579 {
12580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12581 }
12582 return resultobj;
12583 fail:
12584 return NULL;
12585 }
12586
12587
12588 static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12589 PyObject *resultobj;
12590 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12591 bool arg2 ;
12592 PyObject * obj0 = 0 ;
12593 PyObject * obj1 = 0 ;
12594 char *kwnames[] = {
12595 (char *) "self",(char *) "value", NULL
12596 };
12597
12598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12601 arg2 = (bool) SWIG_AsBool(obj1);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 {
12604 PyThreadState* __tstate = wxPyBeginAllowThreads();
12605 (arg1)->SetValue(arg2);
12606
12607 wxPyEndAllowThreads(__tstate);
12608 if (PyErr_Occurred()) SWIG_fail;
12609 }
12610 Py_INCREF(Py_None); resultobj = Py_None;
12611 return resultobj;
12612 fail:
12613 return NULL;
12614 }
12615
12616
12617 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12618 PyObject *resultobj;
12619 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12620 wxVisualAttributes result;
12621 PyObject * obj0 = 0 ;
12622 char *kwnames[] = {
12623 (char *) "variant", NULL
12624 };
12625
12626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12627 if (obj0) {
12628 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12629 if (PyErr_Occurred()) SWIG_fail;
12630 }
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12634
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 {
12639 wxVisualAttributes * resultptr;
12640 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12641 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12642 }
12643 return resultobj;
12644 fail:
12645 return NULL;
12646 }
12647
12648
12649 static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
12650 PyObject *obj;
12651 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12652 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12653 Py_INCREF(obj);
12654 return Py_BuildValue((char *)"");
12655 }
12656 static int _wrap_SliderNameStr_set(PyObject *_val) {
12657 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12658 return 1;
12659 }
12660
12661
12662 static PyObject *_wrap_SliderNameStr_get() {
12663 PyObject *pyobj;
12664
12665 {
12666 #if wxUSE_UNICODE
12667 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12668 #else
12669 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12670 #endif
12671 }
12672 return pyobj;
12673 }
12674
12675
12676 static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
12677 PyObject *resultobj;
12678 wxWindow *arg1 = (wxWindow *) 0 ;
12679 int arg2 ;
12680 int arg3 ;
12681 int arg4 ;
12682 int arg5 ;
12683 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12684 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12685 wxSize const &arg7_defvalue = wxDefaultSize ;
12686 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12687 long arg8 = (long) wxSL_HORIZONTAL ;
12688 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12689 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12690 wxString const &arg10_defvalue = wxPySliderNameStr ;
12691 wxString *arg10 = (wxString *) &arg10_defvalue ;
12692 wxSlider *result;
12693 wxPoint temp6 ;
12694 wxSize temp7 ;
12695 bool temp10 = False ;
12696 PyObject * obj0 = 0 ;
12697 PyObject * obj1 = 0 ;
12698 PyObject * obj2 = 0 ;
12699 PyObject * obj3 = 0 ;
12700 PyObject * obj4 = 0 ;
12701 PyObject * obj5 = 0 ;
12702 PyObject * obj6 = 0 ;
12703 PyObject * obj7 = 0 ;
12704 PyObject * obj8 = 0 ;
12705 PyObject * obj9 = 0 ;
12706 char *kwnames[] = {
12707 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12708 };
12709
12710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12713 arg2 = (int) SWIG_AsInt(obj1);
12714 if (PyErr_Occurred()) SWIG_fail;
12715 arg3 = (int) SWIG_AsInt(obj2);
12716 if (PyErr_Occurred()) SWIG_fail;
12717 arg4 = (int) SWIG_AsInt(obj3);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 arg5 = (int) SWIG_AsInt(obj4);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 if (obj5) {
12722 {
12723 arg6 = &temp6;
12724 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12725 }
12726 }
12727 if (obj6) {
12728 {
12729 arg7 = &temp7;
12730 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12731 }
12732 }
12733 if (obj7) {
12734 arg8 = (long) SWIG_AsLong(obj7);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 if (obj8) {
12738 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12739 SWIG_POINTER_EXCEPTION | 0)) == -1)
12740 SWIG_fail;
12741 if (arg9 == NULL) {
12742 PyErr_SetString(PyExc_TypeError,"null reference");
12743 SWIG_fail;
12744 }
12745 }
12746 if (obj9) {
12747 {
12748 arg10 = wxString_in_helper(obj9);
12749 if (arg10 == NULL) SWIG_fail;
12750 temp10 = True;
12751 }
12752 }
12753 {
12754 PyThreadState* __tstate = wxPyBeginAllowThreads();
12755 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12756
12757 wxPyEndAllowThreads(__tstate);
12758 if (PyErr_Occurred()) SWIG_fail;
12759 }
12760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12761 {
12762 if (temp10)
12763 delete arg10;
12764 }
12765 return resultobj;
12766 fail:
12767 {
12768 if (temp10)
12769 delete arg10;
12770 }
12771 return NULL;
12772 }
12773
12774
12775 static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
12776 PyObject *resultobj;
12777 wxSlider *result;
12778 char *kwnames[] = {
12779 NULL
12780 };
12781
12782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12783 {
12784 PyThreadState* __tstate = wxPyBeginAllowThreads();
12785 result = (wxSlider *)new wxSlider();
12786
12787 wxPyEndAllowThreads(__tstate);
12788 if (PyErr_Occurred()) SWIG_fail;
12789 }
12790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12791 return resultobj;
12792 fail:
12793 return NULL;
12794 }
12795
12796
12797 static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12798 PyObject *resultobj;
12799 wxSlider *arg1 = (wxSlider *) 0 ;
12800 wxWindow *arg2 = (wxWindow *) 0 ;
12801 int arg3 ;
12802 int arg4 ;
12803 int arg5 ;
12804 int arg6 ;
12805 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12806 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12807 wxSize const &arg8_defvalue = wxDefaultSize ;
12808 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12809 long arg9 = (long) wxSL_HORIZONTAL ;
12810 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12811 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12812 wxString const &arg11_defvalue = wxPySliderNameStr ;
12813 wxString *arg11 = (wxString *) &arg11_defvalue ;
12814 bool result;
12815 wxPoint temp7 ;
12816 wxSize temp8 ;
12817 bool temp11 = False ;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12820 PyObject * obj2 = 0 ;
12821 PyObject * obj3 = 0 ;
12822 PyObject * obj4 = 0 ;
12823 PyObject * obj5 = 0 ;
12824 PyObject * obj6 = 0 ;
12825 PyObject * obj7 = 0 ;
12826 PyObject * obj8 = 0 ;
12827 PyObject * obj9 = 0 ;
12828 PyObject * obj10 = 0 ;
12829 char *kwnames[] = {
12830 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12831 };
12832
12833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12836 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12838 arg3 = (int) SWIG_AsInt(obj2);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 arg4 = (int) SWIG_AsInt(obj3);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 arg5 = (int) SWIG_AsInt(obj4);
12843 if (PyErr_Occurred()) SWIG_fail;
12844 arg6 = (int) SWIG_AsInt(obj5);
12845 if (PyErr_Occurred()) SWIG_fail;
12846 if (obj6) {
12847 {
12848 arg7 = &temp7;
12849 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12850 }
12851 }
12852 if (obj7) {
12853 {
12854 arg8 = &temp8;
12855 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12856 }
12857 }
12858 if (obj8) {
12859 arg9 = (long) SWIG_AsLong(obj8);
12860 if (PyErr_Occurred()) SWIG_fail;
12861 }
12862 if (obj9) {
12863 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12864 SWIG_POINTER_EXCEPTION | 0)) == -1)
12865 SWIG_fail;
12866 if (arg10 == NULL) {
12867 PyErr_SetString(PyExc_TypeError,"null reference");
12868 SWIG_fail;
12869 }
12870 }
12871 if (obj10) {
12872 {
12873 arg11 = wxString_in_helper(obj10);
12874 if (arg11 == NULL) SWIG_fail;
12875 temp11 = True;
12876 }
12877 }
12878 {
12879 PyThreadState* __tstate = wxPyBeginAllowThreads();
12880 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12881
12882 wxPyEndAllowThreads(__tstate);
12883 if (PyErr_Occurred()) SWIG_fail;
12884 }
12885 {
12886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12887 }
12888 {
12889 if (temp11)
12890 delete arg11;
12891 }
12892 return resultobj;
12893 fail:
12894 {
12895 if (temp11)
12896 delete arg11;
12897 }
12898 return NULL;
12899 }
12900
12901
12902 static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12903 PyObject *resultobj;
12904 wxSlider *arg1 = (wxSlider *) 0 ;
12905 int result;
12906 PyObject * obj0 = 0 ;
12907 char *kwnames[] = {
12908 (char *) "self", NULL
12909 };
12910
12911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12914 {
12915 PyThreadState* __tstate = wxPyBeginAllowThreads();
12916 result = (int)((wxSlider const *)arg1)->GetValue();
12917
12918 wxPyEndAllowThreads(__tstate);
12919 if (PyErr_Occurred()) SWIG_fail;
12920 }
12921 resultobj = SWIG_FromInt((int)result);
12922 return resultobj;
12923 fail:
12924 return NULL;
12925 }
12926
12927
12928 static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12929 PyObject *resultobj;
12930 wxSlider *arg1 = (wxSlider *) 0 ;
12931 int arg2 ;
12932 PyObject * obj0 = 0 ;
12933 PyObject * obj1 = 0 ;
12934 char *kwnames[] = {
12935 (char *) "self",(char *) "value", NULL
12936 };
12937
12938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12941 arg2 = (int) SWIG_AsInt(obj1);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 {
12944 PyThreadState* __tstate = wxPyBeginAllowThreads();
12945 (arg1)->SetValue(arg2);
12946
12947 wxPyEndAllowThreads(__tstate);
12948 if (PyErr_Occurred()) SWIG_fail;
12949 }
12950 Py_INCREF(Py_None); resultobj = Py_None;
12951 return resultobj;
12952 fail:
12953 return NULL;
12954 }
12955
12956
12957 static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
12958 PyObject *resultobj;
12959 wxSlider *arg1 = (wxSlider *) 0 ;
12960 int arg2 ;
12961 int arg3 ;
12962 PyObject * obj0 = 0 ;
12963 PyObject * obj1 = 0 ;
12964 PyObject * obj2 = 0 ;
12965 char *kwnames[] = {
12966 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
12967 };
12968
12969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
12970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12972 arg2 = (int) SWIG_AsInt(obj1);
12973 if (PyErr_Occurred()) SWIG_fail;
12974 arg3 = (int) SWIG_AsInt(obj2);
12975 if (PyErr_Occurred()) SWIG_fail;
12976 {
12977 PyThreadState* __tstate = wxPyBeginAllowThreads();
12978 (arg1)->SetRange(arg2,arg3);
12979
12980 wxPyEndAllowThreads(__tstate);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
12983 Py_INCREF(Py_None); resultobj = Py_None;
12984 return resultobj;
12985 fail:
12986 return NULL;
12987 }
12988
12989
12990 static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12991 PyObject *resultobj;
12992 wxSlider *arg1 = (wxSlider *) 0 ;
12993 int result;
12994 PyObject * obj0 = 0 ;
12995 char *kwnames[] = {
12996 (char *) "self", NULL
12997 };
12998
12999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13002 {
13003 PyThreadState* __tstate = wxPyBeginAllowThreads();
13004 result = (int)((wxSlider const *)arg1)->GetMin();
13005
13006 wxPyEndAllowThreads(__tstate);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 resultobj = SWIG_FromInt((int)result);
13010 return resultobj;
13011 fail:
13012 return NULL;
13013 }
13014
13015
13016 static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13017 PyObject *resultobj;
13018 wxSlider *arg1 = (wxSlider *) 0 ;
13019 int result;
13020 PyObject * obj0 = 0 ;
13021 char *kwnames[] = {
13022 (char *) "self", NULL
13023 };
13024
13025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 result = (int)((wxSlider const *)arg1)->GetMax();
13031
13032 wxPyEndAllowThreads(__tstate);
13033 if (PyErr_Occurred()) SWIG_fail;
13034 }
13035 resultobj = SWIG_FromInt((int)result);
13036 return resultobj;
13037 fail:
13038 return NULL;
13039 }
13040
13041
13042 static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
13043 PyObject *resultobj;
13044 wxSlider *arg1 = (wxSlider *) 0 ;
13045 int arg2 ;
13046 PyObject * obj0 = 0 ;
13047 PyObject * obj1 = 0 ;
13048 char *kwnames[] = {
13049 (char *) "self",(char *) "minValue", NULL
13050 };
13051
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13055 arg2 = (int) SWIG_AsInt(obj1);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 (arg1)->SetMin(arg2);
13060
13061 wxPyEndAllowThreads(__tstate);
13062 if (PyErr_Occurred()) SWIG_fail;
13063 }
13064 Py_INCREF(Py_None); resultobj = Py_None;
13065 return resultobj;
13066 fail:
13067 return NULL;
13068 }
13069
13070
13071 static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13072 PyObject *resultobj;
13073 wxSlider *arg1 = (wxSlider *) 0 ;
13074 int arg2 ;
13075 PyObject * obj0 = 0 ;
13076 PyObject * obj1 = 0 ;
13077 char *kwnames[] = {
13078 (char *) "self",(char *) "maxValue", NULL
13079 };
13080
13081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13084 arg2 = (int) SWIG_AsInt(obj1);
13085 if (PyErr_Occurred()) SWIG_fail;
13086 {
13087 PyThreadState* __tstate = wxPyBeginAllowThreads();
13088 (arg1)->SetMax(arg2);
13089
13090 wxPyEndAllowThreads(__tstate);
13091 if (PyErr_Occurred()) SWIG_fail;
13092 }
13093 Py_INCREF(Py_None); resultobj = Py_None;
13094 return resultobj;
13095 fail:
13096 return NULL;
13097 }
13098
13099
13100 static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13101 PyObject *resultobj;
13102 wxSlider *arg1 = (wxSlider *) 0 ;
13103 int arg2 ;
13104 PyObject * obj0 = 0 ;
13105 PyObject * obj1 = 0 ;
13106 char *kwnames[] = {
13107 (char *) "self",(char *) "lineSize", NULL
13108 };
13109
13110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13113 arg2 = (int) SWIG_AsInt(obj1);
13114 if (PyErr_Occurred()) SWIG_fail;
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 (arg1)->SetLineSize(arg2);
13118
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 Py_INCREF(Py_None); resultobj = Py_None;
13123 return resultobj;
13124 fail:
13125 return NULL;
13126 }
13127
13128
13129 static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13130 PyObject *resultobj;
13131 wxSlider *arg1 = (wxSlider *) 0 ;
13132 int arg2 ;
13133 PyObject * obj0 = 0 ;
13134 PyObject * obj1 = 0 ;
13135 char *kwnames[] = {
13136 (char *) "self",(char *) "pageSize", NULL
13137 };
13138
13139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13142 arg2 = (int) SWIG_AsInt(obj1);
13143 if (PyErr_Occurred()) SWIG_fail;
13144 {
13145 PyThreadState* __tstate = wxPyBeginAllowThreads();
13146 (arg1)->SetPageSize(arg2);
13147
13148 wxPyEndAllowThreads(__tstate);
13149 if (PyErr_Occurred()) SWIG_fail;
13150 }
13151 Py_INCREF(Py_None); resultobj = Py_None;
13152 return resultobj;
13153 fail:
13154 return NULL;
13155 }
13156
13157
13158 static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13159 PyObject *resultobj;
13160 wxSlider *arg1 = (wxSlider *) 0 ;
13161 int result;
13162 PyObject * obj0 = 0 ;
13163 char *kwnames[] = {
13164 (char *) "self", NULL
13165 };
13166
13167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13170 {
13171 PyThreadState* __tstate = wxPyBeginAllowThreads();
13172 result = (int)((wxSlider const *)arg1)->GetLineSize();
13173
13174 wxPyEndAllowThreads(__tstate);
13175 if (PyErr_Occurred()) SWIG_fail;
13176 }
13177 resultobj = SWIG_FromInt((int)result);
13178 return resultobj;
13179 fail:
13180 return NULL;
13181 }
13182
13183
13184 static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13185 PyObject *resultobj;
13186 wxSlider *arg1 = (wxSlider *) 0 ;
13187 int result;
13188 PyObject * obj0 = 0 ;
13189 char *kwnames[] = {
13190 (char *) "self", NULL
13191 };
13192
13193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13196 {
13197 PyThreadState* __tstate = wxPyBeginAllowThreads();
13198 result = (int)((wxSlider const *)arg1)->GetPageSize();
13199
13200 wxPyEndAllowThreads(__tstate);
13201 if (PyErr_Occurred()) SWIG_fail;
13202 }
13203 resultobj = SWIG_FromInt((int)result);
13204 return resultobj;
13205 fail:
13206 return NULL;
13207 }
13208
13209
13210 static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13211 PyObject *resultobj;
13212 wxSlider *arg1 = (wxSlider *) 0 ;
13213 int arg2 ;
13214 PyObject * obj0 = 0 ;
13215 PyObject * obj1 = 0 ;
13216 char *kwnames[] = {
13217 (char *) "self",(char *) "lenPixels", NULL
13218 };
13219
13220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13223 arg2 = (int) SWIG_AsInt(obj1);
13224 if (PyErr_Occurred()) SWIG_fail;
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 (arg1)->SetThumbLength(arg2);
13228
13229 wxPyEndAllowThreads(__tstate);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 }
13232 Py_INCREF(Py_None); resultobj = Py_None;
13233 return resultobj;
13234 fail:
13235 return NULL;
13236 }
13237
13238
13239 static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13240 PyObject *resultobj;
13241 wxSlider *arg1 = (wxSlider *) 0 ;
13242 int result;
13243 PyObject * obj0 = 0 ;
13244 char *kwnames[] = {
13245 (char *) "self", NULL
13246 };
13247
13248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13254
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 resultobj = SWIG_FromInt((int)result);
13259 return resultobj;
13260 fail:
13261 return NULL;
13262 }
13263
13264
13265 static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13266 PyObject *resultobj;
13267 wxSlider *arg1 = (wxSlider *) 0 ;
13268 int arg2 ;
13269 int arg3 = (int) 1 ;
13270 PyObject * obj0 = 0 ;
13271 PyObject * obj1 = 0 ;
13272 PyObject * obj2 = 0 ;
13273 char *kwnames[] = {
13274 (char *) "self",(char *) "n",(char *) "pos", NULL
13275 };
13276
13277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13280 arg2 = (int) SWIG_AsInt(obj1);
13281 if (PyErr_Occurred()) SWIG_fail;
13282 if (obj2) {
13283 arg3 = (int) SWIG_AsInt(obj2);
13284 if (PyErr_Occurred()) SWIG_fail;
13285 }
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 (arg1)->SetTickFreq(arg2,arg3);
13289
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 Py_INCREF(Py_None); resultobj = Py_None;
13294 return resultobj;
13295 fail:
13296 return NULL;
13297 }
13298
13299
13300 static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13301 PyObject *resultobj;
13302 wxSlider *arg1 = (wxSlider *) 0 ;
13303 int result;
13304 PyObject * obj0 = 0 ;
13305 char *kwnames[] = {
13306 (char *) "self", NULL
13307 };
13308
13309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13312 {
13313 PyThreadState* __tstate = wxPyBeginAllowThreads();
13314 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13315
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 resultobj = SWIG_FromInt((int)result);
13320 return resultobj;
13321 fail:
13322 return NULL;
13323 }
13324
13325
13326 static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
13327 PyObject *resultobj;
13328 wxSlider *arg1 = (wxSlider *) 0 ;
13329 PyObject * obj0 = 0 ;
13330 char *kwnames[] = {
13331 (char *) "self", NULL
13332 };
13333
13334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 (arg1)->ClearTicks();
13340
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 Py_INCREF(Py_None); resultobj = Py_None;
13345 return resultobj;
13346 fail:
13347 return NULL;
13348 }
13349
13350
13351 static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
13352 PyObject *resultobj;
13353 wxSlider *arg1 = (wxSlider *) 0 ;
13354 int arg2 ;
13355 PyObject * obj0 = 0 ;
13356 PyObject * obj1 = 0 ;
13357 char *kwnames[] = {
13358 (char *) "self",(char *) "tickPos", NULL
13359 };
13360
13361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13364 arg2 = (int) SWIG_AsInt(obj1);
13365 if (PyErr_Occurred()) SWIG_fail;
13366 {
13367 PyThreadState* __tstate = wxPyBeginAllowThreads();
13368 (arg1)->SetTick(arg2);
13369
13370 wxPyEndAllowThreads(__tstate);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 }
13373 Py_INCREF(Py_None); resultobj = Py_None;
13374 return resultobj;
13375 fail:
13376 return NULL;
13377 }
13378
13379
13380 static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
13381 PyObject *resultobj;
13382 wxSlider *arg1 = (wxSlider *) 0 ;
13383 PyObject * obj0 = 0 ;
13384 char *kwnames[] = {
13385 (char *) "self", NULL
13386 };
13387
13388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13391 {
13392 PyThreadState* __tstate = wxPyBeginAllowThreads();
13393 (arg1)->ClearSel();
13394
13395 wxPyEndAllowThreads(__tstate);
13396 if (PyErr_Occurred()) SWIG_fail;
13397 }
13398 Py_INCREF(Py_None); resultobj = Py_None;
13399 return resultobj;
13400 fail:
13401 return NULL;
13402 }
13403
13404
13405 static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
13406 PyObject *resultobj;
13407 wxSlider *arg1 = (wxSlider *) 0 ;
13408 int result;
13409 PyObject * obj0 = 0 ;
13410 char *kwnames[] = {
13411 (char *) "self", NULL
13412 };
13413
13414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13417 {
13418 PyThreadState* __tstate = wxPyBeginAllowThreads();
13419 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13420
13421 wxPyEndAllowThreads(__tstate);
13422 if (PyErr_Occurred()) SWIG_fail;
13423 }
13424 resultobj = SWIG_FromInt((int)result);
13425 return resultobj;
13426 fail:
13427 return NULL;
13428 }
13429
13430
13431 static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
13432 PyObject *resultobj;
13433 wxSlider *arg1 = (wxSlider *) 0 ;
13434 int result;
13435 PyObject * obj0 = 0 ;
13436 char *kwnames[] = {
13437 (char *) "self", NULL
13438 };
13439
13440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13443 {
13444 PyThreadState* __tstate = wxPyBeginAllowThreads();
13445 result = (int)((wxSlider const *)arg1)->GetSelStart();
13446
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 resultobj = SWIG_FromInt((int)result);
13451 return resultobj;
13452 fail:
13453 return NULL;
13454 }
13455
13456
13457 static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13458 PyObject *resultobj;
13459 wxSlider *arg1 = (wxSlider *) 0 ;
13460 int arg2 ;
13461 int arg3 ;
13462 PyObject * obj0 = 0 ;
13463 PyObject * obj1 = 0 ;
13464 PyObject * obj2 = 0 ;
13465 char *kwnames[] = {
13466 (char *) "self",(char *) "min",(char *) "max", NULL
13467 };
13468
13469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13472 arg2 = (int) SWIG_AsInt(obj1);
13473 if (PyErr_Occurred()) SWIG_fail;
13474 arg3 = (int) SWIG_AsInt(obj2);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 {
13477 PyThreadState* __tstate = wxPyBeginAllowThreads();
13478 (arg1)->SetSelection(arg2,arg3);
13479
13480 wxPyEndAllowThreads(__tstate);
13481 if (PyErr_Occurred()) SWIG_fail;
13482 }
13483 Py_INCREF(Py_None); resultobj = Py_None;
13484 return resultobj;
13485 fail:
13486 return NULL;
13487 }
13488
13489
13490 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13491 PyObject *resultobj;
13492 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13493 wxVisualAttributes result;
13494 PyObject * obj0 = 0 ;
13495 char *kwnames[] = {
13496 (char *) "variant", NULL
13497 };
13498
13499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13500 if (obj0) {
13501 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13502 if (PyErr_Occurred()) SWIG_fail;
13503 }
13504 {
13505 PyThreadState* __tstate = wxPyBeginAllowThreads();
13506 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13507
13508 wxPyEndAllowThreads(__tstate);
13509 if (PyErr_Occurred()) SWIG_fail;
13510 }
13511 {
13512 wxVisualAttributes * resultptr;
13513 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13514 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13515 }
13516 return resultobj;
13517 fail:
13518 return NULL;
13519 }
13520
13521
13522 static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
13523 PyObject *obj;
13524 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13525 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13526 Py_INCREF(obj);
13527 return Py_BuildValue((char *)"");
13528 }
13529 static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
13530 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13531 return 1;
13532 }
13533
13534
13535 static PyObject *_wrap_ToggleButtonNameStr_get() {
13536 PyObject *pyobj;
13537
13538 {
13539 #if wxUSE_UNICODE
13540 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13541 #else
13542 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13543 #endif
13544 }
13545 return pyobj;
13546 }
13547
13548
13549 static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13550 PyObject *resultobj;
13551 wxWindow *arg1 = (wxWindow *) 0 ;
13552 int arg2 ;
13553 wxString *arg3 = 0 ;
13554 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13555 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13556 wxSize const &arg5_defvalue = wxDefaultSize ;
13557 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13558 long arg6 = (long) 0 ;
13559 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13560 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13561 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13562 wxString *arg8 = (wxString *) &arg8_defvalue ;
13563 wxToggleButton *result;
13564 bool temp3 = False ;
13565 wxPoint temp4 ;
13566 wxSize temp5 ;
13567 bool temp8 = False ;
13568 PyObject * obj0 = 0 ;
13569 PyObject * obj1 = 0 ;
13570 PyObject * obj2 = 0 ;
13571 PyObject * obj3 = 0 ;
13572 PyObject * obj4 = 0 ;
13573 PyObject * obj5 = 0 ;
13574 PyObject * obj6 = 0 ;
13575 PyObject * obj7 = 0 ;
13576 char *kwnames[] = {
13577 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13578 };
13579
13580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13583 arg2 = (int) SWIG_AsInt(obj1);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 {
13586 arg3 = wxString_in_helper(obj2);
13587 if (arg3 == NULL) SWIG_fail;
13588 temp3 = True;
13589 }
13590 if (obj3) {
13591 {
13592 arg4 = &temp4;
13593 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13594 }
13595 }
13596 if (obj4) {
13597 {
13598 arg5 = &temp5;
13599 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13600 }
13601 }
13602 if (obj5) {
13603 arg6 = (long) SWIG_AsLong(obj5);
13604 if (PyErr_Occurred()) SWIG_fail;
13605 }
13606 if (obj6) {
13607 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13608 SWIG_POINTER_EXCEPTION | 0)) == -1)
13609 SWIG_fail;
13610 if (arg7 == NULL) {
13611 PyErr_SetString(PyExc_TypeError,"null reference");
13612 SWIG_fail;
13613 }
13614 }
13615 if (obj7) {
13616 {
13617 arg8 = wxString_in_helper(obj7);
13618 if (arg8 == NULL) SWIG_fail;
13619 temp8 = True;
13620 }
13621 }
13622 {
13623 PyThreadState* __tstate = wxPyBeginAllowThreads();
13624 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13625
13626 wxPyEndAllowThreads(__tstate);
13627 if (PyErr_Occurred()) SWIG_fail;
13628 }
13629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13630 {
13631 if (temp3)
13632 delete arg3;
13633 }
13634 {
13635 if (temp8)
13636 delete arg8;
13637 }
13638 return resultobj;
13639 fail:
13640 {
13641 if (temp3)
13642 delete arg3;
13643 }
13644 {
13645 if (temp8)
13646 delete arg8;
13647 }
13648 return NULL;
13649 }
13650
13651
13652 static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj;
13654 wxToggleButton *result;
13655 char *kwnames[] = {
13656 NULL
13657 };
13658
13659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
13660 {
13661 PyThreadState* __tstate = wxPyBeginAllowThreads();
13662 result = (wxToggleButton *)new wxToggleButton();
13663
13664 wxPyEndAllowThreads(__tstate);
13665 if (PyErr_Occurred()) SWIG_fail;
13666 }
13667 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13668 return resultobj;
13669 fail:
13670 return NULL;
13671 }
13672
13673
13674 static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13675 PyObject *resultobj;
13676 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13677 wxWindow *arg2 = (wxWindow *) 0 ;
13678 int arg3 ;
13679 wxString *arg4 = 0 ;
13680 wxPoint const &arg5_defvalue = wxDefaultPosition ;
13681 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
13682 wxSize const &arg6_defvalue = wxDefaultSize ;
13683 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
13684 long arg7 = (long) 0 ;
13685 wxValidator const &arg8_defvalue = wxDefaultValidator ;
13686 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
13687 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
13688 wxString *arg9 = (wxString *) &arg9_defvalue ;
13689 bool result;
13690 bool temp4 = False ;
13691 wxPoint temp5 ;
13692 wxSize temp6 ;
13693 bool temp9 = False ;
13694 PyObject * obj0 = 0 ;
13695 PyObject * obj1 = 0 ;
13696 PyObject * obj2 = 0 ;
13697 PyObject * obj3 = 0 ;
13698 PyObject * obj4 = 0 ;
13699 PyObject * obj5 = 0 ;
13700 PyObject * obj6 = 0 ;
13701 PyObject * obj7 = 0 ;
13702 PyObject * obj8 = 0 ;
13703 char *kwnames[] = {
13704 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13705 };
13706
13707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
13708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13710 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13712 arg3 = (int) SWIG_AsInt(obj2);
13713 if (PyErr_Occurred()) SWIG_fail;
13714 {
13715 arg4 = wxString_in_helper(obj3);
13716 if (arg4 == NULL) SWIG_fail;
13717 temp4 = True;
13718 }
13719 if (obj4) {
13720 {
13721 arg5 = &temp5;
13722 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13723 }
13724 }
13725 if (obj5) {
13726 {
13727 arg6 = &temp6;
13728 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13729 }
13730 }
13731 if (obj6) {
13732 arg7 = (long) SWIG_AsLong(obj6);
13733 if (PyErr_Occurred()) SWIG_fail;
13734 }
13735 if (obj7) {
13736 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13737 SWIG_POINTER_EXCEPTION | 0)) == -1)
13738 SWIG_fail;
13739 if (arg8 == NULL) {
13740 PyErr_SetString(PyExc_TypeError,"null reference");
13741 SWIG_fail;
13742 }
13743 }
13744 if (obj8) {
13745 {
13746 arg9 = wxString_in_helper(obj8);
13747 if (arg9 == NULL) SWIG_fail;
13748 temp9 = True;
13749 }
13750 }
13751 {
13752 PyThreadState* __tstate = wxPyBeginAllowThreads();
13753 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13754
13755 wxPyEndAllowThreads(__tstate);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 }
13758 {
13759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13760 }
13761 {
13762 if (temp4)
13763 delete arg4;
13764 }
13765 {
13766 if (temp9)
13767 delete arg9;
13768 }
13769 return resultobj;
13770 fail:
13771 {
13772 if (temp4)
13773 delete arg4;
13774 }
13775 {
13776 if (temp9)
13777 delete arg9;
13778 }
13779 return NULL;
13780 }
13781
13782
13783 static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13784 PyObject *resultobj;
13785 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13786 bool arg2 ;
13787 PyObject * obj0 = 0 ;
13788 PyObject * obj1 = 0 ;
13789 char *kwnames[] = {
13790 (char *) "self",(char *) "value", NULL
13791 };
13792
13793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13796 arg2 = (bool) SWIG_AsBool(obj1);
13797 if (PyErr_Occurred()) SWIG_fail;
13798 {
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 (arg1)->SetValue(arg2);
13801
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 Py_INCREF(Py_None); resultobj = Py_None;
13806 return resultobj;
13807 fail:
13808 return NULL;
13809 }
13810
13811
13812 static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13813 PyObject *resultobj;
13814 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13815 bool result;
13816 PyObject * obj0 = 0 ;
13817 char *kwnames[] = {
13818 (char *) "self", NULL
13819 };
13820
13821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
13822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13824 {
13825 PyThreadState* __tstate = wxPyBeginAllowThreads();
13826 result = (bool)((wxToggleButton const *)arg1)->GetValue();
13827
13828 wxPyEndAllowThreads(__tstate);
13829 if (PyErr_Occurred()) SWIG_fail;
13830 }
13831 {
13832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13833 }
13834 return resultobj;
13835 fail:
13836 return NULL;
13837 }
13838
13839
13840 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
13841 PyObject *resultobj;
13842 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13843 wxString *arg2 = 0 ;
13844 bool temp2 = False ;
13845 PyObject * obj0 = 0 ;
13846 PyObject * obj1 = 0 ;
13847 char *kwnames[] = {
13848 (char *) "self",(char *) "label", NULL
13849 };
13850
13851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
13852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13854 {
13855 arg2 = wxString_in_helper(obj1);
13856 if (arg2 == NULL) SWIG_fail;
13857 temp2 = True;
13858 }
13859 {
13860 PyThreadState* __tstate = wxPyBeginAllowThreads();
13861 (arg1)->SetLabel((wxString const &)*arg2);
13862
13863 wxPyEndAllowThreads(__tstate);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 Py_INCREF(Py_None); resultobj = Py_None;
13867 {
13868 if (temp2)
13869 delete arg2;
13870 }
13871 return resultobj;
13872 fail:
13873 {
13874 if (temp2)
13875 delete arg2;
13876 }
13877 return NULL;
13878 }
13879
13880
13881 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13882 PyObject *resultobj;
13883 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13884 wxVisualAttributes result;
13885 PyObject * obj0 = 0 ;
13886 char *kwnames[] = {
13887 (char *) "variant", NULL
13888 };
13889
13890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13891 if (obj0) {
13892 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13893 if (PyErr_Occurred()) SWIG_fail;
13894 }
13895 {
13896 PyThreadState* __tstate = wxPyBeginAllowThreads();
13897 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
13898
13899 wxPyEndAllowThreads(__tstate);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 {
13903 wxVisualAttributes * resultptr;
13904 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13905 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13906 }
13907 return resultobj;
13908 fail:
13909 return NULL;
13910 }
13911
13912
13913 static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
13914 PyObject *obj;
13915 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13916 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
13917 Py_INCREF(obj);
13918 return Py_BuildValue((char *)"");
13919 }
13920 static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
13921 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
13922 return 1;
13923 }
13924
13925
13926 static PyObject *_wrap_NOTEBOOK_NAME_get() {
13927 PyObject *pyobj;
13928
13929 {
13930 #if wxUSE_UNICODE
13931 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13932 #else
13933 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13934 #endif
13935 }
13936 return pyobj;
13937 }
13938
13939
13940 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13941 PyObject *resultobj;
13942 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13943 size_t result;
13944 PyObject * obj0 = 0 ;
13945 char *kwnames[] = {
13946 (char *) "self", NULL
13947 };
13948
13949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
13950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13952 {
13953 PyThreadState* __tstate = wxPyBeginAllowThreads();
13954 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
13955
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
13960 return resultobj;
13961 fail:
13962 return NULL;
13963 }
13964
13965
13966 static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13967 PyObject *resultobj;
13968 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13969 size_t arg2 ;
13970 wxWindow *result;
13971 PyObject * obj0 = 0 ;
13972 PyObject * obj1 = 0 ;
13973 char *kwnames[] = {
13974 (char *) "self",(char *) "n", NULL
13975 };
13976
13977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
13978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13980 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13981 if (PyErr_Occurred()) SWIG_fail;
13982 {
13983 PyThreadState* __tstate = wxPyBeginAllowThreads();
13984 result = (wxWindow *)(arg1)->GetPage(arg2);
13985
13986 wxPyEndAllowThreads(__tstate);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 {
13990 resultobj = wxPyMake_wxObject(result);
13991 }
13992 return resultobj;
13993 fail:
13994 return NULL;
13995 }
13996
13997
13998 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj;
14000 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14001 int result;
14002 PyObject * obj0 = 0 ;
14003 char *kwnames[] = {
14004 (char *) "self", NULL
14005 };
14006
14007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14010 {
14011 PyThreadState* __tstate = wxPyBeginAllowThreads();
14012 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14013
14014 wxPyEndAllowThreads(__tstate);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 resultobj = SWIG_FromInt((int)result);
14018 return resultobj;
14019 fail:
14020 return NULL;
14021 }
14022
14023
14024 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14025 PyObject *resultobj;
14026 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14027 size_t arg2 ;
14028 wxString *arg3 = 0 ;
14029 bool result;
14030 bool temp3 = False ;
14031 PyObject * obj0 = 0 ;
14032 PyObject * obj1 = 0 ;
14033 PyObject * obj2 = 0 ;
14034 char *kwnames[] = {
14035 (char *) "self",(char *) "n",(char *) "strText", NULL
14036 };
14037
14038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14041 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14042 if (PyErr_Occurred()) SWIG_fail;
14043 {
14044 arg3 = wxString_in_helper(obj2);
14045 if (arg3 == NULL) SWIG_fail;
14046 temp3 = True;
14047 }
14048 {
14049 PyThreadState* __tstate = wxPyBeginAllowThreads();
14050 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14051
14052 wxPyEndAllowThreads(__tstate);
14053 if (PyErr_Occurred()) SWIG_fail;
14054 }
14055 {
14056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14057 }
14058 {
14059 if (temp3)
14060 delete arg3;
14061 }
14062 return resultobj;
14063 fail:
14064 {
14065 if (temp3)
14066 delete arg3;
14067 }
14068 return NULL;
14069 }
14070
14071
14072 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14073 PyObject *resultobj;
14074 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14075 size_t arg2 ;
14076 wxString result;
14077 PyObject * obj0 = 0 ;
14078 PyObject * obj1 = 0 ;
14079 char *kwnames[] = {
14080 (char *) "self",(char *) "n", NULL
14081 };
14082
14083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14086 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14087 if (PyErr_Occurred()) SWIG_fail;
14088 {
14089 PyThreadState* __tstate = wxPyBeginAllowThreads();
14090 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14091
14092 wxPyEndAllowThreads(__tstate);
14093 if (PyErr_Occurred()) SWIG_fail;
14094 }
14095 {
14096 #if wxUSE_UNICODE
14097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14098 #else
14099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14100 #endif
14101 }
14102 return resultobj;
14103 fail:
14104 return NULL;
14105 }
14106
14107
14108 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj;
14110 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14111 wxImageList *arg2 = (wxImageList *) 0 ;
14112 PyObject * obj0 = 0 ;
14113 PyObject * obj1 = 0 ;
14114 char *kwnames[] = {
14115 (char *) "self",(char *) "imageList", NULL
14116 };
14117
14118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14123 {
14124 PyThreadState* __tstate = wxPyBeginAllowThreads();
14125 (arg1)->SetImageList(arg2);
14126
14127 wxPyEndAllowThreads(__tstate);
14128 if (PyErr_Occurred()) SWIG_fail;
14129 }
14130 Py_INCREF(Py_None); resultobj = Py_None;
14131 return resultobj;
14132 fail:
14133 return NULL;
14134 }
14135
14136
14137 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14138 PyObject *resultobj;
14139 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14140 wxImageList *arg2 = (wxImageList *) 0 ;
14141 PyObject * obj0 = 0 ;
14142 PyObject * obj1 = 0 ;
14143 char *kwnames[] = {
14144 (char *) "self",(char *) "imageList", NULL
14145 };
14146
14147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14150 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14151 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14152 {
14153 PyThreadState* __tstate = wxPyBeginAllowThreads();
14154 (arg1)->AssignImageList(arg2);
14155
14156 wxPyEndAllowThreads(__tstate);
14157 if (PyErr_Occurred()) SWIG_fail;
14158 }
14159 Py_INCREF(Py_None); resultobj = Py_None;
14160 return resultobj;
14161 fail:
14162 return NULL;
14163 }
14164
14165
14166 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14167 PyObject *resultobj;
14168 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14169 wxImageList *result;
14170 PyObject * obj0 = 0 ;
14171 char *kwnames[] = {
14172 (char *) "self", NULL
14173 };
14174
14175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14178 {
14179 PyThreadState* __tstate = wxPyBeginAllowThreads();
14180 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14181
14182 wxPyEndAllowThreads(__tstate);
14183 if (PyErr_Occurred()) SWIG_fail;
14184 }
14185 {
14186 resultobj = wxPyMake_wxObject(result);
14187 }
14188 return resultobj;
14189 fail:
14190 return NULL;
14191 }
14192
14193
14194 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14195 PyObject *resultobj;
14196 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14197 size_t arg2 ;
14198 int result;
14199 PyObject * obj0 = 0 ;
14200 PyObject * obj1 = 0 ;
14201 char *kwnames[] = {
14202 (char *) "self",(char *) "n", NULL
14203 };
14204
14205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14208 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 {
14211 PyThreadState* __tstate = wxPyBeginAllowThreads();
14212 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14213
14214 wxPyEndAllowThreads(__tstate);
14215 if (PyErr_Occurred()) SWIG_fail;
14216 }
14217 resultobj = SWIG_FromInt((int)result);
14218 return resultobj;
14219 fail:
14220 return NULL;
14221 }
14222
14223
14224 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14225 PyObject *resultobj;
14226 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14227 size_t arg2 ;
14228 int arg3 ;
14229 bool result;
14230 PyObject * obj0 = 0 ;
14231 PyObject * obj1 = 0 ;
14232 PyObject * obj2 = 0 ;
14233 char *kwnames[] = {
14234 (char *) "self",(char *) "n",(char *) "imageId", NULL
14235 };
14236
14237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14240 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14241 if (PyErr_Occurred()) SWIG_fail;
14242 arg3 = (int) SWIG_AsInt(obj2);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 {
14245 PyThreadState* __tstate = wxPyBeginAllowThreads();
14246 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14247
14248 wxPyEndAllowThreads(__tstate);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 }
14251 {
14252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14253 }
14254 return resultobj;
14255 fail:
14256 return NULL;
14257 }
14258
14259
14260 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14261 PyObject *resultobj;
14262 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14263 wxSize *arg2 = 0 ;
14264 wxSize temp2 ;
14265 PyObject * obj0 = 0 ;
14266 PyObject * obj1 = 0 ;
14267 char *kwnames[] = {
14268 (char *) "self",(char *) "size", NULL
14269 };
14270
14271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14274 {
14275 arg2 = &temp2;
14276 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14277 }
14278 {
14279 PyThreadState* __tstate = wxPyBeginAllowThreads();
14280 (arg1)->SetPageSize((wxSize const &)*arg2);
14281
14282 wxPyEndAllowThreads(__tstate);
14283 if (PyErr_Occurred()) SWIG_fail;
14284 }
14285 Py_INCREF(Py_None); resultobj = Py_None;
14286 return resultobj;
14287 fail:
14288 return NULL;
14289 }
14290
14291
14292 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14293 PyObject *resultobj;
14294 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14295 wxSize *arg2 = 0 ;
14296 wxSize result;
14297 wxSize temp2 ;
14298 PyObject * obj0 = 0 ;
14299 PyObject * obj1 = 0 ;
14300 char *kwnames[] = {
14301 (char *) "self",(char *) "sizePage", NULL
14302 };
14303
14304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14307 {
14308 arg2 = &temp2;
14309 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14310 }
14311 {
14312 PyThreadState* __tstate = wxPyBeginAllowThreads();
14313 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14314
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
14318 {
14319 wxSize * resultptr;
14320 resultptr = new wxSize((wxSize &) result);
14321 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14322 }
14323 return resultobj;
14324 fail:
14325 return NULL;
14326 }
14327
14328
14329 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14330 PyObject *resultobj;
14331 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14332 size_t arg2 ;
14333 bool result;
14334 PyObject * obj0 = 0 ;
14335 PyObject * obj1 = 0 ;
14336 char *kwnames[] = {
14337 (char *) "self",(char *) "n", NULL
14338 };
14339
14340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14343 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 {
14346 PyThreadState* __tstate = wxPyBeginAllowThreads();
14347 result = (bool)(arg1)->DeletePage(arg2);
14348
14349 wxPyEndAllowThreads(__tstate);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 }
14352 {
14353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14354 }
14355 return resultobj;
14356 fail:
14357 return NULL;
14358 }
14359
14360
14361 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14362 PyObject *resultobj;
14363 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14364 size_t arg2 ;
14365 bool result;
14366 PyObject * obj0 = 0 ;
14367 PyObject * obj1 = 0 ;
14368 char *kwnames[] = {
14369 (char *) "self",(char *) "n", NULL
14370 };
14371
14372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14375 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 result = (bool)(arg1)->RemovePage(arg2);
14380
14381 wxPyEndAllowThreads(__tstate);
14382 if (PyErr_Occurred()) SWIG_fail;
14383 }
14384 {
14385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14386 }
14387 return resultobj;
14388 fail:
14389 return NULL;
14390 }
14391
14392
14393 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
14394 PyObject *resultobj;
14395 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14396 bool result;
14397 PyObject * obj0 = 0 ;
14398 char *kwnames[] = {
14399 (char *) "self", NULL
14400 };
14401
14402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14405 {
14406 PyThreadState* __tstate = wxPyBeginAllowThreads();
14407 result = (bool)(arg1)->DeleteAllPages();
14408
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 {
14413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14414 }
14415 return resultobj;
14416 fail:
14417 return NULL;
14418 }
14419
14420
14421 static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14422 PyObject *resultobj;
14423 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14424 wxWindow *arg2 = (wxWindow *) 0 ;
14425 wxString *arg3 = 0 ;
14426 bool arg4 = (bool) False ;
14427 int arg5 = (int) -1 ;
14428 bool result;
14429 bool temp3 = False ;
14430 PyObject * obj0 = 0 ;
14431 PyObject * obj1 = 0 ;
14432 PyObject * obj2 = 0 ;
14433 PyObject * obj3 = 0 ;
14434 PyObject * obj4 = 0 ;
14435 char *kwnames[] = {
14436 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14437 };
14438
14439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14442 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14444 {
14445 arg3 = wxString_in_helper(obj2);
14446 if (arg3 == NULL) SWIG_fail;
14447 temp3 = True;
14448 }
14449 if (obj3) {
14450 arg4 = (bool) SWIG_AsBool(obj3);
14451 if (PyErr_Occurred()) SWIG_fail;
14452 }
14453 if (obj4) {
14454 arg5 = (int) SWIG_AsInt(obj4);
14455 if (PyErr_Occurred()) SWIG_fail;
14456 }
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14460
14461 wxPyEndAllowThreads(__tstate);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 {
14465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14466 }
14467 {
14468 if (temp3)
14469 delete arg3;
14470 }
14471 return resultobj;
14472 fail:
14473 {
14474 if (temp3)
14475 delete arg3;
14476 }
14477 return NULL;
14478 }
14479
14480
14481 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14482 PyObject *resultobj;
14483 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14484 size_t arg2 ;
14485 wxWindow *arg3 = (wxWindow *) 0 ;
14486 wxString *arg4 = 0 ;
14487 bool arg5 = (bool) False ;
14488 int arg6 = (int) -1 ;
14489 bool result;
14490 bool temp4 = False ;
14491 PyObject * obj0 = 0 ;
14492 PyObject * obj1 = 0 ;
14493 PyObject * obj2 = 0 ;
14494 PyObject * obj3 = 0 ;
14495 PyObject * obj4 = 0 ;
14496 PyObject * obj5 = 0 ;
14497 char *kwnames[] = {
14498 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14499 };
14500
14501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14504 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14505 if (PyErr_Occurred()) SWIG_fail;
14506 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14508 {
14509 arg4 = wxString_in_helper(obj3);
14510 if (arg4 == NULL) SWIG_fail;
14511 temp4 = True;
14512 }
14513 if (obj4) {
14514 arg5 = (bool) SWIG_AsBool(obj4);
14515 if (PyErr_Occurred()) SWIG_fail;
14516 }
14517 if (obj5) {
14518 arg6 = (int) SWIG_AsInt(obj5);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 {
14522 PyThreadState* __tstate = wxPyBeginAllowThreads();
14523 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14524
14525 wxPyEndAllowThreads(__tstate);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 }
14528 {
14529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14530 }
14531 {
14532 if (temp4)
14533 delete arg4;
14534 }
14535 return resultobj;
14536 fail:
14537 {
14538 if (temp4)
14539 delete arg4;
14540 }
14541 return NULL;
14542 }
14543
14544
14545 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14546 PyObject *resultobj;
14547 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14548 size_t arg2 ;
14549 int result;
14550 PyObject * obj0 = 0 ;
14551 PyObject * obj1 = 0 ;
14552 char *kwnames[] = {
14553 (char *) "self",(char *) "n", NULL
14554 };
14555
14556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14559 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14560 if (PyErr_Occurred()) SWIG_fail;
14561 {
14562 PyThreadState* __tstate = wxPyBeginAllowThreads();
14563 result = (int)(arg1)->SetSelection(arg2);
14564
14565 wxPyEndAllowThreads(__tstate);
14566 if (PyErr_Occurred()) SWIG_fail;
14567 }
14568 resultobj = SWIG_FromInt((int)result);
14569 return resultobj;
14570 fail:
14571 return NULL;
14572 }
14573
14574
14575 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14576 PyObject *resultobj;
14577 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14578 bool arg2 = (bool) True ;
14579 PyObject * obj0 = 0 ;
14580 PyObject * obj1 = 0 ;
14581 char *kwnames[] = {
14582 (char *) "self",(char *) "forward", NULL
14583 };
14584
14585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14588 if (obj1) {
14589 arg2 = (bool) SWIG_AsBool(obj1);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 (arg1)->AdvanceSelection(arg2);
14595
14596 wxPyEndAllowThreads(__tstate);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
14599 Py_INCREF(Py_None); resultobj = Py_None;
14600 return resultobj;
14601 fail:
14602 return NULL;
14603 }
14604
14605
14606 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
14607 PyObject *resultobj;
14608 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14609 wxVisualAttributes result;
14610 PyObject * obj0 = 0 ;
14611 char *kwnames[] = {
14612 (char *) "variant", NULL
14613 };
14614
14615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14616 if (obj0) {
14617 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 {
14621 PyThreadState* __tstate = wxPyBeginAllowThreads();
14622 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14623
14624 wxPyEndAllowThreads(__tstate);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 }
14627 {
14628 wxVisualAttributes * resultptr;
14629 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14630 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14631 }
14632 return resultobj;
14633 fail:
14634 return NULL;
14635 }
14636
14637
14638 static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
14639 PyObject *obj;
14640 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14641 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
14642 Py_INCREF(obj);
14643 return Py_BuildValue((char *)"");
14644 }
14645 static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14646 PyObject *resultobj;
14647 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14648 int arg2 = (int) 0 ;
14649 int arg3 = (int) -1 ;
14650 int arg4 = (int) -1 ;
14651 wxBookCtrlEvent *result;
14652 PyObject * obj0 = 0 ;
14653 PyObject * obj1 = 0 ;
14654 PyObject * obj2 = 0 ;
14655 PyObject * obj3 = 0 ;
14656 char *kwnames[] = {
14657 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14658 };
14659
14660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14661 if (obj0) {
14662 arg1 = (wxEventType) SWIG_AsInt(obj0);
14663 if (PyErr_Occurred()) SWIG_fail;
14664 }
14665 if (obj1) {
14666 arg2 = (int) SWIG_AsInt(obj1);
14667 if (PyErr_Occurred()) SWIG_fail;
14668 }
14669 if (obj2) {
14670 arg3 = (int) SWIG_AsInt(obj2);
14671 if (PyErr_Occurred()) SWIG_fail;
14672 }
14673 if (obj3) {
14674 arg4 = (int) SWIG_AsInt(obj3);
14675 if (PyErr_Occurred()) SWIG_fail;
14676 }
14677 {
14678 PyThreadState* __tstate = wxPyBeginAllowThreads();
14679 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
14680
14681 wxPyEndAllowThreads(__tstate);
14682 if (PyErr_Occurred()) SWIG_fail;
14683 }
14684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
14685 return resultobj;
14686 fail:
14687 return NULL;
14688 }
14689
14690
14691 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14692 PyObject *resultobj;
14693 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14694 int result;
14695 PyObject * obj0 = 0 ;
14696 char *kwnames[] = {
14697 (char *) "self", NULL
14698 };
14699
14700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
14701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14703 {
14704 PyThreadState* __tstate = wxPyBeginAllowThreads();
14705 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
14706
14707 wxPyEndAllowThreads(__tstate);
14708 if (PyErr_Occurred()) SWIG_fail;
14709 }
14710 resultobj = SWIG_FromInt((int)result);
14711 return resultobj;
14712 fail:
14713 return NULL;
14714 }
14715
14716
14717 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14718 PyObject *resultobj;
14719 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14720 int arg2 ;
14721 PyObject * obj0 = 0 ;
14722 PyObject * obj1 = 0 ;
14723 char *kwnames[] = {
14724 (char *) "self",(char *) "nSel", NULL
14725 };
14726
14727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14730 arg2 = (int) SWIG_AsInt(obj1);
14731 if (PyErr_Occurred()) SWIG_fail;
14732 {
14733 PyThreadState* __tstate = wxPyBeginAllowThreads();
14734 (arg1)->SetSelection(arg2);
14735
14736 wxPyEndAllowThreads(__tstate);
14737 if (PyErr_Occurred()) SWIG_fail;
14738 }
14739 Py_INCREF(Py_None); resultobj = Py_None;
14740 return resultobj;
14741 fail:
14742 return NULL;
14743 }
14744
14745
14746 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14747 PyObject *resultobj;
14748 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14749 int result;
14750 PyObject * obj0 = 0 ;
14751 char *kwnames[] = {
14752 (char *) "self", NULL
14753 };
14754
14755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
14756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14758 {
14759 PyThreadState* __tstate = wxPyBeginAllowThreads();
14760 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
14761
14762 wxPyEndAllowThreads(__tstate);
14763 if (PyErr_Occurred()) SWIG_fail;
14764 }
14765 resultobj = SWIG_FromInt((int)result);
14766 return resultobj;
14767 fail:
14768 return NULL;
14769 }
14770
14771
14772 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14773 PyObject *resultobj;
14774 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14775 int arg2 ;
14776 PyObject * obj0 = 0 ;
14777 PyObject * obj1 = 0 ;
14778 char *kwnames[] = {
14779 (char *) "self",(char *) "nOldSel", NULL
14780 };
14781
14782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
14783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14785 arg2 = (int) SWIG_AsInt(obj1);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 {
14788 PyThreadState* __tstate = wxPyBeginAllowThreads();
14789 (arg1)->SetOldSelection(arg2);
14790
14791 wxPyEndAllowThreads(__tstate);
14792 if (PyErr_Occurred()) SWIG_fail;
14793 }
14794 Py_INCREF(Py_None); resultobj = Py_None;
14795 return resultobj;
14796 fail:
14797 return NULL;
14798 }
14799
14800
14801 static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
14802 PyObject *obj;
14803 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14804 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
14805 Py_INCREF(obj);
14806 return Py_BuildValue((char *)"");
14807 }
14808 static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14809 PyObject *resultobj;
14810 wxWindow *arg1 = (wxWindow *) 0 ;
14811 int arg2 = (int) -1 ;
14812 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14813 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14814 wxSize const &arg4_defvalue = wxDefaultSize ;
14815 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14816 long arg5 = (long) 0 ;
14817 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
14818 wxString *arg6 = (wxString *) &arg6_defvalue ;
14819 wxNotebook *result;
14820 wxPoint temp3 ;
14821 wxSize temp4 ;
14822 bool temp6 = False ;
14823 PyObject * obj0 = 0 ;
14824 PyObject * obj1 = 0 ;
14825 PyObject * obj2 = 0 ;
14826 PyObject * obj3 = 0 ;
14827 PyObject * obj4 = 0 ;
14828 PyObject * obj5 = 0 ;
14829 char *kwnames[] = {
14830 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14831 };
14832
14833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14836 if (obj1) {
14837 arg2 = (int) SWIG_AsInt(obj1);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 if (obj2) {
14841 {
14842 arg3 = &temp3;
14843 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14844 }
14845 }
14846 if (obj3) {
14847 {
14848 arg4 = &temp4;
14849 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14850 }
14851 }
14852 if (obj4) {
14853 arg5 = (long) SWIG_AsLong(obj4);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 if (obj5) {
14857 {
14858 arg6 = wxString_in_helper(obj5);
14859 if (arg6 == NULL) SWIG_fail;
14860 temp6 = True;
14861 }
14862 }
14863 {
14864 PyThreadState* __tstate = wxPyBeginAllowThreads();
14865 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14866
14867 wxPyEndAllowThreads(__tstate);
14868 if (PyErr_Occurred()) SWIG_fail;
14869 }
14870 {
14871 resultobj = wxPyMake_wxObject(result);
14872 }
14873 {
14874 if (temp6)
14875 delete arg6;
14876 }
14877 return resultobj;
14878 fail:
14879 {
14880 if (temp6)
14881 delete arg6;
14882 }
14883 return NULL;
14884 }
14885
14886
14887 static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14888 PyObject *resultobj;
14889 wxNotebook *result;
14890 char *kwnames[] = {
14891 NULL
14892 };
14893
14894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
14895 {
14896 PyThreadState* __tstate = wxPyBeginAllowThreads();
14897 result = (wxNotebook *)new wxNotebook();
14898
14899 wxPyEndAllowThreads(__tstate);
14900 if (PyErr_Occurred()) SWIG_fail;
14901 }
14902 {
14903 resultobj = wxPyMake_wxObject(result);
14904 }
14905 return resultobj;
14906 fail:
14907 return NULL;
14908 }
14909
14910
14911 static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14912 PyObject *resultobj;
14913 wxNotebook *arg1 = (wxNotebook *) 0 ;
14914 wxWindow *arg2 = (wxWindow *) 0 ;
14915 int arg3 ;
14916 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14917 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14918 wxSize const &arg5_defvalue = wxDefaultSize ;
14919 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14920 long arg6 = (long) 0 ;
14921 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
14922 wxString *arg7 = (wxString *) &arg7_defvalue ;
14923 bool result;
14924 wxPoint temp4 ;
14925 wxSize temp5 ;
14926 bool temp7 = False ;
14927 PyObject * obj0 = 0 ;
14928 PyObject * obj1 = 0 ;
14929 PyObject * obj2 = 0 ;
14930 PyObject * obj3 = 0 ;
14931 PyObject * obj4 = 0 ;
14932 PyObject * obj5 = 0 ;
14933 PyObject * obj6 = 0 ;
14934 char *kwnames[] = {
14935 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14936 };
14937
14938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14941 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14943 arg3 = (int) SWIG_AsInt(obj2);
14944 if (PyErr_Occurred()) SWIG_fail;
14945 if (obj3) {
14946 {
14947 arg4 = &temp4;
14948 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14949 }
14950 }
14951 if (obj4) {
14952 {
14953 arg5 = &temp5;
14954 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14955 }
14956 }
14957 if (obj5) {
14958 arg6 = (long) SWIG_AsLong(obj5);
14959 if (PyErr_Occurred()) SWIG_fail;
14960 }
14961 if (obj6) {
14962 {
14963 arg7 = wxString_in_helper(obj6);
14964 if (arg7 == NULL) SWIG_fail;
14965 temp7 = True;
14966 }
14967 }
14968 {
14969 PyThreadState* __tstate = wxPyBeginAllowThreads();
14970 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14971
14972 wxPyEndAllowThreads(__tstate);
14973 if (PyErr_Occurred()) SWIG_fail;
14974 }
14975 {
14976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14977 }
14978 {
14979 if (temp7)
14980 delete arg7;
14981 }
14982 return resultobj;
14983 fail:
14984 {
14985 if (temp7)
14986 delete arg7;
14987 }
14988 return NULL;
14989 }
14990
14991
14992 static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14993 PyObject *resultobj;
14994 wxNotebook *arg1 = (wxNotebook *) 0 ;
14995 int result;
14996 PyObject * obj0 = 0 ;
14997 char *kwnames[] = {
14998 (char *) "self", NULL
14999 };
15000
15001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15004 {
15005 PyThreadState* __tstate = wxPyBeginAllowThreads();
15006 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15007
15008 wxPyEndAllowThreads(__tstate);
15009 if (PyErr_Occurred()) SWIG_fail;
15010 }
15011 resultobj = SWIG_FromInt((int)result);
15012 return resultobj;
15013 fail:
15014 return NULL;
15015 }
15016
15017
15018 static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
15019 PyObject *resultobj;
15020 wxNotebook *arg1 = (wxNotebook *) 0 ;
15021 wxSize *arg2 = 0 ;
15022 wxSize temp2 ;
15023 PyObject * obj0 = 0 ;
15024 PyObject * obj1 = 0 ;
15025 char *kwnames[] = {
15026 (char *) "self",(char *) "padding", NULL
15027 };
15028
15029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15032 {
15033 arg2 = &temp2;
15034 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15035 }
15036 {
15037 PyThreadState* __tstate = wxPyBeginAllowThreads();
15038 (arg1)->SetPadding((wxSize const &)*arg2);
15039
15040 wxPyEndAllowThreads(__tstate);
15041 if (PyErr_Occurred()) SWIG_fail;
15042 }
15043 Py_INCREF(Py_None); resultobj = Py_None;
15044 return resultobj;
15045 fail:
15046 return NULL;
15047 }
15048
15049
15050 static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15051 PyObject *resultobj;
15052 wxNotebook *arg1 = (wxNotebook *) 0 ;
15053 wxSize *arg2 = 0 ;
15054 wxSize temp2 ;
15055 PyObject * obj0 = 0 ;
15056 PyObject * obj1 = 0 ;
15057 char *kwnames[] = {
15058 (char *) "self",(char *) "sz", NULL
15059 };
15060
15061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15064 {
15065 arg2 = &temp2;
15066 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15067 }
15068 {
15069 PyThreadState* __tstate = wxPyBeginAllowThreads();
15070 (arg1)->SetTabSize((wxSize const &)*arg2);
15071
15072 wxPyEndAllowThreads(__tstate);
15073 if (PyErr_Occurred()) SWIG_fail;
15074 }
15075 Py_INCREF(Py_None); resultobj = Py_None;
15076 return resultobj;
15077 fail:
15078 return NULL;
15079 }
15080
15081
15082 static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
15083 PyObject *resultobj;
15084 wxNotebook *arg1 = (wxNotebook *) 0 ;
15085 wxPoint *arg2 = 0 ;
15086 long *arg3 = (long *) 0 ;
15087 int result;
15088 wxPoint temp2 ;
15089 long temp3 ;
15090 PyObject * obj0 = 0 ;
15091 PyObject * obj1 = 0 ;
15092 char *kwnames[] = {
15093 (char *) "self",(char *) "pt", NULL
15094 };
15095
15096 arg3 = &temp3;
15097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15100 {
15101 arg2 = &temp2;
15102 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15103 }
15104 {
15105 PyThreadState* __tstate = wxPyBeginAllowThreads();
15106 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15107
15108 wxPyEndAllowThreads(__tstate);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 }
15111 resultobj = SWIG_FromInt((int)result);
15112 {
15113 PyObject *o = PyInt_FromLong((long) (*arg3));
15114 resultobj = t_output_helper(resultobj,o);
15115 }
15116 return resultobj;
15117 fail:
15118 return NULL;
15119 }
15120
15121
15122 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
15123 PyObject *resultobj;
15124 wxNotebook *arg1 = (wxNotebook *) 0 ;
15125 wxSize *arg2 = 0 ;
15126 wxSize result;
15127 wxSize temp2 ;
15128 PyObject * obj0 = 0 ;
15129 PyObject * obj1 = 0 ;
15130 char *kwnames[] = {
15131 (char *) "self",(char *) "sizePage", NULL
15132 };
15133
15134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15137 {
15138 arg2 = &temp2;
15139 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15140 }
15141 {
15142 PyThreadState* __tstate = wxPyBeginAllowThreads();
15143 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15144
15145 wxPyEndAllowThreads(__tstate);
15146 if (PyErr_Occurred()) SWIG_fail;
15147 }
15148 {
15149 wxSize * resultptr;
15150 resultptr = new wxSize((wxSize &) result);
15151 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15152 }
15153 return resultobj;
15154 fail:
15155 return NULL;
15156 }
15157
15158
15159 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
15160 PyObject *resultobj;
15161 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15162 wxVisualAttributes result;
15163 PyObject * obj0 = 0 ;
15164 char *kwnames[] = {
15165 (char *) "variant", NULL
15166 };
15167
15168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15169 if (obj0) {
15170 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
15171 if (PyErr_Occurred()) SWIG_fail;
15172 }
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15176
15177 wxPyEndAllowThreads(__tstate);
15178 if (PyErr_Occurred()) SWIG_fail;
15179 }
15180 {
15181 wxVisualAttributes * resultptr;
15182 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15183 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15184 }
15185 return resultobj;
15186 fail:
15187 return NULL;
15188 }
15189
15190
15191 static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
15192 PyObject *obj;
15193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15194 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15195 Py_INCREF(obj);
15196 return Py_BuildValue((char *)"");
15197 }
15198 static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15199 PyObject *resultobj;
15200 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15201 int arg2 = (int) 0 ;
15202 int arg3 = (int) -1 ;
15203 int arg4 = (int) -1 ;
15204 wxNotebookEvent *result;
15205 PyObject * obj0 = 0 ;
15206 PyObject * obj1 = 0 ;
15207 PyObject * obj2 = 0 ;
15208 PyObject * obj3 = 0 ;
15209 char *kwnames[] = {
15210 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15211 };
15212
15213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15214 if (obj0) {
15215 arg1 = (wxEventType) SWIG_AsInt(obj0);
15216 if (PyErr_Occurred()) SWIG_fail;
15217 }
15218 if (obj1) {
15219 arg2 = (int) SWIG_AsInt(obj1);
15220 if (PyErr_Occurred()) SWIG_fail;
15221 }
15222 if (obj2) {
15223 arg3 = (int) SWIG_AsInt(obj2);
15224 if (PyErr_Occurred()) SWIG_fail;
15225 }
15226 if (obj3) {
15227 arg4 = (int) SWIG_AsInt(obj3);
15228 if (PyErr_Occurred()) SWIG_fail;
15229 }
15230 {
15231 PyThreadState* __tstate = wxPyBeginAllowThreads();
15232 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15233
15234 wxPyEndAllowThreads(__tstate);
15235 if (PyErr_Occurred()) SWIG_fail;
15236 }
15237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15238 return resultobj;
15239 fail:
15240 return NULL;
15241 }
15242
15243
15244 static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
15245 PyObject *obj;
15246 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15247 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15248 Py_INCREF(obj);
15249 return Py_BuildValue((char *)"");
15250 }
15251 static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15252 PyObject *resultobj;
15253 wxWindow *arg1 = (wxWindow *) 0 ;
15254 int arg2 = (int) -1 ;
15255 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15256 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15257 wxSize const &arg4_defvalue = wxDefaultSize ;
15258 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15259 long arg5 = (long) 0 ;
15260 wxString const &arg6_defvalue = wxPyEmptyString ;
15261 wxString *arg6 = (wxString *) &arg6_defvalue ;
15262 wxListbook *result;
15263 wxPoint temp3 ;
15264 wxSize temp4 ;
15265 bool temp6 = False ;
15266 PyObject * obj0 = 0 ;
15267 PyObject * obj1 = 0 ;
15268 PyObject * obj2 = 0 ;
15269 PyObject * obj3 = 0 ;
15270 PyObject * obj4 = 0 ;
15271 PyObject * obj5 = 0 ;
15272 char *kwnames[] = {
15273 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15274 };
15275
15276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15279 if (obj1) {
15280 arg2 = (int) SWIG_AsInt(obj1);
15281 if (PyErr_Occurred()) SWIG_fail;
15282 }
15283 if (obj2) {
15284 {
15285 arg3 = &temp3;
15286 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15287 }
15288 }
15289 if (obj3) {
15290 {
15291 arg4 = &temp4;
15292 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15293 }
15294 }
15295 if (obj4) {
15296 arg5 = (long) SWIG_AsLong(obj4);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
15299 if (obj5) {
15300 {
15301 arg6 = wxString_in_helper(obj5);
15302 if (arg6 == NULL) SWIG_fail;
15303 temp6 = True;
15304 }
15305 }
15306 {
15307 PyThreadState* __tstate = wxPyBeginAllowThreads();
15308 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15309
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15314 {
15315 if (temp6)
15316 delete arg6;
15317 }
15318 return resultobj;
15319 fail:
15320 {
15321 if (temp6)
15322 delete arg6;
15323 }
15324 return NULL;
15325 }
15326
15327
15328 static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15329 PyObject *resultobj;
15330 wxListbook *result;
15331 char *kwnames[] = {
15332 NULL
15333 };
15334
15335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15336 {
15337 PyThreadState* __tstate = wxPyBeginAllowThreads();
15338 result = (wxListbook *)new wxListbook();
15339
15340 wxPyEndAllowThreads(__tstate);
15341 if (PyErr_Occurred()) SWIG_fail;
15342 }
15343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15344 return resultobj;
15345 fail:
15346 return NULL;
15347 }
15348
15349
15350 static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
15351 PyObject *resultobj;
15352 wxListbook *arg1 = (wxListbook *) 0 ;
15353 wxWindow *arg2 = (wxWindow *) 0 ;
15354 int arg3 ;
15355 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15356 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15357 wxSize const &arg5_defvalue = wxDefaultSize ;
15358 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15359 long arg6 = (long) 0 ;
15360 wxString const &arg7_defvalue = wxPyEmptyString ;
15361 wxString *arg7 = (wxString *) &arg7_defvalue ;
15362 bool result;
15363 wxPoint temp4 ;
15364 wxSize temp5 ;
15365 bool temp7 = False ;
15366 PyObject * obj0 = 0 ;
15367 PyObject * obj1 = 0 ;
15368 PyObject * obj2 = 0 ;
15369 PyObject * obj3 = 0 ;
15370 PyObject * obj4 = 0 ;
15371 PyObject * obj5 = 0 ;
15372 PyObject * obj6 = 0 ;
15373 char *kwnames[] = {
15374 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15375 };
15376
15377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15380 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15382 arg3 = (int) SWIG_AsInt(obj2);
15383 if (PyErr_Occurred()) SWIG_fail;
15384 if (obj3) {
15385 {
15386 arg4 = &temp4;
15387 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15388 }
15389 }
15390 if (obj4) {
15391 {
15392 arg5 = &temp5;
15393 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15394 }
15395 }
15396 if (obj5) {
15397 arg6 = (long) SWIG_AsLong(obj5);
15398 if (PyErr_Occurred()) SWIG_fail;
15399 }
15400 if (obj6) {
15401 {
15402 arg7 = wxString_in_helper(obj6);
15403 if (arg7 == NULL) SWIG_fail;
15404 temp7 = True;
15405 }
15406 }
15407 {
15408 PyThreadState* __tstate = wxPyBeginAllowThreads();
15409 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15410
15411 wxPyEndAllowThreads(__tstate);
15412 if (PyErr_Occurred()) SWIG_fail;
15413 }
15414 {
15415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15416 }
15417 {
15418 if (temp7)
15419 delete arg7;
15420 }
15421 return resultobj;
15422 fail:
15423 {
15424 if (temp7)
15425 delete arg7;
15426 }
15427 return NULL;
15428 }
15429
15430
15431 static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
15432 PyObject *resultobj;
15433 wxListbook *arg1 = (wxListbook *) 0 ;
15434 bool result;
15435 PyObject * obj0 = 0 ;
15436 char *kwnames[] = {
15437 (char *) "self", NULL
15438 };
15439
15440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15443 {
15444 PyThreadState* __tstate = wxPyBeginAllowThreads();
15445 result = (bool)((wxListbook const *)arg1)->IsVertical();
15446
15447 wxPyEndAllowThreads(__tstate);
15448 if (PyErr_Occurred()) SWIG_fail;
15449 }
15450 {
15451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15452 }
15453 return resultobj;
15454 fail:
15455 return NULL;
15456 }
15457
15458
15459 static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
15460 PyObject *obj;
15461 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15462 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15463 Py_INCREF(obj);
15464 return Py_BuildValue((char *)"");
15465 }
15466 static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15467 PyObject *resultobj;
15468 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15469 int arg2 = (int) 0 ;
15470 int arg3 = (int) -1 ;
15471 int arg4 = (int) -1 ;
15472 wxListbookEvent *result;
15473 PyObject * obj0 = 0 ;
15474 PyObject * obj1 = 0 ;
15475 PyObject * obj2 = 0 ;
15476 PyObject * obj3 = 0 ;
15477 char *kwnames[] = {
15478 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15479 };
15480
15481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15482 if (obj0) {
15483 arg1 = (wxEventType) SWIG_AsInt(obj0);
15484 if (PyErr_Occurred()) SWIG_fail;
15485 }
15486 if (obj1) {
15487 arg2 = (int) SWIG_AsInt(obj1);
15488 if (PyErr_Occurred()) SWIG_fail;
15489 }
15490 if (obj2) {
15491 arg3 = (int) SWIG_AsInt(obj2);
15492 if (PyErr_Occurred()) SWIG_fail;
15493 }
15494 if (obj3) {
15495 arg4 = (int) SWIG_AsInt(obj3);
15496 if (PyErr_Occurred()) SWIG_fail;
15497 }
15498 {
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15501
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15506 return resultobj;
15507 fail:
15508 return NULL;
15509 }
15510
15511
15512 static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
15513 PyObject *obj;
15514 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15515 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15516 Py_INCREF(obj);
15517 return Py_BuildValue((char *)"");
15518 }
15519 static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15520 PyObject *resultobj;
15521 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15522 wxBookCtrlSizer *result;
15523 PyObject * obj0 = 0 ;
15524 char *kwnames[] = {
15525 (char *) "nb", NULL
15526 };
15527
15528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15531 {
15532 PyThreadState* __tstate = wxPyBeginAllowThreads();
15533 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15534
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15539 return resultobj;
15540 fail:
15541 return NULL;
15542 }
15543
15544
15545 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15546 PyObject *resultobj;
15547 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15548 PyObject * obj0 = 0 ;
15549 char *kwnames[] = {
15550 (char *) "self", NULL
15551 };
15552
15553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 (arg1)->RecalcSizes();
15559
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 Py_INCREF(Py_None); resultobj = Py_None;
15564 return resultobj;
15565 fail:
15566 return NULL;
15567 }
15568
15569
15570 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15571 PyObject *resultobj;
15572 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15573 wxSize result;
15574 PyObject * obj0 = 0 ;
15575 char *kwnames[] = {
15576 (char *) "self", NULL
15577 };
15578
15579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
15580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15582 {
15583 PyThreadState* __tstate = wxPyBeginAllowThreads();
15584 result = (arg1)->CalcMin();
15585
15586 wxPyEndAllowThreads(__tstate);
15587 if (PyErr_Occurred()) SWIG_fail;
15588 }
15589 {
15590 wxSize * resultptr;
15591 resultptr = new wxSize((wxSize &) result);
15592 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15593 }
15594 return resultobj;
15595 fail:
15596 return NULL;
15597 }
15598
15599
15600 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15601 PyObject *resultobj;
15602 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15603 wxBookCtrl *result;
15604 PyObject * obj0 = 0 ;
15605 char *kwnames[] = {
15606 (char *) "self", NULL
15607 };
15608
15609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
15610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15612 {
15613 PyThreadState* __tstate = wxPyBeginAllowThreads();
15614 result = (wxBookCtrl *)(arg1)->GetControl();
15615
15616 wxPyEndAllowThreads(__tstate);
15617 if (PyErr_Occurred()) SWIG_fail;
15618 }
15619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
15620 return resultobj;
15621 fail:
15622 return NULL;
15623 }
15624
15625
15626 static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
15627 PyObject *obj;
15628 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15629 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
15630 Py_INCREF(obj);
15631 return Py_BuildValue((char *)"");
15632 }
15633 static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15634 PyObject *resultobj;
15635 wxNotebook *arg1 = (wxNotebook *) 0 ;
15636 wxNotebookSizer *result;
15637 PyObject * obj0 = 0 ;
15638 char *kwnames[] = {
15639 (char *) "nb", NULL
15640 };
15641
15642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
15643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15645 {
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
15648
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
15653 return resultobj;
15654 fail:
15655 return NULL;
15656 }
15657
15658
15659 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15660 PyObject *resultobj;
15661 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15662 PyObject * obj0 = 0 ;
15663 char *kwnames[] = {
15664 (char *) "self", NULL
15665 };
15666
15667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15670 {
15671 PyThreadState* __tstate = wxPyBeginAllowThreads();
15672 (arg1)->RecalcSizes();
15673
15674 wxPyEndAllowThreads(__tstate);
15675 if (PyErr_Occurred()) SWIG_fail;
15676 }
15677 Py_INCREF(Py_None); resultobj = Py_None;
15678 return resultobj;
15679 fail:
15680 return NULL;
15681 }
15682
15683
15684 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15685 PyObject *resultobj;
15686 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15687 wxSize result;
15688 PyObject * obj0 = 0 ;
15689 char *kwnames[] = {
15690 (char *) "self", NULL
15691 };
15692
15693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
15694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15696 {
15697 PyThreadState* __tstate = wxPyBeginAllowThreads();
15698 result = (arg1)->CalcMin();
15699
15700 wxPyEndAllowThreads(__tstate);
15701 if (PyErr_Occurred()) SWIG_fail;
15702 }
15703 {
15704 wxSize * resultptr;
15705 resultptr = new wxSize((wxSize &) result);
15706 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15707 }
15708 return resultobj;
15709 fail:
15710 return NULL;
15711 }
15712
15713
15714 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
15715 PyObject *resultobj;
15716 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15717 wxNotebook *result;
15718 PyObject * obj0 = 0 ;
15719 char *kwnames[] = {
15720 (char *) "self", NULL
15721 };
15722
15723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
15724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15726 {
15727 PyThreadState* __tstate = wxPyBeginAllowThreads();
15728 result = (wxNotebook *)(arg1)->GetNotebook();
15729
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 {
15734 resultobj = wxPyMake_wxObject(result);
15735 }
15736 return resultobj;
15737 fail:
15738 return NULL;
15739 }
15740
15741
15742 static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
15743 PyObject *obj;
15744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15745 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
15746 Py_INCREF(obj);
15747 return Py_BuildValue((char *)"");
15748 }
15749 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
15750 PyObject *resultobj;
15751 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15752 int result;
15753 PyObject * obj0 = 0 ;
15754 char *kwnames[] = {
15755 (char *) "self", NULL
15756 };
15757
15758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
15759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15761 {
15762 PyThreadState* __tstate = wxPyBeginAllowThreads();
15763 result = (int)(arg1)->GetId();
15764
15765 wxPyEndAllowThreads(__tstate);
15766 if (PyErr_Occurred()) SWIG_fail;
15767 }
15768 resultobj = SWIG_FromInt((int)result);
15769 return resultobj;
15770 fail:
15771 return NULL;
15772 }
15773
15774
15775 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15776 PyObject *resultobj;
15777 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15778 wxControl *result;
15779 PyObject * obj0 = 0 ;
15780 char *kwnames[] = {
15781 (char *) "self", NULL
15782 };
15783
15784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
15785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15787 {
15788 PyThreadState* __tstate = wxPyBeginAllowThreads();
15789 result = (wxControl *)(arg1)->GetControl();
15790
15791 wxPyEndAllowThreads(__tstate);
15792 if (PyErr_Occurred()) SWIG_fail;
15793 }
15794 {
15795 resultobj = wxPyMake_wxObject(result);
15796 }
15797 return resultobj;
15798 fail:
15799 return NULL;
15800 }
15801
15802
15803 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
15804 PyObject *resultobj;
15805 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15806 wxToolBarBase *result;
15807 PyObject * obj0 = 0 ;
15808 char *kwnames[] = {
15809 (char *) "self", NULL
15810 };
15811
15812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
15813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15815 {
15816 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817 result = (wxToolBarBase *)(arg1)->GetToolBar();
15818
15819 wxPyEndAllowThreads(__tstate);
15820 if (PyErr_Occurred()) SWIG_fail;
15821 }
15822 {
15823 resultobj = wxPyMake_wxObject(result);
15824 }
15825 return resultobj;
15826 fail:
15827 return NULL;
15828 }
15829
15830
15831 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
15832 PyObject *resultobj;
15833 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15834 int result;
15835 PyObject * obj0 = 0 ;
15836 char *kwnames[] = {
15837 (char *) "self", NULL
15838 };
15839
15840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
15841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15843 {
15844 PyThreadState* __tstate = wxPyBeginAllowThreads();
15845 result = (int)(arg1)->IsButton();
15846
15847 wxPyEndAllowThreads(__tstate);
15848 if (PyErr_Occurred()) SWIG_fail;
15849 }
15850 resultobj = SWIG_FromInt((int)result);
15851 return resultobj;
15852 fail:
15853 return NULL;
15854 }
15855
15856
15857 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15858 PyObject *resultobj;
15859 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15860 int result;
15861 PyObject * obj0 = 0 ;
15862 char *kwnames[] = {
15863 (char *) "self", NULL
15864 };
15865
15866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
15867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15869 {
15870 PyThreadState* __tstate = wxPyBeginAllowThreads();
15871 result = (int)(arg1)->IsControl();
15872
15873 wxPyEndAllowThreads(__tstate);
15874 if (PyErr_Occurred()) SWIG_fail;
15875 }
15876 resultobj = SWIG_FromInt((int)result);
15877 return resultobj;
15878 fail:
15879 return NULL;
15880 }
15881
15882
15883 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
15884 PyObject *resultobj;
15885 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15886 int result;
15887 PyObject * obj0 = 0 ;
15888 char *kwnames[] = {
15889 (char *) "self", NULL
15890 };
15891
15892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
15893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15895 {
15896 PyThreadState* __tstate = wxPyBeginAllowThreads();
15897 result = (int)(arg1)->IsSeparator();
15898
15899 wxPyEndAllowThreads(__tstate);
15900 if (PyErr_Occurred()) SWIG_fail;
15901 }
15902 resultobj = SWIG_FromInt((int)result);
15903 return resultobj;
15904 fail:
15905 return NULL;
15906 }
15907
15908
15909 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15910 PyObject *resultobj;
15911 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15912 int result;
15913 PyObject * obj0 = 0 ;
15914 char *kwnames[] = {
15915 (char *) "self", NULL
15916 };
15917
15918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
15919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15921 {
15922 PyThreadState* __tstate = wxPyBeginAllowThreads();
15923 result = (int)(arg1)->GetStyle();
15924
15925 wxPyEndAllowThreads(__tstate);
15926 if (PyErr_Occurred()) SWIG_fail;
15927 }
15928 resultobj = SWIG_FromInt((int)result);
15929 return resultobj;
15930 fail:
15931 return NULL;
15932 }
15933
15934
15935 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
15936 PyObject *resultobj;
15937 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15938 int result;
15939 PyObject * obj0 = 0 ;
15940 char *kwnames[] = {
15941 (char *) "self", NULL
15942 };
15943
15944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
15945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15947 {
15948 PyThreadState* __tstate = wxPyBeginAllowThreads();
15949 result = (int)(arg1)->GetKind();
15950
15951 wxPyEndAllowThreads(__tstate);
15952 if (PyErr_Occurred()) SWIG_fail;
15953 }
15954 resultobj = SWIG_FromInt((int)result);
15955 return resultobj;
15956 fail:
15957 return NULL;
15958 }
15959
15960
15961 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
15962 PyObject *resultobj;
15963 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15964 bool result;
15965 PyObject * obj0 = 0 ;
15966 char *kwnames[] = {
15967 (char *) "self", NULL
15968 };
15969
15970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
15971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15973 {
15974 PyThreadState* __tstate = wxPyBeginAllowThreads();
15975 result = (bool)(arg1)->IsEnabled();
15976
15977 wxPyEndAllowThreads(__tstate);
15978 if (PyErr_Occurred()) SWIG_fail;
15979 }
15980 {
15981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15982 }
15983 return resultobj;
15984 fail:
15985 return NULL;
15986 }
15987
15988
15989 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15990 PyObject *resultobj;
15991 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15992 bool result;
15993 PyObject * obj0 = 0 ;
15994 char *kwnames[] = {
15995 (char *) "self", NULL
15996 };
15997
15998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
15999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16001 {
16002 PyThreadState* __tstate = wxPyBeginAllowThreads();
16003 result = (bool)(arg1)->IsToggled();
16004
16005 wxPyEndAllowThreads(__tstate);
16006 if (PyErr_Occurred()) SWIG_fail;
16007 }
16008 {
16009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16010 }
16011 return resultobj;
16012 fail:
16013 return NULL;
16014 }
16015
16016
16017 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
16018 PyObject *resultobj;
16019 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16020 bool result;
16021 PyObject * obj0 = 0 ;
16022 char *kwnames[] = {
16023 (char *) "self", NULL
16024 };
16025
16026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16029 {
16030 PyThreadState* __tstate = wxPyBeginAllowThreads();
16031 result = (bool)(arg1)->CanBeToggled();
16032
16033 wxPyEndAllowThreads(__tstate);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 }
16036 {
16037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16038 }
16039 return resultobj;
16040 fail:
16041 return NULL;
16042 }
16043
16044
16045 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16046 PyObject *resultobj;
16047 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16048 wxBitmap *result;
16049 PyObject * obj0 = 0 ;
16050 char *kwnames[] = {
16051 (char *) "self", NULL
16052 };
16053
16054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16057 {
16058 PyThreadState* __tstate = wxPyBeginAllowThreads();
16059 {
16060 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16061 result = (wxBitmap *) &_result_ref;
16062 }
16063
16064 wxPyEndAllowThreads(__tstate);
16065 if (PyErr_Occurred()) SWIG_fail;
16066 }
16067 {
16068 wxBitmap* resultptr = new wxBitmap(*result);
16069 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16070 }
16071 return resultobj;
16072 fail:
16073 return NULL;
16074 }
16075
16076
16077 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16078 PyObject *resultobj;
16079 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16080 wxBitmap *result;
16081 PyObject * obj0 = 0 ;
16082 char *kwnames[] = {
16083 (char *) "self", NULL
16084 };
16085
16086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16089 {
16090 PyThreadState* __tstate = wxPyBeginAllowThreads();
16091 {
16092 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16093 result = (wxBitmap *) &_result_ref;
16094 }
16095
16096 wxPyEndAllowThreads(__tstate);
16097 if (PyErr_Occurred()) SWIG_fail;
16098 }
16099 {
16100 wxBitmap* resultptr = new wxBitmap(*result);
16101 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16102 }
16103 return resultobj;
16104 fail:
16105 return NULL;
16106 }
16107
16108
16109 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16110 PyObject *resultobj;
16111 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16112 wxBitmap result;
16113 PyObject * obj0 = 0 ;
16114 char *kwnames[] = {
16115 (char *) "self", NULL
16116 };
16117
16118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16121 {
16122 PyThreadState* __tstate = wxPyBeginAllowThreads();
16123 result = (arg1)->GetBitmap();
16124
16125 wxPyEndAllowThreads(__tstate);
16126 if (PyErr_Occurred()) SWIG_fail;
16127 }
16128 {
16129 wxBitmap * resultptr;
16130 resultptr = new wxBitmap((wxBitmap &) result);
16131 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16132 }
16133 return resultobj;
16134 fail:
16135 return NULL;
16136 }
16137
16138
16139 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16140 PyObject *resultobj;
16141 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16142 wxString result;
16143 PyObject * obj0 = 0 ;
16144 char *kwnames[] = {
16145 (char *) "self", NULL
16146 };
16147
16148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16151 {
16152 PyThreadState* __tstate = wxPyBeginAllowThreads();
16153 result = (arg1)->GetLabel();
16154
16155 wxPyEndAllowThreads(__tstate);
16156 if (PyErr_Occurred()) SWIG_fail;
16157 }
16158 {
16159 #if wxUSE_UNICODE
16160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16161 #else
16162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16163 #endif
16164 }
16165 return resultobj;
16166 fail:
16167 return NULL;
16168 }
16169
16170
16171 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16172 PyObject *resultobj;
16173 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16174 wxString result;
16175 PyObject * obj0 = 0 ;
16176 char *kwnames[] = {
16177 (char *) "self", NULL
16178 };
16179
16180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16183 {
16184 PyThreadState* __tstate = wxPyBeginAllowThreads();
16185 result = (arg1)->GetShortHelp();
16186
16187 wxPyEndAllowThreads(__tstate);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 }
16190 {
16191 #if wxUSE_UNICODE
16192 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16193 #else
16194 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16195 #endif
16196 }
16197 return resultobj;
16198 fail:
16199 return NULL;
16200 }
16201
16202
16203 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16204 PyObject *resultobj;
16205 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16206 wxString result;
16207 PyObject * obj0 = 0 ;
16208 char *kwnames[] = {
16209 (char *) "self", NULL
16210 };
16211
16212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16215 {
16216 PyThreadState* __tstate = wxPyBeginAllowThreads();
16217 result = (arg1)->GetLongHelp();
16218
16219 wxPyEndAllowThreads(__tstate);
16220 if (PyErr_Occurred()) SWIG_fail;
16221 }
16222 {
16223 #if wxUSE_UNICODE
16224 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16225 #else
16226 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16227 #endif
16228 }
16229 return resultobj;
16230 fail:
16231 return NULL;
16232 }
16233
16234
16235 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
16236 PyObject *resultobj;
16237 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16238 bool arg2 ;
16239 bool result;
16240 PyObject * obj0 = 0 ;
16241 PyObject * obj1 = 0 ;
16242 char *kwnames[] = {
16243 (char *) "self",(char *) "enable", NULL
16244 };
16245
16246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16249 arg2 = (bool) SWIG_AsBool(obj1);
16250 if (PyErr_Occurred()) SWIG_fail;
16251 {
16252 PyThreadState* __tstate = wxPyBeginAllowThreads();
16253 result = (bool)(arg1)->Enable(arg2);
16254
16255 wxPyEndAllowThreads(__tstate);
16256 if (PyErr_Occurred()) SWIG_fail;
16257 }
16258 {
16259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16260 }
16261 return resultobj;
16262 fail:
16263 return NULL;
16264 }
16265
16266
16267 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16268 PyObject *resultobj;
16269 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16270 PyObject * obj0 = 0 ;
16271 char *kwnames[] = {
16272 (char *) "self", NULL
16273 };
16274
16275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 (arg1)->Toggle();
16281
16282 wxPyEndAllowThreads(__tstate);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
16285 Py_INCREF(Py_None); resultobj = Py_None;
16286 return resultobj;
16287 fail:
16288 return NULL;
16289 }
16290
16291
16292 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16293 PyObject *resultobj;
16294 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16295 bool arg2 ;
16296 bool result;
16297 PyObject * obj0 = 0 ;
16298 PyObject * obj1 = 0 ;
16299 char *kwnames[] = {
16300 (char *) "self",(char *) "toggle", NULL
16301 };
16302
16303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16306 arg2 = (bool) SWIG_AsBool(obj1);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 {
16309 PyThreadState* __tstate = wxPyBeginAllowThreads();
16310 result = (bool)(arg1)->SetToggle(arg2);
16311
16312 wxPyEndAllowThreads(__tstate);
16313 if (PyErr_Occurred()) SWIG_fail;
16314 }
16315 {
16316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16317 }
16318 return resultobj;
16319 fail:
16320 return NULL;
16321 }
16322
16323
16324 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16325 PyObject *resultobj;
16326 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16327 wxString *arg2 = 0 ;
16328 bool result;
16329 bool temp2 = False ;
16330 PyObject * obj0 = 0 ;
16331 PyObject * obj1 = 0 ;
16332 char *kwnames[] = {
16333 (char *) "self",(char *) "help", NULL
16334 };
16335
16336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16339 {
16340 arg2 = wxString_in_helper(obj1);
16341 if (arg2 == NULL) SWIG_fail;
16342 temp2 = True;
16343 }
16344 {
16345 PyThreadState* __tstate = wxPyBeginAllowThreads();
16346 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
16347
16348 wxPyEndAllowThreads(__tstate);
16349 if (PyErr_Occurred()) SWIG_fail;
16350 }
16351 {
16352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16353 }
16354 {
16355 if (temp2)
16356 delete arg2;
16357 }
16358 return resultobj;
16359 fail:
16360 {
16361 if (temp2)
16362 delete arg2;
16363 }
16364 return NULL;
16365 }
16366
16367
16368 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16369 PyObject *resultobj;
16370 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16371 wxString *arg2 = 0 ;
16372 bool result;
16373 bool temp2 = False ;
16374 PyObject * obj0 = 0 ;
16375 PyObject * obj1 = 0 ;
16376 char *kwnames[] = {
16377 (char *) "self",(char *) "help", NULL
16378 };
16379
16380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16383 {
16384 arg2 = wxString_in_helper(obj1);
16385 if (arg2 == NULL) SWIG_fail;
16386 temp2 = True;
16387 }
16388 {
16389 PyThreadState* __tstate = wxPyBeginAllowThreads();
16390 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16391
16392 wxPyEndAllowThreads(__tstate);
16393 if (PyErr_Occurred()) SWIG_fail;
16394 }
16395 {
16396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16397 }
16398 {
16399 if (temp2)
16400 delete arg2;
16401 }
16402 return resultobj;
16403 fail:
16404 {
16405 if (temp2)
16406 delete arg2;
16407 }
16408 return NULL;
16409 }
16410
16411
16412 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16413 PyObject *resultobj;
16414 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16415 wxBitmap *arg2 = 0 ;
16416 PyObject * obj0 = 0 ;
16417 PyObject * obj1 = 0 ;
16418 char *kwnames[] = {
16419 (char *) "self",(char *) "bmp", NULL
16420 };
16421
16422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16425 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16426 SWIG_POINTER_EXCEPTION | 0)) == -1)
16427 SWIG_fail;
16428 if (arg2 == NULL) {
16429 PyErr_SetString(PyExc_TypeError,"null reference");
16430 SWIG_fail;
16431 }
16432 {
16433 PyThreadState* __tstate = wxPyBeginAllowThreads();
16434 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16435
16436 wxPyEndAllowThreads(__tstate);
16437 if (PyErr_Occurred()) SWIG_fail;
16438 }
16439 Py_INCREF(Py_None); resultobj = Py_None;
16440 return resultobj;
16441 fail:
16442 return NULL;
16443 }
16444
16445
16446 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16447 PyObject *resultobj;
16448 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16449 wxBitmap *arg2 = 0 ;
16450 PyObject * obj0 = 0 ;
16451 PyObject * obj1 = 0 ;
16452 char *kwnames[] = {
16453 (char *) "self",(char *) "bmp", NULL
16454 };
16455
16456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16459 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16460 SWIG_POINTER_EXCEPTION | 0)) == -1)
16461 SWIG_fail;
16462 if (arg2 == NULL) {
16463 PyErr_SetString(PyExc_TypeError,"null reference");
16464 SWIG_fail;
16465 }
16466 {
16467 PyThreadState* __tstate = wxPyBeginAllowThreads();
16468 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16469
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 Py_INCREF(Py_None); resultobj = Py_None;
16474 return resultobj;
16475 fail:
16476 return NULL;
16477 }
16478
16479
16480 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16481 PyObject *resultobj;
16482 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16483 wxString *arg2 = 0 ;
16484 bool temp2 = False ;
16485 PyObject * obj0 = 0 ;
16486 PyObject * obj1 = 0 ;
16487 char *kwnames[] = {
16488 (char *) "self",(char *) "label", NULL
16489 };
16490
16491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16494 {
16495 arg2 = wxString_in_helper(obj1);
16496 if (arg2 == NULL) SWIG_fail;
16497 temp2 = True;
16498 }
16499 {
16500 PyThreadState* __tstate = wxPyBeginAllowThreads();
16501 (arg1)->SetLabel((wxString const &)*arg2);
16502
16503 wxPyEndAllowThreads(__tstate);
16504 if (PyErr_Occurred()) SWIG_fail;
16505 }
16506 Py_INCREF(Py_None); resultobj = Py_None;
16507 {
16508 if (temp2)
16509 delete arg2;
16510 }
16511 return resultobj;
16512 fail:
16513 {
16514 if (temp2)
16515 delete arg2;
16516 }
16517 return NULL;
16518 }
16519
16520
16521 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
16522 PyObject *resultobj;
16523 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16524 PyObject * obj0 = 0 ;
16525 char *kwnames[] = {
16526 (char *) "self", NULL
16527 };
16528
16529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16532 {
16533 PyThreadState* __tstate = wxPyBeginAllowThreads();
16534 (arg1)->Detach();
16535
16536 wxPyEndAllowThreads(__tstate);
16537 if (PyErr_Occurred()) SWIG_fail;
16538 }
16539 Py_INCREF(Py_None); resultobj = Py_None;
16540 return resultobj;
16541 fail:
16542 return NULL;
16543 }
16544
16545
16546 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
16547 PyObject *resultobj;
16548 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16549 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16550 PyObject * obj0 = 0 ;
16551 PyObject * obj1 = 0 ;
16552 char *kwnames[] = {
16553 (char *) "self",(char *) "tbar", NULL
16554 };
16555
16556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16559 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16561 {
16562 PyThreadState* __tstate = wxPyBeginAllowThreads();
16563 (arg1)->Attach(arg2);
16564
16565 wxPyEndAllowThreads(__tstate);
16566 if (PyErr_Occurred()) SWIG_fail;
16567 }
16568 Py_INCREF(Py_None); resultobj = Py_None;
16569 return resultobj;
16570 fail:
16571 return NULL;
16572 }
16573
16574
16575 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16576 PyObject *resultobj;
16577 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16578 PyObject *result;
16579 PyObject * obj0 = 0 ;
16580 char *kwnames[] = {
16581 (char *) "self", NULL
16582 };
16583
16584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
16585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16587 {
16588 PyThreadState* __tstate = wxPyBeginAllowThreads();
16589 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
16590
16591 wxPyEndAllowThreads(__tstate);
16592 if (PyErr_Occurred()) SWIG_fail;
16593 }
16594 resultobj = result;
16595 return resultobj;
16596 fail:
16597 return NULL;
16598 }
16599
16600
16601 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16602 PyObject *resultobj;
16603 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16604 PyObject *arg2 = (PyObject *) 0 ;
16605 PyObject * obj0 = 0 ;
16606 PyObject * obj1 = 0 ;
16607 char *kwnames[] = {
16608 (char *) "self",(char *) "clientData", NULL
16609 };
16610
16611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
16612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16614 arg2 = obj1;
16615 {
16616 PyThreadState* __tstate = wxPyBeginAllowThreads();
16617 wxToolBarToolBase_SetClientData(arg1,arg2);
16618
16619 wxPyEndAllowThreads(__tstate);
16620 if (PyErr_Occurred()) SWIG_fail;
16621 }
16622 Py_INCREF(Py_None); resultobj = Py_None;
16623 return resultobj;
16624 fail:
16625 return NULL;
16626 }
16627
16628
16629 static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
16630 PyObject *obj;
16631 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16632 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
16633 Py_INCREF(obj);
16634 return Py_BuildValue((char *)"");
16635 }
16636 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16637 PyObject *resultobj;
16638 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16639 int arg2 ;
16640 wxString *arg3 = 0 ;
16641 wxBitmap *arg4 = 0 ;
16642 wxBitmap const &arg5_defvalue = wxNullBitmap ;
16643 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
16644 int arg6 = (int) wxITEM_NORMAL ;
16645 wxString const &arg7_defvalue = wxPyEmptyString ;
16646 wxString *arg7 = (wxString *) &arg7_defvalue ;
16647 wxString const &arg8_defvalue = wxPyEmptyString ;
16648 wxString *arg8 = (wxString *) &arg8_defvalue ;
16649 PyObject *arg9 = (PyObject *) NULL ;
16650 wxToolBarToolBase *result;
16651 bool temp3 = False ;
16652 bool temp7 = False ;
16653 bool temp8 = False ;
16654 PyObject * obj0 = 0 ;
16655 PyObject * obj1 = 0 ;
16656 PyObject * obj2 = 0 ;
16657 PyObject * obj3 = 0 ;
16658 PyObject * obj4 = 0 ;
16659 PyObject * obj5 = 0 ;
16660 PyObject * obj6 = 0 ;
16661 PyObject * obj7 = 0 ;
16662 PyObject * obj8 = 0 ;
16663 char *kwnames[] = {
16664 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16665 };
16666
16667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
16668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16670 arg2 = (int) SWIG_AsInt(obj1);
16671 if (PyErr_Occurred()) SWIG_fail;
16672 {
16673 arg3 = wxString_in_helper(obj2);
16674 if (arg3 == NULL) SWIG_fail;
16675 temp3 = True;
16676 }
16677 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16678 SWIG_POINTER_EXCEPTION | 0)) == -1)
16679 SWIG_fail;
16680 if (arg4 == NULL) {
16681 PyErr_SetString(PyExc_TypeError,"null reference");
16682 SWIG_fail;
16683 }
16684 if (obj4) {
16685 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16686 SWIG_POINTER_EXCEPTION | 0)) == -1)
16687 SWIG_fail;
16688 if (arg5 == NULL) {
16689 PyErr_SetString(PyExc_TypeError,"null reference");
16690 SWIG_fail;
16691 }
16692 }
16693 if (obj5) {
16694 arg6 = (wxItemKind) SWIG_AsInt(obj5);
16695 if (PyErr_Occurred()) SWIG_fail;
16696 }
16697 if (obj6) {
16698 {
16699 arg7 = wxString_in_helper(obj6);
16700 if (arg7 == NULL) SWIG_fail;
16701 temp7 = True;
16702 }
16703 }
16704 if (obj7) {
16705 {
16706 arg8 = wxString_in_helper(obj7);
16707 if (arg8 == NULL) SWIG_fail;
16708 temp8 = True;
16709 }
16710 }
16711 if (obj8) {
16712 arg9 = obj8;
16713 }
16714 {
16715 PyThreadState* __tstate = wxPyBeginAllowThreads();
16716 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
16717
16718 wxPyEndAllowThreads(__tstate);
16719 if (PyErr_Occurred()) SWIG_fail;
16720 }
16721 {
16722 resultobj = wxPyMake_wxObject(result);
16723 }
16724 {
16725 if (temp3)
16726 delete arg3;
16727 }
16728 {
16729 if (temp7)
16730 delete arg7;
16731 }
16732 {
16733 if (temp8)
16734 delete arg8;
16735 }
16736 return resultobj;
16737 fail:
16738 {
16739 if (temp3)
16740 delete arg3;
16741 }
16742 {
16743 if (temp7)
16744 delete arg7;
16745 }
16746 {
16747 if (temp8)
16748 delete arg8;
16749 }
16750 return NULL;
16751 }
16752
16753
16754 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16755 PyObject *resultobj;
16756 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16757 size_t arg2 ;
16758 int arg3 ;
16759 wxString *arg4 = 0 ;
16760 wxBitmap *arg5 = 0 ;
16761 wxBitmap const &arg6_defvalue = wxNullBitmap ;
16762 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
16763 int arg7 = (int) wxITEM_NORMAL ;
16764 wxString const &arg8_defvalue = wxPyEmptyString ;
16765 wxString *arg8 = (wxString *) &arg8_defvalue ;
16766 wxString const &arg9_defvalue = wxPyEmptyString ;
16767 wxString *arg9 = (wxString *) &arg9_defvalue ;
16768 PyObject *arg10 = (PyObject *) NULL ;
16769 wxToolBarToolBase *result;
16770 bool temp4 = False ;
16771 bool temp8 = False ;
16772 bool temp9 = False ;
16773 PyObject * obj0 = 0 ;
16774 PyObject * obj1 = 0 ;
16775 PyObject * obj2 = 0 ;
16776 PyObject * obj3 = 0 ;
16777 PyObject * obj4 = 0 ;
16778 PyObject * obj5 = 0 ;
16779 PyObject * obj6 = 0 ;
16780 PyObject * obj7 = 0 ;
16781 PyObject * obj8 = 0 ;
16782 PyObject * obj9 = 0 ;
16783 char *kwnames[] = {
16784 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16785 };
16786
16787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
16788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16790 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 arg3 = (int) SWIG_AsInt(obj2);
16793 if (PyErr_Occurred()) SWIG_fail;
16794 {
16795 arg4 = wxString_in_helper(obj3);
16796 if (arg4 == NULL) SWIG_fail;
16797 temp4 = True;
16798 }
16799 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16800 SWIG_POINTER_EXCEPTION | 0)) == -1)
16801 SWIG_fail;
16802 if (arg5 == NULL) {
16803 PyErr_SetString(PyExc_TypeError,"null reference");
16804 SWIG_fail;
16805 }
16806 if (obj5) {
16807 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
16808 SWIG_POINTER_EXCEPTION | 0)) == -1)
16809 SWIG_fail;
16810 if (arg6 == NULL) {
16811 PyErr_SetString(PyExc_TypeError,"null reference");
16812 SWIG_fail;
16813 }
16814 }
16815 if (obj6) {
16816 arg7 = (wxItemKind) SWIG_AsInt(obj6);
16817 if (PyErr_Occurred()) SWIG_fail;
16818 }
16819 if (obj7) {
16820 {
16821 arg8 = wxString_in_helper(obj7);
16822 if (arg8 == NULL) SWIG_fail;
16823 temp8 = True;
16824 }
16825 }
16826 if (obj8) {
16827 {
16828 arg9 = wxString_in_helper(obj8);
16829 if (arg9 == NULL) SWIG_fail;
16830 temp9 = True;
16831 }
16832 }
16833 if (obj9) {
16834 arg10 = obj9;
16835 }
16836 {
16837 PyThreadState* __tstate = wxPyBeginAllowThreads();
16838 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);
16839
16840 wxPyEndAllowThreads(__tstate);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
16843 {
16844 resultobj = wxPyMake_wxObject(result);
16845 }
16846 {
16847 if (temp4)
16848 delete arg4;
16849 }
16850 {
16851 if (temp8)
16852 delete arg8;
16853 }
16854 {
16855 if (temp9)
16856 delete arg9;
16857 }
16858 return resultobj;
16859 fail:
16860 {
16861 if (temp4)
16862 delete arg4;
16863 }
16864 {
16865 if (temp8)
16866 delete arg8;
16867 }
16868 {
16869 if (temp9)
16870 delete arg9;
16871 }
16872 return NULL;
16873 }
16874
16875
16876 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16877 PyObject *resultobj;
16878 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16879 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
16880 wxToolBarToolBase *result;
16881 PyObject * obj0 = 0 ;
16882 PyObject * obj1 = 0 ;
16883 char *kwnames[] = {
16884 (char *) "self",(char *) "tool", NULL
16885 };
16886
16887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
16888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16890 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
16891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16892 {
16893 PyThreadState* __tstate = wxPyBeginAllowThreads();
16894 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
16895
16896 wxPyEndAllowThreads(__tstate);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 {
16900 resultobj = wxPyMake_wxObject(result);
16901 }
16902 return resultobj;
16903 fail:
16904 return NULL;
16905 }
16906
16907
16908 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16909 PyObject *resultobj;
16910 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16911 size_t arg2 ;
16912 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
16913 wxToolBarToolBase *result;
16914 PyObject * obj0 = 0 ;
16915 PyObject * obj1 = 0 ;
16916 PyObject * obj2 = 0 ;
16917 char *kwnames[] = {
16918 (char *) "self",(char *) "pos",(char *) "tool", NULL
16919 };
16920
16921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
16922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16924 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16925 if (PyErr_Occurred()) SWIG_fail;
16926 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
16927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16928 {
16929 PyThreadState* __tstate = wxPyBeginAllowThreads();
16930 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
16931
16932 wxPyEndAllowThreads(__tstate);
16933 if (PyErr_Occurred()) SWIG_fail;
16934 }
16935 {
16936 resultobj = wxPyMake_wxObject(result);
16937 }
16938 return resultobj;
16939 fail:
16940 return NULL;
16941 }
16942
16943
16944 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16945 PyObject *resultobj;
16946 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16947 wxControl *arg2 = (wxControl *) 0 ;
16948 wxToolBarToolBase *result;
16949 PyObject * obj0 = 0 ;
16950 PyObject * obj1 = 0 ;
16951 char *kwnames[] = {
16952 (char *) "self",(char *) "control", NULL
16953 };
16954
16955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
16956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16958 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
16959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16960 {
16961 PyThreadState* __tstate = wxPyBeginAllowThreads();
16962 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
16963
16964 wxPyEndAllowThreads(__tstate);
16965 if (PyErr_Occurred()) SWIG_fail;
16966 }
16967 {
16968 resultobj = wxPyMake_wxObject(result);
16969 }
16970 return resultobj;
16971 fail:
16972 return NULL;
16973 }
16974
16975
16976 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16977 PyObject *resultobj;
16978 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16979 size_t arg2 ;
16980 wxControl *arg3 = (wxControl *) 0 ;
16981 wxToolBarToolBase *result;
16982 PyObject * obj0 = 0 ;
16983 PyObject * obj1 = 0 ;
16984 PyObject * obj2 = 0 ;
16985 char *kwnames[] = {
16986 (char *) "self",(char *) "pos",(char *) "control", NULL
16987 };
16988
16989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
16990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16992 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16993 if (PyErr_Occurred()) SWIG_fail;
16994 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
16995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16996 {
16997 PyThreadState* __tstate = wxPyBeginAllowThreads();
16998 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
16999
17000 wxPyEndAllowThreads(__tstate);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 }
17003 {
17004 resultobj = wxPyMake_wxObject(result);
17005 }
17006 return resultobj;
17007 fail:
17008 return NULL;
17009 }
17010
17011
17012 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17013 PyObject *resultobj;
17014 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17015 int arg2 ;
17016 wxControl *result;
17017 PyObject * obj0 = 0 ;
17018 PyObject * obj1 = 0 ;
17019 char *kwnames[] = {
17020 (char *) "self",(char *) "id", NULL
17021 };
17022
17023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17026 arg2 = (int) SWIG_AsInt(obj1);
17027 if (PyErr_Occurred()) SWIG_fail;
17028 {
17029 PyThreadState* __tstate = wxPyBeginAllowThreads();
17030 result = (wxControl *)(arg1)->FindControl(arg2);
17031
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 {
17036 resultobj = wxPyMake_wxObject(result);
17037 }
17038 return resultobj;
17039 fail:
17040 return NULL;
17041 }
17042
17043
17044 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17045 PyObject *resultobj;
17046 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17047 wxToolBarToolBase *result;
17048 PyObject * obj0 = 0 ;
17049 char *kwnames[] = {
17050 (char *) "self", NULL
17051 };
17052
17053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17056 {
17057 PyThreadState* __tstate = wxPyBeginAllowThreads();
17058 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17059
17060 wxPyEndAllowThreads(__tstate);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 {
17064 resultobj = wxPyMake_wxObject(result);
17065 }
17066 return resultobj;
17067 fail:
17068 return NULL;
17069 }
17070
17071
17072 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17073 PyObject *resultobj;
17074 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17075 size_t arg2 ;
17076 wxToolBarToolBase *result;
17077 PyObject * obj0 = 0 ;
17078 PyObject * obj1 = 0 ;
17079 char *kwnames[] = {
17080 (char *) "self",(char *) "pos", NULL
17081 };
17082
17083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17086 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 {
17089 PyThreadState* __tstate = wxPyBeginAllowThreads();
17090 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17091
17092 wxPyEndAllowThreads(__tstate);
17093 if (PyErr_Occurred()) SWIG_fail;
17094 }
17095 {
17096 resultobj = wxPyMake_wxObject(result);
17097 }
17098 return resultobj;
17099 fail:
17100 return NULL;
17101 }
17102
17103
17104 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17105 PyObject *resultobj;
17106 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17107 int arg2 ;
17108 wxToolBarToolBase *result;
17109 PyObject * obj0 = 0 ;
17110 PyObject * obj1 = 0 ;
17111 char *kwnames[] = {
17112 (char *) "self",(char *) "id", NULL
17113 };
17114
17115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17118 arg2 = (int) SWIG_AsInt(obj1);
17119 if (PyErr_Occurred()) SWIG_fail;
17120 {
17121 PyThreadState* __tstate = wxPyBeginAllowThreads();
17122 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17123
17124 wxPyEndAllowThreads(__tstate);
17125 if (PyErr_Occurred()) SWIG_fail;
17126 }
17127 {
17128 resultobj = wxPyMake_wxObject(result);
17129 }
17130 return resultobj;
17131 fail:
17132 return NULL;
17133 }
17134
17135
17136 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17137 PyObject *resultobj;
17138 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17139 size_t arg2 ;
17140 bool result;
17141 PyObject * obj0 = 0 ;
17142 PyObject * obj1 = 0 ;
17143 char *kwnames[] = {
17144 (char *) "self",(char *) "pos", NULL
17145 };
17146
17147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17150 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17151 if (PyErr_Occurred()) SWIG_fail;
17152 {
17153 PyThreadState* __tstate = wxPyBeginAllowThreads();
17154 result = (bool)(arg1)->DeleteToolByPos(arg2);
17155
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 {
17160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17161 }
17162 return resultobj;
17163 fail:
17164 return NULL;
17165 }
17166
17167
17168 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17169 PyObject *resultobj;
17170 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17171 int arg2 ;
17172 bool result;
17173 PyObject * obj0 = 0 ;
17174 PyObject * obj1 = 0 ;
17175 char *kwnames[] = {
17176 (char *) "self",(char *) "id", NULL
17177 };
17178
17179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17182 arg2 = (int) SWIG_AsInt(obj1);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 {
17185 PyThreadState* __tstate = wxPyBeginAllowThreads();
17186 result = (bool)(arg1)->DeleteTool(arg2);
17187
17188 wxPyEndAllowThreads(__tstate);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 {
17192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17193 }
17194 return resultobj;
17195 fail:
17196 return NULL;
17197 }
17198
17199
17200 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
17201 PyObject *resultobj;
17202 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17203 PyObject * obj0 = 0 ;
17204 char *kwnames[] = {
17205 (char *) "self", NULL
17206 };
17207
17208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17211 {
17212 PyThreadState* __tstate = wxPyBeginAllowThreads();
17213 (arg1)->ClearTools();
17214
17215 wxPyEndAllowThreads(__tstate);
17216 if (PyErr_Occurred()) SWIG_fail;
17217 }
17218 Py_INCREF(Py_None); resultobj = Py_None;
17219 return resultobj;
17220 fail:
17221 return NULL;
17222 }
17223
17224
17225 static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
17226 PyObject *resultobj;
17227 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17228 bool result;
17229 PyObject * obj0 = 0 ;
17230 char *kwnames[] = {
17231 (char *) "self", NULL
17232 };
17233
17234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17237 {
17238 PyThreadState* __tstate = wxPyBeginAllowThreads();
17239 result = (bool)(arg1)->Realize();
17240
17241 wxPyEndAllowThreads(__tstate);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 }
17244 {
17245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17246 }
17247 return resultobj;
17248 fail:
17249 return NULL;
17250 }
17251
17252
17253 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17254 PyObject *resultobj;
17255 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17256 int arg2 ;
17257 bool arg3 ;
17258 PyObject * obj0 = 0 ;
17259 PyObject * obj1 = 0 ;
17260 PyObject * obj2 = 0 ;
17261 char *kwnames[] = {
17262 (char *) "self",(char *) "id",(char *) "enable", NULL
17263 };
17264
17265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17268 arg2 = (int) SWIG_AsInt(obj1);
17269 if (PyErr_Occurred()) SWIG_fail;
17270 arg3 = (bool) SWIG_AsBool(obj2);
17271 if (PyErr_Occurred()) SWIG_fail;
17272 {
17273 PyThreadState* __tstate = wxPyBeginAllowThreads();
17274 (arg1)->EnableTool(arg2,arg3);
17275
17276 wxPyEndAllowThreads(__tstate);
17277 if (PyErr_Occurred()) SWIG_fail;
17278 }
17279 Py_INCREF(Py_None); resultobj = Py_None;
17280 return resultobj;
17281 fail:
17282 return NULL;
17283 }
17284
17285
17286 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17287 PyObject *resultobj;
17288 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17289 int arg2 ;
17290 bool arg3 ;
17291 PyObject * obj0 = 0 ;
17292 PyObject * obj1 = 0 ;
17293 PyObject * obj2 = 0 ;
17294 char *kwnames[] = {
17295 (char *) "self",(char *) "id",(char *) "toggle", NULL
17296 };
17297
17298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17301 arg2 = (int) SWIG_AsInt(obj1);
17302 if (PyErr_Occurred()) SWIG_fail;
17303 arg3 = (bool) SWIG_AsBool(obj2);
17304 if (PyErr_Occurred()) SWIG_fail;
17305 {
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 (arg1)->ToggleTool(arg2,arg3);
17308
17309 wxPyEndAllowThreads(__tstate);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
17312 Py_INCREF(Py_None); resultobj = Py_None;
17313 return resultobj;
17314 fail:
17315 return NULL;
17316 }
17317
17318
17319 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
17320 PyObject *resultobj;
17321 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17322 int arg2 ;
17323 bool arg3 ;
17324 PyObject * obj0 = 0 ;
17325 PyObject * obj1 = 0 ;
17326 PyObject * obj2 = 0 ;
17327 char *kwnames[] = {
17328 (char *) "self",(char *) "id",(char *) "toggle", NULL
17329 };
17330
17331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17334 arg2 = (int) SWIG_AsInt(obj1);
17335 if (PyErr_Occurred()) SWIG_fail;
17336 arg3 = (bool) SWIG_AsBool(obj2);
17337 if (PyErr_Occurred()) SWIG_fail;
17338 {
17339 PyThreadState* __tstate = wxPyBeginAllowThreads();
17340 (arg1)->SetToggle(arg2,arg3);
17341
17342 wxPyEndAllowThreads(__tstate);
17343 if (PyErr_Occurred()) SWIG_fail;
17344 }
17345 Py_INCREF(Py_None); resultobj = Py_None;
17346 return resultobj;
17347 fail:
17348 return NULL;
17349 }
17350
17351
17352 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17353 PyObject *resultobj;
17354 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17355 int arg2 ;
17356 PyObject *result;
17357 PyObject * obj0 = 0 ;
17358 PyObject * obj1 = 0 ;
17359 char *kwnames[] = {
17360 (char *) "self",(char *) "id", NULL
17361 };
17362
17363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17366 arg2 = (int) SWIG_AsInt(obj1);
17367 if (PyErr_Occurred()) SWIG_fail;
17368 {
17369 PyThreadState* __tstate = wxPyBeginAllowThreads();
17370 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17371
17372 wxPyEndAllowThreads(__tstate);
17373 if (PyErr_Occurred()) SWIG_fail;
17374 }
17375 resultobj = result;
17376 return resultobj;
17377 fail:
17378 return NULL;
17379 }
17380
17381
17382 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17383 PyObject *resultobj;
17384 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17385 int arg2 ;
17386 PyObject *arg3 = (PyObject *) 0 ;
17387 PyObject * obj0 = 0 ;
17388 PyObject * obj1 = 0 ;
17389 PyObject * obj2 = 0 ;
17390 char *kwnames[] = {
17391 (char *) "self",(char *) "id",(char *) "clientData", NULL
17392 };
17393
17394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17397 arg2 = (int) SWIG_AsInt(obj1);
17398 if (PyErr_Occurred()) SWIG_fail;
17399 arg3 = obj2;
17400 {
17401 PyThreadState* __tstate = wxPyBeginAllowThreads();
17402 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17403
17404 wxPyEndAllowThreads(__tstate);
17405 if (PyErr_Occurred()) SWIG_fail;
17406 }
17407 Py_INCREF(Py_None); resultobj = Py_None;
17408 return resultobj;
17409 fail:
17410 return NULL;
17411 }
17412
17413
17414 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17415 PyObject *resultobj;
17416 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17417 int arg2 ;
17418 int result;
17419 PyObject * obj0 = 0 ;
17420 PyObject * obj1 = 0 ;
17421 char *kwnames[] = {
17422 (char *) "self",(char *) "id", NULL
17423 };
17424
17425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17428 arg2 = (int) SWIG_AsInt(obj1);
17429 if (PyErr_Occurred()) SWIG_fail;
17430 {
17431 PyThreadState* __tstate = wxPyBeginAllowThreads();
17432 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17433
17434 wxPyEndAllowThreads(__tstate);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 }
17437 resultobj = SWIG_FromInt((int)result);
17438 return resultobj;
17439 fail:
17440 return NULL;
17441 }
17442
17443
17444 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
17445 PyObject *resultobj;
17446 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17447 int arg2 ;
17448 bool result;
17449 PyObject * obj0 = 0 ;
17450 PyObject * obj1 = 0 ;
17451 char *kwnames[] = {
17452 (char *) "self",(char *) "id", NULL
17453 };
17454
17455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17458 arg2 = (int) SWIG_AsInt(obj1);
17459 if (PyErr_Occurred()) SWIG_fail;
17460 {
17461 PyThreadState* __tstate = wxPyBeginAllowThreads();
17462 result = (bool)(arg1)->GetToolState(arg2);
17463
17464 wxPyEndAllowThreads(__tstate);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 }
17467 {
17468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17469 }
17470 return resultobj;
17471 fail:
17472 return NULL;
17473 }
17474
17475
17476 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17477 PyObject *resultobj;
17478 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17479 int arg2 ;
17480 bool result;
17481 PyObject * obj0 = 0 ;
17482 PyObject * obj1 = 0 ;
17483 char *kwnames[] = {
17484 (char *) "self",(char *) "id", NULL
17485 };
17486
17487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17490 arg2 = (int) SWIG_AsInt(obj1);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 {
17493 PyThreadState* __tstate = wxPyBeginAllowThreads();
17494 result = (bool)(arg1)->GetToolEnabled(arg2);
17495
17496 wxPyEndAllowThreads(__tstate);
17497 if (PyErr_Occurred()) SWIG_fail;
17498 }
17499 {
17500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17501 }
17502 return resultobj;
17503 fail:
17504 return NULL;
17505 }
17506
17507
17508 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17509 PyObject *resultobj;
17510 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17511 int arg2 ;
17512 wxString *arg3 = 0 ;
17513 bool temp3 = False ;
17514 PyObject * obj0 = 0 ;
17515 PyObject * obj1 = 0 ;
17516 PyObject * obj2 = 0 ;
17517 char *kwnames[] = {
17518 (char *) "self",(char *) "id",(char *) "helpString", NULL
17519 };
17520
17521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17524 arg2 = (int) SWIG_AsInt(obj1);
17525 if (PyErr_Occurred()) SWIG_fail;
17526 {
17527 arg3 = wxString_in_helper(obj2);
17528 if (arg3 == NULL) SWIG_fail;
17529 temp3 = True;
17530 }
17531 {
17532 PyThreadState* __tstate = wxPyBeginAllowThreads();
17533 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17534
17535 wxPyEndAllowThreads(__tstate);
17536 if (PyErr_Occurred()) SWIG_fail;
17537 }
17538 Py_INCREF(Py_None); resultobj = Py_None;
17539 {
17540 if (temp3)
17541 delete arg3;
17542 }
17543 return resultobj;
17544 fail:
17545 {
17546 if (temp3)
17547 delete arg3;
17548 }
17549 return NULL;
17550 }
17551
17552
17553 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17554 PyObject *resultobj;
17555 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17556 int arg2 ;
17557 wxString result;
17558 PyObject * obj0 = 0 ;
17559 PyObject * obj1 = 0 ;
17560 char *kwnames[] = {
17561 (char *) "self",(char *) "id", NULL
17562 };
17563
17564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17567 arg2 = (int) SWIG_AsInt(obj1);
17568 if (PyErr_Occurred()) SWIG_fail;
17569 {
17570 PyThreadState* __tstate = wxPyBeginAllowThreads();
17571 result = (arg1)->GetToolShortHelp(arg2);
17572
17573 wxPyEndAllowThreads(__tstate);
17574 if (PyErr_Occurred()) SWIG_fail;
17575 }
17576 {
17577 #if wxUSE_UNICODE
17578 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17579 #else
17580 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17581 #endif
17582 }
17583 return resultobj;
17584 fail:
17585 return NULL;
17586 }
17587
17588
17589 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17590 PyObject *resultobj;
17591 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17592 int arg2 ;
17593 wxString *arg3 = 0 ;
17594 bool temp3 = False ;
17595 PyObject * obj0 = 0 ;
17596 PyObject * obj1 = 0 ;
17597 PyObject * obj2 = 0 ;
17598 char *kwnames[] = {
17599 (char *) "self",(char *) "id",(char *) "helpString", NULL
17600 };
17601
17602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17605 arg2 = (int) SWIG_AsInt(obj1);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 {
17608 arg3 = wxString_in_helper(obj2);
17609 if (arg3 == NULL) SWIG_fail;
17610 temp3 = True;
17611 }
17612 {
17613 PyThreadState* __tstate = wxPyBeginAllowThreads();
17614 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
17615
17616 wxPyEndAllowThreads(__tstate);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 }
17619 Py_INCREF(Py_None); resultobj = Py_None;
17620 {
17621 if (temp3)
17622 delete arg3;
17623 }
17624 return resultobj;
17625 fail:
17626 {
17627 if (temp3)
17628 delete arg3;
17629 }
17630 return NULL;
17631 }
17632
17633
17634 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17635 PyObject *resultobj;
17636 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17637 int arg2 ;
17638 wxString result;
17639 PyObject * obj0 = 0 ;
17640 PyObject * obj1 = 0 ;
17641 char *kwnames[] = {
17642 (char *) "self",(char *) "id", NULL
17643 };
17644
17645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
17646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17648 arg2 = (int) SWIG_AsInt(obj1);
17649 if (PyErr_Occurred()) SWIG_fail;
17650 {
17651 PyThreadState* __tstate = wxPyBeginAllowThreads();
17652 result = (arg1)->GetToolLongHelp(arg2);
17653
17654 wxPyEndAllowThreads(__tstate);
17655 if (PyErr_Occurred()) SWIG_fail;
17656 }
17657 {
17658 #if wxUSE_UNICODE
17659 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17660 #else
17661 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17662 #endif
17663 }
17664 return resultobj;
17665 fail:
17666 return NULL;
17667 }
17668
17669
17670 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
17671 PyObject *resultobj;
17672 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17673 int arg2 ;
17674 int arg3 ;
17675 PyObject * obj0 = 0 ;
17676 PyObject * obj1 = 0 ;
17677 PyObject * obj2 = 0 ;
17678 char *kwnames[] = {
17679 (char *) "self",(char *) "x",(char *) "y", NULL
17680 };
17681
17682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
17683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17685 arg2 = (int) SWIG_AsInt(obj1);
17686 if (PyErr_Occurred()) SWIG_fail;
17687 arg3 = (int) SWIG_AsInt(obj2);
17688 if (PyErr_Occurred()) SWIG_fail;
17689 {
17690 PyThreadState* __tstate = wxPyBeginAllowThreads();
17691 (arg1)->SetMargins(arg2,arg3);
17692
17693 wxPyEndAllowThreads(__tstate);
17694 if (PyErr_Occurred()) SWIG_fail;
17695 }
17696 Py_INCREF(Py_None); resultobj = Py_None;
17697 return resultobj;
17698 fail:
17699 return NULL;
17700 }
17701
17702
17703 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17704 PyObject *resultobj;
17705 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17706 wxSize *arg2 = 0 ;
17707 wxSize temp2 ;
17708 PyObject * obj0 = 0 ;
17709 PyObject * obj1 = 0 ;
17710 char *kwnames[] = {
17711 (char *) "self",(char *) "size", NULL
17712 };
17713
17714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
17715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17717 {
17718 arg2 = &temp2;
17719 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17720 }
17721 {
17722 PyThreadState* __tstate = wxPyBeginAllowThreads();
17723 (arg1)->SetMargins((wxSize const &)*arg2);
17724
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 Py_INCREF(Py_None); resultobj = Py_None;
17729 return resultobj;
17730 fail:
17731 return NULL;
17732 }
17733
17734
17735 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj;
17737 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17738 int arg2 ;
17739 PyObject * obj0 = 0 ;
17740 PyObject * obj1 = 0 ;
17741 char *kwnames[] = {
17742 (char *) "self",(char *) "packing", NULL
17743 };
17744
17745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
17746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17748 arg2 = (int) SWIG_AsInt(obj1);
17749 if (PyErr_Occurred()) SWIG_fail;
17750 {
17751 PyThreadState* __tstate = wxPyBeginAllowThreads();
17752 (arg1)->SetToolPacking(arg2);
17753
17754 wxPyEndAllowThreads(__tstate);
17755 if (PyErr_Occurred()) SWIG_fail;
17756 }
17757 Py_INCREF(Py_None); resultobj = Py_None;
17758 return resultobj;
17759 fail:
17760 return NULL;
17761 }
17762
17763
17764 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17765 PyObject *resultobj;
17766 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17767 int arg2 ;
17768 PyObject * obj0 = 0 ;
17769 PyObject * obj1 = 0 ;
17770 char *kwnames[] = {
17771 (char *) "self",(char *) "separation", NULL
17772 };
17773
17774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
17775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17777 arg2 = (int) SWIG_AsInt(obj1);
17778 if (PyErr_Occurred()) SWIG_fail;
17779 {
17780 PyThreadState* __tstate = wxPyBeginAllowThreads();
17781 (arg1)->SetToolSeparation(arg2);
17782
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 Py_INCREF(Py_None); resultobj = Py_None;
17787 return resultobj;
17788 fail:
17789 return NULL;
17790 }
17791
17792
17793 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17794 PyObject *resultobj;
17795 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17796 wxSize result;
17797 PyObject * obj0 = 0 ;
17798 char *kwnames[] = {
17799 (char *) "self", NULL
17800 };
17801
17802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
17803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
17807 result = (arg1)->GetToolMargins();
17808
17809 wxPyEndAllowThreads(__tstate);
17810 if (PyErr_Occurred()) SWIG_fail;
17811 }
17812 {
17813 wxSize * resultptr;
17814 resultptr = new wxSize((wxSize &) result);
17815 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17816 }
17817 return resultobj;
17818 fail:
17819 return NULL;
17820 }
17821
17822
17823 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17824 PyObject *resultobj;
17825 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17826 wxSize result;
17827 PyObject * obj0 = 0 ;
17828 char *kwnames[] = {
17829 (char *) "self", NULL
17830 };
17831
17832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
17833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17835 {
17836 PyThreadState* __tstate = wxPyBeginAllowThreads();
17837 result = (arg1)->GetMargins();
17838
17839 wxPyEndAllowThreads(__tstate);
17840 if (PyErr_Occurred()) SWIG_fail;
17841 }
17842 {
17843 wxSize * resultptr;
17844 resultptr = new wxSize((wxSize &) result);
17845 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17846 }
17847 return resultobj;
17848 fail:
17849 return NULL;
17850 }
17851
17852
17853 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17854 PyObject *resultobj;
17855 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17856 int result;
17857 PyObject * obj0 = 0 ;
17858 char *kwnames[] = {
17859 (char *) "self", NULL
17860 };
17861
17862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
17863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17865 {
17866 PyThreadState* __tstate = wxPyBeginAllowThreads();
17867 result = (int)(arg1)->GetToolPacking();
17868
17869 wxPyEndAllowThreads(__tstate);
17870 if (PyErr_Occurred()) SWIG_fail;
17871 }
17872 resultobj = SWIG_FromInt((int)result);
17873 return resultobj;
17874 fail:
17875 return NULL;
17876 }
17877
17878
17879 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17880 PyObject *resultobj;
17881 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17882 int result;
17883 PyObject * obj0 = 0 ;
17884 char *kwnames[] = {
17885 (char *) "self", NULL
17886 };
17887
17888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
17889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17891 {
17892 PyThreadState* __tstate = wxPyBeginAllowThreads();
17893 result = (int)(arg1)->GetToolSeparation();
17894
17895 wxPyEndAllowThreads(__tstate);
17896 if (PyErr_Occurred()) SWIG_fail;
17897 }
17898 resultobj = SWIG_FromInt((int)result);
17899 return resultobj;
17900 fail:
17901 return NULL;
17902 }
17903
17904
17905 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17906 PyObject *resultobj;
17907 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17908 int arg2 ;
17909 PyObject * obj0 = 0 ;
17910 PyObject * obj1 = 0 ;
17911 char *kwnames[] = {
17912 (char *) "self",(char *) "nRows", NULL
17913 };
17914
17915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
17916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17918 arg2 = (int) SWIG_AsInt(obj1);
17919 if (PyErr_Occurred()) SWIG_fail;
17920 {
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 (arg1)->SetRows(arg2);
17923
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 Py_INCREF(Py_None); resultobj = Py_None;
17928 return resultobj;
17929 fail:
17930 return NULL;
17931 }
17932
17933
17934 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17935 PyObject *resultobj;
17936 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17937 int arg2 ;
17938 int arg3 ;
17939 PyObject * obj0 = 0 ;
17940 PyObject * obj1 = 0 ;
17941 PyObject * obj2 = 0 ;
17942 char *kwnames[] = {
17943 (char *) "self",(char *) "rows",(char *) "cols", NULL
17944 };
17945
17946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
17947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17949 arg2 = (int) SWIG_AsInt(obj1);
17950 if (PyErr_Occurred()) SWIG_fail;
17951 arg3 = (int) SWIG_AsInt(obj2);
17952 if (PyErr_Occurred()) SWIG_fail;
17953 {
17954 PyThreadState* __tstate = wxPyBeginAllowThreads();
17955 (arg1)->SetMaxRowsCols(arg2,arg3);
17956
17957 wxPyEndAllowThreads(__tstate);
17958 if (PyErr_Occurred()) SWIG_fail;
17959 }
17960 Py_INCREF(Py_None); resultobj = Py_None;
17961 return resultobj;
17962 fail:
17963 return NULL;
17964 }
17965
17966
17967 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17968 PyObject *resultobj;
17969 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17970 int result;
17971 PyObject * obj0 = 0 ;
17972 char *kwnames[] = {
17973 (char *) "self", NULL
17974 };
17975
17976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
17977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17979 {
17980 PyThreadState* __tstate = wxPyBeginAllowThreads();
17981 result = (int)(arg1)->GetMaxRows();
17982
17983 wxPyEndAllowThreads(__tstate);
17984 if (PyErr_Occurred()) SWIG_fail;
17985 }
17986 resultobj = SWIG_FromInt((int)result);
17987 return resultobj;
17988 fail:
17989 return NULL;
17990 }
17991
17992
17993 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17994 PyObject *resultobj;
17995 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17996 int result;
17997 PyObject * obj0 = 0 ;
17998 char *kwnames[] = {
17999 (char *) "self", NULL
18000 };
18001
18002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18005 {
18006 PyThreadState* __tstate = wxPyBeginAllowThreads();
18007 result = (int)(arg1)->GetMaxCols();
18008
18009 wxPyEndAllowThreads(__tstate);
18010 if (PyErr_Occurred()) SWIG_fail;
18011 }
18012 resultobj = SWIG_FromInt((int)result);
18013 return resultobj;
18014 fail:
18015 return NULL;
18016 }
18017
18018
18019 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18020 PyObject *resultobj;
18021 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18022 wxSize *arg2 = 0 ;
18023 wxSize temp2 ;
18024 PyObject * obj0 = 0 ;
18025 PyObject * obj1 = 0 ;
18026 char *kwnames[] = {
18027 (char *) "self",(char *) "size", NULL
18028 };
18029
18030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18033 {
18034 arg2 = &temp2;
18035 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18036 }
18037 {
18038 PyThreadState* __tstate = wxPyBeginAllowThreads();
18039 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18040
18041 wxPyEndAllowThreads(__tstate);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 Py_INCREF(Py_None); resultobj = Py_None;
18045 return resultobj;
18046 fail:
18047 return NULL;
18048 }
18049
18050
18051 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18052 PyObject *resultobj;
18053 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18054 wxSize result;
18055 PyObject * obj0 = 0 ;
18056 char *kwnames[] = {
18057 (char *) "self", NULL
18058 };
18059
18060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18063 {
18064 PyThreadState* __tstate = wxPyBeginAllowThreads();
18065 result = (arg1)->GetToolBitmapSize();
18066
18067 wxPyEndAllowThreads(__tstate);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 }
18070 {
18071 wxSize * resultptr;
18072 resultptr = new wxSize((wxSize &) result);
18073 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18074 }
18075 return resultobj;
18076 fail:
18077 return NULL;
18078 }
18079
18080
18081 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18082 PyObject *resultobj;
18083 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18084 wxSize result;
18085 PyObject * obj0 = 0 ;
18086 char *kwnames[] = {
18087 (char *) "self", NULL
18088 };
18089
18090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18093 {
18094 PyThreadState* __tstate = wxPyBeginAllowThreads();
18095 result = (arg1)->GetToolSize();
18096
18097 wxPyEndAllowThreads(__tstate);
18098 if (PyErr_Occurred()) SWIG_fail;
18099 }
18100 {
18101 wxSize * resultptr;
18102 resultptr = new wxSize((wxSize &) result);
18103 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18104 }
18105 return resultobj;
18106 fail:
18107 return NULL;
18108 }
18109
18110
18111 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18112 PyObject *resultobj;
18113 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18114 int arg2 ;
18115 int arg3 ;
18116 wxToolBarToolBase *result;
18117 PyObject * obj0 = 0 ;
18118 PyObject * obj1 = 0 ;
18119 PyObject * obj2 = 0 ;
18120 char *kwnames[] = {
18121 (char *) "self",(char *) "x",(char *) "y", NULL
18122 };
18123
18124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18127 arg2 = (int) SWIG_AsInt(obj1);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 arg3 = (int) SWIG_AsInt(obj2);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 {
18132 PyThreadState* __tstate = wxPyBeginAllowThreads();
18133 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18134
18135 wxPyEndAllowThreads(__tstate);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 }
18138 {
18139 resultobj = wxPyMake_wxObject(result);
18140 }
18141 return resultobj;
18142 fail:
18143 return NULL;
18144 }
18145
18146
18147 static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
18148 PyObject *resultobj;
18149 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18150 int arg2 ;
18151 wxToolBarToolBase *result;
18152 PyObject * obj0 = 0 ;
18153 PyObject * obj1 = 0 ;
18154 char *kwnames[] = {
18155 (char *) "self",(char *) "toolid", NULL
18156 };
18157
18158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18161 arg2 = (int) SWIG_AsInt(obj1);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 {
18164 PyThreadState* __tstate = wxPyBeginAllowThreads();
18165 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18166
18167 wxPyEndAllowThreads(__tstate);
18168 if (PyErr_Occurred()) SWIG_fail;
18169 }
18170 {
18171 resultobj = wxPyMake_wxObject(result);
18172 }
18173 return resultobj;
18174 fail:
18175 return NULL;
18176 }
18177
18178
18179 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
18180 PyObject *resultobj;
18181 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18182 bool result;
18183 PyObject * obj0 = 0 ;
18184 char *kwnames[] = {
18185 (char *) "self", NULL
18186 };
18187
18188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18191 {
18192 PyThreadState* __tstate = wxPyBeginAllowThreads();
18193 result = (bool)(arg1)->IsVertical();
18194
18195 wxPyEndAllowThreads(__tstate);
18196 if (PyErr_Occurred()) SWIG_fail;
18197 }
18198 {
18199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18200 }
18201 return resultobj;
18202 fail:
18203 return NULL;
18204 }
18205
18206
18207 static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
18208 PyObject *obj;
18209 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18210 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18211 Py_INCREF(obj);
18212 return Py_BuildValue((char *)"");
18213 }
18214 static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18215 PyObject *resultobj;
18216 wxWindow *arg1 = (wxWindow *) 0 ;
18217 int arg2 ;
18218 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18219 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18220 wxSize const &arg4_defvalue = wxDefaultSize ;
18221 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18222 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18223 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18224 wxString *arg6 = (wxString *) &arg6_defvalue ;
18225 wxToolBar *result;
18226 wxPoint temp3 ;
18227 wxSize temp4 ;
18228 bool temp6 = False ;
18229 PyObject * obj0 = 0 ;
18230 PyObject * obj1 = 0 ;
18231 PyObject * obj2 = 0 ;
18232 PyObject * obj3 = 0 ;
18233 PyObject * obj4 = 0 ;
18234 PyObject * obj5 = 0 ;
18235 char *kwnames[] = {
18236 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18237 };
18238
18239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18242 arg2 = (int) SWIG_AsInt(obj1);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 if (obj2) {
18245 {
18246 arg3 = &temp3;
18247 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18248 }
18249 }
18250 if (obj3) {
18251 {
18252 arg4 = &temp4;
18253 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18254 }
18255 }
18256 if (obj4) {
18257 arg5 = (long) SWIG_AsLong(obj4);
18258 if (PyErr_Occurred()) SWIG_fail;
18259 }
18260 if (obj5) {
18261 {
18262 arg6 = wxString_in_helper(obj5);
18263 if (arg6 == NULL) SWIG_fail;
18264 temp6 = True;
18265 }
18266 }
18267 {
18268 PyThreadState* __tstate = wxPyBeginAllowThreads();
18269 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18270
18271 wxPyEndAllowThreads(__tstate);
18272 if (PyErr_Occurred()) SWIG_fail;
18273 }
18274 {
18275 resultobj = wxPyMake_wxObject(result);
18276 }
18277 {
18278 if (temp6)
18279 delete arg6;
18280 }
18281 return resultobj;
18282 fail:
18283 {
18284 if (temp6)
18285 delete arg6;
18286 }
18287 return NULL;
18288 }
18289
18290
18291 static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18292 PyObject *resultobj;
18293 wxToolBar *result;
18294 char *kwnames[] = {
18295 NULL
18296 };
18297
18298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 result = (wxToolBar *)new wxToolBar();
18302
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 {
18307 resultobj = wxPyMake_wxObject(result);
18308 }
18309 return resultobj;
18310 fail:
18311 return NULL;
18312 }
18313
18314
18315 static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
18316 PyObject *resultobj;
18317 wxToolBar *arg1 = (wxToolBar *) 0 ;
18318 wxWindow *arg2 = (wxWindow *) 0 ;
18319 int arg3 ;
18320 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18321 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18322 wxSize const &arg5_defvalue = wxDefaultSize ;
18323 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18324 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18325 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18326 wxString *arg7 = (wxString *) &arg7_defvalue ;
18327 bool result;
18328 wxPoint temp4 ;
18329 wxSize temp5 ;
18330 bool temp7 = False ;
18331 PyObject * obj0 = 0 ;
18332 PyObject * obj1 = 0 ;
18333 PyObject * obj2 = 0 ;
18334 PyObject * obj3 = 0 ;
18335 PyObject * obj4 = 0 ;
18336 PyObject * obj5 = 0 ;
18337 PyObject * obj6 = 0 ;
18338 char *kwnames[] = {
18339 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18340 };
18341
18342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18345 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18347 arg3 = (int) SWIG_AsInt(obj2);
18348 if (PyErr_Occurred()) SWIG_fail;
18349 if (obj3) {
18350 {
18351 arg4 = &temp4;
18352 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18353 }
18354 }
18355 if (obj4) {
18356 {
18357 arg5 = &temp5;
18358 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18359 }
18360 }
18361 if (obj5) {
18362 arg6 = (long) SWIG_AsLong(obj5);
18363 if (PyErr_Occurred()) SWIG_fail;
18364 }
18365 if (obj6) {
18366 {
18367 arg7 = wxString_in_helper(obj6);
18368 if (arg7 == NULL) SWIG_fail;
18369 temp7 = True;
18370 }
18371 }
18372 {
18373 PyThreadState* __tstate = wxPyBeginAllowThreads();
18374 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18375
18376 wxPyEndAllowThreads(__tstate);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 }
18379 {
18380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18381 }
18382 {
18383 if (temp7)
18384 delete arg7;
18385 }
18386 return resultobj;
18387 fail:
18388 {
18389 if (temp7)
18390 delete arg7;
18391 }
18392 return NULL;
18393 }
18394
18395
18396 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18397 PyObject *resultobj;
18398 wxToolBar *arg1 = (wxToolBar *) 0 ;
18399 int arg2 ;
18400 int arg3 ;
18401 wxToolBarToolBase *result;
18402 PyObject * obj0 = 0 ;
18403 PyObject * obj1 = 0 ;
18404 PyObject * obj2 = 0 ;
18405 char *kwnames[] = {
18406 (char *) "self",(char *) "x",(char *) "y", NULL
18407 };
18408
18409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18412 arg2 = (int) SWIG_AsInt(obj1);
18413 if (PyErr_Occurred()) SWIG_fail;
18414 arg3 = (int) SWIG_AsInt(obj2);
18415 if (PyErr_Occurred()) SWIG_fail;
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18419
18420 wxPyEndAllowThreads(__tstate);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
18423 {
18424 resultobj = wxPyMake_wxObject(result);
18425 }
18426 return resultobj;
18427 fail:
18428 return NULL;
18429 }
18430
18431
18432 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18433 PyObject *resultobj;
18434 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18435 wxVisualAttributes result;
18436 PyObject * obj0 = 0 ;
18437 char *kwnames[] = {
18438 (char *) "variant", NULL
18439 };
18440
18441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18442 if (obj0) {
18443 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
18444 if (PyErr_Occurred()) SWIG_fail;
18445 }
18446 {
18447 PyThreadState* __tstate = wxPyBeginAllowThreads();
18448 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18449
18450 wxPyEndAllowThreads(__tstate);
18451 if (PyErr_Occurred()) SWIG_fail;
18452 }
18453 {
18454 wxVisualAttributes * resultptr;
18455 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18456 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18457 }
18458 return resultobj;
18459 fail:
18460 return NULL;
18461 }
18462
18463
18464 static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
18465 PyObject *obj;
18466 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18467 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18468 Py_INCREF(obj);
18469 return Py_BuildValue((char *)"");
18470 }
18471 static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
18472 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18473 return 1;
18474 }
18475
18476
18477 static PyObject *_wrap_ListCtrlNameStr_get() {
18478 PyObject *pyobj;
18479
18480 {
18481 #if wxUSE_UNICODE
18482 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18483 #else
18484 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18485 #endif
18486 }
18487 return pyobj;
18488 }
18489
18490
18491 static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
18492 PyObject *resultobj;
18493 wxColour const &arg1_defvalue = wxNullColour ;
18494 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18495 wxColour const &arg2_defvalue = wxNullColour ;
18496 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18497 wxFont const &arg3_defvalue = wxNullFont ;
18498 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18499 wxListItemAttr *result;
18500 wxColour temp1 ;
18501 wxColour temp2 ;
18502 PyObject * obj0 = 0 ;
18503 PyObject * obj1 = 0 ;
18504 PyObject * obj2 = 0 ;
18505 char *kwnames[] = {
18506 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18507 };
18508
18509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18510 if (obj0) {
18511 {
18512 arg1 = &temp1;
18513 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18514 }
18515 }
18516 if (obj1) {
18517 {
18518 arg2 = &temp2;
18519 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18520 }
18521 }
18522 if (obj2) {
18523 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18524 SWIG_POINTER_EXCEPTION | 0)) == -1)
18525 SWIG_fail;
18526 if (arg3 == NULL) {
18527 PyErr_SetString(PyExc_TypeError,"null reference");
18528 SWIG_fail;
18529 }
18530 }
18531 {
18532 PyThreadState* __tstate = wxPyBeginAllowThreads();
18533 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18534
18535 wxPyEndAllowThreads(__tstate);
18536 if (PyErr_Occurred()) SWIG_fail;
18537 }
18538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18539 return resultobj;
18540 fail:
18541 return NULL;
18542 }
18543
18544
18545 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18546 PyObject *resultobj;
18547 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18548 wxColour *arg2 = 0 ;
18549 wxColour temp2 ;
18550 PyObject * obj0 = 0 ;
18551 PyObject * obj1 = 0 ;
18552 char *kwnames[] = {
18553 (char *) "self",(char *) "colText", NULL
18554 };
18555
18556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18559 {
18560 arg2 = &temp2;
18561 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18562 }
18563 {
18564 PyThreadState* __tstate = wxPyBeginAllowThreads();
18565 (arg1)->SetTextColour((wxColour const &)*arg2);
18566
18567 wxPyEndAllowThreads(__tstate);
18568 if (PyErr_Occurred()) SWIG_fail;
18569 }
18570 Py_INCREF(Py_None); resultobj = Py_None;
18571 return resultobj;
18572 fail:
18573 return NULL;
18574 }
18575
18576
18577 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18578 PyObject *resultobj;
18579 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18580 wxColour *arg2 = 0 ;
18581 wxColour temp2 ;
18582 PyObject * obj0 = 0 ;
18583 PyObject * obj1 = 0 ;
18584 char *kwnames[] = {
18585 (char *) "self",(char *) "colBack", NULL
18586 };
18587
18588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18591 {
18592 arg2 = &temp2;
18593 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18594 }
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18598
18599 wxPyEndAllowThreads(__tstate);
18600 if (PyErr_Occurred()) SWIG_fail;
18601 }
18602 Py_INCREF(Py_None); resultobj = Py_None;
18603 return resultobj;
18604 fail:
18605 return NULL;
18606 }
18607
18608
18609 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18610 PyObject *resultobj;
18611 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18612 wxFont *arg2 = 0 ;
18613 PyObject * obj0 = 0 ;
18614 PyObject * obj1 = 0 ;
18615 char *kwnames[] = {
18616 (char *) "self",(char *) "font", NULL
18617 };
18618
18619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
18620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18623 SWIG_POINTER_EXCEPTION | 0)) == -1)
18624 SWIG_fail;
18625 if (arg2 == NULL) {
18626 PyErr_SetString(PyExc_TypeError,"null reference");
18627 SWIG_fail;
18628 }
18629 {
18630 PyThreadState* __tstate = wxPyBeginAllowThreads();
18631 (arg1)->SetFont((wxFont const &)*arg2);
18632
18633 wxPyEndAllowThreads(__tstate);
18634 if (PyErr_Occurred()) SWIG_fail;
18635 }
18636 Py_INCREF(Py_None); resultobj = Py_None;
18637 return resultobj;
18638 fail:
18639 return NULL;
18640 }
18641
18642
18643 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18644 PyObject *resultobj;
18645 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18646 bool result;
18647 PyObject * obj0 = 0 ;
18648 char *kwnames[] = {
18649 (char *) "self", NULL
18650 };
18651
18652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
18653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18655 {
18656 PyThreadState* __tstate = wxPyBeginAllowThreads();
18657 result = (bool)(arg1)->HasTextColour();
18658
18659 wxPyEndAllowThreads(__tstate);
18660 if (PyErr_Occurred()) SWIG_fail;
18661 }
18662 {
18663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18664 }
18665 return resultobj;
18666 fail:
18667 return NULL;
18668 }
18669
18670
18671 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18672 PyObject *resultobj;
18673 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18674 bool result;
18675 PyObject * obj0 = 0 ;
18676 char *kwnames[] = {
18677 (char *) "self", NULL
18678 };
18679
18680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
18681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18683 {
18684 PyThreadState* __tstate = wxPyBeginAllowThreads();
18685 result = (bool)(arg1)->HasBackgroundColour();
18686
18687 wxPyEndAllowThreads(__tstate);
18688 if (PyErr_Occurred()) SWIG_fail;
18689 }
18690 {
18691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18692 }
18693 return resultobj;
18694 fail:
18695 return NULL;
18696 }
18697
18698
18699 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18700 PyObject *resultobj;
18701 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18702 bool result;
18703 PyObject * obj0 = 0 ;
18704 char *kwnames[] = {
18705 (char *) "self", NULL
18706 };
18707
18708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
18709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18711 {
18712 PyThreadState* __tstate = wxPyBeginAllowThreads();
18713 result = (bool)(arg1)->HasFont();
18714
18715 wxPyEndAllowThreads(__tstate);
18716 if (PyErr_Occurred()) SWIG_fail;
18717 }
18718 {
18719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18720 }
18721 return resultobj;
18722 fail:
18723 return NULL;
18724 }
18725
18726
18727 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18728 PyObject *resultobj;
18729 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18730 wxColour result;
18731 PyObject * obj0 = 0 ;
18732 char *kwnames[] = {
18733 (char *) "self", NULL
18734 };
18735
18736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
18737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18739 {
18740 PyThreadState* __tstate = wxPyBeginAllowThreads();
18741 result = (arg1)->GetTextColour();
18742
18743 wxPyEndAllowThreads(__tstate);
18744 if (PyErr_Occurred()) SWIG_fail;
18745 }
18746 {
18747 wxColour * resultptr;
18748 resultptr = new wxColour((wxColour &) result);
18749 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18750 }
18751 return resultobj;
18752 fail:
18753 return NULL;
18754 }
18755
18756
18757 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18758 PyObject *resultobj;
18759 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18760 wxColour result;
18761 PyObject * obj0 = 0 ;
18762 char *kwnames[] = {
18763 (char *) "self", NULL
18764 };
18765
18766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
18767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18769 {
18770 PyThreadState* __tstate = wxPyBeginAllowThreads();
18771 result = (arg1)->GetBackgroundColour();
18772
18773 wxPyEndAllowThreads(__tstate);
18774 if (PyErr_Occurred()) SWIG_fail;
18775 }
18776 {
18777 wxColour * resultptr;
18778 resultptr = new wxColour((wxColour &) result);
18779 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18780 }
18781 return resultobj;
18782 fail:
18783 return NULL;
18784 }
18785
18786
18787 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18788 PyObject *resultobj;
18789 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18790 wxFont result;
18791 PyObject * obj0 = 0 ;
18792 char *kwnames[] = {
18793 (char *) "self", NULL
18794 };
18795
18796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
18797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18799 {
18800 PyThreadState* __tstate = wxPyBeginAllowThreads();
18801 result = (arg1)->GetFont();
18802
18803 wxPyEndAllowThreads(__tstate);
18804 if (PyErr_Occurred()) SWIG_fail;
18805 }
18806 {
18807 wxFont * resultptr;
18808 resultptr = new wxFont((wxFont &) result);
18809 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18810 }
18811 return resultobj;
18812 fail:
18813 return NULL;
18814 }
18815
18816
18817 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
18818 PyObject *resultobj;
18819 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18820 PyObject * obj0 = 0 ;
18821 char *kwnames[] = {
18822 (char *) "self", NULL
18823 };
18824
18825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
18826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18828 {
18829 PyThreadState* __tstate = wxPyBeginAllowThreads();
18830 wxListItemAttr_Destroy(arg1);
18831
18832 wxPyEndAllowThreads(__tstate);
18833 if (PyErr_Occurred()) SWIG_fail;
18834 }
18835 Py_INCREF(Py_None); resultobj = Py_None;
18836 return resultobj;
18837 fail:
18838 return NULL;
18839 }
18840
18841
18842 static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
18843 PyObject *obj;
18844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18845 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
18846 Py_INCREF(obj);
18847 return Py_BuildValue((char *)"");
18848 }
18849 static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18850 PyObject *resultobj;
18851 wxListItem *result;
18852 char *kwnames[] = {
18853 NULL
18854 };
18855
18856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
18857 {
18858 PyThreadState* __tstate = wxPyBeginAllowThreads();
18859 result = (wxListItem *)new wxListItem();
18860
18861 wxPyEndAllowThreads(__tstate);
18862 if (PyErr_Occurred()) SWIG_fail;
18863 }
18864 {
18865 resultobj = wxPyMake_wxObject(result);
18866 }
18867 return resultobj;
18868 fail:
18869 return NULL;
18870 }
18871
18872
18873 static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18874 PyObject *resultobj;
18875 wxListItem *arg1 = (wxListItem *) 0 ;
18876 PyObject * obj0 = 0 ;
18877 char *kwnames[] = {
18878 (char *) "self", NULL
18879 };
18880
18881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
18882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18884 {
18885 PyThreadState* __tstate = wxPyBeginAllowThreads();
18886 delete arg1;
18887
18888 wxPyEndAllowThreads(__tstate);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 Py_INCREF(Py_None); resultobj = Py_None;
18892 return resultobj;
18893 fail:
18894 return NULL;
18895 }
18896
18897
18898 static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
18899 PyObject *resultobj;
18900 wxListItem *arg1 = (wxListItem *) 0 ;
18901 PyObject * obj0 = 0 ;
18902 char *kwnames[] = {
18903 (char *) "self", NULL
18904 };
18905
18906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
18907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18909 {
18910 PyThreadState* __tstate = wxPyBeginAllowThreads();
18911 (arg1)->Clear();
18912
18913 wxPyEndAllowThreads(__tstate);
18914 if (PyErr_Occurred()) SWIG_fail;
18915 }
18916 Py_INCREF(Py_None); resultobj = Py_None;
18917 return resultobj;
18918 fail:
18919 return NULL;
18920 }
18921
18922
18923 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18924 PyObject *resultobj;
18925 wxListItem *arg1 = (wxListItem *) 0 ;
18926 PyObject * obj0 = 0 ;
18927 char *kwnames[] = {
18928 (char *) "self", NULL
18929 };
18930
18931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
18932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18934 {
18935 PyThreadState* __tstate = wxPyBeginAllowThreads();
18936 (arg1)->ClearAttributes();
18937
18938 wxPyEndAllowThreads(__tstate);
18939 if (PyErr_Occurred()) SWIG_fail;
18940 }
18941 Py_INCREF(Py_None); resultobj = Py_None;
18942 return resultobj;
18943 fail:
18944 return NULL;
18945 }
18946
18947
18948 static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18949 PyObject *resultobj;
18950 wxListItem *arg1 = (wxListItem *) 0 ;
18951 long arg2 ;
18952 PyObject * obj0 = 0 ;
18953 PyObject * obj1 = 0 ;
18954 char *kwnames[] = {
18955 (char *) "self",(char *) "mask", NULL
18956 };
18957
18958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
18959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18961 arg2 = (long) SWIG_AsLong(obj1);
18962 if (PyErr_Occurred()) SWIG_fail;
18963 {
18964 PyThreadState* __tstate = wxPyBeginAllowThreads();
18965 (arg1)->SetMask(arg2);
18966
18967 wxPyEndAllowThreads(__tstate);
18968 if (PyErr_Occurred()) SWIG_fail;
18969 }
18970 Py_INCREF(Py_None); resultobj = Py_None;
18971 return resultobj;
18972 fail:
18973 return NULL;
18974 }
18975
18976
18977 static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18978 PyObject *resultobj;
18979 wxListItem *arg1 = (wxListItem *) 0 ;
18980 long arg2 ;
18981 PyObject * obj0 = 0 ;
18982 PyObject * obj1 = 0 ;
18983 char *kwnames[] = {
18984 (char *) "self",(char *) "id", NULL
18985 };
18986
18987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
18988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18990 arg2 = (long) SWIG_AsLong(obj1);
18991 if (PyErr_Occurred()) SWIG_fail;
18992 {
18993 PyThreadState* __tstate = wxPyBeginAllowThreads();
18994 (arg1)->SetId(arg2);
18995
18996 wxPyEndAllowThreads(__tstate);
18997 if (PyErr_Occurred()) SWIG_fail;
18998 }
18999 Py_INCREF(Py_None); resultobj = Py_None;
19000 return resultobj;
19001 fail:
19002 return NULL;
19003 }
19004
19005
19006 static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19007 PyObject *resultobj;
19008 wxListItem *arg1 = (wxListItem *) 0 ;
19009 int arg2 ;
19010 PyObject * obj0 = 0 ;
19011 PyObject * obj1 = 0 ;
19012 char *kwnames[] = {
19013 (char *) "self",(char *) "col", NULL
19014 };
19015
19016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19019 arg2 = (int) SWIG_AsInt(obj1);
19020 if (PyErr_Occurred()) SWIG_fail;
19021 {
19022 PyThreadState* __tstate = wxPyBeginAllowThreads();
19023 (arg1)->SetColumn(arg2);
19024
19025 wxPyEndAllowThreads(__tstate);
19026 if (PyErr_Occurred()) SWIG_fail;
19027 }
19028 Py_INCREF(Py_None); resultobj = Py_None;
19029 return resultobj;
19030 fail:
19031 return NULL;
19032 }
19033
19034
19035 static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19036 PyObject *resultobj;
19037 wxListItem *arg1 = (wxListItem *) 0 ;
19038 long arg2 ;
19039 PyObject * obj0 = 0 ;
19040 PyObject * obj1 = 0 ;
19041 char *kwnames[] = {
19042 (char *) "self",(char *) "state", NULL
19043 };
19044
19045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19048 arg2 = (long) SWIG_AsLong(obj1);
19049 if (PyErr_Occurred()) SWIG_fail;
19050 {
19051 PyThreadState* __tstate = wxPyBeginAllowThreads();
19052 (arg1)->SetState(arg2);
19053
19054 wxPyEndAllowThreads(__tstate);
19055 if (PyErr_Occurred()) SWIG_fail;
19056 }
19057 Py_INCREF(Py_None); resultobj = Py_None;
19058 return resultobj;
19059 fail:
19060 return NULL;
19061 }
19062
19063
19064 static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19065 PyObject *resultobj;
19066 wxListItem *arg1 = (wxListItem *) 0 ;
19067 long arg2 ;
19068 PyObject * obj0 = 0 ;
19069 PyObject * obj1 = 0 ;
19070 char *kwnames[] = {
19071 (char *) "self",(char *) "stateMask", NULL
19072 };
19073
19074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19077 arg2 = (long) SWIG_AsLong(obj1);
19078 if (PyErr_Occurred()) SWIG_fail;
19079 {
19080 PyThreadState* __tstate = wxPyBeginAllowThreads();
19081 (arg1)->SetStateMask(arg2);
19082
19083 wxPyEndAllowThreads(__tstate);
19084 if (PyErr_Occurred()) SWIG_fail;
19085 }
19086 Py_INCREF(Py_None); resultobj = Py_None;
19087 return resultobj;
19088 fail:
19089 return NULL;
19090 }
19091
19092
19093 static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19094 PyObject *resultobj;
19095 wxListItem *arg1 = (wxListItem *) 0 ;
19096 wxString *arg2 = 0 ;
19097 bool temp2 = False ;
19098 PyObject * obj0 = 0 ;
19099 PyObject * obj1 = 0 ;
19100 char *kwnames[] = {
19101 (char *) "self",(char *) "text", NULL
19102 };
19103
19104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19107 {
19108 arg2 = wxString_in_helper(obj1);
19109 if (arg2 == NULL) SWIG_fail;
19110 temp2 = True;
19111 }
19112 {
19113 PyThreadState* __tstate = wxPyBeginAllowThreads();
19114 (arg1)->SetText((wxString const &)*arg2);
19115
19116 wxPyEndAllowThreads(__tstate);
19117 if (PyErr_Occurred()) SWIG_fail;
19118 }
19119 Py_INCREF(Py_None); resultobj = Py_None;
19120 {
19121 if (temp2)
19122 delete arg2;
19123 }
19124 return resultobj;
19125 fail:
19126 {
19127 if (temp2)
19128 delete arg2;
19129 }
19130 return NULL;
19131 }
19132
19133
19134 static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19135 PyObject *resultobj;
19136 wxListItem *arg1 = (wxListItem *) 0 ;
19137 int arg2 ;
19138 PyObject * obj0 = 0 ;
19139 PyObject * obj1 = 0 ;
19140 char *kwnames[] = {
19141 (char *) "self",(char *) "image", NULL
19142 };
19143
19144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19147 arg2 = (int) SWIG_AsInt(obj1);
19148 if (PyErr_Occurred()) SWIG_fail;
19149 {
19150 PyThreadState* __tstate = wxPyBeginAllowThreads();
19151 (arg1)->SetImage(arg2);
19152
19153 wxPyEndAllowThreads(__tstate);
19154 if (PyErr_Occurred()) SWIG_fail;
19155 }
19156 Py_INCREF(Py_None); resultobj = Py_None;
19157 return resultobj;
19158 fail:
19159 return NULL;
19160 }
19161
19162
19163 static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19164 PyObject *resultobj;
19165 wxListItem *arg1 = (wxListItem *) 0 ;
19166 long arg2 ;
19167 PyObject * obj0 = 0 ;
19168 PyObject * obj1 = 0 ;
19169 char *kwnames[] = {
19170 (char *) "self",(char *) "data", NULL
19171 };
19172
19173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19176 arg2 = (long) SWIG_AsLong(obj1);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 {
19179 PyThreadState* __tstate = wxPyBeginAllowThreads();
19180 (arg1)->SetData(arg2);
19181
19182 wxPyEndAllowThreads(__tstate);
19183 if (PyErr_Occurred()) SWIG_fail;
19184 }
19185 Py_INCREF(Py_None); resultobj = Py_None;
19186 return resultobj;
19187 fail:
19188 return NULL;
19189 }
19190
19191
19192 static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19193 PyObject *resultobj;
19194 wxListItem *arg1 = (wxListItem *) 0 ;
19195 int arg2 ;
19196 PyObject * obj0 = 0 ;
19197 PyObject * obj1 = 0 ;
19198 char *kwnames[] = {
19199 (char *) "self",(char *) "width", NULL
19200 };
19201
19202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19205 arg2 = (int) SWIG_AsInt(obj1);
19206 if (PyErr_Occurred()) SWIG_fail;
19207 {
19208 PyThreadState* __tstate = wxPyBeginAllowThreads();
19209 (arg1)->SetWidth(arg2);
19210
19211 wxPyEndAllowThreads(__tstate);
19212 if (PyErr_Occurred()) SWIG_fail;
19213 }
19214 Py_INCREF(Py_None); resultobj = Py_None;
19215 return resultobj;
19216 fail:
19217 return NULL;
19218 }
19219
19220
19221 static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19222 PyObject *resultobj;
19223 wxListItem *arg1 = (wxListItem *) 0 ;
19224 int arg2 ;
19225 PyObject * obj0 = 0 ;
19226 PyObject * obj1 = 0 ;
19227 char *kwnames[] = {
19228 (char *) "self",(char *) "align", NULL
19229 };
19230
19231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19234 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
19235 if (PyErr_Occurred()) SWIG_fail;
19236 {
19237 PyThreadState* __tstate = wxPyBeginAllowThreads();
19238 (arg1)->SetAlign((wxListColumnFormat )arg2);
19239
19240 wxPyEndAllowThreads(__tstate);
19241 if (PyErr_Occurred()) SWIG_fail;
19242 }
19243 Py_INCREF(Py_None); resultobj = Py_None;
19244 return resultobj;
19245 fail:
19246 return NULL;
19247 }
19248
19249
19250 static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19251 PyObject *resultobj;
19252 wxListItem *arg1 = (wxListItem *) 0 ;
19253 wxColour *arg2 = 0 ;
19254 wxColour temp2 ;
19255 PyObject * obj0 = 0 ;
19256 PyObject * obj1 = 0 ;
19257 char *kwnames[] = {
19258 (char *) "self",(char *) "colText", NULL
19259 };
19260
19261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19264 {
19265 arg2 = &temp2;
19266 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19267 }
19268 {
19269 PyThreadState* __tstate = wxPyBeginAllowThreads();
19270 (arg1)->SetTextColour((wxColour const &)*arg2);
19271
19272 wxPyEndAllowThreads(__tstate);
19273 if (PyErr_Occurred()) SWIG_fail;
19274 }
19275 Py_INCREF(Py_None); resultobj = Py_None;
19276 return resultobj;
19277 fail:
19278 return NULL;
19279 }
19280
19281
19282 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19283 PyObject *resultobj;
19284 wxListItem *arg1 = (wxListItem *) 0 ;
19285 wxColour *arg2 = 0 ;
19286 wxColour temp2 ;
19287 PyObject * obj0 = 0 ;
19288 PyObject * obj1 = 0 ;
19289 char *kwnames[] = {
19290 (char *) "self",(char *) "colBack", NULL
19291 };
19292
19293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19296 {
19297 arg2 = &temp2;
19298 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19299 }
19300 {
19301 PyThreadState* __tstate = wxPyBeginAllowThreads();
19302 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19303
19304 wxPyEndAllowThreads(__tstate);
19305 if (PyErr_Occurred()) SWIG_fail;
19306 }
19307 Py_INCREF(Py_None); resultobj = Py_None;
19308 return resultobj;
19309 fail:
19310 return NULL;
19311 }
19312
19313
19314 static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19315 PyObject *resultobj;
19316 wxListItem *arg1 = (wxListItem *) 0 ;
19317 wxFont *arg2 = 0 ;
19318 PyObject * obj0 = 0 ;
19319 PyObject * obj1 = 0 ;
19320 char *kwnames[] = {
19321 (char *) "self",(char *) "font", NULL
19322 };
19323
19324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19327 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19328 SWIG_POINTER_EXCEPTION | 0)) == -1)
19329 SWIG_fail;
19330 if (arg2 == NULL) {
19331 PyErr_SetString(PyExc_TypeError,"null reference");
19332 SWIG_fail;
19333 }
19334 {
19335 PyThreadState* __tstate = wxPyBeginAllowThreads();
19336 (arg1)->SetFont((wxFont const &)*arg2);
19337
19338 wxPyEndAllowThreads(__tstate);
19339 if (PyErr_Occurred()) SWIG_fail;
19340 }
19341 Py_INCREF(Py_None); resultobj = Py_None;
19342 return resultobj;
19343 fail:
19344 return NULL;
19345 }
19346
19347
19348 static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19349 PyObject *resultobj;
19350 wxListItem *arg1 = (wxListItem *) 0 ;
19351 long result;
19352 PyObject * obj0 = 0 ;
19353 char *kwnames[] = {
19354 (char *) "self", NULL
19355 };
19356
19357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19360 {
19361 PyThreadState* __tstate = wxPyBeginAllowThreads();
19362 result = (long)(arg1)->GetMask();
19363
19364 wxPyEndAllowThreads(__tstate);
19365 if (PyErr_Occurred()) SWIG_fail;
19366 }
19367 resultobj = SWIG_FromLong((long)result);
19368 return resultobj;
19369 fail:
19370 return NULL;
19371 }
19372
19373
19374 static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
19375 PyObject *resultobj;
19376 wxListItem *arg1 = (wxListItem *) 0 ;
19377 long result;
19378 PyObject * obj0 = 0 ;
19379 char *kwnames[] = {
19380 (char *) "self", NULL
19381 };
19382
19383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19386 {
19387 PyThreadState* __tstate = wxPyBeginAllowThreads();
19388 result = (long)(arg1)->GetId();
19389
19390 wxPyEndAllowThreads(__tstate);
19391 if (PyErr_Occurred()) SWIG_fail;
19392 }
19393 resultobj = SWIG_FromLong((long)result);
19394 return resultobj;
19395 fail:
19396 return NULL;
19397 }
19398
19399
19400 static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19401 PyObject *resultobj;
19402 wxListItem *arg1 = (wxListItem *) 0 ;
19403 int result;
19404 PyObject * obj0 = 0 ;
19405 char *kwnames[] = {
19406 (char *) "self", NULL
19407 };
19408
19409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19412 {
19413 PyThreadState* __tstate = wxPyBeginAllowThreads();
19414 result = (int)(arg1)->GetColumn();
19415
19416 wxPyEndAllowThreads(__tstate);
19417 if (PyErr_Occurred()) SWIG_fail;
19418 }
19419 resultobj = SWIG_FromInt((int)result);
19420 return resultobj;
19421 fail:
19422 return NULL;
19423 }
19424
19425
19426 static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19427 PyObject *resultobj;
19428 wxListItem *arg1 = (wxListItem *) 0 ;
19429 long result;
19430 PyObject * obj0 = 0 ;
19431 char *kwnames[] = {
19432 (char *) "self", NULL
19433 };
19434
19435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 result = (long)(arg1)->GetState();
19441
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 resultobj = SWIG_FromLong((long)result);
19446 return resultobj;
19447 fail:
19448 return NULL;
19449 }
19450
19451
19452 static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19453 PyObject *resultobj;
19454 wxListItem *arg1 = (wxListItem *) 0 ;
19455 wxString *result;
19456 PyObject * obj0 = 0 ;
19457 char *kwnames[] = {
19458 (char *) "self", NULL
19459 };
19460
19461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19464 {
19465 PyThreadState* __tstate = wxPyBeginAllowThreads();
19466 {
19467 wxString const &_result_ref = (arg1)->GetText();
19468 result = (wxString *) &_result_ref;
19469 }
19470
19471 wxPyEndAllowThreads(__tstate);
19472 if (PyErr_Occurred()) SWIG_fail;
19473 }
19474 {
19475 #if wxUSE_UNICODE
19476 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19477 #else
19478 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19479 #endif
19480 }
19481 return resultobj;
19482 fail:
19483 return NULL;
19484 }
19485
19486
19487 static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19488 PyObject *resultobj;
19489 wxListItem *arg1 = (wxListItem *) 0 ;
19490 int result;
19491 PyObject * obj0 = 0 ;
19492 char *kwnames[] = {
19493 (char *) "self", NULL
19494 };
19495
19496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19499 {
19500 PyThreadState* __tstate = wxPyBeginAllowThreads();
19501 result = (int)(arg1)->GetImage();
19502
19503 wxPyEndAllowThreads(__tstate);
19504 if (PyErr_Occurred()) SWIG_fail;
19505 }
19506 resultobj = SWIG_FromInt((int)result);
19507 return resultobj;
19508 fail:
19509 return NULL;
19510 }
19511
19512
19513 static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19514 PyObject *resultobj;
19515 wxListItem *arg1 = (wxListItem *) 0 ;
19516 long result;
19517 PyObject * obj0 = 0 ;
19518 char *kwnames[] = {
19519 (char *) "self", NULL
19520 };
19521
19522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19525 {
19526 PyThreadState* __tstate = wxPyBeginAllowThreads();
19527 result = (long)(arg1)->GetData();
19528
19529 wxPyEndAllowThreads(__tstate);
19530 if (PyErr_Occurred()) SWIG_fail;
19531 }
19532 resultobj = SWIG_FromLong((long)result);
19533 return resultobj;
19534 fail:
19535 return NULL;
19536 }
19537
19538
19539 static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19540 PyObject *resultobj;
19541 wxListItem *arg1 = (wxListItem *) 0 ;
19542 int result;
19543 PyObject * obj0 = 0 ;
19544 char *kwnames[] = {
19545 (char *) "self", NULL
19546 };
19547
19548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19551 {
19552 PyThreadState* __tstate = wxPyBeginAllowThreads();
19553 result = (int)(arg1)->GetWidth();
19554
19555 wxPyEndAllowThreads(__tstate);
19556 if (PyErr_Occurred()) SWIG_fail;
19557 }
19558 resultobj = SWIG_FromInt((int)result);
19559 return resultobj;
19560 fail:
19561 return NULL;
19562 }
19563
19564
19565 static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19566 PyObject *resultobj;
19567 wxListItem *arg1 = (wxListItem *) 0 ;
19568 int result;
19569 PyObject * obj0 = 0 ;
19570 char *kwnames[] = {
19571 (char *) "self", NULL
19572 };
19573
19574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
19575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19577 {
19578 PyThreadState* __tstate = wxPyBeginAllowThreads();
19579 result = (int)(arg1)->GetAlign();
19580
19581 wxPyEndAllowThreads(__tstate);
19582 if (PyErr_Occurred()) SWIG_fail;
19583 }
19584 resultobj = SWIG_FromInt((int)result);
19585 return resultobj;
19586 fail:
19587 return NULL;
19588 }
19589
19590
19591 static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19592 PyObject *resultobj;
19593 wxListItem *arg1 = (wxListItem *) 0 ;
19594 wxListItemAttr *result;
19595 PyObject * obj0 = 0 ;
19596 char *kwnames[] = {
19597 (char *) "self", NULL
19598 };
19599
19600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
19601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19603 {
19604 PyThreadState* __tstate = wxPyBeginAllowThreads();
19605 result = (wxListItemAttr *)(arg1)->GetAttributes();
19606
19607 wxPyEndAllowThreads(__tstate);
19608 if (PyErr_Occurred()) SWIG_fail;
19609 }
19610 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
19611 return resultobj;
19612 fail:
19613 return NULL;
19614 }
19615
19616
19617 static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19618 PyObject *resultobj;
19619 wxListItem *arg1 = (wxListItem *) 0 ;
19620 bool result;
19621 PyObject * obj0 = 0 ;
19622 char *kwnames[] = {
19623 (char *) "self", NULL
19624 };
19625
19626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
19627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19629 {
19630 PyThreadState* __tstate = wxPyBeginAllowThreads();
19631 result = (bool)(arg1)->HasAttributes();
19632
19633 wxPyEndAllowThreads(__tstate);
19634 if (PyErr_Occurred()) SWIG_fail;
19635 }
19636 {
19637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19638 }
19639 return resultobj;
19640 fail:
19641 return NULL;
19642 }
19643
19644
19645 static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19646 PyObject *resultobj;
19647 wxListItem *arg1 = (wxListItem *) 0 ;
19648 wxColour result;
19649 PyObject * obj0 = 0 ;
19650 char *kwnames[] = {
19651 (char *) "self", NULL
19652 };
19653
19654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
19655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19657 {
19658 PyThreadState* __tstate = wxPyBeginAllowThreads();
19659 result = ((wxListItem const *)arg1)->GetTextColour();
19660
19661 wxPyEndAllowThreads(__tstate);
19662 if (PyErr_Occurred()) SWIG_fail;
19663 }
19664 {
19665 wxColour * resultptr;
19666 resultptr = new wxColour((wxColour &) result);
19667 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19668 }
19669 return resultobj;
19670 fail:
19671 return NULL;
19672 }
19673
19674
19675 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19676 PyObject *resultobj;
19677 wxListItem *arg1 = (wxListItem *) 0 ;
19678 wxColour result;
19679 PyObject * obj0 = 0 ;
19680 char *kwnames[] = {
19681 (char *) "self", NULL
19682 };
19683
19684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
19685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19687 {
19688 PyThreadState* __tstate = wxPyBeginAllowThreads();
19689 result = ((wxListItem const *)arg1)->GetBackgroundColour();
19690
19691 wxPyEndAllowThreads(__tstate);
19692 if (PyErr_Occurred()) SWIG_fail;
19693 }
19694 {
19695 wxColour * resultptr;
19696 resultptr = new wxColour((wxColour &) result);
19697 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19698 }
19699 return resultobj;
19700 fail:
19701 return NULL;
19702 }
19703
19704
19705 static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19706 PyObject *resultobj;
19707 wxListItem *arg1 = (wxListItem *) 0 ;
19708 wxFont result;
19709 PyObject * obj0 = 0 ;
19710 char *kwnames[] = {
19711 (char *) "self", NULL
19712 };
19713
19714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
19715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 result = ((wxListItem const *)arg1)->GetFont();
19720
19721 wxPyEndAllowThreads(__tstate);
19722 if (PyErr_Occurred()) SWIG_fail;
19723 }
19724 {
19725 wxFont * resultptr;
19726 resultptr = new wxFont((wxFont &) result);
19727 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19728 }
19729 return resultobj;
19730 fail:
19731 return NULL;
19732 }
19733
19734
19735 static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19736 PyObject *resultobj;
19737 wxListItem *arg1 = (wxListItem *) 0 ;
19738 long arg2 ;
19739 PyObject * obj0 = 0 ;
19740 PyObject * obj1 = 0 ;
19741 char *kwnames[] = {
19742 (char *) "self",(char *) "m_mask", NULL
19743 };
19744
19745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
19746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19748 arg2 = (long) SWIG_AsLong(obj1);
19749 if (PyErr_Occurred()) SWIG_fail;
19750 if (arg1) (arg1)->m_mask = arg2;
19751
19752 Py_INCREF(Py_None); resultobj = Py_None;
19753 return resultobj;
19754 fail:
19755 return NULL;
19756 }
19757
19758
19759 static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19760 PyObject *resultobj;
19761 wxListItem *arg1 = (wxListItem *) 0 ;
19762 long result;
19763 PyObject * obj0 = 0 ;
19764 char *kwnames[] = {
19765 (char *) "self", NULL
19766 };
19767
19768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
19769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19771 result = (long) ((arg1)->m_mask);
19772
19773 resultobj = SWIG_FromLong((long)result);
19774 return resultobj;
19775 fail:
19776 return NULL;
19777 }
19778
19779
19780 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19781 PyObject *resultobj;
19782 wxListItem *arg1 = (wxListItem *) 0 ;
19783 long arg2 ;
19784 PyObject * obj0 = 0 ;
19785 PyObject * obj1 = 0 ;
19786 char *kwnames[] = {
19787 (char *) "self",(char *) "m_itemId", NULL
19788 };
19789
19790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
19791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19793 arg2 = (long) SWIG_AsLong(obj1);
19794 if (PyErr_Occurred()) SWIG_fail;
19795 if (arg1) (arg1)->m_itemId = arg2;
19796
19797 Py_INCREF(Py_None); resultobj = Py_None;
19798 return resultobj;
19799 fail:
19800 return NULL;
19801 }
19802
19803
19804 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19805 PyObject *resultobj;
19806 wxListItem *arg1 = (wxListItem *) 0 ;
19807 long result;
19808 PyObject * obj0 = 0 ;
19809 char *kwnames[] = {
19810 (char *) "self", NULL
19811 };
19812
19813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
19814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19816 result = (long) ((arg1)->m_itemId);
19817
19818 resultobj = SWIG_FromLong((long)result);
19819 return resultobj;
19820 fail:
19821 return NULL;
19822 }
19823
19824
19825 static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19826 PyObject *resultobj;
19827 wxListItem *arg1 = (wxListItem *) 0 ;
19828 int arg2 ;
19829 PyObject * obj0 = 0 ;
19830 PyObject * obj1 = 0 ;
19831 char *kwnames[] = {
19832 (char *) "self",(char *) "m_col", NULL
19833 };
19834
19835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19838 arg2 = (int) SWIG_AsInt(obj1);
19839 if (PyErr_Occurred()) SWIG_fail;
19840 if (arg1) (arg1)->m_col = arg2;
19841
19842 Py_INCREF(Py_None); resultobj = Py_None;
19843 return resultobj;
19844 fail:
19845 return NULL;
19846 }
19847
19848
19849 static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19850 PyObject *resultobj;
19851 wxListItem *arg1 = (wxListItem *) 0 ;
19852 int result;
19853 PyObject * obj0 = 0 ;
19854 char *kwnames[] = {
19855 (char *) "self", NULL
19856 };
19857
19858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
19859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19861 result = (int) ((arg1)->m_col);
19862
19863 resultobj = SWIG_FromInt((int)result);
19864 return resultobj;
19865 fail:
19866 return NULL;
19867 }
19868
19869
19870 static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19871 PyObject *resultobj;
19872 wxListItem *arg1 = (wxListItem *) 0 ;
19873 long arg2 ;
19874 PyObject * obj0 = 0 ;
19875 PyObject * obj1 = 0 ;
19876 char *kwnames[] = {
19877 (char *) "self",(char *) "m_state", NULL
19878 };
19879
19880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
19881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19883 arg2 = (long) SWIG_AsLong(obj1);
19884 if (PyErr_Occurred()) SWIG_fail;
19885 if (arg1) (arg1)->m_state = arg2;
19886
19887 Py_INCREF(Py_None); resultobj = Py_None;
19888 return resultobj;
19889 fail:
19890 return NULL;
19891 }
19892
19893
19894 static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19895 PyObject *resultobj;
19896 wxListItem *arg1 = (wxListItem *) 0 ;
19897 long result;
19898 PyObject * obj0 = 0 ;
19899 char *kwnames[] = {
19900 (char *) "self", NULL
19901 };
19902
19903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
19904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19906 result = (long) ((arg1)->m_state);
19907
19908 resultobj = SWIG_FromLong((long)result);
19909 return resultobj;
19910 fail:
19911 return NULL;
19912 }
19913
19914
19915 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19916 PyObject *resultobj;
19917 wxListItem *arg1 = (wxListItem *) 0 ;
19918 long arg2 ;
19919 PyObject * obj0 = 0 ;
19920 PyObject * obj1 = 0 ;
19921 char *kwnames[] = {
19922 (char *) "self",(char *) "m_stateMask", NULL
19923 };
19924
19925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
19926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19928 arg2 = (long) SWIG_AsLong(obj1);
19929 if (PyErr_Occurred()) SWIG_fail;
19930 if (arg1) (arg1)->m_stateMask = arg2;
19931
19932 Py_INCREF(Py_None); resultobj = Py_None;
19933 return resultobj;
19934 fail:
19935 return NULL;
19936 }
19937
19938
19939 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19940 PyObject *resultobj;
19941 wxListItem *arg1 = (wxListItem *) 0 ;
19942 long result;
19943 PyObject * obj0 = 0 ;
19944 char *kwnames[] = {
19945 (char *) "self", NULL
19946 };
19947
19948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
19949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19951 result = (long) ((arg1)->m_stateMask);
19952
19953 resultobj = SWIG_FromLong((long)result);
19954 return resultobj;
19955 fail:
19956 return NULL;
19957 }
19958
19959
19960 static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19961 PyObject *resultobj;
19962 wxListItem *arg1 = (wxListItem *) 0 ;
19963 wxString *arg2 = (wxString *) 0 ;
19964 bool temp2 = False ;
19965 PyObject * obj0 = 0 ;
19966 PyObject * obj1 = 0 ;
19967 char *kwnames[] = {
19968 (char *) "self",(char *) "m_text", NULL
19969 };
19970
19971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
19972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19974 {
19975 arg2 = wxString_in_helper(obj1);
19976 if (arg2 == NULL) SWIG_fail;
19977 temp2 = True;
19978 }
19979 if (arg1) (arg1)->m_text = *arg2;
19980
19981 Py_INCREF(Py_None); resultobj = Py_None;
19982 {
19983 if (temp2)
19984 delete arg2;
19985 }
19986 return resultobj;
19987 fail:
19988 {
19989 if (temp2)
19990 delete arg2;
19991 }
19992 return NULL;
19993 }
19994
19995
19996 static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19997 PyObject *resultobj;
19998 wxListItem *arg1 = (wxListItem *) 0 ;
19999 wxString *result;
20000 PyObject * obj0 = 0 ;
20001 char *kwnames[] = {
20002 (char *) "self", NULL
20003 };
20004
20005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20008 result = (wxString *)& ((arg1)->m_text);
20009
20010 {
20011 #if wxUSE_UNICODE
20012 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20013 #else
20014 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20015 #endif
20016 }
20017 return resultobj;
20018 fail:
20019 return NULL;
20020 }
20021
20022
20023 static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20024 PyObject *resultobj;
20025 wxListItem *arg1 = (wxListItem *) 0 ;
20026 int arg2 ;
20027 PyObject * obj0 = 0 ;
20028 PyObject * obj1 = 0 ;
20029 char *kwnames[] = {
20030 (char *) "self",(char *) "m_image", NULL
20031 };
20032
20033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20036 arg2 = (int) SWIG_AsInt(obj1);
20037 if (PyErr_Occurred()) SWIG_fail;
20038 if (arg1) (arg1)->m_image = arg2;
20039
20040 Py_INCREF(Py_None); resultobj = Py_None;
20041 return resultobj;
20042 fail:
20043 return NULL;
20044 }
20045
20046
20047 static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20048 PyObject *resultobj;
20049 wxListItem *arg1 = (wxListItem *) 0 ;
20050 int result;
20051 PyObject * obj0 = 0 ;
20052 char *kwnames[] = {
20053 (char *) "self", NULL
20054 };
20055
20056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20059 result = (int) ((arg1)->m_image);
20060
20061 resultobj = SWIG_FromInt((int)result);
20062 return resultobj;
20063 fail:
20064 return NULL;
20065 }
20066
20067
20068 static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20069 PyObject *resultobj;
20070 wxListItem *arg1 = (wxListItem *) 0 ;
20071 long arg2 ;
20072 PyObject * obj0 = 0 ;
20073 PyObject * obj1 = 0 ;
20074 char *kwnames[] = {
20075 (char *) "self",(char *) "m_data", NULL
20076 };
20077
20078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20081 arg2 = (long) SWIG_AsLong(obj1);
20082 if (PyErr_Occurred()) SWIG_fail;
20083 if (arg1) (arg1)->m_data = arg2;
20084
20085 Py_INCREF(Py_None); resultobj = Py_None;
20086 return resultobj;
20087 fail:
20088 return NULL;
20089 }
20090
20091
20092 static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20093 PyObject *resultobj;
20094 wxListItem *arg1 = (wxListItem *) 0 ;
20095 long result;
20096 PyObject * obj0 = 0 ;
20097 char *kwnames[] = {
20098 (char *) "self", NULL
20099 };
20100
20101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20104 result = (long) ((arg1)->m_data);
20105
20106 resultobj = SWIG_FromLong((long)result);
20107 return resultobj;
20108 fail:
20109 return NULL;
20110 }
20111
20112
20113 static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20114 PyObject *resultobj;
20115 wxListItem *arg1 = (wxListItem *) 0 ;
20116 int arg2 ;
20117 PyObject * obj0 = 0 ;
20118 PyObject * obj1 = 0 ;
20119 char *kwnames[] = {
20120 (char *) "self",(char *) "m_format", NULL
20121 };
20122
20123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20126 arg2 = (int) SWIG_AsInt(obj1);
20127 if (PyErr_Occurred()) SWIG_fail;
20128 if (arg1) (arg1)->m_format = arg2;
20129
20130 Py_INCREF(Py_None); resultobj = Py_None;
20131 return resultobj;
20132 fail:
20133 return NULL;
20134 }
20135
20136
20137 static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20138 PyObject *resultobj;
20139 wxListItem *arg1 = (wxListItem *) 0 ;
20140 int result;
20141 PyObject * obj0 = 0 ;
20142 char *kwnames[] = {
20143 (char *) "self", NULL
20144 };
20145
20146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20149 result = (int) ((arg1)->m_format);
20150
20151 resultobj = SWIG_FromInt((int)result);
20152 return resultobj;
20153 fail:
20154 return NULL;
20155 }
20156
20157
20158 static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20159 PyObject *resultobj;
20160 wxListItem *arg1 = (wxListItem *) 0 ;
20161 int arg2 ;
20162 PyObject * obj0 = 0 ;
20163 PyObject * obj1 = 0 ;
20164 char *kwnames[] = {
20165 (char *) "self",(char *) "m_width", NULL
20166 };
20167
20168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20171 arg2 = (int) SWIG_AsInt(obj1);
20172 if (PyErr_Occurred()) SWIG_fail;
20173 if (arg1) (arg1)->m_width = arg2;
20174
20175 Py_INCREF(Py_None); resultobj = Py_None;
20176 return resultobj;
20177 fail:
20178 return NULL;
20179 }
20180
20181
20182 static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20183 PyObject *resultobj;
20184 wxListItem *arg1 = (wxListItem *) 0 ;
20185 int result;
20186 PyObject * obj0 = 0 ;
20187 char *kwnames[] = {
20188 (char *) "self", NULL
20189 };
20190
20191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20194 result = (int) ((arg1)->m_width);
20195
20196 resultobj = SWIG_FromInt((int)result);
20197 return resultobj;
20198 fail:
20199 return NULL;
20200 }
20201
20202
20203 static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
20204 PyObject *obj;
20205 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20206 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20207 Py_INCREF(obj);
20208 return Py_BuildValue((char *)"");
20209 }
20210 static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20211 PyObject *resultobj;
20212 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20213 int arg2 = (int) 0 ;
20214 wxListEvent *result;
20215 PyObject * obj0 = 0 ;
20216 PyObject * obj1 = 0 ;
20217 char *kwnames[] = {
20218 (char *) "commandType",(char *) "id", NULL
20219 };
20220
20221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20222 if (obj0) {
20223 arg1 = (wxEventType) SWIG_AsInt(obj0);
20224 if (PyErr_Occurred()) SWIG_fail;
20225 }
20226 if (obj1) {
20227 arg2 = (int) SWIG_AsInt(obj1);
20228 if (PyErr_Occurred()) SWIG_fail;
20229 }
20230 {
20231 PyThreadState* __tstate = wxPyBeginAllowThreads();
20232 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20233
20234 wxPyEndAllowThreads(__tstate);
20235 if (PyErr_Occurred()) SWIG_fail;
20236 }
20237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20238 return resultobj;
20239 fail:
20240 return NULL;
20241 }
20242
20243
20244 static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20245 PyObject *resultobj;
20246 wxListEvent *arg1 = (wxListEvent *) 0 ;
20247 int arg2 ;
20248 PyObject * obj0 = 0 ;
20249 PyObject * obj1 = 0 ;
20250 char *kwnames[] = {
20251 (char *) "self",(char *) "m_code", NULL
20252 };
20253
20254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20257 arg2 = (int) SWIG_AsInt(obj1);
20258 if (PyErr_Occurred()) SWIG_fail;
20259 if (arg1) (arg1)->m_code = arg2;
20260
20261 Py_INCREF(Py_None); resultobj = Py_None;
20262 return resultobj;
20263 fail:
20264 return NULL;
20265 }
20266
20267
20268 static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20269 PyObject *resultobj;
20270 wxListEvent *arg1 = (wxListEvent *) 0 ;
20271 int result;
20272 PyObject * obj0 = 0 ;
20273 char *kwnames[] = {
20274 (char *) "self", NULL
20275 };
20276
20277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20280 result = (int) ((arg1)->m_code);
20281
20282 resultobj = SWIG_FromInt((int)result);
20283 return resultobj;
20284 fail:
20285 return NULL;
20286 }
20287
20288
20289 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20290 PyObject *resultobj;
20291 wxListEvent *arg1 = (wxListEvent *) 0 ;
20292 long arg2 ;
20293 PyObject * obj0 = 0 ;
20294 PyObject * obj1 = 0 ;
20295 char *kwnames[] = {
20296 (char *) "self",(char *) "m_oldItemIndex", NULL
20297 };
20298
20299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20302 arg2 = (long) SWIG_AsLong(obj1);
20303 if (PyErr_Occurred()) SWIG_fail;
20304 if (arg1) (arg1)->m_oldItemIndex = arg2;
20305
20306 Py_INCREF(Py_None); resultobj = Py_None;
20307 return resultobj;
20308 fail:
20309 return NULL;
20310 }
20311
20312
20313 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20314 PyObject *resultobj;
20315 wxListEvent *arg1 = (wxListEvent *) 0 ;
20316 long result;
20317 PyObject * obj0 = 0 ;
20318 char *kwnames[] = {
20319 (char *) "self", NULL
20320 };
20321
20322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20325 result = (long) ((arg1)->m_oldItemIndex);
20326
20327 resultobj = SWIG_FromLong((long)result);
20328 return resultobj;
20329 fail:
20330 return NULL;
20331 }
20332
20333
20334 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20335 PyObject *resultobj;
20336 wxListEvent *arg1 = (wxListEvent *) 0 ;
20337 long arg2 ;
20338 PyObject * obj0 = 0 ;
20339 PyObject * obj1 = 0 ;
20340 char *kwnames[] = {
20341 (char *) "self",(char *) "m_itemIndex", NULL
20342 };
20343
20344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20347 arg2 = (long) SWIG_AsLong(obj1);
20348 if (PyErr_Occurred()) SWIG_fail;
20349 if (arg1) (arg1)->m_itemIndex = arg2;
20350
20351 Py_INCREF(Py_None); resultobj = Py_None;
20352 return resultobj;
20353 fail:
20354 return NULL;
20355 }
20356
20357
20358 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20359 PyObject *resultobj;
20360 wxListEvent *arg1 = (wxListEvent *) 0 ;
20361 long result;
20362 PyObject * obj0 = 0 ;
20363 char *kwnames[] = {
20364 (char *) "self", NULL
20365 };
20366
20367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20370 result = (long) ((arg1)->m_itemIndex);
20371
20372 resultobj = SWIG_FromLong((long)result);
20373 return resultobj;
20374 fail:
20375 return NULL;
20376 }
20377
20378
20379 static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20380 PyObject *resultobj;
20381 wxListEvent *arg1 = (wxListEvent *) 0 ;
20382 int arg2 ;
20383 PyObject * obj0 = 0 ;
20384 PyObject * obj1 = 0 ;
20385 char *kwnames[] = {
20386 (char *) "self",(char *) "m_col", NULL
20387 };
20388
20389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20392 arg2 = (int) SWIG_AsInt(obj1);
20393 if (PyErr_Occurred()) SWIG_fail;
20394 if (arg1) (arg1)->m_col = arg2;
20395
20396 Py_INCREF(Py_None); resultobj = Py_None;
20397 return resultobj;
20398 fail:
20399 return NULL;
20400 }
20401
20402
20403 static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20404 PyObject *resultobj;
20405 wxListEvent *arg1 = (wxListEvent *) 0 ;
20406 int result;
20407 PyObject * obj0 = 0 ;
20408 char *kwnames[] = {
20409 (char *) "self", NULL
20410 };
20411
20412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20415 result = (int) ((arg1)->m_col);
20416
20417 resultobj = SWIG_FromInt((int)result);
20418 return resultobj;
20419 fail:
20420 return NULL;
20421 }
20422
20423
20424 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20425 PyObject *resultobj;
20426 wxListEvent *arg1 = (wxListEvent *) 0 ;
20427 wxPoint *arg2 = (wxPoint *) 0 ;
20428 PyObject * obj0 = 0 ;
20429 PyObject * obj1 = 0 ;
20430 char *kwnames[] = {
20431 (char *) "self",(char *) "m_pointDrag", NULL
20432 };
20433
20434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20437 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20439 if (arg1) (arg1)->m_pointDrag = *arg2;
20440
20441 Py_INCREF(Py_None); resultobj = Py_None;
20442 return resultobj;
20443 fail:
20444 return NULL;
20445 }
20446
20447
20448 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20449 PyObject *resultobj;
20450 wxListEvent *arg1 = (wxListEvent *) 0 ;
20451 wxPoint *result;
20452 PyObject * obj0 = 0 ;
20453 char *kwnames[] = {
20454 (char *) "self", NULL
20455 };
20456
20457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20460 result = (wxPoint *)& ((arg1)->m_pointDrag);
20461
20462 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20463 return resultobj;
20464 fail:
20465 return NULL;
20466 }
20467
20468
20469 static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20470 PyObject *resultobj;
20471 wxListEvent *arg1 = (wxListEvent *) 0 ;
20472 wxListItem *result;
20473 PyObject * obj0 = 0 ;
20474 char *kwnames[] = {
20475 (char *) "self", NULL
20476 };
20477
20478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20481 result = (wxListItem *)& ((arg1)->m_item);
20482
20483 {
20484 resultobj = wxPyMake_wxObject(result);
20485 }
20486 return resultobj;
20487 fail:
20488 return NULL;
20489 }
20490
20491
20492 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20493 PyObject *resultobj;
20494 wxListEvent *arg1 = (wxListEvent *) 0 ;
20495 int result;
20496 PyObject * obj0 = 0 ;
20497 char *kwnames[] = {
20498 (char *) "self", NULL
20499 };
20500
20501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20504 {
20505 PyThreadState* __tstate = wxPyBeginAllowThreads();
20506 result = (int)(arg1)->GetKeyCode();
20507
20508 wxPyEndAllowThreads(__tstate);
20509 if (PyErr_Occurred()) SWIG_fail;
20510 }
20511 resultobj = SWIG_FromInt((int)result);
20512 return resultobj;
20513 fail:
20514 return NULL;
20515 }
20516
20517
20518 static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
20519 PyObject *resultobj;
20520 wxListEvent *arg1 = (wxListEvent *) 0 ;
20521 long result;
20522 PyObject * obj0 = 0 ;
20523 char *kwnames[] = {
20524 (char *) "self", NULL
20525 };
20526
20527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20530 {
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
20532 result = (long)(arg1)->GetIndex();
20533
20534 wxPyEndAllowThreads(__tstate);
20535 if (PyErr_Occurred()) SWIG_fail;
20536 }
20537 resultobj = SWIG_FromLong((long)result);
20538 return resultobj;
20539 fail:
20540 return NULL;
20541 }
20542
20543
20544 static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20545 PyObject *resultobj;
20546 wxListEvent *arg1 = (wxListEvent *) 0 ;
20547 int result;
20548 PyObject * obj0 = 0 ;
20549 char *kwnames[] = {
20550 (char *) "self", NULL
20551 };
20552
20553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20556 {
20557 PyThreadState* __tstate = wxPyBeginAllowThreads();
20558 result = (int)(arg1)->GetColumn();
20559
20560 wxPyEndAllowThreads(__tstate);
20561 if (PyErr_Occurred()) SWIG_fail;
20562 }
20563 resultobj = SWIG_FromInt((int)result);
20564 return resultobj;
20565 fail:
20566 return NULL;
20567 }
20568
20569
20570 static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
20571 PyObject *resultobj;
20572 wxListEvent *arg1 = (wxListEvent *) 0 ;
20573 wxPoint result;
20574 PyObject * obj0 = 0 ;
20575 char *kwnames[] = {
20576 (char *) "self", NULL
20577 };
20578
20579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
20580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20582 {
20583 PyThreadState* __tstate = wxPyBeginAllowThreads();
20584 result = (arg1)->GetPoint();
20585
20586 wxPyEndAllowThreads(__tstate);
20587 if (PyErr_Occurred()) SWIG_fail;
20588 }
20589 {
20590 wxPoint * resultptr;
20591 resultptr = new wxPoint((wxPoint &) result);
20592 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20593 }
20594 return resultobj;
20595 fail:
20596 return NULL;
20597 }
20598
20599
20600 static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20601 PyObject *resultobj;
20602 wxListEvent *arg1 = (wxListEvent *) 0 ;
20603 wxString *result;
20604 PyObject * obj0 = 0 ;
20605 char *kwnames[] = {
20606 (char *) "self", NULL
20607 };
20608
20609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
20610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20612 {
20613 PyThreadState* __tstate = wxPyBeginAllowThreads();
20614 {
20615 wxString const &_result_ref = (arg1)->GetLabel();
20616 result = (wxString *) &_result_ref;
20617 }
20618
20619 wxPyEndAllowThreads(__tstate);
20620 if (PyErr_Occurred()) SWIG_fail;
20621 }
20622 {
20623 #if wxUSE_UNICODE
20624 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20625 #else
20626 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20627 #endif
20628 }
20629 return resultobj;
20630 fail:
20631 return NULL;
20632 }
20633
20634
20635 static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
20636 PyObject *resultobj;
20637 wxListEvent *arg1 = (wxListEvent *) 0 ;
20638 wxString *result;
20639 PyObject * obj0 = 0 ;
20640 char *kwnames[] = {
20641 (char *) "self", NULL
20642 };
20643
20644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
20645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20647 {
20648 PyThreadState* __tstate = wxPyBeginAllowThreads();
20649 {
20650 wxString const &_result_ref = (arg1)->GetText();
20651 result = (wxString *) &_result_ref;
20652 }
20653
20654 wxPyEndAllowThreads(__tstate);
20655 if (PyErr_Occurred()) SWIG_fail;
20656 }
20657 {
20658 #if wxUSE_UNICODE
20659 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20660 #else
20661 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20662 #endif
20663 }
20664 return resultobj;
20665 fail:
20666 return NULL;
20667 }
20668
20669
20670 static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20671 PyObject *resultobj;
20672 wxListEvent *arg1 = (wxListEvent *) 0 ;
20673 int result;
20674 PyObject * obj0 = 0 ;
20675 char *kwnames[] = {
20676 (char *) "self", NULL
20677 };
20678
20679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
20680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20682 {
20683 PyThreadState* __tstate = wxPyBeginAllowThreads();
20684 result = (int)(arg1)->GetImage();
20685
20686 wxPyEndAllowThreads(__tstate);
20687 if (PyErr_Occurred()) SWIG_fail;
20688 }
20689 resultobj = SWIG_FromInt((int)result);
20690 return resultobj;
20691 fail:
20692 return NULL;
20693 }
20694
20695
20696 static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
20697 PyObject *resultobj;
20698 wxListEvent *arg1 = (wxListEvent *) 0 ;
20699 long result;
20700 PyObject * obj0 = 0 ;
20701 char *kwnames[] = {
20702 (char *) "self", NULL
20703 };
20704
20705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
20706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 result = (long)(arg1)->GetData();
20711
20712 wxPyEndAllowThreads(__tstate);
20713 if (PyErr_Occurred()) SWIG_fail;
20714 }
20715 resultobj = SWIG_FromLong((long)result);
20716 return resultobj;
20717 fail:
20718 return NULL;
20719 }
20720
20721
20722 static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
20723 PyObject *resultobj;
20724 wxListEvent *arg1 = (wxListEvent *) 0 ;
20725 long result;
20726 PyObject * obj0 = 0 ;
20727 char *kwnames[] = {
20728 (char *) "self", NULL
20729 };
20730
20731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
20732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20734 {
20735 PyThreadState* __tstate = wxPyBeginAllowThreads();
20736 result = (long)(arg1)->GetMask();
20737
20738 wxPyEndAllowThreads(__tstate);
20739 if (PyErr_Occurred()) SWIG_fail;
20740 }
20741 resultobj = SWIG_FromLong((long)result);
20742 return resultobj;
20743 fail:
20744 return NULL;
20745 }
20746
20747
20748 static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20749 PyObject *resultobj;
20750 wxListEvent *arg1 = (wxListEvent *) 0 ;
20751 wxListItem *result;
20752 PyObject * obj0 = 0 ;
20753 char *kwnames[] = {
20754 (char *) "self", NULL
20755 };
20756
20757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
20758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20760 {
20761 PyThreadState* __tstate = wxPyBeginAllowThreads();
20762 {
20763 wxListItem const &_result_ref = (arg1)->GetItem();
20764 result = (wxListItem *) &_result_ref;
20765 }
20766
20767 wxPyEndAllowThreads(__tstate);
20768 if (PyErr_Occurred()) SWIG_fail;
20769 }
20770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
20771 return resultobj;
20772 fail:
20773 return NULL;
20774 }
20775
20776
20777 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
20778 PyObject *resultobj;
20779 wxListEvent *arg1 = (wxListEvent *) 0 ;
20780 long result;
20781 PyObject * obj0 = 0 ;
20782 char *kwnames[] = {
20783 (char *) "self", NULL
20784 };
20785
20786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
20787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20789 {
20790 PyThreadState* __tstate = wxPyBeginAllowThreads();
20791 result = (long)(arg1)->GetCacheFrom();
20792
20793 wxPyEndAllowThreads(__tstate);
20794 if (PyErr_Occurred()) SWIG_fail;
20795 }
20796 resultobj = SWIG_FromLong((long)result);
20797 return resultobj;
20798 fail:
20799 return NULL;
20800 }
20801
20802
20803 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20804 PyObject *resultobj;
20805 wxListEvent *arg1 = (wxListEvent *) 0 ;
20806 long result;
20807 PyObject * obj0 = 0 ;
20808 char *kwnames[] = {
20809 (char *) "self", NULL
20810 };
20811
20812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
20813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20815 {
20816 PyThreadState* __tstate = wxPyBeginAllowThreads();
20817 result = (long)(arg1)->GetCacheTo();
20818
20819 wxPyEndAllowThreads(__tstate);
20820 if (PyErr_Occurred()) SWIG_fail;
20821 }
20822 resultobj = SWIG_FromLong((long)result);
20823 return resultobj;
20824 fail:
20825 return NULL;
20826 }
20827
20828
20829 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
20830 PyObject *resultobj;
20831 wxListEvent *arg1 = (wxListEvent *) 0 ;
20832 bool result;
20833 PyObject * obj0 = 0 ;
20834 char *kwnames[] = {
20835 (char *) "self", NULL
20836 };
20837
20838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
20839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20841 {
20842 PyThreadState* __tstate = wxPyBeginAllowThreads();
20843 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
20844
20845 wxPyEndAllowThreads(__tstate);
20846 if (PyErr_Occurred()) SWIG_fail;
20847 }
20848 {
20849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20850 }
20851 return resultobj;
20852 fail:
20853 return NULL;
20854 }
20855
20856
20857 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
20858 PyObject *resultobj;
20859 wxListEvent *arg1 = (wxListEvent *) 0 ;
20860 bool arg2 ;
20861 PyObject * obj0 = 0 ;
20862 PyObject * obj1 = 0 ;
20863 char *kwnames[] = {
20864 (char *) "self",(char *) "editCancelled", NULL
20865 };
20866
20867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
20868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20870 arg2 = (bool) SWIG_AsBool(obj1);
20871 if (PyErr_Occurred()) SWIG_fail;
20872 {
20873 PyThreadState* __tstate = wxPyBeginAllowThreads();
20874 (arg1)->SetEditCanceled(arg2);
20875
20876 wxPyEndAllowThreads(__tstate);
20877 if (PyErr_Occurred()) SWIG_fail;
20878 }
20879 Py_INCREF(Py_None); resultobj = Py_None;
20880 return resultobj;
20881 fail:
20882 return NULL;
20883 }
20884
20885
20886 static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
20887 PyObject *obj;
20888 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20889 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
20890 Py_INCREF(obj);
20891 return Py_BuildValue((char *)"");
20892 }
20893 static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20894 PyObject *resultobj;
20895 wxWindow *arg1 = (wxWindow *) 0 ;
20896 int arg2 = (int) -1 ;
20897 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20898 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20899 wxSize const &arg4_defvalue = wxDefaultSize ;
20900 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20901 long arg5 = (long) wxLC_ICON ;
20902 wxValidator const &arg6_defvalue = wxDefaultValidator ;
20903 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
20904 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
20905 wxString *arg7 = (wxString *) &arg7_defvalue ;
20906 wxPyListCtrl *result;
20907 wxPoint temp3 ;
20908 wxSize temp4 ;
20909 bool temp7 = False ;
20910 PyObject * obj0 = 0 ;
20911 PyObject * obj1 = 0 ;
20912 PyObject * obj2 = 0 ;
20913 PyObject * obj3 = 0 ;
20914 PyObject * obj4 = 0 ;
20915 PyObject * obj5 = 0 ;
20916 PyObject * obj6 = 0 ;
20917 char *kwnames[] = {
20918 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
20919 };
20920
20921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
20922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20924 if (obj1) {
20925 arg2 = (int) SWIG_AsInt(obj1);
20926 if (PyErr_Occurred()) SWIG_fail;
20927 }
20928 if (obj2) {
20929 {
20930 arg3 = &temp3;
20931 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20932 }
20933 }
20934 if (obj3) {
20935 {
20936 arg4 = &temp4;
20937 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20938 }
20939 }
20940 if (obj4) {
20941 arg5 = (long) SWIG_AsLong(obj4);
20942 if (PyErr_Occurred()) SWIG_fail;
20943 }
20944 if (obj5) {
20945 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
20946 SWIG_POINTER_EXCEPTION | 0)) == -1)
20947 SWIG_fail;
20948 if (arg6 == NULL) {
20949 PyErr_SetString(PyExc_TypeError,"null reference");
20950 SWIG_fail;
20951 }
20952 }
20953 if (obj6) {
20954 {
20955 arg7 = wxString_in_helper(obj6);
20956 if (arg7 == NULL) SWIG_fail;
20957 temp7 = True;
20958 }
20959 }
20960 {
20961 PyThreadState* __tstate = wxPyBeginAllowThreads();
20962 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
20963
20964 wxPyEndAllowThreads(__tstate);
20965 if (PyErr_Occurred()) SWIG_fail;
20966 }
20967 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20968 {
20969 if (temp7)
20970 delete arg7;
20971 }
20972 return resultobj;
20973 fail:
20974 {
20975 if (temp7)
20976 delete arg7;
20977 }
20978 return NULL;
20979 }
20980
20981
20982 static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20983 PyObject *resultobj;
20984 wxPyListCtrl *result;
20985 char *kwnames[] = {
20986 NULL
20987 };
20988
20989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
20990 {
20991 PyThreadState* __tstate = wxPyBeginAllowThreads();
20992 result = (wxPyListCtrl *)new wxPyListCtrl();
20993
20994 wxPyEndAllowThreads(__tstate);
20995 if (PyErr_Occurred()) SWIG_fail;
20996 }
20997 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20998 return resultobj;
20999 fail:
21000 return NULL;
21001 }
21002
21003
21004 static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
21005 PyObject *resultobj;
21006 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21007 wxWindow *arg2 = (wxWindow *) 0 ;
21008 int arg3 = (int) -1 ;
21009 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21010 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21011 wxSize const &arg5_defvalue = wxDefaultSize ;
21012 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21013 long arg6 = (long) wxLC_ICON ;
21014 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21015 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21016 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21017 wxString *arg8 = (wxString *) &arg8_defvalue ;
21018 bool result;
21019 wxPoint temp4 ;
21020 wxSize temp5 ;
21021 bool temp8 = False ;
21022 PyObject * obj0 = 0 ;
21023 PyObject * obj1 = 0 ;
21024 PyObject * obj2 = 0 ;
21025 PyObject * obj3 = 0 ;
21026 PyObject * obj4 = 0 ;
21027 PyObject * obj5 = 0 ;
21028 PyObject * obj6 = 0 ;
21029 PyObject * obj7 = 0 ;
21030 char *kwnames[] = {
21031 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21032 };
21033
21034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21039 if (obj2) {
21040 arg3 = (int) SWIG_AsInt(obj2);
21041 if (PyErr_Occurred()) SWIG_fail;
21042 }
21043 if (obj3) {
21044 {
21045 arg4 = &temp4;
21046 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21047 }
21048 }
21049 if (obj4) {
21050 {
21051 arg5 = &temp5;
21052 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21053 }
21054 }
21055 if (obj5) {
21056 arg6 = (long) SWIG_AsLong(obj5);
21057 if (PyErr_Occurred()) SWIG_fail;
21058 }
21059 if (obj6) {
21060 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21061 SWIG_POINTER_EXCEPTION | 0)) == -1)
21062 SWIG_fail;
21063 if (arg7 == NULL) {
21064 PyErr_SetString(PyExc_TypeError,"null reference");
21065 SWIG_fail;
21066 }
21067 }
21068 if (obj7) {
21069 {
21070 arg8 = wxString_in_helper(obj7);
21071 if (arg8 == NULL) SWIG_fail;
21072 temp8 = True;
21073 }
21074 }
21075 {
21076 PyThreadState* __tstate = wxPyBeginAllowThreads();
21077 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21078
21079 wxPyEndAllowThreads(__tstate);
21080 if (PyErr_Occurred()) SWIG_fail;
21081 }
21082 {
21083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21084 }
21085 {
21086 if (temp8)
21087 delete arg8;
21088 }
21089 return resultobj;
21090 fail:
21091 {
21092 if (temp8)
21093 delete arg8;
21094 }
21095 return NULL;
21096 }
21097
21098
21099 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
21100 PyObject *resultobj;
21101 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21102 PyObject *arg2 = (PyObject *) 0 ;
21103 PyObject *arg3 = (PyObject *) 0 ;
21104 PyObject * obj0 = 0 ;
21105 PyObject * obj1 = 0 ;
21106 PyObject * obj2 = 0 ;
21107 char *kwnames[] = {
21108 (char *) "self",(char *) "self",(char *) "_class", NULL
21109 };
21110
21111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21114 arg2 = obj1;
21115 arg3 = obj2;
21116 {
21117 PyThreadState* __tstate = wxPyBeginAllowThreads();
21118 (arg1)->_setCallbackInfo(arg2,arg3);
21119
21120 wxPyEndAllowThreads(__tstate);
21121 if (PyErr_Occurred()) SWIG_fail;
21122 }
21123 Py_INCREF(Py_None); resultobj = Py_None;
21124 return resultobj;
21125 fail:
21126 return NULL;
21127 }
21128
21129
21130 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21131 PyObject *resultobj;
21132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21133 wxColour *arg2 = 0 ;
21134 bool result;
21135 wxColour temp2 ;
21136 PyObject * obj0 = 0 ;
21137 PyObject * obj1 = 0 ;
21138 char *kwnames[] = {
21139 (char *) "self",(char *) "col", NULL
21140 };
21141
21142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21145 {
21146 arg2 = &temp2;
21147 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21148 }
21149 {
21150 PyThreadState* __tstate = wxPyBeginAllowThreads();
21151 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21152
21153 wxPyEndAllowThreads(__tstate);
21154 if (PyErr_Occurred()) SWIG_fail;
21155 }
21156 {
21157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21158 }
21159 return resultobj;
21160 fail:
21161 return NULL;
21162 }
21163
21164
21165 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21166 PyObject *resultobj;
21167 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21168 wxColour *arg2 = 0 ;
21169 bool result;
21170 wxColour temp2 ;
21171 PyObject * obj0 = 0 ;
21172 PyObject * obj1 = 0 ;
21173 char *kwnames[] = {
21174 (char *) "self",(char *) "col", NULL
21175 };
21176
21177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21180 {
21181 arg2 = &temp2;
21182 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21183 }
21184 {
21185 PyThreadState* __tstate = wxPyBeginAllowThreads();
21186 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21187
21188 wxPyEndAllowThreads(__tstate);
21189 if (PyErr_Occurred()) SWIG_fail;
21190 }
21191 {
21192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21193 }
21194 return resultobj;
21195 fail:
21196 return NULL;
21197 }
21198
21199
21200 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21201 PyObject *resultobj;
21202 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21203 int arg2 ;
21204 wxListItem *result;
21205 PyObject * obj0 = 0 ;
21206 PyObject * obj1 = 0 ;
21207 char *kwnames[] = {
21208 (char *) "self",(char *) "col", NULL
21209 };
21210
21211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21214 arg2 = (int) SWIG_AsInt(obj1);
21215 if (PyErr_Occurred()) SWIG_fail;
21216 {
21217 PyThreadState* __tstate = wxPyBeginAllowThreads();
21218 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21219
21220 wxPyEndAllowThreads(__tstate);
21221 if (PyErr_Occurred()) SWIG_fail;
21222 }
21223 {
21224 resultobj = wxPyMake_wxObject(result);
21225 }
21226 return resultobj;
21227 fail:
21228 return NULL;
21229 }
21230
21231
21232 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21233 PyObject *resultobj;
21234 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21235 int arg2 ;
21236 wxListItem *arg3 = 0 ;
21237 bool result;
21238 PyObject * obj0 = 0 ;
21239 PyObject * obj1 = 0 ;
21240 PyObject * obj2 = 0 ;
21241 char *kwnames[] = {
21242 (char *) "self",(char *) "col",(char *) "item", NULL
21243 };
21244
21245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21248 arg2 = (int) SWIG_AsInt(obj1);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21251 SWIG_POINTER_EXCEPTION | 0)) == -1)
21252 SWIG_fail;
21253 if (arg3 == NULL) {
21254 PyErr_SetString(PyExc_TypeError,"null reference");
21255 SWIG_fail;
21256 }
21257 {
21258 PyThreadState* __tstate = wxPyBeginAllowThreads();
21259 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21260
21261 wxPyEndAllowThreads(__tstate);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 }
21264 {
21265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21266 }
21267 return resultobj;
21268 fail:
21269 return NULL;
21270 }
21271
21272
21273 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21274 PyObject *resultobj;
21275 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21276 int arg2 ;
21277 int result;
21278 PyObject * obj0 = 0 ;
21279 PyObject * obj1 = 0 ;
21280 char *kwnames[] = {
21281 (char *) "self",(char *) "col", NULL
21282 };
21283
21284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21287 arg2 = (int) SWIG_AsInt(obj1);
21288 if (PyErr_Occurred()) SWIG_fail;
21289 {
21290 PyThreadState* __tstate = wxPyBeginAllowThreads();
21291 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21292
21293 wxPyEndAllowThreads(__tstate);
21294 if (PyErr_Occurred()) SWIG_fail;
21295 }
21296 resultobj = SWIG_FromInt((int)result);
21297 return resultobj;
21298 fail:
21299 return NULL;
21300 }
21301
21302
21303 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21304 PyObject *resultobj;
21305 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21306 int arg2 ;
21307 int arg3 ;
21308 bool result;
21309 PyObject * obj0 = 0 ;
21310 PyObject * obj1 = 0 ;
21311 PyObject * obj2 = 0 ;
21312 char *kwnames[] = {
21313 (char *) "self",(char *) "col",(char *) "width", NULL
21314 };
21315
21316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21319 arg2 = (int) SWIG_AsInt(obj1);
21320 if (PyErr_Occurred()) SWIG_fail;
21321 arg3 = (int) SWIG_AsInt(obj2);
21322 if (PyErr_Occurred()) SWIG_fail;
21323 {
21324 PyThreadState* __tstate = wxPyBeginAllowThreads();
21325 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21326
21327 wxPyEndAllowThreads(__tstate);
21328 if (PyErr_Occurred()) SWIG_fail;
21329 }
21330 {
21331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21332 }
21333 return resultobj;
21334 fail:
21335 return NULL;
21336 }
21337
21338
21339 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
21340 PyObject *resultobj;
21341 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21342 int result;
21343 PyObject * obj0 = 0 ;
21344 char *kwnames[] = {
21345 (char *) "self", NULL
21346 };
21347
21348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21351 {
21352 PyThreadState* __tstate = wxPyBeginAllowThreads();
21353 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21354
21355 wxPyEndAllowThreads(__tstate);
21356 if (PyErr_Occurred()) SWIG_fail;
21357 }
21358 resultobj = SWIG_FromInt((int)result);
21359 return resultobj;
21360 fail:
21361 return NULL;
21362 }
21363
21364
21365 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21366 PyObject *resultobj;
21367 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21368 wxRect result;
21369 PyObject * obj0 = 0 ;
21370 char *kwnames[] = {
21371 (char *) "self", NULL
21372 };
21373
21374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21380
21381 wxPyEndAllowThreads(__tstate);
21382 if (PyErr_Occurred()) SWIG_fail;
21383 }
21384 {
21385 wxRect * resultptr;
21386 resultptr = new wxRect((wxRect &) result);
21387 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21388 }
21389 return resultobj;
21390 fail:
21391 return NULL;
21392 }
21393
21394
21395 static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21396 PyObject *resultobj;
21397 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21398 long arg2 ;
21399 int arg3 = (int) 0 ;
21400 wxListItem *result;
21401 PyObject * obj0 = 0 ;
21402 PyObject * obj1 = 0 ;
21403 PyObject * obj2 = 0 ;
21404 char *kwnames[] = {
21405 (char *) "self",(char *) "itemId",(char *) "col", NULL
21406 };
21407
21408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21411 arg2 = (long) SWIG_AsLong(obj1);
21412 if (PyErr_Occurred()) SWIG_fail;
21413 if (obj2) {
21414 arg3 = (int) SWIG_AsInt(obj2);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 {
21418 PyThreadState* __tstate = wxPyBeginAllowThreads();
21419 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21420
21421 wxPyEndAllowThreads(__tstate);
21422 if (PyErr_Occurred()) SWIG_fail;
21423 }
21424 {
21425 resultobj = wxPyMake_wxObject(result);
21426 }
21427 return resultobj;
21428 fail:
21429 return NULL;
21430 }
21431
21432
21433 static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21434 PyObject *resultobj;
21435 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21436 wxListItem *arg2 = 0 ;
21437 bool result;
21438 PyObject * obj0 = 0 ;
21439 PyObject * obj1 = 0 ;
21440 char *kwnames[] = {
21441 (char *) "self",(char *) "info", NULL
21442 };
21443
21444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21447 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21448 SWIG_POINTER_EXCEPTION | 0)) == -1)
21449 SWIG_fail;
21450 if (arg2 == NULL) {
21451 PyErr_SetString(PyExc_TypeError,"null reference");
21452 SWIG_fail;
21453 }
21454 {
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = (bool)(arg1)->SetItem(*arg2);
21457
21458 wxPyEndAllowThreads(__tstate);
21459 if (PyErr_Occurred()) SWIG_fail;
21460 }
21461 {
21462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21463 }
21464 return resultobj;
21465 fail:
21466 return NULL;
21467 }
21468
21469
21470 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21471 PyObject *resultobj;
21472 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21473 long arg2 ;
21474 int arg3 ;
21475 wxString *arg4 = 0 ;
21476 int arg5 = (int) -1 ;
21477 long result;
21478 bool temp4 = False ;
21479 PyObject * obj0 = 0 ;
21480 PyObject * obj1 = 0 ;
21481 PyObject * obj2 = 0 ;
21482 PyObject * obj3 = 0 ;
21483 PyObject * obj4 = 0 ;
21484 char *kwnames[] = {
21485 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21486 };
21487
21488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21491 arg2 = (long) SWIG_AsLong(obj1);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 arg3 = (int) SWIG_AsInt(obj2);
21494 if (PyErr_Occurred()) SWIG_fail;
21495 {
21496 arg4 = wxString_in_helper(obj3);
21497 if (arg4 == NULL) SWIG_fail;
21498 temp4 = True;
21499 }
21500 if (obj4) {
21501 arg5 = (int) SWIG_AsInt(obj4);
21502 if (PyErr_Occurred()) SWIG_fail;
21503 }
21504 {
21505 PyThreadState* __tstate = wxPyBeginAllowThreads();
21506 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21507
21508 wxPyEndAllowThreads(__tstate);
21509 if (PyErr_Occurred()) SWIG_fail;
21510 }
21511 resultobj = SWIG_FromLong((long)result);
21512 {
21513 if (temp4)
21514 delete arg4;
21515 }
21516 return resultobj;
21517 fail:
21518 {
21519 if (temp4)
21520 delete arg4;
21521 }
21522 return NULL;
21523 }
21524
21525
21526 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21527 PyObject *resultobj;
21528 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21529 long arg2 ;
21530 long arg3 ;
21531 int result;
21532 PyObject * obj0 = 0 ;
21533 PyObject * obj1 = 0 ;
21534 PyObject * obj2 = 0 ;
21535 char *kwnames[] = {
21536 (char *) "self",(char *) "item",(char *) "stateMask", NULL
21537 };
21538
21539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
21540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21542 arg2 = (long) SWIG_AsLong(obj1);
21543 if (PyErr_Occurred()) SWIG_fail;
21544 arg3 = (long) SWIG_AsLong(obj2);
21545 if (PyErr_Occurred()) SWIG_fail;
21546 {
21547 PyThreadState* __tstate = wxPyBeginAllowThreads();
21548 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
21549
21550 wxPyEndAllowThreads(__tstate);
21551 if (PyErr_Occurred()) SWIG_fail;
21552 }
21553 resultobj = SWIG_FromInt((int)result);
21554 return resultobj;
21555 fail:
21556 return NULL;
21557 }
21558
21559
21560 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21561 PyObject *resultobj;
21562 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21563 long arg2 ;
21564 long arg3 ;
21565 long arg4 ;
21566 bool result;
21567 PyObject * obj0 = 0 ;
21568 PyObject * obj1 = 0 ;
21569 PyObject * obj2 = 0 ;
21570 PyObject * obj3 = 0 ;
21571 char *kwnames[] = {
21572 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
21573 };
21574
21575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21578 arg2 = (long) SWIG_AsLong(obj1);
21579 if (PyErr_Occurred()) SWIG_fail;
21580 arg3 = (long) SWIG_AsLong(obj2);
21581 if (PyErr_Occurred()) SWIG_fail;
21582 arg4 = (long) SWIG_AsLong(obj3);
21583 if (PyErr_Occurred()) SWIG_fail;
21584 {
21585 PyThreadState* __tstate = wxPyBeginAllowThreads();
21586 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
21587
21588 wxPyEndAllowThreads(__tstate);
21589 if (PyErr_Occurred()) SWIG_fail;
21590 }
21591 {
21592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21593 }
21594 return resultobj;
21595 fail:
21596 return NULL;
21597 }
21598
21599
21600 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
21601 PyObject *resultobj;
21602 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21603 long arg2 ;
21604 int arg3 ;
21605 int arg4 ;
21606 bool result;
21607 PyObject * obj0 = 0 ;
21608 PyObject * obj1 = 0 ;
21609 PyObject * obj2 = 0 ;
21610 PyObject * obj3 = 0 ;
21611 char *kwnames[] = {
21612 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
21613 };
21614
21615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21618 arg2 = (long) SWIG_AsLong(obj1);
21619 if (PyErr_Occurred()) SWIG_fail;
21620 arg3 = (int) SWIG_AsInt(obj2);
21621 if (PyErr_Occurred()) SWIG_fail;
21622 arg4 = (int) SWIG_AsInt(obj3);
21623 if (PyErr_Occurred()) SWIG_fail;
21624 {
21625 PyThreadState* __tstate = wxPyBeginAllowThreads();
21626 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
21627
21628 wxPyEndAllowThreads(__tstate);
21629 if (PyErr_Occurred()) SWIG_fail;
21630 }
21631 {
21632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21633 }
21634 return resultobj;
21635 fail:
21636 return NULL;
21637 }
21638
21639
21640 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21641 PyObject *resultobj;
21642 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21643 long arg2 ;
21644 wxString result;
21645 PyObject * obj0 = 0 ;
21646 PyObject * obj1 = 0 ;
21647 char *kwnames[] = {
21648 (char *) "self",(char *) "item", NULL
21649 };
21650
21651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
21652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21654 arg2 = (long) SWIG_AsLong(obj1);
21655 if (PyErr_Occurred()) SWIG_fail;
21656 {
21657 PyThreadState* __tstate = wxPyBeginAllowThreads();
21658 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
21659
21660 wxPyEndAllowThreads(__tstate);
21661 if (PyErr_Occurred()) SWIG_fail;
21662 }
21663 {
21664 #if wxUSE_UNICODE
21665 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21666 #else
21667 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21668 #endif
21669 }
21670 return resultobj;
21671 fail:
21672 return NULL;
21673 }
21674
21675
21676 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21677 PyObject *resultobj;
21678 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21679 long arg2 ;
21680 wxString *arg3 = 0 ;
21681 bool temp3 = False ;
21682 PyObject * obj0 = 0 ;
21683 PyObject * obj1 = 0 ;
21684 PyObject * obj2 = 0 ;
21685 char *kwnames[] = {
21686 (char *) "self",(char *) "item",(char *) "str", NULL
21687 };
21688
21689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
21690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21692 arg2 = (long) SWIG_AsLong(obj1);
21693 if (PyErr_Occurred()) SWIG_fail;
21694 {
21695 arg3 = wxString_in_helper(obj2);
21696 if (arg3 == NULL) SWIG_fail;
21697 temp3 = True;
21698 }
21699 {
21700 PyThreadState* __tstate = wxPyBeginAllowThreads();
21701 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
21702
21703 wxPyEndAllowThreads(__tstate);
21704 if (PyErr_Occurred()) SWIG_fail;
21705 }
21706 Py_INCREF(Py_None); resultobj = Py_None;
21707 {
21708 if (temp3)
21709 delete arg3;
21710 }
21711 return resultobj;
21712 fail:
21713 {
21714 if (temp3)
21715 delete arg3;
21716 }
21717 return NULL;
21718 }
21719
21720
21721 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21722 PyObject *resultobj;
21723 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21724 long arg2 ;
21725 long result;
21726 PyObject * obj0 = 0 ;
21727 PyObject * obj1 = 0 ;
21728 char *kwnames[] = {
21729 (char *) "self",(char *) "item", NULL
21730 };
21731
21732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
21733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21735 arg2 = (long) SWIG_AsLong(obj1);
21736 if (PyErr_Occurred()) SWIG_fail;
21737 {
21738 PyThreadState* __tstate = wxPyBeginAllowThreads();
21739 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
21740
21741 wxPyEndAllowThreads(__tstate);
21742 if (PyErr_Occurred()) SWIG_fail;
21743 }
21744 resultobj = SWIG_FromLong((long)result);
21745 return resultobj;
21746 fail:
21747 return NULL;
21748 }
21749
21750
21751 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21752 PyObject *resultobj;
21753 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21754 long arg2 ;
21755 long arg3 ;
21756 bool result;
21757 PyObject * obj0 = 0 ;
21758 PyObject * obj1 = 0 ;
21759 PyObject * obj2 = 0 ;
21760 char *kwnames[] = {
21761 (char *) "self",(char *) "item",(char *) "data", NULL
21762 };
21763
21764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21767 arg2 = (long) SWIG_AsLong(obj1);
21768 if (PyErr_Occurred()) SWIG_fail;
21769 arg3 = (long) SWIG_AsLong(obj2);
21770 if (PyErr_Occurred()) SWIG_fail;
21771 {
21772 PyThreadState* __tstate = wxPyBeginAllowThreads();
21773 result = (bool)(arg1)->SetItemData(arg2,arg3);
21774
21775 wxPyEndAllowThreads(__tstate);
21776 if (PyErr_Occurred()) SWIG_fail;
21777 }
21778 {
21779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21780 }
21781 return resultobj;
21782 fail:
21783 return NULL;
21784 }
21785
21786
21787 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21788 PyObject *resultobj;
21789 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21790 long arg2 ;
21791 wxPoint result;
21792 PyObject * obj0 = 0 ;
21793 PyObject * obj1 = 0 ;
21794 char *kwnames[] = {
21795 (char *) "self",(char *) "item", NULL
21796 };
21797
21798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
21799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21801 arg2 = (long) SWIG_AsLong(obj1);
21802 if (PyErr_Occurred()) SWIG_fail;
21803 {
21804 PyThreadState* __tstate = wxPyBeginAllowThreads();
21805 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
21806
21807 wxPyEndAllowThreads(__tstate);
21808 if (PyErr_Occurred()) SWIG_fail;
21809 }
21810 {
21811 wxPoint * resultptr;
21812 resultptr = new wxPoint((wxPoint &) result);
21813 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21814 }
21815 return resultobj;
21816 fail:
21817 return NULL;
21818 }
21819
21820
21821 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21822 PyObject *resultobj;
21823 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21824 long arg2 ;
21825 int arg3 = (int) wxLIST_RECT_BOUNDS ;
21826 wxRect result;
21827 PyObject * obj0 = 0 ;
21828 PyObject * obj1 = 0 ;
21829 PyObject * obj2 = 0 ;
21830 char *kwnames[] = {
21831 (char *) "self",(char *) "item",(char *) "code", NULL
21832 };
21833
21834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
21835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21837 arg2 = (long) SWIG_AsLong(obj1);
21838 if (PyErr_Occurred()) SWIG_fail;
21839 if (obj2) {
21840 arg3 = (int) SWIG_AsInt(obj2);
21841 if (PyErr_Occurred()) SWIG_fail;
21842 }
21843 {
21844 PyThreadState* __tstate = wxPyBeginAllowThreads();
21845 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
21846
21847 wxPyEndAllowThreads(__tstate);
21848 if (PyErr_Occurred()) SWIG_fail;
21849 }
21850 {
21851 wxRect * resultptr;
21852 resultptr = new wxRect((wxRect &) result);
21853 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21854 }
21855 return resultobj;
21856 fail:
21857 return NULL;
21858 }
21859
21860
21861 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21862 PyObject *resultobj;
21863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21864 long arg2 ;
21865 wxPoint *arg3 = 0 ;
21866 bool result;
21867 wxPoint temp3 ;
21868 PyObject * obj0 = 0 ;
21869 PyObject * obj1 = 0 ;
21870 PyObject * obj2 = 0 ;
21871 char *kwnames[] = {
21872 (char *) "self",(char *) "item",(char *) "pos", NULL
21873 };
21874
21875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
21876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21878 arg2 = (long) SWIG_AsLong(obj1);
21879 if (PyErr_Occurred()) SWIG_fail;
21880 {
21881 arg3 = &temp3;
21882 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21883 }
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
21887
21888 wxPyEndAllowThreads(__tstate);
21889 if (PyErr_Occurred()) SWIG_fail;
21890 }
21891 {
21892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21893 }
21894 return resultobj;
21895 fail:
21896 return NULL;
21897 }
21898
21899
21900 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21901 PyObject *resultobj;
21902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21903 int result;
21904 PyObject * obj0 = 0 ;
21905 char *kwnames[] = {
21906 (char *) "self", NULL
21907 };
21908
21909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
21910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21912 {
21913 PyThreadState* __tstate = wxPyBeginAllowThreads();
21914 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
21915
21916 wxPyEndAllowThreads(__tstate);
21917 if (PyErr_Occurred()) SWIG_fail;
21918 }
21919 resultobj = SWIG_FromInt((int)result);
21920 return resultobj;
21921 fail:
21922 return NULL;
21923 }
21924
21925
21926 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj;
21928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21929 int result;
21930 PyObject * obj0 = 0 ;
21931 char *kwnames[] = {
21932 (char *) "self", NULL
21933 };
21934
21935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
21936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
21941
21942 wxPyEndAllowThreads(__tstate);
21943 if (PyErr_Occurred()) SWIG_fail;
21944 }
21945 resultobj = SWIG_FromInt((int)result);
21946 return resultobj;
21947 fail:
21948 return NULL;
21949 }
21950
21951
21952 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
21953 PyObject *resultobj;
21954 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21955 wxSize result;
21956 PyObject * obj0 = 0 ;
21957 char *kwnames[] = {
21958 (char *) "self", NULL
21959 };
21960
21961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
21962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21964 {
21965 PyThreadState* __tstate = wxPyBeginAllowThreads();
21966 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
21967
21968 wxPyEndAllowThreads(__tstate);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 }
21971 {
21972 wxSize * resultptr;
21973 resultptr = new wxSize((wxSize &) result);
21974 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
21975 }
21976 return resultobj;
21977 fail:
21978 return NULL;
21979 }
21980
21981
21982 static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
21983 PyObject *resultobj;
21984 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21985 int arg2 ;
21986 bool arg3 = (bool) False ;
21987 PyObject * obj0 = 0 ;
21988 PyObject * obj1 = 0 ;
21989 PyObject * obj2 = 0 ;
21990 char *kwnames[] = {
21991 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
21992 };
21993
21994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
21995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21997 arg2 = (int) SWIG_AsInt(obj1);
21998 if (PyErr_Occurred()) SWIG_fail;
21999 if (obj2) {
22000 arg3 = (bool) SWIG_AsBool(obj2);
22001 if (PyErr_Occurred()) SWIG_fail;
22002 }
22003 {
22004 PyThreadState* __tstate = wxPyBeginAllowThreads();
22005 (arg1)->SetItemSpacing(arg2,arg3);
22006
22007 wxPyEndAllowThreads(__tstate);
22008 if (PyErr_Occurred()) SWIG_fail;
22009 }
22010 Py_INCREF(Py_None); resultobj = Py_None;
22011 return resultobj;
22012 fail:
22013 return NULL;
22014 }
22015
22016
22017 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22018 PyObject *resultobj;
22019 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22020 int result;
22021 PyObject * obj0 = 0 ;
22022 char *kwnames[] = {
22023 (char *) "self", NULL
22024 };
22025
22026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22029 {
22030 PyThreadState* __tstate = wxPyBeginAllowThreads();
22031 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22032
22033 wxPyEndAllowThreads(__tstate);
22034 if (PyErr_Occurred()) SWIG_fail;
22035 }
22036 resultobj = SWIG_FromInt((int)result);
22037 return resultobj;
22038 fail:
22039 return NULL;
22040 }
22041
22042
22043 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22044 PyObject *resultobj;
22045 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22046 wxColour result;
22047 PyObject * obj0 = 0 ;
22048 char *kwnames[] = {
22049 (char *) "self", NULL
22050 };
22051
22052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22055 {
22056 PyThreadState* __tstate = wxPyBeginAllowThreads();
22057 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22058
22059 wxPyEndAllowThreads(__tstate);
22060 if (PyErr_Occurred()) SWIG_fail;
22061 }
22062 {
22063 wxColour * resultptr;
22064 resultptr = new wxColour((wxColour &) result);
22065 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22066 }
22067 return resultobj;
22068 fail:
22069 return NULL;
22070 }
22071
22072
22073 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22074 PyObject *resultobj;
22075 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22076 wxColour *arg2 = 0 ;
22077 wxColour temp2 ;
22078 PyObject * obj0 = 0 ;
22079 PyObject * obj1 = 0 ;
22080 char *kwnames[] = {
22081 (char *) "self",(char *) "col", NULL
22082 };
22083
22084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22087 {
22088 arg2 = &temp2;
22089 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22090 }
22091 {
22092 PyThreadState* __tstate = wxPyBeginAllowThreads();
22093 (arg1)->SetTextColour((wxColour const &)*arg2);
22094
22095 wxPyEndAllowThreads(__tstate);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 }
22098 Py_INCREF(Py_None); resultobj = Py_None;
22099 return resultobj;
22100 fail:
22101 return NULL;
22102 }
22103
22104
22105 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22106 PyObject *resultobj;
22107 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22108 long result;
22109 PyObject * obj0 = 0 ;
22110 char *kwnames[] = {
22111 (char *) "self", NULL
22112 };
22113
22114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22120
22121 wxPyEndAllowThreads(__tstate);
22122 if (PyErr_Occurred()) SWIG_fail;
22123 }
22124 resultobj = SWIG_FromLong((long)result);
22125 return resultobj;
22126 fail:
22127 return NULL;
22128 }
22129
22130
22131 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22132 PyObject *resultobj;
22133 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22134 long arg2 ;
22135 bool arg3 = (bool) True ;
22136 PyObject * obj0 = 0 ;
22137 PyObject * obj1 = 0 ;
22138 PyObject * obj2 = 0 ;
22139 char *kwnames[] = {
22140 (char *) "self",(char *) "style",(char *) "add", NULL
22141 };
22142
22143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22146 arg2 = (long) SWIG_AsLong(obj1);
22147 if (PyErr_Occurred()) SWIG_fail;
22148 if (obj2) {
22149 arg3 = (bool) SWIG_AsBool(obj2);
22150 if (PyErr_Occurred()) SWIG_fail;
22151 }
22152 {
22153 PyThreadState* __tstate = wxPyBeginAllowThreads();
22154 (arg1)->SetSingleStyle(arg2,arg3);
22155
22156 wxPyEndAllowThreads(__tstate);
22157 if (PyErr_Occurred()) SWIG_fail;
22158 }
22159 Py_INCREF(Py_None); resultobj = Py_None;
22160 return resultobj;
22161 fail:
22162 return NULL;
22163 }
22164
22165
22166 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22167 PyObject *resultobj;
22168 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22169 long arg2 ;
22170 PyObject * obj0 = 0 ;
22171 PyObject * obj1 = 0 ;
22172 char *kwnames[] = {
22173 (char *) "self",(char *) "style", NULL
22174 };
22175
22176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22179 arg2 = (long) SWIG_AsLong(obj1);
22180 if (PyErr_Occurred()) SWIG_fail;
22181 {
22182 PyThreadState* __tstate = wxPyBeginAllowThreads();
22183 (arg1)->SetWindowStyleFlag(arg2);
22184
22185 wxPyEndAllowThreads(__tstate);
22186 if (PyErr_Occurred()) SWIG_fail;
22187 }
22188 Py_INCREF(Py_None); resultobj = Py_None;
22189 return resultobj;
22190 fail:
22191 return NULL;
22192 }
22193
22194
22195 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22196 PyObject *resultobj;
22197 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22198 long arg2 ;
22199 int arg3 = (int) wxLIST_NEXT_ALL ;
22200 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22201 long result;
22202 PyObject * obj0 = 0 ;
22203 PyObject * obj1 = 0 ;
22204 PyObject * obj2 = 0 ;
22205 PyObject * obj3 = 0 ;
22206 char *kwnames[] = {
22207 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22208 };
22209
22210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22213 arg2 = (long) SWIG_AsLong(obj1);
22214 if (PyErr_Occurred()) SWIG_fail;
22215 if (obj2) {
22216 arg3 = (int) SWIG_AsInt(obj2);
22217 if (PyErr_Occurred()) SWIG_fail;
22218 }
22219 if (obj3) {
22220 arg4 = (int) SWIG_AsInt(obj3);
22221 if (PyErr_Occurred()) SWIG_fail;
22222 }
22223 {
22224 PyThreadState* __tstate = wxPyBeginAllowThreads();
22225 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22226
22227 wxPyEndAllowThreads(__tstate);
22228 if (PyErr_Occurred()) SWIG_fail;
22229 }
22230 resultobj = SWIG_FromLong((long)result);
22231 return resultobj;
22232 fail:
22233 return NULL;
22234 }
22235
22236
22237 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22238 PyObject *resultobj;
22239 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22240 int arg2 ;
22241 wxImageList *result;
22242 PyObject * obj0 = 0 ;
22243 PyObject * obj1 = 0 ;
22244 char *kwnames[] = {
22245 (char *) "self",(char *) "which", NULL
22246 };
22247
22248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22251 arg2 = (int) SWIG_AsInt(obj1);
22252 if (PyErr_Occurred()) SWIG_fail;
22253 {
22254 PyThreadState* __tstate = wxPyBeginAllowThreads();
22255 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22256
22257 wxPyEndAllowThreads(__tstate);
22258 if (PyErr_Occurred()) SWIG_fail;
22259 }
22260 {
22261 resultobj = wxPyMake_wxObject(result);
22262 }
22263 return resultobj;
22264 fail:
22265 return NULL;
22266 }
22267
22268
22269 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22270 PyObject *resultobj;
22271 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22272 wxImageList *arg2 = (wxImageList *) 0 ;
22273 int arg3 ;
22274 PyObject * obj0 = 0 ;
22275 PyObject * obj1 = 0 ;
22276 PyObject * obj2 = 0 ;
22277 char *kwnames[] = {
22278 (char *) "self",(char *) "imageList",(char *) "which", NULL
22279 };
22280
22281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22286 arg3 = (int) SWIG_AsInt(obj2);
22287 if (PyErr_Occurred()) SWIG_fail;
22288 {
22289 PyThreadState* __tstate = wxPyBeginAllowThreads();
22290 (arg1)->SetImageList(arg2,arg3);
22291
22292 wxPyEndAllowThreads(__tstate);
22293 if (PyErr_Occurred()) SWIG_fail;
22294 }
22295 Py_INCREF(Py_None); resultobj = Py_None;
22296 return resultobj;
22297 fail:
22298 return NULL;
22299 }
22300
22301
22302 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22303 PyObject *resultobj;
22304 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22305 wxImageList *arg2 = (wxImageList *) 0 ;
22306 int arg3 ;
22307 PyObject * obj0 = 0 ;
22308 PyObject * obj1 = 0 ;
22309 PyObject * obj2 = 0 ;
22310 char *kwnames[] = {
22311 (char *) "self",(char *) "imageList",(char *) "which", NULL
22312 };
22313
22314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22317 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22318 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22319 arg3 = (int) SWIG_AsInt(obj2);
22320 if (PyErr_Occurred()) SWIG_fail;
22321 {
22322 PyThreadState* __tstate = wxPyBeginAllowThreads();
22323 (arg1)->AssignImageList(arg2,arg3);
22324
22325 wxPyEndAllowThreads(__tstate);
22326 if (PyErr_Occurred()) SWIG_fail;
22327 }
22328 Py_INCREF(Py_None); resultobj = Py_None;
22329 return resultobj;
22330 fail:
22331 return NULL;
22332 }
22333
22334
22335 static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) {
22336 PyObject *resultobj;
22337 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22338 bool result;
22339 PyObject * obj0 = 0 ;
22340 char *kwnames[] = {
22341 (char *) "self", NULL
22342 };
22343
22344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22347 {
22348 PyThreadState* __tstate = wxPyBeginAllowThreads();
22349 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22350
22351 wxPyEndAllowThreads(__tstate);
22352 if (PyErr_Occurred()) SWIG_fail;
22353 }
22354 {
22355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22356 }
22357 return resultobj;
22358 fail:
22359 return NULL;
22360 }
22361
22362
22363 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
22364 PyObject *resultobj;
22365 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22366 bool result;
22367 PyObject * obj0 = 0 ;
22368 char *kwnames[] = {
22369 (char *) "self", NULL
22370 };
22371
22372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22375 {
22376 PyThreadState* __tstate = wxPyBeginAllowThreads();
22377 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22378
22379 wxPyEndAllowThreads(__tstate);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 }
22382 {
22383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22384 }
22385 return resultobj;
22386 fail:
22387 return NULL;
22388 }
22389
22390
22391 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22392 PyObject *resultobj;
22393 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22394 long arg2 ;
22395 PyObject * obj0 = 0 ;
22396 PyObject * obj1 = 0 ;
22397 char *kwnames[] = {
22398 (char *) "self",(char *) "item", NULL
22399 };
22400
22401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22404 arg2 = (long) SWIG_AsLong(obj1);
22405 if (PyErr_Occurred()) SWIG_fail;
22406 {
22407 PyThreadState* __tstate = wxPyBeginAllowThreads();
22408 (arg1)->RefreshItem(arg2);
22409
22410 wxPyEndAllowThreads(__tstate);
22411 if (PyErr_Occurred()) SWIG_fail;
22412 }
22413 Py_INCREF(Py_None); resultobj = Py_None;
22414 return resultobj;
22415 fail:
22416 return NULL;
22417 }
22418
22419
22420 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22421 PyObject *resultobj;
22422 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22423 long arg2 ;
22424 long arg3 ;
22425 PyObject * obj0 = 0 ;
22426 PyObject * obj1 = 0 ;
22427 PyObject * obj2 = 0 ;
22428 char *kwnames[] = {
22429 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22430 };
22431
22432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22435 arg2 = (long) SWIG_AsLong(obj1);
22436 if (PyErr_Occurred()) SWIG_fail;
22437 arg3 = (long) SWIG_AsLong(obj2);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 {
22440 PyThreadState* __tstate = wxPyBeginAllowThreads();
22441 (arg1)->RefreshItems(arg2,arg3);
22442
22443 wxPyEndAllowThreads(__tstate);
22444 if (PyErr_Occurred()) SWIG_fail;
22445 }
22446 Py_INCREF(Py_None); resultobj = Py_None;
22447 return resultobj;
22448 fail:
22449 return NULL;
22450 }
22451
22452
22453 static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
22454 PyObject *resultobj;
22455 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22456 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22457 bool result;
22458 PyObject * obj0 = 0 ;
22459 PyObject * obj1 = 0 ;
22460 char *kwnames[] = {
22461 (char *) "self",(char *) "flag", NULL
22462 };
22463
22464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22467 if (obj1) {
22468 arg2 = (int) SWIG_AsInt(obj1);
22469 if (PyErr_Occurred()) SWIG_fail;
22470 }
22471 {
22472 PyThreadState* __tstate = wxPyBeginAllowThreads();
22473 result = (bool)(arg1)->Arrange(arg2);
22474
22475 wxPyEndAllowThreads(__tstate);
22476 if (PyErr_Occurred()) SWIG_fail;
22477 }
22478 {
22479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22480 }
22481 return resultobj;
22482 fail:
22483 return NULL;
22484 }
22485
22486
22487 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22488 PyObject *resultobj;
22489 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22490 long arg2 ;
22491 bool result;
22492 PyObject * obj0 = 0 ;
22493 PyObject * obj1 = 0 ;
22494 char *kwnames[] = {
22495 (char *) "self",(char *) "item", NULL
22496 };
22497
22498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22501 arg2 = (long) SWIG_AsLong(obj1);
22502 if (PyErr_Occurred()) SWIG_fail;
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
22505 result = (bool)(arg1)->DeleteItem(arg2);
22506
22507 wxPyEndAllowThreads(__tstate);
22508 if (PyErr_Occurred()) SWIG_fail;
22509 }
22510 {
22511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22512 }
22513 return resultobj;
22514 fail:
22515 return NULL;
22516 }
22517
22518
22519 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22520 PyObject *resultobj;
22521 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22522 bool result;
22523 PyObject * obj0 = 0 ;
22524 char *kwnames[] = {
22525 (char *) "self", NULL
22526 };
22527
22528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22531 {
22532 PyThreadState* __tstate = wxPyBeginAllowThreads();
22533 result = (bool)(arg1)->DeleteAllItems();
22534
22535 wxPyEndAllowThreads(__tstate);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 }
22538 {
22539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22540 }
22541 return resultobj;
22542 fail:
22543 return NULL;
22544 }
22545
22546
22547 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22548 PyObject *resultobj;
22549 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22550 int arg2 ;
22551 bool result;
22552 PyObject * obj0 = 0 ;
22553 PyObject * obj1 = 0 ;
22554 char *kwnames[] = {
22555 (char *) "self",(char *) "col", NULL
22556 };
22557
22558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22561 arg2 = (int) SWIG_AsInt(obj1);
22562 if (PyErr_Occurred()) SWIG_fail;
22563 {
22564 PyThreadState* __tstate = wxPyBeginAllowThreads();
22565 result = (bool)(arg1)->DeleteColumn(arg2);
22566
22567 wxPyEndAllowThreads(__tstate);
22568 if (PyErr_Occurred()) SWIG_fail;
22569 }
22570 {
22571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22572 }
22573 return resultobj;
22574 fail:
22575 return NULL;
22576 }
22577
22578
22579 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
22580 PyObject *resultobj;
22581 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22582 bool result;
22583 PyObject * obj0 = 0 ;
22584 char *kwnames[] = {
22585 (char *) "self", NULL
22586 };
22587
22588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
22589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22591 {
22592 PyThreadState* __tstate = wxPyBeginAllowThreads();
22593 result = (bool)(arg1)->DeleteAllColumns();
22594
22595 wxPyEndAllowThreads(__tstate);
22596 if (PyErr_Occurred()) SWIG_fail;
22597 }
22598 {
22599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22600 }
22601 return resultobj;
22602 fail:
22603 return NULL;
22604 }
22605
22606
22607 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
22608 PyObject *resultobj;
22609 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22610 PyObject * obj0 = 0 ;
22611 char *kwnames[] = {
22612 (char *) "self", NULL
22613 };
22614
22615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
22616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22618 {
22619 PyThreadState* __tstate = wxPyBeginAllowThreads();
22620 (arg1)->ClearAll();
22621
22622 wxPyEndAllowThreads(__tstate);
22623 if (PyErr_Occurred()) SWIG_fail;
22624 }
22625 Py_INCREF(Py_None); resultobj = Py_None;
22626 return resultobj;
22627 fail:
22628 return NULL;
22629 }
22630
22631
22632 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
22633 PyObject *resultobj;
22634 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22635 long arg2 ;
22636 PyObject * obj0 = 0 ;
22637 PyObject * obj1 = 0 ;
22638 char *kwnames[] = {
22639 (char *) "self",(char *) "item", NULL
22640 };
22641
22642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
22643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22645 arg2 = (long) SWIG_AsLong(obj1);
22646 if (PyErr_Occurred()) SWIG_fail;
22647 {
22648 PyThreadState* __tstate = wxPyBeginAllowThreads();
22649 (arg1)->EditLabel(arg2);
22650
22651 wxPyEndAllowThreads(__tstate);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
22654 Py_INCREF(Py_None); resultobj = Py_None;
22655 return resultobj;
22656 fail:
22657 return NULL;
22658 }
22659
22660
22661 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
22662 PyObject *resultobj;
22663 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22664 long arg2 ;
22665 bool result;
22666 PyObject * obj0 = 0 ;
22667 PyObject * obj1 = 0 ;
22668 char *kwnames[] = {
22669 (char *) "self",(char *) "item", NULL
22670 };
22671
22672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
22673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22675 arg2 = (long) SWIG_AsLong(obj1);
22676 if (PyErr_Occurred()) SWIG_fail;
22677 {
22678 PyThreadState* __tstate = wxPyBeginAllowThreads();
22679 result = (bool)(arg1)->EnsureVisible(arg2);
22680
22681 wxPyEndAllowThreads(__tstate);
22682 if (PyErr_Occurred()) SWIG_fail;
22683 }
22684 {
22685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22686 }
22687 return resultobj;
22688 fail:
22689 return NULL;
22690 }
22691
22692
22693 static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22694 PyObject *resultobj;
22695 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22696 long arg2 ;
22697 wxString *arg3 = 0 ;
22698 bool arg4 = (bool) False ;
22699 long result;
22700 bool temp3 = False ;
22701 PyObject * obj0 = 0 ;
22702 PyObject * obj1 = 0 ;
22703 PyObject * obj2 = 0 ;
22704 PyObject * obj3 = 0 ;
22705 char *kwnames[] = {
22706 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
22707 };
22708
22709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22712 arg2 = (long) SWIG_AsLong(obj1);
22713 if (PyErr_Occurred()) SWIG_fail;
22714 {
22715 arg3 = wxString_in_helper(obj2);
22716 if (arg3 == NULL) SWIG_fail;
22717 temp3 = True;
22718 }
22719 if (obj3) {
22720 arg4 = (bool) SWIG_AsBool(obj3);
22721 if (PyErr_Occurred()) SWIG_fail;
22722 }
22723 {
22724 PyThreadState* __tstate = wxPyBeginAllowThreads();
22725 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
22726
22727 wxPyEndAllowThreads(__tstate);
22728 if (PyErr_Occurred()) SWIG_fail;
22729 }
22730 resultobj = SWIG_FromLong((long)result);
22731 {
22732 if (temp3)
22733 delete arg3;
22734 }
22735 return resultobj;
22736 fail:
22737 {
22738 if (temp3)
22739 delete arg3;
22740 }
22741 return NULL;
22742 }
22743
22744
22745 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
22746 PyObject *resultobj;
22747 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22748 long arg2 ;
22749 long arg3 ;
22750 long result;
22751 PyObject * obj0 = 0 ;
22752 PyObject * obj1 = 0 ;
22753 PyObject * obj2 = 0 ;
22754 char *kwnames[] = {
22755 (char *) "self",(char *) "start",(char *) "data", NULL
22756 };
22757
22758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22761 arg2 = (long) SWIG_AsLong(obj1);
22762 if (PyErr_Occurred()) SWIG_fail;
22763 arg3 = (long) SWIG_AsLong(obj2);
22764 if (PyErr_Occurred()) SWIG_fail;
22765 {
22766 PyThreadState* __tstate = wxPyBeginAllowThreads();
22767 result = (long)(arg1)->FindItem(arg2,arg3);
22768
22769 wxPyEndAllowThreads(__tstate);
22770 if (PyErr_Occurred()) SWIG_fail;
22771 }
22772 resultobj = SWIG_FromLong((long)result);
22773 return resultobj;
22774 fail:
22775 return NULL;
22776 }
22777
22778
22779 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
22780 PyObject *resultobj;
22781 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22782 long arg2 ;
22783 wxPoint *arg3 = 0 ;
22784 int arg4 ;
22785 long result;
22786 wxPoint temp3 ;
22787 PyObject * obj0 = 0 ;
22788 PyObject * obj1 = 0 ;
22789 PyObject * obj2 = 0 ;
22790 PyObject * obj3 = 0 ;
22791 char *kwnames[] = {
22792 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
22793 };
22794
22795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22798 arg2 = (long) SWIG_AsLong(obj1);
22799 if (PyErr_Occurred()) SWIG_fail;
22800 {
22801 arg3 = &temp3;
22802 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22803 }
22804 arg4 = (int) SWIG_AsInt(obj3);
22805 if (PyErr_Occurred()) SWIG_fail;
22806 {
22807 PyThreadState* __tstate = wxPyBeginAllowThreads();
22808 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
22809
22810 wxPyEndAllowThreads(__tstate);
22811 if (PyErr_Occurred()) SWIG_fail;
22812 }
22813 resultobj = SWIG_FromLong((long)result);
22814 return resultobj;
22815 fail:
22816 return NULL;
22817 }
22818
22819
22820 static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
22821 PyObject *resultobj;
22822 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22823 wxPoint *arg2 = 0 ;
22824 int *arg3 = 0 ;
22825 long result;
22826 wxPoint temp2 ;
22827 int temp3 ;
22828 PyObject * obj0 = 0 ;
22829 PyObject * obj1 = 0 ;
22830 char *kwnames[] = {
22831 (char *) "self",(char *) "point", NULL
22832 };
22833
22834 arg3 = &temp3;
22835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
22836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22838 {
22839 arg2 = &temp2;
22840 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22841 }
22842 {
22843 PyThreadState* __tstate = wxPyBeginAllowThreads();
22844 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
22845
22846 wxPyEndAllowThreads(__tstate);
22847 if (PyErr_Occurred()) SWIG_fail;
22848 }
22849 resultobj = SWIG_FromLong((long)result);
22850 {
22851 PyObject *o = PyInt_FromLong((long) (*arg3));
22852 resultobj = t_output_helper(resultobj,o);
22853 }
22854 return resultobj;
22855 fail:
22856 return NULL;
22857 }
22858
22859
22860 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22861 PyObject *resultobj;
22862 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22863 wxListItem *arg2 = 0 ;
22864 long result;
22865 PyObject * obj0 = 0 ;
22866 PyObject * obj1 = 0 ;
22867 char *kwnames[] = {
22868 (char *) "self",(char *) "info", NULL
22869 };
22870
22871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
22872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22874 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
22875 SWIG_POINTER_EXCEPTION | 0)) == -1)
22876 SWIG_fail;
22877 if (arg2 == NULL) {
22878 PyErr_SetString(PyExc_TypeError,"null reference");
22879 SWIG_fail;
22880 }
22881 {
22882 PyThreadState* __tstate = wxPyBeginAllowThreads();
22883 result = (long)(arg1)->InsertItem(*arg2);
22884
22885 wxPyEndAllowThreads(__tstate);
22886 if (PyErr_Occurred()) SWIG_fail;
22887 }
22888 resultobj = SWIG_FromLong((long)result);
22889 return resultobj;
22890 fail:
22891 return NULL;
22892 }
22893
22894
22895 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22896 PyObject *resultobj;
22897 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22898 long arg2 ;
22899 wxString *arg3 = 0 ;
22900 long result;
22901 bool temp3 = False ;
22902 PyObject * obj0 = 0 ;
22903 PyObject * obj1 = 0 ;
22904 PyObject * obj2 = 0 ;
22905 char *kwnames[] = {
22906 (char *) "self",(char *) "index",(char *) "label", NULL
22907 };
22908
22909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22912 arg2 = (long) SWIG_AsLong(obj1);
22913 if (PyErr_Occurred()) SWIG_fail;
22914 {
22915 arg3 = wxString_in_helper(obj2);
22916 if (arg3 == NULL) SWIG_fail;
22917 temp3 = True;
22918 }
22919 {
22920 PyThreadState* __tstate = wxPyBeginAllowThreads();
22921 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
22922
22923 wxPyEndAllowThreads(__tstate);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 }
22926 resultobj = SWIG_FromLong((long)result);
22927 {
22928 if (temp3)
22929 delete arg3;
22930 }
22931 return resultobj;
22932 fail:
22933 {
22934 if (temp3)
22935 delete arg3;
22936 }
22937 return NULL;
22938 }
22939
22940
22941 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22942 PyObject *resultobj;
22943 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22944 long arg2 ;
22945 int arg3 ;
22946 long result;
22947 PyObject * obj0 = 0 ;
22948 PyObject * obj1 = 0 ;
22949 PyObject * obj2 = 0 ;
22950 char *kwnames[] = {
22951 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
22952 };
22953
22954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22957 arg2 = (long) SWIG_AsLong(obj1);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 arg3 = (int) SWIG_AsInt(obj2);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 {
22962 PyThreadState* __tstate = wxPyBeginAllowThreads();
22963 result = (long)(arg1)->InsertItem(arg2,arg3);
22964
22965 wxPyEndAllowThreads(__tstate);
22966 if (PyErr_Occurred()) SWIG_fail;
22967 }
22968 resultobj = SWIG_FromLong((long)result);
22969 return resultobj;
22970 fail:
22971 return NULL;
22972 }
22973
22974
22975 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22976 PyObject *resultobj;
22977 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22978 long arg2 ;
22979 wxString *arg3 = 0 ;
22980 int arg4 ;
22981 long result;
22982 bool temp3 = False ;
22983 PyObject * obj0 = 0 ;
22984 PyObject * obj1 = 0 ;
22985 PyObject * obj2 = 0 ;
22986 PyObject * obj3 = 0 ;
22987 char *kwnames[] = {
22988 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
22989 };
22990
22991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22994 arg2 = (long) SWIG_AsLong(obj1);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 {
22997 arg3 = wxString_in_helper(obj2);
22998 if (arg3 == NULL) SWIG_fail;
22999 temp3 = True;
23000 }
23001 arg4 = (int) SWIG_AsInt(obj3);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 {
23004 PyThreadState* __tstate = wxPyBeginAllowThreads();
23005 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23006
23007 wxPyEndAllowThreads(__tstate);
23008 if (PyErr_Occurred()) SWIG_fail;
23009 }
23010 resultobj = SWIG_FromLong((long)result);
23011 {
23012 if (temp3)
23013 delete arg3;
23014 }
23015 return resultobj;
23016 fail:
23017 {
23018 if (temp3)
23019 delete arg3;
23020 }
23021 return NULL;
23022 }
23023
23024
23025 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23026 PyObject *resultobj;
23027 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23028 long arg2 ;
23029 wxListItem *arg3 = 0 ;
23030 long result;
23031 PyObject * obj0 = 0 ;
23032 PyObject * obj1 = 0 ;
23033 PyObject * obj2 = 0 ;
23034 char *kwnames[] = {
23035 (char *) "self",(char *) "col",(char *) "info", NULL
23036 };
23037
23038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23041 arg2 = (long) SWIG_AsLong(obj1);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23044 SWIG_POINTER_EXCEPTION | 0)) == -1)
23045 SWIG_fail;
23046 if (arg3 == NULL) {
23047 PyErr_SetString(PyExc_TypeError,"null reference");
23048 SWIG_fail;
23049 }
23050 {
23051 PyThreadState* __tstate = wxPyBeginAllowThreads();
23052 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23053
23054 wxPyEndAllowThreads(__tstate);
23055 if (PyErr_Occurred()) SWIG_fail;
23056 }
23057 resultobj = SWIG_FromLong((long)result);
23058 return resultobj;
23059 fail:
23060 return NULL;
23061 }
23062
23063
23064 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
23065 PyObject *resultobj;
23066 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23067 long arg2 ;
23068 wxString *arg3 = 0 ;
23069 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23070 int arg5 = (int) -1 ;
23071 long result;
23072 bool temp3 = False ;
23073 PyObject * obj0 = 0 ;
23074 PyObject * obj1 = 0 ;
23075 PyObject * obj2 = 0 ;
23076 PyObject * obj3 = 0 ;
23077 PyObject * obj4 = 0 ;
23078 char *kwnames[] = {
23079 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23080 };
23081
23082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23085 arg2 = (long) SWIG_AsLong(obj1);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 {
23088 arg3 = wxString_in_helper(obj2);
23089 if (arg3 == NULL) SWIG_fail;
23090 temp3 = True;
23091 }
23092 if (obj3) {
23093 arg4 = (int) SWIG_AsInt(obj3);
23094 if (PyErr_Occurred()) SWIG_fail;
23095 }
23096 if (obj4) {
23097 arg5 = (int) SWIG_AsInt(obj4);
23098 if (PyErr_Occurred()) SWIG_fail;
23099 }
23100 {
23101 PyThreadState* __tstate = wxPyBeginAllowThreads();
23102 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23103
23104 wxPyEndAllowThreads(__tstate);
23105 if (PyErr_Occurred()) SWIG_fail;
23106 }
23107 resultobj = SWIG_FromLong((long)result);
23108 {
23109 if (temp3)
23110 delete arg3;
23111 }
23112 return resultobj;
23113 fail:
23114 {
23115 if (temp3)
23116 delete arg3;
23117 }
23118 return NULL;
23119 }
23120
23121
23122 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23123 PyObject *resultobj;
23124 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23125 long arg2 ;
23126 PyObject * obj0 = 0 ;
23127 PyObject * obj1 = 0 ;
23128 char *kwnames[] = {
23129 (char *) "self",(char *) "count", NULL
23130 };
23131
23132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23135 arg2 = (long) SWIG_AsLong(obj1);
23136 if (PyErr_Occurred()) SWIG_fail;
23137 {
23138 PyThreadState* __tstate = wxPyBeginAllowThreads();
23139 (arg1)->SetItemCount(arg2);
23140
23141 wxPyEndAllowThreads(__tstate);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 }
23144 Py_INCREF(Py_None); resultobj = Py_None;
23145 return resultobj;
23146 fail:
23147 return NULL;
23148 }
23149
23150
23151 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
23152 PyObject *resultobj;
23153 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23154 int arg2 ;
23155 int arg3 ;
23156 bool result;
23157 PyObject * obj0 = 0 ;
23158 PyObject * obj1 = 0 ;
23159 PyObject * obj2 = 0 ;
23160 char *kwnames[] = {
23161 (char *) "self",(char *) "dx",(char *) "dy", NULL
23162 };
23163
23164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23167 arg2 = (int) SWIG_AsInt(obj1);
23168 if (PyErr_Occurred()) SWIG_fail;
23169 arg3 = (int) SWIG_AsInt(obj2);
23170 if (PyErr_Occurred()) SWIG_fail;
23171 {
23172 PyThreadState* __tstate = wxPyBeginAllowThreads();
23173 result = (bool)(arg1)->ScrollList(arg2,arg3);
23174
23175 wxPyEndAllowThreads(__tstate);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
23178 {
23179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23180 }
23181 return resultobj;
23182 fail:
23183 return NULL;
23184 }
23185
23186
23187 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23188 PyObject *resultobj;
23189 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23190 long arg2 ;
23191 wxColour *arg3 = 0 ;
23192 wxColour temp3 ;
23193 PyObject * obj0 = 0 ;
23194 PyObject * obj1 = 0 ;
23195 PyObject * obj2 = 0 ;
23196 char *kwnames[] = {
23197 (char *) "self",(char *) "item",(char *) "col", NULL
23198 };
23199
23200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23203 arg2 = (long) SWIG_AsLong(obj1);
23204 if (PyErr_Occurred()) SWIG_fail;
23205 {
23206 arg3 = &temp3;
23207 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23208 }
23209 {
23210 PyThreadState* __tstate = wxPyBeginAllowThreads();
23211 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23212
23213 wxPyEndAllowThreads(__tstate);
23214 if (PyErr_Occurred()) SWIG_fail;
23215 }
23216 Py_INCREF(Py_None); resultobj = Py_None;
23217 return resultobj;
23218 fail:
23219 return NULL;
23220 }
23221
23222
23223 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23224 PyObject *resultobj;
23225 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23226 long arg2 ;
23227 wxColour result;
23228 PyObject * obj0 = 0 ;
23229 PyObject * obj1 = 0 ;
23230 char *kwnames[] = {
23231 (char *) "self",(char *) "item", NULL
23232 };
23233
23234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23237 arg2 = (long) SWIG_AsLong(obj1);
23238 if (PyErr_Occurred()) SWIG_fail;
23239 {
23240 PyThreadState* __tstate = wxPyBeginAllowThreads();
23241 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23242
23243 wxPyEndAllowThreads(__tstate);
23244 if (PyErr_Occurred()) SWIG_fail;
23245 }
23246 {
23247 wxColour * resultptr;
23248 resultptr = new wxColour((wxColour &) result);
23249 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23250 }
23251 return resultobj;
23252 fail:
23253 return NULL;
23254 }
23255
23256
23257 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23258 PyObject *resultobj;
23259 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23260 long arg2 ;
23261 wxColour *arg3 = 0 ;
23262 wxColour temp3 ;
23263 PyObject * obj0 = 0 ;
23264 PyObject * obj1 = 0 ;
23265 PyObject * obj2 = 0 ;
23266 char *kwnames[] = {
23267 (char *) "self",(char *) "item",(char *) "col", NULL
23268 };
23269
23270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23273 arg2 = (long) SWIG_AsLong(obj1);
23274 if (PyErr_Occurred()) SWIG_fail;
23275 {
23276 arg3 = &temp3;
23277 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23278 }
23279 {
23280 PyThreadState* __tstate = wxPyBeginAllowThreads();
23281 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23282
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 Py_INCREF(Py_None); resultobj = Py_None;
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23294 PyObject *resultobj;
23295 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23296 long arg2 ;
23297 wxColour result;
23298 PyObject * obj0 = 0 ;
23299 PyObject * obj1 = 0 ;
23300 char *kwnames[] = {
23301 (char *) "self",(char *) "item", NULL
23302 };
23303
23304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23307 arg2 = (long) SWIG_AsLong(obj1);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 {
23310 PyThreadState* __tstate = wxPyBeginAllowThreads();
23311 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23312
23313 wxPyEndAllowThreads(__tstate);
23314 if (PyErr_Occurred()) SWIG_fail;
23315 }
23316 {
23317 wxColour * resultptr;
23318 resultptr = new wxColour((wxColour &) result);
23319 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23320 }
23321 return resultobj;
23322 fail:
23323 return NULL;
23324 }
23325
23326
23327 static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
23328 PyObject *resultobj;
23329 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23330 PyObject *arg2 = (PyObject *) 0 ;
23331 bool result;
23332 PyObject * obj0 = 0 ;
23333 PyObject * obj1 = 0 ;
23334 char *kwnames[] = {
23335 (char *) "self",(char *) "func", NULL
23336 };
23337
23338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23341 arg2 = obj1;
23342 {
23343 PyThreadState* __tstate = wxPyBeginAllowThreads();
23344 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23345
23346 wxPyEndAllowThreads(__tstate);
23347 if (PyErr_Occurred()) SWIG_fail;
23348 }
23349 {
23350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23351 }
23352 return resultobj;
23353 fail:
23354 return NULL;
23355 }
23356
23357
23358 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
23359 PyObject *resultobj;
23360 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23361 wxWindow *result;
23362 PyObject * obj0 = 0 ;
23363 char *kwnames[] = {
23364 (char *) "self", NULL
23365 };
23366
23367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23370 {
23371 PyThreadState* __tstate = wxPyBeginAllowThreads();
23372 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23373
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
23377 {
23378 resultobj = wxPyMake_wxObject(result);
23379 }
23380 return resultobj;
23381 fail:
23382 return NULL;
23383 }
23384
23385
23386 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
23387 PyObject *resultobj;
23388 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23389 wxVisualAttributes result;
23390 PyObject * obj0 = 0 ;
23391 char *kwnames[] = {
23392 (char *) "variant", NULL
23393 };
23394
23395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23396 if (obj0) {
23397 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
23398 if (PyErr_Occurred()) SWIG_fail;
23399 }
23400 {
23401 PyThreadState* __tstate = wxPyBeginAllowThreads();
23402 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23403
23404 wxPyEndAllowThreads(__tstate);
23405 if (PyErr_Occurred()) SWIG_fail;
23406 }
23407 {
23408 wxVisualAttributes * resultptr;
23409 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23410 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23411 }
23412 return resultobj;
23413 fail:
23414 return NULL;
23415 }
23416
23417
23418 static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
23419 PyObject *obj;
23420 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23421 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23422 Py_INCREF(obj);
23423 return Py_BuildValue((char *)"");
23424 }
23425 static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23426 PyObject *resultobj;
23427 wxWindow *arg1 = (wxWindow *) 0 ;
23428 int arg2 = (int) -1 ;
23429 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23430 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23431 wxSize const &arg4_defvalue = wxDefaultSize ;
23432 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23433 long arg5 = (long) wxLC_REPORT ;
23434 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23435 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23436 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23437 wxString *arg7 = (wxString *) &arg7_defvalue ;
23438 wxListView *result;
23439 wxPoint temp3 ;
23440 wxSize temp4 ;
23441 bool temp7 = False ;
23442 PyObject * obj0 = 0 ;
23443 PyObject * obj1 = 0 ;
23444 PyObject * obj2 = 0 ;
23445 PyObject * obj3 = 0 ;
23446 PyObject * obj4 = 0 ;
23447 PyObject * obj5 = 0 ;
23448 PyObject * obj6 = 0 ;
23449 char *kwnames[] = {
23450 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23451 };
23452
23453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23456 if (obj1) {
23457 arg2 = (int) SWIG_AsInt(obj1);
23458 if (PyErr_Occurred()) SWIG_fail;
23459 }
23460 if (obj2) {
23461 {
23462 arg3 = &temp3;
23463 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23464 }
23465 }
23466 if (obj3) {
23467 {
23468 arg4 = &temp4;
23469 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23470 }
23471 }
23472 if (obj4) {
23473 arg5 = (long) SWIG_AsLong(obj4);
23474 if (PyErr_Occurred()) SWIG_fail;
23475 }
23476 if (obj5) {
23477 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23478 SWIG_POINTER_EXCEPTION | 0)) == -1)
23479 SWIG_fail;
23480 if (arg6 == NULL) {
23481 PyErr_SetString(PyExc_TypeError,"null reference");
23482 SWIG_fail;
23483 }
23484 }
23485 if (obj6) {
23486 {
23487 arg7 = wxString_in_helper(obj6);
23488 if (arg7 == NULL) SWIG_fail;
23489 temp7 = True;
23490 }
23491 }
23492 {
23493 PyThreadState* __tstate = wxPyBeginAllowThreads();
23494 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23495
23496 wxPyEndAllowThreads(__tstate);
23497 if (PyErr_Occurred()) SWIG_fail;
23498 }
23499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23500 {
23501 if (temp7)
23502 delete arg7;
23503 }
23504 return resultobj;
23505 fail:
23506 {
23507 if (temp7)
23508 delete arg7;
23509 }
23510 return NULL;
23511 }
23512
23513
23514 static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23515 PyObject *resultobj;
23516 wxListView *result;
23517 char *kwnames[] = {
23518 NULL
23519 };
23520
23521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23522 {
23523 PyThreadState* __tstate = wxPyBeginAllowThreads();
23524 result = (wxListView *)new wxListView();
23525
23526 wxPyEndAllowThreads(__tstate);
23527 if (PyErr_Occurred()) SWIG_fail;
23528 }
23529 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23530 return resultobj;
23531 fail:
23532 return NULL;
23533 }
23534
23535
23536 static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23537 PyObject *resultobj;
23538 wxListView *arg1 = (wxListView *) 0 ;
23539 wxWindow *arg2 = (wxWindow *) 0 ;
23540 int arg3 = (int) -1 ;
23541 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23542 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23543 wxSize const &arg5_defvalue = wxDefaultSize ;
23544 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23545 long arg6 = (long) wxLC_REPORT ;
23546 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23547 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23548 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
23549 wxString *arg8 = (wxString *) &arg8_defvalue ;
23550 bool result;
23551 wxPoint temp4 ;
23552 wxSize temp5 ;
23553 bool temp8 = False ;
23554 PyObject * obj0 = 0 ;
23555 PyObject * obj1 = 0 ;
23556 PyObject * obj2 = 0 ;
23557 PyObject * obj3 = 0 ;
23558 PyObject * obj4 = 0 ;
23559 PyObject * obj5 = 0 ;
23560 PyObject * obj6 = 0 ;
23561 PyObject * obj7 = 0 ;
23562 char *kwnames[] = {
23563 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23564 };
23565
23566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23569 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23571 if (obj2) {
23572 arg3 = (int) SWIG_AsInt(obj2);
23573 if (PyErr_Occurred()) SWIG_fail;
23574 }
23575 if (obj3) {
23576 {
23577 arg4 = &temp4;
23578 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23579 }
23580 }
23581 if (obj4) {
23582 {
23583 arg5 = &temp5;
23584 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23585 }
23586 }
23587 if (obj5) {
23588 arg6 = (long) SWIG_AsLong(obj5);
23589 if (PyErr_Occurred()) SWIG_fail;
23590 }
23591 if (obj6) {
23592 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23593 SWIG_POINTER_EXCEPTION | 0)) == -1)
23594 SWIG_fail;
23595 if (arg7 == NULL) {
23596 PyErr_SetString(PyExc_TypeError,"null reference");
23597 SWIG_fail;
23598 }
23599 }
23600 if (obj7) {
23601 {
23602 arg8 = wxString_in_helper(obj7);
23603 if (arg8 == NULL) SWIG_fail;
23604 temp8 = True;
23605 }
23606 }
23607 {
23608 PyThreadState* __tstate = wxPyBeginAllowThreads();
23609 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23610
23611 wxPyEndAllowThreads(__tstate);
23612 if (PyErr_Occurred()) SWIG_fail;
23613 }
23614 {
23615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23616 }
23617 {
23618 if (temp8)
23619 delete arg8;
23620 }
23621 return resultobj;
23622 fail:
23623 {
23624 if (temp8)
23625 delete arg8;
23626 }
23627 return NULL;
23628 }
23629
23630
23631 static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
23632 PyObject *resultobj;
23633 wxListView *arg1 = (wxListView *) 0 ;
23634 long arg2 ;
23635 bool arg3 = (bool) True ;
23636 PyObject * obj0 = 0 ;
23637 PyObject * obj1 = 0 ;
23638 PyObject * obj2 = 0 ;
23639 char *kwnames[] = {
23640 (char *) "self",(char *) "n",(char *) "on", NULL
23641 };
23642
23643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
23644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23646 arg2 = (long) SWIG_AsLong(obj1);
23647 if (PyErr_Occurred()) SWIG_fail;
23648 if (obj2) {
23649 arg3 = (bool) SWIG_AsBool(obj2);
23650 if (PyErr_Occurred()) SWIG_fail;
23651 }
23652 {
23653 PyThreadState* __tstate = wxPyBeginAllowThreads();
23654 (arg1)->Select(arg2,arg3);
23655
23656 wxPyEndAllowThreads(__tstate);
23657 if (PyErr_Occurred()) SWIG_fail;
23658 }
23659 Py_INCREF(Py_None); resultobj = Py_None;
23660 return resultobj;
23661 fail:
23662 return NULL;
23663 }
23664
23665
23666 static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
23667 PyObject *resultobj;
23668 wxListView *arg1 = (wxListView *) 0 ;
23669 long arg2 ;
23670 PyObject * obj0 = 0 ;
23671 PyObject * obj1 = 0 ;
23672 char *kwnames[] = {
23673 (char *) "self",(char *) "index", NULL
23674 };
23675
23676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
23677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23679 arg2 = (long) SWIG_AsLong(obj1);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 {
23682 PyThreadState* __tstate = wxPyBeginAllowThreads();
23683 (arg1)->Focus(arg2);
23684
23685 wxPyEndAllowThreads(__tstate);
23686 if (PyErr_Occurred()) SWIG_fail;
23687 }
23688 Py_INCREF(Py_None); resultobj = Py_None;
23689 return resultobj;
23690 fail:
23691 return NULL;
23692 }
23693
23694
23695 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23696 PyObject *resultobj;
23697 wxListView *arg1 = (wxListView *) 0 ;
23698 long result;
23699 PyObject * obj0 = 0 ;
23700 char *kwnames[] = {
23701 (char *) "self", NULL
23702 };
23703
23704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
23705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23707 {
23708 PyThreadState* __tstate = wxPyBeginAllowThreads();
23709 result = (long)((wxListView const *)arg1)->GetFocusedItem();
23710
23711 wxPyEndAllowThreads(__tstate);
23712 if (PyErr_Occurred()) SWIG_fail;
23713 }
23714 resultobj = SWIG_FromLong((long)result);
23715 return resultobj;
23716 fail:
23717 return NULL;
23718 }
23719
23720
23721 static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23722 PyObject *resultobj;
23723 wxListView *arg1 = (wxListView *) 0 ;
23724 long arg2 ;
23725 long result;
23726 PyObject * obj0 = 0 ;
23727 PyObject * obj1 = 0 ;
23728 char *kwnames[] = {
23729 (char *) "self",(char *) "item", NULL
23730 };
23731
23732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
23733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23735 arg2 = (long) SWIG_AsLong(obj1);
23736 if (PyErr_Occurred()) SWIG_fail;
23737 {
23738 PyThreadState* __tstate = wxPyBeginAllowThreads();
23739 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
23740
23741 wxPyEndAllowThreads(__tstate);
23742 if (PyErr_Occurred()) SWIG_fail;
23743 }
23744 resultobj = SWIG_FromLong((long)result);
23745 return resultobj;
23746 fail:
23747 return NULL;
23748 }
23749
23750
23751 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23752 PyObject *resultobj;
23753 wxListView *arg1 = (wxListView *) 0 ;
23754 long result;
23755 PyObject * obj0 = 0 ;
23756 char *kwnames[] = {
23757 (char *) "self", NULL
23758 };
23759
23760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
23761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23763 {
23764 PyThreadState* __tstate = wxPyBeginAllowThreads();
23765 result = (long)((wxListView const *)arg1)->GetFirstSelected();
23766
23767 wxPyEndAllowThreads(__tstate);
23768 if (PyErr_Occurred()) SWIG_fail;
23769 }
23770 resultobj = SWIG_FromLong((long)result);
23771 return resultobj;
23772 fail:
23773 return NULL;
23774 }
23775
23776
23777 static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23778 PyObject *resultobj;
23779 wxListView *arg1 = (wxListView *) 0 ;
23780 long arg2 ;
23781 bool result;
23782 PyObject * obj0 = 0 ;
23783 PyObject * obj1 = 0 ;
23784 char *kwnames[] = {
23785 (char *) "self",(char *) "index", NULL
23786 };
23787
23788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
23789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23791 arg2 = (long) SWIG_AsLong(obj1);
23792 if (PyErr_Occurred()) SWIG_fail;
23793 {
23794 PyThreadState* __tstate = wxPyBeginAllowThreads();
23795 result = (bool)(arg1)->IsSelected(arg2);
23796
23797 wxPyEndAllowThreads(__tstate);
23798 if (PyErr_Occurred()) SWIG_fail;
23799 }
23800 {
23801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23802 }
23803 return resultobj;
23804 fail:
23805 return NULL;
23806 }
23807
23808
23809 static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23810 PyObject *resultobj;
23811 wxListView *arg1 = (wxListView *) 0 ;
23812 int arg2 ;
23813 int arg3 ;
23814 PyObject * obj0 = 0 ;
23815 PyObject * obj1 = 0 ;
23816 PyObject * obj2 = 0 ;
23817 char *kwnames[] = {
23818 (char *) "self",(char *) "col",(char *) "image", NULL
23819 };
23820
23821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
23822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23824 arg2 = (int) SWIG_AsInt(obj1);
23825 if (PyErr_Occurred()) SWIG_fail;
23826 arg3 = (int) SWIG_AsInt(obj2);
23827 if (PyErr_Occurred()) SWIG_fail;
23828 {
23829 PyThreadState* __tstate = wxPyBeginAllowThreads();
23830 (arg1)->SetColumnImage(arg2,arg3);
23831
23832 wxPyEndAllowThreads(__tstate);
23833 if (PyErr_Occurred()) SWIG_fail;
23834 }
23835 Py_INCREF(Py_None); resultobj = Py_None;
23836 return resultobj;
23837 fail:
23838 return NULL;
23839 }
23840
23841
23842 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23843 PyObject *resultobj;
23844 wxListView *arg1 = (wxListView *) 0 ;
23845 int arg2 ;
23846 PyObject * obj0 = 0 ;
23847 PyObject * obj1 = 0 ;
23848 char *kwnames[] = {
23849 (char *) "self",(char *) "col", NULL
23850 };
23851
23852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
23853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23855 arg2 = (int) SWIG_AsInt(obj1);
23856 if (PyErr_Occurred()) SWIG_fail;
23857 {
23858 PyThreadState* __tstate = wxPyBeginAllowThreads();
23859 (arg1)->ClearColumnImage(arg2);
23860
23861 wxPyEndAllowThreads(__tstate);
23862 if (PyErr_Occurred()) SWIG_fail;
23863 }
23864 Py_INCREF(Py_None); resultobj = Py_None;
23865 return resultobj;
23866 fail:
23867 return NULL;
23868 }
23869
23870
23871 static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
23872 PyObject *obj;
23873 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23874 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
23875 Py_INCREF(obj);
23876 return Py_BuildValue((char *)"");
23877 }
23878 static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
23879 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
23880 return 1;
23881 }
23882
23883
23884 static PyObject *_wrap_TreeCtrlNameStr_get() {
23885 PyObject *pyobj;
23886
23887 {
23888 #if wxUSE_UNICODE
23889 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
23890 #else
23891 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
23892 #endif
23893 }
23894 return pyobj;
23895 }
23896
23897
23898 static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
23899 PyObject *resultobj;
23900 wxTreeItemId *result;
23901 char *kwnames[] = {
23902 NULL
23903 };
23904
23905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
23906 {
23907 PyThreadState* __tstate = wxPyBeginAllowThreads();
23908 result = (wxTreeItemId *)new wxTreeItemId();
23909
23910 wxPyEndAllowThreads(__tstate);
23911 if (PyErr_Occurred()) SWIG_fail;
23912 }
23913 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
23914 return resultobj;
23915 fail:
23916 return NULL;
23917 }
23918
23919
23920 static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
23921 PyObject *resultobj;
23922 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23923 PyObject * obj0 = 0 ;
23924 char *kwnames[] = {
23925 (char *) "self", NULL
23926 };
23927
23928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
23929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23931 {
23932 PyThreadState* __tstate = wxPyBeginAllowThreads();
23933 delete arg1;
23934
23935 wxPyEndAllowThreads(__tstate);
23936 if (PyErr_Occurred()) SWIG_fail;
23937 }
23938 Py_INCREF(Py_None); resultobj = Py_None;
23939 return resultobj;
23940 fail:
23941 return NULL;
23942 }
23943
23944
23945 static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
23946 PyObject *resultobj;
23947 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23948 bool result;
23949 PyObject * obj0 = 0 ;
23950 char *kwnames[] = {
23951 (char *) "self", NULL
23952 };
23953
23954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
23955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23957 {
23958 PyThreadState* __tstate = wxPyBeginAllowThreads();
23959 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
23960
23961 wxPyEndAllowThreads(__tstate);
23962 if (PyErr_Occurred()) SWIG_fail;
23963 }
23964 {
23965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23966 }
23967 return resultobj;
23968 fail:
23969 return NULL;
23970 }
23971
23972
23973 static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23974 PyObject *resultobj;
23975 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23976 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
23977 bool result;
23978 PyObject * obj0 = 0 ;
23979 PyObject * obj1 = 0 ;
23980 char *kwnames[] = {
23981 (char *) "self",(char *) "other", NULL
23982 };
23983
23984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
23985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23987 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23989 {
23990 PyThreadState* __tstate = wxPyBeginAllowThreads();
23991 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
23992
23993 wxPyEndAllowThreads(__tstate);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 }
23996 {
23997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23998 }
23999 return resultobj;
24000 fail:
24001 return NULL;
24002 }
24003
24004
24005 static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
24006 PyObject *resultobj;
24007 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24008 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24009 bool result;
24010 PyObject * obj0 = 0 ;
24011 PyObject * obj1 = 0 ;
24012 char *kwnames[] = {
24013 (char *) "self",(char *) "other", NULL
24014 };
24015
24016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24019 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24021 {
24022 PyThreadState* __tstate = wxPyBeginAllowThreads();
24023 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24024
24025 wxPyEndAllowThreads(__tstate);
24026 if (PyErr_Occurred()) SWIG_fail;
24027 }
24028 {
24029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24030 }
24031 return resultobj;
24032 fail:
24033 return NULL;
24034 }
24035
24036
24037 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
24038 PyObject *resultobj;
24039 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24040 void *arg2 = (void *) 0 ;
24041 PyObject * obj0 = 0 ;
24042 PyObject * obj1 = 0 ;
24043 char *kwnames[] = {
24044 (char *) "self",(char *) "m_pItem", NULL
24045 };
24046
24047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24050 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24051 if (arg1) (arg1)->m_pItem = arg2;
24052
24053 Py_INCREF(Py_None); resultobj = Py_None;
24054 return resultobj;
24055 fail:
24056 return NULL;
24057 }
24058
24059
24060 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
24061 PyObject *resultobj;
24062 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24063 void *result;
24064 PyObject * obj0 = 0 ;
24065 char *kwnames[] = {
24066 (char *) "self", NULL
24067 };
24068
24069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24072 result = (void *) ((arg1)->m_pItem);
24073
24074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24075 return resultobj;
24076 fail:
24077 return NULL;
24078 }
24079
24080
24081 static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
24082 PyObject *obj;
24083 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24084 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24085 Py_INCREF(obj);
24086 return Py_BuildValue((char *)"");
24087 }
24088 static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24089 PyObject *resultobj;
24090 PyObject *arg1 = (PyObject *) NULL ;
24091 wxPyTreeItemData *result;
24092 PyObject * obj0 = 0 ;
24093 char *kwnames[] = {
24094 (char *) "obj", NULL
24095 };
24096
24097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24098 if (obj0) {
24099 arg1 = obj0;
24100 }
24101 {
24102 PyThreadState* __tstate = wxPyBeginAllowThreads();
24103 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24104
24105 wxPyEndAllowThreads(__tstate);
24106 if (PyErr_Occurred()) SWIG_fail;
24107 }
24108 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24109 return resultobj;
24110 fail:
24111 return NULL;
24112 }
24113
24114
24115 static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24116 PyObject *resultobj;
24117 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24118 PyObject *result;
24119 PyObject * obj0 = 0 ;
24120 char *kwnames[] = {
24121 (char *) "self", NULL
24122 };
24123
24124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24127 {
24128 PyThreadState* __tstate = wxPyBeginAllowThreads();
24129 result = (PyObject *)(arg1)->GetData();
24130
24131 wxPyEndAllowThreads(__tstate);
24132 if (PyErr_Occurred()) SWIG_fail;
24133 }
24134 resultobj = result;
24135 return resultobj;
24136 fail:
24137 return NULL;
24138 }
24139
24140
24141 static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24142 PyObject *resultobj;
24143 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24144 PyObject *arg2 = (PyObject *) 0 ;
24145 PyObject * obj0 = 0 ;
24146 PyObject * obj1 = 0 ;
24147 char *kwnames[] = {
24148 (char *) "self",(char *) "obj", NULL
24149 };
24150
24151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24154 arg2 = obj1;
24155 {
24156 PyThreadState* __tstate = wxPyBeginAllowThreads();
24157 (arg1)->SetData(arg2);
24158
24159 wxPyEndAllowThreads(__tstate);
24160 if (PyErr_Occurred()) SWIG_fail;
24161 }
24162 Py_INCREF(Py_None); resultobj = Py_None;
24163 return resultobj;
24164 fail:
24165 return NULL;
24166 }
24167
24168
24169 static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24170 PyObject *resultobj;
24171 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24172 wxTreeItemId *result;
24173 PyObject * obj0 = 0 ;
24174 char *kwnames[] = {
24175 (char *) "self", NULL
24176 };
24177
24178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24181 {
24182 PyThreadState* __tstate = wxPyBeginAllowThreads();
24183 {
24184 wxTreeItemId const &_result_ref = (arg1)->GetId();
24185 result = (wxTreeItemId *) &_result_ref;
24186 }
24187
24188 wxPyEndAllowThreads(__tstate);
24189 if (PyErr_Occurred()) SWIG_fail;
24190 }
24191 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24192 return resultobj;
24193 fail:
24194 return NULL;
24195 }
24196
24197
24198 static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24199 PyObject *resultobj;
24200 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24201 wxTreeItemId *arg2 = 0 ;
24202 PyObject * obj0 = 0 ;
24203 PyObject * obj1 = 0 ;
24204 char *kwnames[] = {
24205 (char *) "self",(char *) "id", NULL
24206 };
24207
24208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24211 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24212 SWIG_POINTER_EXCEPTION | 0)) == -1)
24213 SWIG_fail;
24214 if (arg2 == NULL) {
24215 PyErr_SetString(PyExc_TypeError,"null reference");
24216 SWIG_fail;
24217 }
24218 {
24219 PyThreadState* __tstate = wxPyBeginAllowThreads();
24220 (arg1)->SetId((wxTreeItemId const &)*arg2);
24221
24222 wxPyEndAllowThreads(__tstate);
24223 if (PyErr_Occurred()) SWIG_fail;
24224 }
24225 Py_INCREF(Py_None); resultobj = Py_None;
24226 return resultobj;
24227 fail:
24228 return NULL;
24229 }
24230
24231
24232 static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
24233 PyObject *resultobj;
24234 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24235 PyObject * obj0 = 0 ;
24236 char *kwnames[] = {
24237 (char *) "self", NULL
24238 };
24239
24240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24243 {
24244 PyThreadState* __tstate = wxPyBeginAllowThreads();
24245 wxPyTreeItemData_Destroy(arg1);
24246
24247 wxPyEndAllowThreads(__tstate);
24248 if (PyErr_Occurred()) SWIG_fail;
24249 }
24250 Py_INCREF(Py_None); resultobj = Py_None;
24251 return resultobj;
24252 fail:
24253 return NULL;
24254 }
24255
24256
24257 static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
24258 PyObject *obj;
24259 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24260 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24261 Py_INCREF(obj);
24262 return Py_BuildValue((char *)"");
24263 }
24264 static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24265 PyObject *resultobj;
24266 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24267 int arg2 = (int) 0 ;
24268 wxTreeEvent *result;
24269 PyObject * obj0 = 0 ;
24270 PyObject * obj1 = 0 ;
24271 char *kwnames[] = {
24272 (char *) "commandType",(char *) "id", NULL
24273 };
24274
24275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24276 if (obj0) {
24277 arg1 = (wxEventType) SWIG_AsInt(obj0);
24278 if (PyErr_Occurred()) SWIG_fail;
24279 }
24280 if (obj1) {
24281 arg2 = (int) SWIG_AsInt(obj1);
24282 if (PyErr_Occurred()) SWIG_fail;
24283 }
24284 {
24285 PyThreadState* __tstate = wxPyBeginAllowThreads();
24286 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24287
24288 wxPyEndAllowThreads(__tstate);
24289 if (PyErr_Occurred()) SWIG_fail;
24290 }
24291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24292 return resultobj;
24293 fail:
24294 return NULL;
24295 }
24296
24297
24298 static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24299 PyObject *resultobj;
24300 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24301 wxTreeItemId result;
24302 PyObject * obj0 = 0 ;
24303 char *kwnames[] = {
24304 (char *) "self", NULL
24305 };
24306
24307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24310 {
24311 PyThreadState* __tstate = wxPyBeginAllowThreads();
24312 result = ((wxTreeEvent const *)arg1)->GetItem();
24313
24314 wxPyEndAllowThreads(__tstate);
24315 if (PyErr_Occurred()) SWIG_fail;
24316 }
24317 {
24318 wxTreeItemId * resultptr;
24319 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24320 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24321 }
24322 return resultobj;
24323 fail:
24324 return NULL;
24325 }
24326
24327
24328 static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24329 PyObject *resultobj;
24330 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24331 wxTreeItemId *arg2 = 0 ;
24332 PyObject * obj0 = 0 ;
24333 PyObject * obj1 = 0 ;
24334 char *kwnames[] = {
24335 (char *) "self",(char *) "item", NULL
24336 };
24337
24338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24341 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24342 SWIG_POINTER_EXCEPTION | 0)) == -1)
24343 SWIG_fail;
24344 if (arg2 == NULL) {
24345 PyErr_SetString(PyExc_TypeError,"null reference");
24346 SWIG_fail;
24347 }
24348 {
24349 PyThreadState* __tstate = wxPyBeginAllowThreads();
24350 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24351
24352 wxPyEndAllowThreads(__tstate);
24353 if (PyErr_Occurred()) SWIG_fail;
24354 }
24355 Py_INCREF(Py_None); resultobj = Py_None;
24356 return resultobj;
24357 fail:
24358 return NULL;
24359 }
24360
24361
24362 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24363 PyObject *resultobj;
24364 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24365 wxTreeItemId result;
24366 PyObject * obj0 = 0 ;
24367 char *kwnames[] = {
24368 (char *) "self", NULL
24369 };
24370
24371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24374 {
24375 PyThreadState* __tstate = wxPyBeginAllowThreads();
24376 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24377
24378 wxPyEndAllowThreads(__tstate);
24379 if (PyErr_Occurred()) SWIG_fail;
24380 }
24381 {
24382 wxTreeItemId * resultptr;
24383 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24384 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24385 }
24386 return resultobj;
24387 fail:
24388 return NULL;
24389 }
24390
24391
24392 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24393 PyObject *resultobj;
24394 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24395 wxTreeItemId *arg2 = 0 ;
24396 PyObject * obj0 = 0 ;
24397 PyObject * obj1 = 0 ;
24398 char *kwnames[] = {
24399 (char *) "self",(char *) "item", NULL
24400 };
24401
24402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24406 SWIG_POINTER_EXCEPTION | 0)) == -1)
24407 SWIG_fail;
24408 if (arg2 == NULL) {
24409 PyErr_SetString(PyExc_TypeError,"null reference");
24410 SWIG_fail;
24411 }
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24415
24416 wxPyEndAllowThreads(__tstate);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 Py_INCREF(Py_None); resultobj = Py_None;
24420 return resultobj;
24421 fail:
24422 return NULL;
24423 }
24424
24425
24426 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24427 PyObject *resultobj;
24428 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24429 wxPoint result;
24430 PyObject * obj0 = 0 ;
24431 char *kwnames[] = {
24432 (char *) "self", NULL
24433 };
24434
24435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24438 {
24439 PyThreadState* __tstate = wxPyBeginAllowThreads();
24440 result = ((wxTreeEvent const *)arg1)->GetPoint();
24441
24442 wxPyEndAllowThreads(__tstate);
24443 if (PyErr_Occurred()) SWIG_fail;
24444 }
24445 {
24446 wxPoint * resultptr;
24447 resultptr = new wxPoint((wxPoint &) result);
24448 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24449 }
24450 return resultobj;
24451 fail:
24452 return NULL;
24453 }
24454
24455
24456 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24457 PyObject *resultobj;
24458 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24459 wxPoint *arg2 = 0 ;
24460 wxPoint temp2 ;
24461 PyObject * obj0 = 0 ;
24462 PyObject * obj1 = 0 ;
24463 char *kwnames[] = {
24464 (char *) "self",(char *) "pt", NULL
24465 };
24466
24467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24470 {
24471 arg2 = &temp2;
24472 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24473 }
24474 {
24475 PyThreadState* __tstate = wxPyBeginAllowThreads();
24476 (arg1)->SetPoint((wxPoint const &)*arg2);
24477
24478 wxPyEndAllowThreads(__tstate);
24479 if (PyErr_Occurred()) SWIG_fail;
24480 }
24481 Py_INCREF(Py_None); resultobj = Py_None;
24482 return resultobj;
24483 fail:
24484 return NULL;
24485 }
24486
24487
24488 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24489 PyObject *resultobj;
24490 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24491 wxKeyEvent *result;
24492 PyObject * obj0 = 0 ;
24493 char *kwnames[] = {
24494 (char *) "self", NULL
24495 };
24496
24497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24500 {
24501 PyThreadState* __tstate = wxPyBeginAllowThreads();
24502 {
24503 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24504 result = (wxKeyEvent *) &_result_ref;
24505 }
24506
24507 wxPyEndAllowThreads(__tstate);
24508 if (PyErr_Occurred()) SWIG_fail;
24509 }
24510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24511 return resultobj;
24512 fail:
24513 return NULL;
24514 }
24515
24516
24517 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
24518 PyObject *resultobj;
24519 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24520 int result;
24521 PyObject * obj0 = 0 ;
24522 char *kwnames[] = {
24523 (char *) "self", NULL
24524 };
24525
24526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24529 {
24530 PyThreadState* __tstate = wxPyBeginAllowThreads();
24531 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
24532
24533 wxPyEndAllowThreads(__tstate);
24534 if (PyErr_Occurred()) SWIG_fail;
24535 }
24536 resultobj = SWIG_FromInt((int)result);
24537 return resultobj;
24538 fail:
24539 return NULL;
24540 }
24541
24542
24543 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24544 PyObject *resultobj;
24545 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24546 wxKeyEvent *arg2 = 0 ;
24547 PyObject * obj0 = 0 ;
24548 PyObject * obj1 = 0 ;
24549 char *kwnames[] = {
24550 (char *) "self",(char *) "evt", NULL
24551 };
24552
24553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
24554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
24557 SWIG_POINTER_EXCEPTION | 0)) == -1)
24558 SWIG_fail;
24559 if (arg2 == NULL) {
24560 PyErr_SetString(PyExc_TypeError,"null reference");
24561 SWIG_fail;
24562 }
24563 {
24564 PyThreadState* __tstate = wxPyBeginAllowThreads();
24565 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
24566
24567 wxPyEndAllowThreads(__tstate);
24568 if (PyErr_Occurred()) SWIG_fail;
24569 }
24570 Py_INCREF(Py_None); resultobj = Py_None;
24571 return resultobj;
24572 fail:
24573 return NULL;
24574 }
24575
24576
24577 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24578 PyObject *resultobj;
24579 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24580 wxString *result;
24581 PyObject * obj0 = 0 ;
24582 char *kwnames[] = {
24583 (char *) "self", NULL
24584 };
24585
24586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
24587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24589 {
24590 PyThreadState* __tstate = wxPyBeginAllowThreads();
24591 {
24592 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
24593 result = (wxString *) &_result_ref;
24594 }
24595
24596 wxPyEndAllowThreads(__tstate);
24597 if (PyErr_Occurred()) SWIG_fail;
24598 }
24599 {
24600 #if wxUSE_UNICODE
24601 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24602 #else
24603 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24604 #endif
24605 }
24606 return resultobj;
24607 fail:
24608 return NULL;
24609 }
24610
24611
24612 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24613 PyObject *resultobj;
24614 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24615 wxString *arg2 = 0 ;
24616 bool temp2 = False ;
24617 PyObject * obj0 = 0 ;
24618 PyObject * obj1 = 0 ;
24619 char *kwnames[] = {
24620 (char *) "self",(char *) "label", NULL
24621 };
24622
24623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
24624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24626 {
24627 arg2 = wxString_in_helper(obj1);
24628 if (arg2 == NULL) SWIG_fail;
24629 temp2 = True;
24630 }
24631 {
24632 PyThreadState* __tstate = wxPyBeginAllowThreads();
24633 (arg1)->SetLabel((wxString const &)*arg2);
24634
24635 wxPyEndAllowThreads(__tstate);
24636 if (PyErr_Occurred()) SWIG_fail;
24637 }
24638 Py_INCREF(Py_None); resultobj = Py_None;
24639 {
24640 if (temp2)
24641 delete arg2;
24642 }
24643 return resultobj;
24644 fail:
24645 {
24646 if (temp2)
24647 delete arg2;
24648 }
24649 return NULL;
24650 }
24651
24652
24653 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
24654 PyObject *resultobj;
24655 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24656 bool result;
24657 PyObject * obj0 = 0 ;
24658 char *kwnames[] = {
24659 (char *) "self", NULL
24660 };
24661
24662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
24663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24665 {
24666 PyThreadState* __tstate = wxPyBeginAllowThreads();
24667 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
24668
24669 wxPyEndAllowThreads(__tstate);
24670 if (PyErr_Occurred()) SWIG_fail;
24671 }
24672 {
24673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24674 }
24675 return resultobj;
24676 fail:
24677 return NULL;
24678 }
24679
24680
24681 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
24682 PyObject *resultobj;
24683 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24684 bool arg2 ;
24685 PyObject * obj0 = 0 ;
24686 PyObject * obj1 = 0 ;
24687 char *kwnames[] = {
24688 (char *) "self",(char *) "editCancelled", NULL
24689 };
24690
24691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
24692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24694 arg2 = (bool) SWIG_AsBool(obj1);
24695 if (PyErr_Occurred()) SWIG_fail;
24696 {
24697 PyThreadState* __tstate = wxPyBeginAllowThreads();
24698 (arg1)->SetEditCanceled(arg2);
24699
24700 wxPyEndAllowThreads(__tstate);
24701 if (PyErr_Occurred()) SWIG_fail;
24702 }
24703 Py_INCREF(Py_None); resultobj = Py_None;
24704 return resultobj;
24705 fail:
24706 return NULL;
24707 }
24708
24709
24710 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
24711 PyObject *resultobj;
24712 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24713 wxString *arg2 = 0 ;
24714 bool temp2 = False ;
24715 PyObject * obj0 = 0 ;
24716 PyObject * obj1 = 0 ;
24717 char *kwnames[] = {
24718 (char *) "self",(char *) "toolTip", NULL
24719 };
24720
24721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
24722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24724 {
24725 arg2 = wxString_in_helper(obj1);
24726 if (arg2 == NULL) SWIG_fail;
24727 temp2 = True;
24728 }
24729 {
24730 PyThreadState* __tstate = wxPyBeginAllowThreads();
24731 (arg1)->SetToolTip((wxString const &)*arg2);
24732
24733 wxPyEndAllowThreads(__tstate);
24734 if (PyErr_Occurred()) SWIG_fail;
24735 }
24736 Py_INCREF(Py_None); resultobj = Py_None;
24737 {
24738 if (temp2)
24739 delete arg2;
24740 }
24741 return resultobj;
24742 fail:
24743 {
24744 if (temp2)
24745 delete arg2;
24746 }
24747 return NULL;
24748 }
24749
24750
24751 static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
24752 PyObject *obj;
24753 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24754 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
24755 Py_INCREF(obj);
24756 return Py_BuildValue((char *)"");
24757 }
24758 static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24759 PyObject *resultobj;
24760 wxWindow *arg1 = (wxWindow *) 0 ;
24761 int arg2 = (int) -1 ;
24762 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24763 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24764 wxSize const &arg4_defvalue = wxDefaultSize ;
24765 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24766 long arg5 = (long) wxTR_DEFAULT_STYLE ;
24767 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24768 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24769 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
24770 wxString *arg7 = (wxString *) &arg7_defvalue ;
24771 wxPyTreeCtrl *result;
24772 wxPoint temp3 ;
24773 wxSize temp4 ;
24774 bool temp7 = False ;
24775 PyObject * obj0 = 0 ;
24776 PyObject * obj1 = 0 ;
24777 PyObject * obj2 = 0 ;
24778 PyObject * obj3 = 0 ;
24779 PyObject * obj4 = 0 ;
24780 PyObject * obj5 = 0 ;
24781 PyObject * obj6 = 0 ;
24782 char *kwnames[] = {
24783 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24784 };
24785
24786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24789 if (obj1) {
24790 arg2 = (int) SWIG_AsInt(obj1);
24791 if (PyErr_Occurred()) SWIG_fail;
24792 }
24793 if (obj2) {
24794 {
24795 arg3 = &temp3;
24796 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24797 }
24798 }
24799 if (obj3) {
24800 {
24801 arg4 = &temp4;
24802 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24803 }
24804 }
24805 if (obj4) {
24806 arg5 = (long) SWIG_AsLong(obj4);
24807 if (PyErr_Occurred()) SWIG_fail;
24808 }
24809 if (obj5) {
24810 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24811 SWIG_POINTER_EXCEPTION | 0)) == -1)
24812 SWIG_fail;
24813 if (arg6 == NULL) {
24814 PyErr_SetString(PyExc_TypeError,"null reference");
24815 SWIG_fail;
24816 }
24817 }
24818 if (obj6) {
24819 {
24820 arg7 = wxString_in_helper(obj6);
24821 if (arg7 == NULL) SWIG_fail;
24822 temp7 = True;
24823 }
24824 }
24825 {
24826 PyThreadState* __tstate = wxPyBeginAllowThreads();
24827 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24828
24829 wxPyEndAllowThreads(__tstate);
24830 if (PyErr_Occurred()) SWIG_fail;
24831 }
24832 {
24833 resultobj = wxPyMake_wxObject(result);
24834 }
24835 {
24836 if (temp7)
24837 delete arg7;
24838 }
24839 return resultobj;
24840 fail:
24841 {
24842 if (temp7)
24843 delete arg7;
24844 }
24845 return NULL;
24846 }
24847
24848
24849 static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24850 PyObject *resultobj;
24851 wxPyTreeCtrl *result;
24852 char *kwnames[] = {
24853 NULL
24854 };
24855
24856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
24857 {
24858 PyThreadState* __tstate = wxPyBeginAllowThreads();
24859 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
24860
24861 wxPyEndAllowThreads(__tstate);
24862 if (PyErr_Occurred()) SWIG_fail;
24863 }
24864 {
24865 resultobj = wxPyMake_wxObject(result);
24866 }
24867 return resultobj;
24868 fail:
24869 return NULL;
24870 }
24871
24872
24873 static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
24874 PyObject *resultobj;
24875 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24876 wxWindow *arg2 = (wxWindow *) 0 ;
24877 int arg3 = (int) -1 ;
24878 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24879 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24880 wxSize const &arg5_defvalue = wxDefaultSize ;
24881 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24882 long arg6 = (long) wxTR_DEFAULT_STYLE ;
24883 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24884 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24885 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
24886 wxString *arg8 = (wxString *) &arg8_defvalue ;
24887 bool result;
24888 wxPoint temp4 ;
24889 wxSize temp5 ;
24890 bool temp8 = False ;
24891 PyObject * obj0 = 0 ;
24892 PyObject * obj1 = 0 ;
24893 PyObject * obj2 = 0 ;
24894 PyObject * obj3 = 0 ;
24895 PyObject * obj4 = 0 ;
24896 PyObject * obj5 = 0 ;
24897 PyObject * obj6 = 0 ;
24898 PyObject * obj7 = 0 ;
24899 char *kwnames[] = {
24900 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24901 };
24902
24903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24906 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24908 if (obj2) {
24909 arg3 = (int) SWIG_AsInt(obj2);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 if (obj3) {
24913 {
24914 arg4 = &temp4;
24915 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24916 }
24917 }
24918 if (obj4) {
24919 {
24920 arg5 = &temp5;
24921 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24922 }
24923 }
24924 if (obj5) {
24925 arg6 = (long) SWIG_AsLong(obj5);
24926 if (PyErr_Occurred()) SWIG_fail;
24927 }
24928 if (obj6) {
24929 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24930 SWIG_POINTER_EXCEPTION | 0)) == -1)
24931 SWIG_fail;
24932 if (arg7 == NULL) {
24933 PyErr_SetString(PyExc_TypeError,"null reference");
24934 SWIG_fail;
24935 }
24936 }
24937 if (obj7) {
24938 {
24939 arg8 = wxString_in_helper(obj7);
24940 if (arg8 == NULL) SWIG_fail;
24941 temp8 = True;
24942 }
24943 }
24944 {
24945 PyThreadState* __tstate = wxPyBeginAllowThreads();
24946 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24947
24948 wxPyEndAllowThreads(__tstate);
24949 if (PyErr_Occurred()) SWIG_fail;
24950 }
24951 {
24952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24953 }
24954 {
24955 if (temp8)
24956 delete arg8;
24957 }
24958 return resultobj;
24959 fail:
24960 {
24961 if (temp8)
24962 delete arg8;
24963 }
24964 return NULL;
24965 }
24966
24967
24968 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24969 PyObject *resultobj;
24970 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24971 PyObject *arg2 = (PyObject *) 0 ;
24972 PyObject *arg3 = (PyObject *) 0 ;
24973 PyObject * obj0 = 0 ;
24974 PyObject * obj1 = 0 ;
24975 PyObject * obj2 = 0 ;
24976 char *kwnames[] = {
24977 (char *) "self",(char *) "self",(char *) "_class", NULL
24978 };
24979
24980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",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 arg2 = obj1;
24984 arg3 = obj2;
24985 {
24986 PyThreadState* __tstate = wxPyBeginAllowThreads();
24987 (arg1)->_setCallbackInfo(arg2,arg3);
24988
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 Py_INCREF(Py_None); resultobj = Py_None;
24993 return resultobj;
24994 fail:
24995 return NULL;
24996 }
24997
24998
24999 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
25000 PyObject *resultobj;
25001 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25002 size_t result;
25003 PyObject * obj0 = 0 ;
25004 char *kwnames[] = {
25005 (char *) "self", NULL
25006 };
25007
25008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25011 {
25012 PyThreadState* __tstate = wxPyBeginAllowThreads();
25013 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25014
25015 wxPyEndAllowThreads(__tstate);
25016 if (PyErr_Occurred()) SWIG_fail;
25017 }
25018 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25019 return resultobj;
25020 fail:
25021 return NULL;
25022 }
25023
25024
25025 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25026 PyObject *resultobj;
25027 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25028 unsigned int result;
25029 PyObject * obj0 = 0 ;
25030 char *kwnames[] = {
25031 (char *) "self", NULL
25032 };
25033
25034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25037 {
25038 PyThreadState* __tstate = wxPyBeginAllowThreads();
25039 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25040
25041 wxPyEndAllowThreads(__tstate);
25042 if (PyErr_Occurred()) SWIG_fail;
25043 }
25044 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25045 return resultobj;
25046 fail:
25047 return NULL;
25048 }
25049
25050
25051 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25052 PyObject *resultobj;
25053 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25054 unsigned int arg2 ;
25055 PyObject * obj0 = 0 ;
25056 PyObject * obj1 = 0 ;
25057 char *kwnames[] = {
25058 (char *) "self",(char *) "indent", NULL
25059 };
25060
25061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25064 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25065 if (PyErr_Occurred()) SWIG_fail;
25066 {
25067 PyThreadState* __tstate = wxPyBeginAllowThreads();
25068 (arg1)->SetIndent(arg2);
25069
25070 wxPyEndAllowThreads(__tstate);
25071 if (PyErr_Occurred()) SWIG_fail;
25072 }
25073 Py_INCREF(Py_None); resultobj = Py_None;
25074 return resultobj;
25075 fail:
25076 return NULL;
25077 }
25078
25079
25080 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25081 PyObject *resultobj;
25082 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25083 unsigned int result;
25084 PyObject * obj0 = 0 ;
25085 char *kwnames[] = {
25086 (char *) "self", NULL
25087 };
25088
25089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25092 {
25093 PyThreadState* __tstate = wxPyBeginAllowThreads();
25094 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25095
25096 wxPyEndAllowThreads(__tstate);
25097 if (PyErr_Occurred()) SWIG_fail;
25098 }
25099 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25100 return resultobj;
25101 fail:
25102 return NULL;
25103 }
25104
25105
25106 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25107 PyObject *resultobj;
25108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25109 unsigned int arg2 ;
25110 PyObject * obj0 = 0 ;
25111 PyObject * obj1 = 0 ;
25112 char *kwnames[] = {
25113 (char *) "self",(char *) "spacing", NULL
25114 };
25115
25116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25119 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25120 if (PyErr_Occurred()) SWIG_fail;
25121 {
25122 PyThreadState* __tstate = wxPyBeginAllowThreads();
25123 (arg1)->SetSpacing(arg2);
25124
25125 wxPyEndAllowThreads(__tstate);
25126 if (PyErr_Occurred()) SWIG_fail;
25127 }
25128 Py_INCREF(Py_None); resultobj = Py_None;
25129 return resultobj;
25130 fail:
25131 return NULL;
25132 }
25133
25134
25135 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25136 PyObject *resultobj;
25137 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25138 wxImageList *result;
25139 PyObject * obj0 = 0 ;
25140 char *kwnames[] = {
25141 (char *) "self", NULL
25142 };
25143
25144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25147 {
25148 PyThreadState* __tstate = wxPyBeginAllowThreads();
25149 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25150
25151 wxPyEndAllowThreads(__tstate);
25152 if (PyErr_Occurred()) SWIG_fail;
25153 }
25154 {
25155 resultobj = wxPyMake_wxObject(result);
25156 }
25157 return resultobj;
25158 fail:
25159 return NULL;
25160 }
25161
25162
25163 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25164 PyObject *resultobj;
25165 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25166 wxImageList *result;
25167 PyObject * obj0 = 0 ;
25168 char *kwnames[] = {
25169 (char *) "self", NULL
25170 };
25171
25172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25175 {
25176 PyThreadState* __tstate = wxPyBeginAllowThreads();
25177 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25178
25179 wxPyEndAllowThreads(__tstate);
25180 if (PyErr_Occurred()) SWIG_fail;
25181 }
25182 {
25183 resultobj = wxPyMake_wxObject(result);
25184 }
25185 return resultobj;
25186 fail:
25187 return NULL;
25188 }
25189
25190
25191 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25192 PyObject *resultobj;
25193 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25194 wxImageList *arg2 = (wxImageList *) 0 ;
25195 PyObject * obj0 = 0 ;
25196 PyObject * obj1 = 0 ;
25197 char *kwnames[] = {
25198 (char *) "self",(char *) "imageList", NULL
25199 };
25200
25201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25206 {
25207 PyThreadState* __tstate = wxPyBeginAllowThreads();
25208 (arg1)->SetImageList(arg2);
25209
25210 wxPyEndAllowThreads(__tstate);
25211 if (PyErr_Occurred()) SWIG_fail;
25212 }
25213 Py_INCREF(Py_None); resultobj = Py_None;
25214 return resultobj;
25215 fail:
25216 return NULL;
25217 }
25218
25219
25220 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25221 PyObject *resultobj;
25222 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25223 wxImageList *arg2 = (wxImageList *) 0 ;
25224 PyObject * obj0 = 0 ;
25225 PyObject * obj1 = 0 ;
25226 char *kwnames[] = {
25227 (char *) "self",(char *) "imageList", NULL
25228 };
25229
25230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25233 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25235 {
25236 PyThreadState* __tstate = wxPyBeginAllowThreads();
25237 (arg1)->SetStateImageList(arg2);
25238
25239 wxPyEndAllowThreads(__tstate);
25240 if (PyErr_Occurred()) SWIG_fail;
25241 }
25242 Py_INCREF(Py_None); resultobj = Py_None;
25243 return resultobj;
25244 fail:
25245 return NULL;
25246 }
25247
25248
25249 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25250 PyObject *resultobj;
25251 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25252 wxImageList *arg2 = (wxImageList *) 0 ;
25253 PyObject * obj0 = 0 ;
25254 PyObject * obj1 = 0 ;
25255 char *kwnames[] = {
25256 (char *) "self",(char *) "imageList", NULL
25257 };
25258
25259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25262 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25263 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25264 {
25265 PyThreadState* __tstate = wxPyBeginAllowThreads();
25266 (arg1)->AssignImageList(arg2);
25267
25268 wxPyEndAllowThreads(__tstate);
25269 if (PyErr_Occurred()) SWIG_fail;
25270 }
25271 Py_INCREF(Py_None); resultobj = Py_None;
25272 return resultobj;
25273 fail:
25274 return NULL;
25275 }
25276
25277
25278 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25279 PyObject *resultobj;
25280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25281 wxImageList *arg2 = (wxImageList *) 0 ;
25282 PyObject * obj0 = 0 ;
25283 PyObject * obj1 = 0 ;
25284 char *kwnames[] = {
25285 (char *) "self",(char *) "imageList", NULL
25286 };
25287
25288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25291 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25292 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25293 {
25294 PyThreadState* __tstate = wxPyBeginAllowThreads();
25295 (arg1)->AssignStateImageList(arg2);
25296
25297 wxPyEndAllowThreads(__tstate);
25298 if (PyErr_Occurred()) SWIG_fail;
25299 }
25300 Py_INCREF(Py_None); resultobj = Py_None;
25301 return resultobj;
25302 fail:
25303 return NULL;
25304 }
25305
25306
25307 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25308 PyObject *resultobj;
25309 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25310 wxTreeItemId *arg2 = 0 ;
25311 wxString result;
25312 PyObject * obj0 = 0 ;
25313 PyObject * obj1 = 0 ;
25314 char *kwnames[] = {
25315 (char *) "self",(char *) "item", NULL
25316 };
25317
25318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25322 SWIG_POINTER_EXCEPTION | 0)) == -1)
25323 SWIG_fail;
25324 if (arg2 == NULL) {
25325 PyErr_SetString(PyExc_TypeError,"null reference");
25326 SWIG_fail;
25327 }
25328 {
25329 PyThreadState* __tstate = wxPyBeginAllowThreads();
25330 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25331
25332 wxPyEndAllowThreads(__tstate);
25333 if (PyErr_Occurred()) SWIG_fail;
25334 }
25335 {
25336 #if wxUSE_UNICODE
25337 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25338 #else
25339 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25340 #endif
25341 }
25342 return resultobj;
25343 fail:
25344 return NULL;
25345 }
25346
25347
25348 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25349 PyObject *resultobj;
25350 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25351 wxTreeItemId *arg2 = 0 ;
25352 int arg3 = (int) wxTreeItemIcon_Normal ;
25353 int result;
25354 PyObject * obj0 = 0 ;
25355 PyObject * obj1 = 0 ;
25356 PyObject * obj2 = 0 ;
25357 char *kwnames[] = {
25358 (char *) "self",(char *) "item",(char *) "which", NULL
25359 };
25360
25361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25365 SWIG_POINTER_EXCEPTION | 0)) == -1)
25366 SWIG_fail;
25367 if (arg2 == NULL) {
25368 PyErr_SetString(PyExc_TypeError,"null reference");
25369 SWIG_fail;
25370 }
25371 if (obj2) {
25372 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
25373 if (PyErr_Occurred()) SWIG_fail;
25374 }
25375 {
25376 PyThreadState* __tstate = wxPyBeginAllowThreads();
25377 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25378
25379 wxPyEndAllowThreads(__tstate);
25380 if (PyErr_Occurred()) SWIG_fail;
25381 }
25382 resultobj = SWIG_FromInt((int)result);
25383 return resultobj;
25384 fail:
25385 return NULL;
25386 }
25387
25388
25389 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25390 PyObject *resultobj;
25391 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25392 wxTreeItemId *arg2 = 0 ;
25393 wxPyTreeItemData *result;
25394 PyObject * obj0 = 0 ;
25395 PyObject * obj1 = 0 ;
25396 char *kwnames[] = {
25397 (char *) "self",(char *) "item", NULL
25398 };
25399
25400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25403 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25404 SWIG_POINTER_EXCEPTION | 0)) == -1)
25405 SWIG_fail;
25406 if (arg2 == NULL) {
25407 PyErr_SetString(PyExc_TypeError,"null reference");
25408 SWIG_fail;
25409 }
25410 {
25411 PyThreadState* __tstate = wxPyBeginAllowThreads();
25412 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25413
25414 wxPyEndAllowThreads(__tstate);
25415 if (PyErr_Occurred()) SWIG_fail;
25416 }
25417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25418 return resultobj;
25419 fail:
25420 return NULL;
25421 }
25422
25423
25424 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25425 PyObject *resultobj;
25426 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25427 wxTreeItemId *arg2 = 0 ;
25428 PyObject *result;
25429 PyObject * obj0 = 0 ;
25430 PyObject * obj1 = 0 ;
25431 char *kwnames[] = {
25432 (char *) "self",(char *) "item", NULL
25433 };
25434
25435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25438 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25439 SWIG_POINTER_EXCEPTION | 0)) == -1)
25440 SWIG_fail;
25441 if (arg2 == NULL) {
25442 PyErr_SetString(PyExc_TypeError,"null reference");
25443 SWIG_fail;
25444 }
25445 {
25446 PyThreadState* __tstate = wxPyBeginAllowThreads();
25447 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25448
25449 wxPyEndAllowThreads(__tstate);
25450 if (PyErr_Occurred()) SWIG_fail;
25451 }
25452 resultobj = result;
25453 return resultobj;
25454 fail:
25455 return NULL;
25456 }
25457
25458
25459 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25460 PyObject *resultobj;
25461 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25462 wxTreeItemId *arg2 = 0 ;
25463 wxColour result;
25464 PyObject * obj0 = 0 ;
25465 PyObject * obj1 = 0 ;
25466 char *kwnames[] = {
25467 (char *) "self",(char *) "item", NULL
25468 };
25469
25470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25473 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25474 SWIG_POINTER_EXCEPTION | 0)) == -1)
25475 SWIG_fail;
25476 if (arg2 == NULL) {
25477 PyErr_SetString(PyExc_TypeError,"null reference");
25478 SWIG_fail;
25479 }
25480 {
25481 PyThreadState* __tstate = wxPyBeginAllowThreads();
25482 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25483
25484 wxPyEndAllowThreads(__tstate);
25485 if (PyErr_Occurred()) SWIG_fail;
25486 }
25487 {
25488 wxColour * resultptr;
25489 resultptr = new wxColour((wxColour &) result);
25490 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25491 }
25492 return resultobj;
25493 fail:
25494 return NULL;
25495 }
25496
25497
25498 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25499 PyObject *resultobj;
25500 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25501 wxTreeItemId *arg2 = 0 ;
25502 wxColour result;
25503 PyObject * obj0 = 0 ;
25504 PyObject * obj1 = 0 ;
25505 char *kwnames[] = {
25506 (char *) "self",(char *) "item", NULL
25507 };
25508
25509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25512 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25513 SWIG_POINTER_EXCEPTION | 0)) == -1)
25514 SWIG_fail;
25515 if (arg2 == NULL) {
25516 PyErr_SetString(PyExc_TypeError,"null reference");
25517 SWIG_fail;
25518 }
25519 {
25520 PyThreadState* __tstate = wxPyBeginAllowThreads();
25521 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25522
25523 wxPyEndAllowThreads(__tstate);
25524 if (PyErr_Occurred()) SWIG_fail;
25525 }
25526 {
25527 wxColour * resultptr;
25528 resultptr = new wxColour((wxColour &) result);
25529 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25530 }
25531 return resultobj;
25532 fail:
25533 return NULL;
25534 }
25535
25536
25537 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25538 PyObject *resultobj;
25539 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25540 wxTreeItemId *arg2 = 0 ;
25541 wxFont result;
25542 PyObject * obj0 = 0 ;
25543 PyObject * obj1 = 0 ;
25544 char *kwnames[] = {
25545 (char *) "self",(char *) "item", NULL
25546 };
25547
25548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
25549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25551 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25552 SWIG_POINTER_EXCEPTION | 0)) == -1)
25553 SWIG_fail;
25554 if (arg2 == NULL) {
25555 PyErr_SetString(PyExc_TypeError,"null reference");
25556 SWIG_fail;
25557 }
25558 {
25559 PyThreadState* __tstate = wxPyBeginAllowThreads();
25560 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
25561
25562 wxPyEndAllowThreads(__tstate);
25563 if (PyErr_Occurred()) SWIG_fail;
25564 }
25565 {
25566 wxFont * resultptr;
25567 resultptr = new wxFont((wxFont &) result);
25568 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
25569 }
25570 return resultobj;
25571 fail:
25572 return NULL;
25573 }
25574
25575
25576 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25577 PyObject *resultobj;
25578 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25579 wxTreeItemId *arg2 = 0 ;
25580 wxString *arg3 = 0 ;
25581 bool temp3 = False ;
25582 PyObject * obj0 = 0 ;
25583 PyObject * obj1 = 0 ;
25584 PyObject * obj2 = 0 ;
25585 char *kwnames[] = {
25586 (char *) "self",(char *) "item",(char *) "text", NULL
25587 };
25588
25589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
25590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25592 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25593 SWIG_POINTER_EXCEPTION | 0)) == -1)
25594 SWIG_fail;
25595 if (arg2 == NULL) {
25596 PyErr_SetString(PyExc_TypeError,"null reference");
25597 SWIG_fail;
25598 }
25599 {
25600 arg3 = wxString_in_helper(obj2);
25601 if (arg3 == NULL) SWIG_fail;
25602 temp3 = True;
25603 }
25604 {
25605 PyThreadState* __tstate = wxPyBeginAllowThreads();
25606 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
25607
25608 wxPyEndAllowThreads(__tstate);
25609 if (PyErr_Occurred()) SWIG_fail;
25610 }
25611 Py_INCREF(Py_None); resultobj = Py_None;
25612 {
25613 if (temp3)
25614 delete arg3;
25615 }
25616 return resultobj;
25617 fail:
25618 {
25619 if (temp3)
25620 delete arg3;
25621 }
25622 return NULL;
25623 }
25624
25625
25626 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25627 PyObject *resultobj;
25628 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25629 wxTreeItemId *arg2 = 0 ;
25630 int arg3 ;
25631 int arg4 = (int) wxTreeItemIcon_Normal ;
25632 PyObject * obj0 = 0 ;
25633 PyObject * obj1 = 0 ;
25634 PyObject * obj2 = 0 ;
25635 PyObject * obj3 = 0 ;
25636 char *kwnames[] = {
25637 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
25638 };
25639
25640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25643 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25644 SWIG_POINTER_EXCEPTION | 0)) == -1)
25645 SWIG_fail;
25646 if (arg2 == NULL) {
25647 PyErr_SetString(PyExc_TypeError,"null reference");
25648 SWIG_fail;
25649 }
25650 arg3 = (int) SWIG_AsInt(obj2);
25651 if (PyErr_Occurred()) SWIG_fail;
25652 if (obj3) {
25653 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
25654 if (PyErr_Occurred()) SWIG_fail;
25655 }
25656 {
25657 PyThreadState* __tstate = wxPyBeginAllowThreads();
25658 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
25659
25660 wxPyEndAllowThreads(__tstate);
25661 if (PyErr_Occurred()) SWIG_fail;
25662 }
25663 Py_INCREF(Py_None); resultobj = Py_None;
25664 return resultobj;
25665 fail:
25666 return NULL;
25667 }
25668
25669
25670 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25671 PyObject *resultobj;
25672 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25673 wxTreeItemId *arg2 = 0 ;
25674 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
25675 PyObject * obj0 = 0 ;
25676 PyObject * obj1 = 0 ;
25677 PyObject * obj2 = 0 ;
25678 char *kwnames[] = {
25679 (char *) "self",(char *) "item",(char *) "data", NULL
25680 };
25681
25682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25685 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25686 SWIG_POINTER_EXCEPTION | 0)) == -1)
25687 SWIG_fail;
25688 if (arg2 == NULL) {
25689 PyErr_SetString(PyExc_TypeError,"null reference");
25690 SWIG_fail;
25691 }
25692 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
25693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25694 {
25695 PyThreadState* __tstate = wxPyBeginAllowThreads();
25696 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
25697
25698 wxPyEndAllowThreads(__tstate);
25699 if (PyErr_Occurred()) SWIG_fail;
25700 }
25701 Py_INCREF(Py_None); resultobj = Py_None;
25702 return resultobj;
25703 fail:
25704 return NULL;
25705 }
25706
25707
25708 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25709 PyObject *resultobj;
25710 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25711 wxTreeItemId *arg2 = 0 ;
25712 PyObject *arg3 = (PyObject *) 0 ;
25713 PyObject * obj0 = 0 ;
25714 PyObject * obj1 = 0 ;
25715 PyObject * obj2 = 0 ;
25716 char *kwnames[] = {
25717 (char *) "self",(char *) "item",(char *) "obj", NULL
25718 };
25719
25720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25723 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25724 SWIG_POINTER_EXCEPTION | 0)) == -1)
25725 SWIG_fail;
25726 if (arg2 == NULL) {
25727 PyErr_SetString(PyExc_TypeError,"null reference");
25728 SWIG_fail;
25729 }
25730 arg3 = obj2;
25731 {
25732 PyThreadState* __tstate = wxPyBeginAllowThreads();
25733 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
25734
25735 wxPyEndAllowThreads(__tstate);
25736 if (PyErr_Occurred()) SWIG_fail;
25737 }
25738 Py_INCREF(Py_None); resultobj = Py_None;
25739 return resultobj;
25740 fail:
25741 return NULL;
25742 }
25743
25744
25745 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25746 PyObject *resultobj;
25747 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25748 wxTreeItemId *arg2 = 0 ;
25749 bool arg3 = (bool) True ;
25750 PyObject * obj0 = 0 ;
25751 PyObject * obj1 = 0 ;
25752 PyObject * obj2 = 0 ;
25753 char *kwnames[] = {
25754 (char *) "self",(char *) "item",(char *) "has", NULL
25755 };
25756
25757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
25758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25761 SWIG_POINTER_EXCEPTION | 0)) == -1)
25762 SWIG_fail;
25763 if (arg2 == NULL) {
25764 PyErr_SetString(PyExc_TypeError,"null reference");
25765 SWIG_fail;
25766 }
25767 if (obj2) {
25768 arg3 = (bool) SWIG_AsBool(obj2);
25769 if (PyErr_Occurred()) SWIG_fail;
25770 }
25771 {
25772 PyThreadState* __tstate = wxPyBeginAllowThreads();
25773 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
25774
25775 wxPyEndAllowThreads(__tstate);
25776 if (PyErr_Occurred()) SWIG_fail;
25777 }
25778 Py_INCREF(Py_None); resultobj = Py_None;
25779 return resultobj;
25780 fail:
25781 return NULL;
25782 }
25783
25784
25785 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
25786 PyObject *resultobj;
25787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25788 wxTreeItemId *arg2 = 0 ;
25789 bool arg3 = (bool) True ;
25790 PyObject * obj0 = 0 ;
25791 PyObject * obj1 = 0 ;
25792 PyObject * obj2 = 0 ;
25793 char *kwnames[] = {
25794 (char *) "self",(char *) "item",(char *) "bold", NULL
25795 };
25796
25797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
25798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25801 SWIG_POINTER_EXCEPTION | 0)) == -1)
25802 SWIG_fail;
25803 if (arg2 == NULL) {
25804 PyErr_SetString(PyExc_TypeError,"null reference");
25805 SWIG_fail;
25806 }
25807 if (obj2) {
25808 arg3 = (bool) SWIG_AsBool(obj2);
25809 if (PyErr_Occurred()) SWIG_fail;
25810 }
25811 {
25812 PyThreadState* __tstate = wxPyBeginAllowThreads();
25813 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
25814
25815 wxPyEndAllowThreads(__tstate);
25816 if (PyErr_Occurred()) SWIG_fail;
25817 }
25818 Py_INCREF(Py_None); resultobj = Py_None;
25819 return resultobj;
25820 fail:
25821 return NULL;
25822 }
25823
25824
25825 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25826 PyObject *resultobj;
25827 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25828 wxTreeItemId *arg2 = 0 ;
25829 wxColour *arg3 = 0 ;
25830 wxColour temp3 ;
25831 PyObject * obj0 = 0 ;
25832 PyObject * obj1 = 0 ;
25833 PyObject * obj2 = 0 ;
25834 char *kwnames[] = {
25835 (char *) "self",(char *) "item",(char *) "col", NULL
25836 };
25837
25838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
25839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25841 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25842 SWIG_POINTER_EXCEPTION | 0)) == -1)
25843 SWIG_fail;
25844 if (arg2 == NULL) {
25845 PyErr_SetString(PyExc_TypeError,"null reference");
25846 SWIG_fail;
25847 }
25848 {
25849 arg3 = &temp3;
25850 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25851 }
25852 {
25853 PyThreadState* __tstate = wxPyBeginAllowThreads();
25854 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
25855
25856 wxPyEndAllowThreads(__tstate);
25857 if (PyErr_Occurred()) SWIG_fail;
25858 }
25859 Py_INCREF(Py_None); resultobj = Py_None;
25860 return resultobj;
25861 fail:
25862 return NULL;
25863 }
25864
25865
25866 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25867 PyObject *resultobj;
25868 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25869 wxTreeItemId *arg2 = 0 ;
25870 wxColour *arg3 = 0 ;
25871 wxColour temp3 ;
25872 PyObject * obj0 = 0 ;
25873 PyObject * obj1 = 0 ;
25874 PyObject * obj2 = 0 ;
25875 char *kwnames[] = {
25876 (char *) "self",(char *) "item",(char *) "col", NULL
25877 };
25878
25879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
25880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25882 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25883 SWIG_POINTER_EXCEPTION | 0)) == -1)
25884 SWIG_fail;
25885 if (arg2 == NULL) {
25886 PyErr_SetString(PyExc_TypeError,"null reference");
25887 SWIG_fail;
25888 }
25889 {
25890 arg3 = &temp3;
25891 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25892 }
25893 {
25894 PyThreadState* __tstate = wxPyBeginAllowThreads();
25895 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
25896
25897 wxPyEndAllowThreads(__tstate);
25898 if (PyErr_Occurred()) SWIG_fail;
25899 }
25900 Py_INCREF(Py_None); resultobj = Py_None;
25901 return resultobj;
25902 fail:
25903 return NULL;
25904 }
25905
25906
25907 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25908 PyObject *resultobj;
25909 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25910 wxTreeItemId *arg2 = 0 ;
25911 wxFont *arg3 = 0 ;
25912 PyObject * obj0 = 0 ;
25913 PyObject * obj1 = 0 ;
25914 PyObject * obj2 = 0 ;
25915 char *kwnames[] = {
25916 (char *) "self",(char *) "item",(char *) "font", NULL
25917 };
25918
25919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
25920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25922 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25923 SWIG_POINTER_EXCEPTION | 0)) == -1)
25924 SWIG_fail;
25925 if (arg2 == NULL) {
25926 PyErr_SetString(PyExc_TypeError,"null reference");
25927 SWIG_fail;
25928 }
25929 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
25930 SWIG_POINTER_EXCEPTION | 0)) == -1)
25931 SWIG_fail;
25932 if (arg3 == NULL) {
25933 PyErr_SetString(PyExc_TypeError,"null reference");
25934 SWIG_fail;
25935 }
25936 {
25937 PyThreadState* __tstate = wxPyBeginAllowThreads();
25938 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
25939
25940 wxPyEndAllowThreads(__tstate);
25941 if (PyErr_Occurred()) SWIG_fail;
25942 }
25943 Py_INCREF(Py_None); resultobj = Py_None;
25944 return resultobj;
25945 fail:
25946 return NULL;
25947 }
25948
25949
25950 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25951 PyObject *resultobj;
25952 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25953 wxTreeItemId *arg2 = 0 ;
25954 bool result;
25955 PyObject * obj0 = 0 ;
25956 PyObject * obj1 = 0 ;
25957 char *kwnames[] = {
25958 (char *) "self",(char *) "item", NULL
25959 };
25960
25961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
25962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25965 SWIG_POINTER_EXCEPTION | 0)) == -1)
25966 SWIG_fail;
25967 if (arg2 == NULL) {
25968 PyErr_SetString(PyExc_TypeError,"null reference");
25969 SWIG_fail;
25970 }
25971 {
25972 PyThreadState* __tstate = wxPyBeginAllowThreads();
25973 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
25974
25975 wxPyEndAllowThreads(__tstate);
25976 if (PyErr_Occurred()) SWIG_fail;
25977 }
25978 {
25979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25980 }
25981 return resultobj;
25982 fail:
25983 return NULL;
25984 }
25985
25986
25987 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25988 PyObject *resultobj;
25989 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25990 wxTreeItemId *arg2 = 0 ;
25991 bool result;
25992 PyObject * obj0 = 0 ;
25993 PyObject * obj1 = 0 ;
25994 char *kwnames[] = {
25995 (char *) "self",(char *) "item", NULL
25996 };
25997
25998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
25999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26002 SWIG_POINTER_EXCEPTION | 0)) == -1)
26003 SWIG_fail;
26004 if (arg2 == NULL) {
26005 PyErr_SetString(PyExc_TypeError,"null reference");
26006 SWIG_fail;
26007 }
26008 {
26009 PyThreadState* __tstate = wxPyBeginAllowThreads();
26010 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26011
26012 wxPyEndAllowThreads(__tstate);
26013 if (PyErr_Occurred()) SWIG_fail;
26014 }
26015 {
26016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26017 }
26018 return resultobj;
26019 fail:
26020 return NULL;
26021 }
26022
26023
26024 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
26025 PyObject *resultobj;
26026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26027 wxTreeItemId *arg2 = 0 ;
26028 bool result;
26029 PyObject * obj0 = 0 ;
26030 PyObject * obj1 = 0 ;
26031 char *kwnames[] = {
26032 (char *) "self",(char *) "item", NULL
26033 };
26034
26035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26038 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26039 SWIG_POINTER_EXCEPTION | 0)) == -1)
26040 SWIG_fail;
26041 if (arg2 == NULL) {
26042 PyErr_SetString(PyExc_TypeError,"null reference");
26043 SWIG_fail;
26044 }
26045 {
26046 PyThreadState* __tstate = wxPyBeginAllowThreads();
26047 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26048
26049 wxPyEndAllowThreads(__tstate);
26050 if (PyErr_Occurred()) SWIG_fail;
26051 }
26052 {
26053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26054 }
26055 return resultobj;
26056 fail:
26057 return NULL;
26058 }
26059
26060
26061 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
26062 PyObject *resultobj;
26063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26064 wxTreeItemId *arg2 = 0 ;
26065 bool result;
26066 PyObject * obj0 = 0 ;
26067 PyObject * obj1 = 0 ;
26068 char *kwnames[] = {
26069 (char *) "self",(char *) "item", NULL
26070 };
26071
26072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26075 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26076 SWIG_POINTER_EXCEPTION | 0)) == -1)
26077 SWIG_fail;
26078 if (arg2 == NULL) {
26079 PyErr_SetString(PyExc_TypeError,"null reference");
26080 SWIG_fail;
26081 }
26082 {
26083 PyThreadState* __tstate = wxPyBeginAllowThreads();
26084 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26085
26086 wxPyEndAllowThreads(__tstate);
26087 if (PyErr_Occurred()) SWIG_fail;
26088 }
26089 {
26090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26091 }
26092 return resultobj;
26093 fail:
26094 return NULL;
26095 }
26096
26097
26098 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
26099 PyObject *resultobj;
26100 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26101 wxTreeItemId *arg2 = 0 ;
26102 bool result;
26103 PyObject * obj0 = 0 ;
26104 PyObject * obj1 = 0 ;
26105 char *kwnames[] = {
26106 (char *) "self",(char *) "item", NULL
26107 };
26108
26109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26112 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26113 SWIG_POINTER_EXCEPTION | 0)) == -1)
26114 SWIG_fail;
26115 if (arg2 == NULL) {
26116 PyErr_SetString(PyExc_TypeError,"null reference");
26117 SWIG_fail;
26118 }
26119 {
26120 PyThreadState* __tstate = wxPyBeginAllowThreads();
26121 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26122
26123 wxPyEndAllowThreads(__tstate);
26124 if (PyErr_Occurred()) SWIG_fail;
26125 }
26126 {
26127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26128 }
26129 return resultobj;
26130 fail:
26131 return NULL;
26132 }
26133
26134
26135 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
26136 PyObject *resultobj;
26137 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26138 wxTreeItemId *arg2 = 0 ;
26139 bool arg3 = (bool) True ;
26140 size_t result;
26141 PyObject * obj0 = 0 ;
26142 PyObject * obj1 = 0 ;
26143 PyObject * obj2 = 0 ;
26144 char *kwnames[] = {
26145 (char *) "self",(char *) "item",(char *) "recursively", NULL
26146 };
26147
26148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26152 SWIG_POINTER_EXCEPTION | 0)) == -1)
26153 SWIG_fail;
26154 if (arg2 == NULL) {
26155 PyErr_SetString(PyExc_TypeError,"null reference");
26156 SWIG_fail;
26157 }
26158 if (obj2) {
26159 arg3 = (bool) SWIG_AsBool(obj2);
26160 if (PyErr_Occurred()) SWIG_fail;
26161 }
26162 {
26163 PyThreadState* __tstate = wxPyBeginAllowThreads();
26164 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26165
26166 wxPyEndAllowThreads(__tstate);
26167 if (PyErr_Occurred()) SWIG_fail;
26168 }
26169 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
26170 return resultobj;
26171 fail:
26172 return NULL;
26173 }
26174
26175
26176 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26177 PyObject *resultobj;
26178 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26179 wxTreeItemId result;
26180 PyObject * obj0 = 0 ;
26181 char *kwnames[] = {
26182 (char *) "self", NULL
26183 };
26184
26185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26188 {
26189 PyThreadState* __tstate = wxPyBeginAllowThreads();
26190 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26191
26192 wxPyEndAllowThreads(__tstate);
26193 if (PyErr_Occurred()) SWIG_fail;
26194 }
26195 {
26196 wxTreeItemId * resultptr;
26197 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26198 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26199 }
26200 return resultobj;
26201 fail:
26202 return NULL;
26203 }
26204
26205
26206 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26207 PyObject *resultobj;
26208 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26209 wxTreeItemId result;
26210 PyObject * obj0 = 0 ;
26211 char *kwnames[] = {
26212 (char *) "self", NULL
26213 };
26214
26215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26218 {
26219 PyThreadState* __tstate = wxPyBeginAllowThreads();
26220 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26221
26222 wxPyEndAllowThreads(__tstate);
26223 if (PyErr_Occurred()) SWIG_fail;
26224 }
26225 {
26226 wxTreeItemId * resultptr;
26227 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26228 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26229 }
26230 return resultobj;
26231 fail:
26232 return NULL;
26233 }
26234
26235
26236 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
26237 PyObject *resultobj;
26238 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26239 PyObject *result;
26240 PyObject * obj0 = 0 ;
26241 char *kwnames[] = {
26242 (char *) "self", NULL
26243 };
26244
26245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26248 {
26249 PyThreadState* __tstate = wxPyBeginAllowThreads();
26250 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26251
26252 wxPyEndAllowThreads(__tstate);
26253 if (PyErr_Occurred()) SWIG_fail;
26254 }
26255 resultobj = result;
26256 return resultobj;
26257 fail:
26258 return NULL;
26259 }
26260
26261
26262 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
26263 PyObject *resultobj;
26264 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26265 wxTreeItemId *arg2 = 0 ;
26266 wxTreeItemId result;
26267 PyObject * obj0 = 0 ;
26268 PyObject * obj1 = 0 ;
26269 char *kwnames[] = {
26270 (char *) "self",(char *) "item", NULL
26271 };
26272
26273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26276 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26277 SWIG_POINTER_EXCEPTION | 0)) == -1)
26278 SWIG_fail;
26279 if (arg2 == NULL) {
26280 PyErr_SetString(PyExc_TypeError,"null reference");
26281 SWIG_fail;
26282 }
26283 {
26284 PyThreadState* __tstate = wxPyBeginAllowThreads();
26285 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26286
26287 wxPyEndAllowThreads(__tstate);
26288 if (PyErr_Occurred()) SWIG_fail;
26289 }
26290 {
26291 wxTreeItemId * resultptr;
26292 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26293 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26294 }
26295 return resultobj;
26296 fail:
26297 return NULL;
26298 }
26299
26300
26301 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26302 PyObject *resultobj;
26303 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26304 wxTreeItemId *arg2 = 0 ;
26305 PyObject *result;
26306 PyObject * obj0 = 0 ;
26307 PyObject * obj1 = 0 ;
26308 char *kwnames[] = {
26309 (char *) "self",(char *) "item", NULL
26310 };
26311
26312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26315 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26316 SWIG_POINTER_EXCEPTION | 0)) == -1)
26317 SWIG_fail;
26318 if (arg2 == NULL) {
26319 PyErr_SetString(PyExc_TypeError,"null reference");
26320 SWIG_fail;
26321 }
26322 {
26323 PyThreadState* __tstate = wxPyBeginAllowThreads();
26324 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26325
26326 wxPyEndAllowThreads(__tstate);
26327 if (PyErr_Occurred()) SWIG_fail;
26328 }
26329 resultobj = result;
26330 return resultobj;
26331 fail:
26332 return NULL;
26333 }
26334
26335
26336 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26337 PyObject *resultobj;
26338 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26339 wxTreeItemId *arg2 = 0 ;
26340 void *arg3 = (void *) 0 ;
26341 PyObject *result;
26342 PyObject * obj0 = 0 ;
26343 PyObject * obj1 = 0 ;
26344 PyObject * obj2 = 0 ;
26345 char *kwnames[] = {
26346 (char *) "self",(char *) "item",(char *) "cookie", NULL
26347 };
26348
26349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26353 SWIG_POINTER_EXCEPTION | 0)) == -1)
26354 SWIG_fail;
26355 if (arg2 == NULL) {
26356 PyErr_SetString(PyExc_TypeError,"null reference");
26357 SWIG_fail;
26358 }
26359 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26360 {
26361 PyThreadState* __tstate = wxPyBeginAllowThreads();
26362 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26363
26364 wxPyEndAllowThreads(__tstate);
26365 if (PyErr_Occurred()) SWIG_fail;
26366 }
26367 resultobj = result;
26368 return resultobj;
26369 fail:
26370 return NULL;
26371 }
26372
26373
26374 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26375 PyObject *resultobj;
26376 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26377 wxTreeItemId *arg2 = 0 ;
26378 wxTreeItemId result;
26379 PyObject * obj0 = 0 ;
26380 PyObject * obj1 = 0 ;
26381 char *kwnames[] = {
26382 (char *) "self",(char *) "item", NULL
26383 };
26384
26385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
26386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26388 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26389 SWIG_POINTER_EXCEPTION | 0)) == -1)
26390 SWIG_fail;
26391 if (arg2 == NULL) {
26392 PyErr_SetString(PyExc_TypeError,"null reference");
26393 SWIG_fail;
26394 }
26395 {
26396 PyThreadState* __tstate = wxPyBeginAllowThreads();
26397 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26398
26399 wxPyEndAllowThreads(__tstate);
26400 if (PyErr_Occurred()) SWIG_fail;
26401 }
26402 {
26403 wxTreeItemId * resultptr;
26404 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26405 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26406 }
26407 return resultobj;
26408 fail:
26409 return NULL;
26410 }
26411
26412
26413 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26414 PyObject *resultobj;
26415 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26416 wxTreeItemId *arg2 = 0 ;
26417 wxTreeItemId result;
26418 PyObject * obj0 = 0 ;
26419 PyObject * obj1 = 0 ;
26420 char *kwnames[] = {
26421 (char *) "self",(char *) "item", NULL
26422 };
26423
26424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26427 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26428 SWIG_POINTER_EXCEPTION | 0)) == -1)
26429 SWIG_fail;
26430 if (arg2 == NULL) {
26431 PyErr_SetString(PyExc_TypeError,"null reference");
26432 SWIG_fail;
26433 }
26434 {
26435 PyThreadState* __tstate = wxPyBeginAllowThreads();
26436 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26437
26438 wxPyEndAllowThreads(__tstate);
26439 if (PyErr_Occurred()) SWIG_fail;
26440 }
26441 {
26442 wxTreeItemId * resultptr;
26443 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26444 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26445 }
26446 return resultobj;
26447 fail:
26448 return NULL;
26449 }
26450
26451
26452 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26453 PyObject *resultobj;
26454 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26455 wxTreeItemId *arg2 = 0 ;
26456 wxTreeItemId result;
26457 PyObject * obj0 = 0 ;
26458 PyObject * obj1 = 0 ;
26459 char *kwnames[] = {
26460 (char *) "self",(char *) "item", NULL
26461 };
26462
26463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26467 SWIG_POINTER_EXCEPTION | 0)) == -1)
26468 SWIG_fail;
26469 if (arg2 == NULL) {
26470 PyErr_SetString(PyExc_TypeError,"null reference");
26471 SWIG_fail;
26472 }
26473 {
26474 PyThreadState* __tstate = wxPyBeginAllowThreads();
26475 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26476
26477 wxPyEndAllowThreads(__tstate);
26478 if (PyErr_Occurred()) SWIG_fail;
26479 }
26480 {
26481 wxTreeItemId * resultptr;
26482 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26483 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26484 }
26485 return resultobj;
26486 fail:
26487 return NULL;
26488 }
26489
26490
26491 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26492 PyObject *resultobj;
26493 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26494 wxTreeItemId result;
26495 PyObject * obj0 = 0 ;
26496 char *kwnames[] = {
26497 (char *) "self", NULL
26498 };
26499
26500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
26501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26503 {
26504 PyThreadState* __tstate = wxPyBeginAllowThreads();
26505 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
26506
26507 wxPyEndAllowThreads(__tstate);
26508 if (PyErr_Occurred()) SWIG_fail;
26509 }
26510 {
26511 wxTreeItemId * resultptr;
26512 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26513 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26514 }
26515 return resultobj;
26516 fail:
26517 return NULL;
26518 }
26519
26520
26521 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26522 PyObject *resultobj;
26523 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26524 wxTreeItemId *arg2 = 0 ;
26525 wxTreeItemId result;
26526 PyObject * obj0 = 0 ;
26527 PyObject * obj1 = 0 ;
26528 char *kwnames[] = {
26529 (char *) "self",(char *) "item", NULL
26530 };
26531
26532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
26533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26535 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26536 SWIG_POINTER_EXCEPTION | 0)) == -1)
26537 SWIG_fail;
26538 if (arg2 == NULL) {
26539 PyErr_SetString(PyExc_TypeError,"null reference");
26540 SWIG_fail;
26541 }
26542 {
26543 PyThreadState* __tstate = wxPyBeginAllowThreads();
26544 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
26545
26546 wxPyEndAllowThreads(__tstate);
26547 if (PyErr_Occurred()) SWIG_fail;
26548 }
26549 {
26550 wxTreeItemId * resultptr;
26551 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26552 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26553 }
26554 return resultobj;
26555 fail:
26556 return NULL;
26557 }
26558
26559
26560 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26561 PyObject *resultobj;
26562 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26563 wxTreeItemId *arg2 = 0 ;
26564 wxTreeItemId result;
26565 PyObject * obj0 = 0 ;
26566 PyObject * obj1 = 0 ;
26567 char *kwnames[] = {
26568 (char *) "self",(char *) "item", NULL
26569 };
26570
26571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
26572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26574 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26575 SWIG_POINTER_EXCEPTION | 0)) == -1)
26576 SWIG_fail;
26577 if (arg2 == NULL) {
26578 PyErr_SetString(PyExc_TypeError,"null reference");
26579 SWIG_fail;
26580 }
26581 {
26582 PyThreadState* __tstate = wxPyBeginAllowThreads();
26583 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
26584
26585 wxPyEndAllowThreads(__tstate);
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 {
26589 wxTreeItemId * resultptr;
26590 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26591 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26592 }
26593 return resultobj;
26594 fail:
26595 return NULL;
26596 }
26597
26598
26599 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
26600 PyObject *resultobj;
26601 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26602 wxString *arg2 = 0 ;
26603 int arg3 = (int) -1 ;
26604 int arg4 = (int) -1 ;
26605 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
26606 wxTreeItemId result;
26607 bool temp2 = False ;
26608 PyObject * obj0 = 0 ;
26609 PyObject * obj1 = 0 ;
26610 PyObject * obj2 = 0 ;
26611 PyObject * obj3 = 0 ;
26612 PyObject * obj4 = 0 ;
26613 char *kwnames[] = {
26614 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26615 };
26616
26617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26620 {
26621 arg2 = wxString_in_helper(obj1);
26622 if (arg2 == NULL) SWIG_fail;
26623 temp2 = True;
26624 }
26625 if (obj2) {
26626 arg3 = (int) SWIG_AsInt(obj2);
26627 if (PyErr_Occurred()) SWIG_fail;
26628 }
26629 if (obj3) {
26630 arg4 = (int) SWIG_AsInt(obj3);
26631 if (PyErr_Occurred()) SWIG_fail;
26632 }
26633 if (obj4) {
26634 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
26635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26636 }
26637 {
26638 PyThreadState* __tstate = wxPyBeginAllowThreads();
26639 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
26640
26641 wxPyEndAllowThreads(__tstate);
26642 if (PyErr_Occurred()) SWIG_fail;
26643 }
26644 {
26645 wxTreeItemId * resultptr;
26646 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26647 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26648 }
26649 {
26650 if (temp2)
26651 delete arg2;
26652 }
26653 return resultobj;
26654 fail:
26655 {
26656 if (temp2)
26657 delete arg2;
26658 }
26659 return NULL;
26660 }
26661
26662
26663 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26664 PyObject *resultobj;
26665 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26666 wxTreeItemId *arg2 = 0 ;
26667 wxString *arg3 = 0 ;
26668 int arg4 = (int) -1 ;
26669 int arg5 = (int) -1 ;
26670 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26671 wxTreeItemId result;
26672 bool temp3 = False ;
26673 PyObject * obj0 = 0 ;
26674 PyObject * obj1 = 0 ;
26675 PyObject * obj2 = 0 ;
26676 PyObject * obj3 = 0 ;
26677 PyObject * obj4 = 0 ;
26678 PyObject * obj5 = 0 ;
26679 char *kwnames[] = {
26680 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26681 };
26682
26683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26686 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26687 SWIG_POINTER_EXCEPTION | 0)) == -1)
26688 SWIG_fail;
26689 if (arg2 == NULL) {
26690 PyErr_SetString(PyExc_TypeError,"null reference");
26691 SWIG_fail;
26692 }
26693 {
26694 arg3 = wxString_in_helper(obj2);
26695 if (arg3 == NULL) SWIG_fail;
26696 temp3 = True;
26697 }
26698 if (obj3) {
26699 arg4 = (int) SWIG_AsInt(obj3);
26700 if (PyErr_Occurred()) SWIG_fail;
26701 }
26702 if (obj4) {
26703 arg5 = (int) SWIG_AsInt(obj4);
26704 if (PyErr_Occurred()) SWIG_fail;
26705 }
26706 if (obj5) {
26707 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26709 }
26710 {
26711 PyThreadState* __tstate = wxPyBeginAllowThreads();
26712 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26713
26714 wxPyEndAllowThreads(__tstate);
26715 if (PyErr_Occurred()) SWIG_fail;
26716 }
26717 {
26718 wxTreeItemId * resultptr;
26719 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26720 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26721 }
26722 {
26723 if (temp3)
26724 delete arg3;
26725 }
26726 return resultobj;
26727 fail:
26728 {
26729 if (temp3)
26730 delete arg3;
26731 }
26732 return NULL;
26733 }
26734
26735
26736 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26737 PyObject *resultobj;
26738 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26739 wxTreeItemId *arg2 = 0 ;
26740 wxTreeItemId *arg3 = 0 ;
26741 wxString *arg4 = 0 ;
26742 int arg5 = (int) -1 ;
26743 int arg6 = (int) -1 ;
26744 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26745 wxTreeItemId result;
26746 bool temp4 = False ;
26747 PyObject * obj0 = 0 ;
26748 PyObject * obj1 = 0 ;
26749 PyObject * obj2 = 0 ;
26750 PyObject * obj3 = 0 ;
26751 PyObject * obj4 = 0 ;
26752 PyObject * obj5 = 0 ;
26753 PyObject * obj6 = 0 ;
26754 char *kwnames[] = {
26755 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26756 };
26757
26758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26761 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26762 SWIG_POINTER_EXCEPTION | 0)) == -1)
26763 SWIG_fail;
26764 if (arg2 == NULL) {
26765 PyErr_SetString(PyExc_TypeError,"null reference");
26766 SWIG_fail;
26767 }
26768 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
26769 SWIG_POINTER_EXCEPTION | 0)) == -1)
26770 SWIG_fail;
26771 if (arg3 == NULL) {
26772 PyErr_SetString(PyExc_TypeError,"null reference");
26773 SWIG_fail;
26774 }
26775 {
26776 arg4 = wxString_in_helper(obj3);
26777 if (arg4 == NULL) SWIG_fail;
26778 temp4 = True;
26779 }
26780 if (obj4) {
26781 arg5 = (int) SWIG_AsInt(obj4);
26782 if (PyErr_Occurred()) SWIG_fail;
26783 }
26784 if (obj5) {
26785 arg6 = (int) SWIG_AsInt(obj5);
26786 if (PyErr_Occurred()) SWIG_fail;
26787 }
26788 if (obj6) {
26789 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26791 }
26792 {
26793 PyThreadState* __tstate = wxPyBeginAllowThreads();
26794 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26795
26796 wxPyEndAllowThreads(__tstate);
26797 if (PyErr_Occurred()) SWIG_fail;
26798 }
26799 {
26800 wxTreeItemId * resultptr;
26801 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26802 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26803 }
26804 {
26805 if (temp4)
26806 delete arg4;
26807 }
26808 return resultobj;
26809 fail:
26810 {
26811 if (temp4)
26812 delete arg4;
26813 }
26814 return NULL;
26815 }
26816
26817
26818 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
26819 PyObject *resultobj;
26820 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26821 wxTreeItemId *arg2 = 0 ;
26822 size_t arg3 ;
26823 wxString *arg4 = 0 ;
26824 int arg5 = (int) -1 ;
26825 int arg6 = (int) -1 ;
26826 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26827 wxTreeItemId result;
26828 bool temp4 = False ;
26829 PyObject * obj0 = 0 ;
26830 PyObject * obj1 = 0 ;
26831 PyObject * obj2 = 0 ;
26832 PyObject * obj3 = 0 ;
26833 PyObject * obj4 = 0 ;
26834 PyObject * obj5 = 0 ;
26835 PyObject * obj6 = 0 ;
26836 char *kwnames[] = {
26837 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26838 };
26839
26840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26844 SWIG_POINTER_EXCEPTION | 0)) == -1)
26845 SWIG_fail;
26846 if (arg2 == NULL) {
26847 PyErr_SetString(PyExc_TypeError,"null reference");
26848 SWIG_fail;
26849 }
26850 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
26851 if (PyErr_Occurred()) SWIG_fail;
26852 {
26853 arg4 = wxString_in_helper(obj3);
26854 if (arg4 == NULL) SWIG_fail;
26855 temp4 = True;
26856 }
26857 if (obj4) {
26858 arg5 = (int) SWIG_AsInt(obj4);
26859 if (PyErr_Occurred()) SWIG_fail;
26860 }
26861 if (obj5) {
26862 arg6 = (int) SWIG_AsInt(obj5);
26863 if (PyErr_Occurred()) SWIG_fail;
26864 }
26865 if (obj6) {
26866 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26868 }
26869 {
26870 PyThreadState* __tstate = wxPyBeginAllowThreads();
26871 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26872
26873 wxPyEndAllowThreads(__tstate);
26874 if (PyErr_Occurred()) SWIG_fail;
26875 }
26876 {
26877 wxTreeItemId * resultptr;
26878 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26879 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26880 }
26881 {
26882 if (temp4)
26883 delete arg4;
26884 }
26885 return resultobj;
26886 fail:
26887 {
26888 if (temp4)
26889 delete arg4;
26890 }
26891 return NULL;
26892 }
26893
26894
26895 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26896 PyObject *resultobj;
26897 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26898 wxTreeItemId *arg2 = 0 ;
26899 wxString *arg3 = 0 ;
26900 int arg4 = (int) -1 ;
26901 int arg5 = (int) -1 ;
26902 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26903 wxTreeItemId result;
26904 bool temp3 = False ;
26905 PyObject * obj0 = 0 ;
26906 PyObject * obj1 = 0 ;
26907 PyObject * obj2 = 0 ;
26908 PyObject * obj3 = 0 ;
26909 PyObject * obj4 = 0 ;
26910 PyObject * obj5 = 0 ;
26911 char *kwnames[] = {
26912 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26913 };
26914
26915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26918 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26919 SWIG_POINTER_EXCEPTION | 0)) == -1)
26920 SWIG_fail;
26921 if (arg2 == NULL) {
26922 PyErr_SetString(PyExc_TypeError,"null reference");
26923 SWIG_fail;
26924 }
26925 {
26926 arg3 = wxString_in_helper(obj2);
26927 if (arg3 == NULL) SWIG_fail;
26928 temp3 = True;
26929 }
26930 if (obj3) {
26931 arg4 = (int) SWIG_AsInt(obj3);
26932 if (PyErr_Occurred()) SWIG_fail;
26933 }
26934 if (obj4) {
26935 arg5 = (int) SWIG_AsInt(obj4);
26936 if (PyErr_Occurred()) SWIG_fail;
26937 }
26938 if (obj5) {
26939 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26941 }
26942 {
26943 PyThreadState* __tstate = wxPyBeginAllowThreads();
26944 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26945
26946 wxPyEndAllowThreads(__tstate);
26947 if (PyErr_Occurred()) SWIG_fail;
26948 }
26949 {
26950 wxTreeItemId * resultptr;
26951 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26952 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26953 }
26954 {
26955 if (temp3)
26956 delete arg3;
26957 }
26958 return resultobj;
26959 fail:
26960 {
26961 if (temp3)
26962 delete arg3;
26963 }
26964 return NULL;
26965 }
26966
26967
26968 static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
26969 PyObject *resultobj;
26970 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26971 wxTreeItemId *arg2 = 0 ;
26972 PyObject * obj0 = 0 ;
26973 PyObject * obj1 = 0 ;
26974 char *kwnames[] = {
26975 (char *) "self",(char *) "item", NULL
26976 };
26977
26978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
26979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26981 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26982 SWIG_POINTER_EXCEPTION | 0)) == -1)
26983 SWIG_fail;
26984 if (arg2 == NULL) {
26985 PyErr_SetString(PyExc_TypeError,"null reference");
26986 SWIG_fail;
26987 }
26988 {
26989 PyThreadState* __tstate = wxPyBeginAllowThreads();
26990 (arg1)->Delete((wxTreeItemId const &)*arg2);
26991
26992 wxPyEndAllowThreads(__tstate);
26993 if (PyErr_Occurred()) SWIG_fail;
26994 }
26995 Py_INCREF(Py_None); resultobj = Py_None;
26996 return resultobj;
26997 fail:
26998 return NULL;
26999 }
27000
27001
27002 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27003 PyObject *resultobj;
27004 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27005 wxTreeItemId *arg2 = 0 ;
27006 PyObject * obj0 = 0 ;
27007 PyObject * obj1 = 0 ;
27008 char *kwnames[] = {
27009 (char *) "self",(char *) "item", NULL
27010 };
27011
27012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27016 SWIG_POINTER_EXCEPTION | 0)) == -1)
27017 SWIG_fail;
27018 if (arg2 == NULL) {
27019 PyErr_SetString(PyExc_TypeError,"null reference");
27020 SWIG_fail;
27021 }
27022 {
27023 PyThreadState* __tstate = wxPyBeginAllowThreads();
27024 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27025
27026 wxPyEndAllowThreads(__tstate);
27027 if (PyErr_Occurred()) SWIG_fail;
27028 }
27029 Py_INCREF(Py_None); resultobj = Py_None;
27030 return resultobj;
27031 fail:
27032 return NULL;
27033 }
27034
27035
27036 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
27037 PyObject *resultobj;
27038 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27039 PyObject * obj0 = 0 ;
27040 char *kwnames[] = {
27041 (char *) "self", NULL
27042 };
27043
27044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27047 {
27048 PyThreadState* __tstate = wxPyBeginAllowThreads();
27049 (arg1)->DeleteAllItems();
27050
27051 wxPyEndAllowThreads(__tstate);
27052 if (PyErr_Occurred()) SWIG_fail;
27053 }
27054 Py_INCREF(Py_None); resultobj = Py_None;
27055 return resultobj;
27056 fail:
27057 return NULL;
27058 }
27059
27060
27061 static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
27062 PyObject *resultobj;
27063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27064 wxTreeItemId *arg2 = 0 ;
27065 PyObject * obj0 = 0 ;
27066 PyObject * obj1 = 0 ;
27067 char *kwnames[] = {
27068 (char *) "self",(char *) "item", NULL
27069 };
27070
27071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27075 SWIG_POINTER_EXCEPTION | 0)) == -1)
27076 SWIG_fail;
27077 if (arg2 == NULL) {
27078 PyErr_SetString(PyExc_TypeError,"null reference");
27079 SWIG_fail;
27080 }
27081 {
27082 PyThreadState* __tstate = wxPyBeginAllowThreads();
27083 (arg1)->Expand((wxTreeItemId const &)*arg2);
27084
27085 wxPyEndAllowThreads(__tstate);
27086 if (PyErr_Occurred()) SWIG_fail;
27087 }
27088 Py_INCREF(Py_None); resultobj = Py_None;
27089 return resultobj;
27090 fail:
27091 return NULL;
27092 }
27093
27094
27095 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
27096 PyObject *resultobj;
27097 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27098 wxTreeItemId *arg2 = 0 ;
27099 PyObject * obj0 = 0 ;
27100 PyObject * obj1 = 0 ;
27101 char *kwnames[] = {
27102 (char *) "self",(char *) "item", NULL
27103 };
27104
27105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27109 SWIG_POINTER_EXCEPTION | 0)) == -1)
27110 SWIG_fail;
27111 if (arg2 == NULL) {
27112 PyErr_SetString(PyExc_TypeError,"null reference");
27113 SWIG_fail;
27114 }
27115 {
27116 PyThreadState* __tstate = wxPyBeginAllowThreads();
27117 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27118
27119 wxPyEndAllowThreads(__tstate);
27120 if (PyErr_Occurred()) SWIG_fail;
27121 }
27122 Py_INCREF(Py_None); resultobj = Py_None;
27123 return resultobj;
27124 fail:
27125 return NULL;
27126 }
27127
27128
27129 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
27130 PyObject *resultobj;
27131 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27132 wxTreeItemId *arg2 = 0 ;
27133 PyObject * obj0 = 0 ;
27134 PyObject * obj1 = 0 ;
27135 char *kwnames[] = {
27136 (char *) "self",(char *) "item", NULL
27137 };
27138
27139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27142 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27143 SWIG_POINTER_EXCEPTION | 0)) == -1)
27144 SWIG_fail;
27145 if (arg2 == NULL) {
27146 PyErr_SetString(PyExc_TypeError,"null reference");
27147 SWIG_fail;
27148 }
27149 {
27150 PyThreadState* __tstate = wxPyBeginAllowThreads();
27151 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27152
27153 wxPyEndAllowThreads(__tstate);
27154 if (PyErr_Occurred()) SWIG_fail;
27155 }
27156 Py_INCREF(Py_None); resultobj = Py_None;
27157 return resultobj;
27158 fail:
27159 return NULL;
27160 }
27161
27162
27163 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
27164 PyObject *resultobj;
27165 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27166 wxTreeItemId *arg2 = 0 ;
27167 PyObject * obj0 = 0 ;
27168 PyObject * obj1 = 0 ;
27169 char *kwnames[] = {
27170 (char *) "self",(char *) "item", NULL
27171 };
27172
27173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27176 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27177 SWIG_POINTER_EXCEPTION | 0)) == -1)
27178 SWIG_fail;
27179 if (arg2 == NULL) {
27180 PyErr_SetString(PyExc_TypeError,"null reference");
27181 SWIG_fail;
27182 }
27183 {
27184 PyThreadState* __tstate = wxPyBeginAllowThreads();
27185 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27186
27187 wxPyEndAllowThreads(__tstate);
27188 if (PyErr_Occurred()) SWIG_fail;
27189 }
27190 Py_INCREF(Py_None); resultobj = Py_None;
27191 return resultobj;
27192 fail:
27193 return NULL;
27194 }
27195
27196
27197 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
27198 PyObject *resultobj;
27199 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27200 PyObject * obj0 = 0 ;
27201 char *kwnames[] = {
27202 (char *) "self", NULL
27203 };
27204
27205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27208 {
27209 PyThreadState* __tstate = wxPyBeginAllowThreads();
27210 (arg1)->Unselect();
27211
27212 wxPyEndAllowThreads(__tstate);
27213 if (PyErr_Occurred()) SWIG_fail;
27214 }
27215 Py_INCREF(Py_None); resultobj = Py_None;
27216 return resultobj;
27217 fail:
27218 return NULL;
27219 }
27220
27221
27222 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27223 PyObject *resultobj;
27224 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27225 wxTreeItemId *arg2 = 0 ;
27226 PyObject * obj0 = 0 ;
27227 PyObject * obj1 = 0 ;
27228 char *kwnames[] = {
27229 (char *) "self",(char *) "item", NULL
27230 };
27231
27232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27236 SWIG_POINTER_EXCEPTION | 0)) == -1)
27237 SWIG_fail;
27238 if (arg2 == NULL) {
27239 PyErr_SetString(PyExc_TypeError,"null reference");
27240 SWIG_fail;
27241 }
27242 {
27243 PyThreadState* __tstate = wxPyBeginAllowThreads();
27244 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27245
27246 wxPyEndAllowThreads(__tstate);
27247 if (PyErr_Occurred()) SWIG_fail;
27248 }
27249 Py_INCREF(Py_None); resultobj = Py_None;
27250 return resultobj;
27251 fail:
27252 return NULL;
27253 }
27254
27255
27256 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
27257 PyObject *resultobj;
27258 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27259 PyObject * obj0 = 0 ;
27260 char *kwnames[] = {
27261 (char *) "self", NULL
27262 };
27263
27264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27267 {
27268 PyThreadState* __tstate = wxPyBeginAllowThreads();
27269 (arg1)->UnselectAll();
27270
27271 wxPyEndAllowThreads(__tstate);
27272 if (PyErr_Occurred()) SWIG_fail;
27273 }
27274 Py_INCREF(Py_None); resultobj = Py_None;
27275 return resultobj;
27276 fail:
27277 return NULL;
27278 }
27279
27280
27281 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27282 PyObject *resultobj;
27283 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27284 wxTreeItemId *arg2 = 0 ;
27285 bool arg3 = (bool) True ;
27286 PyObject * obj0 = 0 ;
27287 PyObject * obj1 = 0 ;
27288 PyObject * obj2 = 0 ;
27289 char *kwnames[] = {
27290 (char *) "self",(char *) "item",(char *) "select", NULL
27291 };
27292
27293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27297 SWIG_POINTER_EXCEPTION | 0)) == -1)
27298 SWIG_fail;
27299 if (arg2 == NULL) {
27300 PyErr_SetString(PyExc_TypeError,"null reference");
27301 SWIG_fail;
27302 }
27303 if (obj2) {
27304 arg3 = (bool) SWIG_AsBool(obj2);
27305 if (PyErr_Occurred()) SWIG_fail;
27306 }
27307 {
27308 PyThreadState* __tstate = wxPyBeginAllowThreads();
27309 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27310
27311 wxPyEndAllowThreads(__tstate);
27312 if (PyErr_Occurred()) SWIG_fail;
27313 }
27314 Py_INCREF(Py_None); resultobj = Py_None;
27315 return resultobj;
27316 fail:
27317 return NULL;
27318 }
27319
27320
27321 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27322 PyObject *resultobj;
27323 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27324 wxTreeItemId *arg2 = 0 ;
27325 PyObject * obj0 = 0 ;
27326 PyObject * obj1 = 0 ;
27327 char *kwnames[] = {
27328 (char *) "self",(char *) "item", NULL
27329 };
27330
27331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27335 SWIG_POINTER_EXCEPTION | 0)) == -1)
27336 SWIG_fail;
27337 if (arg2 == NULL) {
27338 PyErr_SetString(PyExc_TypeError,"null reference");
27339 SWIG_fail;
27340 }
27341 {
27342 PyThreadState* __tstate = wxPyBeginAllowThreads();
27343 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27344
27345 wxPyEndAllowThreads(__tstate);
27346 if (PyErr_Occurred()) SWIG_fail;
27347 }
27348 Py_INCREF(Py_None); resultobj = Py_None;
27349 return resultobj;
27350 fail:
27351 return NULL;
27352 }
27353
27354
27355 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
27356 PyObject *resultobj;
27357 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27358 wxTreeItemId *arg2 = 0 ;
27359 PyObject * obj0 = 0 ;
27360 PyObject * obj1 = 0 ;
27361 char *kwnames[] = {
27362 (char *) "self",(char *) "item", NULL
27363 };
27364
27365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27368 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27369 SWIG_POINTER_EXCEPTION | 0)) == -1)
27370 SWIG_fail;
27371 if (arg2 == NULL) {
27372 PyErr_SetString(PyExc_TypeError,"null reference");
27373 SWIG_fail;
27374 }
27375 {
27376 PyThreadState* __tstate = wxPyBeginAllowThreads();
27377 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27378
27379 wxPyEndAllowThreads(__tstate);
27380 if (PyErr_Occurred()) SWIG_fail;
27381 }
27382 Py_INCREF(Py_None); resultobj = Py_None;
27383 return resultobj;
27384 fail:
27385 return NULL;
27386 }
27387
27388
27389 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
27390 PyObject *resultobj;
27391 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27392 wxTreeItemId *arg2 = 0 ;
27393 PyObject * obj0 = 0 ;
27394 PyObject * obj1 = 0 ;
27395 char *kwnames[] = {
27396 (char *) "self",(char *) "item", NULL
27397 };
27398
27399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27403 SWIG_POINTER_EXCEPTION | 0)) == -1)
27404 SWIG_fail;
27405 if (arg2 == NULL) {
27406 PyErr_SetString(PyExc_TypeError,"null reference");
27407 SWIG_fail;
27408 }
27409 {
27410 PyThreadState* __tstate = wxPyBeginAllowThreads();
27411 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27412
27413 wxPyEndAllowThreads(__tstate);
27414 if (PyErr_Occurred()) SWIG_fail;
27415 }
27416 Py_INCREF(Py_None); resultobj = Py_None;
27417 return resultobj;
27418 fail:
27419 return NULL;
27420 }
27421
27422
27423 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
27424 PyObject *resultobj;
27425 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27426 wxTreeItemId *arg2 = 0 ;
27427 PyObject * obj0 = 0 ;
27428 PyObject * obj1 = 0 ;
27429 char *kwnames[] = {
27430 (char *) "self",(char *) "item", NULL
27431 };
27432
27433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27437 SWIG_POINTER_EXCEPTION | 0)) == -1)
27438 SWIG_fail;
27439 if (arg2 == NULL) {
27440 PyErr_SetString(PyExc_TypeError,"null reference");
27441 SWIG_fail;
27442 }
27443 {
27444 PyThreadState* __tstate = wxPyBeginAllowThreads();
27445 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27446
27447 wxPyEndAllowThreads(__tstate);
27448 if (PyErr_Occurred()) SWIG_fail;
27449 }
27450 Py_INCREF(Py_None); resultobj = Py_None;
27451 return resultobj;
27452 fail:
27453 return NULL;
27454 }
27455
27456
27457 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27458 PyObject *resultobj;
27459 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27460 wxTextCtrl *result;
27461 PyObject * obj0 = 0 ;
27462 char *kwnames[] = {
27463 (char *) "self", NULL
27464 };
27465
27466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27469 {
27470 PyThreadState* __tstate = wxPyBeginAllowThreads();
27471 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27472
27473 wxPyEndAllowThreads(__tstate);
27474 if (PyErr_Occurred()) SWIG_fail;
27475 }
27476 {
27477 resultobj = wxPyMake_wxObject(result);
27478 }
27479 return resultobj;
27480 fail:
27481 return NULL;
27482 }
27483
27484
27485 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27486 PyObject *resultobj;
27487 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27488 wxTreeItemId *arg2 = 0 ;
27489 PyObject * obj0 = 0 ;
27490 PyObject * obj1 = 0 ;
27491 char *kwnames[] = {
27492 (char *) "self",(char *) "item", NULL
27493 };
27494
27495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
27496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27498 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27499 SWIG_POINTER_EXCEPTION | 0)) == -1)
27500 SWIG_fail;
27501 if (arg2 == NULL) {
27502 PyErr_SetString(PyExc_TypeError,"null reference");
27503 SWIG_fail;
27504 }
27505 {
27506 PyThreadState* __tstate = wxPyBeginAllowThreads();
27507 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
27508
27509 wxPyEndAllowThreads(__tstate);
27510 if (PyErr_Occurred()) SWIG_fail;
27511 }
27512 Py_INCREF(Py_None); resultobj = Py_None;
27513 return resultobj;
27514 fail:
27515 return NULL;
27516 }
27517
27518
27519 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
27520 PyObject *resultobj;
27521 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27522 wxPoint *arg2 = 0 ;
27523 int *arg3 = 0 ;
27524 wxTreeItemId result;
27525 wxPoint temp2 ;
27526 int temp3 ;
27527 PyObject * obj0 = 0 ;
27528 PyObject * obj1 = 0 ;
27529 char *kwnames[] = {
27530 (char *) "self",(char *) "point", NULL
27531 };
27532
27533 arg3 = &temp3;
27534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
27535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27537 {
27538 arg2 = &temp2;
27539 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27540 }
27541 {
27542 PyThreadState* __tstate = wxPyBeginAllowThreads();
27543 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
27544
27545 wxPyEndAllowThreads(__tstate);
27546 if (PyErr_Occurred()) SWIG_fail;
27547 }
27548 {
27549 wxTreeItemId * resultptr;
27550 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27551 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27552 }
27553 {
27554 PyObject *o = PyInt_FromLong((long) (*arg3));
27555 resultobj = t_output_helper(resultobj,o);
27556 }
27557 return resultobj;
27558 fail:
27559 return NULL;
27560 }
27561
27562
27563 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
27564 PyObject *resultobj;
27565 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27566 wxTreeItemId *arg2 = 0 ;
27567 bool arg3 = (bool) False ;
27568 PyObject *result;
27569 PyObject * obj0 = 0 ;
27570 PyObject * obj1 = 0 ;
27571 PyObject * obj2 = 0 ;
27572 char *kwnames[] = {
27573 (char *) "self",(char *) "item",(char *) "textOnly", NULL
27574 };
27575
27576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
27577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27579 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27580 SWIG_POINTER_EXCEPTION | 0)) == -1)
27581 SWIG_fail;
27582 if (arg2 == NULL) {
27583 PyErr_SetString(PyExc_TypeError,"null reference");
27584 SWIG_fail;
27585 }
27586 if (obj2) {
27587 arg3 = (bool) SWIG_AsBool(obj2);
27588 if (PyErr_Occurred()) SWIG_fail;
27589 }
27590 {
27591 PyThreadState* __tstate = wxPyBeginAllowThreads();
27592 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
27593
27594 wxPyEndAllowThreads(__tstate);
27595 if (PyErr_Occurred()) SWIG_fail;
27596 }
27597 resultobj = result;
27598 return resultobj;
27599 fail:
27600 return NULL;
27601 }
27602
27603
27604 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
27605 PyObject *resultobj;
27606 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
27607 wxVisualAttributes result;
27608 PyObject * obj0 = 0 ;
27609 char *kwnames[] = {
27610 (char *) "variant", NULL
27611 };
27612
27613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
27614 if (obj0) {
27615 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
27616 if (PyErr_Occurred()) SWIG_fail;
27617 }
27618 {
27619 PyThreadState* __tstate = wxPyBeginAllowThreads();
27620 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
27621
27622 wxPyEndAllowThreads(__tstate);
27623 if (PyErr_Occurred()) SWIG_fail;
27624 }
27625 {
27626 wxVisualAttributes * resultptr;
27627 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
27628 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
27629 }
27630 return resultobj;
27631 fail:
27632 return NULL;
27633 }
27634
27635
27636 static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
27637 PyObject *obj;
27638 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27639 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
27640 Py_INCREF(obj);
27641 return Py_BuildValue((char *)"");
27642 }
27643 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
27644 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
27645 return 1;
27646 }
27647
27648
27649 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
27650 PyObject *pyobj;
27651
27652 {
27653 #if wxUSE_UNICODE
27654 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27655 #else
27656 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27657 #endif
27658 }
27659 return pyobj;
27660 }
27661
27662
27663 static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27664 PyObject *resultobj;
27665 wxWindow *arg1 = (wxWindow *) 0 ;
27666 int arg2 = (int) (int)-1 ;
27667 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
27668 wxString *arg3 = (wxString *) &arg3_defvalue ;
27669 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27670 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27671 wxSize const &arg5_defvalue = wxDefaultSize ;
27672 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27673 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27674 wxString const &arg7_defvalue = wxPyEmptyString ;
27675 wxString *arg7 = (wxString *) &arg7_defvalue ;
27676 int arg8 = (int) 0 ;
27677 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
27678 wxString *arg9 = (wxString *) &arg9_defvalue ;
27679 wxGenericDirCtrl *result;
27680 bool temp3 = False ;
27681 wxPoint temp4 ;
27682 wxSize temp5 ;
27683 bool temp7 = False ;
27684 bool temp9 = False ;
27685 PyObject * obj0 = 0 ;
27686 PyObject * obj1 = 0 ;
27687 PyObject * obj2 = 0 ;
27688 PyObject * obj3 = 0 ;
27689 PyObject * obj4 = 0 ;
27690 PyObject * obj5 = 0 ;
27691 PyObject * obj6 = 0 ;
27692 PyObject * obj7 = 0 ;
27693 PyObject * obj8 = 0 ;
27694 char *kwnames[] = {
27695 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27696 };
27697
27698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
27699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27701 if (obj1) {
27702 arg2 = (int const) SWIG_AsInt(obj1);
27703 if (PyErr_Occurred()) SWIG_fail;
27704 }
27705 if (obj2) {
27706 {
27707 arg3 = wxString_in_helper(obj2);
27708 if (arg3 == NULL) SWIG_fail;
27709 temp3 = True;
27710 }
27711 }
27712 if (obj3) {
27713 {
27714 arg4 = &temp4;
27715 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27716 }
27717 }
27718 if (obj4) {
27719 {
27720 arg5 = &temp5;
27721 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27722 }
27723 }
27724 if (obj5) {
27725 arg6 = (long) SWIG_AsLong(obj5);
27726 if (PyErr_Occurred()) SWIG_fail;
27727 }
27728 if (obj6) {
27729 {
27730 arg7 = wxString_in_helper(obj6);
27731 if (arg7 == NULL) SWIG_fail;
27732 temp7 = True;
27733 }
27734 }
27735 if (obj7) {
27736 arg8 = (int) SWIG_AsInt(obj7);
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
27739 if (obj8) {
27740 {
27741 arg9 = wxString_in_helper(obj8);
27742 if (arg9 == NULL) SWIG_fail;
27743 temp9 = True;
27744 }
27745 }
27746 {
27747 PyThreadState* __tstate = wxPyBeginAllowThreads();
27748 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
27749
27750 wxPyEndAllowThreads(__tstate);
27751 if (PyErr_Occurred()) SWIG_fail;
27752 }
27753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27754 {
27755 if (temp3)
27756 delete arg3;
27757 }
27758 {
27759 if (temp7)
27760 delete arg7;
27761 }
27762 {
27763 if (temp9)
27764 delete arg9;
27765 }
27766 return resultobj;
27767 fail:
27768 {
27769 if (temp3)
27770 delete arg3;
27771 }
27772 {
27773 if (temp7)
27774 delete arg7;
27775 }
27776 {
27777 if (temp9)
27778 delete arg9;
27779 }
27780 return NULL;
27781 }
27782
27783
27784 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27785 PyObject *resultobj;
27786 wxGenericDirCtrl *result;
27787 char *kwnames[] = {
27788 NULL
27789 };
27790
27791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
27792 {
27793 PyThreadState* __tstate = wxPyBeginAllowThreads();
27794 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
27795
27796 wxPyEndAllowThreads(__tstate);
27797 if (PyErr_Occurred()) SWIG_fail;
27798 }
27799 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27800 return resultobj;
27801 fail:
27802 return NULL;
27803 }
27804
27805
27806 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
27807 PyObject *resultobj;
27808 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27809 wxWindow *arg2 = (wxWindow *) 0 ;
27810 int arg3 = (int) (int)-1 ;
27811 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
27812 wxString *arg4 = (wxString *) &arg4_defvalue ;
27813 wxPoint const &arg5_defvalue = wxDefaultPosition ;
27814 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
27815 wxSize const &arg6_defvalue = wxDefaultSize ;
27816 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
27817 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27818 wxString const &arg8_defvalue = wxPyEmptyString ;
27819 wxString *arg8 = (wxString *) &arg8_defvalue ;
27820 int arg9 = (int) 0 ;
27821 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
27822 wxString *arg10 = (wxString *) &arg10_defvalue ;
27823 bool result;
27824 bool temp4 = False ;
27825 wxPoint temp5 ;
27826 wxSize temp6 ;
27827 bool temp8 = False ;
27828 bool temp10 = False ;
27829 PyObject * obj0 = 0 ;
27830 PyObject * obj1 = 0 ;
27831 PyObject * obj2 = 0 ;
27832 PyObject * obj3 = 0 ;
27833 PyObject * obj4 = 0 ;
27834 PyObject * obj5 = 0 ;
27835 PyObject * obj6 = 0 ;
27836 PyObject * obj7 = 0 ;
27837 PyObject * obj8 = 0 ;
27838 PyObject * obj9 = 0 ;
27839 char *kwnames[] = {
27840 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27841 };
27842
27843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
27844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27846 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
27847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27848 if (obj2) {
27849 arg3 = (int const) SWIG_AsInt(obj2);
27850 if (PyErr_Occurred()) SWIG_fail;
27851 }
27852 if (obj3) {
27853 {
27854 arg4 = wxString_in_helper(obj3);
27855 if (arg4 == NULL) SWIG_fail;
27856 temp4 = True;
27857 }
27858 }
27859 if (obj4) {
27860 {
27861 arg5 = &temp5;
27862 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
27863 }
27864 }
27865 if (obj5) {
27866 {
27867 arg6 = &temp6;
27868 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
27869 }
27870 }
27871 if (obj6) {
27872 arg7 = (long) SWIG_AsLong(obj6);
27873 if (PyErr_Occurred()) SWIG_fail;
27874 }
27875 if (obj7) {
27876 {
27877 arg8 = wxString_in_helper(obj7);
27878 if (arg8 == NULL) SWIG_fail;
27879 temp8 = True;
27880 }
27881 }
27882 if (obj8) {
27883 arg9 = (int) SWIG_AsInt(obj8);
27884 if (PyErr_Occurred()) SWIG_fail;
27885 }
27886 if (obj9) {
27887 {
27888 arg10 = wxString_in_helper(obj9);
27889 if (arg10 == NULL) SWIG_fail;
27890 temp10 = True;
27891 }
27892 }
27893 {
27894 PyThreadState* __tstate = wxPyBeginAllowThreads();
27895 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
27896
27897 wxPyEndAllowThreads(__tstate);
27898 if (PyErr_Occurred()) SWIG_fail;
27899 }
27900 {
27901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27902 }
27903 {
27904 if (temp4)
27905 delete arg4;
27906 }
27907 {
27908 if (temp8)
27909 delete arg8;
27910 }
27911 {
27912 if (temp10)
27913 delete arg10;
27914 }
27915 return resultobj;
27916 fail:
27917 {
27918 if (temp4)
27919 delete arg4;
27920 }
27921 {
27922 if (temp8)
27923 delete arg8;
27924 }
27925 {
27926 if (temp10)
27927 delete arg10;
27928 }
27929 return NULL;
27930 }
27931
27932
27933 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27934 PyObject *resultobj;
27935 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27936 wxString *arg2 = 0 ;
27937 bool result;
27938 bool temp2 = False ;
27939 PyObject * obj0 = 0 ;
27940 PyObject * obj1 = 0 ;
27941 char *kwnames[] = {
27942 (char *) "self",(char *) "path", NULL
27943 };
27944
27945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
27946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27948 {
27949 arg2 = wxString_in_helper(obj1);
27950 if (arg2 == NULL) SWIG_fail;
27951 temp2 = True;
27952 }
27953 {
27954 PyThreadState* __tstate = wxPyBeginAllowThreads();
27955 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
27956
27957 wxPyEndAllowThreads(__tstate);
27958 if (PyErr_Occurred()) SWIG_fail;
27959 }
27960 {
27961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27962 }
27963 {
27964 if (temp2)
27965 delete arg2;
27966 }
27967 return resultobj;
27968 fail:
27969 {
27970 if (temp2)
27971 delete arg2;
27972 }
27973 return NULL;
27974 }
27975
27976
27977 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27978 PyObject *resultobj;
27979 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27980 wxString result;
27981 PyObject * obj0 = 0 ;
27982 char *kwnames[] = {
27983 (char *) "self", NULL
27984 };
27985
27986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
27987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27989 {
27990 PyThreadState* __tstate = wxPyBeginAllowThreads();
27991 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
27992
27993 wxPyEndAllowThreads(__tstate);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 {
27997 #if wxUSE_UNICODE
27998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27999 #else
28000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28001 #endif
28002 }
28003 return resultobj;
28004 fail:
28005 return NULL;
28006 }
28007
28008
28009 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28010 PyObject *resultobj;
28011 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28012 wxString *arg2 = 0 ;
28013 bool temp2 = False ;
28014 PyObject * obj0 = 0 ;
28015 PyObject * obj1 = 0 ;
28016 char *kwnames[] = {
28017 (char *) "self",(char *) "path", NULL
28018 };
28019
28020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28023 {
28024 arg2 = wxString_in_helper(obj1);
28025 if (arg2 == NULL) SWIG_fail;
28026 temp2 = True;
28027 }
28028 {
28029 PyThreadState* __tstate = wxPyBeginAllowThreads();
28030 (arg1)->SetDefaultPath((wxString const &)*arg2);
28031
28032 wxPyEndAllowThreads(__tstate);
28033 if (PyErr_Occurred()) SWIG_fail;
28034 }
28035 Py_INCREF(Py_None); resultobj = Py_None;
28036 {
28037 if (temp2)
28038 delete arg2;
28039 }
28040 return resultobj;
28041 fail:
28042 {
28043 if (temp2)
28044 delete arg2;
28045 }
28046 return NULL;
28047 }
28048
28049
28050 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28051 PyObject *resultobj;
28052 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28053 wxString result;
28054 PyObject * obj0 = 0 ;
28055 char *kwnames[] = {
28056 (char *) "self", NULL
28057 };
28058
28059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28062 {
28063 PyThreadState* __tstate = wxPyBeginAllowThreads();
28064 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28065
28066 wxPyEndAllowThreads(__tstate);
28067 if (PyErr_Occurred()) SWIG_fail;
28068 }
28069 {
28070 #if wxUSE_UNICODE
28071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28072 #else
28073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28074 #endif
28075 }
28076 return resultobj;
28077 fail:
28078 return NULL;
28079 }
28080
28081
28082 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
28083 PyObject *resultobj;
28084 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28085 wxString result;
28086 PyObject * obj0 = 0 ;
28087 char *kwnames[] = {
28088 (char *) "self", NULL
28089 };
28090
28091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28094 {
28095 PyThreadState* __tstate = wxPyBeginAllowThreads();
28096 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28097
28098 wxPyEndAllowThreads(__tstate);
28099 if (PyErr_Occurred()) SWIG_fail;
28100 }
28101 {
28102 #if wxUSE_UNICODE
28103 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28104 #else
28105 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28106 #endif
28107 }
28108 return resultobj;
28109 fail:
28110 return NULL;
28111 }
28112
28113
28114 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28115 PyObject *resultobj;
28116 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28117 wxString *arg2 = 0 ;
28118 bool temp2 = False ;
28119 PyObject * obj0 = 0 ;
28120 PyObject * obj1 = 0 ;
28121 char *kwnames[] = {
28122 (char *) "self",(char *) "path", NULL
28123 };
28124
28125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28128 {
28129 arg2 = wxString_in_helper(obj1);
28130 if (arg2 == NULL) SWIG_fail;
28131 temp2 = True;
28132 }
28133 {
28134 PyThreadState* __tstate = wxPyBeginAllowThreads();
28135 (arg1)->SetPath((wxString const &)*arg2);
28136
28137 wxPyEndAllowThreads(__tstate);
28138 if (PyErr_Occurred()) SWIG_fail;
28139 }
28140 Py_INCREF(Py_None); resultobj = Py_None;
28141 {
28142 if (temp2)
28143 delete arg2;
28144 }
28145 return resultobj;
28146 fail:
28147 {
28148 if (temp2)
28149 delete arg2;
28150 }
28151 return NULL;
28152 }
28153
28154
28155 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28156 PyObject *resultobj;
28157 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28158 bool arg2 ;
28159 PyObject * obj0 = 0 ;
28160 PyObject * obj1 = 0 ;
28161 char *kwnames[] = {
28162 (char *) "self",(char *) "show", NULL
28163 };
28164
28165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28168 arg2 = (bool) SWIG_AsBool(obj1);
28169 if (PyErr_Occurred()) SWIG_fail;
28170 {
28171 PyThreadState* __tstate = wxPyBeginAllowThreads();
28172 (arg1)->ShowHidden(arg2);
28173
28174 wxPyEndAllowThreads(__tstate);
28175 if (PyErr_Occurred()) SWIG_fail;
28176 }
28177 Py_INCREF(Py_None); resultobj = Py_None;
28178 return resultobj;
28179 fail:
28180 return NULL;
28181 }
28182
28183
28184 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28185 PyObject *resultobj;
28186 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28187 bool result;
28188 PyObject * obj0 = 0 ;
28189 char *kwnames[] = {
28190 (char *) "self", NULL
28191 };
28192
28193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28196 {
28197 PyThreadState* __tstate = wxPyBeginAllowThreads();
28198 result = (bool)(arg1)->GetShowHidden();
28199
28200 wxPyEndAllowThreads(__tstate);
28201 if (PyErr_Occurred()) SWIG_fail;
28202 }
28203 {
28204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28205 }
28206 return resultobj;
28207 fail:
28208 return NULL;
28209 }
28210
28211
28212 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28213 PyObject *resultobj;
28214 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28215 wxString result;
28216 PyObject * obj0 = 0 ;
28217 char *kwnames[] = {
28218 (char *) "self", NULL
28219 };
28220
28221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28224 {
28225 PyThreadState* __tstate = wxPyBeginAllowThreads();
28226 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28227
28228 wxPyEndAllowThreads(__tstate);
28229 if (PyErr_Occurred()) SWIG_fail;
28230 }
28231 {
28232 #if wxUSE_UNICODE
28233 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28234 #else
28235 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28236 #endif
28237 }
28238 return resultobj;
28239 fail:
28240 return NULL;
28241 }
28242
28243
28244 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28245 PyObject *resultobj;
28246 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28247 wxString *arg2 = 0 ;
28248 bool temp2 = False ;
28249 PyObject * obj0 = 0 ;
28250 PyObject * obj1 = 0 ;
28251 char *kwnames[] = {
28252 (char *) "self",(char *) "filter", NULL
28253 };
28254
28255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28258 {
28259 arg2 = wxString_in_helper(obj1);
28260 if (arg2 == NULL) SWIG_fail;
28261 temp2 = True;
28262 }
28263 {
28264 PyThreadState* __tstate = wxPyBeginAllowThreads();
28265 (arg1)->SetFilter((wxString const &)*arg2);
28266
28267 wxPyEndAllowThreads(__tstate);
28268 if (PyErr_Occurred()) SWIG_fail;
28269 }
28270 Py_INCREF(Py_None); resultobj = Py_None;
28271 {
28272 if (temp2)
28273 delete arg2;
28274 }
28275 return resultobj;
28276 fail:
28277 {
28278 if (temp2)
28279 delete arg2;
28280 }
28281 return NULL;
28282 }
28283
28284
28285 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28286 PyObject *resultobj;
28287 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28288 int result;
28289 PyObject * obj0 = 0 ;
28290 char *kwnames[] = {
28291 (char *) "self", NULL
28292 };
28293
28294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28297 {
28298 PyThreadState* __tstate = wxPyBeginAllowThreads();
28299 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28300
28301 wxPyEndAllowThreads(__tstate);
28302 if (PyErr_Occurred()) SWIG_fail;
28303 }
28304 resultobj = SWIG_FromInt((int)result);
28305 return resultobj;
28306 fail:
28307 return NULL;
28308 }
28309
28310
28311 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28312 PyObject *resultobj;
28313 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28314 int arg2 ;
28315 PyObject * obj0 = 0 ;
28316 PyObject * obj1 = 0 ;
28317 char *kwnames[] = {
28318 (char *) "self",(char *) "n", NULL
28319 };
28320
28321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28324 arg2 = (int) SWIG_AsInt(obj1);
28325 if (PyErr_Occurred()) SWIG_fail;
28326 {
28327 PyThreadState* __tstate = wxPyBeginAllowThreads();
28328 (arg1)->SetFilterIndex(arg2);
28329
28330 wxPyEndAllowThreads(__tstate);
28331 if (PyErr_Occurred()) SWIG_fail;
28332 }
28333 Py_INCREF(Py_None); resultobj = Py_None;
28334 return resultobj;
28335 fail:
28336 return NULL;
28337 }
28338
28339
28340 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
28341 PyObject *resultobj;
28342 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28343 wxTreeItemId result;
28344 PyObject * obj0 = 0 ;
28345 char *kwnames[] = {
28346 (char *) "self", NULL
28347 };
28348
28349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28352 {
28353 PyThreadState* __tstate = wxPyBeginAllowThreads();
28354 result = (arg1)->GetRootId();
28355
28356 wxPyEndAllowThreads(__tstate);
28357 if (PyErr_Occurred()) SWIG_fail;
28358 }
28359 {
28360 wxTreeItemId * resultptr;
28361 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28362 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28363 }
28364 return resultobj;
28365 fail:
28366 return NULL;
28367 }
28368
28369
28370 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28371 PyObject *resultobj;
28372 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28373 wxPyTreeCtrl *result;
28374 PyObject * obj0 = 0 ;
28375 char *kwnames[] = {
28376 (char *) "self", NULL
28377 };
28378
28379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
28380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28382 {
28383 PyThreadState* __tstate = wxPyBeginAllowThreads();
28384 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
28385
28386 wxPyEndAllowThreads(__tstate);
28387 if (PyErr_Occurred()) SWIG_fail;
28388 }
28389 {
28390 resultobj = wxPyMake_wxObject(result);
28391 }
28392 return resultobj;
28393 fail:
28394 return NULL;
28395 }
28396
28397
28398 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28399 PyObject *resultobj;
28400 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28401 wxDirFilterListCtrl *result;
28402 PyObject * obj0 = 0 ;
28403 char *kwnames[] = {
28404 (char *) "self", NULL
28405 };
28406
28407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
28408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28410 {
28411 PyThreadState* __tstate = wxPyBeginAllowThreads();
28412 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
28413
28414 wxPyEndAllowThreads(__tstate);
28415 if (PyErr_Occurred()) SWIG_fail;
28416 }
28417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
28418 return resultobj;
28419 fail:
28420 return NULL;
28421 }
28422
28423
28424 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28425 PyObject *resultobj;
28426 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28427 wxTreeItemId arg2 ;
28428 wxString *arg3 = 0 ;
28429 bool *arg4 = 0 ;
28430 wxTreeItemId result;
28431 wxTreeItemId *argp2 ;
28432 bool temp3 = False ;
28433 bool temp4 ;
28434 PyObject * obj0 = 0 ;
28435 PyObject * obj1 = 0 ;
28436 PyObject * obj2 = 0 ;
28437 char *kwnames[] = {
28438 (char *) "self",(char *) "parentId",(char *) "path", NULL
28439 };
28440
28441 arg4 = &temp4;
28442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
28443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28445 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
28446 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
28447 arg2 = *argp2;
28448 {
28449 arg3 = wxString_in_helper(obj2);
28450 if (arg3 == NULL) SWIG_fail;
28451 temp3 = True;
28452 }
28453 {
28454 PyThreadState* __tstate = wxPyBeginAllowThreads();
28455 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
28456
28457 wxPyEndAllowThreads(__tstate);
28458 if (PyErr_Occurred()) SWIG_fail;
28459 }
28460 {
28461 wxTreeItemId * resultptr;
28462 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28463 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28464 }
28465 {
28466 PyObject *o = PyInt_FromLong((long) (*arg4));
28467 resultobj = t_output_helper(resultobj,o);
28468 }
28469 {
28470 if (temp3)
28471 delete arg3;
28472 }
28473 return resultobj;
28474 fail:
28475 {
28476 if (temp3)
28477 delete arg3;
28478 }
28479 return NULL;
28480 }
28481
28482
28483 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
28484 PyObject *resultobj;
28485 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28486 PyObject * obj0 = 0 ;
28487 char *kwnames[] = {
28488 (char *) "self", NULL
28489 };
28490
28491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
28492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28494 {
28495 PyThreadState* __tstate = wxPyBeginAllowThreads();
28496 (arg1)->DoResize();
28497
28498 wxPyEndAllowThreads(__tstate);
28499 if (PyErr_Occurred()) SWIG_fail;
28500 }
28501 Py_INCREF(Py_None); resultobj = Py_None;
28502 return resultobj;
28503 fail:
28504 return NULL;
28505 }
28506
28507
28508 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
28509 PyObject *resultobj;
28510 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28511 PyObject * obj0 = 0 ;
28512 char *kwnames[] = {
28513 (char *) "self", NULL
28514 };
28515
28516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
28517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28519 {
28520 PyThreadState* __tstate = wxPyBeginAllowThreads();
28521 (arg1)->ReCreateTree();
28522
28523 wxPyEndAllowThreads(__tstate);
28524 if (PyErr_Occurred()) SWIG_fail;
28525 }
28526 Py_INCREF(Py_None); resultobj = Py_None;
28527 return resultobj;
28528 fail:
28529 return NULL;
28530 }
28531
28532
28533 static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
28534 PyObject *obj;
28535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28536 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
28537 Py_INCREF(obj);
28538 return Py_BuildValue((char *)"");
28539 }
28540 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28541 PyObject *resultobj;
28542 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28543 int arg2 = (int) (int)-1 ;
28544 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28545 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28546 wxSize const &arg4_defvalue = wxDefaultSize ;
28547 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28548 long arg5 = (long) 0 ;
28549 wxDirFilterListCtrl *result;
28550 wxPoint temp3 ;
28551 wxSize temp4 ;
28552 PyObject * obj0 = 0 ;
28553 PyObject * obj1 = 0 ;
28554 PyObject * obj2 = 0 ;
28555 PyObject * obj3 = 0 ;
28556 PyObject * obj4 = 0 ;
28557 char *kwnames[] = {
28558 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28559 };
28560
28561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28564 if (obj1) {
28565 arg2 = (int const) SWIG_AsInt(obj1);
28566 if (PyErr_Occurred()) SWIG_fail;
28567 }
28568 if (obj2) {
28569 {
28570 arg3 = &temp3;
28571 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28572 }
28573 }
28574 if (obj3) {
28575 {
28576 arg4 = &temp4;
28577 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28578 }
28579 }
28580 if (obj4) {
28581 arg5 = (long) SWIG_AsLong(obj4);
28582 if (PyErr_Occurred()) SWIG_fail;
28583 }
28584 {
28585 PyThreadState* __tstate = wxPyBeginAllowThreads();
28586 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28587
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28592 return resultobj;
28593 fail:
28594 return NULL;
28595 }
28596
28597
28598 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28599 PyObject *resultobj;
28600 wxDirFilterListCtrl *result;
28601 char *kwnames[] = {
28602 NULL
28603 };
28604
28605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
28606 {
28607 PyThreadState* __tstate = wxPyBeginAllowThreads();
28608 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
28609
28610 wxPyEndAllowThreads(__tstate);
28611 if (PyErr_Occurred()) SWIG_fail;
28612 }
28613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28614 return resultobj;
28615 fail:
28616 return NULL;
28617 }
28618
28619
28620 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
28621 PyObject *resultobj;
28622 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28623 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
28624 int arg3 = (int) (int)-1 ;
28625 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28626 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28627 wxSize const &arg5_defvalue = wxDefaultSize ;
28628 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28629 long arg6 = (long) 0 ;
28630 bool result;
28631 wxPoint temp4 ;
28632 wxSize temp5 ;
28633 PyObject * obj0 = 0 ;
28634 PyObject * obj1 = 0 ;
28635 PyObject * obj2 = 0 ;
28636 PyObject * obj3 = 0 ;
28637 PyObject * obj4 = 0 ;
28638 PyObject * obj5 = 0 ;
28639 char *kwnames[] = {
28640 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28641 };
28642
28643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28646 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
28647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28648 if (obj2) {
28649 arg3 = (int const) SWIG_AsInt(obj2);
28650 if (PyErr_Occurred()) SWIG_fail;
28651 }
28652 if (obj3) {
28653 {
28654 arg4 = &temp4;
28655 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28656 }
28657 }
28658 if (obj4) {
28659 {
28660 arg5 = &temp5;
28661 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28662 }
28663 }
28664 if (obj5) {
28665 arg6 = (long) SWIG_AsLong(obj5);
28666 if (PyErr_Occurred()) SWIG_fail;
28667 }
28668 {
28669 PyThreadState* __tstate = wxPyBeginAllowThreads();
28670 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
28671
28672 wxPyEndAllowThreads(__tstate);
28673 if (PyErr_Occurred()) SWIG_fail;
28674 }
28675 {
28676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28677 }
28678 return resultobj;
28679 fail:
28680 return NULL;
28681 }
28682
28683
28684 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
28685 PyObject *resultobj;
28686 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28687 wxString *arg2 = 0 ;
28688 int arg3 ;
28689 bool temp2 = False ;
28690 PyObject * obj0 = 0 ;
28691 PyObject * obj1 = 0 ;
28692 PyObject * obj2 = 0 ;
28693 char *kwnames[] = {
28694 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
28695 };
28696
28697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
28698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28700 {
28701 arg2 = wxString_in_helper(obj1);
28702 if (arg2 == NULL) SWIG_fail;
28703 temp2 = True;
28704 }
28705 arg3 = (int) SWIG_AsInt(obj2);
28706 if (PyErr_Occurred()) SWIG_fail;
28707 {
28708 PyThreadState* __tstate = wxPyBeginAllowThreads();
28709 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
28710
28711 wxPyEndAllowThreads(__tstate);
28712 if (PyErr_Occurred()) SWIG_fail;
28713 }
28714 Py_INCREF(Py_None); resultobj = Py_None;
28715 {
28716 if (temp2)
28717 delete arg2;
28718 }
28719 return resultobj;
28720 fail:
28721 {
28722 if (temp2)
28723 delete arg2;
28724 }
28725 return NULL;
28726 }
28727
28728
28729 static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
28730 PyObject *obj;
28731 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28732 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
28733 Py_INCREF(obj);
28734 return Py_BuildValue((char *)"");
28735 }
28736 static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28737 PyObject *resultobj;
28738 wxWindow *arg1 = (wxWindow *) 0 ;
28739 int arg2 ;
28740 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28741 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28742 wxSize const &arg4_defvalue = wxDefaultSize ;
28743 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28744 long arg5 = (long) 0 ;
28745 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28746 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28747 wxString const &arg7_defvalue = wxPyControlNameStr ;
28748 wxString *arg7 = (wxString *) &arg7_defvalue ;
28749 wxPyControl *result;
28750 wxPoint temp3 ;
28751 wxSize temp4 ;
28752 bool temp7 = False ;
28753 PyObject * obj0 = 0 ;
28754 PyObject * obj1 = 0 ;
28755 PyObject * obj2 = 0 ;
28756 PyObject * obj3 = 0 ;
28757 PyObject * obj4 = 0 ;
28758 PyObject * obj5 = 0 ;
28759 PyObject * obj6 = 0 ;
28760 char *kwnames[] = {
28761 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28762 };
28763
28764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
28765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28767 arg2 = (int const) SWIG_AsInt(obj1);
28768 if (PyErr_Occurred()) SWIG_fail;
28769 if (obj2) {
28770 {
28771 arg3 = &temp3;
28772 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28773 }
28774 }
28775 if (obj3) {
28776 {
28777 arg4 = &temp4;
28778 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28779 }
28780 }
28781 if (obj4) {
28782 arg5 = (long) SWIG_AsLong(obj4);
28783 if (PyErr_Occurred()) SWIG_fail;
28784 }
28785 if (obj5) {
28786 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
28787 SWIG_POINTER_EXCEPTION | 0)) == -1)
28788 SWIG_fail;
28789 if (arg6 == NULL) {
28790 PyErr_SetString(PyExc_TypeError,"null reference");
28791 SWIG_fail;
28792 }
28793 }
28794 if (obj6) {
28795 {
28796 arg7 = wxString_in_helper(obj6);
28797 if (arg7 == NULL) SWIG_fail;
28798 temp7 = True;
28799 }
28800 }
28801 {
28802 PyThreadState* __tstate = wxPyBeginAllowThreads();
28803 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28804
28805 wxPyEndAllowThreads(__tstate);
28806 if (PyErr_Occurred()) SWIG_fail;
28807 }
28808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28809 {
28810 if (temp7)
28811 delete arg7;
28812 }
28813 return resultobj;
28814 fail:
28815 {
28816 if (temp7)
28817 delete arg7;
28818 }
28819 return NULL;
28820 }
28821
28822
28823 static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28824 PyObject *resultobj;
28825 wxPyControl *result;
28826 char *kwnames[] = {
28827 NULL
28828 };
28829
28830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
28831 {
28832 PyThreadState* __tstate = wxPyBeginAllowThreads();
28833 result = (wxPyControl *)new wxPyControl();
28834
28835 wxPyEndAllowThreads(__tstate);
28836 if (PyErr_Occurred()) SWIG_fail;
28837 }
28838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28839 return resultobj;
28840 fail:
28841 return NULL;
28842 }
28843
28844
28845 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
28846 PyObject *resultobj;
28847 wxPyControl *arg1 = (wxPyControl *) 0 ;
28848 PyObject *arg2 = (PyObject *) 0 ;
28849 PyObject *arg3 = (PyObject *) 0 ;
28850 PyObject * obj0 = 0 ;
28851 PyObject * obj1 = 0 ;
28852 PyObject * obj2 = 0 ;
28853 char *kwnames[] = {
28854 (char *) "self",(char *) "self",(char *) "_class", NULL
28855 };
28856
28857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
28858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28860 arg2 = obj1;
28861 arg3 = obj2;
28862 {
28863 PyThreadState* __tstate = wxPyBeginAllowThreads();
28864 (arg1)->_setCallbackInfo(arg2,arg3);
28865
28866 wxPyEndAllowThreads(__tstate);
28867 if (PyErr_Occurred()) SWIG_fail;
28868 }
28869 Py_INCREF(Py_None); resultobj = Py_None;
28870 return resultobj;
28871 fail:
28872 return NULL;
28873 }
28874
28875
28876 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28877 PyObject *resultobj;
28878 wxPyControl *arg1 = (wxPyControl *) 0 ;
28879 int arg2 ;
28880 int arg3 ;
28881 int arg4 ;
28882 int arg5 ;
28883 PyObject * obj0 = 0 ;
28884 PyObject * obj1 = 0 ;
28885 PyObject * obj2 = 0 ;
28886 PyObject * obj3 = 0 ;
28887 PyObject * obj4 = 0 ;
28888 char *kwnames[] = {
28889 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28890 };
28891
28892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28895 arg2 = (int) SWIG_AsInt(obj1);
28896 if (PyErr_Occurred()) SWIG_fail;
28897 arg3 = (int) SWIG_AsInt(obj2);
28898 if (PyErr_Occurred()) SWIG_fail;
28899 arg4 = (int) SWIG_AsInt(obj3);
28900 if (PyErr_Occurred()) SWIG_fail;
28901 arg5 = (int) SWIG_AsInt(obj4);
28902 if (PyErr_Occurred()) SWIG_fail;
28903 {
28904 PyThreadState* __tstate = wxPyBeginAllowThreads();
28905 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
28906
28907 wxPyEndAllowThreads(__tstate);
28908 if (PyErr_Occurred()) SWIG_fail;
28909 }
28910 Py_INCREF(Py_None); resultobj = Py_None;
28911 return resultobj;
28912 fail:
28913 return NULL;
28914 }
28915
28916
28917 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28918 PyObject *resultobj;
28919 wxPyControl *arg1 = (wxPyControl *) 0 ;
28920 int arg2 ;
28921 int arg3 ;
28922 int arg4 ;
28923 int arg5 ;
28924 int arg6 = (int) wxSIZE_AUTO ;
28925 PyObject * obj0 = 0 ;
28926 PyObject * obj1 = 0 ;
28927 PyObject * obj2 = 0 ;
28928 PyObject * obj3 = 0 ;
28929 PyObject * obj4 = 0 ;
28930 PyObject * obj5 = 0 ;
28931 char *kwnames[] = {
28932 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
28933 };
28934
28935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28938 arg2 = (int) SWIG_AsInt(obj1);
28939 if (PyErr_Occurred()) SWIG_fail;
28940 arg3 = (int) SWIG_AsInt(obj2);
28941 if (PyErr_Occurred()) SWIG_fail;
28942 arg4 = (int) SWIG_AsInt(obj3);
28943 if (PyErr_Occurred()) SWIG_fail;
28944 arg5 = (int) SWIG_AsInt(obj4);
28945 if (PyErr_Occurred()) SWIG_fail;
28946 if (obj5) {
28947 arg6 = (int) SWIG_AsInt(obj5);
28948 if (PyErr_Occurred()) SWIG_fail;
28949 }
28950 {
28951 PyThreadState* __tstate = wxPyBeginAllowThreads();
28952 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
28953
28954 wxPyEndAllowThreads(__tstate);
28955 if (PyErr_Occurred()) SWIG_fail;
28956 }
28957 Py_INCREF(Py_None); resultobj = Py_None;
28958 return resultobj;
28959 fail:
28960 return NULL;
28961 }
28962
28963
28964 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28965 PyObject *resultobj;
28966 wxPyControl *arg1 = (wxPyControl *) 0 ;
28967 int arg2 ;
28968 int arg3 ;
28969 PyObject * obj0 = 0 ;
28970 PyObject * obj1 = 0 ;
28971 PyObject * obj2 = 0 ;
28972 char *kwnames[] = {
28973 (char *) "self",(char *) "width",(char *) "height", NULL
28974 };
28975
28976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
28977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28979 arg2 = (int) SWIG_AsInt(obj1);
28980 if (PyErr_Occurred()) SWIG_fail;
28981 arg3 = (int) SWIG_AsInt(obj2);
28982 if (PyErr_Occurred()) SWIG_fail;
28983 {
28984 PyThreadState* __tstate = wxPyBeginAllowThreads();
28985 (arg1)->base_DoSetClientSize(arg2,arg3);
28986
28987 wxPyEndAllowThreads(__tstate);
28988 if (PyErr_Occurred()) SWIG_fail;
28989 }
28990 Py_INCREF(Py_None); resultobj = Py_None;
28991 return resultobj;
28992 fail:
28993 return NULL;
28994 }
28995
28996
28997 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28998 PyObject *resultobj;
28999 wxPyControl *arg1 = (wxPyControl *) 0 ;
29000 int arg2 ;
29001 int arg3 ;
29002 PyObject * obj0 = 0 ;
29003 PyObject * obj1 = 0 ;
29004 PyObject * obj2 = 0 ;
29005 char *kwnames[] = {
29006 (char *) "self",(char *) "x",(char *) "y", NULL
29007 };
29008
29009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29012 arg2 = (int) SWIG_AsInt(obj1);
29013 if (PyErr_Occurred()) SWIG_fail;
29014 arg3 = (int) SWIG_AsInt(obj2);
29015 if (PyErr_Occurred()) SWIG_fail;
29016 {
29017 PyThreadState* __tstate = wxPyBeginAllowThreads();
29018 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29019
29020 wxPyEndAllowThreads(__tstate);
29021 if (PyErr_Occurred()) SWIG_fail;
29022 }
29023 Py_INCREF(Py_None); resultobj = Py_None;
29024 return resultobj;
29025 fail:
29026 return NULL;
29027 }
29028
29029
29030 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29031 PyObject *resultobj;
29032 wxPyControl *arg1 = (wxPyControl *) 0 ;
29033 int *arg2 = (int *) 0 ;
29034 int *arg3 = (int *) 0 ;
29035 int temp2 ;
29036 int temp3 ;
29037 PyObject * obj0 = 0 ;
29038 char *kwnames[] = {
29039 (char *) "self", NULL
29040 };
29041
29042 arg2 = &temp2;
29043 arg3 = &temp3;
29044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29047 {
29048 PyThreadState* __tstate = wxPyBeginAllowThreads();
29049 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29050
29051 wxPyEndAllowThreads(__tstate);
29052 if (PyErr_Occurred()) SWIG_fail;
29053 }
29054 Py_INCREF(Py_None); resultobj = Py_None;
29055 {
29056 PyObject *o = PyInt_FromLong((long) (*arg2));
29057 resultobj = t_output_helper(resultobj,o);
29058 }
29059 {
29060 PyObject *o = PyInt_FromLong((long) (*arg3));
29061 resultobj = t_output_helper(resultobj,o);
29062 }
29063 return resultobj;
29064 fail:
29065 return NULL;
29066 }
29067
29068
29069 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29070 PyObject *resultobj;
29071 wxPyControl *arg1 = (wxPyControl *) 0 ;
29072 int *arg2 = (int *) 0 ;
29073 int *arg3 = (int *) 0 ;
29074 int temp2 ;
29075 int temp3 ;
29076 PyObject * obj0 = 0 ;
29077 char *kwnames[] = {
29078 (char *) "self", NULL
29079 };
29080
29081 arg2 = &temp2;
29082 arg3 = &temp3;
29083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29086 {
29087 PyThreadState* __tstate = wxPyBeginAllowThreads();
29088 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29089
29090 wxPyEndAllowThreads(__tstate);
29091 if (PyErr_Occurred()) SWIG_fail;
29092 }
29093 Py_INCREF(Py_None); resultobj = Py_None;
29094 {
29095 PyObject *o = PyInt_FromLong((long) (*arg2));
29096 resultobj = t_output_helper(resultobj,o);
29097 }
29098 {
29099 PyObject *o = PyInt_FromLong((long) (*arg3));
29100 resultobj = t_output_helper(resultobj,o);
29101 }
29102 return resultobj;
29103 fail:
29104 return NULL;
29105 }
29106
29107
29108 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29109 PyObject *resultobj;
29110 wxPyControl *arg1 = (wxPyControl *) 0 ;
29111 int *arg2 = (int *) 0 ;
29112 int *arg3 = (int *) 0 ;
29113 int temp2 ;
29114 int temp3 ;
29115 PyObject * obj0 = 0 ;
29116 char *kwnames[] = {
29117 (char *) "self", NULL
29118 };
29119
29120 arg2 = &temp2;
29121 arg3 = &temp3;
29122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29125 {
29126 PyThreadState* __tstate = wxPyBeginAllowThreads();
29127 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29128
29129 wxPyEndAllowThreads(__tstate);
29130 if (PyErr_Occurred()) SWIG_fail;
29131 }
29132 Py_INCREF(Py_None); resultobj = Py_None;
29133 {
29134 PyObject *o = PyInt_FromLong((long) (*arg2));
29135 resultobj = t_output_helper(resultobj,o);
29136 }
29137 {
29138 PyObject *o = PyInt_FromLong((long) (*arg3));
29139 resultobj = t_output_helper(resultobj,o);
29140 }
29141 return resultobj;
29142 fail:
29143 return NULL;
29144 }
29145
29146
29147 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29148 PyObject *resultobj;
29149 wxPyControl *arg1 = (wxPyControl *) 0 ;
29150 wxSize result;
29151 PyObject * obj0 = 0 ;
29152 char *kwnames[] = {
29153 (char *) "self", NULL
29154 };
29155
29156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29159 {
29160 PyThreadState* __tstate = wxPyBeginAllowThreads();
29161 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29162
29163 wxPyEndAllowThreads(__tstate);
29164 if (PyErr_Occurred()) SWIG_fail;
29165 }
29166 {
29167 wxSize * resultptr;
29168 resultptr = new wxSize((wxSize &) result);
29169 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29170 }
29171 return resultobj;
29172 fail:
29173 return NULL;
29174 }
29175
29176
29177 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29178 PyObject *resultobj;
29179 wxPyControl *arg1 = (wxPyControl *) 0 ;
29180 wxSize result;
29181 PyObject * obj0 = 0 ;
29182 char *kwnames[] = {
29183 (char *) "self", NULL
29184 };
29185
29186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29189 {
29190 PyThreadState* __tstate = wxPyBeginAllowThreads();
29191 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29192
29193 wxPyEndAllowThreads(__tstate);
29194 if (PyErr_Occurred()) SWIG_fail;
29195 }
29196 {
29197 wxSize * resultptr;
29198 resultptr = new wxSize((wxSize &) result);
29199 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29200 }
29201 return resultobj;
29202 fail:
29203 return NULL;
29204 }
29205
29206
29207 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
29208 PyObject *resultobj;
29209 wxPyControl *arg1 = (wxPyControl *) 0 ;
29210 PyObject * obj0 = 0 ;
29211 char *kwnames[] = {
29212 (char *) "self", NULL
29213 };
29214
29215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29218 {
29219 PyThreadState* __tstate = wxPyBeginAllowThreads();
29220 (arg1)->base_InitDialog();
29221
29222 wxPyEndAllowThreads(__tstate);
29223 if (PyErr_Occurred()) SWIG_fail;
29224 }
29225 Py_INCREF(Py_None); resultobj = Py_None;
29226 return resultobj;
29227 fail:
29228 return NULL;
29229 }
29230
29231
29232 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29233 PyObject *resultobj;
29234 wxPyControl *arg1 = (wxPyControl *) 0 ;
29235 bool result;
29236 PyObject * obj0 = 0 ;
29237 char *kwnames[] = {
29238 (char *) "self", NULL
29239 };
29240
29241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29244 {
29245 PyThreadState* __tstate = wxPyBeginAllowThreads();
29246 result = (bool)(arg1)->base_TransferDataToWindow();
29247
29248 wxPyEndAllowThreads(__tstate);
29249 if (PyErr_Occurred()) SWIG_fail;
29250 }
29251 {
29252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29253 }
29254 return resultobj;
29255 fail:
29256 return NULL;
29257 }
29258
29259
29260 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29261 PyObject *resultobj;
29262 wxPyControl *arg1 = (wxPyControl *) 0 ;
29263 bool result;
29264 PyObject * obj0 = 0 ;
29265 char *kwnames[] = {
29266 (char *) "self", NULL
29267 };
29268
29269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29272 {
29273 PyThreadState* __tstate = wxPyBeginAllowThreads();
29274 result = (bool)(arg1)->base_TransferDataFromWindow();
29275
29276 wxPyEndAllowThreads(__tstate);
29277 if (PyErr_Occurred()) SWIG_fail;
29278 }
29279 {
29280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29281 }
29282 return resultobj;
29283 fail:
29284 return NULL;
29285 }
29286
29287
29288 static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
29289 PyObject *resultobj;
29290 wxPyControl *arg1 = (wxPyControl *) 0 ;
29291 bool result;
29292 PyObject * obj0 = 0 ;
29293 char *kwnames[] = {
29294 (char *) "self", NULL
29295 };
29296
29297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29300 {
29301 PyThreadState* __tstate = wxPyBeginAllowThreads();
29302 result = (bool)(arg1)->base_Validate();
29303
29304 wxPyEndAllowThreads(__tstate);
29305 if (PyErr_Occurred()) SWIG_fail;
29306 }
29307 {
29308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29309 }
29310 return resultobj;
29311 fail:
29312 return NULL;
29313 }
29314
29315
29316 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
29317 PyObject *resultobj;
29318 wxPyControl *arg1 = (wxPyControl *) 0 ;
29319 bool result;
29320 PyObject * obj0 = 0 ;
29321 char *kwnames[] = {
29322 (char *) "self", NULL
29323 };
29324
29325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29328 {
29329 PyThreadState* __tstate = wxPyBeginAllowThreads();
29330 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29331
29332 wxPyEndAllowThreads(__tstate);
29333 if (PyErr_Occurred()) SWIG_fail;
29334 }
29335 {
29336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29337 }
29338 return resultobj;
29339 fail:
29340 return NULL;
29341 }
29342
29343
29344 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
29345 PyObject *resultobj;
29346 wxPyControl *arg1 = (wxPyControl *) 0 ;
29347 bool result;
29348 PyObject * obj0 = 0 ;
29349 char *kwnames[] = {
29350 (char *) "self", NULL
29351 };
29352
29353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
29354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29356 {
29357 PyThreadState* __tstate = wxPyBeginAllowThreads();
29358 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
29359
29360 wxPyEndAllowThreads(__tstate);
29361 if (PyErr_Occurred()) SWIG_fail;
29362 }
29363 {
29364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29365 }
29366 return resultobj;
29367 fail:
29368 return NULL;
29369 }
29370
29371
29372 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29373 PyObject *resultobj;
29374 wxPyControl *arg1 = (wxPyControl *) 0 ;
29375 wxSize result;
29376 PyObject * obj0 = 0 ;
29377 char *kwnames[] = {
29378 (char *) "self", NULL
29379 };
29380
29381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
29382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29384 {
29385 PyThreadState* __tstate = wxPyBeginAllowThreads();
29386 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
29387
29388 wxPyEndAllowThreads(__tstate);
29389 if (PyErr_Occurred()) SWIG_fail;
29390 }
29391 {
29392 wxSize * resultptr;
29393 resultptr = new wxSize((wxSize &) result);
29394 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29395 }
29396 return resultobj;
29397 fail:
29398 return NULL;
29399 }
29400
29401
29402 static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29403 PyObject *resultobj;
29404 wxPyControl *arg1 = (wxPyControl *) 0 ;
29405 wxWindow *arg2 = (wxWindow *) 0 ;
29406 PyObject * obj0 = 0 ;
29407 PyObject * obj1 = 0 ;
29408 char *kwnames[] = {
29409 (char *) "self",(char *) "child", NULL
29410 };
29411
29412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
29413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29415 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29417 {
29418 PyThreadState* __tstate = wxPyBeginAllowThreads();
29419 (arg1)->base_AddChild(arg2);
29420
29421 wxPyEndAllowThreads(__tstate);
29422 if (PyErr_Occurred()) SWIG_fail;
29423 }
29424 Py_INCREF(Py_None); resultobj = Py_None;
29425 return resultobj;
29426 fail:
29427 return NULL;
29428 }
29429
29430
29431 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29432 PyObject *resultobj;
29433 wxPyControl *arg1 = (wxPyControl *) 0 ;
29434 wxWindow *arg2 = (wxWindow *) 0 ;
29435 PyObject * obj0 = 0 ;
29436 PyObject * obj1 = 0 ;
29437 char *kwnames[] = {
29438 (char *) "self",(char *) "child", NULL
29439 };
29440
29441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
29442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29446 {
29447 PyThreadState* __tstate = wxPyBeginAllowThreads();
29448 (arg1)->base_RemoveChild(arg2);
29449
29450 wxPyEndAllowThreads(__tstate);
29451 if (PyErr_Occurred()) SWIG_fail;
29452 }
29453 Py_INCREF(Py_None); resultobj = Py_None;
29454 return resultobj;
29455 fail:
29456 return NULL;
29457 }
29458
29459
29460 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
29461 PyObject *resultobj;
29462 wxPyControl *arg1 = (wxPyControl *) 0 ;
29463 bool result;
29464 PyObject * obj0 = 0 ;
29465 char *kwnames[] = {
29466 (char *) "self", NULL
29467 };
29468
29469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
29470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29472 {
29473 PyThreadState* __tstate = wxPyBeginAllowThreads();
29474 result = (bool)(arg1)->base_ShouldInheritColours();
29475
29476 wxPyEndAllowThreads(__tstate);
29477 if (PyErr_Occurred()) SWIG_fail;
29478 }
29479 {
29480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29481 }
29482 return resultobj;
29483 fail:
29484 return NULL;
29485 }
29486
29487
29488 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
29489 PyObject *resultobj;
29490 wxPyControl *arg1 = (wxPyControl *) 0 ;
29491 wxColour *arg2 = 0 ;
29492 wxColour temp2 ;
29493 PyObject * obj0 = 0 ;
29494 PyObject * obj1 = 0 ;
29495 char *kwnames[] = {
29496 (char *) "self",(char *) "c", NULL
29497 };
29498
29499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
29500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29502 {
29503 arg2 = &temp2;
29504 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29505 }
29506 {
29507 PyThreadState* __tstate = wxPyBeginAllowThreads();
29508 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
29509
29510 wxPyEndAllowThreads(__tstate);
29511 if (PyErr_Occurred()) SWIG_fail;
29512 }
29513 Py_INCREF(Py_None); resultobj = Py_None;
29514 return resultobj;
29515 fail:
29516 return NULL;
29517 }
29518
29519
29520 static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
29521 PyObject *obj;
29522 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29523 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
29524 Py_INCREF(obj);
29525 return Py_BuildValue((char *)"");
29526 }
29527 static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
29528 PyObject *resultobj;
29529 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29530 int arg2 = (int) 0 ;
29531 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29532 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29533 wxHelpEvent *result;
29534 wxPoint temp3 ;
29535 PyObject * obj0 = 0 ;
29536 PyObject * obj1 = 0 ;
29537 PyObject * obj2 = 0 ;
29538 char *kwnames[] = {
29539 (char *) "type",(char *) "winid",(char *) "pt", NULL
29540 };
29541
29542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
29543 if (obj0) {
29544 arg1 = (wxEventType) SWIG_AsInt(obj0);
29545 if (PyErr_Occurred()) SWIG_fail;
29546 }
29547 if (obj1) {
29548 arg2 = (int) SWIG_AsInt(obj1);
29549 if (PyErr_Occurred()) SWIG_fail;
29550 }
29551 if (obj2) {
29552 {
29553 arg3 = &temp3;
29554 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29555 }
29556 }
29557 {
29558 PyThreadState* __tstate = wxPyBeginAllowThreads();
29559 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
29560
29561 wxPyEndAllowThreads(__tstate);
29562 if (PyErr_Occurred()) SWIG_fail;
29563 }
29564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
29565 return resultobj;
29566 fail:
29567 return NULL;
29568 }
29569
29570
29571 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29572 PyObject *resultobj;
29573 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29574 wxPoint result;
29575 PyObject * obj0 = 0 ;
29576 char *kwnames[] = {
29577 (char *) "self", NULL
29578 };
29579
29580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
29581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29583 {
29584 PyThreadState* __tstate = wxPyBeginAllowThreads();
29585 result = ((wxHelpEvent const *)arg1)->GetPosition();
29586
29587 wxPyEndAllowThreads(__tstate);
29588 if (PyErr_Occurred()) SWIG_fail;
29589 }
29590 {
29591 wxPoint * resultptr;
29592 resultptr = new wxPoint((wxPoint &) result);
29593 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
29594 }
29595 return resultobj;
29596 fail:
29597 return NULL;
29598 }
29599
29600
29601 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29602 PyObject *resultobj;
29603 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29604 wxPoint *arg2 = 0 ;
29605 wxPoint temp2 ;
29606 PyObject * obj0 = 0 ;
29607 PyObject * obj1 = 0 ;
29608 char *kwnames[] = {
29609 (char *) "self",(char *) "pos", NULL
29610 };
29611
29612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
29613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29615 {
29616 arg2 = &temp2;
29617 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29618 }
29619 {
29620 PyThreadState* __tstate = wxPyBeginAllowThreads();
29621 (arg1)->SetPosition((wxPoint const &)*arg2);
29622
29623 wxPyEndAllowThreads(__tstate);
29624 if (PyErr_Occurred()) SWIG_fail;
29625 }
29626 Py_INCREF(Py_None); resultobj = Py_None;
29627 return resultobj;
29628 fail:
29629 return NULL;
29630 }
29631
29632
29633 static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29634 PyObject *resultobj;
29635 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29636 wxString *result;
29637 PyObject * obj0 = 0 ;
29638 char *kwnames[] = {
29639 (char *) "self", NULL
29640 };
29641
29642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
29643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29645 {
29646 PyThreadState* __tstate = wxPyBeginAllowThreads();
29647 {
29648 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
29649 result = (wxString *) &_result_ref;
29650 }
29651
29652 wxPyEndAllowThreads(__tstate);
29653 if (PyErr_Occurred()) SWIG_fail;
29654 }
29655 {
29656 #if wxUSE_UNICODE
29657 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29658 #else
29659 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29660 #endif
29661 }
29662 return resultobj;
29663 fail:
29664 return NULL;
29665 }
29666
29667
29668 static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29669 PyObject *resultobj;
29670 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29671 wxString *arg2 = 0 ;
29672 bool temp2 = False ;
29673 PyObject * obj0 = 0 ;
29674 PyObject * obj1 = 0 ;
29675 char *kwnames[] = {
29676 (char *) "self",(char *) "link", NULL
29677 };
29678
29679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
29680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29682 {
29683 arg2 = wxString_in_helper(obj1);
29684 if (arg2 == NULL) SWIG_fail;
29685 temp2 = True;
29686 }
29687 {
29688 PyThreadState* __tstate = wxPyBeginAllowThreads();
29689 (arg1)->SetLink((wxString const &)*arg2);
29690
29691 wxPyEndAllowThreads(__tstate);
29692 if (PyErr_Occurred()) SWIG_fail;
29693 }
29694 Py_INCREF(Py_None); resultobj = Py_None;
29695 {
29696 if (temp2)
29697 delete arg2;
29698 }
29699 return resultobj;
29700 fail:
29701 {
29702 if (temp2)
29703 delete arg2;
29704 }
29705 return NULL;
29706 }
29707
29708
29709 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29710 PyObject *resultobj;
29711 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29712 wxString *result;
29713 PyObject * obj0 = 0 ;
29714 char *kwnames[] = {
29715 (char *) "self", NULL
29716 };
29717
29718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
29719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29721 {
29722 PyThreadState* __tstate = wxPyBeginAllowThreads();
29723 {
29724 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
29725 result = (wxString *) &_result_ref;
29726 }
29727
29728 wxPyEndAllowThreads(__tstate);
29729 if (PyErr_Occurred()) SWIG_fail;
29730 }
29731 {
29732 #if wxUSE_UNICODE
29733 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29734 #else
29735 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29736 #endif
29737 }
29738 return resultobj;
29739 fail:
29740 return NULL;
29741 }
29742
29743
29744 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29745 PyObject *resultobj;
29746 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29747 wxString *arg2 = 0 ;
29748 bool temp2 = False ;
29749 PyObject * obj0 = 0 ;
29750 PyObject * obj1 = 0 ;
29751 char *kwnames[] = {
29752 (char *) "self",(char *) "target", NULL
29753 };
29754
29755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
29756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29758 {
29759 arg2 = wxString_in_helper(obj1);
29760 if (arg2 == NULL) SWIG_fail;
29761 temp2 = True;
29762 }
29763 {
29764 PyThreadState* __tstate = wxPyBeginAllowThreads();
29765 (arg1)->SetTarget((wxString const &)*arg2);
29766
29767 wxPyEndAllowThreads(__tstate);
29768 if (PyErr_Occurred()) SWIG_fail;
29769 }
29770 Py_INCREF(Py_None); resultobj = Py_None;
29771 {
29772 if (temp2)
29773 delete arg2;
29774 }
29775 return resultobj;
29776 fail:
29777 {
29778 if (temp2)
29779 delete arg2;
29780 }
29781 return NULL;
29782 }
29783
29784
29785 static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
29786 PyObject *obj;
29787 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29788 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
29789 Py_INCREF(obj);
29790 return Py_BuildValue((char *)"");
29791 }
29792 static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29793 PyObject *resultobj;
29794 wxWindow *arg1 = (wxWindow *) NULL ;
29795 bool arg2 = (bool) True ;
29796 wxContextHelp *result;
29797 PyObject * obj0 = 0 ;
29798 PyObject * obj1 = 0 ;
29799 char *kwnames[] = {
29800 (char *) "window",(char *) "doNow", NULL
29801 };
29802
29803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
29804 if (obj0) {
29805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29807 }
29808 if (obj1) {
29809 arg2 = (bool) SWIG_AsBool(obj1);
29810 if (PyErr_Occurred()) SWIG_fail;
29811 }
29812 {
29813 PyThreadState* __tstate = wxPyBeginAllowThreads();
29814 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
29815
29816 wxPyEndAllowThreads(__tstate);
29817 if (PyErr_Occurred()) SWIG_fail;
29818 }
29819 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
29820 return resultobj;
29821 fail:
29822 return NULL;
29823 }
29824
29825
29826 static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29827 PyObject *resultobj;
29828 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29829 PyObject * obj0 = 0 ;
29830 char *kwnames[] = {
29831 (char *) "self", NULL
29832 };
29833
29834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
29835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29837 {
29838 PyThreadState* __tstate = wxPyBeginAllowThreads();
29839 delete arg1;
29840
29841 wxPyEndAllowThreads(__tstate);
29842 if (PyErr_Occurred()) SWIG_fail;
29843 }
29844 Py_INCREF(Py_None); resultobj = Py_None;
29845 return resultobj;
29846 fail:
29847 return NULL;
29848 }
29849
29850
29851 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29852 PyObject *resultobj;
29853 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29854 wxWindow *arg2 = (wxWindow *) NULL ;
29855 bool result;
29856 PyObject * obj0 = 0 ;
29857 PyObject * obj1 = 0 ;
29858 char *kwnames[] = {
29859 (char *) "self",(char *) "window", NULL
29860 };
29861
29862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
29863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29865 if (obj1) {
29866 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29868 }
29869 {
29870 PyThreadState* __tstate = wxPyBeginAllowThreads();
29871 result = (bool)(arg1)->BeginContextHelp(arg2);
29872
29873 wxPyEndAllowThreads(__tstate);
29874 if (PyErr_Occurred()) SWIG_fail;
29875 }
29876 {
29877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29878 }
29879 return resultobj;
29880 fail:
29881 return NULL;
29882 }
29883
29884
29885 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29886 PyObject *resultobj;
29887 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29888 bool result;
29889 PyObject * obj0 = 0 ;
29890 char *kwnames[] = {
29891 (char *) "self", NULL
29892 };
29893
29894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
29895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29897 {
29898 PyThreadState* __tstate = wxPyBeginAllowThreads();
29899 result = (bool)(arg1)->EndContextHelp();
29900
29901 wxPyEndAllowThreads(__tstate);
29902 if (PyErr_Occurred()) SWIG_fail;
29903 }
29904 {
29905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29906 }
29907 return resultobj;
29908 fail:
29909 return NULL;
29910 }
29911
29912
29913 static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
29914 PyObject *obj;
29915 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29916 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
29917 Py_INCREF(obj);
29918 return Py_BuildValue((char *)"");
29919 }
29920 static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
29921 PyObject *resultobj;
29922 wxWindow *arg1 = (wxWindow *) 0 ;
29923 int arg2 = (int) wxID_CONTEXT_HELP ;
29924 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29925 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29926 wxSize const &arg4_defvalue = wxDefaultSize ;
29927 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29928 long arg5 = (long) wxBU_AUTODRAW ;
29929 wxContextHelpButton *result;
29930 wxPoint temp3 ;
29931 wxSize temp4 ;
29932 PyObject * obj0 = 0 ;
29933 PyObject * obj1 = 0 ;
29934 PyObject * obj2 = 0 ;
29935 PyObject * obj3 = 0 ;
29936 PyObject * obj4 = 0 ;
29937 char *kwnames[] = {
29938 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29939 };
29940
29941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29944 if (obj1) {
29945 arg2 = (int) SWIG_AsInt(obj1);
29946 if (PyErr_Occurred()) SWIG_fail;
29947 }
29948 if (obj2) {
29949 {
29950 arg3 = &temp3;
29951 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29952 }
29953 }
29954 if (obj3) {
29955 {
29956 arg4 = &temp4;
29957 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29958 }
29959 }
29960 if (obj4) {
29961 arg5 = (long) SWIG_AsLong(obj4);
29962 if (PyErr_Occurred()) SWIG_fail;
29963 }
29964 {
29965 PyThreadState* __tstate = wxPyBeginAllowThreads();
29966 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
29967
29968 wxPyEndAllowThreads(__tstate);
29969 if (PyErr_Occurred()) SWIG_fail;
29970 }
29971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
29972 return resultobj;
29973 fail:
29974 return NULL;
29975 }
29976
29977
29978 static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
29979 PyObject *obj;
29980 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29981 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
29982 Py_INCREF(obj);
29983 return Py_BuildValue((char *)"");
29984 }
29985 static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
29986 PyObject *resultobj;
29987 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29988 wxHelpProvider *result;
29989 PyObject * obj0 = 0 ;
29990 char *kwnames[] = {
29991 (char *) "helpProvider", NULL
29992 };
29993
29994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
29995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29997 {
29998 PyThreadState* __tstate = wxPyBeginAllowThreads();
29999 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30000
30001 wxPyEndAllowThreads(__tstate);
30002 if (PyErr_Occurred()) SWIG_fail;
30003 }
30004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30005 return resultobj;
30006 fail:
30007 return NULL;
30008 }
30009
30010
30011 static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
30012 PyObject *resultobj;
30013 wxHelpProvider *result;
30014 char *kwnames[] = {
30015 NULL
30016 };
30017
30018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30019 {
30020 PyThreadState* __tstate = wxPyBeginAllowThreads();
30021 result = (wxHelpProvider *)wxHelpProvider::Get();
30022
30023 wxPyEndAllowThreads(__tstate);
30024 if (PyErr_Occurred()) SWIG_fail;
30025 }
30026 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30027 return resultobj;
30028 fail:
30029 return NULL;
30030 }
30031
30032
30033 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30034 PyObject *resultobj;
30035 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30036 wxWindow *arg2 = (wxWindow *) 0 ;
30037 wxString result;
30038 PyObject * obj0 = 0 ;
30039 PyObject * obj1 = 0 ;
30040 char *kwnames[] = {
30041 (char *) "self",(char *) "window", NULL
30042 };
30043
30044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30047 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30049 {
30050 PyThreadState* __tstate = wxPyBeginAllowThreads();
30051 result = (arg1)->GetHelp((wxWindow const *)arg2);
30052
30053 wxPyEndAllowThreads(__tstate);
30054 if (PyErr_Occurred()) SWIG_fail;
30055 }
30056 {
30057 #if wxUSE_UNICODE
30058 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30059 #else
30060 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30061 #endif
30062 }
30063 return resultobj;
30064 fail:
30065 return NULL;
30066 }
30067
30068
30069 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30070 PyObject *resultobj;
30071 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30072 wxWindow *arg2 = (wxWindow *) 0 ;
30073 bool result;
30074 PyObject * obj0 = 0 ;
30075 PyObject * obj1 = 0 ;
30076 char *kwnames[] = {
30077 (char *) "self",(char *) "window", NULL
30078 };
30079
30080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30085 {
30086 PyThreadState* __tstate = wxPyBeginAllowThreads();
30087 result = (bool)(arg1)->ShowHelp(arg2);
30088
30089 wxPyEndAllowThreads(__tstate);
30090 if (PyErr_Occurred()) SWIG_fail;
30091 }
30092 {
30093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30094 }
30095 return resultobj;
30096 fail:
30097 return NULL;
30098 }
30099
30100
30101 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30102 PyObject *resultobj;
30103 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30104 wxWindow *arg2 = (wxWindow *) 0 ;
30105 wxString *arg3 = 0 ;
30106 bool temp3 = False ;
30107 PyObject * obj0 = 0 ;
30108 PyObject * obj1 = 0 ;
30109 PyObject * obj2 = 0 ;
30110 char *kwnames[] = {
30111 (char *) "self",(char *) "window",(char *) "text", NULL
30112 };
30113
30114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30119 {
30120 arg3 = wxString_in_helper(obj2);
30121 if (arg3 == NULL) SWIG_fail;
30122 temp3 = True;
30123 }
30124 {
30125 PyThreadState* __tstate = wxPyBeginAllowThreads();
30126 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30127
30128 wxPyEndAllowThreads(__tstate);
30129 if (PyErr_Occurred()) SWIG_fail;
30130 }
30131 Py_INCREF(Py_None); resultobj = Py_None;
30132 {
30133 if (temp3)
30134 delete arg3;
30135 }
30136 return resultobj;
30137 fail:
30138 {
30139 if (temp3)
30140 delete arg3;
30141 }
30142 return NULL;
30143 }
30144
30145
30146 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
30147 PyObject *resultobj;
30148 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30149 int arg2 ;
30150 wxString *arg3 = 0 ;
30151 bool temp3 = False ;
30152 PyObject * obj0 = 0 ;
30153 PyObject * obj1 = 0 ;
30154 PyObject * obj2 = 0 ;
30155 char *kwnames[] = {
30156 (char *) "self",(char *) "id",(char *) "text", NULL
30157 };
30158
30159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30162 arg2 = (int) SWIG_AsInt(obj1);
30163 if (PyErr_Occurred()) SWIG_fail;
30164 {
30165 arg3 = wxString_in_helper(obj2);
30166 if (arg3 == NULL) SWIG_fail;
30167 temp3 = True;
30168 }
30169 {
30170 PyThreadState* __tstate = wxPyBeginAllowThreads();
30171 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30172
30173 wxPyEndAllowThreads(__tstate);
30174 if (PyErr_Occurred()) SWIG_fail;
30175 }
30176 Py_INCREF(Py_None); resultobj = Py_None;
30177 {
30178 if (temp3)
30179 delete arg3;
30180 }
30181 return resultobj;
30182 fail:
30183 {
30184 if (temp3)
30185 delete arg3;
30186 }
30187 return NULL;
30188 }
30189
30190
30191 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30192 PyObject *resultobj;
30193 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30194 wxWindow *arg2 = (wxWindow *) 0 ;
30195 PyObject * obj0 = 0 ;
30196 PyObject * obj1 = 0 ;
30197 char *kwnames[] = {
30198 (char *) "self",(char *) "window", NULL
30199 };
30200
30201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30206 {
30207 PyThreadState* __tstate = wxPyBeginAllowThreads();
30208 (arg1)->RemoveHelp(arg2);
30209
30210 wxPyEndAllowThreads(__tstate);
30211 if (PyErr_Occurred()) SWIG_fail;
30212 }
30213 Py_INCREF(Py_None); resultobj = Py_None;
30214 return resultobj;
30215 fail:
30216 return NULL;
30217 }
30218
30219
30220 static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
30221 PyObject *resultobj;
30222 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30223 PyObject * obj0 = 0 ;
30224 char *kwnames[] = {
30225 (char *) "self", NULL
30226 };
30227
30228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30231 {
30232 PyThreadState* __tstate = wxPyBeginAllowThreads();
30233 wxHelpProvider_Destroy(arg1);
30234
30235 wxPyEndAllowThreads(__tstate);
30236 if (PyErr_Occurred()) SWIG_fail;
30237 }
30238 Py_INCREF(Py_None); resultobj = Py_None;
30239 return resultobj;
30240 fail:
30241 return NULL;
30242 }
30243
30244
30245 static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
30246 PyObject *obj;
30247 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30248 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30249 Py_INCREF(obj);
30250 return Py_BuildValue((char *)"");
30251 }
30252 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
30253 PyObject *resultobj;
30254 wxSimpleHelpProvider *result;
30255 char *kwnames[] = {
30256 NULL
30257 };
30258
30259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30260 {
30261 PyThreadState* __tstate = wxPyBeginAllowThreads();
30262 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30263
30264 wxPyEndAllowThreads(__tstate);
30265 if (PyErr_Occurred()) SWIG_fail;
30266 }
30267 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30268 return resultobj;
30269 fail:
30270 return NULL;
30271 }
30272
30273
30274 static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
30275 PyObject *obj;
30276 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30277 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30278 Py_INCREF(obj);
30279 return Py_BuildValue((char *)"");
30280 }
30281 static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30282 PyObject *resultobj;
30283 wxBitmap *arg1 = 0 ;
30284 wxCursor const &arg2_defvalue = wxNullCursor ;
30285 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30286 wxGenericDragImage *result;
30287 PyObject * obj0 = 0 ;
30288 PyObject * obj1 = 0 ;
30289 char *kwnames[] = {
30290 (char *) "image",(char *) "cursor", NULL
30291 };
30292
30293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30295 SWIG_POINTER_EXCEPTION | 0)) == -1)
30296 SWIG_fail;
30297 if (arg1 == NULL) {
30298 PyErr_SetString(PyExc_TypeError,"null reference");
30299 SWIG_fail;
30300 }
30301 if (obj1) {
30302 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30303 SWIG_POINTER_EXCEPTION | 0)) == -1)
30304 SWIG_fail;
30305 if (arg2 == NULL) {
30306 PyErr_SetString(PyExc_TypeError,"null reference");
30307 SWIG_fail;
30308 }
30309 }
30310 {
30311 PyThreadState* __tstate = wxPyBeginAllowThreads();
30312 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30313
30314 wxPyEndAllowThreads(__tstate);
30315 if (PyErr_Occurred()) SWIG_fail;
30316 }
30317 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30318 return resultobj;
30319 fail:
30320 return NULL;
30321 }
30322
30323
30324 static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
30325 PyObject *resultobj;
30326 wxIcon *arg1 = 0 ;
30327 wxCursor const &arg2_defvalue = wxNullCursor ;
30328 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30329 wxGenericDragImage *result;
30330 PyObject * obj0 = 0 ;
30331 PyObject * obj1 = 0 ;
30332 char *kwnames[] = {
30333 (char *) "image",(char *) "cursor", NULL
30334 };
30335
30336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
30337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
30338 SWIG_POINTER_EXCEPTION | 0)) == -1)
30339 SWIG_fail;
30340 if (arg1 == NULL) {
30341 PyErr_SetString(PyExc_TypeError,"null reference");
30342 SWIG_fail;
30343 }
30344 if (obj1) {
30345 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30346 SWIG_POINTER_EXCEPTION | 0)) == -1)
30347 SWIG_fail;
30348 if (arg2 == NULL) {
30349 PyErr_SetString(PyExc_TypeError,"null reference");
30350 SWIG_fail;
30351 }
30352 }
30353 {
30354 PyThreadState* __tstate = wxPyBeginAllowThreads();
30355 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
30356
30357 wxPyEndAllowThreads(__tstate);
30358 if (PyErr_Occurred()) SWIG_fail;
30359 }
30360 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30361 return resultobj;
30362 fail:
30363 return NULL;
30364 }
30365
30366
30367 static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
30368 PyObject *resultobj;
30369 wxString *arg1 = 0 ;
30370 wxCursor const &arg2_defvalue = wxNullCursor ;
30371 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30372 wxGenericDragImage *result;
30373 bool temp1 = False ;
30374 PyObject * obj0 = 0 ;
30375 PyObject * obj1 = 0 ;
30376 char *kwnames[] = {
30377 (char *) "str",(char *) "cursor", NULL
30378 };
30379
30380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
30381 {
30382 arg1 = wxString_in_helper(obj0);
30383 if (arg1 == NULL) SWIG_fail;
30384 temp1 = True;
30385 }
30386 if (obj1) {
30387 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30388 SWIG_POINTER_EXCEPTION | 0)) == -1)
30389 SWIG_fail;
30390 if (arg2 == NULL) {
30391 PyErr_SetString(PyExc_TypeError,"null reference");
30392 SWIG_fail;
30393 }
30394 }
30395 {
30396 PyThreadState* __tstate = wxPyBeginAllowThreads();
30397 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
30398
30399 wxPyEndAllowThreads(__tstate);
30400 if (PyErr_Occurred()) SWIG_fail;
30401 }
30402 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30403 {
30404 if (temp1)
30405 delete arg1;
30406 }
30407 return resultobj;
30408 fail:
30409 {
30410 if (temp1)
30411 delete arg1;
30412 }
30413 return NULL;
30414 }
30415
30416
30417 static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30418 PyObject *resultobj;
30419 wxPyTreeCtrl *arg1 = 0 ;
30420 wxTreeItemId *arg2 = 0 ;
30421 wxGenericDragImage *result;
30422 PyObject * obj0 = 0 ;
30423 PyObject * obj1 = 0 ;
30424 char *kwnames[] = {
30425 (char *) "treeCtrl",(char *) "id", NULL
30426 };
30427
30428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
30429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
30430 SWIG_POINTER_EXCEPTION | 0)) == -1)
30431 SWIG_fail;
30432 if (arg1 == NULL) {
30433 PyErr_SetString(PyExc_TypeError,"null reference");
30434 SWIG_fail;
30435 }
30436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
30437 SWIG_POINTER_EXCEPTION | 0)) == -1)
30438 SWIG_fail;
30439 if (arg2 == NULL) {
30440 PyErr_SetString(PyExc_TypeError,"null reference");
30441 SWIG_fail;
30442 }
30443 {
30444 PyThreadState* __tstate = wxPyBeginAllowThreads();
30445 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
30446
30447 wxPyEndAllowThreads(__tstate);
30448 if (PyErr_Occurred()) SWIG_fail;
30449 }
30450 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30451 return resultobj;
30452 fail:
30453 return NULL;
30454 }
30455
30456
30457 static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30458 PyObject *resultobj;
30459 wxPyListCtrl *arg1 = 0 ;
30460 long arg2 ;
30461 wxGenericDragImage *result;
30462 PyObject * obj0 = 0 ;
30463 PyObject * obj1 = 0 ;
30464 char *kwnames[] = {
30465 (char *) "listCtrl",(char *) "id", NULL
30466 };
30467
30468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
30469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
30470 SWIG_POINTER_EXCEPTION | 0)) == -1)
30471 SWIG_fail;
30472 if (arg1 == NULL) {
30473 PyErr_SetString(PyExc_TypeError,"null reference");
30474 SWIG_fail;
30475 }
30476 arg2 = (long) SWIG_AsLong(obj1);
30477 if (PyErr_Occurred()) SWIG_fail;
30478 {
30479 PyThreadState* __tstate = wxPyBeginAllowThreads();
30480 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
30481
30482 wxPyEndAllowThreads(__tstate);
30483 if (PyErr_Occurred()) SWIG_fail;
30484 }
30485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30486 return resultobj;
30487 fail:
30488 return NULL;
30489 }
30490
30491
30492 static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30493 PyObject *resultobj;
30494 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30495 PyObject * obj0 = 0 ;
30496 char *kwnames[] = {
30497 (char *) "self", NULL
30498 };
30499
30500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
30501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30503 {
30504 PyThreadState* __tstate = wxPyBeginAllowThreads();
30505 delete arg1;
30506
30507 wxPyEndAllowThreads(__tstate);
30508 if (PyErr_Occurred()) SWIG_fail;
30509 }
30510 Py_INCREF(Py_None); resultobj = Py_None;
30511 return resultobj;
30512 fail:
30513 return NULL;
30514 }
30515
30516
30517 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
30518 PyObject *resultobj;
30519 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30520 wxBitmap *arg2 = (wxBitmap *) 0 ;
30521 PyObject * obj0 = 0 ;
30522 PyObject * obj1 = 0 ;
30523 char *kwnames[] = {
30524 (char *) "self",(char *) "bitmap", NULL
30525 };
30526
30527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
30528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
30531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30532 {
30533 PyThreadState* __tstate = wxPyBeginAllowThreads();
30534 (arg1)->SetBackingBitmap(arg2);
30535
30536 wxPyEndAllowThreads(__tstate);
30537 if (PyErr_Occurred()) SWIG_fail;
30538 }
30539 Py_INCREF(Py_None); resultobj = Py_None;
30540 return resultobj;
30541 fail:
30542 return NULL;
30543 }
30544
30545
30546 static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30547 PyObject *resultobj;
30548 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30549 wxPoint *arg2 = 0 ;
30550 wxWindow *arg3 = (wxWindow *) 0 ;
30551 bool arg4 = (bool) False ;
30552 wxRect *arg5 = (wxRect *) NULL ;
30553 bool result;
30554 wxPoint temp2 ;
30555 PyObject * obj0 = 0 ;
30556 PyObject * obj1 = 0 ;
30557 PyObject * obj2 = 0 ;
30558 PyObject * obj3 = 0 ;
30559 PyObject * obj4 = 0 ;
30560 char *kwnames[] = {
30561 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
30562 };
30563
30564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30567 {
30568 arg2 = &temp2;
30569 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30570 }
30571 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30573 if (obj3) {
30574 arg4 = (bool) SWIG_AsBool(obj3);
30575 if (PyErr_Occurred()) SWIG_fail;
30576 }
30577 if (obj4) {
30578 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
30579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30580 }
30581 {
30582 PyThreadState* __tstate = wxPyBeginAllowThreads();
30583 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
30584
30585 wxPyEndAllowThreads(__tstate);
30586 if (PyErr_Occurred()) SWIG_fail;
30587 }
30588 {
30589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30590 }
30591 return resultobj;
30592 fail:
30593 return NULL;
30594 }
30595
30596
30597 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
30598 PyObject *resultobj;
30599 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30600 wxPoint *arg2 = 0 ;
30601 wxWindow *arg3 = (wxWindow *) 0 ;
30602 wxWindow *arg4 = (wxWindow *) 0 ;
30603 bool result;
30604 wxPoint temp2 ;
30605 PyObject * obj0 = 0 ;
30606 PyObject * obj1 = 0 ;
30607 PyObject * obj2 = 0 ;
30608 PyObject * obj3 = 0 ;
30609 char *kwnames[] = {
30610 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
30611 };
30612
30613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30616 {
30617 arg2 = &temp2;
30618 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30619 }
30620 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30622 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
30623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30624 {
30625 PyThreadState* __tstate = wxPyBeginAllowThreads();
30626 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
30627
30628 wxPyEndAllowThreads(__tstate);
30629 if (PyErr_Occurred()) SWIG_fail;
30630 }
30631 {
30632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30633 }
30634 return resultobj;
30635 fail:
30636 return NULL;
30637 }
30638
30639
30640 static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30641 PyObject *resultobj;
30642 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30643 bool result;
30644 PyObject * obj0 = 0 ;
30645 char *kwnames[] = {
30646 (char *) "self", NULL
30647 };
30648
30649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
30650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30652 {
30653 PyThreadState* __tstate = wxPyBeginAllowThreads();
30654 result = (bool)(arg1)->EndDrag();
30655
30656 wxPyEndAllowThreads(__tstate);
30657 if (PyErr_Occurred()) SWIG_fail;
30658 }
30659 {
30660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30661 }
30662 return resultobj;
30663 fail:
30664 return NULL;
30665 }
30666
30667
30668 static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
30669 PyObject *resultobj;
30670 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30671 wxPoint *arg2 = 0 ;
30672 bool result;
30673 wxPoint temp2 ;
30674 PyObject * obj0 = 0 ;
30675 PyObject * obj1 = 0 ;
30676 char *kwnames[] = {
30677 (char *) "self",(char *) "pt", NULL
30678 };
30679
30680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
30681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30683 {
30684 arg2 = &temp2;
30685 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30686 }
30687 {
30688 PyThreadState* __tstate = wxPyBeginAllowThreads();
30689 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
30690
30691 wxPyEndAllowThreads(__tstate);
30692 if (PyErr_Occurred()) SWIG_fail;
30693 }
30694 {
30695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30696 }
30697 return resultobj;
30698 fail:
30699 return NULL;
30700 }
30701
30702
30703 static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
30704 PyObject *resultobj;
30705 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30706 bool result;
30707 PyObject * obj0 = 0 ;
30708 char *kwnames[] = {
30709 (char *) "self", NULL
30710 };
30711
30712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
30713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30715 {
30716 PyThreadState* __tstate = wxPyBeginAllowThreads();
30717 result = (bool)(arg1)->Show();
30718
30719 wxPyEndAllowThreads(__tstate);
30720 if (PyErr_Occurred()) SWIG_fail;
30721 }
30722 {
30723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30724 }
30725 return resultobj;
30726 fail:
30727 return NULL;
30728 }
30729
30730
30731 static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
30732 PyObject *resultobj;
30733 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30734 bool result;
30735 PyObject * obj0 = 0 ;
30736 char *kwnames[] = {
30737 (char *) "self", NULL
30738 };
30739
30740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
30741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30743 {
30744 PyThreadState* __tstate = wxPyBeginAllowThreads();
30745 result = (bool)(arg1)->Hide();
30746
30747 wxPyEndAllowThreads(__tstate);
30748 if (PyErr_Occurred()) SWIG_fail;
30749 }
30750 {
30751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30752 }
30753 return resultobj;
30754 fail:
30755 return NULL;
30756 }
30757
30758
30759 static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
30760 PyObject *resultobj;
30761 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30762 wxPoint *arg2 = 0 ;
30763 wxRect result;
30764 wxPoint temp2 ;
30765 PyObject * obj0 = 0 ;
30766 PyObject * obj1 = 0 ;
30767 char *kwnames[] = {
30768 (char *) "self",(char *) "pos", NULL
30769 };
30770
30771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
30772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30774 {
30775 arg2 = &temp2;
30776 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30777 }
30778 {
30779 PyThreadState* __tstate = wxPyBeginAllowThreads();
30780 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
30781
30782 wxPyEndAllowThreads(__tstate);
30783 if (PyErr_Occurred()) SWIG_fail;
30784 }
30785 {
30786 wxRect * resultptr;
30787 resultptr = new wxRect((wxRect &) result);
30788 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
30789 }
30790 return resultobj;
30791 fail:
30792 return NULL;
30793 }
30794
30795
30796 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30797 PyObject *resultobj;
30798 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30799 wxDC *arg2 = 0 ;
30800 wxPoint *arg3 = 0 ;
30801 bool result;
30802 wxPoint temp3 ;
30803 PyObject * obj0 = 0 ;
30804 PyObject * obj1 = 0 ;
30805 PyObject * obj2 = 0 ;
30806 char *kwnames[] = {
30807 (char *) "self",(char *) "dc",(char *) "pos", NULL
30808 };
30809
30810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
30811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30813 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
30814 SWIG_POINTER_EXCEPTION | 0)) == -1)
30815 SWIG_fail;
30816 if (arg2 == NULL) {
30817 PyErr_SetString(PyExc_TypeError,"null reference");
30818 SWIG_fail;
30819 }
30820 {
30821 arg3 = &temp3;
30822 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30823 }
30824 {
30825 PyThreadState* __tstate = wxPyBeginAllowThreads();
30826 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
30827
30828 wxPyEndAllowThreads(__tstate);
30829 if (PyErr_Occurred()) SWIG_fail;
30830 }
30831 {
30832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30833 }
30834 return resultobj;
30835 fail:
30836 return NULL;
30837 }
30838
30839
30840 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30841 PyObject *resultobj;
30842 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30843 wxDC *arg2 = 0 ;
30844 wxMemoryDC *arg3 = 0 ;
30845 wxRect *arg4 = 0 ;
30846 wxRect *arg5 = 0 ;
30847 bool result;
30848 wxRect temp4 ;
30849 wxRect temp5 ;
30850 PyObject * obj0 = 0 ;
30851 PyObject * obj1 = 0 ;
30852 PyObject * obj2 = 0 ;
30853 PyObject * obj3 = 0 ;
30854 PyObject * obj4 = 0 ;
30855 char *kwnames[] = {
30856 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
30857 };
30858
30859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
30863 SWIG_POINTER_EXCEPTION | 0)) == -1)
30864 SWIG_fail;
30865 if (arg2 == NULL) {
30866 PyErr_SetString(PyExc_TypeError,"null reference");
30867 SWIG_fail;
30868 }
30869 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
30870 SWIG_POINTER_EXCEPTION | 0)) == -1)
30871 SWIG_fail;
30872 if (arg3 == NULL) {
30873 PyErr_SetString(PyExc_TypeError,"null reference");
30874 SWIG_fail;
30875 }
30876 {
30877 arg4 = &temp4;
30878 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30879 }
30880 {
30881 arg5 = &temp5;
30882 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
30883 }
30884 {
30885 PyThreadState* __tstate = wxPyBeginAllowThreads();
30886 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
30887
30888 wxPyEndAllowThreads(__tstate);
30889 if (PyErr_Occurred()) SWIG_fail;
30890 }
30891 {
30892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30893 }
30894 return resultobj;
30895 fail:
30896 return NULL;
30897 }
30898
30899
30900 static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30901 PyObject *resultobj;
30902 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30903 wxPoint *arg2 = 0 ;
30904 wxPoint *arg3 = 0 ;
30905 bool arg4 ;
30906 bool arg5 ;
30907 bool result;
30908 wxPoint temp2 ;
30909 wxPoint temp3 ;
30910 PyObject * obj0 = 0 ;
30911 PyObject * obj1 = 0 ;
30912 PyObject * obj2 = 0 ;
30913 PyObject * obj3 = 0 ;
30914 PyObject * obj4 = 0 ;
30915 char *kwnames[] = {
30916 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
30917 };
30918
30919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30922 {
30923 arg2 = &temp2;
30924 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30925 }
30926 {
30927 arg3 = &temp3;
30928 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30929 }
30930 arg4 = (bool) SWIG_AsBool(obj3);
30931 if (PyErr_Occurred()) SWIG_fail;
30932 arg5 = (bool) SWIG_AsBool(obj4);
30933 if (PyErr_Occurred()) SWIG_fail;
30934 {
30935 PyThreadState* __tstate = wxPyBeginAllowThreads();
30936 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
30937
30938 wxPyEndAllowThreads(__tstate);
30939 if (PyErr_Occurred()) SWIG_fail;
30940 }
30941 {
30942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30943 }
30944 return resultobj;
30945 fail:
30946 return NULL;
30947 }
30948
30949
30950 static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
30951 PyObject *obj;
30952 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30953 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
30954 Py_INCREF(obj);
30955 return Py_BuildValue((char *)"");
30956 }
30957 static PyMethodDef SwigMethods[] = {
30958 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
30959 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
30960 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
30961 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
30962 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
30963 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
30964 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
30965 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
30966 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
30967 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
30968 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
30969 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
30970 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
30971 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
30972 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
30973 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
30974 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
30975 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
30976 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
30977 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
30978 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
30979 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
30980 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
30981 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
30982 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
30983 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
30984 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
30985 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
30986 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
30987 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
30988 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
30989 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
30990 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
30991 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
30992 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
30993 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
30994 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
30995 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
30996 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
30997 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
30998 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
30999 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
31000 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
31001 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
31002 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
31003 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31004 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31005 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
31006 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
31007 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
31008 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31009 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31010 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31011 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
31012 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31013 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
31014 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31015 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS },
31016 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
31017 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31018 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
31019 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31020 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
31021 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
31022 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
31023 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
31024 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
31025 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
31026 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
31027 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
31028 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
31029 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31030 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31031 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
31032 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
31033 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31034 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
31035 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
31036 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
31037 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
31038 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31039 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
31040 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
31041 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
31042 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
31043 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
31044 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
31045 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31046 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
31047 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
31048 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
31049 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
31050 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31051 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
31052 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
31053 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
31054 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
31055 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31056 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
31057 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
31058 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31059 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
31060 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
31061 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
31062 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
31063 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
31064 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
31065 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
31066 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
31067 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31068 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
31069 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
31070 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
31071 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31072 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
31073 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
31074 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
31075 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31076 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
31077 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
31078 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
31079 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31080 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31081 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31082 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
31083 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
31084 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
31085 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
31086 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31087 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
31088 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
31089 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
31090 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
31091 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
31092 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
31093 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
31094 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
31095 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31096 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31097 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31098 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
31099 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
31100 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31101 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
31102 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
31103 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31104 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31105 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31106 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
31107 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
31108 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
31109 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
31110 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
31111 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31112 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31113 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31114 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
31115 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
31116 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31117 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
31118 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
31119 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
31120 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
31121 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
31122 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
31123 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
31124 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31125 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31126 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31127 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
31128 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
31129 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
31130 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
31131 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
31132 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
31133 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
31134 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
31135 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31136 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31137 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
31138 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
31139 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
31140 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
31141 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
31142 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
31143 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
31144 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
31145 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
31146 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
31147 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
31148 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
31149 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
31150 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31151 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31152 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
31153 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
31154 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
31155 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31156 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
31157 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
31158 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
31159 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
31160 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
31161 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
31162 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
31163 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
31164 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
31165 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
31166 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31167 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31168 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31169 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31170 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31171 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
31172 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
31173 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
31174 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
31175 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31176 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
31177 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
31178 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
31179 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
31180 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
31181 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
31182 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
31183 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
31184 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
31185 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31186 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
31187 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31188 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
31189 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
31190 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31191 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
31192 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31193 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
31194 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
31195 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
31196 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
31197 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31198 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
31199 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
31200 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31201 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
31202 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
31203 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
31204 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
31205 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31206 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
31207 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
31208 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
31209 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31210 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31211 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31212 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
31213 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
31214 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
31215 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
31216 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31217 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31218 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
31219 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
31220 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31221 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31222 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
31223 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
31224 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
31225 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
31226 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31227 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
31228 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31229 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31230 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
31231 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
31232 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
31233 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
31234 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
31235 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
31236 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31237 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31238 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31239 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31240 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
31241 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
31242 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
31243 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
31244 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31245 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31246 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31247 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
31248 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
31249 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
31250 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
31251 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
31252 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
31253 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
31254 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
31255 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
31256 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
31257 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
31258 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
31259 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31260 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
31261 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31262 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
31263 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
31264 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
31265 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
31266 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
31267 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
31268 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
31269 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
31270 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
31271 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
31272 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31273 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
31274 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
31275 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
31276 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
31277 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31278 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31279 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
31280 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31281 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
31282 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
31283 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
31284 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31285 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
31286 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
31287 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31288 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31289 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31290 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
31291 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
31292 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31293 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31294 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
31295 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
31296 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
31297 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
31298 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
31299 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31300 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
31301 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31302 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
31303 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
31304 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
31305 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
31306 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
31307 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
31308 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
31309 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
31310 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
31311 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
31312 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31313 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
31314 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
31315 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
31316 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31317 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31318 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
31319 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
31320 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
31321 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
31322 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
31323 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
31324 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
31325 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
31326 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
31327 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
31328 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
31329 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31330 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31331 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
31332 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
31333 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
31334 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31335 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31336 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
31337 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
31338 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
31339 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
31340 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
31341 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
31342 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
31343 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
31344 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
31345 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
31346 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
31347 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
31348 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
31349 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31350 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31351 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31352 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
31353 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
31354 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
31355 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
31356 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
31357 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31358 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
31359 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
31360 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31361 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31362 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
31363 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
31364 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
31365 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
31366 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
31367 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
31368 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
31369 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
31370 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
31371 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
31372 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
31373 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
31374 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
31375 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
31376 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
31377 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
31378 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
31379 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
31380 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
31381 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
31382 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
31383 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
31384 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31385 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
31386 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
31387 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
31388 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
31389 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
31390 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31391 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31392 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31393 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31394 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
31395 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
31396 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
31397 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31398 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
31399 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
31400 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
31401 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31402 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
31403 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
31404 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
31405 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
31406 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31407 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31408 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
31409 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31410 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
31411 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
31412 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
31413 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
31414 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
31415 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
31416 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31417 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31418 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
31419 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
31420 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31421 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31422 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31423 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31424 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31425 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31426 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31427 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31428 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31429 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
31430 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
31431 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
31432 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
31433 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
31434 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
31435 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
31436 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
31437 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
31438 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
31439 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
31440 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
31441 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
31442 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
31443 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
31444 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
31445 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31446 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31447 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
31448 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
31449 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
31450 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
31451 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
31452 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
31453 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
31454 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
31455 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
31456 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
31457 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
31458 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
31459 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31460 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31461 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
31462 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
31463 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
31464 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
31465 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
31466 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
31467 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
31468 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
31469 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
31470 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
31471 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
31472 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
31473 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
31474 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
31475 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
31476 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
31477 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
31478 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
31479 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
31480 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
31481 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
31482 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
31483 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
31484 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
31485 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
31486 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
31487 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
31488 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
31489 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
31490 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
31491 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
31492 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
31493 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
31494 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
31495 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31496 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
31497 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
31498 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31499 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31500 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
31501 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
31502 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
31503 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
31504 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31505 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
31506 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
31507 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31508 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31509 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
31510 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
31511 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
31512 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31513 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31514 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
31515 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31516 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
31517 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
31518 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31519 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31520 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
31521 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
31522 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
31523 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
31524 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
31525 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
31526 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
31527 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31528 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31529 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31530 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31531 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31532 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
31533 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
31534 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
31535 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
31536 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31537 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31538 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31539 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
31540 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31541 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31542 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
31543 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
31544 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
31545 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31546 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31547 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31548 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31549 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS },
31550 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
31551 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
31552 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
31553 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
31554 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
31555 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31556 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
31557 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
31558 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
31559 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31560 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31561 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
31562 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
31563 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
31564 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31565 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31566 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
31567 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
31568 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
31569 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
31570 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
31571 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
31572 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
31573 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31574 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31575 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31576 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31577 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
31578 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
31579 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31580 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
31581 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
31582 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
31583 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
31584 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
31585 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
31586 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
31587 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
31588 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
31589 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
31590 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
31591 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
31592 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
31593 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31594 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31595 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
31596 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
31597 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
31598 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
31599 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
31600 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
31601 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
31602 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
31603 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
31604 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
31605 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
31606 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
31607 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
31608 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
31609 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31610 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
31611 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
31612 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
31613 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31614 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
31615 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31616 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31617 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31618 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31619 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
31620 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31621 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31622 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
31623 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
31624 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
31625 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31626 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31627 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31628 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
31629 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
31630 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
31631 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
31632 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
31633 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31634 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
31635 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31636 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
31637 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31638 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
31639 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31640 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
31641 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31642 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
31643 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31644 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31645 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
31646 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31647 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31648 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31649 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
31650 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31651 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
31652 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31653 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31654 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31655 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
31656 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31657 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
31658 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
31659 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
31660 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
31661 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
31662 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31663 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
31664 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
31665 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
31666 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
31667 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
31668 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
31669 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
31670 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
31671 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
31672 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
31673 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
31674 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
31675 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31676 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
31677 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
31678 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
31679 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
31680 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31681 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
31682 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
31683 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
31684 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
31685 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
31686 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
31687 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
31688 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
31689 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
31690 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31691 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
31692 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31693 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
31694 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
31695 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31696 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
31697 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31698 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
31699 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31700 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31701 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31702 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
31703 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31704 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31705 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
31706 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
31707 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
31708 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
31709 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
31710 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
31711 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
31712 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31713 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31714 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
31715 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31716 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31717 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
31718 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
31719 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
31720 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
31721 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31722 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31723 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31724 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
31725 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
31726 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
31727 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS },
31728 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31729 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
31730 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
31731 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
31732 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31733 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
31734 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
31735 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
31736 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31737 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
31738 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
31739 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
31740 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
31741 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
31742 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
31743 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
31744 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
31745 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
31746 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
31747 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
31748 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS },
31749 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
31750 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
31751 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31752 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31753 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
31754 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
31755 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
31756 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
31757 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
31758 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31759 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31760 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
31761 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
31762 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
31763 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
31764 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
31765 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
31766 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
31767 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
31768 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
31769 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
31770 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
31771 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS },
31772 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
31773 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
31774 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
31775 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
31776 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
31777 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
31778 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
31779 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
31780 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
31781 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
31782 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
31783 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
31784 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
31785 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
31786 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
31787 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
31788 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
31789 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
31790 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
31791 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
31792 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
31793 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
31794 { NULL, NULL }
31795 };
31796
31797
31798 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
31799
31800 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
31801 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31802 }
31803 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
31804 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
31805 }
31806 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
31807 return (void *)((wxSizer *) ((wxBoxSizer *) x));
31808 }
31809 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
31810 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
31811 }
31812 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
31813 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31814 }
31815 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
31816 return (void *)((wxSizer *) ((wxGridSizer *) x));
31817 }
31818 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
31819 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
31820 }
31821 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
31822 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
31823 }
31824 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
31825 return (void *)((wxSizer *) ((wxPySizer *) x));
31826 }
31827 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
31828 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
31829 }
31830 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
31831 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
31832 }
31833 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
31834 return (void *)((wxEvent *) ((wxMenuEvent *) x));
31835 }
31836 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
31837 return (void *)((wxEvent *) ((wxCloseEvent *) x));
31838 }
31839 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
31840 return (void *)((wxEvent *) ((wxMouseEvent *) x));
31841 }
31842 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
31843 return (void *)((wxEvent *) ((wxEraseEvent *) x));
31844 }
31845 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
31846 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
31847 }
31848 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
31849 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
31850 }
31851 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
31852 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
31853 }
31854 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
31855 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
31856 }
31857 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
31858 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
31859 }
31860 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
31861 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31862 }
31863 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
31864 return (void *)((wxEvent *) ((wxPyEvent *) x));
31865 }
31866 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
31867 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
31868 }
31869 static void *_p_wxListEventTo_p_wxEvent(void *x) {
31870 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
31871 }
31872 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
31873 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31874 }
31875 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
31876 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31877 }
31878 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
31879 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
31880 }
31881 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
31882 return (void *)((wxEvent *) ((wxIdleEvent *) x));
31883 }
31884 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
31885 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
31886 }
31887 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
31888 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
31889 }
31890 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
31891 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
31892 }
31893 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
31894 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
31895 }
31896 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
31897 return (void *)((wxEvent *) ((wxActivateEvent *) x));
31898 }
31899 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
31900 return (void *)((wxEvent *) ((wxSizeEvent *) x));
31901 }
31902 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
31903 return (void *)((wxEvent *) ((wxMoveEvent *) x));
31904 }
31905 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
31906 return (void *)((wxEvent *) ((wxPaintEvent *) x));
31907 }
31908 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
31909 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
31910 }
31911 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
31912 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
31913 }
31914 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
31915 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
31916 }
31917 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
31918 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
31919 }
31920 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
31921 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31922 }
31923 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
31924 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
31925 }
31926 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
31927 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
31928 }
31929 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
31930 return (void *)((wxEvent *) ((wxFocusEvent *) x));
31931 }
31932 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
31933 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
31934 }
31935 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
31936 return (void *)((wxEvent *) ((wxShowEvent *) x));
31937 }
31938 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
31939 return (void *)((wxEvent *) ((wxCommandEvent *) x));
31940 }
31941 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
31942 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
31943 }
31944 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
31945 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31946 }
31947 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
31948 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
31949 }
31950 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
31951 return (void *)((wxEvent *) ((wxKeyEvent *) x));
31952 }
31953 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
31954 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
31955 }
31956 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
31957 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
31958 }
31959 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
31960 return (void *)((wxItemContainer *) ((wxComboBox *) x));
31961 }
31962 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
31963 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31964 }
31965 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
31966 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
31967 }
31968 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
31969 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
31970 }
31971 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
31972 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
31973 }
31974 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
31975 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31976 }
31977 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
31978 return (void *)((wxPyListCtrl *) ((wxListView *) x));
31979 }
31980 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
31981 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31982 }
31983 static void *_p_wxListBoxTo_p_wxControl(void *x) {
31984 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
31985 }
31986 static void *_p_wxChoiceTo_p_wxControl(void *x) {
31987 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
31988 }
31989 static void *_p_wxToolBarTo_p_wxControl(void *x) {
31990 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
31991 }
31992 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
31993 return (void *)((wxControl *) ((wxStaticBitmap *) x));
31994 }
31995 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
31996 return (void *)((wxControl *) ((wxComboBox *) x));
31997 }
31998 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
31999 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32000 }
32001 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32002 return (void *)((wxControl *) ((wxStaticBox *) x));
32003 }
32004 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32005 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32006 }
32007 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32008 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32009 }
32010 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32011 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32012 }
32013 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32014 return (void *)((wxControl *) ((wxScrollBar *) x));
32015 }
32016 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32017 return (void *)((wxControl *) ((wxBookCtrl *) x));
32018 }
32019 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32020 return (void *)((wxControl *) ((wxRadioButton *) x));
32021 }
32022 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32023 return (void *)((wxControl *) ((wxToggleButton *) x));
32024 }
32025 static void *_p_wxGaugeTo_p_wxControl(void *x) {
32026 return (void *)((wxControl *) ((wxGauge *) x));
32027 }
32028 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32029 return (void *)((wxControl *) ((wxToolBarBase *) x));
32030 }
32031 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32032 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32033 }
32034 static void *_p_wxButtonTo_p_wxControl(void *x) {
32035 return (void *)((wxControl *) ((wxButton *) x));
32036 }
32037 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32038 return (void *)((wxControl *) ((wxSpinButton *) x));
32039 }
32040 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32041 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32042 }
32043 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32044 return (void *)((wxControl *) ((wxControlWithItems *) x));
32045 }
32046 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32047 return (void *)((wxControl *) ((wxRadioBox *) x));
32048 }
32049 static void *_p_wxNotebookTo_p_wxControl(void *x) {
32050 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32051 }
32052 static void *_p_wxListbookTo_p_wxControl(void *x) {
32053 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32054 }
32055 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32056 return (void *)((wxControl *) ((wxCheckBox *) x));
32057 }
32058 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32059 return (void *)((wxControl *) ((wxTextCtrl *) x));
32060 }
32061 static void *_p_wxListViewTo_p_wxControl(void *x) {
32062 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32063 }
32064 static void *_p_wxSliderTo_p_wxControl(void *x) {
32065 return (void *)((wxControl *) ((wxSlider *) x));
32066 }
32067 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32068 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32069 }
32070 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32071 return (void *)((wxControl *) ((wxPyControl *) x));
32072 }
32073 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32074 return (void *)((wxControl *) ((wxStaticLine *) x));
32075 }
32076 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32077 return (void *)((wxControl *) ((wxStaticText *) x));
32078 }
32079 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32080 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32081 }
32082 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32083 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32084 }
32085 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32086 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32087 }
32088 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32089 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32090 }
32091 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32092 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32093 }
32094 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32095 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32096 }
32097 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32098 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32099 }
32100 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32101 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32102 }
32103 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32104 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32105 }
32106 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32107 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32108 }
32109 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32110 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32111 }
32112 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32113 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32114 }
32115 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32116 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32117 }
32118 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32119 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32120 }
32121 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32122 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32123 }
32124 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32125 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32126 }
32127 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32128 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32129 }
32130 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32131 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32132 }
32133 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32134 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32135 }
32136 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32137 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32138 }
32139 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32140 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
32141 }
32142 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32143 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32144 }
32145 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32146 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32147 }
32148 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32149 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32150 }
32151 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32152 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32153 }
32154 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32155 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32156 }
32157 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32158 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32159 }
32160 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32161 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32162 }
32163 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32164 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32165 }
32166 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32167 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32168 }
32169 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32170 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32171 }
32172 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32173 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32174 }
32175 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32176 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32177 }
32178 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32179 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32180 }
32181 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32182 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32183 }
32184 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32185 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32186 }
32187 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32188 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32189 }
32190 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32191 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32192 }
32193 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32194 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32195 }
32196 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32197 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32198 }
32199 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32200 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32201 }
32202 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32203 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32204 }
32205 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32206 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32207 }
32208 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32209 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32210 }
32211 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32212 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32213 }
32214 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32215 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32216 }
32217 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32218 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32219 }
32220 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32221 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32222 }
32223 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32224 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32225 }
32226 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32227 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32228 }
32229 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32230 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32231 }
32232 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32233 return (void *)((wxButton *) ((wxBitmapButton *) x));
32234 }
32235 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32236 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32237 }
32238 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32239 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32240 }
32241 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32242 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32243 }
32244 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32245 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32246 }
32247 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32248 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32249 }
32250 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32251 return (void *)((wxObject *) ((wxSizerItem *) x));
32252 }
32253 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32254 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32255 }
32256 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32257 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32258 }
32259 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32260 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32261 }
32262 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32263 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32264 }
32265 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32266 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32267 }
32268 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32269 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32270 }
32271 static void *_p_wxSizerTo_p_wxObject(void *x) {
32272 return (void *)((wxObject *) ((wxSizer *) x));
32273 }
32274 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32275 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32276 }
32277 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32278 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32279 }
32280 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32281 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32282 }
32283 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32284 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32285 }
32286 static void *_p_wxEventTo_p_wxObject(void *x) {
32287 return (void *)((wxObject *) ((wxEvent *) x));
32288 }
32289 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32290 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32291 }
32292 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32293 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32294 }
32295 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32296 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32297 }
32298 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
32299 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32300 }
32301 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
32302 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32303 }
32304 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
32305 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32306 }
32307 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32308 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32309 }
32310 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32311 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32312 }
32313 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32314 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32315 }
32316 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32317 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32318 }
32319 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32320 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32321 }
32322 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32323 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32324 }
32325 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
32326 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
32327 }
32328 static void *_p_wxControlTo_p_wxObject(void *x) {
32329 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32330 }
32331 static void *_p_wxPyControlTo_p_wxObject(void *x) {
32332 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
32333 }
32334 static void *_p_wxGaugeTo_p_wxObject(void *x) {
32335 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
32336 }
32337 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
32338 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
32339 }
32340 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
32341 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
32342 }
32343 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
32344 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32345 }
32346 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32347 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32348 }
32349 static void *_p_wxChoiceTo_p_wxObject(void *x) {
32350 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32351 }
32352 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32353 return (void *)((wxObject *) ((wxFSFile *) x));
32354 }
32355 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32356 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32357 }
32358 static void *_p_wxListViewTo_p_wxObject(void *x) {
32359 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32360 }
32361 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
32362 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32363 }
32364 static void *_p_wxNotebookTo_p_wxObject(void *x) {
32365 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32366 }
32367 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32368 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32369 }
32370 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32371 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32372 }
32373 static void *_p_wxListbookTo_p_wxObject(void *x) {
32374 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32375 }
32376 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32377 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32378 }
32379 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
32380 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32381 }
32382 static void *_p_wxSliderTo_p_wxObject(void *x) {
32383 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
32384 }
32385 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32386 return (void *)((wxObject *) ((wxMenuItem *) x));
32387 }
32388 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32389 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32390 }
32391 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32392 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32393 }
32394 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32395 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32396 }
32397 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32398 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32399 }
32400 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32401 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32402 }
32403 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32404 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32405 }
32406 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32407 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32408 }
32409 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32410 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32411 }
32412 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
32413 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
32414 }
32415 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
32416 return (void *)((wxObject *) ((wxContextHelp *) x));
32417 }
32418 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32419 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32420 }
32421 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32422 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32423 }
32424 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32425 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32426 }
32427 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32428 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32429 }
32430 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32431 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32432 }
32433 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32434 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32435 }
32436 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32437 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32438 }
32439 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32440 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32441 }
32442 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32443 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32444 }
32445 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32446 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32447 }
32448 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32449 return (void *)((wxObject *) ((wxImageHandler *) x));
32450 }
32451 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32452 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32453 }
32454 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32455 return (void *)((wxObject *) ((wxEvtHandler *) x));
32456 }
32457 static void *_p_wxListEventTo_p_wxObject(void *x) {
32458 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32459 }
32460 static void *_p_wxListBoxTo_p_wxObject(void *x) {
32461 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32462 }
32463 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
32464 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32465 }
32466 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
32467 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32468 }
32469 static void *_p_wxButtonTo_p_wxObject(void *x) {
32470 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
32471 }
32472 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
32473 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32474 }
32475 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
32476 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
32477 }
32478 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
32479 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32480 }
32481 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32482 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32483 }
32484 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
32485 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
32486 }
32487 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
32488 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
32489 }
32490 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
32491 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
32492 }
32493 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
32494 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
32495 }
32496 static void *_p_wxListItemTo_p_wxObject(void *x) {
32497 return (void *)((wxObject *) ((wxListItem *) x));
32498 }
32499 static void *_p_wxImageTo_p_wxObject(void *x) {
32500 return (void *)((wxObject *) ((wxImage *) x));
32501 }
32502 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
32503 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
32504 }
32505 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32506 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32507 }
32508 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
32509 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32510 }
32511 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
32512 return (void *)((wxObject *) ((wxGenericDragImage *) x));
32513 }
32514 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
32515 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32516 }
32517 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
32518 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32519 }
32520 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
32521 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32522 }
32523 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32524 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32525 }
32526 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32527 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32528 }
32529 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32530 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32531 }
32532 static void *_p_wxWindowTo_p_wxObject(void *x) {
32533 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32534 }
32535 static void *_p_wxMenuTo_p_wxObject(void *x) {
32536 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32537 }
32538 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32539 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32540 }
32541 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32542 return (void *)((wxObject *) ((wxFileSystem *) x));
32543 }
32544 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32545 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32546 }
32547 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32548 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32549 }
32550 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32551 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32552 }
32553 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32554 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32555 }
32556 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32557 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32558 }
32559 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32560 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32561 }
32562 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
32563 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32564 }
32565 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32566 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32567 }
32568 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32569 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32570 }
32571 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
32572 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
32573 }
32574 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32575 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32576 }
32577 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32578 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32579 }
32580 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32581 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32582 }
32583 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32584 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32585 }
32586 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
32587 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
32588 }
32589 static void *_p_wxToolBarTo_p_wxObject(void *x) {
32590 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32591 }
32592 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32593 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32594 }
32595 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32596 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32597 }
32598 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
32599 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
32600 }
32601 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
32602 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
32603 }
32604 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32605 return (void *)((wxWindow *) ((wxMenuBar *) x));
32606 }
32607 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
32608 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32609 }
32610 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
32611 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
32612 }
32613 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
32614 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
32615 }
32616 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
32617 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
32618 }
32619 static void *_p_wxControlTo_p_wxWindow(void *x) {
32620 return (void *)((wxWindow *) ((wxControl *) x));
32621 }
32622 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
32623 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
32624 }
32625 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
32626 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32627 }
32628 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
32629 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
32630 }
32631 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
32632 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
32633 }
32634 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
32635 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
32636 }
32637 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
32638 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
32639 }
32640 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32641 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32642 }
32643 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
32644 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
32645 }
32646 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
32647 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
32648 }
32649 static void *_p_wxListbookTo_p_wxWindow(void *x) {
32650 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32651 }
32652 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
32653 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
32654 }
32655 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
32656 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
32657 }
32658 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
32659 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
32660 }
32661 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
32662 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32663 }
32664 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
32665 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32666 }
32667 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
32668 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32669 }
32670 static void *_p_wxListViewTo_p_wxWindow(void *x) {
32671 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32672 }
32673 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
32674 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32675 }
32676 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
32677 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
32678 }
32679 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
32680 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
32681 }
32682 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
32683 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
32684 }
32685 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
32686 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
32687 }
32688 static void *_p_wxSliderTo_p_wxWindow(void *x) {
32689 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
32690 }
32691 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
32692 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
32693 }
32694 static void *_p_wxButtonTo_p_wxWindow(void *x) {
32695 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
32696 }
32697 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
32698 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
32699 }
32700 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
32701 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32702 }
32703 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
32704 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
32705 }
32706 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
32707 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32708 }
32709 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
32710 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32711 }
32712 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
32713 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
32714 }
32715 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
32716 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
32717 }
32718 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
32719 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
32720 }
32721 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
32722 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
32723 }
32724 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
32725 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
32726 }
32727 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
32728 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32729 }
32730 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
32731 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32732 }
32733 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
32734 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
32735 }
32736 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
32737 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
32738 }
32739 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
32740 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
32741 }
32742 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
32743 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
32744 }
32745 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
32746 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
32747 }
32748 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
32749 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
32750 }
32751 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
32752 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
32753 }
32754 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
32755 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
32756 }
32757 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
32758 return (void *)((wxControlWithItems *) ((wxChoice *) x));
32759 }
32760 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
32761 return (void *)((wxControlWithItems *) ((wxListBox *) x));
32762 }
32763 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
32764 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
32765 }
32766 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
32767 return (void *)((wxValidator *) ((wxPyValidator *) x));
32768 }
32769 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}};
32770 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}};
32771 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}};
32772 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}};
32773 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}};
32774 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}};
32775 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}};
32776 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}};
32777 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}};
32778 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}};
32779 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}};
32780 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}};
32781 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}};
32782 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}};
32783 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}};
32784 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}};
32785 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}};
32786 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}};
32787 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}};
32788 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}};
32789 static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32790 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}};
32791 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}};
32792 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}};
32793 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}};
32794 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}};
32795 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}};
32796 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}};
32797 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}};
32798 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}};
32799 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}};
32800 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}};
32801 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}};
32802 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}};
32803 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}};
32804 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}};
32805 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}};
32806 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}};
32807 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}};
32808 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}};
32809 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}};
32810 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}};
32811 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}};
32812 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}};
32813 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}};
32814 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}};
32815 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}};
32816 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}};
32817 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}};
32818 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}};
32819 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}};
32820 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}};
32821 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}};
32822 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}};
32823 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}};
32824 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}};
32825 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}};
32826 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}};
32827 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}};
32828 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}};
32829 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}};
32830 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}};
32831 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}};
32832 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}};
32833 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}};
32834 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}};
32835 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}};
32836 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}};
32837 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}};
32838 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}};
32839 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}};
32840 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}};
32841 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}};
32842 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}};
32843 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}};
32844 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}};
32845 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}};
32846 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}};
32847 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}};
32848 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32849 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}};
32850 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}};
32851 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}};
32852 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}};
32853 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}};
32854
32855 static swig_type_info *swig_types_initial[] = {
32856 _swigt__p_wxTextUrlEvent,
32857 _swigt__p_wxBookCtrlEvent,
32858 _swigt__p_wxSizer,
32859 _swigt__p_wxCheckBox,
32860 _swigt__p_wxPyTreeCtrl,
32861 _swigt__p_wxEvent,
32862 _swigt__p_wxGenericDirCtrl,
32863 _swigt__p_bool,
32864 _swigt__p_wxPyTreeItemData,
32865 _swigt__p_wxItemContainer,
32866 _swigt__p_wxPyListCtrl,
32867 _swigt__p_wxDirFilterListCtrl,
32868 _swigt__p_wxStaticLine,
32869 _swigt__p_wxControl,
32870 _swigt__p_wxPyControl,
32871 _swigt__p_wxGauge,
32872 _swigt__p_wxToolBarBase,
32873 _swigt__p_wxFont,
32874 _swigt__p_wxToggleButton,
32875 _swigt__p_wxRadioButton,
32876 _swigt__p_wxChoice,
32877 _swigt__p_wxMemoryDC,
32878 _swigt__p_wxListItemAttr,
32879 _swigt__p_void,
32880 _swigt__p_int,
32881 _swigt__p_wxSize,
32882 _swigt__p_wxDC,
32883 _swigt__p_wxListView,
32884 _swigt__p_wxIcon,
32885 _swigt__p_wxVisualAttributes,
32886 _swigt__p_wxTextCtrl,
32887 _swigt__p_wxNotebook,
32888 _swigt__p_wxNotifyEvent,
32889 _swigt__p_wxArrayString,
32890 _swigt__p_wxListbook,
32891 _swigt__p_wxStaticBitmap,
32892 _swigt__p_wxSlider,
32893 _swigt__p_wxStaticBox,
32894 _swigt__p_wxArrayInt,
32895 _swigt__p_wxContextHelp,
32896 _swigt__p_long,
32897 _swigt__p_wxEvtHandler,
32898 _swigt__p_wxListEvent,
32899 _swigt__p_wxCheckListBox,
32900 _swigt__p_wxListBox,
32901 _swigt__p_wxBookCtrl,
32902 _swigt__p_wxSpinButton,
32903 _swigt__p_wxButton,
32904 _swigt__p_wxBitmapButton,
32905 _swigt__p_wxRect,
32906 _swigt__p_wxContextHelpButton,
32907 _swigt__p_wxRadioBox,
32908 _swigt__p_wxScrollBar,
32909 _swigt__p_char,
32910 _swigt__p_wxTreeItemId,
32911 _swigt__p_wxComboBox,
32912 _swigt__p_wxHelpEvent,
32913 _swigt__p_wxListItem,
32914 _swigt__p_wxNotebookSizer,
32915 _swigt__p_wxSpinEvent,
32916 _swigt__p_wxGenericDragImage,
32917 _swigt__p_wxSpinCtrl,
32918 _swigt__p_wxImageList,
32919 _swigt__p_wxHelpProvider,
32920 _swigt__p_wxTextAttr,
32921 _swigt__p_wxSimpleHelpProvider,
32922 _swigt__p_wxPoint,
32923 _swigt__p_wxListbookEvent,
32924 _swigt__p_wxNotebookEvent,
32925 _swigt__p_wxObject,
32926 _swigt__p_wxCursor,
32927 _swigt__p_wxKeyEvent,
32928 _swigt__p_wxWindow,
32929 _swigt__p_wxString,
32930 _swigt__p_wxBitmap,
32931 _swigt__p_wxTreeEvent,
32932 _swigt__p_wxMouseEvent,
32933 _swigt__p_wxCommandEvent,
32934 _swigt__p_wxStaticText,
32935 _swigt__p_wxControlWithItems,
32936 _swigt__p_wxToolBarToolBase,
32937 _swigt__p_wxColour,
32938 _swigt__p_wxToolBar,
32939 _swigt__p_wxBookCtrlSizer,
32940 _swigt__p_wxValidator,
32941 0
32942 };
32943
32944
32945 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
32946
32947 static swig_const_info swig_const_table[] = {
32948 {0}};
32949
32950 #ifdef __cplusplus
32951 }
32952 #endif
32953
32954 #ifdef __cplusplus
32955 extern "C"
32956 #endif
32957 SWIGEXPORT(void) SWIG_init(void) {
32958 static PyObject *SWIG_globals = 0;
32959 static int typeinit = 0;
32960 PyObject *m, *d;
32961 int i;
32962 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
32963 m = Py_InitModule((char *) SWIG_name, SwigMethods);
32964 d = PyModule_GetDict(m);
32965
32966 if (!typeinit) {
32967 for (i = 0; swig_types_initial[i]; i++) {
32968 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
32969 }
32970 typeinit = 1;
32971 }
32972 SWIG_InstallConstants(d,swig_const_table);
32973
32974 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
32975 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
32976 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
32977 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
32978 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
32979 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
32980 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
32981 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
32982 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
32983 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
32984 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
32985 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
32986 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
32987 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
32988 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
32989 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
32990 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
32991 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
32992 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
32993 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
32994 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
32995 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
32996 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
32997 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
32998 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
32999 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33000 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33001 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
33002 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
33003 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
33004 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
33005 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
33006 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
33007 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
33008 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
33009 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
33010 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
33011 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
33012 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
33013 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
33014 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
33015 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
33016 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
33017 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
33018 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
33019 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
33020 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
33021 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
33022 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
33023 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
33024 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33025 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
33026 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33027 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
33028 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
33029 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
33030 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
33031 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
33032 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
33033 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
33034 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
33035 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
33036 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
33037 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
33038 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
33039 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
33040 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
33041 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
33042 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33043 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33044 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33045 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33046 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33047 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33048 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33049 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
33050 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
33051 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
33052 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
33053 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33054 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33055 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33056 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33057 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33058 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33059 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33060 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
33061 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
33062 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
33063 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
33064 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
33065 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
33066 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
33067 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
33068 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
33069 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
33070 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33071 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33072 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
33073 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
33074 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
33075 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
33076 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
33077 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
33078 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33079 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33080 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
33081 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
33082 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
33083 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
33084 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
33085 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
33086 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
33087 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
33088 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
33089 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
33090 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
33091 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
33092 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
33093 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
33094 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33095 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
33096 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
33097 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
33098 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
33099 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
33100 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
33101 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
33102 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
33103 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
33104 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
33105 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
33106 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
33107 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
33108 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
33109 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
33110 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
33111 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
33112 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
33113 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
33114 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
33115 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
33116 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
33117 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
33118 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
33119 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
33120 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
33121 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
33122 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
33123 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
33124 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
33125 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
33126 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
33127 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
33128 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
33129 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
33130 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
33131 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
33132 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
33133 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
33134 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
33135 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
33136 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
33137 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
33138 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
33139 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
33140 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
33141 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
33142 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
33143 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
33144 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
33145 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
33146 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
33147 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
33148 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
33149 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
33150 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
33151 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
33152 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
33153 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
33154 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
33155 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
33156 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
33157 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
33158 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
33159 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
33160 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
33161 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
33162 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
33163 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33164 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33165 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33166 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33167 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33168 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33169 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33170 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33171 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33172 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33173 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33174 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33175 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33176 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33177 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33178 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33179 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33180 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33181 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33182 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33183 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33184 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33185
33186 // Map renamed classes back to their common name for OOR
33187 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33188
33189 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33190 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
33191 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
33192 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
33193 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
33194 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
33195 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
33196 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
33197 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33198 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
33199 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
33200 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
33201 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
33202 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
33203 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
33204 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
33205 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
33206 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
33207 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
33208 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
33209 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
33210 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
33211 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
33212 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
33213 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
33214 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
33215 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
33216 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
33217 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
33218 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
33219 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
33220 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
33221 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
33222 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
33223 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
33224 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
33225 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33226 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33227 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33228 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33229 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33230 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33231 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33232 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33233 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33234 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33235 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33236 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33237 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33238 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33239 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33240 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33241 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33242 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33243 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33244 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33245
33246 // Map renamed classes back to their common name for OOR
33247 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33248 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33249
33250 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33251 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
33252 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
33253 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
33254 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
33255 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
33256 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
33257 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
33258 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33259 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33260
33261 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33262
33263 }
33264