]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/controls_wrap.cpp
notes about sizer changes
[wxWidgets.git] / wxPython / src / mac / controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxTextUrlEvent swig_types[0]
210 #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1]
211 #define SWIGTYPE_p_wxSizer swig_types[2]
212 #define SWIGTYPE_p_wxCheckBox swig_types[3]
213 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4]
214 #define SWIGTYPE_p_wxEvent swig_types[5]
215 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6]
216 #define SWIGTYPE_p_bool swig_types[7]
217 #define SWIGTYPE_p_wxPyTreeItemData swig_types[8]
218 #define SWIGTYPE_p_wxItemContainer swig_types[9]
219 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10]
220 #define SWIGTYPE_p_wxPyListCtrl 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_wxTextCtrl swig_types[29]
239 #define SWIGTYPE_p_wxNotebook swig_types[30]
240 #define SWIGTYPE_p_wxNotifyEvent swig_types[31]
241 #define SWIGTYPE_p_wxArrayString swig_types[32]
242 #define SWIGTYPE_p_wxListbook swig_types[33]
243 #define SWIGTYPE_p_wxStaticBitmap swig_types[34]
244 #define SWIGTYPE_p_wxSlider swig_types[35]
245 #define SWIGTYPE_p_wxStaticBox swig_types[36]
246 #define SWIGTYPE_p_wxArrayInt swig_types[37]
247 #define SWIGTYPE_p_wxContextHelp swig_types[38]
248 #define SWIGTYPE_p_long swig_types[39]
249 #define SWIGTYPE_p_wxEvtHandler swig_types[40]
250 #define SWIGTYPE_p_wxListEvent swig_types[41]
251 #define SWIGTYPE_p_wxListBox swig_types[42]
252 #define SWIGTYPE_p_wxCheckListBox swig_types[43]
253 #define SWIGTYPE_p_wxBookCtrl swig_types[44]
254 #define SWIGTYPE_p_wxSpinButton swig_types[45]
255 #define SWIGTYPE_p_wxButton swig_types[46]
256 #define SWIGTYPE_p_wxBitmapButton swig_types[47]
257 #define SWIGTYPE_p_wxRect swig_types[48]
258 #define SWIGTYPE_p_wxContextHelpButton swig_types[49]
259 #define SWIGTYPE_p_wxRadioBox swig_types[50]
260 #define SWIGTYPE_p_wxScrollBar swig_types[51]
261 #define SWIGTYPE_p_char swig_types[52]
262 #define SWIGTYPE_p_wxTreeItemId swig_types[53]
263 #define SWIGTYPE_p_wxComboBox swig_types[54]
264 #define SWIGTYPE_p_wxHelpEvent swig_types[55]
265 #define SWIGTYPE_p_wxListItem swig_types[56]
266 #define SWIGTYPE_p_wxNotebookSizer swig_types[57]
267 #define SWIGTYPE_p_wxSpinEvent swig_types[58]
268 #define SWIGTYPE_p_wxGenericDragImage swig_types[59]
269 #define SWIGTYPE_p_wxSpinCtrl swig_types[60]
270 #define SWIGTYPE_p_wxImageList swig_types[61]
271 #define SWIGTYPE_p_wxHelpProvider swig_types[62]
272 #define SWIGTYPE_p_wxTextAttr swig_types[63]
273 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[64]
274 #define SWIGTYPE_p_wxPoint swig_types[65]
275 #define SWIGTYPE_p_wxListbookEvent swig_types[66]
276 #define SWIGTYPE_p_wxNotebookEvent swig_types[67]
277 #define SWIGTYPE_p_wxObject swig_types[68]
278 #define SWIGTYPE_p_wxCursor swig_types[69]
279 #define SWIGTYPE_p_wxKeyEvent swig_types[70]
280 #define SWIGTYPE_p_wxWindow swig_types[71]
281 #define SWIGTYPE_p_wxString swig_types[72]
282 #define SWIGTYPE_p_wxBitmap swig_types[73]
283 #define SWIGTYPE_p_wxTreeEvent swig_types[74]
284 #define SWIGTYPE_p_wxMouseEvent swig_types[75]
285 #define SWIGTYPE_p_wxCommandEvent swig_types[76]
286 #define SWIGTYPE_p_wxStaticText swig_types[77]
287 #define SWIGTYPE_p_wxControlWithItems swig_types[78]
288 #define SWIGTYPE_p_wxToolBarToolBase swig_types[79]
289 #define SWIGTYPE_p_wxColour swig_types[80]
290 #define SWIGTYPE_p_wxToolBar swig_types[81]
291 #define SWIGTYPE_p_wxBookCtrlSizer swig_types[82]
292 #define SWIGTYPE_p_wxValidator swig_types[83]
293 static swig_type_info *swig_types[85];
294
295 /* -------- TYPES TABLE (END) -------- */
296
297
298 /*-----------------------------------------------
299 @(target):= _controls.so
300 ------------------------------------------------*/
301 #define SWIG_init init_controls
302
303 #define SWIG_name "_controls"
304
305 /* Auxiliar swig macros */
306
307 #ifdef __cplusplus
308 #define SWIGSTATICINLINE(a) static inline a
309 #define SWIGSTATIC(a) static a
310 #define swig_new_array(type, size) (new type[(size)])
311 #define swig_delete_array(cptr) delete[] cptr
312 #define swig_const_cast(type,a) const_cast<type>(a)
313 #define swig_static_cast(type,a) static_cast<type>(a)
314 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
315
316 #ifdef HAVE_NUMERIC_CAST
317 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
318 #else
319 #define swig_numeric_cast(type,a) static_cast<type>(a)
320 #endif
321
322 #else /* C case */
323
324 #define SWIGSTATICINLINE(a) static a
325 #define SWIGSTATIC(a) static a
326 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
327 #define swig_delete_array(cptr) free((char*)cptr)
328 #define swig_const_cast(type,a) (type)(a)
329 #define swig_static_cast(type,a) (type)(a)
330 #define swig_reinterpret_cast(type,a) (type)(a)
331 #define swig_numeric_cast(type,a) (type)(a)
332
333 #endif /* __cplusplus */
334
335
336 #define SWIG_FromSignedChar PyInt_FromLong
337 #define SWIG_FromUnsignedChar PyInt_FromLong
338 #define SWIG_FromShort PyInt_FromLong
339 #define SWIG_FromUnsignedShort PyInt_FromLong
340 #define SWIG_FromInt PyInt_FromLong
341 #define SWIG_FromLong PyInt_FromLong
342 #define SWIG_FromFloat PyFloat_FromDouble
343 #define SWIG_FromDouble PyFloat_FromDouble
344 #define SWIG_FromFloat PyFloat_FromDouble
345 #define SWIG_FromDouble PyFloat_FromDouble
346
347
348 #include "wx/wxPython/wxPython.h"
349 #include "wx/wxPython/pyclasses.h"
350
351 static const wxString wxPyPanelNameStr(wxPanelNameStr);
352 static const wxString wxPyEmptyString(wxEmptyString);
353 static const wxString wxPyControlNameStr(wxControlNameStr);
354
355 const wxArrayString wxPyEmptyStringArray;
356
357 static const wxString wxPyButtonNameStr(wxButtonNameStr);
358
359 #include <limits.h>
360
361
362 SWIGSTATICINLINE(long)
363 SWIG_CheckLongInRange(long value, const char* type,
364 long min_value, long max_value)
365 {
366 if (!PyErr_Occurred()) {
367 if (value < min_value) {
368 PyObject *err =
369 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
370 value, type, min_value);
371
372 PyErr_SetObject(PyExc_OverflowError, err);
373 Py_DECREF(err);
374 } else if (value > max_value) {
375 PyObject *err =
376 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
377 value, type, max_value);
378 PyErr_SetObject(PyExc_OverflowError, err);
379 Py_DECREF(err);
380 }
381 }
382 return value;
383 }
384
385
386 SWIGSTATICINLINE(long)
387 SWIG_AsLong(PyObject * obj)
388 {
389 if (PyNumber_Check(obj))
390 return PyInt_AsLong(obj);
391 else {
392 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
393 obj->ob_type->tp_name);
394 PyErr_SetObject(PyExc_TypeError, errmsg);
395 Py_DECREF(errmsg);
396 return 0;
397 }
398 }
399
400
401 #if INT_MAX != LONG_MAX
402 SWIGSTATICINLINE(int)
403 SWIG_AsInt(PyObject *obj)
404 {
405 return swig_numeric_cast(int,
406 SWIG_CheckLongInRange(SWIG_AsLong(obj),
407 "int", INT_MIN, INT_MAX));
408 }
409 #else
410 #define SWIG_AsInt SWIG_AsLong
411 #endif
412
413
414 SWIGSTATICINLINE(int)
415 SWIG_CheckInt(PyObject* obj)
416 {
417 SWIG_AsInt(obj);
418 if (PyErr_Occurred()) {
419 PyErr_Clear();
420 return 0;
421 } else {
422 return 1;
423 }
424 }
425
426
427 SWIGSTATICINLINE(int)
428 SWIG_CheckLong(PyObject* obj)
429 {
430 SWIG_AsLong(obj);
431 if (PyErr_Occurred()) {
432 PyErr_Clear();
433 return 0;
434 } else {
435 return 1;
436 }
437 }
438
439 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
440
441 SWIGSTATICINLINE(bool)
442 SWIG_AsBool(PyObject *obj)
443 {
444 return PyObject_IsTrue(obj) ? true : false;
445 }
446
447
448 SWIGSTATICINLINE(int)
449 SWIG_CheckBool(PyObject* obj)
450 {
451 SWIG_AsBool(obj);
452 if (PyErr_Occurred()) {
453 PyErr_Clear();
454 return 0;
455 } else {
456 return 1;
457 }
458 }
459
460 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
461 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
462 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
463 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
464 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
465 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
466
467 #include <wx/checklst.h>
468
469
470 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
471 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
472 if (clientData) {
473 wxPyClientData* data = new wxPyClientData(clientData);
474 self->Insert(item, pos, data);
475 } else
476 self->Insert(item, pos);
477 }
478 PyObject *wxListBox_GetSelections(wxListBox *self){
479 wxArrayInt lst;
480 self->GetSelections(lst);
481 PyObject *tup = PyTuple_New(lst.GetCount());
482 for(size_t i=0; i<lst.GetCount(); i++) {
483 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
484 }
485 return tup;
486 }
487 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
488 #ifdef __WXMSW__
489 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
490 self->GetItem(item)->SetTextColour(c);
491 #endif
492 }
493 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
494 #ifdef __WXMSW__
495 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
496 self->GetItem(item)->SetBackgroundColour(c);
497 #endif
498 }
499 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
500 #ifdef __WXMSW__
501 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
502 self->GetItem(item)->SetFont(f);
503 #endif
504 }
505 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
506
507 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
508 PyObject* o2;
509 PyObject* o3;
510
511 if (!target) {
512 target = o;
513 } else if (target == Py_None) {
514 Py_DECREF(Py_None);
515 target = o;
516 } else {
517 if (!PyTuple_Check(target)) {
518 o2 = target;
519 target = PyTuple_New(1);
520 PyTuple_SetItem(target, 0, o2);
521 }
522 o3 = PyTuple_New(1);
523 PyTuple_SetItem(o3, 0, o);
524
525 o2 = target;
526 target = PySequence_Concat(o2, o3);
527 Py_DECREF(o2);
528 Py_DECREF(o3);
529 }
530 return target;
531 }
532
533
534 SWIGSTATICINLINE(unsigned long)
535 SWIG_AsUnsignedLong(PyObject * obj)
536 {
537 if (PyLong_Check(obj)) {
538 return PyLong_AsUnsignedLong(obj);
539 } else {
540 long i = SWIG_AsLong(obj);
541 if ( !PyErr_Occurred() && (i < 0)) {
542 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
543 }
544 return i;
545 }
546 }
547
548
549 SWIGSTATICINLINE(int)
550 SWIG_CheckUnsignedLong(PyObject* obj)
551 {
552 SWIG_AsUnsignedLong(obj);
553 if (PyErr_Occurred()) {
554 PyErr_Clear();
555 return 0;
556 } else {
557 return 1;
558 }
559 }
560
561 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
562 self->AppendText(text);
563 }
564 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
565 return self->GetValue().Mid(from, to - from);
566 }
567 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
568 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
569 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
570 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
571 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
572
573 #include <wx/slider.h>
574
575
576 static const wxString wxPySliderNameStr(wxSliderNameStr);
577 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
578
579 #if !wxUSE_TOGGLEBTN
580 // implement dummy items for platforms that don't have this class
581
582 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
583
584 class wxToggleButton : public wxControl
585 {
586 public:
587 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
588 const wxPoint&, const wxSize&, long,
589 const wxValidator&, const wxString&)
590 { wxPyRaiseNotImplemented(); }
591
592 wxToggleButton()
593 { wxPyRaiseNotImplemented(); }
594 };
595 #endif
596
597 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
598
599 SWIGSTATICINLINE(PyObject* )
600 SWIG_FromUnsignedLong(unsigned long value)
601 {
602 return (value > LONG_MAX) ?
603 PyLong_FromUnsignedLong(value)
604 : PyInt_FromLong(swig_numeric_cast(long,value));
605 }
606
607 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
608 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
609 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
610 if (udata) {
611 Py_INCREF(udata->m_obj);
612 return udata->m_obj;
613 } else {
614 Py_INCREF(Py_None);
615 return Py_None;
616 }
617 }
618 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
619 self->SetClientData(new wxPyUserData(clientData));
620 }
621 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){
622 wxPyUserData* udata = NULL;
623 if (clientData && clientData != Py_None)
624 udata = new wxPyUserData(clientData);
625 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
626 shortHelp, longHelp, udata);
627 }
628 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){
629 wxPyUserData* udata = NULL;
630 if (clientData && clientData != Py_None)
631 udata = new wxPyUserData(clientData);
632 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
633 shortHelp, longHelp, udata);
634 }
635 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
636 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
637 if (udata) {
638 Py_INCREF(udata->m_obj);
639 return udata->m_obj;
640 } else {
641 Py_INCREF(Py_None);
642 return Py_None;
643 }
644 }
645 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
646 self->SetToolClientData(id, new wxPyUserData(clientData));
647 }
648
649 #include <wx/listctrl.h>
650
651
652 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
653 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
654 // Python aware sorting function for wxPyListCtrl
655 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
656 int retval = 0;
657 PyObject* func = (PyObject*)funcPtr;
658 bool blocked = wxPyBeginBlockThreads();
659
660 PyObject* args = Py_BuildValue("(ii)", item1, item2);
661 PyObject* result = PyEval_CallObject(func, args);
662 Py_DECREF(args);
663 if (result) {
664 retval = PyInt_AsLong(result);
665 Py_DECREF(result);
666 }
667
668 wxPyEndBlockThreads(blocked);
669 return retval;
670 }
671
672 // C++ Version of a Python aware class
673 class wxPyListCtrl : public wxListCtrl {
674 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
675 public:
676 wxPyListCtrl() : wxListCtrl() {}
677 wxPyListCtrl(wxWindow* parent, wxWindowID id,
678 const wxPoint& pos,
679 const wxSize& size,
680 long style,
681 const wxValidator& validator,
682 const wxString& name) :
683 wxListCtrl(parent, id, pos, size, style, validator, name) {}
684
685 bool Create(wxWindow* parent, wxWindowID id,
686 const wxPoint& pos,
687 const wxSize& size,
688 long style,
689 const wxValidator& validator,
690 const wxString& name) {
691 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
692 }
693
694 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
695 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
696 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
697
698 PYPRIVATE;
699 };
700
701 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
702
703 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
704 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
705 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
706
707 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
708 wxListItem item;
709 item.SetMask( wxLIST_MASK_STATE |
710 wxLIST_MASK_TEXT |
711 wxLIST_MASK_IMAGE |
712 wxLIST_MASK_DATA |
713 wxLIST_SET_ITEM |
714 wxLIST_MASK_WIDTH |
715 wxLIST_MASK_FORMAT
716 );
717 if (self->GetColumn(col, item))
718 return new wxListItem(item);
719 else
720 return NULL;
721 }
722 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
723 wxListItem* info = new wxListItem;
724 info->m_itemId = itemId;
725 info->m_col = col;
726 info->m_mask = 0xFFFF;
727 self->GetItem(*info);
728 return info;
729 }
730 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
731 wxPoint pos;
732 self->GetItemPosition(item, pos);
733 return pos;
734 }
735 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
736 wxRect rect;
737 self->GetItemRect(item, rect, code);
738 return rect;
739 }
740 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
741 if (!PyCallable_Check(func))
742 return False;
743 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
744 }
745 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
746
747
748
749 return (wxWindow*)self->m_mainWin;
750
751 }
752
753 #include <wx/treectrl.h>
754 #include "wx/wxPython/pytree.h"
755
756 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
757 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
758 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
759 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
760 // C++ version of Python aware wxTreeCtrl
761 class wxPyTreeCtrl : public wxTreeCtrl {
762 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
763 public:
764 wxPyTreeCtrl() : wxTreeCtrl() {}
765 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
766 const wxPoint& pos,
767 const wxSize& size,
768 long style,
769 const wxValidator& validator,
770 const wxString& name) :
771 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
772
773 bool Create(wxWindow *parent, wxWindowID id,
774 const wxPoint& pos,
775 const wxSize& size,
776 long style,
777 const wxValidator& validator,
778 const wxString& name) {
779 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
780 }
781
782
783 int OnCompareItems(const wxTreeItemId& item1,
784 const wxTreeItemId& item2) {
785 int rval = 0;
786 bool found;
787 bool blocked = wxPyBeginBlockThreads();
788 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
789 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
790 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
791 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
792 Py_DECREF(o1);
793 Py_DECREF(o2);
794 }
795 wxPyEndBlockThreads(blocked);
796 if (! found)
797 rval = wxTreeCtrl::OnCompareItems(item1, item2);
798 return rval;
799 }
800 PYPRIVATE;
801 };
802
803 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
804
805
806
807 #if UINT_MAX < LONG_MAX
808 #define SWIG_FromUnsignedInt SWIG_FromLong
809 #else
810 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
811 #endif
812
813
814 SWIGSTATICINLINE(unsigned long)
815 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
816 unsigned long max_value)
817 {
818 if (!PyErr_Occurred()) {
819 if (value > max_value) {
820 PyObject *err =
821 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
822 value, type, max_value);
823 PyErr_SetObject(PyExc_OverflowError, err);
824 Py_DECREF(err);
825 }
826 }
827 return value;
828 }
829
830
831 #if UINT_MAX != ULONG_MAX
832 SWIGSTATICINLINE(unsigned int)
833 SWIG_AsUnsignedInt(PyObject *obj)
834 {
835 return swig_numeric_cast(unsigned int,
836 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
837 "unsigned int", UINT_MAX));
838 }
839 #else
840 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
841 #endif
842
843
844 SWIGSTATICINLINE(int)
845 SWIG_CheckUnsignedInt(PyObject* obj)
846 {
847 SWIG_AsUnsignedInt(obj);
848 if (PyErr_Occurred()) {
849 PyErr_Clear();
850 return 0;
851 } else {
852 return 1;
853 }
854 }
855
856 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
857 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
858 if (data == NULL) {
859 data = new wxPyTreeItemData();
860 data->SetId(item); // set the id
861 self->SetItemData(item, data);
862 }
863 return data;
864 }
865 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
866 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
867 if (data == NULL) {
868 data = new wxPyTreeItemData();
869 data->SetId(item); // set the id
870 self->SetItemData(item, data);
871 }
872 return data->GetData();
873 }
874 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
875 data->SetId(item); // set the id
876 self->SetItemData(item, data);
877 }
878 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
879 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
880 if (data == NULL) {
881 data = new wxPyTreeItemData(obj);
882 data->SetId(item); // set the id
883 self->SetItemData(item, data);
884 } else
885 data->SetData(obj);
886 }
887 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
888 bool blocked = wxPyBeginBlockThreads();
889 PyObject* rval = PyList_New(0);
890 wxArrayTreeItemIds array;
891 size_t num, x;
892 num = self->GetSelections(array);
893 for (x=0; x < num; x++) {
894 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
895 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
896 PyList_Append(rval, item);
897 }
898 wxPyEndBlockThreads(blocked);
899 return rval;
900 }
901 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
902 void* cookie = 0;
903 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
904 bool blocked = wxPyBeginBlockThreads();
905 PyObject* tup = PyTuple_New(2);
906 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
907 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
908 wxPyEndBlockThreads(blocked);
909 return tup;
910 }
911 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
912 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
913 bool blocked = wxPyBeginBlockThreads();
914 PyObject* tup = PyTuple_New(2);
915 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
916 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
917 wxPyEndBlockThreads(blocked);
918 return tup;
919 }
920 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
921 wxRect rect;
922 if (self->GetBoundingRect(item, rect, textOnly)) {
923 bool blocked = wxPyBeginBlockThreads();
924 wxRect* r = new wxRect(rect);
925 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
926 wxPyEndBlockThreads(blocked);
927 return val;
928 }
929 else
930 RETURN_NONE();
931 }
932 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
933 // C++ version of Python aware wxControl
934 class wxPyControl : public wxControl
935 {
936 DECLARE_DYNAMIC_CLASS(wxPyControl)
937 public:
938 wxPyControl() : wxControl() {}
939 wxPyControl(wxWindow* parent, const wxWindowID id,
940 const wxPoint& pos = wxDefaultPosition,
941 const wxSize& size = wxDefaultSize,
942 long style = 0,
943 const wxValidator& validator=wxDefaultValidator,
944 const wxString& name = wxPyControlNameStr)
945 : wxControl(parent, id, pos, size, style, validator, name) {}
946
947
948 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
949 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
950 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
951 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
952
953 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
954 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
955 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
956
957 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
958 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
959
960 DEC_PYCALLBACK__(InitDialog);
961 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
962 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
963 DEC_PYCALLBACK_BOOL_(Validate);
964
965 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
966 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
967 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
968
969 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
970 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
971
972 DEC_PYCALLBACK_BOOL_(ShouldInheritColours);
973 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
974
975 PYPRIVATE;
976 };
977
978 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
979
980 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
981 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
982 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
983 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
984
985 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
986 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
987 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
988
989 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
990 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
991
992 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
993 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
994 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
995 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
996
997 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
998 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
999 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1000
1001 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1002 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1003
1004 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours);
1005 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1006
1007
1008
1009 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1010
1011 #include <wx/generic/dragimgg.h>
1012
1013 #ifdef __cplusplus
1014 extern "C" {
1015 #endif
1016 static int _wrap_ButtonNameStr_set(PyObject *) {
1017 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1018 return 1;
1019 }
1020
1021
1022 static PyObject *_wrap_ButtonNameStr_get() {
1023 PyObject *pyobj;
1024
1025 {
1026 #if wxUSE_UNICODE
1027 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1028 #else
1029 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1030 #endif
1031 }
1032 return pyobj;
1033 }
1034
1035
1036 static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) {
1037 PyObject *resultobj;
1038 wxWindow *arg1 = (wxWindow *) 0 ;
1039 int arg2 ;
1040 wxString *arg3 = 0 ;
1041 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1042 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1043 wxSize const &arg5_defvalue = wxDefaultSize ;
1044 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1045 long arg6 = (long) 0 ;
1046 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1047 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1048 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1049 wxString *arg8 = (wxString *) &arg8_defvalue ;
1050 wxButton *result;
1051 bool temp3 = False ;
1052 wxPoint temp4 ;
1053 wxSize temp5 ;
1054 bool temp8 = False ;
1055 PyObject * obj0 = 0 ;
1056 PyObject * obj1 = 0 ;
1057 PyObject * obj2 = 0 ;
1058 PyObject * obj3 = 0 ;
1059 PyObject * obj4 = 0 ;
1060 PyObject * obj5 = 0 ;
1061 PyObject * obj6 = 0 ;
1062 PyObject * obj7 = 0 ;
1063 char *kwnames[] = {
1064 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1065 };
1066
1067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1070 arg2 = (int) SWIG_AsInt(obj1);
1071 if (PyErr_Occurred()) SWIG_fail;
1072 {
1073 arg3 = wxString_in_helper(obj2);
1074 if (arg3 == NULL) SWIG_fail;
1075 temp3 = True;
1076 }
1077 if (obj3) {
1078 {
1079 arg4 = &temp4;
1080 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1081 }
1082 }
1083 if (obj4) {
1084 {
1085 arg5 = &temp5;
1086 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1087 }
1088 }
1089 if (obj5) {
1090 arg6 = (long) SWIG_AsLong(obj5);
1091 if (PyErr_Occurred()) SWIG_fail;
1092 }
1093 if (obj6) {
1094 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1095 SWIG_POINTER_EXCEPTION | 0)) == -1)
1096 SWIG_fail;
1097 if (arg7 == NULL) {
1098 PyErr_SetString(PyExc_TypeError,"null reference");
1099 SWIG_fail;
1100 }
1101 }
1102 if (obj7) {
1103 {
1104 arg8 = wxString_in_helper(obj7);
1105 if (arg8 == NULL) SWIG_fail;
1106 temp8 = True;
1107 }
1108 }
1109 {
1110 PyThreadState* __tstate = wxPyBeginAllowThreads();
1111 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1112
1113 wxPyEndAllowThreads(__tstate);
1114 if (PyErr_Occurred()) SWIG_fail;
1115 }
1116 {
1117 resultobj = wxPyMake_wxObject(result);
1118 }
1119 {
1120 if (temp3)
1121 delete arg3;
1122 }
1123 {
1124 if (temp8)
1125 delete arg8;
1126 }
1127 return resultobj;
1128 fail:
1129 {
1130 if (temp3)
1131 delete arg3;
1132 }
1133 {
1134 if (temp8)
1135 delete arg8;
1136 }
1137 return NULL;
1138 }
1139
1140
1141 static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) {
1142 PyObject *resultobj;
1143 wxButton *result;
1144 char *kwnames[] = {
1145 NULL
1146 };
1147
1148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1149 {
1150 PyThreadState* __tstate = wxPyBeginAllowThreads();
1151 result = (wxButton *)new wxButton();
1152
1153 wxPyEndAllowThreads(__tstate);
1154 if (PyErr_Occurred()) SWIG_fail;
1155 }
1156 {
1157 resultobj = wxPyMake_wxObject(result);
1158 }
1159 return resultobj;
1160 fail:
1161 return NULL;
1162 }
1163
1164
1165 static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1166 PyObject *resultobj;
1167 wxButton *arg1 = (wxButton *) 0 ;
1168 wxWindow *arg2 = (wxWindow *) 0 ;
1169 int arg3 ;
1170 wxString *arg4 = 0 ;
1171 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1172 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1173 wxSize const &arg6_defvalue = wxDefaultSize ;
1174 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1175 long arg7 = (long) 0 ;
1176 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1177 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1178 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1179 wxString *arg9 = (wxString *) &arg9_defvalue ;
1180 bool result;
1181 bool temp4 = False ;
1182 wxPoint temp5 ;
1183 wxSize temp6 ;
1184 bool temp9 = False ;
1185 PyObject * obj0 = 0 ;
1186 PyObject * obj1 = 0 ;
1187 PyObject * obj2 = 0 ;
1188 PyObject * obj3 = 0 ;
1189 PyObject * obj4 = 0 ;
1190 PyObject * obj5 = 0 ;
1191 PyObject * obj6 = 0 ;
1192 PyObject * obj7 = 0 ;
1193 PyObject * obj8 = 0 ;
1194 char *kwnames[] = {
1195 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1196 };
1197
1198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1201 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1203 arg3 = (int) SWIG_AsInt(obj2);
1204 if (PyErr_Occurred()) SWIG_fail;
1205 {
1206 arg4 = wxString_in_helper(obj3);
1207 if (arg4 == NULL) SWIG_fail;
1208 temp4 = True;
1209 }
1210 if (obj4) {
1211 {
1212 arg5 = &temp5;
1213 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1214 }
1215 }
1216 if (obj5) {
1217 {
1218 arg6 = &temp6;
1219 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1220 }
1221 }
1222 if (obj6) {
1223 arg7 = (long) SWIG_AsLong(obj6);
1224 if (PyErr_Occurred()) SWIG_fail;
1225 }
1226 if (obj7) {
1227 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1228 SWIG_POINTER_EXCEPTION | 0)) == -1)
1229 SWIG_fail;
1230 if (arg8 == NULL) {
1231 PyErr_SetString(PyExc_TypeError,"null reference");
1232 SWIG_fail;
1233 }
1234 }
1235 if (obj8) {
1236 {
1237 arg9 = wxString_in_helper(obj8);
1238 if (arg9 == NULL) SWIG_fail;
1239 temp9 = True;
1240 }
1241 }
1242 {
1243 PyThreadState* __tstate = wxPyBeginAllowThreads();
1244 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1245
1246 wxPyEndAllowThreads(__tstate);
1247 if (PyErr_Occurred()) SWIG_fail;
1248 }
1249 {
1250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1251 }
1252 {
1253 if (temp4)
1254 delete arg4;
1255 }
1256 {
1257 if (temp9)
1258 delete arg9;
1259 }
1260 return resultobj;
1261 fail:
1262 {
1263 if (temp4)
1264 delete arg4;
1265 }
1266 {
1267 if (temp9)
1268 delete arg9;
1269 }
1270 return NULL;
1271 }
1272
1273
1274 static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
1275 PyObject *resultobj;
1276 wxButton *arg1 = (wxButton *) 0 ;
1277 PyObject * obj0 = 0 ;
1278 char *kwnames[] = {
1279 (char *) "self", NULL
1280 };
1281
1282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1285 {
1286 PyThreadState* __tstate = wxPyBeginAllowThreads();
1287 (arg1)->SetDefault();
1288
1289 wxPyEndAllowThreads(__tstate);
1290 if (PyErr_Occurred()) SWIG_fail;
1291 }
1292 Py_INCREF(Py_None); resultobj = Py_None;
1293 return resultobj;
1294 fail:
1295 return NULL;
1296 }
1297
1298
1299 static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
1300 PyObject *resultobj;
1301 wxSize result;
1302 char *kwnames[] = {
1303 NULL
1304 };
1305
1306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1307 {
1308 PyThreadState* __tstate = wxPyBeginAllowThreads();
1309 result = wxButton::GetDefaultSize();
1310
1311 wxPyEndAllowThreads(__tstate);
1312 if (PyErr_Occurred()) SWIG_fail;
1313 }
1314 {
1315 wxSize * resultptr;
1316 resultptr = new wxSize((wxSize &) result);
1317 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1318 }
1319 return resultobj;
1320 fail:
1321 return NULL;
1322 }
1323
1324
1325 static PyObject * Button_swigregister(PyObject *, PyObject *args) {
1326 PyObject *obj;
1327 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1328 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1329 Py_INCREF(obj);
1330 return Py_BuildValue((char *)"");
1331 }
1332 static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1333 PyObject *resultobj;
1334 wxWindow *arg1 = (wxWindow *) 0 ;
1335 int arg2 ;
1336 wxBitmap *arg3 = 0 ;
1337 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1338 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1339 wxSize const &arg5_defvalue = wxDefaultSize ;
1340 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1341 long arg6 = (long) wxBU_AUTODRAW ;
1342 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1343 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1344 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1345 wxString *arg8 = (wxString *) &arg8_defvalue ;
1346 wxBitmapButton *result;
1347 wxPoint temp4 ;
1348 wxSize temp5 ;
1349 bool temp8 = False ;
1350 PyObject * obj0 = 0 ;
1351 PyObject * obj1 = 0 ;
1352 PyObject * obj2 = 0 ;
1353 PyObject * obj3 = 0 ;
1354 PyObject * obj4 = 0 ;
1355 PyObject * obj5 = 0 ;
1356 PyObject * obj6 = 0 ;
1357 PyObject * obj7 = 0 ;
1358 char *kwnames[] = {
1359 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1360 };
1361
1362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1365 arg2 = (int) SWIG_AsInt(obj1);
1366 if (PyErr_Occurred()) SWIG_fail;
1367 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1368 SWIG_POINTER_EXCEPTION | 0)) == -1)
1369 SWIG_fail;
1370 if (arg3 == NULL) {
1371 PyErr_SetString(PyExc_TypeError,"null reference");
1372 SWIG_fail;
1373 }
1374 if (obj3) {
1375 {
1376 arg4 = &temp4;
1377 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1378 }
1379 }
1380 if (obj4) {
1381 {
1382 arg5 = &temp5;
1383 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1384 }
1385 }
1386 if (obj5) {
1387 arg6 = (long) SWIG_AsLong(obj5);
1388 if (PyErr_Occurred()) SWIG_fail;
1389 }
1390 if (obj6) {
1391 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1392 SWIG_POINTER_EXCEPTION | 0)) == -1)
1393 SWIG_fail;
1394 if (arg7 == NULL) {
1395 PyErr_SetString(PyExc_TypeError,"null reference");
1396 SWIG_fail;
1397 }
1398 }
1399 if (obj7) {
1400 {
1401 arg8 = wxString_in_helper(obj7);
1402 if (arg8 == NULL) SWIG_fail;
1403 temp8 = True;
1404 }
1405 }
1406 {
1407 PyThreadState* __tstate = wxPyBeginAllowThreads();
1408 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1409
1410 wxPyEndAllowThreads(__tstate);
1411 if (PyErr_Occurred()) SWIG_fail;
1412 }
1413 {
1414 resultobj = wxPyMake_wxObject(result);
1415 }
1416 {
1417 if (temp8)
1418 delete arg8;
1419 }
1420 return resultobj;
1421 fail:
1422 {
1423 if (temp8)
1424 delete arg8;
1425 }
1426 return NULL;
1427 }
1428
1429
1430 static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1431 PyObject *resultobj;
1432 wxBitmapButton *result;
1433 char *kwnames[] = {
1434 NULL
1435 };
1436
1437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1438 {
1439 PyThreadState* __tstate = wxPyBeginAllowThreads();
1440 result = (wxBitmapButton *)new wxBitmapButton();
1441
1442 wxPyEndAllowThreads(__tstate);
1443 if (PyErr_Occurred()) SWIG_fail;
1444 }
1445 {
1446 resultobj = wxPyMake_wxObject(result);
1447 }
1448 return resultobj;
1449 fail:
1450 return NULL;
1451 }
1452
1453
1454 static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1455 PyObject *resultobj;
1456 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1457 wxWindow *arg2 = (wxWindow *) 0 ;
1458 int arg3 ;
1459 wxBitmap *arg4 = 0 ;
1460 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1461 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1462 wxSize const &arg6_defvalue = wxDefaultSize ;
1463 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1464 long arg7 = (long) wxBU_AUTODRAW ;
1465 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1466 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1467 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1468 wxString *arg9 = (wxString *) &arg9_defvalue ;
1469 bool result;
1470 wxPoint temp5 ;
1471 wxSize temp6 ;
1472 bool temp9 = False ;
1473 PyObject * obj0 = 0 ;
1474 PyObject * obj1 = 0 ;
1475 PyObject * obj2 = 0 ;
1476 PyObject * obj3 = 0 ;
1477 PyObject * obj4 = 0 ;
1478 PyObject * obj5 = 0 ;
1479 PyObject * obj6 = 0 ;
1480 PyObject * obj7 = 0 ;
1481 PyObject * obj8 = 0 ;
1482 char *kwnames[] = {
1483 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1484 };
1485
1486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1489 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1491 arg3 = (int) SWIG_AsInt(obj2);
1492 if (PyErr_Occurred()) SWIG_fail;
1493 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1494 SWIG_POINTER_EXCEPTION | 0)) == -1)
1495 SWIG_fail;
1496 if (arg4 == NULL) {
1497 PyErr_SetString(PyExc_TypeError,"null reference");
1498 SWIG_fail;
1499 }
1500 if (obj4) {
1501 {
1502 arg5 = &temp5;
1503 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1504 }
1505 }
1506 if (obj5) {
1507 {
1508 arg6 = &temp6;
1509 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1510 }
1511 }
1512 if (obj6) {
1513 arg7 = (long) SWIG_AsLong(obj6);
1514 if (PyErr_Occurred()) SWIG_fail;
1515 }
1516 if (obj7) {
1517 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1518 SWIG_POINTER_EXCEPTION | 0)) == -1)
1519 SWIG_fail;
1520 if (arg8 == NULL) {
1521 PyErr_SetString(PyExc_TypeError,"null reference");
1522 SWIG_fail;
1523 }
1524 }
1525 if (obj8) {
1526 {
1527 arg9 = wxString_in_helper(obj8);
1528 if (arg9 == NULL) SWIG_fail;
1529 temp9 = True;
1530 }
1531 }
1532 {
1533 PyThreadState* __tstate = wxPyBeginAllowThreads();
1534 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1535
1536 wxPyEndAllowThreads(__tstate);
1537 if (PyErr_Occurred()) SWIG_fail;
1538 }
1539 {
1540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1541 }
1542 {
1543 if (temp9)
1544 delete arg9;
1545 }
1546 return resultobj;
1547 fail:
1548 {
1549 if (temp9)
1550 delete arg9;
1551 }
1552 return NULL;
1553 }
1554
1555
1556 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1557 PyObject *resultobj;
1558 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1559 wxBitmap result;
1560 PyObject * obj0 = 0 ;
1561 char *kwnames[] = {
1562 (char *) "self", NULL
1563 };
1564
1565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1568 {
1569 PyThreadState* __tstate = wxPyBeginAllowThreads();
1570 result = (arg1)->GetBitmapLabel();
1571
1572 wxPyEndAllowThreads(__tstate);
1573 if (PyErr_Occurred()) SWIG_fail;
1574 }
1575 {
1576 wxBitmap * resultptr;
1577 resultptr = new wxBitmap((wxBitmap &) result);
1578 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1579 }
1580 return resultobj;
1581 fail:
1582 return NULL;
1583 }
1584
1585
1586 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1587 PyObject *resultobj;
1588 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1589 wxBitmap result;
1590 PyObject * obj0 = 0 ;
1591 char *kwnames[] = {
1592 (char *) "self", NULL
1593 };
1594
1595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1598 {
1599 PyThreadState* __tstate = wxPyBeginAllowThreads();
1600 result = (arg1)->GetBitmapDisabled();
1601
1602 wxPyEndAllowThreads(__tstate);
1603 if (PyErr_Occurred()) SWIG_fail;
1604 }
1605 {
1606 wxBitmap * resultptr;
1607 resultptr = new wxBitmap((wxBitmap &) result);
1608 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1609 }
1610 return resultobj;
1611 fail:
1612 return NULL;
1613 }
1614
1615
1616 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1617 PyObject *resultobj;
1618 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1619 wxBitmap result;
1620 PyObject * obj0 = 0 ;
1621 char *kwnames[] = {
1622 (char *) "self", NULL
1623 };
1624
1625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1628 {
1629 PyThreadState* __tstate = wxPyBeginAllowThreads();
1630 result = (arg1)->GetBitmapFocus();
1631
1632 wxPyEndAllowThreads(__tstate);
1633 if (PyErr_Occurred()) SWIG_fail;
1634 }
1635 {
1636 wxBitmap * resultptr;
1637 resultptr = new wxBitmap((wxBitmap &) result);
1638 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1639 }
1640 return resultobj;
1641 fail:
1642 return NULL;
1643 }
1644
1645
1646 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1647 PyObject *resultobj;
1648 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1649 wxBitmap result;
1650 PyObject * obj0 = 0 ;
1651 char *kwnames[] = {
1652 (char *) "self", NULL
1653 };
1654
1655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1658 {
1659 PyThreadState* __tstate = wxPyBeginAllowThreads();
1660 result = (arg1)->GetBitmapSelected();
1661
1662 wxPyEndAllowThreads(__tstate);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 }
1665 {
1666 wxBitmap * resultptr;
1667 resultptr = new wxBitmap((wxBitmap &) result);
1668 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1669 }
1670 return resultobj;
1671 fail:
1672 return NULL;
1673 }
1674
1675
1676 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1677 PyObject *resultobj;
1678 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1679 wxBitmap *arg2 = 0 ;
1680 PyObject * obj0 = 0 ;
1681 PyObject * obj1 = 0 ;
1682 char *kwnames[] = {
1683 (char *) "self",(char *) "bitmap", NULL
1684 };
1685
1686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1689 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1690 SWIG_POINTER_EXCEPTION | 0)) == -1)
1691 SWIG_fail;
1692 if (arg2 == NULL) {
1693 PyErr_SetString(PyExc_TypeError,"null reference");
1694 SWIG_fail;
1695 }
1696 {
1697 PyThreadState* __tstate = wxPyBeginAllowThreads();
1698 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1699
1700 wxPyEndAllowThreads(__tstate);
1701 if (PyErr_Occurred()) SWIG_fail;
1702 }
1703 Py_INCREF(Py_None); resultobj = Py_None;
1704 return resultobj;
1705 fail:
1706 return NULL;
1707 }
1708
1709
1710 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1711 PyObject *resultobj;
1712 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1713 wxBitmap *arg2 = 0 ;
1714 PyObject * obj0 = 0 ;
1715 PyObject * obj1 = 0 ;
1716 char *kwnames[] = {
1717 (char *) "self",(char *) "bitmap", NULL
1718 };
1719
1720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1723 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1724 SWIG_POINTER_EXCEPTION | 0)) == -1)
1725 SWIG_fail;
1726 if (arg2 == NULL) {
1727 PyErr_SetString(PyExc_TypeError,"null reference");
1728 SWIG_fail;
1729 }
1730 {
1731 PyThreadState* __tstate = wxPyBeginAllowThreads();
1732 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1733
1734 wxPyEndAllowThreads(__tstate);
1735 if (PyErr_Occurred()) SWIG_fail;
1736 }
1737 Py_INCREF(Py_None); resultobj = Py_None;
1738 return resultobj;
1739 fail:
1740 return NULL;
1741 }
1742
1743
1744 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1745 PyObject *resultobj;
1746 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1747 wxBitmap *arg2 = 0 ;
1748 PyObject * obj0 = 0 ;
1749 PyObject * obj1 = 0 ;
1750 char *kwnames[] = {
1751 (char *) "self",(char *) "bitmap", NULL
1752 };
1753
1754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1758 SWIG_POINTER_EXCEPTION | 0)) == -1)
1759 SWIG_fail;
1760 if (arg2 == NULL) {
1761 PyErr_SetString(PyExc_TypeError,"null reference");
1762 SWIG_fail;
1763 }
1764 {
1765 PyThreadState* __tstate = wxPyBeginAllowThreads();
1766 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1767
1768 wxPyEndAllowThreads(__tstate);
1769 if (PyErr_Occurred()) SWIG_fail;
1770 }
1771 Py_INCREF(Py_None); resultobj = Py_None;
1772 return resultobj;
1773 fail:
1774 return NULL;
1775 }
1776
1777
1778 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1779 PyObject *resultobj;
1780 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1781 wxBitmap *arg2 = 0 ;
1782 PyObject * obj0 = 0 ;
1783 PyObject * obj1 = 0 ;
1784 char *kwnames[] = {
1785 (char *) "self",(char *) "bitmap", NULL
1786 };
1787
1788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1791 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1792 SWIG_POINTER_EXCEPTION | 0)) == -1)
1793 SWIG_fail;
1794 if (arg2 == NULL) {
1795 PyErr_SetString(PyExc_TypeError,"null reference");
1796 SWIG_fail;
1797 }
1798 {
1799 PyThreadState* __tstate = wxPyBeginAllowThreads();
1800 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1801
1802 wxPyEndAllowThreads(__tstate);
1803 if (PyErr_Occurred()) SWIG_fail;
1804 }
1805 Py_INCREF(Py_None); resultobj = Py_None;
1806 return resultobj;
1807 fail:
1808 return NULL;
1809 }
1810
1811
1812 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
1813 PyObject *resultobj;
1814 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1815 int arg2 ;
1816 int arg3 ;
1817 PyObject * obj0 = 0 ;
1818 PyObject * obj1 = 0 ;
1819 PyObject * obj2 = 0 ;
1820 char *kwnames[] = {
1821 (char *) "self",(char *) "x",(char *) "y", NULL
1822 };
1823
1824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1827 arg2 = (int) SWIG_AsInt(obj1);
1828 if (PyErr_Occurred()) SWIG_fail;
1829 arg3 = (int) SWIG_AsInt(obj2);
1830 if (PyErr_Occurred()) SWIG_fail;
1831 {
1832 PyThreadState* __tstate = wxPyBeginAllowThreads();
1833 (arg1)->SetMargins(arg2,arg3);
1834
1835 wxPyEndAllowThreads(__tstate);
1836 if (PyErr_Occurred()) SWIG_fail;
1837 }
1838 Py_INCREF(Py_None); resultobj = Py_None;
1839 return resultobj;
1840 fail:
1841 return NULL;
1842 }
1843
1844
1845 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) {
1846 PyObject *resultobj;
1847 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1848 int result;
1849 PyObject * obj0 = 0 ;
1850 char *kwnames[] = {
1851 (char *) "self", NULL
1852 };
1853
1854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1857 {
1858 PyThreadState* __tstate = wxPyBeginAllowThreads();
1859 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1860
1861 wxPyEndAllowThreads(__tstate);
1862 if (PyErr_Occurred()) SWIG_fail;
1863 }
1864 resultobj = SWIG_FromInt((int)result);
1865 return resultobj;
1866 fail:
1867 return NULL;
1868 }
1869
1870
1871 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) {
1872 PyObject *resultobj;
1873 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1874 int result;
1875 PyObject * obj0 = 0 ;
1876 char *kwnames[] = {
1877 (char *) "self", NULL
1878 };
1879
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1883 {
1884 PyThreadState* __tstate = wxPyBeginAllowThreads();
1885 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1886
1887 wxPyEndAllowThreads(__tstate);
1888 if (PyErr_Occurred()) SWIG_fail;
1889 }
1890 resultobj = SWIG_FromInt((int)result);
1891 return resultobj;
1892 fail:
1893 return NULL;
1894 }
1895
1896
1897 static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) {
1898 PyObject *obj;
1899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1900 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1901 Py_INCREF(obj);
1902 return Py_BuildValue((char *)"");
1903 }
1904 static int _wrap_CheckBoxNameStr_set(PyObject *) {
1905 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1906 return 1;
1907 }
1908
1909
1910 static PyObject *_wrap_CheckBoxNameStr_get() {
1911 PyObject *pyobj;
1912
1913 {
1914 #if wxUSE_UNICODE
1915 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1916 #else
1917 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1918 #endif
1919 }
1920 return pyobj;
1921 }
1922
1923
1924 static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
1925 PyObject *resultobj;
1926 wxWindow *arg1 = (wxWindow *) 0 ;
1927 int arg2 ;
1928 wxString *arg3 = 0 ;
1929 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1930 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1931 wxSize const &arg5_defvalue = wxDefaultSize ;
1932 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1933 long arg6 = (long) 0 ;
1934 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1935 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1936 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1937 wxString *arg8 = (wxString *) &arg8_defvalue ;
1938 wxCheckBox *result;
1939 bool temp3 = False ;
1940 wxPoint temp4 ;
1941 wxSize temp5 ;
1942 bool temp8 = False ;
1943 PyObject * obj0 = 0 ;
1944 PyObject * obj1 = 0 ;
1945 PyObject * obj2 = 0 ;
1946 PyObject * obj3 = 0 ;
1947 PyObject * obj4 = 0 ;
1948 PyObject * obj5 = 0 ;
1949 PyObject * obj6 = 0 ;
1950 PyObject * obj7 = 0 ;
1951 char *kwnames[] = {
1952 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1953 };
1954
1955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1958 arg2 = (int) SWIG_AsInt(obj1);
1959 if (PyErr_Occurred()) SWIG_fail;
1960 {
1961 arg3 = wxString_in_helper(obj2);
1962 if (arg3 == NULL) SWIG_fail;
1963 temp3 = True;
1964 }
1965 if (obj3) {
1966 {
1967 arg4 = &temp4;
1968 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1969 }
1970 }
1971 if (obj4) {
1972 {
1973 arg5 = &temp5;
1974 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1975 }
1976 }
1977 if (obj5) {
1978 arg6 = (long) SWIG_AsLong(obj5);
1979 if (PyErr_Occurred()) SWIG_fail;
1980 }
1981 if (obj6) {
1982 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1983 SWIG_POINTER_EXCEPTION | 0)) == -1)
1984 SWIG_fail;
1985 if (arg7 == NULL) {
1986 PyErr_SetString(PyExc_TypeError,"null reference");
1987 SWIG_fail;
1988 }
1989 }
1990 if (obj7) {
1991 {
1992 arg8 = wxString_in_helper(obj7);
1993 if (arg8 == NULL) SWIG_fail;
1994 temp8 = True;
1995 }
1996 }
1997 {
1998 PyThreadState* __tstate = wxPyBeginAllowThreads();
1999 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2000
2001 wxPyEndAllowThreads(__tstate);
2002 if (PyErr_Occurred()) SWIG_fail;
2003 }
2004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2005 {
2006 if (temp3)
2007 delete arg3;
2008 }
2009 {
2010 if (temp8)
2011 delete arg8;
2012 }
2013 return resultobj;
2014 fail:
2015 {
2016 if (temp3)
2017 delete arg3;
2018 }
2019 {
2020 if (temp8)
2021 delete arg8;
2022 }
2023 return NULL;
2024 }
2025
2026
2027 static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2028 PyObject *resultobj;
2029 wxCheckBox *result;
2030 char *kwnames[] = {
2031 NULL
2032 };
2033
2034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2035 {
2036 PyThreadState* __tstate = wxPyBeginAllowThreads();
2037 result = (wxCheckBox *)new wxCheckBox();
2038
2039 wxPyEndAllowThreads(__tstate);
2040 if (PyErr_Occurred()) SWIG_fail;
2041 }
2042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2043 return resultobj;
2044 fail:
2045 return NULL;
2046 }
2047
2048
2049 static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2050 PyObject *resultobj;
2051 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2052 wxWindow *arg2 = (wxWindow *) 0 ;
2053 int arg3 ;
2054 wxString *arg4 = 0 ;
2055 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2056 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2057 wxSize const &arg6_defvalue = wxDefaultSize ;
2058 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2059 long arg7 = (long) 0 ;
2060 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2061 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2062 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2063 wxString *arg9 = (wxString *) &arg9_defvalue ;
2064 bool result;
2065 bool temp4 = False ;
2066 wxPoint temp5 ;
2067 wxSize temp6 ;
2068 bool temp9 = False ;
2069 PyObject * obj0 = 0 ;
2070 PyObject * obj1 = 0 ;
2071 PyObject * obj2 = 0 ;
2072 PyObject * obj3 = 0 ;
2073 PyObject * obj4 = 0 ;
2074 PyObject * obj5 = 0 ;
2075 PyObject * obj6 = 0 ;
2076 PyObject * obj7 = 0 ;
2077 PyObject * obj8 = 0 ;
2078 char *kwnames[] = {
2079 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2080 };
2081
2082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2085 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2087 arg3 = (int) SWIG_AsInt(obj2);
2088 if (PyErr_Occurred()) SWIG_fail;
2089 {
2090 arg4 = wxString_in_helper(obj3);
2091 if (arg4 == NULL) SWIG_fail;
2092 temp4 = True;
2093 }
2094 if (obj4) {
2095 {
2096 arg5 = &temp5;
2097 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2098 }
2099 }
2100 if (obj5) {
2101 {
2102 arg6 = &temp6;
2103 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2104 }
2105 }
2106 if (obj6) {
2107 arg7 = (long) SWIG_AsLong(obj6);
2108 if (PyErr_Occurred()) SWIG_fail;
2109 }
2110 if (obj7) {
2111 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2112 SWIG_POINTER_EXCEPTION | 0)) == -1)
2113 SWIG_fail;
2114 if (arg8 == NULL) {
2115 PyErr_SetString(PyExc_TypeError,"null reference");
2116 SWIG_fail;
2117 }
2118 }
2119 if (obj8) {
2120 {
2121 arg9 = wxString_in_helper(obj8);
2122 if (arg9 == NULL) SWIG_fail;
2123 temp9 = True;
2124 }
2125 }
2126 {
2127 PyThreadState* __tstate = wxPyBeginAllowThreads();
2128 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2129
2130 wxPyEndAllowThreads(__tstate);
2131 if (PyErr_Occurred()) SWIG_fail;
2132 }
2133 {
2134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2135 }
2136 {
2137 if (temp4)
2138 delete arg4;
2139 }
2140 {
2141 if (temp9)
2142 delete arg9;
2143 }
2144 return resultobj;
2145 fail:
2146 {
2147 if (temp4)
2148 delete arg4;
2149 }
2150 {
2151 if (temp9)
2152 delete arg9;
2153 }
2154 return NULL;
2155 }
2156
2157
2158 static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2159 PyObject *resultobj;
2160 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2161 bool result;
2162 PyObject * obj0 = 0 ;
2163 char *kwnames[] = {
2164 (char *) "self", NULL
2165 };
2166
2167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2170 {
2171 PyThreadState* __tstate = wxPyBeginAllowThreads();
2172 result = (bool)(arg1)->GetValue();
2173
2174 wxPyEndAllowThreads(__tstate);
2175 if (PyErr_Occurred()) SWIG_fail;
2176 }
2177 {
2178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2179 }
2180 return resultobj;
2181 fail:
2182 return NULL;
2183 }
2184
2185
2186 static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
2187 PyObject *resultobj;
2188 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2189 bool result;
2190 PyObject * obj0 = 0 ;
2191 char *kwnames[] = {
2192 (char *) "self", NULL
2193 };
2194
2195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2198 {
2199 PyThreadState* __tstate = wxPyBeginAllowThreads();
2200 result = (bool)(arg1)->IsChecked();
2201
2202 wxPyEndAllowThreads(__tstate);
2203 if (PyErr_Occurred()) SWIG_fail;
2204 }
2205 {
2206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2207 }
2208 return resultobj;
2209 fail:
2210 return NULL;
2211 }
2212
2213
2214 static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2215 PyObject *resultobj;
2216 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2217 bool arg2 ;
2218 PyObject * obj0 = 0 ;
2219 PyObject * obj1 = 0 ;
2220 char *kwnames[] = {
2221 (char *) "self",(char *) "state", NULL
2222 };
2223
2224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2227 arg2 = (bool const) SWIG_AsBool(obj1);
2228 if (PyErr_Occurred()) SWIG_fail;
2229 {
2230 PyThreadState* __tstate = wxPyBeginAllowThreads();
2231 (arg1)->SetValue(arg2);
2232
2233 wxPyEndAllowThreads(__tstate);
2234 if (PyErr_Occurred()) SWIG_fail;
2235 }
2236 Py_INCREF(Py_None); resultobj = Py_None;
2237 return resultobj;
2238 fail:
2239 return NULL;
2240 }
2241
2242
2243 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2244 PyObject *resultobj;
2245 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2246 int result;
2247 PyObject * obj0 = 0 ;
2248 char *kwnames[] = {
2249 (char *) "self", NULL
2250 };
2251
2252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2255 {
2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
2257 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2258
2259 wxPyEndAllowThreads(__tstate);
2260 if (PyErr_Occurred()) SWIG_fail;
2261 }
2262 resultobj = SWIG_FromInt((int)result);
2263 return resultobj;
2264 fail:
2265 return NULL;
2266 }
2267
2268
2269 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2270 PyObject *resultobj;
2271 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2272 int arg2 ;
2273 PyObject * obj0 = 0 ;
2274 PyObject * obj1 = 0 ;
2275 char *kwnames[] = {
2276 (char *) "self",(char *) "state", NULL
2277 };
2278
2279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2282 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2283 if (PyErr_Occurred()) SWIG_fail;
2284 {
2285 PyThreadState* __tstate = wxPyBeginAllowThreads();
2286 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2287
2288 wxPyEndAllowThreads(__tstate);
2289 if (PyErr_Occurred()) SWIG_fail;
2290 }
2291 Py_INCREF(Py_None); resultobj = Py_None;
2292 return resultobj;
2293 fail:
2294 return NULL;
2295 }
2296
2297
2298 static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) {
2299 PyObject *resultobj;
2300 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2301 bool result;
2302 PyObject * obj0 = 0 ;
2303 char *kwnames[] = {
2304 (char *) "self", NULL
2305 };
2306
2307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2310 {
2311 PyThreadState* __tstate = wxPyBeginAllowThreads();
2312 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2313
2314 wxPyEndAllowThreads(__tstate);
2315 if (PyErr_Occurred()) SWIG_fail;
2316 }
2317 {
2318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2319 }
2320 return resultobj;
2321 fail:
2322 return NULL;
2323 }
2324
2325
2326 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) {
2327 PyObject *resultobj;
2328 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2329 bool result;
2330 PyObject * obj0 = 0 ;
2331 char *kwnames[] = {
2332 (char *) "self", NULL
2333 };
2334
2335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2338 {
2339 PyThreadState* __tstate = wxPyBeginAllowThreads();
2340 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2341
2342 wxPyEndAllowThreads(__tstate);
2343 if (PyErr_Occurred()) SWIG_fail;
2344 }
2345 {
2346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2347 }
2348 return resultobj;
2349 fail:
2350 return NULL;
2351 }
2352
2353
2354 static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) {
2355 PyObject *obj;
2356 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2357 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2358 Py_INCREF(obj);
2359 return Py_BuildValue((char *)"");
2360 }
2361 static int _wrap_ChoiceNameStr_set(PyObject *) {
2362 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2363 return 1;
2364 }
2365
2366
2367 static PyObject *_wrap_ChoiceNameStr_get() {
2368 PyObject *pyobj;
2369
2370 {
2371 #if wxUSE_UNICODE
2372 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2373 #else
2374 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2375 #endif
2376 }
2377 return pyobj;
2378 }
2379
2380
2381 static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) {
2382 PyObject *resultobj;
2383 wxWindow *arg1 = (wxWindow *) 0 ;
2384 int arg2 ;
2385 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2386 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2387 wxSize const &arg4_defvalue = wxDefaultSize ;
2388 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2389 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2390 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2391 long arg6 = (long) 0 ;
2392 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2393 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2394 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2395 wxString *arg8 = (wxString *) &arg8_defvalue ;
2396 wxChoice *result;
2397 wxPoint temp3 ;
2398 wxSize temp4 ;
2399 bool temp5 = False ;
2400 bool temp8 = False ;
2401 PyObject * obj0 = 0 ;
2402 PyObject * obj1 = 0 ;
2403 PyObject * obj2 = 0 ;
2404 PyObject * obj3 = 0 ;
2405 PyObject * obj4 = 0 ;
2406 PyObject * obj5 = 0 ;
2407 PyObject * obj6 = 0 ;
2408 PyObject * obj7 = 0 ;
2409 char *kwnames[] = {
2410 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2411 };
2412
2413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2416 arg2 = (int) SWIG_AsInt(obj1);
2417 if (PyErr_Occurred()) SWIG_fail;
2418 if (obj2) {
2419 {
2420 arg3 = &temp3;
2421 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2422 }
2423 }
2424 if (obj3) {
2425 {
2426 arg4 = &temp4;
2427 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2428 }
2429 }
2430 if (obj4) {
2431 {
2432 if (! PySequence_Check(obj4)) {
2433 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2434 SWIG_fail;
2435 }
2436 arg5 = new wxArrayString;
2437 temp5 = True;
2438 int i, len=PySequence_Length(obj4);
2439 for (i=0; i<len; i++) {
2440 PyObject* item = PySequence_GetItem(obj4, i);
2441 #if wxUSE_UNICODE
2442 PyObject* str = PyObject_Unicode(item);
2443 #else
2444 PyObject* str = PyObject_Str(item);
2445 #endif
2446 arg5->Add(Py2wxString(str));
2447 Py_DECREF(item);
2448 Py_DECREF(str);
2449 }
2450 }
2451 }
2452 if (obj5) {
2453 arg6 = (long) SWIG_AsLong(obj5);
2454 if (PyErr_Occurred()) SWIG_fail;
2455 }
2456 if (obj6) {
2457 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2458 SWIG_POINTER_EXCEPTION | 0)) == -1)
2459 SWIG_fail;
2460 if (arg7 == NULL) {
2461 PyErr_SetString(PyExc_TypeError,"null reference");
2462 SWIG_fail;
2463 }
2464 }
2465 if (obj7) {
2466 {
2467 arg8 = wxString_in_helper(obj7);
2468 if (arg8 == NULL) SWIG_fail;
2469 temp8 = True;
2470 }
2471 }
2472 {
2473 PyThreadState* __tstate = wxPyBeginAllowThreads();
2474 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2475
2476 wxPyEndAllowThreads(__tstate);
2477 if (PyErr_Occurred()) SWIG_fail;
2478 }
2479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2480 {
2481 if (temp5) delete arg5;
2482 }
2483 {
2484 if (temp8)
2485 delete arg8;
2486 }
2487 return resultobj;
2488 fail:
2489 {
2490 if (temp5) delete arg5;
2491 }
2492 {
2493 if (temp8)
2494 delete arg8;
2495 }
2496 return NULL;
2497 }
2498
2499
2500 static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) {
2501 PyObject *resultobj;
2502 wxChoice *result;
2503 char *kwnames[] = {
2504 NULL
2505 };
2506
2507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2508 {
2509 PyThreadState* __tstate = wxPyBeginAllowThreads();
2510 result = (wxChoice *)new wxChoice();
2511
2512 wxPyEndAllowThreads(__tstate);
2513 if (PyErr_Occurred()) SWIG_fail;
2514 }
2515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2516 return resultobj;
2517 fail:
2518 return NULL;
2519 }
2520
2521
2522 static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2523 PyObject *resultobj;
2524 wxChoice *arg1 = (wxChoice *) 0 ;
2525 wxWindow *arg2 = (wxWindow *) 0 ;
2526 int arg3 ;
2527 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2528 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2529 wxSize const &arg5_defvalue = wxDefaultSize ;
2530 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2531 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2532 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2533 long arg7 = (long) 0 ;
2534 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2535 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2536 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2537 wxString *arg9 = (wxString *) &arg9_defvalue ;
2538 bool result;
2539 wxPoint temp4 ;
2540 wxSize temp5 ;
2541 bool temp6 = False ;
2542 bool temp9 = False ;
2543 PyObject * obj0 = 0 ;
2544 PyObject * obj1 = 0 ;
2545 PyObject * obj2 = 0 ;
2546 PyObject * obj3 = 0 ;
2547 PyObject * obj4 = 0 ;
2548 PyObject * obj5 = 0 ;
2549 PyObject * obj6 = 0 ;
2550 PyObject * obj7 = 0 ;
2551 PyObject * obj8 = 0 ;
2552 char *kwnames[] = {
2553 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2554 };
2555
2556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2559 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2561 arg3 = (int) SWIG_AsInt(obj2);
2562 if (PyErr_Occurred()) SWIG_fail;
2563 if (obj3) {
2564 {
2565 arg4 = &temp4;
2566 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2567 }
2568 }
2569 if (obj4) {
2570 {
2571 arg5 = &temp5;
2572 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2573 }
2574 }
2575 if (obj5) {
2576 {
2577 if (! PySequence_Check(obj5)) {
2578 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2579 SWIG_fail;
2580 }
2581 arg6 = new wxArrayString;
2582 temp6 = True;
2583 int i, len=PySequence_Length(obj5);
2584 for (i=0; i<len; i++) {
2585 PyObject* item = PySequence_GetItem(obj5, i);
2586 #if wxUSE_UNICODE
2587 PyObject* str = PyObject_Unicode(item);
2588 #else
2589 PyObject* str = PyObject_Str(item);
2590 #endif
2591 arg6->Add(Py2wxString(str));
2592 Py_DECREF(item);
2593 Py_DECREF(str);
2594 }
2595 }
2596 }
2597 if (obj6) {
2598 arg7 = (long) SWIG_AsLong(obj6);
2599 if (PyErr_Occurred()) SWIG_fail;
2600 }
2601 if (obj7) {
2602 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2603 SWIG_POINTER_EXCEPTION | 0)) == -1)
2604 SWIG_fail;
2605 if (arg8 == NULL) {
2606 PyErr_SetString(PyExc_TypeError,"null reference");
2607 SWIG_fail;
2608 }
2609 }
2610 if (obj8) {
2611 {
2612 arg9 = wxString_in_helper(obj8);
2613 if (arg9 == NULL) SWIG_fail;
2614 temp9 = True;
2615 }
2616 }
2617 {
2618 PyThreadState* __tstate = wxPyBeginAllowThreads();
2619 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2620
2621 wxPyEndAllowThreads(__tstate);
2622 if (PyErr_Occurred()) SWIG_fail;
2623 }
2624 {
2625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2626 }
2627 {
2628 if (temp6) delete arg6;
2629 }
2630 {
2631 if (temp9)
2632 delete arg9;
2633 }
2634 return resultobj;
2635 fail:
2636 {
2637 if (temp6) delete arg6;
2638 }
2639 {
2640 if (temp9)
2641 delete arg9;
2642 }
2643 return NULL;
2644 }
2645
2646
2647 static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2648 PyObject *resultobj;
2649 wxChoice *arg1 = (wxChoice *) 0 ;
2650 int arg2 ;
2651 PyObject * obj0 = 0 ;
2652 PyObject * obj1 = 0 ;
2653 char *kwnames[] = {
2654 (char *) "self",(char *) "n", NULL
2655 };
2656
2657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2660 arg2 = (int const) SWIG_AsInt(obj1);
2661 if (PyErr_Occurred()) SWIG_fail;
2662 {
2663 PyThreadState* __tstate = wxPyBeginAllowThreads();
2664 (arg1)->SetSelection(arg2);
2665
2666 wxPyEndAllowThreads(__tstate);
2667 if (PyErr_Occurred()) SWIG_fail;
2668 }
2669 Py_INCREF(Py_None); resultobj = Py_None;
2670 return resultobj;
2671 fail:
2672 return NULL;
2673 }
2674
2675
2676 static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2677 PyObject *resultobj;
2678 wxChoice *arg1 = (wxChoice *) 0 ;
2679 wxString *arg2 = 0 ;
2680 bool temp2 = False ;
2681 PyObject * obj0 = 0 ;
2682 PyObject * obj1 = 0 ;
2683 char *kwnames[] = {
2684 (char *) "self",(char *) "string", NULL
2685 };
2686
2687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2690 {
2691 arg2 = wxString_in_helper(obj1);
2692 if (arg2 == NULL) SWIG_fail;
2693 temp2 = True;
2694 }
2695 {
2696 PyThreadState* __tstate = wxPyBeginAllowThreads();
2697 (arg1)->SetStringSelection((wxString const &)*arg2);
2698
2699 wxPyEndAllowThreads(__tstate);
2700 if (PyErr_Occurred()) SWIG_fail;
2701 }
2702 Py_INCREF(Py_None); resultobj = Py_None;
2703 {
2704 if (temp2)
2705 delete arg2;
2706 }
2707 return resultobj;
2708 fail:
2709 {
2710 if (temp2)
2711 delete arg2;
2712 }
2713 return NULL;
2714 }
2715
2716
2717 static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
2718 PyObject *resultobj;
2719 wxChoice *arg1 = (wxChoice *) 0 ;
2720 int arg2 ;
2721 wxString *arg3 = 0 ;
2722 bool temp3 = False ;
2723 PyObject * obj0 = 0 ;
2724 PyObject * obj1 = 0 ;
2725 PyObject * obj2 = 0 ;
2726 char *kwnames[] = {
2727 (char *) "self",(char *) "n",(char *) "string", NULL
2728 };
2729
2730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2733 arg2 = (int) SWIG_AsInt(obj1);
2734 if (PyErr_Occurred()) SWIG_fail;
2735 {
2736 arg3 = wxString_in_helper(obj2);
2737 if (arg3 == NULL) SWIG_fail;
2738 temp3 = True;
2739 }
2740 {
2741 PyThreadState* __tstate = wxPyBeginAllowThreads();
2742 (arg1)->SetString(arg2,(wxString const &)*arg3);
2743
2744 wxPyEndAllowThreads(__tstate);
2745 if (PyErr_Occurred()) SWIG_fail;
2746 }
2747 Py_INCREF(Py_None); resultobj = Py_None;
2748 {
2749 if (temp3)
2750 delete arg3;
2751 }
2752 return resultobj;
2753 fail:
2754 {
2755 if (temp3)
2756 delete arg3;
2757 }
2758 return NULL;
2759 }
2760
2761
2762 static PyObject * Choice_swigregister(PyObject *, PyObject *args) {
2763 PyObject *obj;
2764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2765 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2766 Py_INCREF(obj);
2767 return Py_BuildValue((char *)"");
2768 }
2769 static int _wrap_ComboBoxNameStr_set(PyObject *) {
2770 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2771 return 1;
2772 }
2773
2774
2775 static PyObject *_wrap_ComboBoxNameStr_get() {
2776 PyObject *pyobj;
2777
2778 {
2779 #if wxUSE_UNICODE
2780 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2781 #else
2782 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2783 #endif
2784 }
2785 return pyobj;
2786 }
2787
2788
2789 static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
2790 PyObject *resultobj;
2791 wxWindow *arg1 = (wxWindow *) 0 ;
2792 int arg2 ;
2793 wxString const &arg3_defvalue = wxPyEmptyString ;
2794 wxString *arg3 = (wxString *) &arg3_defvalue ;
2795 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2796 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2797 wxSize const &arg5_defvalue = wxDefaultSize ;
2798 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2799 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2800 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2801 long arg7 = (long) 0 ;
2802 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2803 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2804 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2805 wxString *arg9 = (wxString *) &arg9_defvalue ;
2806 wxComboBox *result;
2807 bool temp3 = False ;
2808 wxPoint temp4 ;
2809 wxSize temp5 ;
2810 bool temp6 = False ;
2811 bool temp9 = False ;
2812 PyObject * obj0 = 0 ;
2813 PyObject * obj1 = 0 ;
2814 PyObject * obj2 = 0 ;
2815 PyObject * obj3 = 0 ;
2816 PyObject * obj4 = 0 ;
2817 PyObject * obj5 = 0 ;
2818 PyObject * obj6 = 0 ;
2819 PyObject * obj7 = 0 ;
2820 PyObject * obj8 = 0 ;
2821 char *kwnames[] = {
2822 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2823 };
2824
2825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2828 arg2 = (int) SWIG_AsInt(obj1);
2829 if (PyErr_Occurred()) SWIG_fail;
2830 if (obj2) {
2831 {
2832 arg3 = wxString_in_helper(obj2);
2833 if (arg3 == NULL) SWIG_fail;
2834 temp3 = True;
2835 }
2836 }
2837 if (obj3) {
2838 {
2839 arg4 = &temp4;
2840 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2841 }
2842 }
2843 if (obj4) {
2844 {
2845 arg5 = &temp5;
2846 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2847 }
2848 }
2849 if (obj5) {
2850 {
2851 if (! PySequence_Check(obj5)) {
2852 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2853 SWIG_fail;
2854 }
2855 arg6 = new wxArrayString;
2856 temp6 = True;
2857 int i, len=PySequence_Length(obj5);
2858 for (i=0; i<len; i++) {
2859 PyObject* item = PySequence_GetItem(obj5, i);
2860 #if wxUSE_UNICODE
2861 PyObject* str = PyObject_Unicode(item);
2862 #else
2863 PyObject* str = PyObject_Str(item);
2864 #endif
2865 arg6->Add(Py2wxString(str));
2866 Py_DECREF(item);
2867 Py_DECREF(str);
2868 }
2869 }
2870 }
2871 if (obj6) {
2872 arg7 = (long) SWIG_AsLong(obj6);
2873 if (PyErr_Occurred()) SWIG_fail;
2874 }
2875 if (obj7) {
2876 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2877 SWIG_POINTER_EXCEPTION | 0)) == -1)
2878 SWIG_fail;
2879 if (arg8 == NULL) {
2880 PyErr_SetString(PyExc_TypeError,"null reference");
2881 SWIG_fail;
2882 }
2883 }
2884 if (obj8) {
2885 {
2886 arg9 = wxString_in_helper(obj8);
2887 if (arg9 == NULL) SWIG_fail;
2888 temp9 = True;
2889 }
2890 }
2891 {
2892 PyThreadState* __tstate = wxPyBeginAllowThreads();
2893 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);
2894
2895 wxPyEndAllowThreads(__tstate);
2896 if (PyErr_Occurred()) SWIG_fail;
2897 }
2898 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
2899 {
2900 if (temp3)
2901 delete arg3;
2902 }
2903 {
2904 if (temp6) delete arg6;
2905 }
2906 {
2907 if (temp9)
2908 delete arg9;
2909 }
2910 return resultobj;
2911 fail:
2912 {
2913 if (temp3)
2914 delete arg3;
2915 }
2916 {
2917 if (temp6) delete arg6;
2918 }
2919 {
2920 if (temp9)
2921 delete arg9;
2922 }
2923 return NULL;
2924 }
2925
2926
2927 static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
2928 PyObject *resultobj;
2929 wxComboBox *result;
2930 char *kwnames[] = {
2931 NULL
2932 };
2933
2934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
2935 {
2936 PyThreadState* __tstate = wxPyBeginAllowThreads();
2937 result = (wxComboBox *)new wxComboBox();
2938
2939 wxPyEndAllowThreads(__tstate);
2940 if (PyErr_Occurred()) SWIG_fail;
2941 }
2942 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
2943 return resultobj;
2944 fail:
2945 return NULL;
2946 }
2947
2948
2949 static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2950 PyObject *resultobj;
2951 wxComboBox *arg1 = (wxComboBox *) 0 ;
2952 wxWindow *arg2 = (wxWindow *) 0 ;
2953 int arg3 ;
2954 wxString const &arg4_defvalue = wxPyEmptyString ;
2955 wxString *arg4 = (wxString *) &arg4_defvalue ;
2956 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2957 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2958 wxSize const &arg6_defvalue = wxDefaultSize ;
2959 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2960 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
2961 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
2962 long arg8 = (long) 0 ;
2963 wxValidator const &arg9_defvalue = wxDefaultValidator ;
2964 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
2965 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
2966 wxString *arg10 = (wxString *) &arg10_defvalue ;
2967 bool result;
2968 bool temp4 = False ;
2969 wxPoint temp5 ;
2970 wxSize temp6 ;
2971 bool temp7 = False ;
2972 bool temp10 = False ;
2973 PyObject * obj0 = 0 ;
2974 PyObject * obj1 = 0 ;
2975 PyObject * obj2 = 0 ;
2976 PyObject * obj3 = 0 ;
2977 PyObject * obj4 = 0 ;
2978 PyObject * obj5 = 0 ;
2979 PyObject * obj6 = 0 ;
2980 PyObject * obj7 = 0 ;
2981 PyObject * obj8 = 0 ;
2982 PyObject * obj9 = 0 ;
2983 char *kwnames[] = {
2984 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2985 };
2986
2987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
2988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
2989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2990 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2992 arg3 = (int) SWIG_AsInt(obj2);
2993 if (PyErr_Occurred()) SWIG_fail;
2994 if (obj3) {
2995 {
2996 arg4 = wxString_in_helper(obj3);
2997 if (arg4 == NULL) SWIG_fail;
2998 temp4 = True;
2999 }
3000 }
3001 if (obj4) {
3002 {
3003 arg5 = &temp5;
3004 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3005 }
3006 }
3007 if (obj5) {
3008 {
3009 arg6 = &temp6;
3010 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3011 }
3012 }
3013 if (obj6) {
3014 {
3015 if (! PySequence_Check(obj6)) {
3016 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3017 SWIG_fail;
3018 }
3019 arg7 = new wxArrayString;
3020 temp7 = True;
3021 int i, len=PySequence_Length(obj6);
3022 for (i=0; i<len; i++) {
3023 PyObject* item = PySequence_GetItem(obj6, i);
3024 #if wxUSE_UNICODE
3025 PyObject* str = PyObject_Unicode(item);
3026 #else
3027 PyObject* str = PyObject_Str(item);
3028 #endif
3029 arg7->Add(Py2wxString(str));
3030 Py_DECREF(item);
3031 Py_DECREF(str);
3032 }
3033 }
3034 }
3035 if (obj7) {
3036 arg8 = (long) SWIG_AsLong(obj7);
3037 if (PyErr_Occurred()) SWIG_fail;
3038 }
3039 if (obj8) {
3040 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3041 SWIG_POINTER_EXCEPTION | 0)) == -1)
3042 SWIG_fail;
3043 if (arg9 == NULL) {
3044 PyErr_SetString(PyExc_TypeError,"null reference");
3045 SWIG_fail;
3046 }
3047 }
3048 if (obj9) {
3049 {
3050 arg10 = wxString_in_helper(obj9);
3051 if (arg10 == NULL) SWIG_fail;
3052 temp10 = True;
3053 }
3054 }
3055 {
3056 PyThreadState* __tstate = wxPyBeginAllowThreads();
3057 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);
3058
3059 wxPyEndAllowThreads(__tstate);
3060 if (PyErr_Occurred()) SWIG_fail;
3061 }
3062 {
3063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3064 }
3065 {
3066 if (temp4)
3067 delete arg4;
3068 }
3069 {
3070 if (temp7) delete arg7;
3071 }
3072 {
3073 if (temp10)
3074 delete arg10;
3075 }
3076 return resultobj;
3077 fail:
3078 {
3079 if (temp4)
3080 delete arg4;
3081 }
3082 {
3083 if (temp7) delete arg7;
3084 }
3085 {
3086 if (temp10)
3087 delete arg10;
3088 }
3089 return NULL;
3090 }
3091
3092
3093 static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3094 PyObject *resultobj;
3095 wxComboBox *arg1 = (wxComboBox *) 0 ;
3096 wxString result;
3097 PyObject * obj0 = 0 ;
3098 char *kwnames[] = {
3099 (char *) "self", NULL
3100 };
3101
3102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3105 {
3106 PyThreadState* __tstate = wxPyBeginAllowThreads();
3107 result = ((wxComboBox const *)arg1)->GetValue();
3108
3109 wxPyEndAllowThreads(__tstate);
3110 if (PyErr_Occurred()) SWIG_fail;
3111 }
3112 {
3113 #if wxUSE_UNICODE
3114 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3115 #else
3116 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3117 #endif
3118 }
3119 return resultobj;
3120 fail:
3121 return NULL;
3122 }
3123
3124
3125 static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3126 PyObject *resultobj;
3127 wxComboBox *arg1 = (wxComboBox *) 0 ;
3128 wxString *arg2 = 0 ;
3129 bool temp2 = False ;
3130 PyObject * obj0 = 0 ;
3131 PyObject * obj1 = 0 ;
3132 char *kwnames[] = {
3133 (char *) "self",(char *) "value", NULL
3134 };
3135
3136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3139 {
3140 arg2 = wxString_in_helper(obj1);
3141 if (arg2 == NULL) SWIG_fail;
3142 temp2 = True;
3143 }
3144 {
3145 PyThreadState* __tstate = wxPyBeginAllowThreads();
3146 (arg1)->SetValue((wxString const &)*arg2);
3147
3148 wxPyEndAllowThreads(__tstate);
3149 if (PyErr_Occurred()) SWIG_fail;
3150 }
3151 Py_INCREF(Py_None); resultobj = Py_None;
3152 {
3153 if (temp2)
3154 delete arg2;
3155 }
3156 return resultobj;
3157 fail:
3158 {
3159 if (temp2)
3160 delete arg2;
3161 }
3162 return NULL;
3163 }
3164
3165
3166 static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
3167 PyObject *resultobj;
3168 wxComboBox *arg1 = (wxComboBox *) 0 ;
3169 PyObject * obj0 = 0 ;
3170 char *kwnames[] = {
3171 (char *) "self", NULL
3172 };
3173
3174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3177 {
3178 PyThreadState* __tstate = wxPyBeginAllowThreads();
3179 (arg1)->Copy();
3180
3181 wxPyEndAllowThreads(__tstate);
3182 if (PyErr_Occurred()) SWIG_fail;
3183 }
3184 Py_INCREF(Py_None); resultobj = Py_None;
3185 return resultobj;
3186 fail:
3187 return NULL;
3188 }
3189
3190
3191 static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
3192 PyObject *resultobj;
3193 wxComboBox *arg1 = (wxComboBox *) 0 ;
3194 PyObject * obj0 = 0 ;
3195 char *kwnames[] = {
3196 (char *) "self", NULL
3197 };
3198
3199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3202 {
3203 PyThreadState* __tstate = wxPyBeginAllowThreads();
3204 (arg1)->Cut();
3205
3206 wxPyEndAllowThreads(__tstate);
3207 if (PyErr_Occurred()) SWIG_fail;
3208 }
3209 Py_INCREF(Py_None); resultobj = Py_None;
3210 return resultobj;
3211 fail:
3212 return NULL;
3213 }
3214
3215
3216 static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
3217 PyObject *resultobj;
3218 wxComboBox *arg1 = (wxComboBox *) 0 ;
3219 PyObject * obj0 = 0 ;
3220 char *kwnames[] = {
3221 (char *) "self", NULL
3222 };
3223
3224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3227 {
3228 PyThreadState* __tstate = wxPyBeginAllowThreads();
3229 (arg1)->Paste();
3230
3231 wxPyEndAllowThreads(__tstate);
3232 if (PyErr_Occurred()) SWIG_fail;
3233 }
3234 Py_INCREF(Py_None); resultobj = Py_None;
3235 return resultobj;
3236 fail:
3237 return NULL;
3238 }
3239
3240
3241 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3242 PyObject *resultobj;
3243 wxComboBox *arg1 = (wxComboBox *) 0 ;
3244 long arg2 ;
3245 PyObject * obj0 = 0 ;
3246 PyObject * obj1 = 0 ;
3247 char *kwnames[] = {
3248 (char *) "self",(char *) "pos", NULL
3249 };
3250
3251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3254 arg2 = (long) SWIG_AsLong(obj1);
3255 if (PyErr_Occurred()) SWIG_fail;
3256 {
3257 PyThreadState* __tstate = wxPyBeginAllowThreads();
3258 (arg1)->SetInsertionPoint(arg2);
3259
3260 wxPyEndAllowThreads(__tstate);
3261 if (PyErr_Occurred()) SWIG_fail;
3262 }
3263 Py_INCREF(Py_None); resultobj = Py_None;
3264 return resultobj;
3265 fail:
3266 return NULL;
3267 }
3268
3269
3270 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3271 PyObject *resultobj;
3272 wxComboBox *arg1 = (wxComboBox *) 0 ;
3273 long result;
3274 PyObject * obj0 = 0 ;
3275 char *kwnames[] = {
3276 (char *) "self", NULL
3277 };
3278
3279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3282 {
3283 PyThreadState* __tstate = wxPyBeginAllowThreads();
3284 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3285
3286 wxPyEndAllowThreads(__tstate);
3287 if (PyErr_Occurred()) SWIG_fail;
3288 }
3289 resultobj = SWIG_FromLong((long)result);
3290 return resultobj;
3291 fail:
3292 return NULL;
3293 }
3294
3295
3296 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3297 PyObject *resultobj;
3298 wxComboBox *arg1 = (wxComboBox *) 0 ;
3299 long result;
3300 PyObject * obj0 = 0 ;
3301 char *kwnames[] = {
3302 (char *) "self", NULL
3303 };
3304
3305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3308 {
3309 PyThreadState* __tstate = wxPyBeginAllowThreads();
3310 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3311
3312 wxPyEndAllowThreads(__tstate);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 }
3315 resultobj = SWIG_FromLong((long)result);
3316 return resultobj;
3317 fail:
3318 return NULL;
3319 }
3320
3321
3322 static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
3323 PyObject *resultobj;
3324 wxComboBox *arg1 = (wxComboBox *) 0 ;
3325 long arg2 ;
3326 long arg3 ;
3327 wxString *arg4 = 0 ;
3328 bool temp4 = False ;
3329 PyObject * obj0 = 0 ;
3330 PyObject * obj1 = 0 ;
3331 PyObject * obj2 = 0 ;
3332 PyObject * obj3 = 0 ;
3333 char *kwnames[] = {
3334 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3335 };
3336
3337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3340 arg2 = (long) SWIG_AsLong(obj1);
3341 if (PyErr_Occurred()) SWIG_fail;
3342 arg3 = (long) SWIG_AsLong(obj2);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 {
3345 arg4 = wxString_in_helper(obj3);
3346 if (arg4 == NULL) SWIG_fail;
3347 temp4 = True;
3348 }
3349 {
3350 PyThreadState* __tstate = wxPyBeginAllowThreads();
3351 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3352
3353 wxPyEndAllowThreads(__tstate);
3354 if (PyErr_Occurred()) SWIG_fail;
3355 }
3356 Py_INCREF(Py_None); resultobj = Py_None;
3357 {
3358 if (temp4)
3359 delete arg4;
3360 }
3361 return resultobj;
3362 fail:
3363 {
3364 if (temp4)
3365 delete arg4;
3366 }
3367 return NULL;
3368 }
3369
3370
3371 static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3372 PyObject *resultobj;
3373 wxComboBox *arg1 = (wxComboBox *) 0 ;
3374 int arg2 ;
3375 PyObject * obj0 = 0 ;
3376 PyObject * obj1 = 0 ;
3377 char *kwnames[] = {
3378 (char *) "self",(char *) "n", NULL
3379 };
3380
3381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3384 arg2 = (int) SWIG_AsInt(obj1);
3385 if (PyErr_Occurred()) SWIG_fail;
3386 {
3387 PyThreadState* __tstate = wxPyBeginAllowThreads();
3388 (arg1)->SetSelection(arg2);
3389
3390 wxPyEndAllowThreads(__tstate);
3391 if (PyErr_Occurred()) SWIG_fail;
3392 }
3393 Py_INCREF(Py_None); resultobj = Py_None;
3394 return resultobj;
3395 fail:
3396 return NULL;
3397 }
3398
3399
3400 static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) {
3401 PyObject *resultobj;
3402 wxComboBox *arg1 = (wxComboBox *) 0 ;
3403 long arg2 ;
3404 long arg3 ;
3405 PyObject * obj0 = 0 ;
3406 PyObject * obj1 = 0 ;
3407 PyObject * obj2 = 0 ;
3408 char *kwnames[] = {
3409 (char *) "self",(char *) "from",(char *) "to", NULL
3410 };
3411
3412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3415 arg2 = (long) SWIG_AsLong(obj1);
3416 if (PyErr_Occurred()) SWIG_fail;
3417 arg3 = (long) SWIG_AsLong(obj2);
3418 if (PyErr_Occurred()) SWIG_fail;
3419 {
3420 PyThreadState* __tstate = wxPyBeginAllowThreads();
3421 (arg1)->SetSelection(arg2,arg3);
3422
3423 wxPyEndAllowThreads(__tstate);
3424 if (PyErr_Occurred()) SWIG_fail;
3425 }
3426 Py_INCREF(Py_None); resultobj = Py_None;
3427 return resultobj;
3428 fail:
3429 return NULL;
3430 }
3431
3432
3433 static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3434 PyObject *resultobj;
3435 wxComboBox *arg1 = (wxComboBox *) 0 ;
3436 bool arg2 ;
3437 PyObject * obj0 = 0 ;
3438 PyObject * obj1 = 0 ;
3439 char *kwnames[] = {
3440 (char *) "self",(char *) "editable", NULL
3441 };
3442
3443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3446 arg2 = (bool) SWIG_AsBool(obj1);
3447 if (PyErr_Occurred()) SWIG_fail;
3448 {
3449 PyThreadState* __tstate = wxPyBeginAllowThreads();
3450 (arg1)->SetEditable(arg2);
3451
3452 wxPyEndAllowThreads(__tstate);
3453 if (PyErr_Occurred()) SWIG_fail;
3454 }
3455 Py_INCREF(Py_None); resultobj = Py_None;
3456 return resultobj;
3457 fail:
3458 return NULL;
3459 }
3460
3461
3462 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
3463 PyObject *resultobj;
3464 wxComboBox *arg1 = (wxComboBox *) 0 ;
3465 PyObject * obj0 = 0 ;
3466 char *kwnames[] = {
3467 (char *) "self", NULL
3468 };
3469
3470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3473 {
3474 PyThreadState* __tstate = wxPyBeginAllowThreads();
3475 (arg1)->SetInsertionPointEnd();
3476
3477 wxPyEndAllowThreads(__tstate);
3478 if (PyErr_Occurred()) SWIG_fail;
3479 }
3480 Py_INCREF(Py_None); resultobj = Py_None;
3481 return resultobj;
3482 fail:
3483 return NULL;
3484 }
3485
3486
3487 static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
3488 PyObject *resultobj;
3489 wxComboBox *arg1 = (wxComboBox *) 0 ;
3490 long arg2 ;
3491 long arg3 ;
3492 PyObject * obj0 = 0 ;
3493 PyObject * obj1 = 0 ;
3494 PyObject * obj2 = 0 ;
3495 char *kwnames[] = {
3496 (char *) "self",(char *) "from",(char *) "to", NULL
3497 };
3498
3499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3502 arg2 = (long) SWIG_AsLong(obj1);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 arg3 = (long) SWIG_AsLong(obj2);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 {
3507 PyThreadState* __tstate = wxPyBeginAllowThreads();
3508 (arg1)->Remove(arg2,arg3);
3509
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) SWIG_fail;
3512 }
3513 Py_INCREF(Py_None); resultobj = Py_None;
3514 return resultobj;
3515 fail:
3516 return NULL;
3517 }
3518
3519
3520 static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) {
3521 PyObject *obj;
3522 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3523 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3524 Py_INCREF(obj);
3525 return Py_BuildValue((char *)"");
3526 }
3527 static int _wrap_GaugeNameStr_set(PyObject *) {
3528 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3529 return 1;
3530 }
3531
3532
3533 static PyObject *_wrap_GaugeNameStr_get() {
3534 PyObject *pyobj;
3535
3536 {
3537 #if wxUSE_UNICODE
3538 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3539 #else
3540 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3541 #endif
3542 }
3543 return pyobj;
3544 }
3545
3546
3547 static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) {
3548 PyObject *resultobj;
3549 wxWindow *arg1 = (wxWindow *) 0 ;
3550 int arg2 ;
3551 int arg3 ;
3552 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3553 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3554 wxSize const &arg5_defvalue = wxDefaultSize ;
3555 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3556 long arg6 = (long) wxGA_HORIZONTAL ;
3557 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3558 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3559 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3560 wxString *arg8 = (wxString *) &arg8_defvalue ;
3561 wxGauge *result;
3562 wxPoint temp4 ;
3563 wxSize temp5 ;
3564 bool temp8 = False ;
3565 PyObject * obj0 = 0 ;
3566 PyObject * obj1 = 0 ;
3567 PyObject * obj2 = 0 ;
3568 PyObject * obj3 = 0 ;
3569 PyObject * obj4 = 0 ;
3570 PyObject * obj5 = 0 ;
3571 PyObject * obj6 = 0 ;
3572 PyObject * obj7 = 0 ;
3573 char *kwnames[] = {
3574 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3575 };
3576
3577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3580 arg2 = (int) SWIG_AsInt(obj1);
3581 if (PyErr_Occurred()) SWIG_fail;
3582 arg3 = (int) SWIG_AsInt(obj2);
3583 if (PyErr_Occurred()) SWIG_fail;
3584 if (obj3) {
3585 {
3586 arg4 = &temp4;
3587 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3588 }
3589 }
3590 if (obj4) {
3591 {
3592 arg5 = &temp5;
3593 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3594 }
3595 }
3596 if (obj5) {
3597 arg6 = (long) SWIG_AsLong(obj5);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 if (obj6) {
3601 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3602 SWIG_POINTER_EXCEPTION | 0)) == -1)
3603 SWIG_fail;
3604 if (arg7 == NULL) {
3605 PyErr_SetString(PyExc_TypeError,"null reference");
3606 SWIG_fail;
3607 }
3608 }
3609 if (obj7) {
3610 {
3611 arg8 = wxString_in_helper(obj7);
3612 if (arg8 == NULL) SWIG_fail;
3613 temp8 = True;
3614 }
3615 }
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3624 {
3625 if (temp8)
3626 delete arg8;
3627 }
3628 return resultobj;
3629 fail:
3630 {
3631 if (temp8)
3632 delete arg8;
3633 }
3634 return NULL;
3635 }
3636
3637
3638 static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) {
3639 PyObject *resultobj;
3640 wxGauge *result;
3641 char *kwnames[] = {
3642 NULL
3643 };
3644
3645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3646 {
3647 PyThreadState* __tstate = wxPyBeginAllowThreads();
3648 result = (wxGauge *)new wxGauge();
3649
3650 wxPyEndAllowThreads(__tstate);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 }
3653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3654 return resultobj;
3655 fail:
3656 return NULL;
3657 }
3658
3659
3660 static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) {
3661 PyObject *resultobj;
3662 wxGauge *arg1 = (wxGauge *) 0 ;
3663 wxWindow *arg2 = (wxWindow *) 0 ;
3664 int arg3 ;
3665 int arg4 ;
3666 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3667 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3668 wxSize const &arg6_defvalue = wxDefaultSize ;
3669 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3670 long arg7 = (long) wxGA_HORIZONTAL ;
3671 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3672 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3673 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3674 wxString *arg9 = (wxString *) &arg9_defvalue ;
3675 bool result;
3676 wxPoint temp5 ;
3677 wxSize temp6 ;
3678 bool temp9 = False ;
3679 PyObject * obj0 = 0 ;
3680 PyObject * obj1 = 0 ;
3681 PyObject * obj2 = 0 ;
3682 PyObject * obj3 = 0 ;
3683 PyObject * obj4 = 0 ;
3684 PyObject * obj5 = 0 ;
3685 PyObject * obj6 = 0 ;
3686 PyObject * obj7 = 0 ;
3687 PyObject * obj8 = 0 ;
3688 char *kwnames[] = {
3689 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3690 };
3691
3692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3695 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3697 arg3 = (int) SWIG_AsInt(obj2);
3698 if (PyErr_Occurred()) SWIG_fail;
3699 arg4 = (int) SWIG_AsInt(obj3);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 if (obj4) {
3702 {
3703 arg5 = &temp5;
3704 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3705 }
3706 }
3707 if (obj5) {
3708 {
3709 arg6 = &temp6;
3710 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3711 }
3712 }
3713 if (obj6) {
3714 arg7 = (long) SWIG_AsLong(obj6);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 if (obj7) {
3718 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3719 SWIG_POINTER_EXCEPTION | 0)) == -1)
3720 SWIG_fail;
3721 if (arg8 == NULL) {
3722 PyErr_SetString(PyExc_TypeError,"null reference");
3723 SWIG_fail;
3724 }
3725 }
3726 if (obj8) {
3727 {
3728 arg9 = wxString_in_helper(obj8);
3729 if (arg9 == NULL) SWIG_fail;
3730 temp9 = True;
3731 }
3732 }
3733 {
3734 PyThreadState* __tstate = wxPyBeginAllowThreads();
3735 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3736
3737 wxPyEndAllowThreads(__tstate);
3738 if (PyErr_Occurred()) SWIG_fail;
3739 }
3740 {
3741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3742 }
3743 {
3744 if (temp9)
3745 delete arg9;
3746 }
3747 return resultobj;
3748 fail:
3749 {
3750 if (temp9)
3751 delete arg9;
3752 }
3753 return NULL;
3754 }
3755
3756
3757 static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
3758 PyObject *resultobj;
3759 wxGauge *arg1 = (wxGauge *) 0 ;
3760 int arg2 ;
3761 PyObject * obj0 = 0 ;
3762 PyObject * obj1 = 0 ;
3763 char *kwnames[] = {
3764 (char *) "self",(char *) "range", NULL
3765 };
3766
3767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
3768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3770 arg2 = (int) SWIG_AsInt(obj1);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 {
3773 PyThreadState* __tstate = wxPyBeginAllowThreads();
3774 (arg1)->SetRange(arg2);
3775
3776 wxPyEndAllowThreads(__tstate);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 Py_INCREF(Py_None); resultobj = Py_None;
3780 return resultobj;
3781 fail:
3782 return NULL;
3783 }
3784
3785
3786 static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
3787 PyObject *resultobj;
3788 wxGauge *arg1 = (wxGauge *) 0 ;
3789 int result;
3790 PyObject * obj0 = 0 ;
3791 char *kwnames[] = {
3792 (char *) "self", NULL
3793 };
3794
3795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
3796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3798 {
3799 PyThreadState* __tstate = wxPyBeginAllowThreads();
3800 result = (int)((wxGauge const *)arg1)->GetRange();
3801
3802 wxPyEndAllowThreads(__tstate);
3803 if (PyErr_Occurred()) SWIG_fail;
3804 }
3805 resultobj = SWIG_FromInt((int)result);
3806 return resultobj;
3807 fail:
3808 return NULL;
3809 }
3810
3811
3812 static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3813 PyObject *resultobj;
3814 wxGauge *arg1 = (wxGauge *) 0 ;
3815 int arg2 ;
3816 PyObject * obj0 = 0 ;
3817 PyObject * obj1 = 0 ;
3818 char *kwnames[] = {
3819 (char *) "self",(char *) "pos", NULL
3820 };
3821
3822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
3823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3825 arg2 = (int) SWIG_AsInt(obj1);
3826 if (PyErr_Occurred()) SWIG_fail;
3827 {
3828 PyThreadState* __tstate = wxPyBeginAllowThreads();
3829 (arg1)->SetValue(arg2);
3830
3831 wxPyEndAllowThreads(__tstate);
3832 if (PyErr_Occurred()) SWIG_fail;
3833 }
3834 Py_INCREF(Py_None); resultobj = Py_None;
3835 return resultobj;
3836 fail:
3837 return NULL;
3838 }
3839
3840
3841 static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3842 PyObject *resultobj;
3843 wxGauge *arg1 = (wxGauge *) 0 ;
3844 int result;
3845 PyObject * obj0 = 0 ;
3846 char *kwnames[] = {
3847 (char *) "self", NULL
3848 };
3849
3850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
3851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3853 {
3854 PyThreadState* __tstate = wxPyBeginAllowThreads();
3855 result = (int)((wxGauge const *)arg1)->GetValue();
3856
3857 wxPyEndAllowThreads(__tstate);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 }
3860 resultobj = SWIG_FromInt((int)result);
3861 return resultobj;
3862 fail:
3863 return NULL;
3864 }
3865
3866
3867 static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
3868 PyObject *resultobj;
3869 wxGauge *arg1 = (wxGauge *) 0 ;
3870 bool result;
3871 PyObject * obj0 = 0 ;
3872 char *kwnames[] = {
3873 (char *) "self", NULL
3874 };
3875
3876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
3877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3879 {
3880 PyThreadState* __tstate = wxPyBeginAllowThreads();
3881 result = (bool)((wxGauge const *)arg1)->IsVertical();
3882
3883 wxPyEndAllowThreads(__tstate);
3884 if (PyErr_Occurred()) SWIG_fail;
3885 }
3886 {
3887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3888 }
3889 return resultobj;
3890 fail:
3891 return NULL;
3892 }
3893
3894
3895 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3896 PyObject *resultobj;
3897 wxGauge *arg1 = (wxGauge *) 0 ;
3898 int arg2 ;
3899 PyObject * obj0 = 0 ;
3900 PyObject * obj1 = 0 ;
3901 char *kwnames[] = {
3902 (char *) "self",(char *) "w", NULL
3903 };
3904
3905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
3906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3908 arg2 = (int) SWIG_AsInt(obj1);
3909 if (PyErr_Occurred()) SWIG_fail;
3910 {
3911 PyThreadState* __tstate = wxPyBeginAllowThreads();
3912 (arg1)->SetShadowWidth(arg2);
3913
3914 wxPyEndAllowThreads(__tstate);
3915 if (PyErr_Occurred()) SWIG_fail;
3916 }
3917 Py_INCREF(Py_None); resultobj = Py_None;
3918 return resultobj;
3919 fail:
3920 return NULL;
3921 }
3922
3923
3924 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3925 PyObject *resultobj;
3926 wxGauge *arg1 = (wxGauge *) 0 ;
3927 int result;
3928 PyObject * obj0 = 0 ;
3929 char *kwnames[] = {
3930 (char *) "self", NULL
3931 };
3932
3933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
3934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3936 {
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
3939
3940 wxPyEndAllowThreads(__tstate);
3941 if (PyErr_Occurred()) SWIG_fail;
3942 }
3943 resultobj = SWIG_FromInt((int)result);
3944 return resultobj;
3945 fail:
3946 return NULL;
3947 }
3948
3949
3950 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
3951 PyObject *resultobj;
3952 wxGauge *arg1 = (wxGauge *) 0 ;
3953 int arg2 ;
3954 PyObject * obj0 = 0 ;
3955 PyObject * obj1 = 0 ;
3956 char *kwnames[] = {
3957 (char *) "self",(char *) "w", NULL
3958 };
3959
3960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
3961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3963 arg2 = (int) SWIG_AsInt(obj1);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 {
3966 PyThreadState* __tstate = wxPyBeginAllowThreads();
3967 (arg1)->SetBezelFace(arg2);
3968
3969 wxPyEndAllowThreads(__tstate);
3970 if (PyErr_Occurred()) SWIG_fail;
3971 }
3972 Py_INCREF(Py_None); resultobj = Py_None;
3973 return resultobj;
3974 fail:
3975 return NULL;
3976 }
3977
3978
3979 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
3980 PyObject *resultobj;
3981 wxGauge *arg1 = (wxGauge *) 0 ;
3982 int result;
3983 PyObject * obj0 = 0 ;
3984 char *kwnames[] = {
3985 (char *) "self", NULL
3986 };
3987
3988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
3989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3991 {
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 result = (int)((wxGauge const *)arg1)->GetBezelFace();
3994
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 resultobj = SWIG_FromInt((int)result);
3999 return resultobj;
4000 fail:
4001 return NULL;
4002 }
4003
4004
4005 static PyObject * Gauge_swigregister(PyObject *, PyObject *args) {
4006 PyObject *obj;
4007 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4008 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4009 Py_INCREF(obj);
4010 return Py_BuildValue((char *)"");
4011 }
4012 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
4013 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4014 return 1;
4015 }
4016
4017
4018 static PyObject *_wrap_StaticBitmapNameStr_get() {
4019 PyObject *pyobj;
4020
4021 {
4022 #if wxUSE_UNICODE
4023 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4024 #else
4025 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4026 #endif
4027 }
4028 return pyobj;
4029 }
4030
4031
4032 static int _wrap_StaticBoxNameStr_set(PyObject *) {
4033 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4034 return 1;
4035 }
4036
4037
4038 static PyObject *_wrap_StaticBoxNameStr_get() {
4039 PyObject *pyobj;
4040
4041 {
4042 #if wxUSE_UNICODE
4043 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4044 #else
4045 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4046 #endif
4047 }
4048 return pyobj;
4049 }
4050
4051
4052 static int _wrap_StaticTextNameStr_set(PyObject *) {
4053 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4054 return 1;
4055 }
4056
4057
4058 static PyObject *_wrap_StaticTextNameStr_get() {
4059 PyObject *pyobj;
4060
4061 {
4062 #if wxUSE_UNICODE
4063 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4064 #else
4065 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4066 #endif
4067 }
4068 return pyobj;
4069 }
4070
4071
4072 static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4073 PyObject *resultobj;
4074 wxWindow *arg1 = (wxWindow *) 0 ;
4075 int arg2 ;
4076 wxString *arg3 = 0 ;
4077 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4078 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4079 wxSize const &arg5_defvalue = wxDefaultSize ;
4080 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4081 long arg6 = (long) 0 ;
4082 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4083 wxString *arg7 = (wxString *) &arg7_defvalue ;
4084 wxStaticBox *result;
4085 bool temp3 = False ;
4086 wxPoint temp4 ;
4087 wxSize temp5 ;
4088 bool temp7 = False ;
4089 PyObject * obj0 = 0 ;
4090 PyObject * obj1 = 0 ;
4091 PyObject * obj2 = 0 ;
4092 PyObject * obj3 = 0 ;
4093 PyObject * obj4 = 0 ;
4094 PyObject * obj5 = 0 ;
4095 PyObject * obj6 = 0 ;
4096 char *kwnames[] = {
4097 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4098 };
4099
4100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4103 arg2 = (int) SWIG_AsInt(obj1);
4104 if (PyErr_Occurred()) SWIG_fail;
4105 {
4106 arg3 = wxString_in_helper(obj2);
4107 if (arg3 == NULL) SWIG_fail;
4108 temp3 = True;
4109 }
4110 if (obj3) {
4111 {
4112 arg4 = &temp4;
4113 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4114 }
4115 }
4116 if (obj4) {
4117 {
4118 arg5 = &temp5;
4119 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4120 }
4121 }
4122 if (obj5) {
4123 arg6 = (long) SWIG_AsLong(obj5);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 if (obj6) {
4127 {
4128 arg7 = wxString_in_helper(obj6);
4129 if (arg7 == NULL) SWIG_fail;
4130 temp7 = True;
4131 }
4132 }
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4136
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 {
4141 resultobj = wxPyMake_wxObject(result);
4142 }
4143 {
4144 if (temp3)
4145 delete arg3;
4146 }
4147 {
4148 if (temp7)
4149 delete arg7;
4150 }
4151 return resultobj;
4152 fail:
4153 {
4154 if (temp3)
4155 delete arg3;
4156 }
4157 {
4158 if (temp7)
4159 delete arg7;
4160 }
4161 return NULL;
4162 }
4163
4164
4165 static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4166 PyObject *resultobj;
4167 wxStaticBox *result;
4168 char *kwnames[] = {
4169 NULL
4170 };
4171
4172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4173 {
4174 PyThreadState* __tstate = wxPyBeginAllowThreads();
4175 result = (wxStaticBox *)new wxStaticBox();
4176
4177 wxPyEndAllowThreads(__tstate);
4178 if (PyErr_Occurred()) SWIG_fail;
4179 }
4180 {
4181 resultobj = wxPyMake_wxObject(result);
4182 }
4183 return resultobj;
4184 fail:
4185 return NULL;
4186 }
4187
4188
4189 static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4190 PyObject *resultobj;
4191 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4192 wxWindow *arg2 = (wxWindow *) 0 ;
4193 int arg3 ;
4194 wxString *arg4 = 0 ;
4195 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4196 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4197 wxSize const &arg6_defvalue = wxDefaultSize ;
4198 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4199 long arg7 = (long) 0 ;
4200 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4201 wxString *arg8 = (wxString *) &arg8_defvalue ;
4202 bool result;
4203 bool temp4 = False ;
4204 wxPoint temp5 ;
4205 wxSize temp6 ;
4206 bool temp8 = False ;
4207 PyObject * obj0 = 0 ;
4208 PyObject * obj1 = 0 ;
4209 PyObject * obj2 = 0 ;
4210 PyObject * obj3 = 0 ;
4211 PyObject * obj4 = 0 ;
4212 PyObject * obj5 = 0 ;
4213 PyObject * obj6 = 0 ;
4214 PyObject * obj7 = 0 ;
4215 char *kwnames[] = {
4216 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4217 };
4218
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4222 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4224 arg3 = (int) SWIG_AsInt(obj2);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 {
4227 arg4 = wxString_in_helper(obj3);
4228 if (arg4 == NULL) SWIG_fail;
4229 temp4 = True;
4230 }
4231 if (obj4) {
4232 {
4233 arg5 = &temp5;
4234 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4235 }
4236 }
4237 if (obj5) {
4238 {
4239 arg6 = &temp6;
4240 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4241 }
4242 }
4243 if (obj6) {
4244 arg7 = (long) SWIG_AsLong(obj6);
4245 if (PyErr_Occurred()) SWIG_fail;
4246 }
4247 if (obj7) {
4248 {
4249 arg8 = wxString_in_helper(obj7);
4250 if (arg8 == NULL) SWIG_fail;
4251 temp8 = True;
4252 }
4253 }
4254 {
4255 PyThreadState* __tstate = wxPyBeginAllowThreads();
4256 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4257
4258 wxPyEndAllowThreads(__tstate);
4259 if (PyErr_Occurred()) SWIG_fail;
4260 }
4261 {
4262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4263 }
4264 {
4265 if (temp4)
4266 delete arg4;
4267 }
4268 {
4269 if (temp8)
4270 delete arg8;
4271 }
4272 return resultobj;
4273 fail:
4274 {
4275 if (temp4)
4276 delete arg4;
4277 }
4278 {
4279 if (temp8)
4280 delete arg8;
4281 }
4282 return NULL;
4283 }
4284
4285
4286 static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) {
4287 PyObject *obj;
4288 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4289 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4290 Py_INCREF(obj);
4291 return Py_BuildValue((char *)"");
4292 }
4293 static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4294 PyObject *resultobj;
4295 wxWindow *arg1 = (wxWindow *) 0 ;
4296 int arg2 ;
4297 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4298 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4299 wxSize const &arg4_defvalue = wxDefaultSize ;
4300 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4301 long arg5 = (long) wxLI_HORIZONTAL ;
4302 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4303 wxString *arg6 = (wxString *) &arg6_defvalue ;
4304 wxStaticLine *result;
4305 wxPoint temp3 ;
4306 wxSize temp4 ;
4307 bool temp6 = False ;
4308 PyObject * obj0 = 0 ;
4309 PyObject * obj1 = 0 ;
4310 PyObject * obj2 = 0 ;
4311 PyObject * obj3 = 0 ;
4312 PyObject * obj4 = 0 ;
4313 PyObject * obj5 = 0 ;
4314 char *kwnames[] = {
4315 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4316 };
4317
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4321 arg2 = (int) SWIG_AsInt(obj1);
4322 if (PyErr_Occurred()) SWIG_fail;
4323 if (obj2) {
4324 {
4325 arg3 = &temp3;
4326 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4327 }
4328 }
4329 if (obj3) {
4330 {
4331 arg4 = &temp4;
4332 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4333 }
4334 }
4335 if (obj4) {
4336 arg5 = (long) SWIG_AsLong(obj4);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 if (obj5) {
4340 {
4341 arg6 = wxString_in_helper(obj5);
4342 if (arg6 == NULL) SWIG_fail;
4343 temp6 = True;
4344 }
4345 }
4346 {
4347 PyThreadState* __tstate = wxPyBeginAllowThreads();
4348 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4349
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4354 {
4355 if (temp6)
4356 delete arg6;
4357 }
4358 return resultobj;
4359 fail:
4360 {
4361 if (temp6)
4362 delete arg6;
4363 }
4364 return NULL;
4365 }
4366
4367
4368 static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4369 PyObject *resultobj;
4370 wxStaticLine *result;
4371 char *kwnames[] = {
4372 NULL
4373 };
4374
4375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4376 {
4377 PyThreadState* __tstate = wxPyBeginAllowThreads();
4378 result = (wxStaticLine *)new wxStaticLine();
4379
4380 wxPyEndAllowThreads(__tstate);
4381 if (PyErr_Occurred()) SWIG_fail;
4382 }
4383 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4384 return resultobj;
4385 fail:
4386 return NULL;
4387 }
4388
4389
4390 static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4391 PyObject *resultobj;
4392 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4393 wxWindow *arg2 = (wxWindow *) 0 ;
4394 int arg3 ;
4395 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4396 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4397 wxSize const &arg5_defvalue = wxDefaultSize ;
4398 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4399 long arg6 = (long) wxLI_HORIZONTAL ;
4400 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4401 wxString *arg7 = (wxString *) &arg7_defvalue ;
4402 bool result;
4403 wxPoint temp4 ;
4404 wxSize temp5 ;
4405 bool temp7 = False ;
4406 PyObject * obj0 = 0 ;
4407 PyObject * obj1 = 0 ;
4408 PyObject * obj2 = 0 ;
4409 PyObject * obj3 = 0 ;
4410 PyObject * obj4 = 0 ;
4411 PyObject * obj5 = 0 ;
4412 PyObject * obj6 = 0 ;
4413 char *kwnames[] = {
4414 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4415 };
4416
4417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4420 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4422 arg3 = (int) SWIG_AsInt(obj2);
4423 if (PyErr_Occurred()) SWIG_fail;
4424 if (obj3) {
4425 {
4426 arg4 = &temp4;
4427 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4428 }
4429 }
4430 if (obj4) {
4431 {
4432 arg5 = &temp5;
4433 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4434 }
4435 }
4436 if (obj5) {
4437 arg6 = (long) SWIG_AsLong(obj5);
4438 if (PyErr_Occurred()) SWIG_fail;
4439 }
4440 if (obj6) {
4441 {
4442 arg7 = wxString_in_helper(obj6);
4443 if (arg7 == NULL) SWIG_fail;
4444 temp7 = True;
4445 }
4446 }
4447 {
4448 PyThreadState* __tstate = wxPyBeginAllowThreads();
4449 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4450
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 {
4455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4456 }
4457 {
4458 if (temp7)
4459 delete arg7;
4460 }
4461 return resultobj;
4462 fail:
4463 {
4464 if (temp7)
4465 delete arg7;
4466 }
4467 return NULL;
4468 }
4469
4470
4471 static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4472 PyObject *resultobj;
4473 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4474 bool result;
4475 PyObject * obj0 = 0 ;
4476 char *kwnames[] = {
4477 (char *) "self", NULL
4478 };
4479
4480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4483 {
4484 PyThreadState* __tstate = wxPyBeginAllowThreads();
4485 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4486
4487 wxPyEndAllowThreads(__tstate);
4488 if (PyErr_Occurred()) SWIG_fail;
4489 }
4490 {
4491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4492 }
4493 return resultobj;
4494 fail:
4495 return NULL;
4496 }
4497
4498
4499 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj;
4501 int result;
4502 char *kwnames[] = {
4503 NULL
4504 };
4505
4506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4507 {
4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
4509 result = (int)wxStaticLine::GetDefaultSize();
4510
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 resultobj = SWIG_FromInt((int)result);
4515 return resultobj;
4516 fail:
4517 return NULL;
4518 }
4519
4520
4521 static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) {
4522 PyObject *obj;
4523 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4524 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4525 Py_INCREF(obj);
4526 return Py_BuildValue((char *)"");
4527 }
4528 static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) {
4529 PyObject *resultobj;
4530 wxWindow *arg1 = (wxWindow *) 0 ;
4531 int arg2 ;
4532 wxString *arg3 = 0 ;
4533 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4534 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4535 wxSize const &arg5_defvalue = wxDefaultSize ;
4536 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4537 long arg6 = (long) 0 ;
4538 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4539 wxString *arg7 = (wxString *) &arg7_defvalue ;
4540 wxStaticText *result;
4541 bool temp3 = False ;
4542 wxPoint temp4 ;
4543 wxSize temp5 ;
4544 bool temp7 = False ;
4545 PyObject * obj0 = 0 ;
4546 PyObject * obj1 = 0 ;
4547 PyObject * obj2 = 0 ;
4548 PyObject * obj3 = 0 ;
4549 PyObject * obj4 = 0 ;
4550 PyObject * obj5 = 0 ;
4551 PyObject * obj6 = 0 ;
4552 char *kwnames[] = {
4553 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4554 };
4555
4556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4559 arg2 = (int) SWIG_AsInt(obj1);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 {
4562 arg3 = wxString_in_helper(obj2);
4563 if (arg3 == NULL) SWIG_fail;
4564 temp3 = True;
4565 }
4566 if (obj3) {
4567 {
4568 arg4 = &temp4;
4569 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4570 }
4571 }
4572 if (obj4) {
4573 {
4574 arg5 = &temp5;
4575 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4576 }
4577 }
4578 if (obj5) {
4579 arg6 = (long) SWIG_AsLong(obj5);
4580 if (PyErr_Occurred()) SWIG_fail;
4581 }
4582 if (obj6) {
4583 {
4584 arg7 = wxString_in_helper(obj6);
4585 if (arg7 == NULL) SWIG_fail;
4586 temp7 = True;
4587 }
4588 }
4589 {
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4592
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4597 {
4598 if (temp3)
4599 delete arg3;
4600 }
4601 {
4602 if (temp7)
4603 delete arg7;
4604 }
4605 return resultobj;
4606 fail:
4607 {
4608 if (temp3)
4609 delete arg3;
4610 }
4611 {
4612 if (temp7)
4613 delete arg7;
4614 }
4615 return NULL;
4616 }
4617
4618
4619 static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) {
4620 PyObject *resultobj;
4621 wxStaticText *result;
4622 char *kwnames[] = {
4623 NULL
4624 };
4625
4626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4627 {
4628 PyThreadState* __tstate = wxPyBeginAllowThreads();
4629 result = (wxStaticText *)new wxStaticText();
4630
4631 wxPyEndAllowThreads(__tstate);
4632 if (PyErr_Occurred()) SWIG_fail;
4633 }
4634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4635 return resultobj;
4636 fail:
4637 return NULL;
4638 }
4639
4640
4641 static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4642 PyObject *resultobj;
4643 wxStaticText *arg1 = (wxStaticText *) 0 ;
4644 wxWindow *arg2 = (wxWindow *) 0 ;
4645 int arg3 ;
4646 wxString *arg4 = 0 ;
4647 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4648 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4649 wxSize const &arg6_defvalue = wxDefaultSize ;
4650 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4651 long arg7 = (long) 0 ;
4652 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4653 wxString *arg8 = (wxString *) &arg8_defvalue ;
4654 bool result;
4655 bool temp4 = False ;
4656 wxPoint temp5 ;
4657 wxSize temp6 ;
4658 bool temp8 = False ;
4659 PyObject * obj0 = 0 ;
4660 PyObject * obj1 = 0 ;
4661 PyObject * obj2 = 0 ;
4662 PyObject * obj3 = 0 ;
4663 PyObject * obj4 = 0 ;
4664 PyObject * obj5 = 0 ;
4665 PyObject * obj6 = 0 ;
4666 PyObject * obj7 = 0 ;
4667 char *kwnames[] = {
4668 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4669 };
4670
4671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
4673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4676 arg3 = (int) SWIG_AsInt(obj2);
4677 if (PyErr_Occurred()) SWIG_fail;
4678 {
4679 arg4 = wxString_in_helper(obj3);
4680 if (arg4 == NULL) SWIG_fail;
4681 temp4 = True;
4682 }
4683 if (obj4) {
4684 {
4685 arg5 = &temp5;
4686 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4687 }
4688 }
4689 if (obj5) {
4690 {
4691 arg6 = &temp6;
4692 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4693 }
4694 }
4695 if (obj6) {
4696 arg7 = (long) SWIG_AsLong(obj6);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 if (obj7) {
4700 {
4701 arg8 = wxString_in_helper(obj7);
4702 if (arg8 == NULL) SWIG_fail;
4703 temp8 = True;
4704 }
4705 }
4706 {
4707 PyThreadState* __tstate = wxPyBeginAllowThreads();
4708 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4709
4710 wxPyEndAllowThreads(__tstate);
4711 if (PyErr_Occurred()) SWIG_fail;
4712 }
4713 {
4714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4715 }
4716 {
4717 if (temp4)
4718 delete arg4;
4719 }
4720 {
4721 if (temp8)
4722 delete arg8;
4723 }
4724 return resultobj;
4725 fail:
4726 {
4727 if (temp4)
4728 delete arg4;
4729 }
4730 {
4731 if (temp8)
4732 delete arg8;
4733 }
4734 return NULL;
4735 }
4736
4737
4738 static PyObject * StaticText_swigregister(PyObject *, PyObject *args) {
4739 PyObject *obj;
4740 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4741 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
4742 Py_INCREF(obj);
4743 return Py_BuildValue((char *)"");
4744 }
4745 static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4746 PyObject *resultobj;
4747 wxWindow *arg1 = (wxWindow *) 0 ;
4748 int arg2 ;
4749 wxBitmap *arg3 = 0 ;
4750 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4751 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4752 wxSize const &arg5_defvalue = wxDefaultSize ;
4753 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4754 long arg6 = (long) 0 ;
4755 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
4756 wxString *arg7 = (wxString *) &arg7_defvalue ;
4757 wxStaticBitmap *result;
4758 wxPoint temp4 ;
4759 wxSize temp5 ;
4760 bool temp7 = False ;
4761 PyObject * obj0 = 0 ;
4762 PyObject * obj1 = 0 ;
4763 PyObject * obj2 = 0 ;
4764 PyObject * obj3 = 0 ;
4765 PyObject * obj4 = 0 ;
4766 PyObject * obj5 = 0 ;
4767 PyObject * obj6 = 0 ;
4768 char *kwnames[] = {
4769 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4770 };
4771
4772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4775 arg2 = (int) SWIG_AsInt(obj1);
4776 if (PyErr_Occurred()) SWIG_fail;
4777 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
4778 SWIG_POINTER_EXCEPTION | 0)) == -1)
4779 SWIG_fail;
4780 if (arg3 == NULL) {
4781 PyErr_SetString(PyExc_TypeError,"null reference");
4782 SWIG_fail;
4783 }
4784 if (obj3) {
4785 {
4786 arg4 = &temp4;
4787 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4788 }
4789 }
4790 if (obj4) {
4791 {
4792 arg5 = &temp5;
4793 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4794 }
4795 }
4796 if (obj5) {
4797 arg6 = (long) SWIG_AsLong(obj5);
4798 if (PyErr_Occurred()) SWIG_fail;
4799 }
4800 if (obj6) {
4801 {
4802 arg7 = wxString_in_helper(obj6);
4803 if (arg7 == NULL) SWIG_fail;
4804 temp7 = True;
4805 }
4806 }
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4810
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
4815 {
4816 if (temp7)
4817 delete arg7;
4818 }
4819 return resultobj;
4820 fail:
4821 {
4822 if (temp7)
4823 delete arg7;
4824 }
4825 return NULL;
4826 }
4827
4828
4829 static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4830 PyObject *resultobj;
4831 wxStaticBitmap *result;
4832 char *kwnames[] = {
4833 NULL
4834 };
4835
4836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
4837 {
4838 PyThreadState* __tstate = wxPyBeginAllowThreads();
4839 result = (wxStaticBitmap *)new wxStaticBitmap();
4840
4841 wxPyEndAllowThreads(__tstate);
4842 if (PyErr_Occurred()) SWIG_fail;
4843 }
4844 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
4845 return resultobj;
4846 fail:
4847 return NULL;
4848 }
4849
4850
4851 static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4852 PyObject *resultobj;
4853 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4854 wxWindow *arg2 = (wxWindow *) 0 ;
4855 int arg3 ;
4856 wxBitmap *arg4 = 0 ;
4857 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4858 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4859 wxSize const &arg6_defvalue = wxDefaultSize ;
4860 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4861 long arg7 = (long) 0 ;
4862 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
4863 wxString *arg8 = (wxString *) &arg8_defvalue ;
4864 bool result;
4865 wxPoint temp5 ;
4866 wxSize temp6 ;
4867 bool temp8 = False ;
4868 PyObject * obj0 = 0 ;
4869 PyObject * obj1 = 0 ;
4870 PyObject * obj2 = 0 ;
4871 PyObject * obj3 = 0 ;
4872 PyObject * obj4 = 0 ;
4873 PyObject * obj5 = 0 ;
4874 PyObject * obj6 = 0 ;
4875 PyObject * obj7 = 0 ;
4876 char *kwnames[] = {
4877 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4878 };
4879
4880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4883 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4885 arg3 = (int) SWIG_AsInt(obj2);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
4888 SWIG_POINTER_EXCEPTION | 0)) == -1)
4889 SWIG_fail;
4890 if (arg4 == NULL) {
4891 PyErr_SetString(PyExc_TypeError,"null reference");
4892 SWIG_fail;
4893 }
4894 if (obj4) {
4895 {
4896 arg5 = &temp5;
4897 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4898 }
4899 }
4900 if (obj5) {
4901 {
4902 arg6 = &temp6;
4903 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4904 }
4905 }
4906 if (obj6) {
4907 arg7 = (long) SWIG_AsLong(obj6);
4908 if (PyErr_Occurred()) SWIG_fail;
4909 }
4910 if (obj7) {
4911 {
4912 arg8 = wxString_in_helper(obj7);
4913 if (arg8 == NULL) SWIG_fail;
4914 temp8 = True;
4915 }
4916 }
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4920
4921 wxPyEndAllowThreads(__tstate);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 }
4924 {
4925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4926 }
4927 {
4928 if (temp8)
4929 delete arg8;
4930 }
4931 return resultobj;
4932 fail:
4933 {
4934 if (temp8)
4935 delete arg8;
4936 }
4937 return NULL;
4938 }
4939
4940
4941 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4942 PyObject *resultobj;
4943 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4944 wxBitmap result;
4945 PyObject * obj0 = 0 ;
4946 char *kwnames[] = {
4947 (char *) "self", NULL
4948 };
4949
4950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
4951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 result = (arg1)->GetBitmap();
4956
4957 wxPyEndAllowThreads(__tstate);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 }
4960 {
4961 wxBitmap * resultptr;
4962 resultptr = new wxBitmap((wxBitmap &) result);
4963 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
4964 }
4965 return resultobj;
4966 fail:
4967 return NULL;
4968 }
4969
4970
4971 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4972 PyObject *resultobj;
4973 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4974 wxBitmap *arg2 = 0 ;
4975 PyObject * obj0 = 0 ;
4976 PyObject * obj1 = 0 ;
4977 char *kwnames[] = {
4978 (char *) "self",(char *) "bitmap", NULL
4979 };
4980
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
4982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4984 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4985 SWIG_POINTER_EXCEPTION | 0)) == -1)
4986 SWIG_fail;
4987 if (arg2 == NULL) {
4988 PyErr_SetString(PyExc_TypeError,"null reference");
4989 SWIG_fail;
4990 }
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 (arg1)->SetBitmap((wxBitmap const &)*arg2);
4994
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 Py_INCREF(Py_None); resultobj = Py_None;
4999 return resultobj;
5000 fail:
5001 return NULL;
5002 }
5003
5004
5005 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5006 PyObject *resultobj;
5007 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5008 wxIcon *arg2 = 0 ;
5009 PyObject * obj0 = 0 ;
5010 PyObject * obj1 = 0 ;
5011 char *kwnames[] = {
5012 (char *) "self",(char *) "icon", NULL
5013 };
5014
5015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5019 SWIG_POINTER_EXCEPTION | 0)) == -1)
5020 SWIG_fail;
5021 if (arg2 == NULL) {
5022 PyErr_SetString(PyExc_TypeError,"null reference");
5023 SWIG_fail;
5024 }
5025 {
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 (arg1)->SetIcon((wxIcon const &)*arg2);
5028
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 Py_INCREF(Py_None); resultobj = Py_None;
5033 return resultobj;
5034 fail:
5035 return NULL;
5036 }
5037
5038
5039 static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) {
5040 PyObject *obj;
5041 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5042 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5043 Py_INCREF(obj);
5044 return Py_BuildValue((char *)"");
5045 }
5046 static int _wrap_ListBoxNameStr_set(PyObject *) {
5047 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5048 return 1;
5049 }
5050
5051
5052 static PyObject *_wrap_ListBoxNameStr_get() {
5053 PyObject *pyobj;
5054
5055 {
5056 #if wxUSE_UNICODE
5057 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5058 #else
5059 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5060 #endif
5061 }
5062 return pyobj;
5063 }
5064
5065
5066 static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5067 PyObject *resultobj;
5068 wxWindow *arg1 = (wxWindow *) 0 ;
5069 int arg2 ;
5070 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5071 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5072 wxSize const &arg4_defvalue = wxDefaultSize ;
5073 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5074 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5075 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5076 long arg6 = (long) 0 ;
5077 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5078 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5079 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5080 wxString *arg8 = (wxString *) &arg8_defvalue ;
5081 wxListBox *result;
5082 wxPoint temp3 ;
5083 wxSize temp4 ;
5084 bool temp5 = False ;
5085 bool temp8 = False ;
5086 PyObject * obj0 = 0 ;
5087 PyObject * obj1 = 0 ;
5088 PyObject * obj2 = 0 ;
5089 PyObject * obj3 = 0 ;
5090 PyObject * obj4 = 0 ;
5091 PyObject * obj5 = 0 ;
5092 PyObject * obj6 = 0 ;
5093 PyObject * obj7 = 0 ;
5094 char *kwnames[] = {
5095 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5096 };
5097
5098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5101 arg2 = (int) SWIG_AsInt(obj1);
5102 if (PyErr_Occurred()) SWIG_fail;
5103 if (obj2) {
5104 {
5105 arg3 = &temp3;
5106 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5107 }
5108 }
5109 if (obj3) {
5110 {
5111 arg4 = &temp4;
5112 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5113 }
5114 }
5115 if (obj4) {
5116 {
5117 if (! PySequence_Check(obj4)) {
5118 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5119 SWIG_fail;
5120 }
5121 arg5 = new wxArrayString;
5122 temp5 = True;
5123 int i, len=PySequence_Length(obj4);
5124 for (i=0; i<len; i++) {
5125 PyObject* item = PySequence_GetItem(obj4, i);
5126 #if wxUSE_UNICODE
5127 PyObject* str = PyObject_Unicode(item);
5128 #else
5129 PyObject* str = PyObject_Str(item);
5130 #endif
5131 arg5->Add(Py2wxString(str));
5132 Py_DECREF(item);
5133 Py_DECREF(str);
5134 }
5135 }
5136 }
5137 if (obj5) {
5138 arg6 = (long) SWIG_AsLong(obj5);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 }
5141 if (obj6) {
5142 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5143 SWIG_POINTER_EXCEPTION | 0)) == -1)
5144 SWIG_fail;
5145 if (arg7 == NULL) {
5146 PyErr_SetString(PyExc_TypeError,"null reference");
5147 SWIG_fail;
5148 }
5149 }
5150 if (obj7) {
5151 {
5152 arg8 = wxString_in_helper(obj7);
5153 if (arg8 == NULL) SWIG_fail;
5154 temp8 = True;
5155 }
5156 }
5157 {
5158 PyThreadState* __tstate = wxPyBeginAllowThreads();
5159 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5160
5161 wxPyEndAllowThreads(__tstate);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 }
5164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5165 {
5166 if (temp5) delete arg5;
5167 }
5168 {
5169 if (temp8)
5170 delete arg8;
5171 }
5172 return resultobj;
5173 fail:
5174 {
5175 if (temp5) delete arg5;
5176 }
5177 {
5178 if (temp8)
5179 delete arg8;
5180 }
5181 return NULL;
5182 }
5183
5184
5185 static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5186 PyObject *resultobj;
5187 wxListBox *result;
5188 char *kwnames[] = {
5189 NULL
5190 };
5191
5192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 result = (wxListBox *)new wxListBox();
5196
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5201 return resultobj;
5202 fail:
5203 return NULL;
5204 }
5205
5206
5207 static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5208 PyObject *resultobj;
5209 wxListBox *arg1 = (wxListBox *) 0 ;
5210 wxWindow *arg2 = (wxWindow *) 0 ;
5211 int arg3 ;
5212 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5213 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5214 wxSize const &arg5_defvalue = wxDefaultSize ;
5215 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5216 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5217 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5218 long arg7 = (long) 0 ;
5219 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5220 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5221 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5222 wxString *arg9 = (wxString *) &arg9_defvalue ;
5223 bool result;
5224 wxPoint temp4 ;
5225 wxSize temp5 ;
5226 bool temp6 = False ;
5227 bool temp9 = False ;
5228 PyObject * obj0 = 0 ;
5229 PyObject * obj1 = 0 ;
5230 PyObject * obj2 = 0 ;
5231 PyObject * obj3 = 0 ;
5232 PyObject * obj4 = 0 ;
5233 PyObject * obj5 = 0 ;
5234 PyObject * obj6 = 0 ;
5235 PyObject * obj7 = 0 ;
5236 PyObject * obj8 = 0 ;
5237 char *kwnames[] = {
5238 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5239 };
5240
5241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5244 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5246 arg3 = (int) SWIG_AsInt(obj2);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 if (obj3) {
5249 {
5250 arg4 = &temp4;
5251 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5252 }
5253 }
5254 if (obj4) {
5255 {
5256 arg5 = &temp5;
5257 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5258 }
5259 }
5260 if (obj5) {
5261 {
5262 if (! PySequence_Check(obj5)) {
5263 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5264 SWIG_fail;
5265 }
5266 arg6 = new wxArrayString;
5267 temp6 = True;
5268 int i, len=PySequence_Length(obj5);
5269 for (i=0; i<len; i++) {
5270 PyObject* item = PySequence_GetItem(obj5, i);
5271 #if wxUSE_UNICODE
5272 PyObject* str = PyObject_Unicode(item);
5273 #else
5274 PyObject* str = PyObject_Str(item);
5275 #endif
5276 arg6->Add(Py2wxString(str));
5277 Py_DECREF(item);
5278 Py_DECREF(str);
5279 }
5280 }
5281 }
5282 if (obj6) {
5283 arg7 = (long) SWIG_AsLong(obj6);
5284 if (PyErr_Occurred()) SWIG_fail;
5285 }
5286 if (obj7) {
5287 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5288 SWIG_POINTER_EXCEPTION | 0)) == -1)
5289 SWIG_fail;
5290 if (arg8 == NULL) {
5291 PyErr_SetString(PyExc_TypeError,"null reference");
5292 SWIG_fail;
5293 }
5294 }
5295 if (obj8) {
5296 {
5297 arg9 = wxString_in_helper(obj8);
5298 if (arg9 == NULL) SWIG_fail;
5299 temp9 = True;
5300 }
5301 }
5302 {
5303 PyThreadState* __tstate = wxPyBeginAllowThreads();
5304 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5305
5306 wxPyEndAllowThreads(__tstate);
5307 if (PyErr_Occurred()) SWIG_fail;
5308 }
5309 {
5310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5311 }
5312 {
5313 if (temp6) delete arg6;
5314 }
5315 {
5316 if (temp9)
5317 delete arg9;
5318 }
5319 return resultobj;
5320 fail:
5321 {
5322 if (temp6) delete arg6;
5323 }
5324 {
5325 if (temp9)
5326 delete arg9;
5327 }
5328 return NULL;
5329 }
5330
5331
5332 static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
5333 PyObject *resultobj;
5334 wxListBox *arg1 = (wxListBox *) 0 ;
5335 wxString *arg2 = 0 ;
5336 int arg3 ;
5337 PyObject *arg4 = (PyObject *) NULL ;
5338 bool temp2 = False ;
5339 PyObject * obj0 = 0 ;
5340 PyObject * obj1 = 0 ;
5341 PyObject * obj2 = 0 ;
5342 PyObject * obj3 = 0 ;
5343 char *kwnames[] = {
5344 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5345 };
5346
5347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5350 {
5351 arg2 = wxString_in_helper(obj1);
5352 if (arg2 == NULL) SWIG_fail;
5353 temp2 = True;
5354 }
5355 arg3 = (int) SWIG_AsInt(obj2);
5356 if (PyErr_Occurred()) SWIG_fail;
5357 if (obj3) {
5358 arg4 = obj3;
5359 }
5360 {
5361 PyThreadState* __tstate = wxPyBeginAllowThreads();
5362 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5363
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 Py_INCREF(Py_None); resultobj = Py_None;
5368 {
5369 if (temp2)
5370 delete arg2;
5371 }
5372 return resultobj;
5373 fail:
5374 {
5375 if (temp2)
5376 delete arg2;
5377 }
5378 return NULL;
5379 }
5380
5381
5382 static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) {
5383 PyObject *resultobj;
5384 wxListBox *arg1 = (wxListBox *) 0 ;
5385 wxArrayString *arg2 = 0 ;
5386 int arg3 ;
5387 bool temp2 = False ;
5388 PyObject * obj0 = 0 ;
5389 PyObject * obj1 = 0 ;
5390 PyObject * obj2 = 0 ;
5391 char *kwnames[] = {
5392 (char *) "self",(char *) "items",(char *) "pos", NULL
5393 };
5394
5395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5398 {
5399 if (! PySequence_Check(obj1)) {
5400 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5401 SWIG_fail;
5402 }
5403 arg2 = new wxArrayString;
5404 temp2 = True;
5405 int i, len=PySequence_Length(obj1);
5406 for (i=0; i<len; i++) {
5407 PyObject* item = PySequence_GetItem(obj1, i);
5408 #if wxUSE_UNICODE
5409 PyObject* str = PyObject_Unicode(item);
5410 #else
5411 PyObject* str = PyObject_Str(item);
5412 #endif
5413 arg2->Add(Py2wxString(str));
5414 Py_DECREF(item);
5415 Py_DECREF(str);
5416 }
5417 }
5418 arg3 = (int) SWIG_AsInt(obj2);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 {
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5423
5424 wxPyEndAllowThreads(__tstate);
5425 if (PyErr_Occurred()) SWIG_fail;
5426 }
5427 Py_INCREF(Py_None); resultobj = Py_None;
5428 {
5429 if (temp2) delete arg2;
5430 }
5431 return resultobj;
5432 fail:
5433 {
5434 if (temp2) delete arg2;
5435 }
5436 return NULL;
5437 }
5438
5439
5440 static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) {
5441 PyObject *resultobj;
5442 wxListBox *arg1 = (wxListBox *) 0 ;
5443 wxArrayString *arg2 = 0 ;
5444 bool temp2 = False ;
5445 PyObject * obj0 = 0 ;
5446 PyObject * obj1 = 0 ;
5447 char *kwnames[] = {
5448 (char *) "self",(char *) "items", NULL
5449 };
5450
5451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5454 {
5455 if (! PySequence_Check(obj1)) {
5456 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5457 SWIG_fail;
5458 }
5459 arg2 = new wxArrayString;
5460 temp2 = True;
5461 int i, len=PySequence_Length(obj1);
5462 for (i=0; i<len; i++) {
5463 PyObject* item = PySequence_GetItem(obj1, i);
5464 #if wxUSE_UNICODE
5465 PyObject* str = PyObject_Unicode(item);
5466 #else
5467 PyObject* str = PyObject_Str(item);
5468 #endif
5469 arg2->Add(Py2wxString(str));
5470 Py_DECREF(item);
5471 Py_DECREF(str);
5472 }
5473 }
5474 {
5475 PyThreadState* __tstate = wxPyBeginAllowThreads();
5476 (arg1)->Set((wxArrayString const &)*arg2);
5477
5478 wxPyEndAllowThreads(__tstate);
5479 if (PyErr_Occurred()) SWIG_fail;
5480 }
5481 Py_INCREF(Py_None); resultobj = Py_None;
5482 {
5483 if (temp2) delete arg2;
5484 }
5485 return resultobj;
5486 fail:
5487 {
5488 if (temp2) delete arg2;
5489 }
5490 return NULL;
5491 }
5492
5493
5494 static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
5495 PyObject *resultobj;
5496 wxListBox *arg1 = (wxListBox *) 0 ;
5497 int arg2 ;
5498 bool result;
5499 PyObject * obj0 = 0 ;
5500 PyObject * obj1 = 0 ;
5501 char *kwnames[] = {
5502 (char *) "self",(char *) "n", NULL
5503 };
5504
5505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5508 arg2 = (int) SWIG_AsInt(obj1);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 {
5511 PyThreadState* __tstate = wxPyBeginAllowThreads();
5512 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5513
5514 wxPyEndAllowThreads(__tstate);
5515 if (PyErr_Occurred()) SWIG_fail;
5516 }
5517 {
5518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5519 }
5520 return resultobj;
5521 fail:
5522 return NULL;
5523 }
5524
5525
5526 static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
5527 PyObject *resultobj;
5528 wxListBox *arg1 = (wxListBox *) 0 ;
5529 int arg2 ;
5530 bool arg3 = (bool) True ;
5531 PyObject * obj0 = 0 ;
5532 PyObject * obj1 = 0 ;
5533 PyObject * obj2 = 0 ;
5534 char *kwnames[] = {
5535 (char *) "self",(char *) "n",(char *) "select", NULL
5536 };
5537
5538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5541 arg2 = (int) SWIG_AsInt(obj1);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 if (obj2) {
5544 arg3 = (bool) SWIG_AsBool(obj2);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 (arg1)->SetSelection(arg2,arg3);
5550
5551 wxPyEndAllowThreads(__tstate);
5552 if (PyErr_Occurred()) SWIG_fail;
5553 }
5554 Py_INCREF(Py_None); resultobj = Py_None;
5555 return resultobj;
5556 fail:
5557 return NULL;
5558 }
5559
5560
5561 static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) {
5562 PyObject *resultobj;
5563 wxListBox *arg1 = (wxListBox *) 0 ;
5564 int arg2 ;
5565 PyObject * obj0 = 0 ;
5566 PyObject * obj1 = 0 ;
5567 char *kwnames[] = {
5568 (char *) "self",(char *) "n", NULL
5569 };
5570
5571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5574 arg2 = (int) SWIG_AsInt(obj1);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 {
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 (arg1)->Select(arg2);
5579
5580 wxPyEndAllowThreads(__tstate);
5581 if (PyErr_Occurred()) SWIG_fail;
5582 }
5583 Py_INCREF(Py_None); resultobj = Py_None;
5584 return resultobj;
5585 fail:
5586 return NULL;
5587 }
5588
5589
5590 static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) {
5591 PyObject *resultobj;
5592 wxListBox *arg1 = (wxListBox *) 0 ;
5593 int arg2 ;
5594 PyObject * obj0 = 0 ;
5595 PyObject * obj1 = 0 ;
5596 char *kwnames[] = {
5597 (char *) "self",(char *) "n", NULL
5598 };
5599
5600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
5601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5603 arg2 = (int) SWIG_AsInt(obj1);
5604 if (PyErr_Occurred()) SWIG_fail;
5605 {
5606 PyThreadState* __tstate = wxPyBeginAllowThreads();
5607 (arg1)->Deselect(arg2);
5608
5609 wxPyEndAllowThreads(__tstate);
5610 if (PyErr_Occurred()) SWIG_fail;
5611 }
5612 Py_INCREF(Py_None); resultobj = Py_None;
5613 return resultobj;
5614 fail:
5615 return NULL;
5616 }
5617
5618
5619 static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
5620 PyObject *resultobj;
5621 wxListBox *arg1 = (wxListBox *) 0 ;
5622 int arg2 = (int) -1 ;
5623 PyObject * obj0 = 0 ;
5624 PyObject * obj1 = 0 ;
5625 char *kwnames[] = {
5626 (char *) "self",(char *) "itemToLeaveSelected", NULL
5627 };
5628
5629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
5630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5632 if (obj1) {
5633 arg2 = (int) SWIG_AsInt(obj1);
5634 if (PyErr_Occurred()) SWIG_fail;
5635 }
5636 {
5637 PyThreadState* __tstate = wxPyBeginAllowThreads();
5638 (arg1)->DeselectAll(arg2);
5639
5640 wxPyEndAllowThreads(__tstate);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 }
5643 Py_INCREF(Py_None); resultobj = Py_None;
5644 return resultobj;
5645 fail:
5646 return NULL;
5647 }
5648
5649
5650 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
5651 PyObject *resultobj;
5652 wxListBox *arg1 = (wxListBox *) 0 ;
5653 wxString *arg2 = 0 ;
5654 bool arg3 = (bool) True ;
5655 bool result;
5656 bool temp2 = False ;
5657 PyObject * obj0 = 0 ;
5658 PyObject * obj1 = 0 ;
5659 PyObject * obj2 = 0 ;
5660 char *kwnames[] = {
5661 (char *) "self",(char *) "s",(char *) "select", NULL
5662 };
5663
5664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5667 {
5668 arg2 = wxString_in_helper(obj1);
5669 if (arg2 == NULL) SWIG_fail;
5670 temp2 = True;
5671 }
5672 if (obj2) {
5673 arg3 = (bool) SWIG_AsBool(obj2);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
5676 {
5677 PyThreadState* __tstate = wxPyBeginAllowThreads();
5678 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
5679
5680 wxPyEndAllowThreads(__tstate);
5681 if (PyErr_Occurred()) SWIG_fail;
5682 }
5683 {
5684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5685 }
5686 {
5687 if (temp2)
5688 delete arg2;
5689 }
5690 return resultobj;
5691 fail:
5692 {
5693 if (temp2)
5694 delete arg2;
5695 }
5696 return NULL;
5697 }
5698
5699
5700 static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
5701 PyObject *resultobj;
5702 wxListBox *arg1 = (wxListBox *) 0 ;
5703 PyObject *result;
5704 PyObject * obj0 = 0 ;
5705 char *kwnames[] = {
5706 (char *) "self", NULL
5707 };
5708
5709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
5710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5712 {
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 result = (PyObject *)wxListBox_GetSelections(arg1);
5715
5716 wxPyEndAllowThreads(__tstate);
5717 if (PyErr_Occurred()) SWIG_fail;
5718 }
5719 resultobj = result;
5720 return resultobj;
5721 fail:
5722 return NULL;
5723 }
5724
5725
5726 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) {
5727 PyObject *resultobj;
5728 wxListBox *arg1 = (wxListBox *) 0 ;
5729 int arg2 ;
5730 PyObject * obj0 = 0 ;
5731 PyObject * obj1 = 0 ;
5732 char *kwnames[] = {
5733 (char *) "self",(char *) "n", NULL
5734 };
5735
5736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
5737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5739 arg2 = (int) SWIG_AsInt(obj1);
5740 if (PyErr_Occurred()) SWIG_fail;
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 (arg1)->SetFirstItem(arg2);
5744
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) SWIG_fail;
5747 }
5748 Py_INCREF(Py_None); resultobj = Py_None;
5749 return resultobj;
5750 fail:
5751 return NULL;
5752 }
5753
5754
5755 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) {
5756 PyObject *resultobj;
5757 wxListBox *arg1 = (wxListBox *) 0 ;
5758 wxString *arg2 = 0 ;
5759 bool temp2 = False ;
5760 PyObject * obj0 = 0 ;
5761 PyObject * obj1 = 0 ;
5762 char *kwnames[] = {
5763 (char *) "self",(char *) "s", NULL
5764 };
5765
5766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
5767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5769 {
5770 arg2 = wxString_in_helper(obj1);
5771 if (arg2 == NULL) SWIG_fail;
5772 temp2 = True;
5773 }
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 (arg1)->SetFirstItem((wxString const &)*arg2);
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 Py_INCREF(Py_None); resultobj = Py_None;
5782 {
5783 if (temp2)
5784 delete arg2;
5785 }
5786 return resultobj;
5787 fail:
5788 {
5789 if (temp2)
5790 delete arg2;
5791 }
5792 return NULL;
5793 }
5794
5795
5796 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
5797 PyObject *resultobj;
5798 wxListBox *arg1 = (wxListBox *) 0 ;
5799 int arg2 ;
5800 PyObject * obj0 = 0 ;
5801 PyObject * obj1 = 0 ;
5802 char *kwnames[] = {
5803 (char *) "self",(char *) "n", NULL
5804 };
5805
5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5809 arg2 = (int) SWIG_AsInt(obj1);
5810 if (PyErr_Occurred()) SWIG_fail;
5811 {
5812 PyThreadState* __tstate = wxPyBeginAllowThreads();
5813 (arg1)->EnsureVisible(arg2);
5814
5815 wxPyEndAllowThreads(__tstate);
5816 if (PyErr_Occurred()) SWIG_fail;
5817 }
5818 Py_INCREF(Py_None); resultobj = Py_None;
5819 return resultobj;
5820 fail:
5821 return NULL;
5822 }
5823
5824
5825 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
5826 PyObject *resultobj;
5827 wxListBox *arg1 = (wxListBox *) 0 ;
5828 wxString *arg2 = 0 ;
5829 bool temp2 = False ;
5830 PyObject * obj0 = 0 ;
5831 PyObject * obj1 = 0 ;
5832 char *kwnames[] = {
5833 (char *) "self",(char *) "s", NULL
5834 };
5835
5836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5839 {
5840 arg2 = wxString_in_helper(obj1);
5841 if (arg2 == NULL) SWIG_fail;
5842 temp2 = True;
5843 }
5844 {
5845 PyThreadState* __tstate = wxPyBeginAllowThreads();
5846 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
5847
5848 wxPyEndAllowThreads(__tstate);
5849 if (PyErr_Occurred()) SWIG_fail;
5850 }
5851 Py_INCREF(Py_None); resultobj = Py_None;
5852 {
5853 if (temp2)
5854 delete arg2;
5855 }
5856 return resultobj;
5857 fail:
5858 {
5859 if (temp2)
5860 delete arg2;
5861 }
5862 return NULL;
5863 }
5864
5865
5866 static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) {
5867 PyObject *resultobj;
5868 wxListBox *arg1 = (wxListBox *) 0 ;
5869 bool result;
5870 PyObject * obj0 = 0 ;
5871 char *kwnames[] = {
5872 (char *) "self", NULL
5873 };
5874
5875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
5876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 result = (bool)((wxListBox const *)arg1)->IsSorted();
5881
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 {
5886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5887 }
5888 return resultobj;
5889 fail:
5890 return NULL;
5891 }
5892
5893
5894 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj;
5896 wxListBox *arg1 = (wxListBox *) 0 ;
5897 int arg2 ;
5898 wxColour *arg3 = 0 ;
5899 wxColour temp3 ;
5900 PyObject * obj0 = 0 ;
5901 PyObject * obj1 = 0 ;
5902 PyObject * obj2 = 0 ;
5903 char *kwnames[] = {
5904 (char *) "self",(char *) "item",(char *) "c", NULL
5905 };
5906
5907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5910 arg2 = (int) SWIG_AsInt(obj1);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 {
5913 arg3 = &temp3;
5914 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5915 }
5916 {
5917 PyThreadState* __tstate = wxPyBeginAllowThreads();
5918 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
5919
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 Py_INCREF(Py_None); resultobj = Py_None;
5924 return resultobj;
5925 fail:
5926 return NULL;
5927 }
5928
5929
5930 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
5931 PyObject *resultobj;
5932 wxListBox *arg1 = (wxListBox *) 0 ;
5933 int arg2 ;
5934 wxColour *arg3 = 0 ;
5935 wxColour temp3 ;
5936 PyObject * obj0 = 0 ;
5937 PyObject * obj1 = 0 ;
5938 PyObject * obj2 = 0 ;
5939 char *kwnames[] = {
5940 (char *) "self",(char *) "item",(char *) "c", NULL
5941 };
5942
5943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5946 arg2 = (int) SWIG_AsInt(obj1);
5947 if (PyErr_Occurred()) SWIG_fail;
5948 {
5949 arg3 = &temp3;
5950 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5951 }
5952 {
5953 PyThreadState* __tstate = wxPyBeginAllowThreads();
5954 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
5955
5956 wxPyEndAllowThreads(__tstate);
5957 if (PyErr_Occurred()) SWIG_fail;
5958 }
5959 Py_INCREF(Py_None); resultobj = Py_None;
5960 return resultobj;
5961 fail:
5962 return NULL;
5963 }
5964
5965
5966 static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
5967 PyObject *resultobj;
5968 wxListBox *arg1 = (wxListBox *) 0 ;
5969 int arg2 ;
5970 wxFont *arg3 = 0 ;
5971 PyObject * obj0 = 0 ;
5972 PyObject * obj1 = 0 ;
5973 PyObject * obj2 = 0 ;
5974 char *kwnames[] = {
5975 (char *) "self",(char *) "item",(char *) "f", NULL
5976 };
5977
5978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
5979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5981 arg2 = (int) SWIG_AsInt(obj1);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
5984 SWIG_POINTER_EXCEPTION | 0)) == -1)
5985 SWIG_fail;
5986 if (arg3 == NULL) {
5987 PyErr_SetString(PyExc_TypeError,"null reference");
5988 SWIG_fail;
5989 }
5990 {
5991 PyThreadState* __tstate = wxPyBeginAllowThreads();
5992 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
5993
5994 wxPyEndAllowThreads(__tstate);
5995 if (PyErr_Occurred()) SWIG_fail;
5996 }
5997 Py_INCREF(Py_None); resultobj = Py_None;
5998 return resultobj;
5999 fail:
6000 return NULL;
6001 }
6002
6003
6004 static PyObject * ListBox_swigregister(PyObject *, PyObject *args) {
6005 PyObject *obj;
6006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6007 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6008 Py_INCREF(obj);
6009 return Py_BuildValue((char *)"");
6010 }
6011 static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6012 PyObject *resultobj;
6013 wxWindow *arg1 = (wxWindow *) 0 ;
6014 int arg2 ;
6015 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6016 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6017 wxSize const &arg4_defvalue = wxDefaultSize ;
6018 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6019 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6020 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6021 long arg6 = (long) 0 ;
6022 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6023 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6024 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6025 wxString *arg8 = (wxString *) &arg8_defvalue ;
6026 wxCheckListBox *result;
6027 wxPoint temp3 ;
6028 wxSize temp4 ;
6029 bool temp5 = False ;
6030 bool temp8 = False ;
6031 PyObject * obj0 = 0 ;
6032 PyObject * obj1 = 0 ;
6033 PyObject * obj2 = 0 ;
6034 PyObject * obj3 = 0 ;
6035 PyObject * obj4 = 0 ;
6036 PyObject * obj5 = 0 ;
6037 PyObject * obj6 = 0 ;
6038 PyObject * obj7 = 0 ;
6039 char *kwnames[] = {
6040 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6041 };
6042
6043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6046 arg2 = (int) SWIG_AsInt(obj1);
6047 if (PyErr_Occurred()) SWIG_fail;
6048 if (obj2) {
6049 {
6050 arg3 = &temp3;
6051 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6052 }
6053 }
6054 if (obj3) {
6055 {
6056 arg4 = &temp4;
6057 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6058 }
6059 }
6060 if (obj4) {
6061 {
6062 if (! PySequence_Check(obj4)) {
6063 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6064 SWIG_fail;
6065 }
6066 arg5 = new wxArrayString;
6067 temp5 = True;
6068 int i, len=PySequence_Length(obj4);
6069 for (i=0; i<len; i++) {
6070 PyObject* item = PySequence_GetItem(obj4, i);
6071 #if wxUSE_UNICODE
6072 PyObject* str = PyObject_Unicode(item);
6073 #else
6074 PyObject* str = PyObject_Str(item);
6075 #endif
6076 arg5->Add(Py2wxString(str));
6077 Py_DECREF(item);
6078 Py_DECREF(str);
6079 }
6080 }
6081 }
6082 if (obj5) {
6083 arg6 = (long) SWIG_AsLong(obj5);
6084 if (PyErr_Occurred()) SWIG_fail;
6085 }
6086 if (obj6) {
6087 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6088 SWIG_POINTER_EXCEPTION | 0)) == -1)
6089 SWIG_fail;
6090 if (arg7 == NULL) {
6091 PyErr_SetString(PyExc_TypeError,"null reference");
6092 SWIG_fail;
6093 }
6094 }
6095 if (obj7) {
6096 {
6097 arg8 = wxString_in_helper(obj7);
6098 if (arg8 == NULL) SWIG_fail;
6099 temp8 = True;
6100 }
6101 }
6102 {
6103 PyThreadState* __tstate = wxPyBeginAllowThreads();
6104 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6105
6106 wxPyEndAllowThreads(__tstate);
6107 if (PyErr_Occurred()) SWIG_fail;
6108 }
6109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6110 {
6111 if (temp5) delete arg5;
6112 }
6113 {
6114 if (temp8)
6115 delete arg8;
6116 }
6117 return resultobj;
6118 fail:
6119 {
6120 if (temp5) delete arg5;
6121 }
6122 {
6123 if (temp8)
6124 delete arg8;
6125 }
6126 return NULL;
6127 }
6128
6129
6130 static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6131 PyObject *resultobj;
6132 wxCheckListBox *result;
6133 char *kwnames[] = {
6134 NULL
6135 };
6136
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6138 {
6139 PyThreadState* __tstate = wxPyBeginAllowThreads();
6140 result = (wxCheckListBox *)new wxCheckListBox();
6141
6142 wxPyEndAllowThreads(__tstate);
6143 if (PyErr_Occurred()) SWIG_fail;
6144 }
6145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6146 return resultobj;
6147 fail:
6148 return NULL;
6149 }
6150
6151
6152 static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6153 PyObject *resultobj;
6154 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6155 wxWindow *arg2 = (wxWindow *) 0 ;
6156 int arg3 ;
6157 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6158 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6159 wxSize const &arg5_defvalue = wxDefaultSize ;
6160 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6161 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6162 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6163 long arg7 = (long) 0 ;
6164 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6165 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6166 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6167 wxString *arg9 = (wxString *) &arg9_defvalue ;
6168 bool result;
6169 wxPoint temp4 ;
6170 wxSize temp5 ;
6171 bool temp6 = False ;
6172 bool temp9 = False ;
6173 PyObject * obj0 = 0 ;
6174 PyObject * obj1 = 0 ;
6175 PyObject * obj2 = 0 ;
6176 PyObject * obj3 = 0 ;
6177 PyObject * obj4 = 0 ;
6178 PyObject * obj5 = 0 ;
6179 PyObject * obj6 = 0 ;
6180 PyObject * obj7 = 0 ;
6181 PyObject * obj8 = 0 ;
6182 char *kwnames[] = {
6183 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6184 };
6185
6186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6191 arg3 = (int) SWIG_AsInt(obj2);
6192 if (PyErr_Occurred()) SWIG_fail;
6193 if (obj3) {
6194 {
6195 arg4 = &temp4;
6196 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6197 }
6198 }
6199 if (obj4) {
6200 {
6201 arg5 = &temp5;
6202 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6203 }
6204 }
6205 if (obj5) {
6206 {
6207 if (! PySequence_Check(obj5)) {
6208 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6209 SWIG_fail;
6210 }
6211 arg6 = new wxArrayString;
6212 temp6 = True;
6213 int i, len=PySequence_Length(obj5);
6214 for (i=0; i<len; i++) {
6215 PyObject* item = PySequence_GetItem(obj5, i);
6216 #if wxUSE_UNICODE
6217 PyObject* str = PyObject_Unicode(item);
6218 #else
6219 PyObject* str = PyObject_Str(item);
6220 #endif
6221 arg6->Add(Py2wxString(str));
6222 Py_DECREF(item);
6223 Py_DECREF(str);
6224 }
6225 }
6226 }
6227 if (obj6) {
6228 arg7 = (long) SWIG_AsLong(obj6);
6229 if (PyErr_Occurred()) SWIG_fail;
6230 }
6231 if (obj7) {
6232 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6233 SWIG_POINTER_EXCEPTION | 0)) == -1)
6234 SWIG_fail;
6235 if (arg8 == NULL) {
6236 PyErr_SetString(PyExc_TypeError,"null reference");
6237 SWIG_fail;
6238 }
6239 }
6240 if (obj8) {
6241 {
6242 arg9 = wxString_in_helper(obj8);
6243 if (arg9 == NULL) SWIG_fail;
6244 temp9 = True;
6245 }
6246 }
6247 {
6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
6249 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6250
6251 wxPyEndAllowThreads(__tstate);
6252 if (PyErr_Occurred()) SWIG_fail;
6253 }
6254 {
6255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6256 }
6257 {
6258 if (temp6) delete arg6;
6259 }
6260 {
6261 if (temp9)
6262 delete arg9;
6263 }
6264 return resultobj;
6265 fail:
6266 {
6267 if (temp6) delete arg6;
6268 }
6269 {
6270 if (temp9)
6271 delete arg9;
6272 }
6273 return NULL;
6274 }
6275
6276
6277 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
6278 PyObject *resultobj;
6279 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6280 int arg2 ;
6281 bool result;
6282 PyObject * obj0 = 0 ;
6283 PyObject * obj1 = 0 ;
6284 char *kwnames[] = {
6285 (char *) "self",(char *) "index", NULL
6286 };
6287
6288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6291 arg2 = (int) SWIG_AsInt(obj1);
6292 if (PyErr_Occurred()) SWIG_fail;
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 result = (bool)(arg1)->IsChecked(arg2);
6296
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 {
6301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6302 }
6303 return resultobj;
6304 fail:
6305 return NULL;
6306 }
6307
6308
6309 static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj;
6311 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6312 int arg2 ;
6313 int arg3 = (int) True ;
6314 PyObject * obj0 = 0 ;
6315 PyObject * obj1 = 0 ;
6316 PyObject * obj2 = 0 ;
6317 char *kwnames[] = {
6318 (char *) "self",(char *) "index",(char *) "check", NULL
6319 };
6320
6321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6324 arg2 = (int) SWIG_AsInt(obj1);
6325 if (PyErr_Occurred()) SWIG_fail;
6326 if (obj2) {
6327 arg3 = (int) SWIG_AsInt(obj2);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 {
6331 PyThreadState* __tstate = wxPyBeginAllowThreads();
6332 (arg1)->Check(arg2,arg3);
6333
6334 wxPyEndAllowThreads(__tstate);
6335 if (PyErr_Occurred()) SWIG_fail;
6336 }
6337 Py_INCREF(Py_None); resultobj = Py_None;
6338 return resultobj;
6339 fail:
6340 return NULL;
6341 }
6342
6343
6344 static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
6345 PyObject *resultobj;
6346 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6347 wxPoint *arg2 = 0 ;
6348 int result;
6349 wxPoint temp2 ;
6350 PyObject * obj0 = 0 ;
6351 PyObject * obj1 = 0 ;
6352 char *kwnames[] = {
6353 (char *) "self",(char *) "pt", NULL
6354 };
6355
6356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6359 {
6360 arg2 = &temp2;
6361 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6362 }
6363 {
6364 PyThreadState* __tstate = wxPyBeginAllowThreads();
6365 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6366
6367 wxPyEndAllowThreads(__tstate);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 resultobj = SWIG_FromInt((int)result);
6371 return resultobj;
6372 fail:
6373 return NULL;
6374 }
6375
6376
6377 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
6378 PyObject *resultobj;
6379 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6380 int arg2 ;
6381 int arg3 ;
6382 int result;
6383 PyObject * obj0 = 0 ;
6384 PyObject * obj1 = 0 ;
6385 PyObject * obj2 = 0 ;
6386 char *kwnames[] = {
6387 (char *) "self",(char *) "x",(char *) "y", NULL
6388 };
6389
6390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6393 arg2 = (int) SWIG_AsInt(obj1);
6394 if (PyErr_Occurred()) SWIG_fail;
6395 arg3 = (int) SWIG_AsInt(obj2);
6396 if (PyErr_Occurred()) SWIG_fail;
6397 {
6398 PyThreadState* __tstate = wxPyBeginAllowThreads();
6399 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6400
6401 wxPyEndAllowThreads(__tstate);
6402 if (PyErr_Occurred()) SWIG_fail;
6403 }
6404 resultobj = SWIG_FromInt((int)result);
6405 return resultobj;
6406 fail:
6407 return NULL;
6408 }
6409
6410
6411 static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) {
6412 PyObject *obj;
6413 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6414 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6415 Py_INCREF(obj);
6416 return Py_BuildValue((char *)"");
6417 }
6418 static int _wrap_TextCtrlNameStr_set(PyObject *) {
6419 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6420 return 1;
6421 }
6422
6423
6424 static PyObject *_wrap_TextCtrlNameStr_get() {
6425 PyObject *pyobj;
6426
6427 {
6428 #if wxUSE_UNICODE
6429 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6430 #else
6431 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6432 #endif
6433 }
6434 return pyobj;
6435 }
6436
6437
6438 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *, PyObject *args) {
6439 PyObject *resultobj;
6440 wxTextAttr *result;
6441
6442 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6443 {
6444 PyThreadState* __tstate = wxPyBeginAllowThreads();
6445 result = (wxTextAttr *)new wxTextAttr();
6446
6447 wxPyEndAllowThreads(__tstate);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 }
6450 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6451 return resultobj;
6452 fail:
6453 return NULL;
6454 }
6455
6456
6457 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *, PyObject *args) {
6458 PyObject *resultobj;
6459 wxColour *arg1 = 0 ;
6460 wxColour const &arg2_defvalue = wxNullColour ;
6461 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6462 wxFont const &arg3_defvalue = wxNullFont ;
6463 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6464 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6465 wxTextAttr *result;
6466 wxColour temp1 ;
6467 wxColour temp2 ;
6468 PyObject * obj0 = 0 ;
6469 PyObject * obj1 = 0 ;
6470 PyObject * obj2 = 0 ;
6471 PyObject * obj3 = 0 ;
6472
6473 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6474 {
6475 arg1 = &temp1;
6476 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6477 }
6478 if (obj1) {
6479 {
6480 arg2 = &temp2;
6481 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6482 }
6483 }
6484 if (obj2) {
6485 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6486 SWIG_POINTER_EXCEPTION | 0)) == -1)
6487 SWIG_fail;
6488 if (arg3 == NULL) {
6489 PyErr_SetString(PyExc_TypeError,"null reference");
6490 SWIG_fail;
6491 }
6492 }
6493 if (obj3) {
6494 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 {
6498 PyThreadState* __tstate = wxPyBeginAllowThreads();
6499 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6500
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6505 return resultobj;
6506 fail:
6507 return NULL;
6508 }
6509
6510
6511 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6512 int argc;
6513 PyObject *argv[5];
6514 int ii;
6515
6516 argc = PyObject_Length(args);
6517 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6518 argv[ii] = PyTuple_GetItem(args,ii);
6519 }
6520 if (argc == 0) {
6521 return _wrap_new_TextAttr__SWIG_0(self,args);
6522 }
6523 if ((argc >= 1) && (argc <= 4)) {
6524 int _v;
6525 {
6526 _v = wxColour_typecheck(argv[0]);
6527 }
6528 if (_v) {
6529 if (argc <= 1) {
6530 return _wrap_new_TextAttr__SWIG_1(self,args);
6531 }
6532 {
6533 _v = wxColour_typecheck(argv[1]);
6534 }
6535 if (_v) {
6536 if (argc <= 2) {
6537 return _wrap_new_TextAttr__SWIG_1(self,args);
6538 }
6539 {
6540 void *ptr;
6541 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
6542 _v = 0;
6543 PyErr_Clear();
6544 } else {
6545 _v = 1;
6546 }
6547 }
6548 if (_v) {
6549 if (argc <= 3) {
6550 return _wrap_new_TextAttr__SWIG_1(self,args);
6551 }
6552 _v = SWIG_CheckInt(argv[3]);
6553 if (_v) {
6554 return _wrap_new_TextAttr__SWIG_1(self,args);
6555 }
6556 }
6557 }
6558 }
6559 }
6560
6561 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
6562 return NULL;
6563 }
6564
6565
6566 static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
6567 PyObject *resultobj;
6568 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6569 PyObject * obj0 = 0 ;
6570 char *kwnames[] = {
6571 (char *) "self", NULL
6572 };
6573
6574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
6575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6577 {
6578 PyThreadState* __tstate = wxPyBeginAllowThreads();
6579 delete arg1;
6580
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 Py_INCREF(Py_None); resultobj = Py_None;
6585 return resultobj;
6586 fail:
6587 return NULL;
6588 }
6589
6590
6591 static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) {
6592 PyObject *resultobj;
6593 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6594 PyObject * obj0 = 0 ;
6595 char *kwnames[] = {
6596 (char *) "self", NULL
6597 };
6598
6599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
6600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6602 {
6603 PyThreadState* __tstate = wxPyBeginAllowThreads();
6604 (arg1)->Init();
6605
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 Py_INCREF(Py_None); resultobj = Py_None;
6610 return resultobj;
6611 fail:
6612 return NULL;
6613 }
6614
6615
6616 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
6617 PyObject *resultobj;
6618 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6619 wxColour *arg2 = 0 ;
6620 wxColour temp2 ;
6621 PyObject * obj0 = 0 ;
6622 PyObject * obj1 = 0 ;
6623 char *kwnames[] = {
6624 (char *) "self",(char *) "colText", NULL
6625 };
6626
6627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
6628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6630 {
6631 arg2 = &temp2;
6632 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6633 }
6634 {
6635 PyThreadState* __tstate = wxPyBeginAllowThreads();
6636 (arg1)->SetTextColour((wxColour const &)*arg2);
6637
6638 wxPyEndAllowThreads(__tstate);
6639 if (PyErr_Occurred()) SWIG_fail;
6640 }
6641 Py_INCREF(Py_None); resultobj = Py_None;
6642 return resultobj;
6643 fail:
6644 return NULL;
6645 }
6646
6647
6648 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6649 PyObject *resultobj;
6650 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6651 wxColour *arg2 = 0 ;
6652 wxColour temp2 ;
6653 PyObject * obj0 = 0 ;
6654 PyObject * obj1 = 0 ;
6655 char *kwnames[] = {
6656 (char *) "self",(char *) "colBack", NULL
6657 };
6658
6659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
6660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6662 {
6663 arg2 = &temp2;
6664 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6665 }
6666 {
6667 PyThreadState* __tstate = wxPyBeginAllowThreads();
6668 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
6669
6670 wxPyEndAllowThreads(__tstate);
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 Py_INCREF(Py_None); resultobj = Py_None;
6674 return resultobj;
6675 fail:
6676 return NULL;
6677 }
6678
6679
6680 static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
6681 PyObject *resultobj;
6682 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6683 wxFont *arg2 = 0 ;
6684 long arg3 = (long) wxTEXT_ATTR_FONT ;
6685 PyObject * obj0 = 0 ;
6686 PyObject * obj1 = 0 ;
6687 PyObject * obj2 = 0 ;
6688 char *kwnames[] = {
6689 (char *) "self",(char *) "font",(char *) "flags", NULL
6690 };
6691
6692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6695 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6696 SWIG_POINTER_EXCEPTION | 0)) == -1)
6697 SWIG_fail;
6698 if (arg2 == NULL) {
6699 PyErr_SetString(PyExc_TypeError,"null reference");
6700 SWIG_fail;
6701 }
6702 if (obj2) {
6703 arg3 = (long) SWIG_AsLong(obj2);
6704 if (PyErr_Occurred()) SWIG_fail;
6705 }
6706 {
6707 PyThreadState* __tstate = wxPyBeginAllowThreads();
6708 (arg1)->SetFont((wxFont const &)*arg2,arg3);
6709
6710 wxPyEndAllowThreads(__tstate);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 Py_INCREF(Py_None); resultobj = Py_None;
6714 return resultobj;
6715 fail:
6716 return NULL;
6717 }
6718
6719
6720 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
6721 PyObject *resultobj;
6722 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6723 int arg2 ;
6724 PyObject * obj0 = 0 ;
6725 PyObject * obj1 = 0 ;
6726 char *kwnames[] = {
6727 (char *) "self",(char *) "alignment", NULL
6728 };
6729
6730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
6731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6733 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
6734 if (PyErr_Occurred()) SWIG_fail;
6735 {
6736 PyThreadState* __tstate = wxPyBeginAllowThreads();
6737 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
6738
6739 wxPyEndAllowThreads(__tstate);
6740 if (PyErr_Occurred()) SWIG_fail;
6741 }
6742 Py_INCREF(Py_None); resultobj = Py_None;
6743 return resultobj;
6744 fail:
6745 return NULL;
6746 }
6747
6748
6749 static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
6750 PyObject *resultobj;
6751 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6752 wxArrayInt *arg2 = 0 ;
6753 bool temp2 = False ;
6754 PyObject * obj0 = 0 ;
6755 PyObject * obj1 = 0 ;
6756 char *kwnames[] = {
6757 (char *) "self",(char *) "tabs", NULL
6758 };
6759
6760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
6761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6763 {
6764 if (! PySequence_Check(obj1)) {
6765 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
6766 SWIG_fail;
6767 }
6768 arg2 = new wxArrayInt;
6769 temp2 = True;
6770 int i, len=PySequence_Length(obj1);
6771 for (i=0; i<len; i++) {
6772 PyObject* item = PySequence_GetItem(obj1, i);
6773 PyObject* number = PyNumber_Int(item);
6774 arg2->Add(PyInt_AS_LONG(number));
6775 Py_DECREF(item);
6776 Py_DECREF(number);
6777 }
6778 }
6779 {
6780 PyThreadState* __tstate = wxPyBeginAllowThreads();
6781 (arg1)->SetTabs((wxArrayInt const &)*arg2);
6782
6783 wxPyEndAllowThreads(__tstate);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 Py_INCREF(Py_None); resultobj = Py_None;
6787 {
6788 if (temp2) delete arg2;
6789 }
6790 return resultobj;
6791 fail:
6792 {
6793 if (temp2) delete arg2;
6794 }
6795 return NULL;
6796 }
6797
6798
6799 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj;
6801 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6802 int arg2 ;
6803 PyObject * obj0 = 0 ;
6804 PyObject * obj1 = 0 ;
6805 char *kwnames[] = {
6806 (char *) "self",(char *) "indent", NULL
6807 };
6808
6809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail;
6810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6812 arg2 = (int) SWIG_AsInt(obj1);
6813 if (PyErr_Occurred()) SWIG_fail;
6814 {
6815 PyThreadState* __tstate = wxPyBeginAllowThreads();
6816 (arg1)->SetLeftIndent(arg2);
6817
6818 wxPyEndAllowThreads(__tstate);
6819 if (PyErr_Occurred()) SWIG_fail;
6820 }
6821 Py_INCREF(Py_None); resultobj = Py_None;
6822 return resultobj;
6823 fail:
6824 return NULL;
6825 }
6826
6827
6828 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
6829 PyObject *resultobj;
6830 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6831 int arg2 ;
6832 PyObject * obj0 = 0 ;
6833 PyObject * obj1 = 0 ;
6834 char *kwnames[] = {
6835 (char *) "self",(char *) "indent", NULL
6836 };
6837
6838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
6839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6841 arg2 = (int) SWIG_AsInt(obj1);
6842 if (PyErr_Occurred()) SWIG_fail;
6843 {
6844 PyThreadState* __tstate = wxPyBeginAllowThreads();
6845 (arg1)->SetRightIndent(arg2);
6846
6847 wxPyEndAllowThreads(__tstate);
6848 if (PyErr_Occurred()) SWIG_fail;
6849 }
6850 Py_INCREF(Py_None); resultobj = Py_None;
6851 return resultobj;
6852 fail:
6853 return NULL;
6854 }
6855
6856
6857 static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
6858 PyObject *resultobj;
6859 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6860 long arg2 ;
6861 PyObject * obj0 = 0 ;
6862 PyObject * obj1 = 0 ;
6863 char *kwnames[] = {
6864 (char *) "self",(char *) "flags", NULL
6865 };
6866
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
6868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6870 arg2 = (long) SWIG_AsLong(obj1);
6871 if (PyErr_Occurred()) SWIG_fail;
6872 {
6873 PyThreadState* __tstate = wxPyBeginAllowThreads();
6874 (arg1)->SetFlags(arg2);
6875
6876 wxPyEndAllowThreads(__tstate);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 Py_INCREF(Py_None); resultobj = Py_None;
6880 return resultobj;
6881 fail:
6882 return NULL;
6883 }
6884
6885
6886 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
6887 PyObject *resultobj;
6888 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6889 bool result;
6890 PyObject * obj0 = 0 ;
6891 char *kwnames[] = {
6892 (char *) "self", NULL
6893 };
6894
6895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
6896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6898 {
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 {
6906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6907 }
6908 return resultobj;
6909 fail:
6910 return NULL;
6911 }
6912
6913
6914 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6915 PyObject *resultobj;
6916 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6917 bool result;
6918 PyObject * obj0 = 0 ;
6919 char *kwnames[] = {
6920 (char *) "self", NULL
6921 };
6922
6923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
6924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6926 {
6927 PyThreadState* __tstate = wxPyBeginAllowThreads();
6928 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
6929
6930 wxPyEndAllowThreads(__tstate);
6931 if (PyErr_Occurred()) SWIG_fail;
6932 }
6933 {
6934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6935 }
6936 return resultobj;
6937 fail:
6938 return NULL;
6939 }
6940
6941
6942 static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
6943 PyObject *resultobj;
6944 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6945 bool result;
6946 PyObject * obj0 = 0 ;
6947 char *kwnames[] = {
6948 (char *) "self", NULL
6949 };
6950
6951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
6952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6954 {
6955 PyThreadState* __tstate = wxPyBeginAllowThreads();
6956 result = (bool)((wxTextAttr const *)arg1)->HasFont();
6957
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 {
6962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6963 }
6964 return resultobj;
6965 fail:
6966 return NULL;
6967 }
6968
6969
6970 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
6971 PyObject *resultobj;
6972 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6973 bool result;
6974 PyObject * obj0 = 0 ;
6975 char *kwnames[] = {
6976 (char *) "self", NULL
6977 };
6978
6979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
6980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6982 {
6983 PyThreadState* __tstate = wxPyBeginAllowThreads();
6984 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
6985
6986 wxPyEndAllowThreads(__tstate);
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
6989 {
6990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6991 }
6992 return resultobj;
6993 fail:
6994 return NULL;
6995 }
6996
6997
6998 static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) {
6999 PyObject *resultobj;
7000 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7001 bool result;
7002 PyObject * obj0 = 0 ;
7003 char *kwnames[] = {
7004 (char *) "self", NULL
7005 };
7006
7007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7010 {
7011 PyThreadState* __tstate = wxPyBeginAllowThreads();
7012 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7013
7014 wxPyEndAllowThreads(__tstate);
7015 if (PyErr_Occurred()) SWIG_fail;
7016 }
7017 {
7018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7019 }
7020 return resultobj;
7021 fail:
7022 return NULL;
7023 }
7024
7025
7026 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7027 PyObject *resultobj;
7028 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7029 bool result;
7030 PyObject * obj0 = 0 ;
7031 char *kwnames[] = {
7032 (char *) "self", NULL
7033 };
7034
7035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7038 {
7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
7040 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7041
7042 wxPyEndAllowThreads(__tstate);
7043 if (PyErr_Occurred()) SWIG_fail;
7044 }
7045 {
7046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7047 }
7048 return resultobj;
7049 fail:
7050 return NULL;
7051 }
7052
7053
7054 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7055 PyObject *resultobj;
7056 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7057 bool result;
7058 PyObject * obj0 = 0 ;
7059 char *kwnames[] = {
7060 (char *) "self", NULL
7061 };
7062
7063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7066 {
7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
7068 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7069
7070 wxPyEndAllowThreads(__tstate);
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 {
7074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7075 }
7076 return resultobj;
7077 fail:
7078 return NULL;
7079 }
7080
7081
7082 static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
7083 PyObject *resultobj;
7084 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7085 long arg2 ;
7086 bool result;
7087 PyObject * obj0 = 0 ;
7088 PyObject * obj1 = 0 ;
7089 char *kwnames[] = {
7090 (char *) "self",(char *) "flag", NULL
7091 };
7092
7093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7096 arg2 = (long) SWIG_AsLong(obj1);
7097 if (PyErr_Occurred()) SWIG_fail;
7098 {
7099 PyThreadState* __tstate = wxPyBeginAllowThreads();
7100 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7101
7102 wxPyEndAllowThreads(__tstate);
7103 if (PyErr_Occurred()) SWIG_fail;
7104 }
7105 {
7106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7107 }
7108 return resultobj;
7109 fail:
7110 return NULL;
7111 }
7112
7113
7114 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj;
7116 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7117 wxColour *result;
7118 PyObject * obj0 = 0 ;
7119 char *kwnames[] = {
7120 (char *) "self", NULL
7121 };
7122
7123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7126 {
7127 PyThreadState* __tstate = wxPyBeginAllowThreads();
7128 {
7129 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7130 result = (wxColour *) &_result_ref;
7131 }
7132
7133 wxPyEndAllowThreads(__tstate);
7134 if (PyErr_Occurred()) SWIG_fail;
7135 }
7136 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7137 return resultobj;
7138 fail:
7139 return NULL;
7140 }
7141
7142
7143 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7144 PyObject *resultobj;
7145 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7146 wxColour *result;
7147 PyObject * obj0 = 0 ;
7148 char *kwnames[] = {
7149 (char *) "self", NULL
7150 };
7151
7152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 {
7158 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7159 result = (wxColour *) &_result_ref;
7160 }
7161
7162 wxPyEndAllowThreads(__tstate);
7163 if (PyErr_Occurred()) SWIG_fail;
7164 }
7165 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7166 return resultobj;
7167 fail:
7168 return NULL;
7169 }
7170
7171
7172 static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7173 PyObject *resultobj;
7174 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7175 wxFont *result;
7176 PyObject * obj0 = 0 ;
7177 char *kwnames[] = {
7178 (char *) "self", NULL
7179 };
7180
7181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 {
7187 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7188 result = (wxFont *) &_result_ref;
7189 }
7190
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
7194 {
7195 wxFont* resultptr = new wxFont(*result);
7196 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7197 }
7198 return resultobj;
7199 fail:
7200 return NULL;
7201 }
7202
7203
7204 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7205 PyObject *resultobj;
7206 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7207 int result;
7208 PyObject * obj0 = 0 ;
7209 char *kwnames[] = {
7210 (char *) "self", NULL
7211 };
7212
7213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7216 {
7217 PyThreadState* __tstate = wxPyBeginAllowThreads();
7218 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7219
7220 wxPyEndAllowThreads(__tstate);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 resultobj = SWIG_FromInt((int)result);
7224 return resultobj;
7225 fail:
7226 return NULL;
7227 }
7228
7229
7230 static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7231 PyObject *resultobj;
7232 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7233 wxArrayInt *result;
7234 PyObject * obj0 = 0 ;
7235 char *kwnames[] = {
7236 (char *) "self", NULL
7237 };
7238
7239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7242 {
7243 PyThreadState* __tstate = wxPyBeginAllowThreads();
7244 {
7245 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7246 result = (wxArrayInt *) &_result_ref;
7247 }
7248
7249 wxPyEndAllowThreads(__tstate);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 }
7252 {
7253 resultobj = PyList_New(0);
7254 size_t idx;
7255 for (idx = 0; idx < result->GetCount(); idx += 1) {
7256 PyObject* val = PyInt_FromLong( result->Item(idx) );
7257 PyList_Append(resultobj, val);
7258 Py_DECREF(val);
7259 }
7260 }
7261 return resultobj;
7262 fail:
7263 return NULL;
7264 }
7265
7266
7267 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7268 PyObject *resultobj;
7269 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7270 long result;
7271 PyObject * obj0 = 0 ;
7272 char *kwnames[] = {
7273 (char *) "self", NULL
7274 };
7275
7276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7279 {
7280 PyThreadState* __tstate = wxPyBeginAllowThreads();
7281 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7282
7283 wxPyEndAllowThreads(__tstate);
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 resultobj = SWIG_FromLong((long)result);
7287 return resultobj;
7288 fail:
7289 return NULL;
7290 }
7291
7292
7293 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7294 PyObject *resultobj;
7295 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7296 long result;
7297 PyObject * obj0 = 0 ;
7298 char *kwnames[] = {
7299 (char *) "self", NULL
7300 };
7301
7302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7305 {
7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
7307 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7308
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_FromLong((long)result);
7313 return resultobj;
7314 fail:
7315 return NULL;
7316 }
7317
7318
7319 static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7320 PyObject *resultobj;
7321 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7322 long result;
7323 PyObject * obj0 = 0 ;
7324 char *kwnames[] = {
7325 (char *) "self", NULL
7326 };
7327
7328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7331 {
7332 PyThreadState* __tstate = wxPyBeginAllowThreads();
7333 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7334
7335 wxPyEndAllowThreads(__tstate);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 resultobj = SWIG_FromLong((long)result);
7339 return resultobj;
7340 fail:
7341 return NULL;
7342 }
7343
7344
7345 static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) {
7346 PyObject *resultobj;
7347 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7348 bool result;
7349 PyObject * obj0 = 0 ;
7350 char *kwnames[] = {
7351 (char *) "self", NULL
7352 };
7353
7354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7357 {
7358 PyThreadState* __tstate = wxPyBeginAllowThreads();
7359 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7360
7361 wxPyEndAllowThreads(__tstate);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 {
7365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7366 }
7367 return resultobj;
7368 fail:
7369 return NULL;
7370 }
7371
7372
7373 static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) {
7374 PyObject *resultobj;
7375 wxTextAttr *arg1 = 0 ;
7376 wxTextAttr *arg2 = 0 ;
7377 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7378 wxTextAttr result;
7379 PyObject * obj0 = 0 ;
7380 PyObject * obj1 = 0 ;
7381 PyObject * obj2 = 0 ;
7382 char *kwnames[] = {
7383 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7384 };
7385
7386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7388 SWIG_POINTER_EXCEPTION | 0)) == -1)
7389 SWIG_fail;
7390 if (arg1 == NULL) {
7391 PyErr_SetString(PyExc_TypeError,"null reference");
7392 SWIG_fail;
7393 }
7394 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7395 SWIG_POINTER_EXCEPTION | 0)) == -1)
7396 SWIG_fail;
7397 if (arg2 == NULL) {
7398 PyErr_SetString(PyExc_TypeError,"null reference");
7399 SWIG_fail;
7400 }
7401 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7403 {
7404 PyThreadState* __tstate = wxPyBeginAllowThreads();
7405 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7406
7407 wxPyEndAllowThreads(__tstate);
7408 if (PyErr_Occurred()) SWIG_fail;
7409 }
7410 {
7411 wxTextAttr * resultptr;
7412 resultptr = new wxTextAttr((wxTextAttr &) result);
7413 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7414 }
7415 return resultobj;
7416 fail:
7417 return NULL;
7418 }
7419
7420
7421 static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) {
7422 PyObject *obj;
7423 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7424 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7425 Py_INCREF(obj);
7426 return Py_BuildValue((char *)"");
7427 }
7428 static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
7429 PyObject *resultobj;
7430 wxWindow *arg1 = (wxWindow *) 0 ;
7431 int arg2 ;
7432 wxString const &arg3_defvalue = wxPyEmptyString ;
7433 wxString *arg3 = (wxString *) &arg3_defvalue ;
7434 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7435 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7436 wxSize const &arg5_defvalue = wxDefaultSize ;
7437 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7438 long arg6 = (long) 0 ;
7439 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7440 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7441 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7442 wxString *arg8 = (wxString *) &arg8_defvalue ;
7443 wxTextCtrl *result;
7444 bool temp3 = False ;
7445 wxPoint temp4 ;
7446 wxSize temp5 ;
7447 bool temp8 = False ;
7448 PyObject * obj0 = 0 ;
7449 PyObject * obj1 = 0 ;
7450 PyObject * obj2 = 0 ;
7451 PyObject * obj3 = 0 ;
7452 PyObject * obj4 = 0 ;
7453 PyObject * obj5 = 0 ;
7454 PyObject * obj6 = 0 ;
7455 PyObject * obj7 = 0 ;
7456 char *kwnames[] = {
7457 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7458 };
7459
7460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7463 arg2 = (int) SWIG_AsInt(obj1);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 if (obj2) {
7466 {
7467 arg3 = wxString_in_helper(obj2);
7468 if (arg3 == NULL) SWIG_fail;
7469 temp3 = True;
7470 }
7471 }
7472 if (obj3) {
7473 {
7474 arg4 = &temp4;
7475 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7476 }
7477 }
7478 if (obj4) {
7479 {
7480 arg5 = &temp5;
7481 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7482 }
7483 }
7484 if (obj5) {
7485 arg6 = (long) SWIG_AsLong(obj5);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 if (obj6) {
7489 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7490 SWIG_POINTER_EXCEPTION | 0)) == -1)
7491 SWIG_fail;
7492 if (arg7 == NULL) {
7493 PyErr_SetString(PyExc_TypeError,"null reference");
7494 SWIG_fail;
7495 }
7496 }
7497 if (obj7) {
7498 {
7499 arg8 = wxString_in_helper(obj7);
7500 if (arg8 == NULL) SWIG_fail;
7501 temp8 = True;
7502 }
7503 }
7504 {
7505 PyThreadState* __tstate = wxPyBeginAllowThreads();
7506 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7507
7508 wxPyEndAllowThreads(__tstate);
7509 if (PyErr_Occurred()) SWIG_fail;
7510 }
7511 {
7512 resultobj = wxPyMake_wxObject(result);
7513 }
7514 {
7515 if (temp3)
7516 delete arg3;
7517 }
7518 {
7519 if (temp8)
7520 delete arg8;
7521 }
7522 return resultobj;
7523 fail:
7524 {
7525 if (temp3)
7526 delete arg3;
7527 }
7528 {
7529 if (temp8)
7530 delete arg8;
7531 }
7532 return NULL;
7533 }
7534
7535
7536 static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
7537 PyObject *resultobj;
7538 wxTextCtrl *result;
7539 char *kwnames[] = {
7540 NULL
7541 };
7542
7543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
7544 {
7545 PyThreadState* __tstate = wxPyBeginAllowThreads();
7546 result = (wxTextCtrl *)new wxTextCtrl();
7547
7548 wxPyEndAllowThreads(__tstate);
7549 if (PyErr_Occurred()) SWIG_fail;
7550 }
7551 {
7552 resultobj = wxPyMake_wxObject(result);
7553 }
7554 return resultobj;
7555 fail:
7556 return NULL;
7557 }
7558
7559
7560 static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
7561 PyObject *resultobj;
7562 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7563 wxWindow *arg2 = (wxWindow *) 0 ;
7564 int arg3 ;
7565 wxString const &arg4_defvalue = wxPyEmptyString ;
7566 wxString *arg4 = (wxString *) &arg4_defvalue ;
7567 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7568 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7569 wxSize const &arg6_defvalue = wxDefaultSize ;
7570 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7571 long arg7 = (long) 0 ;
7572 wxValidator const &arg8_defvalue = wxDefaultValidator ;
7573 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
7574 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
7575 wxString *arg9 = (wxString *) &arg9_defvalue ;
7576 bool result;
7577 bool temp4 = False ;
7578 wxPoint temp5 ;
7579 wxSize temp6 ;
7580 bool temp9 = False ;
7581 PyObject * obj0 = 0 ;
7582 PyObject * obj1 = 0 ;
7583 PyObject * obj2 = 0 ;
7584 PyObject * obj3 = 0 ;
7585 PyObject * obj4 = 0 ;
7586 PyObject * obj5 = 0 ;
7587 PyObject * obj6 = 0 ;
7588 PyObject * obj7 = 0 ;
7589 PyObject * obj8 = 0 ;
7590 char *kwnames[] = {
7591 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7592 };
7593
7594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
7595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7597 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7599 arg3 = (int) SWIG_AsInt(obj2);
7600 if (PyErr_Occurred()) SWIG_fail;
7601 if (obj3) {
7602 {
7603 arg4 = wxString_in_helper(obj3);
7604 if (arg4 == NULL) SWIG_fail;
7605 temp4 = True;
7606 }
7607 }
7608 if (obj4) {
7609 {
7610 arg5 = &temp5;
7611 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7612 }
7613 }
7614 if (obj5) {
7615 {
7616 arg6 = &temp6;
7617 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7618 }
7619 }
7620 if (obj6) {
7621 arg7 = (long) SWIG_AsLong(obj6);
7622 if (PyErr_Occurred()) SWIG_fail;
7623 }
7624 if (obj7) {
7625 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
7626 SWIG_POINTER_EXCEPTION | 0)) == -1)
7627 SWIG_fail;
7628 if (arg8 == NULL) {
7629 PyErr_SetString(PyExc_TypeError,"null reference");
7630 SWIG_fail;
7631 }
7632 }
7633 if (obj8) {
7634 {
7635 arg9 = wxString_in_helper(obj8);
7636 if (arg9 == NULL) SWIG_fail;
7637 temp9 = True;
7638 }
7639 }
7640 {
7641 PyThreadState* __tstate = wxPyBeginAllowThreads();
7642 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7643
7644 wxPyEndAllowThreads(__tstate);
7645 if (PyErr_Occurred()) SWIG_fail;
7646 }
7647 {
7648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7649 }
7650 {
7651 if (temp4)
7652 delete arg4;
7653 }
7654 {
7655 if (temp9)
7656 delete arg9;
7657 }
7658 return resultobj;
7659 fail:
7660 {
7661 if (temp4)
7662 delete arg4;
7663 }
7664 {
7665 if (temp9)
7666 delete arg9;
7667 }
7668 return NULL;
7669 }
7670
7671
7672 static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
7673 PyObject *resultobj;
7674 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7675 wxString result;
7676 PyObject * obj0 = 0 ;
7677 char *kwnames[] = {
7678 (char *) "self", NULL
7679 };
7680
7681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
7682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7684 {
7685 PyThreadState* __tstate = wxPyBeginAllowThreads();
7686 result = ((wxTextCtrl const *)arg1)->GetValue();
7687
7688 wxPyEndAllowThreads(__tstate);
7689 if (PyErr_Occurred()) SWIG_fail;
7690 }
7691 {
7692 #if wxUSE_UNICODE
7693 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7694 #else
7695 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7696 #endif
7697 }
7698 return resultobj;
7699 fail:
7700 return NULL;
7701 }
7702
7703
7704 static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
7705 PyObject *resultobj;
7706 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7707 wxString *arg2 = 0 ;
7708 bool temp2 = False ;
7709 PyObject * obj0 = 0 ;
7710 PyObject * obj1 = 0 ;
7711 char *kwnames[] = {
7712 (char *) "self",(char *) "value", NULL
7713 };
7714
7715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
7716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7718 {
7719 arg2 = wxString_in_helper(obj1);
7720 if (arg2 == NULL) SWIG_fail;
7721 temp2 = True;
7722 }
7723 {
7724 PyThreadState* __tstate = wxPyBeginAllowThreads();
7725 (arg1)->SetValue((wxString const &)*arg2);
7726
7727 wxPyEndAllowThreads(__tstate);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 Py_INCREF(Py_None); resultobj = Py_None;
7731 {
7732 if (temp2)
7733 delete arg2;
7734 }
7735 return resultobj;
7736 fail:
7737 {
7738 if (temp2)
7739 delete arg2;
7740 }
7741 return NULL;
7742 }
7743
7744
7745 static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
7746 PyObject *resultobj;
7747 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7748 long arg2 ;
7749 long arg3 ;
7750 wxString result;
7751 PyObject * obj0 = 0 ;
7752 PyObject * obj1 = 0 ;
7753 PyObject * obj2 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "self",(char *) "from",(char *) "to", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
7759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7761 arg2 = (long) SWIG_AsLong(obj1);
7762 if (PyErr_Occurred()) SWIG_fail;
7763 arg3 = (long) SWIG_AsLong(obj2);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 {
7766 PyThreadState* __tstate = wxPyBeginAllowThreads();
7767 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
7768
7769 wxPyEndAllowThreads(__tstate);
7770 if (PyErr_Occurred()) SWIG_fail;
7771 }
7772 {
7773 #if wxUSE_UNICODE
7774 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7775 #else
7776 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7777 #endif
7778 }
7779 return resultobj;
7780 fail:
7781 return NULL;
7782 }
7783
7784
7785 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) {
7786 PyObject *resultobj;
7787 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7788 long arg2 ;
7789 int result;
7790 PyObject * obj0 = 0 ;
7791 PyObject * obj1 = 0 ;
7792 char *kwnames[] = {
7793 (char *) "self",(char *) "lineNo", NULL
7794 };
7795
7796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
7797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7799 arg2 = (long) SWIG_AsLong(obj1);
7800 if (PyErr_Occurred()) SWIG_fail;
7801 {
7802 PyThreadState* __tstate = wxPyBeginAllowThreads();
7803 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
7804
7805 wxPyEndAllowThreads(__tstate);
7806 if (PyErr_Occurred()) SWIG_fail;
7807 }
7808 resultobj = SWIG_FromInt((int)result);
7809 return resultobj;
7810 fail:
7811 return NULL;
7812 }
7813
7814
7815 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) {
7816 PyObject *resultobj;
7817 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7818 long arg2 ;
7819 wxString result;
7820 PyObject * obj0 = 0 ;
7821 PyObject * obj1 = 0 ;
7822 char *kwnames[] = {
7823 (char *) "self",(char *) "lineNo", NULL
7824 };
7825
7826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
7827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7829 arg2 = (long) SWIG_AsLong(obj1);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 {
7832 PyThreadState* __tstate = wxPyBeginAllowThreads();
7833 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
7834
7835 wxPyEndAllowThreads(__tstate);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 {
7839 #if wxUSE_UNICODE
7840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7841 #else
7842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7843 #endif
7844 }
7845 return resultobj;
7846 fail:
7847 return NULL;
7848 }
7849
7850
7851 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) {
7852 PyObject *resultobj;
7853 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7854 int result;
7855 PyObject * obj0 = 0 ;
7856 char *kwnames[] = {
7857 (char *) "self", NULL
7858 };
7859
7860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
7861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7863 {
7864 PyThreadState* __tstate = wxPyBeginAllowThreads();
7865 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
7866
7867 wxPyEndAllowThreads(__tstate);
7868 if (PyErr_Occurred()) SWIG_fail;
7869 }
7870 resultobj = SWIG_FromInt((int)result);
7871 return resultobj;
7872 fail:
7873 return NULL;
7874 }
7875
7876
7877 static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) {
7878 PyObject *resultobj;
7879 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7880 bool result;
7881 PyObject * obj0 = 0 ;
7882 char *kwnames[] = {
7883 (char *) "self", NULL
7884 };
7885
7886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
7887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7889 {
7890 PyThreadState* __tstate = wxPyBeginAllowThreads();
7891 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
7892
7893 wxPyEndAllowThreads(__tstate);
7894 if (PyErr_Occurred()) SWIG_fail;
7895 }
7896 {
7897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7898 }
7899 return resultobj;
7900 fail:
7901 return NULL;
7902 }
7903
7904
7905 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
7906 PyObject *resultobj;
7907 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7908 bool result;
7909 PyObject * obj0 = 0 ;
7910 char *kwnames[] = {
7911 (char *) "self", NULL
7912 };
7913
7914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
7915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7917 {
7918 PyThreadState* __tstate = wxPyBeginAllowThreads();
7919 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
7920
7921 wxPyEndAllowThreads(__tstate);
7922 if (PyErr_Occurred()) SWIG_fail;
7923 }
7924 {
7925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7926 }
7927 return resultobj;
7928 fail:
7929 return NULL;
7930 }
7931
7932
7933 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) {
7934 PyObject *resultobj;
7935 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7936 bool result;
7937 PyObject * obj0 = 0 ;
7938 char *kwnames[] = {
7939 (char *) "self", NULL
7940 };
7941
7942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
7943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7945 {
7946 PyThreadState* __tstate = wxPyBeginAllowThreads();
7947 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
7948
7949 wxPyEndAllowThreads(__tstate);
7950 if (PyErr_Occurred()) SWIG_fail;
7951 }
7952 {
7953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7954 }
7955 return resultobj;
7956 fail:
7957 return NULL;
7958 }
7959
7960
7961 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) {
7962 PyObject *resultobj;
7963 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7964 bool result;
7965 PyObject * obj0 = 0 ;
7966 char *kwnames[] = {
7967 (char *) "self", NULL
7968 };
7969
7970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
7971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7973 {
7974 PyThreadState* __tstate = wxPyBeginAllowThreads();
7975 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
7976
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 {
7981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7982 }
7983 return resultobj;
7984 fail:
7985 return NULL;
7986 }
7987
7988
7989 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
7990 PyObject *resultobj;
7991 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7992 long *arg2 = (long *) 0 ;
7993 long *arg3 = (long *) 0 ;
7994 long temp2 ;
7995 long temp3 ;
7996 PyObject * obj0 = 0 ;
7997 char *kwnames[] = {
7998 (char *) "self", NULL
7999 };
8000
8001 arg2 = &temp2;
8002 arg3 = &temp3;
8003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8006 {
8007 PyThreadState* __tstate = wxPyBeginAllowThreads();
8008 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8009
8010 wxPyEndAllowThreads(__tstate);
8011 if (PyErr_Occurred()) SWIG_fail;
8012 }
8013 Py_INCREF(Py_None); resultobj = Py_None;
8014 {
8015 PyObject *o = PyInt_FromLong((long) (*arg2));
8016 resultobj = t_output_helper(resultobj,o);
8017 }
8018 {
8019 PyObject *o = PyInt_FromLong((long) (*arg3));
8020 resultobj = t_output_helper(resultobj,o);
8021 }
8022 return resultobj;
8023 fail:
8024 return NULL;
8025 }
8026
8027
8028 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8029 PyObject *resultobj;
8030 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8031 wxString result;
8032 PyObject * obj0 = 0 ;
8033 char *kwnames[] = {
8034 (char *) "self", NULL
8035 };
8036
8037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8040 {
8041 PyThreadState* __tstate = wxPyBeginAllowThreads();
8042 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8043
8044 wxPyEndAllowThreads(__tstate);
8045 if (PyErr_Occurred()) SWIG_fail;
8046 }
8047 {
8048 #if wxUSE_UNICODE
8049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8050 #else
8051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8052 #endif
8053 }
8054 return resultobj;
8055 fail:
8056 return NULL;
8057 }
8058
8059
8060 static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
8061 PyObject *resultobj;
8062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8063 PyObject * obj0 = 0 ;
8064 char *kwnames[] = {
8065 (char *) "self", NULL
8066 };
8067
8068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8071 {
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 (arg1)->Clear();
8074
8075 wxPyEndAllowThreads(__tstate);
8076 if (PyErr_Occurred()) SWIG_fail;
8077 }
8078 Py_INCREF(Py_None); resultobj = Py_None;
8079 return resultobj;
8080 fail:
8081 return NULL;
8082 }
8083
8084
8085 static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
8086 PyObject *resultobj;
8087 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8088 long arg2 ;
8089 long arg3 ;
8090 wxString *arg4 = 0 ;
8091 bool temp4 = False ;
8092 PyObject * obj0 = 0 ;
8093 PyObject * obj1 = 0 ;
8094 PyObject * obj2 = 0 ;
8095 PyObject * obj3 = 0 ;
8096 char *kwnames[] = {
8097 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8098 };
8099
8100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8103 arg2 = (long) SWIG_AsLong(obj1);
8104 if (PyErr_Occurred()) SWIG_fail;
8105 arg3 = (long) SWIG_AsLong(obj2);
8106 if (PyErr_Occurred()) SWIG_fail;
8107 {
8108 arg4 = wxString_in_helper(obj3);
8109 if (arg4 == NULL) SWIG_fail;
8110 temp4 = True;
8111 }
8112 {
8113 PyThreadState* __tstate = wxPyBeginAllowThreads();
8114 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8115
8116 wxPyEndAllowThreads(__tstate);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 Py_INCREF(Py_None); resultobj = Py_None;
8120 {
8121 if (temp4)
8122 delete arg4;
8123 }
8124 return resultobj;
8125 fail:
8126 {
8127 if (temp4)
8128 delete arg4;
8129 }
8130 return NULL;
8131 }
8132
8133
8134 static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
8135 PyObject *resultobj;
8136 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8137 long arg2 ;
8138 long arg3 ;
8139 PyObject * obj0 = 0 ;
8140 PyObject * obj1 = 0 ;
8141 PyObject * obj2 = 0 ;
8142 char *kwnames[] = {
8143 (char *) "self",(char *) "from",(char *) "to", NULL
8144 };
8145
8146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8149 arg2 = (long) SWIG_AsLong(obj1);
8150 if (PyErr_Occurred()) SWIG_fail;
8151 arg3 = (long) SWIG_AsLong(obj2);
8152 if (PyErr_Occurred()) SWIG_fail;
8153 {
8154 PyThreadState* __tstate = wxPyBeginAllowThreads();
8155 (arg1)->Remove(arg2,arg3);
8156
8157 wxPyEndAllowThreads(__tstate);
8158 if (PyErr_Occurred()) SWIG_fail;
8159 }
8160 Py_INCREF(Py_None); resultobj = Py_None;
8161 return resultobj;
8162 fail:
8163 return NULL;
8164 }
8165
8166
8167 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
8168 PyObject *resultobj;
8169 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8170 wxString *arg2 = 0 ;
8171 bool result;
8172 bool temp2 = False ;
8173 PyObject * obj0 = 0 ;
8174 PyObject * obj1 = 0 ;
8175 char *kwnames[] = {
8176 (char *) "self",(char *) "file", NULL
8177 };
8178
8179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8182 {
8183 arg2 = wxString_in_helper(obj1);
8184 if (arg2 == NULL) SWIG_fail;
8185 temp2 = True;
8186 }
8187 {
8188 PyThreadState* __tstate = wxPyBeginAllowThreads();
8189 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8190
8191 wxPyEndAllowThreads(__tstate);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 }
8194 {
8195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8196 }
8197 {
8198 if (temp2)
8199 delete arg2;
8200 }
8201 return resultobj;
8202 fail:
8203 {
8204 if (temp2)
8205 delete arg2;
8206 }
8207 return NULL;
8208 }
8209
8210
8211 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
8212 PyObject *resultobj;
8213 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8214 wxString const &arg2_defvalue = wxPyEmptyString ;
8215 wxString *arg2 = (wxString *) &arg2_defvalue ;
8216 bool result;
8217 bool temp2 = False ;
8218 PyObject * obj0 = 0 ;
8219 PyObject * obj1 = 0 ;
8220 char *kwnames[] = {
8221 (char *) "self",(char *) "file", NULL
8222 };
8223
8224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8227 if (obj1) {
8228 {
8229 arg2 = wxString_in_helper(obj1);
8230 if (arg2 == NULL) SWIG_fail;
8231 temp2 = True;
8232 }
8233 }
8234 {
8235 PyThreadState* __tstate = wxPyBeginAllowThreads();
8236 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8237
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 {
8242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8243 }
8244 {
8245 if (temp2)
8246 delete arg2;
8247 }
8248 return resultobj;
8249 fail:
8250 {
8251 if (temp2)
8252 delete arg2;
8253 }
8254 return NULL;
8255 }
8256
8257
8258 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) {
8259 PyObject *resultobj;
8260 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8261 PyObject * obj0 = 0 ;
8262 char *kwnames[] = {
8263 (char *) "self", NULL
8264 };
8265
8266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8269 {
8270 PyThreadState* __tstate = wxPyBeginAllowThreads();
8271 (arg1)->MarkDirty();
8272
8273 wxPyEndAllowThreads(__tstate);
8274 if (PyErr_Occurred()) SWIG_fail;
8275 }
8276 Py_INCREF(Py_None); resultobj = Py_None;
8277 return resultobj;
8278 fail:
8279 return NULL;
8280 }
8281
8282
8283 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) {
8284 PyObject *resultobj;
8285 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8286 PyObject * obj0 = 0 ;
8287 char *kwnames[] = {
8288 (char *) "self", NULL
8289 };
8290
8291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 (arg1)->DiscardEdits();
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 Py_INCREF(Py_None); resultobj = Py_None;
8302 return resultobj;
8303 fail:
8304 return NULL;
8305 }
8306
8307
8308 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) {
8309 PyObject *resultobj;
8310 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8311 unsigned long arg2 ;
8312 PyObject * obj0 = 0 ;
8313 PyObject * obj1 = 0 ;
8314 char *kwnames[] = {
8315 (char *) "self",(char *) "len", NULL
8316 };
8317
8318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8321 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8322 if (PyErr_Occurred()) SWIG_fail;
8323 {
8324 PyThreadState* __tstate = wxPyBeginAllowThreads();
8325 (arg1)->SetMaxLength(arg2);
8326
8327 wxPyEndAllowThreads(__tstate);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 Py_INCREF(Py_None); resultobj = Py_None;
8331 return resultobj;
8332 fail:
8333 return NULL;
8334 }
8335
8336
8337 static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) {
8338 PyObject *resultobj;
8339 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8340 wxString *arg2 = 0 ;
8341 bool temp2 = False ;
8342 PyObject * obj0 = 0 ;
8343 PyObject * obj1 = 0 ;
8344 char *kwnames[] = {
8345 (char *) "self",(char *) "text", NULL
8346 };
8347
8348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8351 {
8352 arg2 = wxString_in_helper(obj1);
8353 if (arg2 == NULL) SWIG_fail;
8354 temp2 = True;
8355 }
8356 {
8357 PyThreadState* __tstate = wxPyBeginAllowThreads();
8358 (arg1)->WriteText((wxString const &)*arg2);
8359
8360 wxPyEndAllowThreads(__tstate);
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 Py_INCREF(Py_None); resultobj = Py_None;
8364 {
8365 if (temp2)
8366 delete arg2;
8367 }
8368 return resultobj;
8369 fail:
8370 {
8371 if (temp2)
8372 delete arg2;
8373 }
8374 return NULL;
8375 }
8376
8377
8378 static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) {
8379 PyObject *resultobj;
8380 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8381 wxString *arg2 = 0 ;
8382 bool temp2 = False ;
8383 PyObject * obj0 = 0 ;
8384 PyObject * obj1 = 0 ;
8385 char *kwnames[] = {
8386 (char *) "self",(char *) "text", NULL
8387 };
8388
8389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8392 {
8393 arg2 = wxString_in_helper(obj1);
8394 if (arg2 == NULL) SWIG_fail;
8395 temp2 = True;
8396 }
8397 {
8398 PyThreadState* __tstate = wxPyBeginAllowThreads();
8399 (arg1)->AppendText((wxString const &)*arg2);
8400
8401 wxPyEndAllowThreads(__tstate);
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 Py_INCREF(Py_None); resultobj = Py_None;
8405 {
8406 if (temp2)
8407 delete arg2;
8408 }
8409 return resultobj;
8410 fail:
8411 {
8412 if (temp2)
8413 delete arg2;
8414 }
8415 return NULL;
8416 }
8417
8418
8419 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) {
8420 PyObject *resultobj;
8421 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8422 wxKeyEvent *arg2 = 0 ;
8423 bool result;
8424 PyObject * obj0 = 0 ;
8425 PyObject * obj1 = 0 ;
8426 char *kwnames[] = {
8427 (char *) "self",(char *) "event", NULL
8428 };
8429
8430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8433 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8434 SWIG_POINTER_EXCEPTION | 0)) == -1)
8435 SWIG_fail;
8436 if (arg2 == NULL) {
8437 PyErr_SetString(PyExc_TypeError,"null reference");
8438 SWIG_fail;
8439 }
8440 {
8441 PyThreadState* __tstate = wxPyBeginAllowThreads();
8442 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8443
8444 wxPyEndAllowThreads(__tstate);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 {
8448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8449 }
8450 return resultobj;
8451 fail:
8452 return NULL;
8453 }
8454
8455
8456 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8457 PyObject *resultobj;
8458 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8459 long arg2 ;
8460 long arg3 ;
8461 wxTextAttr *arg4 = 0 ;
8462 bool result;
8463 PyObject * obj0 = 0 ;
8464 PyObject * obj1 = 0 ;
8465 PyObject * obj2 = 0 ;
8466 PyObject * obj3 = 0 ;
8467 char *kwnames[] = {
8468 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8469 };
8470
8471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8474 arg2 = (long) SWIG_AsLong(obj1);
8475 if (PyErr_Occurred()) SWIG_fail;
8476 arg3 = (long) SWIG_AsLong(obj2);
8477 if (PyErr_Occurred()) SWIG_fail;
8478 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8479 SWIG_POINTER_EXCEPTION | 0)) == -1)
8480 SWIG_fail;
8481 if (arg4 == NULL) {
8482 PyErr_SetString(PyExc_TypeError,"null reference");
8483 SWIG_fail;
8484 }
8485 {
8486 PyThreadState* __tstate = wxPyBeginAllowThreads();
8487 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8488
8489 wxPyEndAllowThreads(__tstate);
8490 if (PyErr_Occurred()) SWIG_fail;
8491 }
8492 {
8493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8494 }
8495 return resultobj;
8496 fail:
8497 return NULL;
8498 }
8499
8500
8501 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj;
8503 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8504 long arg2 ;
8505 wxTextAttr *arg3 = 0 ;
8506 bool result;
8507 PyObject * obj0 = 0 ;
8508 PyObject * obj1 = 0 ;
8509 PyObject * obj2 = 0 ;
8510 char *kwnames[] = {
8511 (char *) "self",(char *) "position",(char *) "style", NULL
8512 };
8513
8514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8517 arg2 = (long) SWIG_AsLong(obj1);
8518 if (PyErr_Occurred()) SWIG_fail;
8519 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
8520 SWIG_POINTER_EXCEPTION | 0)) == -1)
8521 SWIG_fail;
8522 if (arg3 == NULL) {
8523 PyErr_SetString(PyExc_TypeError,"null reference");
8524 SWIG_fail;
8525 }
8526 {
8527 PyThreadState* __tstate = wxPyBeginAllowThreads();
8528 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8529
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 {
8534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8535 }
8536 return resultobj;
8537 fail:
8538 return NULL;
8539 }
8540
8541
8542 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj;
8544 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8545 wxTextAttr *arg2 = 0 ;
8546 bool result;
8547 PyObject * obj0 = 0 ;
8548 PyObject * obj1 = 0 ;
8549 char *kwnames[] = {
8550 (char *) "self",(char *) "style", NULL
8551 };
8552
8553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
8554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8557 SWIG_POINTER_EXCEPTION | 0)) == -1)
8558 SWIG_fail;
8559 if (arg2 == NULL) {
8560 PyErr_SetString(PyExc_TypeError,"null reference");
8561 SWIG_fail;
8562 }
8563 {
8564 PyThreadState* __tstate = wxPyBeginAllowThreads();
8565 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
8566
8567 wxPyEndAllowThreads(__tstate);
8568 if (PyErr_Occurred()) SWIG_fail;
8569 }
8570 {
8571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8572 }
8573 return resultobj;
8574 fail:
8575 return NULL;
8576 }
8577
8578
8579 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8580 PyObject *resultobj;
8581 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8582 wxTextAttr *result;
8583 PyObject * obj0 = 0 ;
8584 char *kwnames[] = {
8585 (char *) "self", NULL
8586 };
8587
8588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
8589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8591 {
8592 PyThreadState* __tstate = wxPyBeginAllowThreads();
8593 {
8594 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
8595 result = (wxTextAttr *) &_result_ref;
8596 }
8597
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
8602 return resultobj;
8603 fail:
8604 return NULL;
8605 }
8606
8607
8608 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) {
8609 PyObject *resultobj;
8610 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8611 long arg2 ;
8612 long arg3 ;
8613 long result;
8614 PyObject * obj0 = 0 ;
8615 PyObject * obj1 = 0 ;
8616 PyObject * obj2 = 0 ;
8617 char *kwnames[] = {
8618 (char *) "self",(char *) "x",(char *) "y", NULL
8619 };
8620
8621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
8622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8624 arg2 = (long) SWIG_AsLong(obj1);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 arg3 = (long) SWIG_AsLong(obj2);
8627 if (PyErr_Occurred()) SWIG_fail;
8628 {
8629 PyThreadState* __tstate = wxPyBeginAllowThreads();
8630 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
8631
8632 wxPyEndAllowThreads(__tstate);
8633 if (PyErr_Occurred()) SWIG_fail;
8634 }
8635 resultobj = SWIG_FromLong((long)result);
8636 return resultobj;
8637 fail:
8638 return NULL;
8639 }
8640
8641
8642 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) {
8643 PyObject *resultobj;
8644 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8645 long arg2 ;
8646 long *arg3 = (long *) 0 ;
8647 long *arg4 = (long *) 0 ;
8648 long temp3 ;
8649 long temp4 ;
8650 PyObject * obj0 = 0 ;
8651 PyObject * obj1 = 0 ;
8652 char *kwnames[] = {
8653 (char *) "self",(char *) "pos", NULL
8654 };
8655
8656 arg3 = &temp3;
8657 arg4 = &temp4;
8658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
8659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8661 arg2 = (long) SWIG_AsLong(obj1);
8662 if (PyErr_Occurred()) SWIG_fail;
8663 {
8664 PyThreadState* __tstate = wxPyBeginAllowThreads();
8665 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
8666
8667 wxPyEndAllowThreads(__tstate);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 }
8670 Py_INCREF(Py_None); resultobj = Py_None;
8671 {
8672 PyObject *o = PyInt_FromLong((long) (*arg3));
8673 resultobj = t_output_helper(resultobj,o);
8674 }
8675 {
8676 PyObject *o = PyInt_FromLong((long) (*arg4));
8677 resultobj = t_output_helper(resultobj,o);
8678 }
8679 return resultobj;
8680 fail:
8681 return NULL;
8682 }
8683
8684
8685 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) {
8686 PyObject *resultobj;
8687 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8688 long arg2 ;
8689 PyObject * obj0 = 0 ;
8690 PyObject * obj1 = 0 ;
8691 char *kwnames[] = {
8692 (char *) "self",(char *) "pos", NULL
8693 };
8694
8695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
8696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8698 arg2 = (long) SWIG_AsLong(obj1);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 {
8701 PyThreadState* __tstate = wxPyBeginAllowThreads();
8702 (arg1)->ShowPosition(arg2);
8703
8704 wxPyEndAllowThreads(__tstate);
8705 if (PyErr_Occurred()) SWIG_fail;
8706 }
8707 Py_INCREF(Py_None); resultobj = Py_None;
8708 return resultobj;
8709 fail:
8710 return NULL;
8711 }
8712
8713
8714 static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
8715 PyObject *resultobj;
8716 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8717 wxPoint *arg2 = 0 ;
8718 long *arg3 = (long *) 0 ;
8719 long *arg4 = (long *) 0 ;
8720 int result;
8721 wxPoint temp2 ;
8722 long temp3 ;
8723 long temp4 ;
8724 PyObject * obj0 = 0 ;
8725 PyObject * obj1 = 0 ;
8726 char *kwnames[] = {
8727 (char *) "self",(char *) "pt", NULL
8728 };
8729
8730 arg3 = &temp3;
8731 arg4 = &temp4;
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
8733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8735 {
8736 arg2 = &temp2;
8737 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8738 }
8739 {
8740 PyThreadState* __tstate = wxPyBeginAllowThreads();
8741 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
8742
8743 wxPyEndAllowThreads(__tstate);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 resultobj = SWIG_FromInt((int)result);
8747 {
8748 PyObject *o = PyInt_FromLong((long) (*arg3));
8749 resultobj = t_output_helper(resultobj,o);
8750 }
8751 {
8752 PyObject *o = PyInt_FromLong((long) (*arg4));
8753 resultobj = t_output_helper(resultobj,o);
8754 }
8755 return resultobj;
8756 fail:
8757 return NULL;
8758 }
8759
8760
8761 static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
8762 PyObject *resultobj;
8763 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8764 PyObject * obj0 = 0 ;
8765 char *kwnames[] = {
8766 (char *) "self", NULL
8767 };
8768
8769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
8770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8772 {
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 (arg1)->Copy();
8775
8776 wxPyEndAllowThreads(__tstate);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 Py_INCREF(Py_None); resultobj = Py_None;
8780 return resultobj;
8781 fail:
8782 return NULL;
8783 }
8784
8785
8786 static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
8787 PyObject *resultobj;
8788 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8789 PyObject * obj0 = 0 ;
8790 char *kwnames[] = {
8791 (char *) "self", NULL
8792 };
8793
8794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
8795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8797 {
8798 PyThreadState* __tstate = wxPyBeginAllowThreads();
8799 (arg1)->Cut();
8800
8801 wxPyEndAllowThreads(__tstate);
8802 if (PyErr_Occurred()) SWIG_fail;
8803 }
8804 Py_INCREF(Py_None); resultobj = Py_None;
8805 return resultobj;
8806 fail:
8807 return NULL;
8808 }
8809
8810
8811 static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
8812 PyObject *resultobj;
8813 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8814 PyObject * obj0 = 0 ;
8815 char *kwnames[] = {
8816 (char *) "self", NULL
8817 };
8818
8819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
8820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8822 {
8823 PyThreadState* __tstate = wxPyBeginAllowThreads();
8824 (arg1)->Paste();
8825
8826 wxPyEndAllowThreads(__tstate);
8827 if (PyErr_Occurred()) SWIG_fail;
8828 }
8829 Py_INCREF(Py_None); resultobj = Py_None;
8830 return resultobj;
8831 fail:
8832 return NULL;
8833 }
8834
8835
8836 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
8837 PyObject *resultobj;
8838 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8839 bool result;
8840 PyObject * obj0 = 0 ;
8841 char *kwnames[] = {
8842 (char *) "self", NULL
8843 };
8844
8845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
8846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8848 {
8849 PyThreadState* __tstate = wxPyBeginAllowThreads();
8850 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
8851
8852 wxPyEndAllowThreads(__tstate);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
8855 {
8856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8857 }
8858 return resultobj;
8859 fail:
8860 return NULL;
8861 }
8862
8863
8864 static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj;
8866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8867 bool result;
8868 PyObject * obj0 = 0 ;
8869 char *kwnames[] = {
8870 (char *) "self", NULL
8871 };
8872
8873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
8874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8876 {
8877 PyThreadState* __tstate = wxPyBeginAllowThreads();
8878 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
8879
8880 wxPyEndAllowThreads(__tstate);
8881 if (PyErr_Occurred()) SWIG_fail;
8882 }
8883 {
8884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8885 }
8886 return resultobj;
8887 fail:
8888 return NULL;
8889 }
8890
8891
8892 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
8893 PyObject *resultobj;
8894 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8895 bool result;
8896 PyObject * obj0 = 0 ;
8897 char *kwnames[] = {
8898 (char *) "self", NULL
8899 };
8900
8901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
8902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8904 {
8905 PyThreadState* __tstate = wxPyBeginAllowThreads();
8906 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
8907
8908 wxPyEndAllowThreads(__tstate);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 }
8911 {
8912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8913 }
8914 return resultobj;
8915 fail:
8916 return NULL;
8917 }
8918
8919
8920 static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
8921 PyObject *resultobj;
8922 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8923 PyObject * obj0 = 0 ;
8924 char *kwnames[] = {
8925 (char *) "self", NULL
8926 };
8927
8928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
8929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8931 {
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 (arg1)->Undo();
8934
8935 wxPyEndAllowThreads(__tstate);
8936 if (PyErr_Occurred()) SWIG_fail;
8937 }
8938 Py_INCREF(Py_None); resultobj = Py_None;
8939 return resultobj;
8940 fail:
8941 return NULL;
8942 }
8943
8944
8945 static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
8946 PyObject *resultobj;
8947 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8948 PyObject * obj0 = 0 ;
8949 char *kwnames[] = {
8950 (char *) "self", NULL
8951 };
8952
8953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
8954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8956 {
8957 PyThreadState* __tstate = wxPyBeginAllowThreads();
8958 (arg1)->Redo();
8959
8960 wxPyEndAllowThreads(__tstate);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 Py_INCREF(Py_None); resultobj = Py_None;
8964 return resultobj;
8965 fail:
8966 return NULL;
8967 }
8968
8969
8970 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
8971 PyObject *resultobj;
8972 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8973 bool result;
8974 PyObject * obj0 = 0 ;
8975 char *kwnames[] = {
8976 (char *) "self", NULL
8977 };
8978
8979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
8980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8982 {
8983 PyThreadState* __tstate = wxPyBeginAllowThreads();
8984 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
8985
8986 wxPyEndAllowThreads(__tstate);
8987 if (PyErr_Occurred()) SWIG_fail;
8988 }
8989 {
8990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8991 }
8992 return resultobj;
8993 fail:
8994 return NULL;
8995 }
8996
8997
8998 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
8999 PyObject *resultobj;
9000 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9001 bool result;
9002 PyObject * obj0 = 0 ;
9003 char *kwnames[] = {
9004 (char *) "self", NULL
9005 };
9006
9007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9010 {
9011 PyThreadState* __tstate = wxPyBeginAllowThreads();
9012 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9013
9014 wxPyEndAllowThreads(__tstate);
9015 if (PyErr_Occurred()) SWIG_fail;
9016 }
9017 {
9018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9019 }
9020 return resultobj;
9021 fail:
9022 return NULL;
9023 }
9024
9025
9026 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9027 PyObject *resultobj;
9028 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9029 long arg2 ;
9030 PyObject * obj0 = 0 ;
9031 PyObject * obj1 = 0 ;
9032 char *kwnames[] = {
9033 (char *) "self",(char *) "pos", NULL
9034 };
9035
9036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9039 arg2 = (long) SWIG_AsLong(obj1);
9040 if (PyErr_Occurred()) SWIG_fail;
9041 {
9042 PyThreadState* __tstate = wxPyBeginAllowThreads();
9043 (arg1)->SetInsertionPoint(arg2);
9044
9045 wxPyEndAllowThreads(__tstate);
9046 if (PyErr_Occurred()) SWIG_fail;
9047 }
9048 Py_INCREF(Py_None); resultobj = Py_None;
9049 return resultobj;
9050 fail:
9051 return NULL;
9052 }
9053
9054
9055 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
9056 PyObject *resultobj;
9057 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9058 PyObject * obj0 = 0 ;
9059 char *kwnames[] = {
9060 (char *) "self", NULL
9061 };
9062
9063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9066 {
9067 PyThreadState* __tstate = wxPyBeginAllowThreads();
9068 (arg1)->SetInsertionPointEnd();
9069
9070 wxPyEndAllowThreads(__tstate);
9071 if (PyErr_Occurred()) SWIG_fail;
9072 }
9073 Py_INCREF(Py_None); resultobj = Py_None;
9074 return resultobj;
9075 fail:
9076 return NULL;
9077 }
9078
9079
9080 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9081 PyObject *resultobj;
9082 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9083 long result;
9084 PyObject * obj0 = 0 ;
9085 char *kwnames[] = {
9086 (char *) "self", NULL
9087 };
9088
9089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9092 {
9093 PyThreadState* __tstate = wxPyBeginAllowThreads();
9094 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9095
9096 wxPyEndAllowThreads(__tstate);
9097 if (PyErr_Occurred()) SWIG_fail;
9098 }
9099 resultobj = SWIG_FromLong((long)result);
9100 return resultobj;
9101 fail:
9102 return NULL;
9103 }
9104
9105
9106 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9107 PyObject *resultobj;
9108 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9109 long result;
9110 PyObject * obj0 = 0 ;
9111 char *kwnames[] = {
9112 (char *) "self", NULL
9113 };
9114
9115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9118 {
9119 PyThreadState* __tstate = wxPyBeginAllowThreads();
9120 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9121
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 }
9125 resultobj = SWIG_FromLong((long)result);
9126 return resultobj;
9127 fail:
9128 return NULL;
9129 }
9130
9131
9132 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
9133 PyObject *resultobj;
9134 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9135 long arg2 ;
9136 long arg3 ;
9137 PyObject * obj0 = 0 ;
9138 PyObject * obj1 = 0 ;
9139 PyObject * obj2 = 0 ;
9140 char *kwnames[] = {
9141 (char *) "self",(char *) "from",(char *) "to", NULL
9142 };
9143
9144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9147 arg2 = (long) SWIG_AsLong(obj1);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 arg3 = (long) SWIG_AsLong(obj2);
9150 if (PyErr_Occurred()) SWIG_fail;
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 (arg1)->SetSelection(arg2,arg3);
9154
9155 wxPyEndAllowThreads(__tstate);
9156 if (PyErr_Occurred()) SWIG_fail;
9157 }
9158 Py_INCREF(Py_None); resultobj = Py_None;
9159 return resultobj;
9160 fail:
9161 return NULL;
9162 }
9163
9164
9165 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
9166 PyObject *resultobj;
9167 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9168 PyObject * obj0 = 0 ;
9169 char *kwnames[] = {
9170 (char *) "self", NULL
9171 };
9172
9173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9176 {
9177 PyThreadState* __tstate = wxPyBeginAllowThreads();
9178 (arg1)->SelectAll();
9179
9180 wxPyEndAllowThreads(__tstate);
9181 if (PyErr_Occurred()) SWIG_fail;
9182 }
9183 Py_INCREF(Py_None); resultobj = Py_None;
9184 return resultobj;
9185 fail:
9186 return NULL;
9187 }
9188
9189
9190 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
9191 PyObject *resultobj;
9192 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9193 bool arg2 ;
9194 PyObject * obj0 = 0 ;
9195 PyObject * obj1 = 0 ;
9196 char *kwnames[] = {
9197 (char *) "self",(char *) "editable", NULL
9198 };
9199
9200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9203 arg2 = (bool) SWIG_AsBool(obj1);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 {
9206 PyThreadState* __tstate = wxPyBeginAllowThreads();
9207 (arg1)->SetEditable(arg2);
9208
9209 wxPyEndAllowThreads(__tstate);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 Py_INCREF(Py_None); resultobj = Py_None;
9213 return resultobj;
9214 fail:
9215 return NULL;
9216 }
9217
9218
9219 static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) {
9220 PyObject *resultobj;
9221 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9222 wxString *arg2 = 0 ;
9223 bool temp2 = False ;
9224 PyObject * obj0 = 0 ;
9225 PyObject * obj1 = 0 ;
9226 char *kwnames[] = {
9227 (char *) "self",(char *) "text", NULL
9228 };
9229
9230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9233 {
9234 arg2 = wxString_in_helper(obj1);
9235 if (arg2 == NULL) SWIG_fail;
9236 temp2 = True;
9237 }
9238 {
9239 PyThreadState* __tstate = wxPyBeginAllowThreads();
9240 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9241
9242 wxPyEndAllowThreads(__tstate);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 }
9245 Py_INCREF(Py_None); resultobj = Py_None;
9246 {
9247 if (temp2)
9248 delete arg2;
9249 }
9250 return resultobj;
9251 fail:
9252 {
9253 if (temp2)
9254 delete arg2;
9255 }
9256 return NULL;
9257 }
9258
9259
9260 static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
9261 PyObject *resultobj;
9262 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9263 long arg2 ;
9264 long arg3 ;
9265 wxString result;
9266 PyObject * obj0 = 0 ;
9267 PyObject * obj1 = 0 ;
9268 PyObject * obj2 = 0 ;
9269 char *kwnames[] = {
9270 (char *) "self",(char *) "from",(char *) "to", NULL
9271 };
9272
9273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9276 arg2 = (long) SWIG_AsLong(obj1);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 arg3 = (long) SWIG_AsLong(obj2);
9279 if (PyErr_Occurred()) SWIG_fail;
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9283
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 {
9288 #if wxUSE_UNICODE
9289 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9290 #else
9291 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9292 #endif
9293 }
9294 return resultobj;
9295 fail:
9296 return NULL;
9297 }
9298
9299
9300 static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) {
9301 PyObject *obj;
9302 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9303 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9304 Py_INCREF(obj);
9305 return Py_BuildValue((char *)"");
9306 }
9307 static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9308 PyObject *resultobj;
9309 int arg1 ;
9310 wxMouseEvent *arg2 = 0 ;
9311 long arg3 ;
9312 long arg4 ;
9313 wxTextUrlEvent *result;
9314 PyObject * obj0 = 0 ;
9315 PyObject * obj1 = 0 ;
9316 PyObject * obj2 = 0 ;
9317 PyObject * obj3 = 0 ;
9318 char *kwnames[] = {
9319 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9320 };
9321
9322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9323 arg1 = (int) SWIG_AsInt(obj0);
9324 if (PyErr_Occurred()) SWIG_fail;
9325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9326 SWIG_POINTER_EXCEPTION | 0)) == -1)
9327 SWIG_fail;
9328 if (arg2 == NULL) {
9329 PyErr_SetString(PyExc_TypeError,"null reference");
9330 SWIG_fail;
9331 }
9332 arg3 = (long) SWIG_AsLong(obj2);
9333 if (PyErr_Occurred()) SWIG_fail;
9334 arg4 = (long) SWIG_AsLong(obj3);
9335 if (PyErr_Occurred()) SWIG_fail;
9336 {
9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
9338 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9339
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9344 return resultobj;
9345 fail:
9346 return NULL;
9347 }
9348
9349
9350 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9351 PyObject *resultobj;
9352 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9353 wxMouseEvent *result;
9354 PyObject * obj0 = 0 ;
9355 char *kwnames[] = {
9356 (char *) "self", NULL
9357 };
9358
9359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9362 {
9363 PyThreadState* __tstate = wxPyBeginAllowThreads();
9364 {
9365 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9366 result = (wxMouseEvent *) &_result_ref;
9367 }
9368
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9373 return resultobj;
9374 fail:
9375 return NULL;
9376 }
9377
9378
9379 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) {
9380 PyObject *resultobj;
9381 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9382 long result;
9383 PyObject * obj0 = 0 ;
9384 char *kwnames[] = {
9385 (char *) "self", NULL
9386 };
9387
9388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9391 {
9392 PyThreadState* __tstate = wxPyBeginAllowThreads();
9393 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9394
9395 wxPyEndAllowThreads(__tstate);
9396 if (PyErr_Occurred()) SWIG_fail;
9397 }
9398 resultobj = SWIG_FromLong((long)result);
9399 return resultobj;
9400 fail:
9401 return NULL;
9402 }
9403
9404
9405 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) {
9406 PyObject *resultobj;
9407 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9408 long result;
9409 PyObject * obj0 = 0 ;
9410 char *kwnames[] = {
9411 (char *) "self", NULL
9412 };
9413
9414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9417 {
9418 PyThreadState* __tstate = wxPyBeginAllowThreads();
9419 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9420
9421 wxPyEndAllowThreads(__tstate);
9422 if (PyErr_Occurred()) SWIG_fail;
9423 }
9424 resultobj = SWIG_FromLong((long)result);
9425 return resultobj;
9426 fail:
9427 return NULL;
9428 }
9429
9430
9431 static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) {
9432 PyObject *obj;
9433 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9434 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9435 Py_INCREF(obj);
9436 return Py_BuildValue((char *)"");
9437 }
9438 static int _wrap_ScrollBarNameStr_set(PyObject *) {
9439 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9440 return 1;
9441 }
9442
9443
9444 static PyObject *_wrap_ScrollBarNameStr_get() {
9445 PyObject *pyobj;
9446
9447 {
9448 #if wxUSE_UNICODE
9449 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9450 #else
9451 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9452 #endif
9453 }
9454 return pyobj;
9455 }
9456
9457
9458 static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
9459 PyObject *resultobj;
9460 wxWindow *arg1 = (wxWindow *) 0 ;
9461 int arg2 = (int) -1 ;
9462 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9463 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9464 wxSize const &arg4_defvalue = wxDefaultSize ;
9465 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9466 long arg5 = (long) wxSB_HORIZONTAL ;
9467 wxValidator const &arg6_defvalue = wxDefaultValidator ;
9468 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
9469 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
9470 wxString *arg7 = (wxString *) &arg7_defvalue ;
9471 wxScrollBar *result;
9472 wxPoint temp3 ;
9473 wxSize temp4 ;
9474 bool temp7 = False ;
9475 PyObject * obj0 = 0 ;
9476 PyObject * obj1 = 0 ;
9477 PyObject * obj2 = 0 ;
9478 PyObject * obj3 = 0 ;
9479 PyObject * obj4 = 0 ;
9480 PyObject * obj5 = 0 ;
9481 PyObject * obj6 = 0 ;
9482 char *kwnames[] = {
9483 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9484 };
9485
9486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9489 if (obj1) {
9490 arg2 = (int) SWIG_AsInt(obj1);
9491 if (PyErr_Occurred()) SWIG_fail;
9492 }
9493 if (obj2) {
9494 {
9495 arg3 = &temp3;
9496 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9497 }
9498 }
9499 if (obj3) {
9500 {
9501 arg4 = &temp4;
9502 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9503 }
9504 }
9505 if (obj4) {
9506 arg5 = (long) SWIG_AsLong(obj4);
9507 if (PyErr_Occurred()) SWIG_fail;
9508 }
9509 if (obj5) {
9510 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
9511 SWIG_POINTER_EXCEPTION | 0)) == -1)
9512 SWIG_fail;
9513 if (arg6 == NULL) {
9514 PyErr_SetString(PyExc_TypeError,"null reference");
9515 SWIG_fail;
9516 }
9517 }
9518 if (obj6) {
9519 {
9520 arg7 = wxString_in_helper(obj6);
9521 if (arg7 == NULL) SWIG_fail;
9522 temp7 = True;
9523 }
9524 }
9525 {
9526 PyThreadState* __tstate = wxPyBeginAllowThreads();
9527 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
9528
9529 wxPyEndAllowThreads(__tstate);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 }
9532 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
9533 {
9534 if (temp7)
9535 delete arg7;
9536 }
9537 return resultobj;
9538 fail:
9539 {
9540 if (temp7)
9541 delete arg7;
9542 }
9543 return NULL;
9544 }
9545
9546
9547 static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
9548 PyObject *resultobj;
9549 wxScrollBar *result;
9550 char *kwnames[] = {
9551 NULL
9552 };
9553
9554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
9555 {
9556 PyThreadState* __tstate = wxPyBeginAllowThreads();
9557 result = (wxScrollBar *)new wxScrollBar();
9558
9559 wxPyEndAllowThreads(__tstate);
9560 if (PyErr_Occurred()) SWIG_fail;
9561 }
9562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
9563 return resultobj;
9564 fail:
9565 return NULL;
9566 }
9567
9568
9569 static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
9570 PyObject *resultobj;
9571 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9572 wxWindow *arg2 = (wxWindow *) 0 ;
9573 int arg3 = (int) -1 ;
9574 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9575 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9576 wxSize const &arg5_defvalue = wxDefaultSize ;
9577 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9578 long arg6 = (long) wxSB_HORIZONTAL ;
9579 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9580 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9581 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
9582 wxString *arg8 = (wxString *) &arg8_defvalue ;
9583 bool result;
9584 wxPoint temp4 ;
9585 wxSize temp5 ;
9586 bool temp8 = False ;
9587 PyObject * obj0 = 0 ;
9588 PyObject * obj1 = 0 ;
9589 PyObject * obj2 = 0 ;
9590 PyObject * obj3 = 0 ;
9591 PyObject * obj4 = 0 ;
9592 PyObject * obj5 = 0 ;
9593 PyObject * obj6 = 0 ;
9594 PyObject * obj7 = 0 ;
9595 char *kwnames[] = {
9596 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9597 };
9598
9599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
9600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9602 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
9603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9604 if (obj2) {
9605 arg3 = (int) SWIG_AsInt(obj2);
9606 if (PyErr_Occurred()) SWIG_fail;
9607 }
9608 if (obj3) {
9609 {
9610 arg4 = &temp4;
9611 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9612 }
9613 }
9614 if (obj4) {
9615 {
9616 arg5 = &temp5;
9617 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9618 }
9619 }
9620 if (obj5) {
9621 arg6 = (long) SWIG_AsLong(obj5);
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
9624 if (obj6) {
9625 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
9626 SWIG_POINTER_EXCEPTION | 0)) == -1)
9627 SWIG_fail;
9628 if (arg7 == NULL) {
9629 PyErr_SetString(PyExc_TypeError,"null reference");
9630 SWIG_fail;
9631 }
9632 }
9633 if (obj7) {
9634 {
9635 arg8 = wxString_in_helper(obj7);
9636 if (arg8 == NULL) SWIG_fail;
9637 temp8 = True;
9638 }
9639 }
9640 {
9641 PyThreadState* __tstate = wxPyBeginAllowThreads();
9642 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
9643
9644 wxPyEndAllowThreads(__tstate);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
9647 {
9648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9649 }
9650 {
9651 if (temp8)
9652 delete arg8;
9653 }
9654 return resultobj;
9655 fail:
9656 {
9657 if (temp8)
9658 delete arg8;
9659 }
9660 return NULL;
9661 }
9662
9663
9664 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9665 PyObject *resultobj;
9666 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9667 int result;
9668 PyObject * obj0 = 0 ;
9669 char *kwnames[] = {
9670 (char *) "self", NULL
9671 };
9672
9673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
9674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9676 {
9677 PyThreadState* __tstate = wxPyBeginAllowThreads();
9678 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
9679
9680 wxPyEndAllowThreads(__tstate);
9681 if (PyErr_Occurred()) SWIG_fail;
9682 }
9683 resultobj = SWIG_FromInt((int)result);
9684 return resultobj;
9685 fail:
9686 return NULL;
9687 }
9688
9689
9690 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) {
9691 PyObject *resultobj;
9692 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9693 int result;
9694 PyObject * obj0 = 0 ;
9695 char *kwnames[] = {
9696 (char *) "self", NULL
9697 };
9698
9699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
9700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9702 {
9703 PyThreadState* __tstate = wxPyBeginAllowThreads();
9704 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
9705
9706 wxPyEndAllowThreads(__tstate);
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 resultobj = SWIG_FromInt((int)result);
9710 return resultobj;
9711 fail:
9712 return NULL;
9713 }
9714
9715
9716 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
9717 PyObject *resultobj;
9718 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9719 int result;
9720 PyObject * obj0 = 0 ;
9721 char *kwnames[] = {
9722 (char *) "self", NULL
9723 };
9724
9725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
9726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9728 {
9729 PyThreadState* __tstate = wxPyBeginAllowThreads();
9730 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
9731
9732 wxPyEndAllowThreads(__tstate);
9733 if (PyErr_Occurred()) SWIG_fail;
9734 }
9735 resultobj = SWIG_FromInt((int)result);
9736 return resultobj;
9737 fail:
9738 return NULL;
9739 }
9740
9741
9742 static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
9743 PyObject *resultobj;
9744 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9745 int result;
9746 PyObject * obj0 = 0 ;
9747 char *kwnames[] = {
9748 (char *) "self", NULL
9749 };
9750
9751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
9752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9754 {
9755 PyThreadState* __tstate = wxPyBeginAllowThreads();
9756 result = (int)((wxScrollBar const *)arg1)->GetRange();
9757
9758 wxPyEndAllowThreads(__tstate);
9759 if (PyErr_Occurred()) SWIG_fail;
9760 }
9761 resultobj = SWIG_FromInt((int)result);
9762 return resultobj;
9763 fail:
9764 return NULL;
9765 }
9766
9767
9768 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
9769 PyObject *resultobj;
9770 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9771 bool result;
9772 PyObject * obj0 = 0 ;
9773 char *kwnames[] = {
9774 (char *) "self", NULL
9775 };
9776
9777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
9778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
9783
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 {
9788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9789 }
9790 return resultobj;
9791 fail:
9792 return NULL;
9793 }
9794
9795
9796 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj;
9798 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9799 int arg2 ;
9800 PyObject * obj0 = 0 ;
9801 PyObject * obj1 = 0 ;
9802 char *kwnames[] = {
9803 (char *) "self",(char *) "viewStart", NULL
9804 };
9805
9806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
9807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9809 arg2 = (int) SWIG_AsInt(obj1);
9810 if (PyErr_Occurred()) SWIG_fail;
9811 {
9812 PyThreadState* __tstate = wxPyBeginAllowThreads();
9813 (arg1)->SetThumbPosition(arg2);
9814
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 Py_INCREF(Py_None); resultobj = Py_None;
9819 return resultobj;
9820 fail:
9821 return NULL;
9822 }
9823
9824
9825 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
9826 PyObject *resultobj;
9827 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9828 int arg2 ;
9829 int arg3 ;
9830 int arg4 ;
9831 int arg5 ;
9832 bool arg6 = (bool) True ;
9833 PyObject * obj0 = 0 ;
9834 PyObject * obj1 = 0 ;
9835 PyObject * obj2 = 0 ;
9836 PyObject * obj3 = 0 ;
9837 PyObject * obj4 = 0 ;
9838 PyObject * obj5 = 0 ;
9839 char *kwnames[] = {
9840 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
9841 };
9842
9843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9846 arg2 = (int) SWIG_AsInt(obj1);
9847 if (PyErr_Occurred()) SWIG_fail;
9848 arg3 = (int) SWIG_AsInt(obj2);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 arg4 = (int) SWIG_AsInt(obj3);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 arg5 = (int) SWIG_AsInt(obj4);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 if (obj5) {
9855 arg6 = (bool) SWIG_AsBool(obj5);
9856 if (PyErr_Occurred()) SWIG_fail;
9857 }
9858 {
9859 PyThreadState* __tstate = wxPyBeginAllowThreads();
9860 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
9861
9862 wxPyEndAllowThreads(__tstate);
9863 if (PyErr_Occurred()) SWIG_fail;
9864 }
9865 Py_INCREF(Py_None); resultobj = Py_None;
9866 return resultobj;
9867 fail:
9868 return NULL;
9869 }
9870
9871
9872 static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) {
9873 PyObject *obj;
9874 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9875 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
9876 Py_INCREF(obj);
9877 return Py_BuildValue((char *)"");
9878 }
9879 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
9880 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
9881 return 1;
9882 }
9883
9884
9885 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
9886 PyObject *pyobj;
9887
9888 {
9889 #if wxUSE_UNICODE
9890 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
9891 #else
9892 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
9893 #endif
9894 }
9895 return pyobj;
9896 }
9897
9898
9899 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
9900 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
9901 return 1;
9902 }
9903
9904
9905 static PyObject *_wrap_SpinCtrlNameStr_get() {
9906 PyObject *pyobj;
9907
9908 {
9909 #if wxUSE_UNICODE
9910 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
9911 #else
9912 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
9913 #endif
9914 }
9915 return pyobj;
9916 }
9917
9918
9919 static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
9920 PyObject *resultobj;
9921 wxWindow *arg1 = (wxWindow *) 0 ;
9922 int arg2 = (int) -1 ;
9923 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9924 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9925 wxSize const &arg4_defvalue = wxDefaultSize ;
9926 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9927 long arg5 = (long) wxSP_HORIZONTAL ;
9928 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
9929 wxString *arg6 = (wxString *) &arg6_defvalue ;
9930 wxSpinButton *result;
9931 wxPoint temp3 ;
9932 wxSize temp4 ;
9933 bool temp6 = False ;
9934 PyObject * obj0 = 0 ;
9935 PyObject * obj1 = 0 ;
9936 PyObject * obj2 = 0 ;
9937 PyObject * obj3 = 0 ;
9938 PyObject * obj4 = 0 ;
9939 PyObject * obj5 = 0 ;
9940 char *kwnames[] = {
9941 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
9942 };
9943
9944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9947 if (obj1) {
9948 arg2 = (int) SWIG_AsInt(obj1);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 if (obj2) {
9952 {
9953 arg3 = &temp3;
9954 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9955 }
9956 }
9957 if (obj3) {
9958 {
9959 arg4 = &temp4;
9960 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9961 }
9962 }
9963 if (obj4) {
9964 arg5 = (long) SWIG_AsLong(obj4);
9965 if (PyErr_Occurred()) SWIG_fail;
9966 }
9967 if (obj5) {
9968 {
9969 arg6 = wxString_in_helper(obj5);
9970 if (arg6 == NULL) SWIG_fail;
9971 temp6 = True;
9972 }
9973 }
9974 {
9975 PyThreadState* __tstate = wxPyBeginAllowThreads();
9976 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
9977
9978 wxPyEndAllowThreads(__tstate);
9979 if (PyErr_Occurred()) SWIG_fail;
9980 }
9981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
9982 {
9983 if (temp6)
9984 delete arg6;
9985 }
9986 return resultobj;
9987 fail:
9988 {
9989 if (temp6)
9990 delete arg6;
9991 }
9992 return NULL;
9993 }
9994
9995
9996 static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
9997 PyObject *resultobj;
9998 wxSpinButton *result;
9999 char *kwnames[] = {
10000 NULL
10001 };
10002
10003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10004 {
10005 PyThreadState* __tstate = wxPyBeginAllowThreads();
10006 result = (wxSpinButton *)new wxSpinButton();
10007
10008 wxPyEndAllowThreads(__tstate);
10009 if (PyErr_Occurred()) SWIG_fail;
10010 }
10011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10012 return resultobj;
10013 fail:
10014 return NULL;
10015 }
10016
10017
10018 static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10019 PyObject *resultobj;
10020 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10021 wxWindow *arg2 = (wxWindow *) 0 ;
10022 int arg3 = (int) -1 ;
10023 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10024 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10025 wxSize const &arg5_defvalue = wxDefaultSize ;
10026 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10027 long arg6 = (long) wxSP_HORIZONTAL ;
10028 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10029 wxString *arg7 = (wxString *) &arg7_defvalue ;
10030 bool result;
10031 wxPoint temp4 ;
10032 wxSize temp5 ;
10033 bool temp7 = False ;
10034 PyObject * obj0 = 0 ;
10035 PyObject * obj1 = 0 ;
10036 PyObject * obj2 = 0 ;
10037 PyObject * obj3 = 0 ;
10038 PyObject * obj4 = 0 ;
10039 PyObject * obj5 = 0 ;
10040 PyObject * obj6 = 0 ;
10041 char *kwnames[] = {
10042 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10043 };
10044
10045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10048 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10050 if (obj2) {
10051 arg3 = (int) SWIG_AsInt(obj2);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 }
10054 if (obj3) {
10055 {
10056 arg4 = &temp4;
10057 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10058 }
10059 }
10060 if (obj4) {
10061 {
10062 arg5 = &temp5;
10063 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10064 }
10065 }
10066 if (obj5) {
10067 arg6 = (long) SWIG_AsLong(obj5);
10068 if (PyErr_Occurred()) SWIG_fail;
10069 }
10070 if (obj6) {
10071 {
10072 arg7 = wxString_in_helper(obj6);
10073 if (arg7 == NULL) SWIG_fail;
10074 temp7 = True;
10075 }
10076 }
10077 {
10078 PyThreadState* __tstate = wxPyBeginAllowThreads();
10079 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10080
10081 wxPyEndAllowThreads(__tstate);
10082 if (PyErr_Occurred()) SWIG_fail;
10083 }
10084 {
10085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10086 }
10087 {
10088 if (temp7)
10089 delete arg7;
10090 }
10091 return resultobj;
10092 fail:
10093 {
10094 if (temp7)
10095 delete arg7;
10096 }
10097 return NULL;
10098 }
10099
10100
10101 static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10102 PyObject *resultobj;
10103 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10104 int result;
10105 PyObject * obj0 = 0 ;
10106 char *kwnames[] = {
10107 (char *) "self", NULL
10108 };
10109
10110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10113 {
10114 PyThreadState* __tstate = wxPyBeginAllowThreads();
10115 result = (int)((wxSpinButton const *)arg1)->GetValue();
10116
10117 wxPyEndAllowThreads(__tstate);
10118 if (PyErr_Occurred()) SWIG_fail;
10119 }
10120 resultobj = SWIG_FromInt((int)result);
10121 return resultobj;
10122 fail:
10123 return NULL;
10124 }
10125
10126
10127 static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10128 PyObject *resultobj;
10129 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10130 int result;
10131 PyObject * obj0 = 0 ;
10132 char *kwnames[] = {
10133 (char *) "self", NULL
10134 };
10135
10136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10139 {
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 result = (int)((wxSpinButton const *)arg1)->GetMin();
10142
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 resultobj = SWIG_FromInt((int)result);
10147 return resultobj;
10148 fail:
10149 return NULL;
10150 }
10151
10152
10153 static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
10154 PyObject *resultobj;
10155 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10156 int result;
10157 PyObject * obj0 = 0 ;
10158 char *kwnames[] = {
10159 (char *) "self", NULL
10160 };
10161
10162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10165 {
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 result = (int)((wxSpinButton const *)arg1)->GetMax();
10168
10169 wxPyEndAllowThreads(__tstate);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 }
10172 resultobj = SWIG_FromInt((int)result);
10173 return resultobj;
10174 fail:
10175 return NULL;
10176 }
10177
10178
10179 static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10180 PyObject *resultobj;
10181 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10182 int arg2 ;
10183 PyObject * obj0 = 0 ;
10184 PyObject * obj1 = 0 ;
10185 char *kwnames[] = {
10186 (char *) "self",(char *) "val", NULL
10187 };
10188
10189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10192 arg2 = (int) SWIG_AsInt(obj1);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 {
10195 PyThreadState* __tstate = wxPyBeginAllowThreads();
10196 (arg1)->SetValue(arg2);
10197
10198 wxPyEndAllowThreads(__tstate);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 Py_INCREF(Py_None); resultobj = Py_None;
10202 return resultobj;
10203 fail:
10204 return NULL;
10205 }
10206
10207
10208 static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10209 PyObject *resultobj;
10210 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10211 int arg2 ;
10212 PyObject * obj0 = 0 ;
10213 PyObject * obj1 = 0 ;
10214 char *kwnames[] = {
10215 (char *) "self",(char *) "minVal", NULL
10216 };
10217
10218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10221 arg2 = (int) SWIG_AsInt(obj1);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 {
10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
10225 (arg1)->SetMin(arg2);
10226
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 Py_INCREF(Py_None); resultobj = Py_None;
10231 return resultobj;
10232 fail:
10233 return NULL;
10234 }
10235
10236
10237 static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
10238 PyObject *resultobj;
10239 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10240 int arg2 ;
10241 PyObject * obj0 = 0 ;
10242 PyObject * obj1 = 0 ;
10243 char *kwnames[] = {
10244 (char *) "self",(char *) "maxVal", NULL
10245 };
10246
10247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10250 arg2 = (int) SWIG_AsInt(obj1);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 {
10253 PyThreadState* __tstate = wxPyBeginAllowThreads();
10254 (arg1)->SetMax(arg2);
10255
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 Py_INCREF(Py_None); resultobj = Py_None;
10260 return resultobj;
10261 fail:
10262 return NULL;
10263 }
10264
10265
10266 static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10267 PyObject *resultobj;
10268 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10269 int arg2 ;
10270 int arg3 ;
10271 PyObject * obj0 = 0 ;
10272 PyObject * obj1 = 0 ;
10273 PyObject * obj2 = 0 ;
10274 char *kwnames[] = {
10275 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10276 };
10277
10278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10281 arg2 = (int) SWIG_AsInt(obj1);
10282 if (PyErr_Occurred()) SWIG_fail;
10283 arg3 = (int) SWIG_AsInt(obj2);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 {
10286 PyThreadState* __tstate = wxPyBeginAllowThreads();
10287 (arg1)->SetRange(arg2,arg3);
10288
10289 wxPyEndAllowThreads(__tstate);
10290 if (PyErr_Occurred()) SWIG_fail;
10291 }
10292 Py_INCREF(Py_None); resultobj = Py_None;
10293 return resultobj;
10294 fail:
10295 return NULL;
10296 }
10297
10298
10299 static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
10300 PyObject *resultobj;
10301 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10302 bool result;
10303 PyObject * obj0 = 0 ;
10304 char *kwnames[] = {
10305 (char *) "self", NULL
10306 };
10307
10308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10311 {
10312 PyThreadState* __tstate = wxPyBeginAllowThreads();
10313 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10314
10315 wxPyEndAllowThreads(__tstate);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 }
10318 {
10319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10320 }
10321 return resultobj;
10322 fail:
10323 return NULL;
10324 }
10325
10326
10327 static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) {
10328 PyObject *obj;
10329 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10330 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10331 Py_INCREF(obj);
10332 return Py_BuildValue((char *)"");
10333 }
10334 static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
10335 PyObject *resultobj;
10336 wxWindow *arg1 = (wxWindow *) 0 ;
10337 int arg2 = (int) -1 ;
10338 wxString const &arg3_defvalue = wxPyEmptyString ;
10339 wxString *arg3 = (wxString *) &arg3_defvalue ;
10340 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10341 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10342 wxSize const &arg5_defvalue = wxDefaultSize ;
10343 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10344 long arg6 = (long) wxSP_ARROW_KEYS ;
10345 int arg7 = (int) 0 ;
10346 int arg8 = (int) 100 ;
10347 int arg9 = (int) 0 ;
10348 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10349 wxString *arg10 = (wxString *) &arg10_defvalue ;
10350 wxSpinCtrl *result;
10351 bool temp3 = False ;
10352 wxPoint temp4 ;
10353 wxSize temp5 ;
10354 bool temp10 = False ;
10355 PyObject * obj0 = 0 ;
10356 PyObject * obj1 = 0 ;
10357 PyObject * obj2 = 0 ;
10358 PyObject * obj3 = 0 ;
10359 PyObject * obj4 = 0 ;
10360 PyObject * obj5 = 0 ;
10361 PyObject * obj6 = 0 ;
10362 PyObject * obj7 = 0 ;
10363 PyObject * obj8 = 0 ;
10364 PyObject * obj9 = 0 ;
10365 char *kwnames[] = {
10366 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10367 };
10368
10369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10372 if (obj1) {
10373 arg2 = (int) SWIG_AsInt(obj1);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 }
10376 if (obj2) {
10377 {
10378 arg3 = wxString_in_helper(obj2);
10379 if (arg3 == NULL) SWIG_fail;
10380 temp3 = True;
10381 }
10382 }
10383 if (obj3) {
10384 {
10385 arg4 = &temp4;
10386 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10387 }
10388 }
10389 if (obj4) {
10390 {
10391 arg5 = &temp5;
10392 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10393 }
10394 }
10395 if (obj5) {
10396 arg6 = (long) SWIG_AsLong(obj5);
10397 if (PyErr_Occurred()) SWIG_fail;
10398 }
10399 if (obj6) {
10400 arg7 = (int) SWIG_AsInt(obj6);
10401 if (PyErr_Occurred()) SWIG_fail;
10402 }
10403 if (obj7) {
10404 arg8 = (int) SWIG_AsInt(obj7);
10405 if (PyErr_Occurred()) SWIG_fail;
10406 }
10407 if (obj8) {
10408 arg9 = (int) SWIG_AsInt(obj8);
10409 if (PyErr_Occurred()) SWIG_fail;
10410 }
10411 if (obj9) {
10412 {
10413 arg10 = wxString_in_helper(obj9);
10414 if (arg10 == NULL) SWIG_fail;
10415 temp10 = True;
10416 }
10417 }
10418 {
10419 PyThreadState* __tstate = wxPyBeginAllowThreads();
10420 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
10421
10422 wxPyEndAllowThreads(__tstate);
10423 if (PyErr_Occurred()) SWIG_fail;
10424 }
10425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10426 {
10427 if (temp3)
10428 delete arg3;
10429 }
10430 {
10431 if (temp10)
10432 delete arg10;
10433 }
10434 return resultobj;
10435 fail:
10436 {
10437 if (temp3)
10438 delete arg3;
10439 }
10440 {
10441 if (temp10)
10442 delete arg10;
10443 }
10444 return NULL;
10445 }
10446
10447
10448 static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
10449 PyObject *resultobj;
10450 wxSpinCtrl *result;
10451 char *kwnames[] = {
10452 NULL
10453 };
10454
10455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
10456 {
10457 PyThreadState* __tstate = wxPyBeginAllowThreads();
10458 result = (wxSpinCtrl *)new wxSpinCtrl();
10459
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10464 return resultobj;
10465 fail:
10466 return NULL;
10467 }
10468
10469
10470 static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10471 PyObject *resultobj;
10472 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10473 wxWindow *arg2 = (wxWindow *) 0 ;
10474 int arg3 = (int) -1 ;
10475 wxString const &arg4_defvalue = wxPyEmptyString ;
10476 wxString *arg4 = (wxString *) &arg4_defvalue ;
10477 wxPoint const &arg5_defvalue = wxDefaultPosition ;
10478 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
10479 wxSize const &arg6_defvalue = wxDefaultSize ;
10480 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
10481 long arg7 = (long) wxSP_ARROW_KEYS ;
10482 int arg8 = (int) 0 ;
10483 int arg9 = (int) 100 ;
10484 int arg10 = (int) 0 ;
10485 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
10486 wxString *arg11 = (wxString *) &arg11_defvalue ;
10487 bool result;
10488 bool temp4 = False ;
10489 wxPoint temp5 ;
10490 wxSize temp6 ;
10491 bool temp11 = False ;
10492 PyObject * obj0 = 0 ;
10493 PyObject * obj1 = 0 ;
10494 PyObject * obj2 = 0 ;
10495 PyObject * obj3 = 0 ;
10496 PyObject * obj4 = 0 ;
10497 PyObject * obj5 = 0 ;
10498 PyObject * obj6 = 0 ;
10499 PyObject * obj7 = 0 ;
10500 PyObject * obj8 = 0 ;
10501 PyObject * obj9 = 0 ;
10502 PyObject * obj10 = 0 ;
10503 char *kwnames[] = {
10504 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10505 };
10506
10507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
10508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10510 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10512 if (obj2) {
10513 arg3 = (int) SWIG_AsInt(obj2);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 if (obj3) {
10517 {
10518 arg4 = wxString_in_helper(obj3);
10519 if (arg4 == NULL) SWIG_fail;
10520 temp4 = True;
10521 }
10522 }
10523 if (obj4) {
10524 {
10525 arg5 = &temp5;
10526 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10527 }
10528 }
10529 if (obj5) {
10530 {
10531 arg6 = &temp6;
10532 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
10533 }
10534 }
10535 if (obj6) {
10536 arg7 = (long) SWIG_AsLong(obj6);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 if (obj7) {
10540 arg8 = (int) SWIG_AsInt(obj7);
10541 if (PyErr_Occurred()) SWIG_fail;
10542 }
10543 if (obj8) {
10544 arg9 = (int) SWIG_AsInt(obj8);
10545 if (PyErr_Occurred()) SWIG_fail;
10546 }
10547 if (obj9) {
10548 arg10 = (int) SWIG_AsInt(obj9);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
10551 if (obj10) {
10552 {
10553 arg11 = wxString_in_helper(obj10);
10554 if (arg11 == NULL) SWIG_fail;
10555 temp11 = True;
10556 }
10557 }
10558 {
10559 PyThreadState* __tstate = wxPyBeginAllowThreads();
10560 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
10561
10562 wxPyEndAllowThreads(__tstate);
10563 if (PyErr_Occurred()) SWIG_fail;
10564 }
10565 {
10566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10567 }
10568 {
10569 if (temp4)
10570 delete arg4;
10571 }
10572 {
10573 if (temp11)
10574 delete arg11;
10575 }
10576 return resultobj;
10577 fail:
10578 {
10579 if (temp4)
10580 delete arg4;
10581 }
10582 {
10583 if (temp11)
10584 delete arg11;
10585 }
10586 return NULL;
10587 }
10588
10589
10590 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10591 PyObject *resultobj;
10592 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10593 int result;
10594 PyObject * obj0 = 0 ;
10595 char *kwnames[] = {
10596 (char *) "self", NULL
10597 };
10598
10599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
10600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
10605
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 resultobj = SWIG_FromInt((int)result);
10610 return resultobj;
10611 fail:
10612 return NULL;
10613 }
10614
10615
10616 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10617 PyObject *resultobj;
10618 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10619 int arg2 ;
10620 PyObject * obj0 = 0 ;
10621 PyObject * obj1 = 0 ;
10622 char *kwnames[] = {
10623 (char *) "self",(char *) "value", NULL
10624 };
10625
10626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
10627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10629 arg2 = (int) SWIG_AsInt(obj1);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 {
10632 PyThreadState* __tstate = wxPyBeginAllowThreads();
10633 (arg1)->SetValue(arg2);
10634
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 Py_INCREF(Py_None); resultobj = Py_None;
10639 return resultobj;
10640 fail:
10641 return NULL;
10642 }
10643
10644
10645 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) {
10646 PyObject *resultobj;
10647 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10648 wxString *arg2 = 0 ;
10649 bool temp2 = False ;
10650 PyObject * obj0 = 0 ;
10651 PyObject * obj1 = 0 ;
10652 char *kwnames[] = {
10653 (char *) "self",(char *) "text", NULL
10654 };
10655
10656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
10657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10659 {
10660 arg2 = wxString_in_helper(obj1);
10661 if (arg2 == NULL) SWIG_fail;
10662 temp2 = True;
10663 }
10664 {
10665 PyThreadState* __tstate = wxPyBeginAllowThreads();
10666 (arg1)->SetValue((wxString const &)*arg2);
10667
10668 wxPyEndAllowThreads(__tstate);
10669 if (PyErr_Occurred()) SWIG_fail;
10670 }
10671 Py_INCREF(Py_None); resultobj = Py_None;
10672 {
10673 if (temp2)
10674 delete arg2;
10675 }
10676 return resultobj;
10677 fail:
10678 {
10679 if (temp2)
10680 delete arg2;
10681 }
10682 return NULL;
10683 }
10684
10685
10686 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10687 PyObject *resultobj;
10688 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10689 int arg2 ;
10690 int arg3 ;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 PyObject * obj2 = 0 ;
10694 char *kwnames[] = {
10695 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10696 };
10697
10698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10701 arg2 = (int) SWIG_AsInt(obj1);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 arg3 = (int) SWIG_AsInt(obj2);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 {
10706 PyThreadState* __tstate = wxPyBeginAllowThreads();
10707 (arg1)->SetRange(arg2,arg3);
10708
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 Py_INCREF(Py_None); resultobj = Py_None;
10713 return resultobj;
10714 fail:
10715 return NULL;
10716 }
10717
10718
10719 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj;
10721 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10722 int result;
10723 PyObject * obj0 = 0 ;
10724 char *kwnames[] = {
10725 (char *) "self", NULL
10726 };
10727
10728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
10729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10731 {
10732 PyThreadState* __tstate = wxPyBeginAllowThreads();
10733 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
10734
10735 wxPyEndAllowThreads(__tstate);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 }
10738 resultobj = SWIG_FromInt((int)result);
10739 return resultobj;
10740 fail:
10741 return NULL;
10742 }
10743
10744
10745 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
10746 PyObject *resultobj;
10747 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10748 int result;
10749 PyObject * obj0 = 0 ;
10750 char *kwnames[] = {
10751 (char *) "self", NULL
10752 };
10753
10754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
10755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
10760
10761 wxPyEndAllowThreads(__tstate);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 }
10764 resultobj = SWIG_FromInt((int)result);
10765 return resultobj;
10766 fail:
10767 return NULL;
10768 }
10769
10770
10771 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
10772 PyObject *resultobj;
10773 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10774 long arg2 ;
10775 long arg3 ;
10776 PyObject * obj0 = 0 ;
10777 PyObject * obj1 = 0 ;
10778 PyObject * obj2 = 0 ;
10779 char *kwnames[] = {
10780 (char *) "self",(char *) "from",(char *) "to", NULL
10781 };
10782
10783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
10784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10786 arg2 = (long) SWIG_AsLong(obj1);
10787 if (PyErr_Occurred()) SWIG_fail;
10788 arg3 = (long) SWIG_AsLong(obj2);
10789 if (PyErr_Occurred()) SWIG_fail;
10790 {
10791 PyThreadState* __tstate = wxPyBeginAllowThreads();
10792 (arg1)->SetSelection(arg2,arg3);
10793
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 }
10797 Py_INCREF(Py_None); resultobj = Py_None;
10798 return resultobj;
10799 fail:
10800 return NULL;
10801 }
10802
10803
10804 static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) {
10805 PyObject *obj;
10806 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10807 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
10808 Py_INCREF(obj);
10809 return Py_BuildValue((char *)"");
10810 }
10811 static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10812 PyObject *resultobj;
10813 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10814 int arg2 = (int) 0 ;
10815 wxSpinEvent *result;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 char *kwnames[] = {
10819 (char *) "commandType",(char *) "winid", NULL
10820 };
10821
10822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
10823 if (obj0) {
10824 arg1 = (wxEventType) SWIG_AsInt(obj0);
10825 if (PyErr_Occurred()) SWIG_fail;
10826 }
10827 if (obj1) {
10828 arg2 = (int) SWIG_AsInt(obj1);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 }
10831 {
10832 PyThreadState* __tstate = wxPyBeginAllowThreads();
10833 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
10834
10835 wxPyEndAllowThreads(__tstate);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 }
10838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
10839 return resultobj;
10840 fail:
10841 return NULL;
10842 }
10843
10844
10845 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10846 PyObject *resultobj;
10847 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10848 int result;
10849 PyObject * obj0 = 0 ;
10850 char *kwnames[] = {
10851 (char *) "self", NULL
10852 };
10853
10854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
10855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
10856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10857 {
10858 PyThreadState* __tstate = wxPyBeginAllowThreads();
10859 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
10860
10861 wxPyEndAllowThreads(__tstate);
10862 if (PyErr_Occurred()) SWIG_fail;
10863 }
10864 resultobj = SWIG_FromInt((int)result);
10865 return resultobj;
10866 fail:
10867 return NULL;
10868 }
10869
10870
10871 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10872 PyObject *resultobj;
10873 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10874 int arg2 ;
10875 PyObject * obj0 = 0 ;
10876 PyObject * obj1 = 0 ;
10877 char *kwnames[] = {
10878 (char *) "self",(char *) "pos", NULL
10879 };
10880
10881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
10882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
10883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10884 arg2 = (int) SWIG_AsInt(obj1);
10885 if (PyErr_Occurred()) SWIG_fail;
10886 {
10887 PyThreadState* __tstate = wxPyBeginAllowThreads();
10888 (arg1)->SetPosition(arg2);
10889
10890 wxPyEndAllowThreads(__tstate);
10891 if (PyErr_Occurred()) SWIG_fail;
10892 }
10893 Py_INCREF(Py_None); resultobj = Py_None;
10894 return resultobj;
10895 fail:
10896 return NULL;
10897 }
10898
10899
10900 static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) {
10901 PyObject *obj;
10902 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10903 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
10904 Py_INCREF(obj);
10905 return Py_BuildValue((char *)"");
10906 }
10907 static int _wrap_RadioBoxNameStr_set(PyObject *) {
10908 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
10909 return 1;
10910 }
10911
10912
10913 static PyObject *_wrap_RadioBoxNameStr_get() {
10914 PyObject *pyobj;
10915
10916 {
10917 #if wxUSE_UNICODE
10918 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
10919 #else
10920 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
10921 #endif
10922 }
10923 return pyobj;
10924 }
10925
10926
10927 static int _wrap_RadioButtonNameStr_set(PyObject *) {
10928 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
10929 return 1;
10930 }
10931
10932
10933 static PyObject *_wrap_RadioButtonNameStr_get() {
10934 PyObject *pyobj;
10935
10936 {
10937 #if wxUSE_UNICODE
10938 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
10939 #else
10940 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
10941 #endif
10942 }
10943 return pyobj;
10944 }
10945
10946
10947 static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
10948 PyObject *resultobj;
10949 wxWindow *arg1 = (wxWindow *) 0 ;
10950 int arg2 ;
10951 wxString *arg3 = 0 ;
10952 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10953 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10954 wxSize const &arg5_defvalue = wxDefaultSize ;
10955 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10956 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10957 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10958 int arg7 = (int) 0 ;
10959 long arg8 = (long) wxRA_HORIZONTAL ;
10960 wxValidator const &arg9_defvalue = wxDefaultValidator ;
10961 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
10962 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
10963 wxString *arg10 = (wxString *) &arg10_defvalue ;
10964 wxRadioBox *result;
10965 bool temp3 = False ;
10966 wxPoint temp4 ;
10967 wxSize temp5 ;
10968 bool temp6 = False ;
10969 bool temp10 = False ;
10970 PyObject * obj0 = 0 ;
10971 PyObject * obj1 = 0 ;
10972 PyObject * obj2 = 0 ;
10973 PyObject * obj3 = 0 ;
10974 PyObject * obj4 = 0 ;
10975 PyObject * obj5 = 0 ;
10976 PyObject * obj6 = 0 ;
10977 PyObject * obj7 = 0 ;
10978 PyObject * obj8 = 0 ;
10979 PyObject * obj9 = 0 ;
10980 char *kwnames[] = {
10981 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
10982 };
10983
10984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10987 arg2 = (int) SWIG_AsInt(obj1);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 {
10990 arg3 = wxString_in_helper(obj2);
10991 if (arg3 == NULL) SWIG_fail;
10992 temp3 = True;
10993 }
10994 if (obj3) {
10995 {
10996 arg4 = &temp4;
10997 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10998 }
10999 }
11000 if (obj4) {
11001 {
11002 arg5 = &temp5;
11003 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11004 }
11005 }
11006 if (obj5) {
11007 {
11008 if (! PySequence_Check(obj5)) {
11009 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11010 SWIG_fail;
11011 }
11012 arg6 = new wxArrayString;
11013 temp6 = True;
11014 int i, len=PySequence_Length(obj5);
11015 for (i=0; i<len; i++) {
11016 PyObject* item = PySequence_GetItem(obj5, i);
11017 #if wxUSE_UNICODE
11018 PyObject* str = PyObject_Unicode(item);
11019 #else
11020 PyObject* str = PyObject_Str(item);
11021 #endif
11022 arg6->Add(Py2wxString(str));
11023 Py_DECREF(item);
11024 Py_DECREF(str);
11025 }
11026 }
11027 }
11028 if (obj6) {
11029 arg7 = (int) SWIG_AsInt(obj6);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 if (obj7) {
11033 arg8 = (long) SWIG_AsLong(obj7);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 }
11036 if (obj8) {
11037 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11038 SWIG_POINTER_EXCEPTION | 0)) == -1)
11039 SWIG_fail;
11040 if (arg9 == NULL) {
11041 PyErr_SetString(PyExc_TypeError,"null reference");
11042 SWIG_fail;
11043 }
11044 }
11045 if (obj9) {
11046 {
11047 arg10 = wxString_in_helper(obj9);
11048 if (arg10 == NULL) SWIG_fail;
11049 temp10 = True;
11050 }
11051 }
11052 {
11053 PyThreadState* __tstate = wxPyBeginAllowThreads();
11054 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);
11055
11056 wxPyEndAllowThreads(__tstate);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 }
11059 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11060 {
11061 if (temp3)
11062 delete arg3;
11063 }
11064 {
11065 if (temp6) delete arg6;
11066 }
11067 {
11068 if (temp10)
11069 delete arg10;
11070 }
11071 return resultobj;
11072 fail:
11073 {
11074 if (temp3)
11075 delete arg3;
11076 }
11077 {
11078 if (temp6) delete arg6;
11079 }
11080 {
11081 if (temp10)
11082 delete arg10;
11083 }
11084 return NULL;
11085 }
11086
11087
11088 static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj;
11090 wxRadioBox *result;
11091 char *kwnames[] = {
11092 NULL
11093 };
11094
11095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11096 {
11097 PyThreadState* __tstate = wxPyBeginAllowThreads();
11098 result = (wxRadioBox *)new wxRadioBox();
11099
11100 wxPyEndAllowThreads(__tstate);
11101 if (PyErr_Occurred()) SWIG_fail;
11102 }
11103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11104 return resultobj;
11105 fail:
11106 return NULL;
11107 }
11108
11109
11110 static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11111 PyObject *resultobj;
11112 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11113 wxWindow *arg2 = (wxWindow *) 0 ;
11114 int arg3 ;
11115 wxString *arg4 = 0 ;
11116 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11117 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11118 wxSize const &arg6_defvalue = wxDefaultSize ;
11119 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11120 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11121 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11122 int arg8 = (int) 0 ;
11123 long arg9 = (long) wxRA_HORIZONTAL ;
11124 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11125 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11126 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11127 wxString *arg11 = (wxString *) &arg11_defvalue ;
11128 bool result;
11129 bool temp4 = False ;
11130 wxPoint temp5 ;
11131 wxSize temp6 ;
11132 bool temp7 = False ;
11133 bool temp11 = False ;
11134 PyObject * obj0 = 0 ;
11135 PyObject * obj1 = 0 ;
11136 PyObject * obj2 = 0 ;
11137 PyObject * obj3 = 0 ;
11138 PyObject * obj4 = 0 ;
11139 PyObject * obj5 = 0 ;
11140 PyObject * obj6 = 0 ;
11141 PyObject * obj7 = 0 ;
11142 PyObject * obj8 = 0 ;
11143 PyObject * obj9 = 0 ;
11144 PyObject * obj10 = 0 ;
11145 char *kwnames[] = {
11146 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11147 };
11148
11149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11152 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11154 arg3 = (int) SWIG_AsInt(obj2);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 {
11157 arg4 = wxString_in_helper(obj3);
11158 if (arg4 == NULL) SWIG_fail;
11159 temp4 = True;
11160 }
11161 if (obj4) {
11162 {
11163 arg5 = &temp5;
11164 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11165 }
11166 }
11167 if (obj5) {
11168 {
11169 arg6 = &temp6;
11170 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11171 }
11172 }
11173 if (obj6) {
11174 {
11175 if (! PySequence_Check(obj6)) {
11176 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11177 SWIG_fail;
11178 }
11179 arg7 = new wxArrayString;
11180 temp7 = True;
11181 int i, len=PySequence_Length(obj6);
11182 for (i=0; i<len; i++) {
11183 PyObject* item = PySequence_GetItem(obj6, i);
11184 #if wxUSE_UNICODE
11185 PyObject* str = PyObject_Unicode(item);
11186 #else
11187 PyObject* str = PyObject_Str(item);
11188 #endif
11189 arg7->Add(Py2wxString(str));
11190 Py_DECREF(item);
11191 Py_DECREF(str);
11192 }
11193 }
11194 }
11195 if (obj7) {
11196 arg8 = (int) SWIG_AsInt(obj7);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 }
11199 if (obj8) {
11200 arg9 = (long) SWIG_AsLong(obj8);
11201 if (PyErr_Occurred()) SWIG_fail;
11202 }
11203 if (obj9) {
11204 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11205 SWIG_POINTER_EXCEPTION | 0)) == -1)
11206 SWIG_fail;
11207 if (arg10 == NULL) {
11208 PyErr_SetString(PyExc_TypeError,"null reference");
11209 SWIG_fail;
11210 }
11211 }
11212 if (obj10) {
11213 {
11214 arg11 = wxString_in_helper(obj10);
11215 if (arg11 == NULL) SWIG_fail;
11216 temp11 = True;
11217 }
11218 }
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 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);
11222
11223 wxPyEndAllowThreads(__tstate);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 }
11226 {
11227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11228 }
11229 {
11230 if (temp4)
11231 delete arg4;
11232 }
11233 {
11234 if (temp7) delete arg7;
11235 }
11236 {
11237 if (temp11)
11238 delete arg11;
11239 }
11240 return resultobj;
11241 fail:
11242 {
11243 if (temp4)
11244 delete arg4;
11245 }
11246 {
11247 if (temp7) delete arg7;
11248 }
11249 {
11250 if (temp11)
11251 delete arg11;
11252 }
11253 return NULL;
11254 }
11255
11256
11257 static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11258 PyObject *resultobj;
11259 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11260 int arg2 ;
11261 PyObject * obj0 = 0 ;
11262 PyObject * obj1 = 0 ;
11263 char *kwnames[] = {
11264 (char *) "self",(char *) "n", NULL
11265 };
11266
11267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11270 arg2 = (int) SWIG_AsInt(obj1);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 {
11273 PyThreadState* __tstate = wxPyBeginAllowThreads();
11274 (arg1)->SetSelection(arg2);
11275
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 Py_INCREF(Py_None); resultobj = Py_None;
11280 return resultobj;
11281 fail:
11282 return NULL;
11283 }
11284
11285
11286 static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11287 PyObject *resultobj;
11288 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11289 int result;
11290 PyObject * obj0 = 0 ;
11291 char *kwnames[] = {
11292 (char *) "self", NULL
11293 };
11294
11295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11298 {
11299 PyThreadState* __tstate = wxPyBeginAllowThreads();
11300 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11301
11302 wxPyEndAllowThreads(__tstate);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 }
11305 resultobj = SWIG_FromInt((int)result);
11306 return resultobj;
11307 fail:
11308 return NULL;
11309 }
11310
11311
11312 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11313 PyObject *resultobj;
11314 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11315 wxString result;
11316 PyObject * obj0 = 0 ;
11317 char *kwnames[] = {
11318 (char *) "self", NULL
11319 };
11320
11321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11324 {
11325 PyThreadState* __tstate = wxPyBeginAllowThreads();
11326 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11327
11328 wxPyEndAllowThreads(__tstate);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 }
11331 {
11332 #if wxUSE_UNICODE
11333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11334 #else
11335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11336 #endif
11337 }
11338 return resultobj;
11339 fail:
11340 return NULL;
11341 }
11342
11343
11344 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11345 PyObject *resultobj;
11346 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11347 wxString *arg2 = 0 ;
11348 bool result;
11349 bool temp2 = False ;
11350 PyObject * obj0 = 0 ;
11351 PyObject * obj1 = 0 ;
11352 char *kwnames[] = {
11353 (char *) "self",(char *) "s", NULL
11354 };
11355
11356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
11357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11359 {
11360 arg2 = wxString_in_helper(obj1);
11361 if (arg2 == NULL) SWIG_fail;
11362 temp2 = True;
11363 }
11364 {
11365 PyThreadState* __tstate = wxPyBeginAllowThreads();
11366 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
11367
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 {
11372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11373 }
11374 {
11375 if (temp2)
11376 delete arg2;
11377 }
11378 return resultobj;
11379 fail:
11380 {
11381 if (temp2)
11382 delete arg2;
11383 }
11384 return NULL;
11385 }
11386
11387
11388 static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
11389 PyObject *resultobj;
11390 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11391 int result;
11392 PyObject * obj0 = 0 ;
11393 char *kwnames[] = {
11394 (char *) "self", NULL
11395 };
11396
11397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
11398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11400 {
11401 PyThreadState* __tstate = wxPyBeginAllowThreads();
11402 result = (int)((wxRadioBox const *)arg1)->GetCount();
11403
11404 wxPyEndAllowThreads(__tstate);
11405 if (PyErr_Occurred()) SWIG_fail;
11406 }
11407 resultobj = SWIG_FromInt((int)result);
11408 return resultobj;
11409 fail:
11410 return NULL;
11411 }
11412
11413
11414 static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
11415 PyObject *resultobj;
11416 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11417 wxString *arg2 = 0 ;
11418 int result;
11419 bool temp2 = False ;
11420 PyObject * obj0 = 0 ;
11421 PyObject * obj1 = 0 ;
11422 char *kwnames[] = {
11423 (char *) "self",(char *) "s", NULL
11424 };
11425
11426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
11427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11429 {
11430 arg2 = wxString_in_helper(obj1);
11431 if (arg2 == NULL) SWIG_fail;
11432 temp2 = True;
11433 }
11434 {
11435 PyThreadState* __tstate = wxPyBeginAllowThreads();
11436 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
11437
11438 wxPyEndAllowThreads(__tstate);
11439 if (PyErr_Occurred()) SWIG_fail;
11440 }
11441 resultobj = SWIG_FromInt((int)result);
11442 {
11443 if (temp2)
11444 delete arg2;
11445 }
11446 return resultobj;
11447 fail:
11448 {
11449 if (temp2)
11450 delete arg2;
11451 }
11452 return NULL;
11453 }
11454
11455
11456 static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
11457 PyObject *resultobj;
11458 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11459 int arg2 ;
11460 wxString result;
11461 PyObject * obj0 = 0 ;
11462 PyObject * obj1 = 0 ;
11463 char *kwnames[] = {
11464 (char *) "self",(char *) "n", NULL
11465 };
11466
11467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
11468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11470 arg2 = (int) SWIG_AsInt(obj1);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = ((wxRadioBox const *)arg1)->GetString(arg2);
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 #if wxUSE_UNICODE
11481 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11482 #else
11483 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11484 #endif
11485 }
11486 return resultobj;
11487 fail:
11488 return NULL;
11489 }
11490
11491
11492 static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
11493 PyObject *resultobj;
11494 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11495 int arg2 ;
11496 wxString *arg3 = 0 ;
11497 bool temp3 = False ;
11498 PyObject * obj0 = 0 ;
11499 PyObject * obj1 = 0 ;
11500 PyObject * obj2 = 0 ;
11501 char *kwnames[] = {
11502 (char *) "self",(char *) "n",(char *) "label", NULL
11503 };
11504
11505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
11506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11508 arg2 = (int) SWIG_AsInt(obj1);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 {
11511 arg3 = wxString_in_helper(obj2);
11512 if (arg3 == NULL) SWIG_fail;
11513 temp3 = True;
11514 }
11515 {
11516 PyThreadState* __tstate = wxPyBeginAllowThreads();
11517 (arg1)->SetString(arg2,(wxString const &)*arg3);
11518
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 }
11522 Py_INCREF(Py_None); resultobj = Py_None;
11523 {
11524 if (temp3)
11525 delete arg3;
11526 }
11527 return resultobj;
11528 fail:
11529 {
11530 if (temp3)
11531 delete arg3;
11532 }
11533 return NULL;
11534 }
11535
11536
11537 static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) {
11538 PyObject *resultobj;
11539 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11540 int arg2 ;
11541 bool arg3 = (bool) True ;
11542 PyObject * obj0 = 0 ;
11543 PyObject * obj1 = 0 ;
11544 PyObject * obj2 = 0 ;
11545 char *kwnames[] = {
11546 (char *) "self",(char *) "n",(char *) "enable", NULL
11547 };
11548
11549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11552 arg2 = (int) SWIG_AsInt(obj1);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 if (obj2) {
11555 arg3 = (bool) SWIG_AsBool(obj2);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 }
11558 {
11559 PyThreadState* __tstate = wxPyBeginAllowThreads();
11560 (arg1)->Enable(arg2,arg3);
11561
11562 wxPyEndAllowThreads(__tstate);
11563 if (PyErr_Occurred()) SWIG_fail;
11564 }
11565 Py_INCREF(Py_None); resultobj = Py_None;
11566 return resultobj;
11567 fail:
11568 return NULL;
11569 }
11570
11571
11572 static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) {
11573 PyObject *resultobj;
11574 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11575 int arg2 ;
11576 bool arg3 = (bool) True ;
11577 PyObject * obj0 = 0 ;
11578 PyObject * obj1 = 0 ;
11579 PyObject * obj2 = 0 ;
11580 char *kwnames[] = {
11581 (char *) "self",(char *) "n",(char *) "show", NULL
11582 };
11583
11584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11587 arg2 = (int) SWIG_AsInt(obj1);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 if (obj2) {
11590 arg3 = (bool) SWIG_AsBool(obj2);
11591 if (PyErr_Occurred()) SWIG_fail;
11592 }
11593 {
11594 PyThreadState* __tstate = wxPyBeginAllowThreads();
11595 (arg1)->Show(arg2,arg3);
11596
11597 wxPyEndAllowThreads(__tstate);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 Py_INCREF(Py_None); resultobj = Py_None;
11601 return resultobj;
11602 fail:
11603 return NULL;
11604 }
11605
11606
11607 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
11608 PyObject *resultobj;
11609 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11610 int result;
11611 PyObject * obj0 = 0 ;
11612 char *kwnames[] = {
11613 (char *) "self", NULL
11614 };
11615
11616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
11617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11619 {
11620 PyThreadState* __tstate = wxPyBeginAllowThreads();
11621 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
11622
11623 wxPyEndAllowThreads(__tstate);
11624 if (PyErr_Occurred()) SWIG_fail;
11625 }
11626 resultobj = SWIG_FromInt((int)result);
11627 return resultobj;
11628 fail:
11629 return NULL;
11630 }
11631
11632
11633 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
11634 PyObject *resultobj;
11635 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11636 int result;
11637 PyObject * obj0 = 0 ;
11638 char *kwnames[] = {
11639 (char *) "self", NULL
11640 };
11641
11642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
11643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11645 {
11646 PyThreadState* __tstate = wxPyBeginAllowThreads();
11647 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
11648
11649 wxPyEndAllowThreads(__tstate);
11650 if (PyErr_Occurred()) SWIG_fail;
11651 }
11652 resultobj = SWIG_FromInt((int)result);
11653 return resultobj;
11654 fail:
11655 return NULL;
11656 }
11657
11658
11659 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
11660 PyObject *resultobj;
11661 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11662 int arg2 ;
11663 int arg3 ;
11664 long arg4 ;
11665 int result;
11666 PyObject * obj0 = 0 ;
11667 PyObject * obj1 = 0 ;
11668 PyObject * obj2 = 0 ;
11669 PyObject * obj3 = 0 ;
11670 char *kwnames[] = {
11671 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
11672 };
11673
11674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11677 arg2 = (int) SWIG_AsInt(obj1);
11678 if (PyErr_Occurred()) SWIG_fail;
11679 arg3 = (wxDirection) SWIG_AsInt(obj2);
11680 if (PyErr_Occurred()) SWIG_fail;
11681 arg4 = (long) SWIG_AsLong(obj3);
11682 if (PyErr_Occurred()) SWIG_fail;
11683 {
11684 PyThreadState* __tstate = wxPyBeginAllowThreads();
11685 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
11686
11687 wxPyEndAllowThreads(__tstate);
11688 if (PyErr_Occurred()) SWIG_fail;
11689 }
11690 resultobj = SWIG_FromInt((int)result);
11691 return resultobj;
11692 fail:
11693 return NULL;
11694 }
11695
11696
11697 static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) {
11698 PyObject *obj;
11699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11700 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
11701 Py_INCREF(obj);
11702 return Py_BuildValue((char *)"");
11703 }
11704 static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
11705 PyObject *resultobj;
11706 wxWindow *arg1 = (wxWindow *) 0 ;
11707 int arg2 ;
11708 wxString *arg3 = 0 ;
11709 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11710 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11711 wxSize const &arg5_defvalue = wxDefaultSize ;
11712 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11713 long arg6 = (long) 0 ;
11714 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11715 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11716 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
11717 wxString *arg8 = (wxString *) &arg8_defvalue ;
11718 wxRadioButton *result;
11719 bool temp3 = False ;
11720 wxPoint temp4 ;
11721 wxSize temp5 ;
11722 bool temp8 = 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 char *kwnames[] = {
11732 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11733 };
11734
11735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11738 arg2 = (int) SWIG_AsInt(obj1);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 {
11741 arg3 = wxString_in_helper(obj2);
11742 if (arg3 == NULL) SWIG_fail;
11743 temp3 = True;
11744 }
11745 if (obj3) {
11746 {
11747 arg4 = &temp4;
11748 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11749 }
11750 }
11751 if (obj4) {
11752 {
11753 arg5 = &temp5;
11754 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11755 }
11756 }
11757 if (obj5) {
11758 arg6 = (long) SWIG_AsLong(obj5);
11759 if (PyErr_Occurred()) SWIG_fail;
11760 }
11761 if (obj6) {
11762 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
11763 SWIG_POINTER_EXCEPTION | 0)) == -1)
11764 SWIG_fail;
11765 if (arg7 == NULL) {
11766 PyErr_SetString(PyExc_TypeError,"null reference");
11767 SWIG_fail;
11768 }
11769 }
11770 if (obj7) {
11771 {
11772 arg8 = wxString_in_helper(obj7);
11773 if (arg8 == NULL) SWIG_fail;
11774 temp8 = True;
11775 }
11776 }
11777 {
11778 PyThreadState* __tstate = wxPyBeginAllowThreads();
11779 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11780
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
11785 {
11786 if (temp3)
11787 delete arg3;
11788 }
11789 {
11790 if (temp8)
11791 delete arg8;
11792 }
11793 return resultobj;
11794 fail:
11795 {
11796 if (temp3)
11797 delete arg3;
11798 }
11799 {
11800 if (temp8)
11801 delete arg8;
11802 }
11803 return NULL;
11804 }
11805
11806
11807 static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
11808 PyObject *resultobj;
11809 wxRadioButton *result;
11810 char *kwnames[] = {
11811 NULL
11812 };
11813
11814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
11815 {
11816 PyThreadState* __tstate = wxPyBeginAllowThreads();
11817 result = (wxRadioButton *)new wxRadioButton();
11818
11819 wxPyEndAllowThreads(__tstate);
11820 if (PyErr_Occurred()) SWIG_fail;
11821 }
11822 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
11823 return resultobj;
11824 fail:
11825 return NULL;
11826 }
11827
11828
11829 static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11830 PyObject *resultobj;
11831 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11832 wxWindow *arg2 = (wxWindow *) 0 ;
11833 int arg3 ;
11834 wxString *arg4 = 0 ;
11835 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11836 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11837 wxSize const &arg6_defvalue = wxDefaultSize ;
11838 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11839 long arg7 = (long) 0 ;
11840 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11841 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11842 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
11843 wxString *arg9 = (wxString *) &arg9_defvalue ;
11844 bool result;
11845 bool temp4 = False ;
11846 wxPoint temp5 ;
11847 wxSize temp6 ;
11848 bool temp9 = False ;
11849 PyObject * obj0 = 0 ;
11850 PyObject * obj1 = 0 ;
11851 PyObject * obj2 = 0 ;
11852 PyObject * obj3 = 0 ;
11853 PyObject * obj4 = 0 ;
11854 PyObject * obj5 = 0 ;
11855 PyObject * obj6 = 0 ;
11856 PyObject * obj7 = 0 ;
11857 PyObject * obj8 = 0 ;
11858 char *kwnames[] = {
11859 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11860 };
11861
11862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
11863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
11864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11865 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11867 arg3 = (int) SWIG_AsInt(obj2);
11868 if (PyErr_Occurred()) SWIG_fail;
11869 {
11870 arg4 = wxString_in_helper(obj3);
11871 if (arg4 == NULL) SWIG_fail;
11872 temp4 = True;
11873 }
11874 if (obj4) {
11875 {
11876 arg5 = &temp5;
11877 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11878 }
11879 }
11880 if (obj5) {
11881 {
11882 arg6 = &temp6;
11883 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11884 }
11885 }
11886 if (obj6) {
11887 arg7 = (long) SWIG_AsLong(obj6);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 if (obj7) {
11891 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
11892 SWIG_POINTER_EXCEPTION | 0)) == -1)
11893 SWIG_fail;
11894 if (arg8 == NULL) {
11895 PyErr_SetString(PyExc_TypeError,"null reference");
11896 SWIG_fail;
11897 }
11898 }
11899 if (obj8) {
11900 {
11901 arg9 = wxString_in_helper(obj8);
11902 if (arg9 == NULL) SWIG_fail;
11903 temp9 = True;
11904 }
11905 }
11906 {
11907 PyThreadState* __tstate = wxPyBeginAllowThreads();
11908 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11909
11910 wxPyEndAllowThreads(__tstate);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 {
11914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11915 }
11916 {
11917 if (temp4)
11918 delete arg4;
11919 }
11920 {
11921 if (temp9)
11922 delete arg9;
11923 }
11924 return resultobj;
11925 fail:
11926 {
11927 if (temp4)
11928 delete arg4;
11929 }
11930 {
11931 if (temp9)
11932 delete arg9;
11933 }
11934 return NULL;
11935 }
11936
11937
11938 static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11939 PyObject *resultobj;
11940 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11941 bool result;
11942 PyObject * obj0 = 0 ;
11943 char *kwnames[] = {
11944 (char *) "self", NULL
11945 };
11946
11947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
11948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
11949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11950 {
11951 PyThreadState* __tstate = wxPyBeginAllowThreads();
11952 result = (bool)(arg1)->GetValue();
11953
11954 wxPyEndAllowThreads(__tstate);
11955 if (PyErr_Occurred()) SWIG_fail;
11956 }
11957 {
11958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11959 }
11960 return resultobj;
11961 fail:
11962 return NULL;
11963 }
11964
11965
11966 static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11967 PyObject *resultobj;
11968 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11969 bool arg2 ;
11970 PyObject * obj0 = 0 ;
11971 PyObject * obj1 = 0 ;
11972 char *kwnames[] = {
11973 (char *) "self",(char *) "value", NULL
11974 };
11975
11976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
11978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11979 arg2 = (bool) SWIG_AsBool(obj1);
11980 if (PyErr_Occurred()) SWIG_fail;
11981 {
11982 PyThreadState* __tstate = wxPyBeginAllowThreads();
11983 (arg1)->SetValue(arg2);
11984
11985 wxPyEndAllowThreads(__tstate);
11986 if (PyErr_Occurred()) SWIG_fail;
11987 }
11988 Py_INCREF(Py_None); resultobj = Py_None;
11989 return resultobj;
11990 fail:
11991 return NULL;
11992 }
11993
11994
11995 static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) {
11996 PyObject *obj;
11997 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11998 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
11999 Py_INCREF(obj);
12000 return Py_BuildValue((char *)"");
12001 }
12002 static int _wrap_SliderNameStr_set(PyObject *) {
12003 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12004 return 1;
12005 }
12006
12007
12008 static PyObject *_wrap_SliderNameStr_get() {
12009 PyObject *pyobj;
12010
12011 {
12012 #if wxUSE_UNICODE
12013 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12014 #else
12015 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12016 #endif
12017 }
12018 return pyobj;
12019 }
12020
12021
12022 static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) {
12023 PyObject *resultobj;
12024 wxWindow *arg1 = (wxWindow *) 0 ;
12025 int arg2 ;
12026 int arg3 ;
12027 int arg4 ;
12028 int arg5 ;
12029 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12030 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12031 wxSize const &arg7_defvalue = wxDefaultSize ;
12032 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12033 long arg8 = (long) wxSL_HORIZONTAL ;
12034 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12035 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12036 wxString const &arg10_defvalue = wxPySliderNameStr ;
12037 wxString *arg10 = (wxString *) &arg10_defvalue ;
12038 wxSlider *result;
12039 wxPoint temp6 ;
12040 wxSize temp7 ;
12041 bool temp10 = False ;
12042 PyObject * obj0 = 0 ;
12043 PyObject * obj1 = 0 ;
12044 PyObject * obj2 = 0 ;
12045 PyObject * obj3 = 0 ;
12046 PyObject * obj4 = 0 ;
12047 PyObject * obj5 = 0 ;
12048 PyObject * obj6 = 0 ;
12049 PyObject * obj7 = 0 ;
12050 PyObject * obj8 = 0 ;
12051 PyObject * obj9 = 0 ;
12052 char *kwnames[] = {
12053 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12054 };
12055
12056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12059 arg2 = (int) SWIG_AsInt(obj1);
12060 if (PyErr_Occurred()) SWIG_fail;
12061 arg3 = (int) SWIG_AsInt(obj2);
12062 if (PyErr_Occurred()) SWIG_fail;
12063 arg4 = (int) SWIG_AsInt(obj3);
12064 if (PyErr_Occurred()) SWIG_fail;
12065 arg5 = (int) SWIG_AsInt(obj4);
12066 if (PyErr_Occurred()) SWIG_fail;
12067 if (obj5) {
12068 {
12069 arg6 = &temp6;
12070 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12071 }
12072 }
12073 if (obj6) {
12074 {
12075 arg7 = &temp7;
12076 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12077 }
12078 }
12079 if (obj7) {
12080 arg8 = (long) SWIG_AsLong(obj7);
12081 if (PyErr_Occurred()) SWIG_fail;
12082 }
12083 if (obj8) {
12084 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12085 SWIG_POINTER_EXCEPTION | 0)) == -1)
12086 SWIG_fail;
12087 if (arg9 == NULL) {
12088 PyErr_SetString(PyExc_TypeError,"null reference");
12089 SWIG_fail;
12090 }
12091 }
12092 if (obj9) {
12093 {
12094 arg10 = wxString_in_helper(obj9);
12095 if (arg10 == NULL) SWIG_fail;
12096 temp10 = True;
12097 }
12098 }
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12102
12103 wxPyEndAllowThreads(__tstate);
12104 if (PyErr_Occurred()) SWIG_fail;
12105 }
12106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12107 {
12108 if (temp10)
12109 delete arg10;
12110 }
12111 return resultobj;
12112 fail:
12113 {
12114 if (temp10)
12115 delete arg10;
12116 }
12117 return NULL;
12118 }
12119
12120
12121 static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) {
12122 PyObject *resultobj;
12123 wxSlider *result;
12124 char *kwnames[] = {
12125 NULL
12126 };
12127
12128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12129 {
12130 PyThreadState* __tstate = wxPyBeginAllowThreads();
12131 result = (wxSlider *)new wxSlider();
12132
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12137 return resultobj;
12138 fail:
12139 return NULL;
12140 }
12141
12142
12143 static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12144 PyObject *resultobj;
12145 wxSlider *arg1 = (wxSlider *) 0 ;
12146 wxWindow *arg2 = (wxWindow *) 0 ;
12147 int arg3 ;
12148 int arg4 ;
12149 int arg5 ;
12150 int arg6 ;
12151 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12152 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12153 wxSize const &arg8_defvalue = wxDefaultSize ;
12154 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12155 long arg9 = (long) wxSL_HORIZONTAL ;
12156 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12157 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12158 wxString const &arg11_defvalue = wxPySliderNameStr ;
12159 wxString *arg11 = (wxString *) &arg11_defvalue ;
12160 bool result;
12161 wxPoint temp7 ;
12162 wxSize temp8 ;
12163 bool temp11 = False ;
12164 PyObject * obj0 = 0 ;
12165 PyObject * obj1 = 0 ;
12166 PyObject * obj2 = 0 ;
12167 PyObject * obj3 = 0 ;
12168 PyObject * obj4 = 0 ;
12169 PyObject * obj5 = 0 ;
12170 PyObject * obj6 = 0 ;
12171 PyObject * obj7 = 0 ;
12172 PyObject * obj8 = 0 ;
12173 PyObject * obj9 = 0 ;
12174 PyObject * obj10 = 0 ;
12175 char *kwnames[] = {
12176 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12177 };
12178
12179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12182 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12184 arg3 = (int) SWIG_AsInt(obj2);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 arg4 = (int) SWIG_AsInt(obj3);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 arg5 = (int) SWIG_AsInt(obj4);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 arg6 = (int) SWIG_AsInt(obj5);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 if (obj6) {
12193 {
12194 arg7 = &temp7;
12195 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12196 }
12197 }
12198 if (obj7) {
12199 {
12200 arg8 = &temp8;
12201 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12202 }
12203 }
12204 if (obj8) {
12205 arg9 = (long) SWIG_AsLong(obj8);
12206 if (PyErr_Occurred()) SWIG_fail;
12207 }
12208 if (obj9) {
12209 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12210 SWIG_POINTER_EXCEPTION | 0)) == -1)
12211 SWIG_fail;
12212 if (arg10 == NULL) {
12213 PyErr_SetString(PyExc_TypeError,"null reference");
12214 SWIG_fail;
12215 }
12216 }
12217 if (obj10) {
12218 {
12219 arg11 = wxString_in_helper(obj10);
12220 if (arg11 == NULL) SWIG_fail;
12221 temp11 = True;
12222 }
12223 }
12224 {
12225 PyThreadState* __tstate = wxPyBeginAllowThreads();
12226 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12227
12228 wxPyEndAllowThreads(__tstate);
12229 if (PyErr_Occurred()) SWIG_fail;
12230 }
12231 {
12232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12233 }
12234 {
12235 if (temp11)
12236 delete arg11;
12237 }
12238 return resultobj;
12239 fail:
12240 {
12241 if (temp11)
12242 delete arg11;
12243 }
12244 return NULL;
12245 }
12246
12247
12248 static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12249 PyObject *resultobj;
12250 wxSlider *arg1 = (wxSlider *) 0 ;
12251 int result;
12252 PyObject * obj0 = 0 ;
12253 char *kwnames[] = {
12254 (char *) "self", NULL
12255 };
12256
12257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12260 {
12261 PyThreadState* __tstate = wxPyBeginAllowThreads();
12262 result = (int)((wxSlider const *)arg1)->GetValue();
12263
12264 wxPyEndAllowThreads(__tstate);
12265 if (PyErr_Occurred()) SWIG_fail;
12266 }
12267 resultobj = SWIG_FromInt((int)result);
12268 return resultobj;
12269 fail:
12270 return NULL;
12271 }
12272
12273
12274 static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12275 PyObject *resultobj;
12276 wxSlider *arg1 = (wxSlider *) 0 ;
12277 int arg2 ;
12278 PyObject * obj0 = 0 ;
12279 PyObject * obj1 = 0 ;
12280 char *kwnames[] = {
12281 (char *) "self",(char *) "value", NULL
12282 };
12283
12284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12287 arg2 = (int) SWIG_AsInt(obj1);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 {
12290 PyThreadState* __tstate = wxPyBeginAllowThreads();
12291 (arg1)->SetValue(arg2);
12292
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 Py_INCREF(Py_None); resultobj = Py_None;
12297 return resultobj;
12298 fail:
12299 return NULL;
12300 }
12301
12302
12303 static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
12304 PyObject *resultobj;
12305 wxSlider *arg1 = (wxSlider *) 0 ;
12306 int arg2 ;
12307 int arg3 ;
12308 PyObject * obj0 = 0 ;
12309 PyObject * obj1 = 0 ;
12310 PyObject * obj2 = 0 ;
12311 char *kwnames[] = {
12312 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
12313 };
12314
12315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
12316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12318 arg2 = (int) SWIG_AsInt(obj1);
12319 if (PyErr_Occurred()) SWIG_fail;
12320 arg3 = (int) SWIG_AsInt(obj2);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 {
12323 PyThreadState* __tstate = wxPyBeginAllowThreads();
12324 (arg1)->SetRange(arg2,arg3);
12325
12326 wxPyEndAllowThreads(__tstate);
12327 if (PyErr_Occurred()) SWIG_fail;
12328 }
12329 Py_INCREF(Py_None); resultobj = Py_None;
12330 return resultobj;
12331 fail:
12332 return NULL;
12333 }
12334
12335
12336 static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
12337 PyObject *resultobj;
12338 wxSlider *arg1 = (wxSlider *) 0 ;
12339 int result;
12340 PyObject * obj0 = 0 ;
12341 char *kwnames[] = {
12342 (char *) "self", NULL
12343 };
12344
12345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
12346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 result = (int)((wxSlider const *)arg1)->GetMin();
12351
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 resultobj = SWIG_FromInt((int)result);
12356 return resultobj;
12357 fail:
12358 return NULL;
12359 }
12360
12361
12362 static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
12363 PyObject *resultobj;
12364 wxSlider *arg1 = (wxSlider *) 0 ;
12365 int result;
12366 PyObject * obj0 = 0 ;
12367 char *kwnames[] = {
12368 (char *) "self", NULL
12369 };
12370
12371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
12372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12374 {
12375 PyThreadState* __tstate = wxPyBeginAllowThreads();
12376 result = (int)((wxSlider const *)arg1)->GetMax();
12377
12378 wxPyEndAllowThreads(__tstate);
12379 if (PyErr_Occurred()) SWIG_fail;
12380 }
12381 resultobj = SWIG_FromInt((int)result);
12382 return resultobj;
12383 fail:
12384 return NULL;
12385 }
12386
12387
12388 static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
12389 PyObject *resultobj;
12390 wxSlider *arg1 = (wxSlider *) 0 ;
12391 int arg2 ;
12392 PyObject * obj0 = 0 ;
12393 PyObject * obj1 = 0 ;
12394 char *kwnames[] = {
12395 (char *) "self",(char *) "minValue", NULL
12396 };
12397
12398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
12399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12401 arg2 = (int) SWIG_AsInt(obj1);
12402 if (PyErr_Occurred()) SWIG_fail;
12403 {
12404 PyThreadState* __tstate = wxPyBeginAllowThreads();
12405 (arg1)->SetMin(arg2);
12406
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 Py_INCREF(Py_None); resultobj = Py_None;
12411 return resultobj;
12412 fail:
12413 return NULL;
12414 }
12415
12416
12417 static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
12418 PyObject *resultobj;
12419 wxSlider *arg1 = (wxSlider *) 0 ;
12420 int arg2 ;
12421 PyObject * obj0 = 0 ;
12422 PyObject * obj1 = 0 ;
12423 char *kwnames[] = {
12424 (char *) "self",(char *) "maxValue", NULL
12425 };
12426
12427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
12428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12430 arg2 = (int) SWIG_AsInt(obj1);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 {
12433 PyThreadState* __tstate = wxPyBeginAllowThreads();
12434 (arg1)->SetMax(arg2);
12435
12436 wxPyEndAllowThreads(__tstate);
12437 if (PyErr_Occurred()) SWIG_fail;
12438 }
12439 Py_INCREF(Py_None); resultobj = Py_None;
12440 return resultobj;
12441 fail:
12442 return NULL;
12443 }
12444
12445
12446 static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
12447 PyObject *resultobj;
12448 wxSlider *arg1 = (wxSlider *) 0 ;
12449 int arg2 ;
12450 PyObject * obj0 = 0 ;
12451 PyObject * obj1 = 0 ;
12452 char *kwnames[] = {
12453 (char *) "self",(char *) "lineSize", NULL
12454 };
12455
12456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
12457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12459 arg2 = (int) SWIG_AsInt(obj1);
12460 if (PyErr_Occurred()) SWIG_fail;
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 (arg1)->SetLineSize(arg2);
12464
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 Py_INCREF(Py_None); resultobj = Py_None;
12469 return resultobj;
12470 fail:
12471 return NULL;
12472 }
12473
12474
12475 static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
12476 PyObject *resultobj;
12477 wxSlider *arg1 = (wxSlider *) 0 ;
12478 int arg2 ;
12479 PyObject * obj0 = 0 ;
12480 PyObject * obj1 = 0 ;
12481 char *kwnames[] = {
12482 (char *) "self",(char *) "pageSize", NULL
12483 };
12484
12485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
12486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12488 arg2 = (int) SWIG_AsInt(obj1);
12489 if (PyErr_Occurred()) SWIG_fail;
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 (arg1)->SetPageSize(arg2);
12493
12494 wxPyEndAllowThreads(__tstate);
12495 if (PyErr_Occurred()) SWIG_fail;
12496 }
12497 Py_INCREF(Py_None); resultobj = Py_None;
12498 return resultobj;
12499 fail:
12500 return NULL;
12501 }
12502
12503
12504 static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
12505 PyObject *resultobj;
12506 wxSlider *arg1 = (wxSlider *) 0 ;
12507 int result;
12508 PyObject * obj0 = 0 ;
12509 char *kwnames[] = {
12510 (char *) "self", NULL
12511 };
12512
12513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
12514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 result = (int)((wxSlider const *)arg1)->GetLineSize();
12519
12520 wxPyEndAllowThreads(__tstate);
12521 if (PyErr_Occurred()) SWIG_fail;
12522 }
12523 resultobj = SWIG_FromInt((int)result);
12524 return resultobj;
12525 fail:
12526 return NULL;
12527 }
12528
12529
12530 static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
12531 PyObject *resultobj;
12532 wxSlider *arg1 = (wxSlider *) 0 ;
12533 int result;
12534 PyObject * obj0 = 0 ;
12535 char *kwnames[] = {
12536 (char *) "self", NULL
12537 };
12538
12539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
12540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12542 {
12543 PyThreadState* __tstate = wxPyBeginAllowThreads();
12544 result = (int)((wxSlider const *)arg1)->GetPageSize();
12545
12546 wxPyEndAllowThreads(__tstate);
12547 if (PyErr_Occurred()) SWIG_fail;
12548 }
12549 resultobj = SWIG_FromInt((int)result);
12550 return resultobj;
12551 fail:
12552 return NULL;
12553 }
12554
12555
12556 static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
12557 PyObject *resultobj;
12558 wxSlider *arg1 = (wxSlider *) 0 ;
12559 int arg2 ;
12560 PyObject * obj0 = 0 ;
12561 PyObject * obj1 = 0 ;
12562 char *kwnames[] = {
12563 (char *) "self",(char *) "lenPixels", NULL
12564 };
12565
12566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
12567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12569 arg2 = (int) SWIG_AsInt(obj1);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 (arg1)->SetThumbLength(arg2);
12574
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 Py_INCREF(Py_None); resultobj = Py_None;
12579 return resultobj;
12580 fail:
12581 return NULL;
12582 }
12583
12584
12585 static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
12586 PyObject *resultobj;
12587 wxSlider *arg1 = (wxSlider *) 0 ;
12588 int result;
12589 PyObject * obj0 = 0 ;
12590 char *kwnames[] = {
12591 (char *) "self", NULL
12592 };
12593
12594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
12595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12597 {
12598 PyThreadState* __tstate = wxPyBeginAllowThreads();
12599 result = (int)((wxSlider const *)arg1)->GetThumbLength();
12600
12601 wxPyEndAllowThreads(__tstate);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 }
12604 resultobj = SWIG_FromInt((int)result);
12605 return resultobj;
12606 fail:
12607 return NULL;
12608 }
12609
12610
12611 static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
12612 PyObject *resultobj;
12613 wxSlider *arg1 = (wxSlider *) 0 ;
12614 int arg2 ;
12615 int arg3 = (int) 1 ;
12616 PyObject * obj0 = 0 ;
12617 PyObject * obj1 = 0 ;
12618 PyObject * obj2 = 0 ;
12619 char *kwnames[] = {
12620 (char *) "self",(char *) "n",(char *) "pos", NULL
12621 };
12622
12623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
12624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12626 arg2 = (int) SWIG_AsInt(obj1);
12627 if (PyErr_Occurred()) SWIG_fail;
12628 if (obj2) {
12629 arg3 = (int) SWIG_AsInt(obj2);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 {
12633 PyThreadState* __tstate = wxPyBeginAllowThreads();
12634 (arg1)->SetTickFreq(arg2,arg3);
12635
12636 wxPyEndAllowThreads(__tstate);
12637 if (PyErr_Occurred()) SWIG_fail;
12638 }
12639 Py_INCREF(Py_None); resultobj = Py_None;
12640 return resultobj;
12641 fail:
12642 return NULL;
12643 }
12644
12645
12646 static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
12647 PyObject *resultobj;
12648 wxSlider *arg1 = (wxSlider *) 0 ;
12649 int result;
12650 PyObject * obj0 = 0 ;
12651 char *kwnames[] = {
12652 (char *) "self", NULL
12653 };
12654
12655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
12656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 result = (int)((wxSlider const *)arg1)->GetTickFreq();
12661
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 resultobj = SWIG_FromInt((int)result);
12666 return resultobj;
12667 fail:
12668 return NULL;
12669 }
12670
12671
12672 static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj;
12674 wxSlider *arg1 = (wxSlider *) 0 ;
12675 PyObject * obj0 = 0 ;
12676 char *kwnames[] = {
12677 (char *) "self", NULL
12678 };
12679
12680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
12681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12683 {
12684 PyThreadState* __tstate = wxPyBeginAllowThreads();
12685 (arg1)->ClearTicks();
12686
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 Py_INCREF(Py_None); resultobj = Py_None;
12691 return resultobj;
12692 fail:
12693 return NULL;
12694 }
12695
12696
12697 static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) {
12698 PyObject *resultobj;
12699 wxSlider *arg1 = (wxSlider *) 0 ;
12700 int arg2 ;
12701 PyObject * obj0 = 0 ;
12702 PyObject * obj1 = 0 ;
12703 char *kwnames[] = {
12704 (char *) "self",(char *) "tickPos", NULL
12705 };
12706
12707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
12708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12710 arg2 = (int) SWIG_AsInt(obj1);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 {
12713 PyThreadState* __tstate = wxPyBeginAllowThreads();
12714 (arg1)->SetTick(arg2);
12715
12716 wxPyEndAllowThreads(__tstate);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 Py_INCREF(Py_None); resultobj = Py_None;
12720 return resultobj;
12721 fail:
12722 return NULL;
12723 }
12724
12725
12726 static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) {
12727 PyObject *resultobj;
12728 wxSlider *arg1 = (wxSlider *) 0 ;
12729 PyObject * obj0 = 0 ;
12730 char *kwnames[] = {
12731 (char *) "self", NULL
12732 };
12733
12734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
12735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12737 {
12738 PyThreadState* __tstate = wxPyBeginAllowThreads();
12739 (arg1)->ClearSel();
12740
12741 wxPyEndAllowThreads(__tstate);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 Py_INCREF(Py_None); resultobj = Py_None;
12745 return resultobj;
12746 fail:
12747 return NULL;
12748 }
12749
12750
12751 static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) {
12752 PyObject *resultobj;
12753 wxSlider *arg1 = (wxSlider *) 0 ;
12754 int result;
12755 PyObject * obj0 = 0 ;
12756 char *kwnames[] = {
12757 (char *) "self", NULL
12758 };
12759
12760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
12761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12763 {
12764 PyThreadState* __tstate = wxPyBeginAllowThreads();
12765 result = (int)((wxSlider const *)arg1)->GetSelEnd();
12766
12767 wxPyEndAllowThreads(__tstate);
12768 if (PyErr_Occurred()) SWIG_fail;
12769 }
12770 resultobj = SWIG_FromInt((int)result);
12771 return resultobj;
12772 fail:
12773 return NULL;
12774 }
12775
12776
12777 static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) {
12778 PyObject *resultobj;
12779 wxSlider *arg1 = (wxSlider *) 0 ;
12780 int result;
12781 PyObject * obj0 = 0 ;
12782 char *kwnames[] = {
12783 (char *) "self", NULL
12784 };
12785
12786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
12787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 result = (int)((wxSlider const *)arg1)->GetSelStart();
12792
12793 wxPyEndAllowThreads(__tstate);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 resultobj = SWIG_FromInt((int)result);
12797 return resultobj;
12798 fail:
12799 return NULL;
12800 }
12801
12802
12803 static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12804 PyObject *resultobj;
12805 wxSlider *arg1 = (wxSlider *) 0 ;
12806 int arg2 ;
12807 int arg3 ;
12808 PyObject * obj0 = 0 ;
12809 PyObject * obj1 = 0 ;
12810 PyObject * obj2 = 0 ;
12811 char *kwnames[] = {
12812 (char *) "self",(char *) "min",(char *) "max", NULL
12813 };
12814
12815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
12816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12818 arg2 = (int) SWIG_AsInt(obj1);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 arg3 = (int) SWIG_AsInt(obj2);
12821 if (PyErr_Occurred()) SWIG_fail;
12822 {
12823 PyThreadState* __tstate = wxPyBeginAllowThreads();
12824 (arg1)->SetSelection(arg2,arg3);
12825
12826 wxPyEndAllowThreads(__tstate);
12827 if (PyErr_Occurred()) SWIG_fail;
12828 }
12829 Py_INCREF(Py_None); resultobj = Py_None;
12830 return resultobj;
12831 fail:
12832 return NULL;
12833 }
12834
12835
12836 static PyObject * Slider_swigregister(PyObject *, PyObject *args) {
12837 PyObject *obj;
12838 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12839 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
12840 Py_INCREF(obj);
12841 return Py_BuildValue((char *)"");
12842 }
12843 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
12844 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
12845 return 1;
12846 }
12847
12848
12849 static PyObject *_wrap_ToggleButtonNameStr_get() {
12850 PyObject *pyobj;
12851
12852 {
12853 #if wxUSE_UNICODE
12854 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12855 #else
12856 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12857 #endif
12858 }
12859 return pyobj;
12860 }
12861
12862
12863 static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
12864 PyObject *resultobj;
12865 wxWindow *arg1 = (wxWindow *) 0 ;
12866 int arg2 ;
12867 wxString *arg3 = 0 ;
12868 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12869 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12870 wxSize const &arg5_defvalue = wxDefaultSize ;
12871 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12872 long arg6 = (long) 0 ;
12873 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12874 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12875 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
12876 wxString *arg8 = (wxString *) &arg8_defvalue ;
12877 wxToggleButton *result;
12878 bool temp3 = False ;
12879 wxPoint temp4 ;
12880 wxSize temp5 ;
12881 bool temp8 = False ;
12882 PyObject * obj0 = 0 ;
12883 PyObject * obj1 = 0 ;
12884 PyObject * obj2 = 0 ;
12885 PyObject * obj3 = 0 ;
12886 PyObject * obj4 = 0 ;
12887 PyObject * obj5 = 0 ;
12888 PyObject * obj6 = 0 ;
12889 PyObject * obj7 = 0 ;
12890 char *kwnames[] = {
12891 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12892 };
12893
12894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12897 arg2 = (int) SWIG_AsInt(obj1);
12898 if (PyErr_Occurred()) SWIG_fail;
12899 {
12900 arg3 = wxString_in_helper(obj2);
12901 if (arg3 == NULL) SWIG_fail;
12902 temp3 = True;
12903 }
12904 if (obj3) {
12905 {
12906 arg4 = &temp4;
12907 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12908 }
12909 }
12910 if (obj4) {
12911 {
12912 arg5 = &temp5;
12913 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12914 }
12915 }
12916 if (obj5) {
12917 arg6 = (long) SWIG_AsLong(obj5);
12918 if (PyErr_Occurred()) SWIG_fail;
12919 }
12920 if (obj6) {
12921 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12922 SWIG_POINTER_EXCEPTION | 0)) == -1)
12923 SWIG_fail;
12924 if (arg7 == NULL) {
12925 PyErr_SetString(PyExc_TypeError,"null reference");
12926 SWIG_fail;
12927 }
12928 }
12929 if (obj7) {
12930 {
12931 arg8 = wxString_in_helper(obj7);
12932 if (arg8 == NULL) SWIG_fail;
12933 temp8 = True;
12934 }
12935 }
12936 {
12937 PyThreadState* __tstate = wxPyBeginAllowThreads();
12938 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12939
12940 wxPyEndAllowThreads(__tstate);
12941 if (PyErr_Occurred()) SWIG_fail;
12942 }
12943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
12944 {
12945 if (temp3)
12946 delete arg3;
12947 }
12948 {
12949 if (temp8)
12950 delete arg8;
12951 }
12952 return resultobj;
12953 fail:
12954 {
12955 if (temp3)
12956 delete arg3;
12957 }
12958 {
12959 if (temp8)
12960 delete arg8;
12961 }
12962 return NULL;
12963 }
12964
12965
12966 static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
12967 PyObject *resultobj;
12968 wxToggleButton *result;
12969 char *kwnames[] = {
12970 NULL
12971 };
12972
12973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
12974 {
12975 PyThreadState* __tstate = wxPyBeginAllowThreads();
12976 result = (wxToggleButton *)new wxToggleButton();
12977
12978 wxPyEndAllowThreads(__tstate);
12979 if (PyErr_Occurred()) SWIG_fail;
12980 }
12981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
12982 return resultobj;
12983 fail:
12984 return NULL;
12985 }
12986
12987
12988 static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
12989 PyObject *obj;
12990 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12991 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
12992 Py_INCREF(obj);
12993 return Py_BuildValue((char *)"");
12994 }
12995 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
12996 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
12997 return 1;
12998 }
12999
13000
13001 static PyObject *_wrap_NOTEBOOK_NAME_get() {
13002 PyObject *pyobj;
13003
13004 {
13005 #if wxUSE_UNICODE
13006 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13007 #else
13008 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13009 #endif
13010 }
13011 return pyobj;
13012 }
13013
13014
13015 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) {
13016 PyObject *resultobj;
13017 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13018 size_t result;
13019 PyObject * obj0 = 0 ;
13020 char *kwnames[] = {
13021 (char *) "self", NULL
13022 };
13023
13024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
13025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
13030
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
13035 return resultobj;
13036 fail:
13037 return NULL;
13038 }
13039
13040
13041 static PyObject *_wrap_BookCtrl_GetPage(PyObject *, PyObject *args, PyObject *kwargs) {
13042 PyObject *resultobj;
13043 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13044 size_t arg2 ;
13045 wxWindow *result;
13046 PyObject * obj0 = 0 ;
13047 PyObject * obj1 = 0 ;
13048 char *kwnames[] = {
13049 (char *) "self",(char *) "n", NULL
13050 };
13051
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
13053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13055 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 result = (wxWindow *)(arg1)->GetPage(arg2);
13060
13061 wxPyEndAllowThreads(__tstate);
13062 if (PyErr_Occurred()) SWIG_fail;
13063 }
13064 {
13065 resultobj = wxPyMake_wxObject(result);
13066 }
13067 return resultobj;
13068 fail:
13069 return NULL;
13070 }
13071
13072
13073 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13074 PyObject *resultobj;
13075 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13076 int result;
13077 PyObject * obj0 = 0 ;
13078 char *kwnames[] = {
13079 (char *) "self", NULL
13080 };
13081
13082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
13083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13085 {
13086 PyThreadState* __tstate = wxPyBeginAllowThreads();
13087 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
13088
13089 wxPyEndAllowThreads(__tstate);
13090 if (PyErr_Occurred()) SWIG_fail;
13091 }
13092 resultobj = SWIG_FromInt((int)result);
13093 return resultobj;
13094 fail:
13095 return NULL;
13096 }
13097
13098
13099 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
13100 PyObject *resultobj;
13101 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13102 size_t arg2 ;
13103 wxString *arg3 = 0 ;
13104 bool result;
13105 bool temp3 = False ;
13106 PyObject * obj0 = 0 ;
13107 PyObject * obj1 = 0 ;
13108 PyObject * obj2 = 0 ;
13109 char *kwnames[] = {
13110 (char *) "self",(char *) "n",(char *) "strText", NULL
13111 };
13112
13113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
13114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13116 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 {
13119 arg3 = wxString_in_helper(obj2);
13120 if (arg3 == NULL) SWIG_fail;
13121 temp3 = True;
13122 }
13123 {
13124 PyThreadState* __tstate = wxPyBeginAllowThreads();
13125 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
13126
13127 wxPyEndAllowThreads(__tstate);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 {
13131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13132 }
13133 {
13134 if (temp3)
13135 delete arg3;
13136 }
13137 return resultobj;
13138 fail:
13139 {
13140 if (temp3)
13141 delete arg3;
13142 }
13143 return NULL;
13144 }
13145
13146
13147 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
13148 PyObject *resultobj;
13149 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13150 size_t arg2 ;
13151 wxString result;
13152 PyObject * obj0 = 0 ;
13153 PyObject * obj1 = 0 ;
13154 char *kwnames[] = {
13155 (char *) "self",(char *) "n", NULL
13156 };
13157
13158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
13159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13161 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13162 if (PyErr_Occurred()) SWIG_fail;
13163 {
13164 PyThreadState* __tstate = wxPyBeginAllowThreads();
13165 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
13166
13167 wxPyEndAllowThreads(__tstate);
13168 if (PyErr_Occurred()) SWIG_fail;
13169 }
13170 {
13171 #if wxUSE_UNICODE
13172 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13173 #else
13174 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13175 #endif
13176 }
13177 return resultobj;
13178 fail:
13179 return NULL;
13180 }
13181
13182
13183 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
13184 PyObject *resultobj;
13185 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13186 wxImageList *arg2 = (wxImageList *) 0 ;
13187 PyObject * obj0 = 0 ;
13188 PyObject * obj1 = 0 ;
13189 char *kwnames[] = {
13190 (char *) "self",(char *) "imageList", NULL
13191 };
13192
13193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
13194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13196 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
13197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13198 {
13199 PyThreadState* __tstate = wxPyBeginAllowThreads();
13200 (arg1)->SetImageList(arg2);
13201
13202 wxPyEndAllowThreads(__tstate);
13203 if (PyErr_Occurred()) SWIG_fail;
13204 }
13205 Py_INCREF(Py_None); resultobj = Py_None;
13206 return resultobj;
13207 fail:
13208 return NULL;
13209 }
13210
13211
13212 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
13213 PyObject *resultobj;
13214 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13215 wxImageList *arg2 = (wxImageList *) 0 ;
13216 PyObject * obj0 = 0 ;
13217 PyObject * obj1 = 0 ;
13218 char *kwnames[] = {
13219 (char *) "self",(char *) "imageList", NULL
13220 };
13221
13222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
13223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13225 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
13226 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 (arg1)->AssignImageList(arg2);
13230
13231 wxPyEndAllowThreads(__tstate);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 Py_INCREF(Py_None); resultobj = Py_None;
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj;
13243 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13244 wxImageList *result;
13245 PyObject * obj0 = 0 ;
13246 char *kwnames[] = {
13247 (char *) "self", NULL
13248 };
13249
13250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
13251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
13256
13257 wxPyEndAllowThreads(__tstate);
13258 if (PyErr_Occurred()) SWIG_fail;
13259 }
13260 {
13261 resultobj = wxPyMake_wxObject(result);
13262 }
13263 return resultobj;
13264 fail:
13265 return NULL;
13266 }
13267
13268
13269 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
13270 PyObject *resultobj;
13271 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13272 size_t arg2 ;
13273 int result;
13274 PyObject * obj0 = 0 ;
13275 PyObject * obj1 = 0 ;
13276 char *kwnames[] = {
13277 (char *) "self",(char *) "n", NULL
13278 };
13279
13280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
13281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13283 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13284 if (PyErr_Occurred()) SWIG_fail;
13285 {
13286 PyThreadState* __tstate = wxPyBeginAllowThreads();
13287 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
13288
13289 wxPyEndAllowThreads(__tstate);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 }
13292 resultobj = SWIG_FromInt((int)result);
13293 return resultobj;
13294 fail:
13295 return NULL;
13296 }
13297
13298
13299 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
13300 PyObject *resultobj;
13301 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13302 size_t arg2 ;
13303 int arg3 ;
13304 bool result;
13305 PyObject * obj0 = 0 ;
13306 PyObject * obj1 = 0 ;
13307 PyObject * obj2 = 0 ;
13308 char *kwnames[] = {
13309 (char *) "self",(char *) "n",(char *) "imageId", NULL
13310 };
13311
13312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
13313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13315 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13316 if (PyErr_Occurred()) SWIG_fail;
13317 arg3 = (int) SWIG_AsInt(obj2);
13318 if (PyErr_Occurred()) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 result = (bool)(arg1)->SetPageImage(arg2,arg3);
13322
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 {
13327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13328 }
13329 return resultobj;
13330 fail:
13331 return NULL;
13332 }
13333
13334
13335 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13336 PyObject *resultobj;
13337 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13338 wxSize *arg2 = 0 ;
13339 wxSize temp2 ;
13340 PyObject * obj0 = 0 ;
13341 PyObject * obj1 = 0 ;
13342 char *kwnames[] = {
13343 (char *) "self",(char *) "size", NULL
13344 };
13345
13346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13349 {
13350 arg2 = &temp2;
13351 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13352 }
13353 {
13354 PyThreadState* __tstate = wxPyBeginAllowThreads();
13355 (arg1)->SetPageSize((wxSize const &)*arg2);
13356
13357 wxPyEndAllowThreads(__tstate);
13358 if (PyErr_Occurred()) SWIG_fail;
13359 }
13360 Py_INCREF(Py_None); resultobj = Py_None;
13361 return resultobj;
13362 fail:
13363 return NULL;
13364 }
13365
13366
13367 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
13368 PyObject *resultobj;
13369 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13370 wxSize *arg2 = 0 ;
13371 wxSize result;
13372 wxSize temp2 ;
13373 PyObject * obj0 = 0 ;
13374 PyObject * obj1 = 0 ;
13375 char *kwnames[] = {
13376 (char *) "self",(char *) "sizePage", NULL
13377 };
13378
13379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
13380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13382 {
13383 arg2 = &temp2;
13384 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13385 }
13386 {
13387 PyThreadState* __tstate = wxPyBeginAllowThreads();
13388 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
13389
13390 wxPyEndAllowThreads(__tstate);
13391 if (PyErr_Occurred()) SWIG_fail;
13392 }
13393 {
13394 wxSize * resultptr;
13395 resultptr = new wxSize((wxSize &) result);
13396 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13397 }
13398 return resultobj;
13399 fail:
13400 return NULL;
13401 }
13402
13403
13404 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) {
13405 PyObject *resultobj;
13406 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13407 size_t arg2 ;
13408 bool result;
13409 PyObject * obj0 = 0 ;
13410 PyObject * obj1 = 0 ;
13411 char *kwnames[] = {
13412 (char *) "self",(char *) "n", NULL
13413 };
13414
13415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
13416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13418 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13419 if (PyErr_Occurred()) SWIG_fail;
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (bool)(arg1)->DeletePage(arg2);
13423
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 {
13428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13429 }
13430 return resultobj;
13431 fail:
13432 return NULL;
13433 }
13434
13435
13436 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) {
13437 PyObject *resultobj;
13438 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13439 size_t arg2 ;
13440 bool result;
13441 PyObject * obj0 = 0 ;
13442 PyObject * obj1 = 0 ;
13443 char *kwnames[] = {
13444 (char *) "self",(char *) "n", NULL
13445 };
13446
13447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
13448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13450 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 {
13453 PyThreadState* __tstate = wxPyBeginAllowThreads();
13454 result = (bool)(arg1)->RemovePage(arg2);
13455
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 {
13460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13461 }
13462 return resultobj;
13463 fail:
13464 return NULL;
13465 }
13466
13467
13468 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
13469 PyObject *resultobj;
13470 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13471 bool result;
13472 PyObject * obj0 = 0 ;
13473 char *kwnames[] = {
13474 (char *) "self", NULL
13475 };
13476
13477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
13478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 result = (bool)(arg1)->DeleteAllPages();
13483
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 {
13488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13489 }
13490 return resultobj;
13491 fail:
13492 return NULL;
13493 }
13494
13495
13496 static PyObject *_wrap_BookCtrl_AddPage(PyObject *, PyObject *args, PyObject *kwargs) {
13497 PyObject *resultobj;
13498 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13499 wxWindow *arg2 = (wxWindow *) 0 ;
13500 wxString *arg3 = 0 ;
13501 bool arg4 = (bool) False ;
13502 int arg5 = (int) -1 ;
13503 bool result;
13504 bool temp3 = False ;
13505 PyObject * obj0 = 0 ;
13506 PyObject * obj1 = 0 ;
13507 PyObject * obj2 = 0 ;
13508 PyObject * obj3 = 0 ;
13509 PyObject * obj4 = 0 ;
13510 char *kwnames[] = {
13511 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13512 };
13513
13514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13517 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13519 {
13520 arg3 = wxString_in_helper(obj2);
13521 if (arg3 == NULL) SWIG_fail;
13522 temp3 = True;
13523 }
13524 if (obj3) {
13525 arg4 = (bool) SWIG_AsBool(obj3);
13526 if (PyErr_Occurred()) SWIG_fail;
13527 }
13528 if (obj4) {
13529 arg5 = (int) SWIG_AsInt(obj4);
13530 if (PyErr_Occurred()) SWIG_fail;
13531 }
13532 {
13533 PyThreadState* __tstate = wxPyBeginAllowThreads();
13534 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
13535
13536 wxPyEndAllowThreads(__tstate);
13537 if (PyErr_Occurred()) SWIG_fail;
13538 }
13539 {
13540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13541 }
13542 {
13543 if (temp3)
13544 delete arg3;
13545 }
13546 return resultobj;
13547 fail:
13548 {
13549 if (temp3)
13550 delete arg3;
13551 }
13552 return NULL;
13553 }
13554
13555
13556 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) {
13557 PyObject *resultobj;
13558 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13559 size_t arg2 ;
13560 wxWindow *arg3 = (wxWindow *) 0 ;
13561 wxString *arg4 = 0 ;
13562 bool arg5 = (bool) False ;
13563 int arg6 = (int) -1 ;
13564 bool result;
13565 bool temp4 = False ;
13566 PyObject * obj0 = 0 ;
13567 PyObject * obj1 = 0 ;
13568 PyObject * obj2 = 0 ;
13569 PyObject * obj3 = 0 ;
13570 PyObject * obj4 = 0 ;
13571 PyObject * obj5 = 0 ;
13572 char *kwnames[] = {
13573 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13574 };
13575
13576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13579 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
13582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13583 {
13584 arg4 = wxString_in_helper(obj3);
13585 if (arg4 == NULL) SWIG_fail;
13586 temp4 = True;
13587 }
13588 if (obj4) {
13589 arg5 = (bool) SWIG_AsBool(obj4);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 if (obj5) {
13593 arg6 = (int) SWIG_AsInt(obj5);
13594 if (PyErr_Occurred()) SWIG_fail;
13595 }
13596 {
13597 PyThreadState* __tstate = wxPyBeginAllowThreads();
13598 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
13599
13600 wxPyEndAllowThreads(__tstate);
13601 if (PyErr_Occurred()) SWIG_fail;
13602 }
13603 {
13604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13605 }
13606 {
13607 if (temp4)
13608 delete arg4;
13609 }
13610 return resultobj;
13611 fail:
13612 {
13613 if (temp4)
13614 delete arg4;
13615 }
13616 return NULL;
13617 }
13618
13619
13620 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13621 PyObject *resultobj;
13622 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13623 size_t arg2 ;
13624 int result;
13625 PyObject * obj0 = 0 ;
13626 PyObject * obj1 = 0 ;
13627 char *kwnames[] = {
13628 (char *) "self",(char *) "n", NULL
13629 };
13630
13631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13634 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13635 if (PyErr_Occurred()) SWIG_fail;
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 result = (int)(arg1)->SetSelection(arg2);
13639
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 resultobj = SWIG_FromInt((int)result);
13644 return resultobj;
13645 fail:
13646 return NULL;
13647 }
13648
13649
13650 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13651 PyObject *resultobj;
13652 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13653 bool arg2 = (bool) True ;
13654 PyObject * obj0 = 0 ;
13655 PyObject * obj1 = 0 ;
13656 char *kwnames[] = {
13657 (char *) "self",(char *) "forward", NULL
13658 };
13659
13660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
13661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13663 if (obj1) {
13664 arg2 = (bool) SWIG_AsBool(obj1);
13665 if (PyErr_Occurred()) SWIG_fail;
13666 }
13667 {
13668 PyThreadState* __tstate = wxPyBeginAllowThreads();
13669 (arg1)->AdvanceSelection(arg2);
13670
13671 wxPyEndAllowThreads(__tstate);
13672 if (PyErr_Occurred()) SWIG_fail;
13673 }
13674 Py_INCREF(Py_None); resultobj = Py_None;
13675 return resultobj;
13676 fail:
13677 return NULL;
13678 }
13679
13680
13681 static PyObject * BookCtrl_swigregister(PyObject *, PyObject *args) {
13682 PyObject *obj;
13683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13684 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
13685 Py_INCREF(obj);
13686 return Py_BuildValue((char *)"");
13687 }
13688 static PyObject *_wrap_new_BookCtrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
13689 PyObject *resultobj;
13690 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13691 int arg2 = (int) 0 ;
13692 int arg3 = (int) -1 ;
13693 int arg4 = (int) -1 ;
13694 wxBookCtrlEvent *result;
13695 PyObject * obj0 = 0 ;
13696 PyObject * obj1 = 0 ;
13697 PyObject * obj2 = 0 ;
13698 PyObject * obj3 = 0 ;
13699 char *kwnames[] = {
13700 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
13701 };
13702
13703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13704 if (obj0) {
13705 arg1 = (wxEventType) SWIG_AsInt(obj0);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 if (obj1) {
13709 arg2 = (int) SWIG_AsInt(obj1);
13710 if (PyErr_Occurred()) SWIG_fail;
13711 }
13712 if (obj2) {
13713 arg3 = (int) SWIG_AsInt(obj2);
13714 if (PyErr_Occurred()) SWIG_fail;
13715 }
13716 if (obj3) {
13717 arg4 = (int) SWIG_AsInt(obj3);
13718 if (PyErr_Occurred()) SWIG_fail;
13719 }
13720 {
13721 PyThreadState* __tstate = wxPyBeginAllowThreads();
13722 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
13723
13724 wxPyEndAllowThreads(__tstate);
13725 if (PyErr_Occurred()) SWIG_fail;
13726 }
13727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
13728 return resultobj;
13729 fail:
13730 return NULL;
13731 }
13732
13733
13734 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13735 PyObject *resultobj;
13736 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13737 int result;
13738 PyObject * obj0 = 0 ;
13739 char *kwnames[] = {
13740 (char *) "self", NULL
13741 };
13742
13743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
13744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
13749
13750 wxPyEndAllowThreads(__tstate);
13751 if (PyErr_Occurred()) SWIG_fail;
13752 }
13753 resultobj = SWIG_FromInt((int)result);
13754 return resultobj;
13755 fail:
13756 return NULL;
13757 }
13758
13759
13760 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13761 PyObject *resultobj;
13762 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13763 int arg2 ;
13764 PyObject * obj0 = 0 ;
13765 PyObject * obj1 = 0 ;
13766 char *kwnames[] = {
13767 (char *) "self",(char *) "nSel", NULL
13768 };
13769
13770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13773 arg2 = (int) SWIG_AsInt(obj1);
13774 if (PyErr_Occurred()) SWIG_fail;
13775 {
13776 PyThreadState* __tstate = wxPyBeginAllowThreads();
13777 (arg1)->SetSelection(arg2);
13778
13779 wxPyEndAllowThreads(__tstate);
13780 if (PyErr_Occurred()) SWIG_fail;
13781 }
13782 Py_INCREF(Py_None); resultobj = Py_None;
13783 return resultobj;
13784 fail:
13785 return NULL;
13786 }
13787
13788
13789 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13790 PyObject *resultobj;
13791 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13792 int result;
13793 PyObject * obj0 = 0 ;
13794 char *kwnames[] = {
13795 (char *) "self", NULL
13796 };
13797
13798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
13799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13801 {
13802 PyThreadState* __tstate = wxPyBeginAllowThreads();
13803 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
13804
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 resultobj = SWIG_FromInt((int)result);
13809 return resultobj;
13810 fail:
13811 return NULL;
13812 }
13813
13814
13815 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13816 PyObject *resultobj;
13817 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13818 int arg2 ;
13819 PyObject * obj0 = 0 ;
13820 PyObject * obj1 = 0 ;
13821 char *kwnames[] = {
13822 (char *) "self",(char *) "nOldSel", NULL
13823 };
13824
13825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
13826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13828 arg2 = (int) SWIG_AsInt(obj1);
13829 if (PyErr_Occurred()) SWIG_fail;
13830 {
13831 PyThreadState* __tstate = wxPyBeginAllowThreads();
13832 (arg1)->SetOldSelection(arg2);
13833
13834 wxPyEndAllowThreads(__tstate);
13835 if (PyErr_Occurred()) SWIG_fail;
13836 }
13837 Py_INCREF(Py_None); resultobj = Py_None;
13838 return resultobj;
13839 fail:
13840 return NULL;
13841 }
13842
13843
13844 static PyObject * BookCtrlEvent_swigregister(PyObject *, PyObject *args) {
13845 PyObject *obj;
13846 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13847 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
13848 Py_INCREF(obj);
13849 return Py_BuildValue((char *)"");
13850 }
13851 static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) {
13852 PyObject *resultobj;
13853 wxWindow *arg1 = (wxWindow *) 0 ;
13854 int arg2 = (int) -1 ;
13855 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13856 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13857 wxSize const &arg4_defvalue = wxDefaultSize ;
13858 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13859 long arg5 = (long) 0 ;
13860 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
13861 wxString *arg6 = (wxString *) &arg6_defvalue ;
13862 wxNotebook *result;
13863 wxPoint temp3 ;
13864 wxSize temp4 ;
13865 bool temp6 = False ;
13866 PyObject * obj0 = 0 ;
13867 PyObject * obj1 = 0 ;
13868 PyObject * obj2 = 0 ;
13869 PyObject * obj3 = 0 ;
13870 PyObject * obj4 = 0 ;
13871 PyObject * obj5 = 0 ;
13872 char *kwnames[] = {
13873 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
13874 };
13875
13876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13879 if (obj1) {
13880 arg2 = (int) SWIG_AsInt(obj1);
13881 if (PyErr_Occurred()) SWIG_fail;
13882 }
13883 if (obj2) {
13884 {
13885 arg3 = &temp3;
13886 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13887 }
13888 }
13889 if (obj3) {
13890 {
13891 arg4 = &temp4;
13892 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
13893 }
13894 }
13895 if (obj4) {
13896 arg5 = (long) SWIG_AsLong(obj4);
13897 if (PyErr_Occurred()) SWIG_fail;
13898 }
13899 if (obj5) {
13900 {
13901 arg6 = wxString_in_helper(obj5);
13902 if (arg6 == NULL) SWIG_fail;
13903 temp6 = True;
13904 }
13905 }
13906 {
13907 PyThreadState* __tstate = wxPyBeginAllowThreads();
13908 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
13909
13910 wxPyEndAllowThreads(__tstate);
13911 if (PyErr_Occurred()) SWIG_fail;
13912 }
13913 {
13914 resultobj = wxPyMake_wxObject(result);
13915 }
13916 {
13917 if (temp6)
13918 delete arg6;
13919 }
13920 return resultobj;
13921 fail:
13922 {
13923 if (temp6)
13924 delete arg6;
13925 }
13926 return NULL;
13927 }
13928
13929
13930 static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
13931 PyObject *resultobj;
13932 wxNotebook *result;
13933 char *kwnames[] = {
13934 NULL
13935 };
13936
13937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
13938 {
13939 PyThreadState* __tstate = wxPyBeginAllowThreads();
13940 result = (wxNotebook *)new wxNotebook();
13941
13942 wxPyEndAllowThreads(__tstate);
13943 if (PyErr_Occurred()) SWIG_fail;
13944 }
13945 {
13946 resultobj = wxPyMake_wxObject(result);
13947 }
13948 return resultobj;
13949 fail:
13950 return NULL;
13951 }
13952
13953
13954 static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13955 PyObject *resultobj;
13956 wxNotebook *arg1 = (wxNotebook *) 0 ;
13957 wxWindow *arg2 = (wxWindow *) 0 ;
13958 int arg3 ;
13959 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13960 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13961 wxSize const &arg5_defvalue = wxDefaultSize ;
13962 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13963 long arg6 = (long) 0 ;
13964 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
13965 wxString *arg7 = (wxString *) &arg7_defvalue ;
13966 bool result;
13967 wxPoint temp4 ;
13968 wxSize temp5 ;
13969 bool temp7 = False ;
13970 PyObject * obj0 = 0 ;
13971 PyObject * obj1 = 0 ;
13972 PyObject * obj2 = 0 ;
13973 PyObject * obj3 = 0 ;
13974 PyObject * obj4 = 0 ;
13975 PyObject * obj5 = 0 ;
13976 PyObject * obj6 = 0 ;
13977 char *kwnames[] = {
13978 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
13979 };
13980
13981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
13983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13984 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13986 arg3 = (int) SWIG_AsInt(obj2);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 if (obj3) {
13989 {
13990 arg4 = &temp4;
13991 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13992 }
13993 }
13994 if (obj4) {
13995 {
13996 arg5 = &temp5;
13997 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13998 }
13999 }
14000 if (obj5) {
14001 arg6 = (long) SWIG_AsLong(obj5);
14002 if (PyErr_Occurred()) SWIG_fail;
14003 }
14004 if (obj6) {
14005 {
14006 arg7 = wxString_in_helper(obj6);
14007 if (arg7 == NULL) SWIG_fail;
14008 temp7 = True;
14009 }
14010 }
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14014
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 {
14019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14020 }
14021 {
14022 if (temp7)
14023 delete arg7;
14024 }
14025 return resultobj;
14026 fail:
14027 {
14028 if (temp7)
14029 delete arg7;
14030 }
14031 return NULL;
14032 }
14033
14034
14035 static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
14036 PyObject *resultobj;
14037 wxNotebook *arg1 = (wxNotebook *) 0 ;
14038 int result;
14039 PyObject * obj0 = 0 ;
14040 char *kwnames[] = {
14041 (char *) "self", NULL
14042 };
14043
14044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
14045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14047 {
14048 PyThreadState* __tstate = wxPyBeginAllowThreads();
14049 result = (int)((wxNotebook const *)arg1)->GetRowCount();
14050
14051 wxPyEndAllowThreads(__tstate);
14052 if (PyErr_Occurred()) SWIG_fail;
14053 }
14054 resultobj = SWIG_FromInt((int)result);
14055 return resultobj;
14056 fail:
14057 return NULL;
14058 }
14059
14060
14061 static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) {
14062 PyObject *resultobj;
14063 wxNotebook *arg1 = (wxNotebook *) 0 ;
14064 wxSize *arg2 = 0 ;
14065 wxSize temp2 ;
14066 PyObject * obj0 = 0 ;
14067 PyObject * obj1 = 0 ;
14068 char *kwnames[] = {
14069 (char *) "self",(char *) "padding", NULL
14070 };
14071
14072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
14073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14075 {
14076 arg2 = &temp2;
14077 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14078 }
14079 {
14080 PyThreadState* __tstate = wxPyBeginAllowThreads();
14081 (arg1)->SetPadding((wxSize const &)*arg2);
14082
14083 wxPyEndAllowThreads(__tstate);
14084 if (PyErr_Occurred()) SWIG_fail;
14085 }
14086 Py_INCREF(Py_None); resultobj = Py_None;
14087 return resultobj;
14088 fail:
14089 return NULL;
14090 }
14091
14092
14093 static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) {
14094 PyObject *resultobj;
14095 wxNotebook *arg1 = (wxNotebook *) 0 ;
14096 wxSize *arg2 = 0 ;
14097 wxSize temp2 ;
14098 PyObject * obj0 = 0 ;
14099 PyObject * obj1 = 0 ;
14100 char *kwnames[] = {
14101 (char *) "self",(char *) "sz", NULL
14102 };
14103
14104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
14105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14107 {
14108 arg2 = &temp2;
14109 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14110 }
14111 {
14112 PyThreadState* __tstate = wxPyBeginAllowThreads();
14113 (arg1)->SetTabSize((wxSize const &)*arg2);
14114
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 Py_INCREF(Py_None); resultobj = Py_None;
14119 return resultobj;
14120 fail:
14121 return NULL;
14122 }
14123
14124
14125 static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
14126 PyObject *resultobj;
14127 wxNotebook *arg1 = (wxNotebook *) 0 ;
14128 wxPoint *arg2 = 0 ;
14129 long *arg3 = (long *) 0 ;
14130 int result;
14131 wxPoint temp2 ;
14132 long temp3 ;
14133 PyObject * obj0 = 0 ;
14134 PyObject * obj1 = 0 ;
14135 char *kwnames[] = {
14136 (char *) "self",(char *) "pt", NULL
14137 };
14138
14139 arg3 = &temp3;
14140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
14141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14143 {
14144 arg2 = &temp2;
14145 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14146 }
14147 {
14148 PyThreadState* __tstate = wxPyBeginAllowThreads();
14149 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
14150
14151 wxPyEndAllowThreads(__tstate);
14152 if (PyErr_Occurred()) SWIG_fail;
14153 }
14154 resultobj = SWIG_FromInt((int)result);
14155 {
14156 PyObject *o = PyInt_FromLong((long) (*arg3));
14157 resultobj = t_output_helper(resultobj,o);
14158 }
14159 return resultobj;
14160 fail:
14161 return NULL;
14162 }
14163
14164
14165 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
14166 PyObject *resultobj;
14167 wxNotebook *arg1 = (wxNotebook *) 0 ;
14168 wxSize *arg2 = 0 ;
14169 wxSize result;
14170 wxSize temp2 ;
14171 PyObject * obj0 = 0 ;
14172 PyObject * obj1 = 0 ;
14173 char *kwnames[] = {
14174 (char *) "self",(char *) "sizePage", NULL
14175 };
14176
14177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14180 {
14181 arg2 = &temp2;
14182 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14183 }
14184 {
14185 PyThreadState* __tstate = wxPyBeginAllowThreads();
14186 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14187
14188 wxPyEndAllowThreads(__tstate);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 {
14192 wxSize * resultptr;
14193 resultptr = new wxSize((wxSize &) result);
14194 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14195 }
14196 return resultobj;
14197 fail:
14198 return NULL;
14199 }
14200
14201
14202 static PyObject * Notebook_swigregister(PyObject *, PyObject *args) {
14203 PyObject *obj;
14204 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14205 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
14206 Py_INCREF(obj);
14207 return Py_BuildValue((char *)"");
14208 }
14209 static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
14210 PyObject *resultobj;
14211 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14212 int arg2 = (int) 0 ;
14213 int arg3 = (int) -1 ;
14214 int arg4 = (int) -1 ;
14215 wxNotebookEvent *result;
14216 PyObject * obj0 = 0 ;
14217 PyObject * obj1 = 0 ;
14218 PyObject * obj2 = 0 ;
14219 PyObject * obj3 = 0 ;
14220 char *kwnames[] = {
14221 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14222 };
14223
14224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14225 if (obj0) {
14226 arg1 = (wxEventType) SWIG_AsInt(obj0);
14227 if (PyErr_Occurred()) SWIG_fail;
14228 }
14229 if (obj1) {
14230 arg2 = (int) SWIG_AsInt(obj1);
14231 if (PyErr_Occurred()) SWIG_fail;
14232 }
14233 if (obj2) {
14234 arg3 = (int) SWIG_AsInt(obj2);
14235 if (PyErr_Occurred()) SWIG_fail;
14236 }
14237 if (obj3) {
14238 arg4 = (int) SWIG_AsInt(obj3);
14239 if (PyErr_Occurred()) SWIG_fail;
14240 }
14241 {
14242 PyThreadState* __tstate = wxPyBeginAllowThreads();
14243 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
14244
14245 wxPyEndAllowThreads(__tstate);
14246 if (PyErr_Occurred()) SWIG_fail;
14247 }
14248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
14249 return resultobj;
14250 fail:
14251 return NULL;
14252 }
14253
14254
14255 static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) {
14256 PyObject *obj;
14257 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14258 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
14259 Py_INCREF(obj);
14260 return Py_BuildValue((char *)"");
14261 }
14262 static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) {
14263 PyObject *resultobj;
14264 wxWindow *arg1 = (wxWindow *) 0 ;
14265 int arg2 = (int) -1 ;
14266 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14267 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14268 wxSize const &arg4_defvalue = wxDefaultSize ;
14269 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14270 long arg5 = (long) 0 ;
14271 wxString const &arg6_defvalue = wxPyEmptyString ;
14272 wxString *arg6 = (wxString *) &arg6_defvalue ;
14273 wxListbook *result;
14274 wxPoint temp3 ;
14275 wxSize temp4 ;
14276 bool temp6 = False ;
14277 PyObject * obj0 = 0 ;
14278 PyObject * obj1 = 0 ;
14279 PyObject * obj2 = 0 ;
14280 PyObject * obj3 = 0 ;
14281 PyObject * obj4 = 0 ;
14282 PyObject * obj5 = 0 ;
14283 char *kwnames[] = {
14284 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14285 };
14286
14287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14290 if (obj1) {
14291 arg2 = (int) SWIG_AsInt(obj1);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 if (obj2) {
14295 {
14296 arg3 = &temp3;
14297 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14298 }
14299 }
14300 if (obj3) {
14301 {
14302 arg4 = &temp4;
14303 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14304 }
14305 }
14306 if (obj4) {
14307 arg5 = (long) SWIG_AsLong(obj4);
14308 if (PyErr_Occurred()) SWIG_fail;
14309 }
14310 if (obj5) {
14311 {
14312 arg6 = wxString_in_helper(obj5);
14313 if (arg6 == NULL) SWIG_fail;
14314 temp6 = True;
14315 }
14316 }
14317 {
14318 PyThreadState* __tstate = wxPyBeginAllowThreads();
14319 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14320
14321 wxPyEndAllowThreads(__tstate);
14322 if (PyErr_Occurred()) SWIG_fail;
14323 }
14324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
14325 {
14326 if (temp6)
14327 delete arg6;
14328 }
14329 return resultobj;
14330 fail:
14331 {
14332 if (temp6)
14333 delete arg6;
14334 }
14335 return NULL;
14336 }
14337
14338
14339 static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) {
14340 PyObject *resultobj;
14341 wxListbook *result;
14342 char *kwnames[] = {
14343 NULL
14344 };
14345
14346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
14347 {
14348 PyThreadState* __tstate = wxPyBeginAllowThreads();
14349 result = (wxListbook *)new wxListbook();
14350
14351 wxPyEndAllowThreads(__tstate);
14352 if (PyErr_Occurred()) SWIG_fail;
14353 }
14354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
14355 return resultobj;
14356 fail:
14357 return NULL;
14358 }
14359
14360
14361 static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14362 PyObject *resultobj;
14363 wxListbook *arg1 = (wxListbook *) 0 ;
14364 wxWindow *arg2 = (wxWindow *) 0 ;
14365 int arg3 ;
14366 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14367 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14368 wxSize const &arg5_defvalue = wxDefaultSize ;
14369 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14370 long arg6 = (long) 0 ;
14371 wxString const &arg7_defvalue = wxPyEmptyString ;
14372 wxString *arg7 = (wxString *) &arg7_defvalue ;
14373 bool result;
14374 wxPoint temp4 ;
14375 wxSize temp5 ;
14376 bool temp7 = False ;
14377 PyObject * obj0 = 0 ;
14378 PyObject * obj1 = 0 ;
14379 PyObject * obj2 = 0 ;
14380 PyObject * obj3 = 0 ;
14381 PyObject * obj4 = 0 ;
14382 PyObject * obj5 = 0 ;
14383 PyObject * obj6 = 0 ;
14384 char *kwnames[] = {
14385 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14386 };
14387
14388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
14390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14391 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14393 arg3 = (int) SWIG_AsInt(obj2);
14394 if (PyErr_Occurred()) SWIG_fail;
14395 if (obj3) {
14396 {
14397 arg4 = &temp4;
14398 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14399 }
14400 }
14401 if (obj4) {
14402 {
14403 arg5 = &temp5;
14404 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14405 }
14406 }
14407 if (obj5) {
14408 arg6 = (long) SWIG_AsLong(obj5);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 }
14411 if (obj6) {
14412 {
14413 arg7 = wxString_in_helper(obj6);
14414 if (arg7 == NULL) SWIG_fail;
14415 temp7 = True;
14416 }
14417 }
14418 {
14419 PyThreadState* __tstate = wxPyBeginAllowThreads();
14420 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14421
14422 wxPyEndAllowThreads(__tstate);
14423 if (PyErr_Occurred()) SWIG_fail;
14424 }
14425 {
14426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14427 }
14428 {
14429 if (temp7)
14430 delete arg7;
14431 }
14432 return resultobj;
14433 fail:
14434 {
14435 if (temp7)
14436 delete arg7;
14437 }
14438 return NULL;
14439 }
14440
14441
14442 static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
14443 PyObject *resultobj;
14444 wxListbook *arg1 = (wxListbook *) 0 ;
14445 bool result;
14446 PyObject * obj0 = 0 ;
14447 char *kwnames[] = {
14448 (char *) "self", NULL
14449 };
14450
14451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
14452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
14453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14454 {
14455 PyThreadState* __tstate = wxPyBeginAllowThreads();
14456 result = (bool)((wxListbook const *)arg1)->IsVertical();
14457
14458 wxPyEndAllowThreads(__tstate);
14459 if (PyErr_Occurred()) SWIG_fail;
14460 }
14461 {
14462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14463 }
14464 return resultobj;
14465 fail:
14466 return NULL;
14467 }
14468
14469
14470 static PyObject * Listbook_swigregister(PyObject *, PyObject *args) {
14471 PyObject *obj;
14472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14473 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
14474 Py_INCREF(obj);
14475 return Py_BuildValue((char *)"");
14476 }
14477 static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
14478 PyObject *resultobj;
14479 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14480 int arg2 = (int) 0 ;
14481 int arg3 = (int) -1 ;
14482 int arg4 = (int) -1 ;
14483 wxListbookEvent *result;
14484 PyObject * obj0 = 0 ;
14485 PyObject * obj1 = 0 ;
14486 PyObject * obj2 = 0 ;
14487 PyObject * obj3 = 0 ;
14488 char *kwnames[] = {
14489 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14490 };
14491
14492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14493 if (obj0) {
14494 arg1 = (wxEventType) SWIG_AsInt(obj0);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 if (obj1) {
14498 arg2 = (int) SWIG_AsInt(obj1);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 if (obj2) {
14502 arg3 = (int) SWIG_AsInt(obj2);
14503 if (PyErr_Occurred()) SWIG_fail;
14504 }
14505 if (obj3) {
14506 arg4 = (int) SWIG_AsInt(obj3);
14507 if (PyErr_Occurred()) SWIG_fail;
14508 }
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
14512
14513 wxPyEndAllowThreads(__tstate);
14514 if (PyErr_Occurred()) SWIG_fail;
14515 }
14516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
14517 return resultobj;
14518 fail:
14519 return NULL;
14520 }
14521
14522
14523 static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) {
14524 PyObject *obj;
14525 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14526 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
14527 Py_INCREF(obj);
14528 return Py_BuildValue((char *)"");
14529 }
14530 static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) {
14531 PyObject *resultobj;
14532 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14533 wxBookCtrlSizer *result;
14534 PyObject * obj0 = 0 ;
14535 char *kwnames[] = {
14536 (char *) "nb", NULL
14537 };
14538
14539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
14540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14542 {
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
14545
14546 wxPyEndAllowThreads(__tstate);
14547 if (PyErr_Occurred()) SWIG_fail;
14548 }
14549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
14550 return resultobj;
14551 fail:
14552 return NULL;
14553 }
14554
14555
14556 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
14557 PyObject *resultobj;
14558 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14559 PyObject * obj0 = 0 ;
14560 char *kwnames[] = {
14561 (char *) "self", NULL
14562 };
14563
14564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 (arg1)->RecalcSizes();
14570
14571 wxPyEndAllowThreads(__tstate);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 Py_INCREF(Py_None); resultobj = Py_None;
14575 return resultobj;
14576 fail:
14577 return NULL;
14578 }
14579
14580
14581 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj;
14583 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14584 wxSize result;
14585 PyObject * obj0 = 0 ;
14586 char *kwnames[] = {
14587 (char *) "self", NULL
14588 };
14589
14590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
14591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14593 {
14594 PyThreadState* __tstate = wxPyBeginAllowThreads();
14595 result = (arg1)->CalcMin();
14596
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 {
14601 wxSize * resultptr;
14602 resultptr = new wxSize((wxSize &) result);
14603 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14604 }
14605 return resultobj;
14606 fail:
14607 return NULL;
14608 }
14609
14610
14611 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
14612 PyObject *resultobj;
14613 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14614 wxBookCtrl *result;
14615 PyObject * obj0 = 0 ;
14616 char *kwnames[] = {
14617 (char *) "self", NULL
14618 };
14619
14620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
14621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 result = (wxBookCtrl *)(arg1)->GetControl();
14626
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
14630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
14631 return resultobj;
14632 fail:
14633 return NULL;
14634 }
14635
14636
14637 static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) {
14638 PyObject *obj;
14639 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14640 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
14641 Py_INCREF(obj);
14642 return Py_BuildValue((char *)"");
14643 }
14644 static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) {
14645 PyObject *resultobj;
14646 wxNotebook *arg1 = (wxNotebook *) 0 ;
14647 wxNotebookSizer *result;
14648 PyObject * obj0 = 0 ;
14649 char *kwnames[] = {
14650 (char *) "nb", NULL
14651 };
14652
14653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
14654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
14659
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
14663 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
14664 return resultobj;
14665 fail:
14666 return NULL;
14667 }
14668
14669
14670 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
14671 PyObject *resultobj;
14672 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14673 PyObject * obj0 = 0 ;
14674 char *kwnames[] = {
14675 (char *) "self", NULL
14676 };
14677
14678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
14680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14681 {
14682 PyThreadState* __tstate = wxPyBeginAllowThreads();
14683 (arg1)->RecalcSizes();
14684
14685 wxPyEndAllowThreads(__tstate);
14686 if (PyErr_Occurred()) SWIG_fail;
14687 }
14688 Py_INCREF(Py_None); resultobj = Py_None;
14689 return resultobj;
14690 fail:
14691 return NULL;
14692 }
14693
14694
14695 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
14696 PyObject *resultobj;
14697 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14698 wxSize result;
14699 PyObject * obj0 = 0 ;
14700 char *kwnames[] = {
14701 (char *) "self", NULL
14702 };
14703
14704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
14705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
14706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14707 {
14708 PyThreadState* __tstate = wxPyBeginAllowThreads();
14709 result = (arg1)->CalcMin();
14710
14711 wxPyEndAllowThreads(__tstate);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 }
14714 {
14715 wxSize * resultptr;
14716 resultptr = new wxSize((wxSize &) result);
14717 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14718 }
14719 return resultobj;
14720 fail:
14721 return NULL;
14722 }
14723
14724
14725 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj;
14727 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14728 wxNotebook *result;
14729 PyObject * obj0 = 0 ;
14730 char *kwnames[] = {
14731 (char *) "self", NULL
14732 };
14733
14734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
14735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
14736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14737 {
14738 PyThreadState* __tstate = wxPyBeginAllowThreads();
14739 result = (wxNotebook *)(arg1)->GetNotebook();
14740
14741 wxPyEndAllowThreads(__tstate);
14742 if (PyErr_Occurred()) SWIG_fail;
14743 }
14744 {
14745 resultobj = wxPyMake_wxObject(result);
14746 }
14747 return resultobj;
14748 fail:
14749 return NULL;
14750 }
14751
14752
14753 static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) {
14754 PyObject *obj;
14755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14756 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
14757 Py_INCREF(obj);
14758 return Py_BuildValue((char *)"");
14759 }
14760 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
14761 PyObject *resultobj;
14762 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14763 int result;
14764 PyObject * obj0 = 0 ;
14765 char *kwnames[] = {
14766 (char *) "self", NULL
14767 };
14768
14769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
14770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = (int)(arg1)->GetId();
14775
14776 wxPyEndAllowThreads(__tstate);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 }
14779 resultobj = SWIG_FromInt((int)result);
14780 return resultobj;
14781 fail:
14782 return NULL;
14783 }
14784
14785
14786 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
14787 PyObject *resultobj;
14788 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14789 wxControl *result;
14790 PyObject * obj0 = 0 ;
14791 char *kwnames[] = {
14792 (char *) "self", NULL
14793 };
14794
14795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
14796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14798 {
14799 PyThreadState* __tstate = wxPyBeginAllowThreads();
14800 result = (wxControl *)(arg1)->GetControl();
14801
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 {
14806 resultobj = wxPyMake_wxObject(result);
14807 }
14808 return resultobj;
14809 fail:
14810 return NULL;
14811 }
14812
14813
14814 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
14815 PyObject *resultobj;
14816 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14817 wxToolBarBase *result;
14818 PyObject * obj0 = 0 ;
14819 char *kwnames[] = {
14820 (char *) "self", NULL
14821 };
14822
14823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
14824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14826 {
14827 PyThreadState* __tstate = wxPyBeginAllowThreads();
14828 result = (wxToolBarBase *)(arg1)->GetToolBar();
14829
14830 wxPyEndAllowThreads(__tstate);
14831 if (PyErr_Occurred()) SWIG_fail;
14832 }
14833 {
14834 resultobj = wxPyMake_wxObject(result);
14835 }
14836 return resultobj;
14837 fail:
14838 return NULL;
14839 }
14840
14841
14842 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
14843 PyObject *resultobj;
14844 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14845 int result;
14846 PyObject * obj0 = 0 ;
14847 char *kwnames[] = {
14848 (char *) "self", NULL
14849 };
14850
14851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
14852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14854 {
14855 PyThreadState* __tstate = wxPyBeginAllowThreads();
14856 result = (int)(arg1)->IsButton();
14857
14858 wxPyEndAllowThreads(__tstate);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 }
14861 resultobj = SWIG_FromInt((int)result);
14862 return resultobj;
14863 fail:
14864 return NULL;
14865 }
14866
14867
14868 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) {
14869 PyObject *resultobj;
14870 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14871 int result;
14872 PyObject * obj0 = 0 ;
14873 char *kwnames[] = {
14874 (char *) "self", NULL
14875 };
14876
14877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
14878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14880 {
14881 PyThreadState* __tstate = wxPyBeginAllowThreads();
14882 result = (int)(arg1)->IsControl();
14883
14884 wxPyEndAllowThreads(__tstate);
14885 if (PyErr_Occurred()) SWIG_fail;
14886 }
14887 resultobj = SWIG_FromInt((int)result);
14888 return resultobj;
14889 fail:
14890 return NULL;
14891 }
14892
14893
14894 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
14895 PyObject *resultobj;
14896 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14897 int result;
14898 PyObject * obj0 = 0 ;
14899 char *kwnames[] = {
14900 (char *) "self", NULL
14901 };
14902
14903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
14904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
14908 result = (int)(arg1)->IsSeparator();
14909
14910 wxPyEndAllowThreads(__tstate);
14911 if (PyErr_Occurred()) SWIG_fail;
14912 }
14913 resultobj = SWIG_FromInt((int)result);
14914 return resultobj;
14915 fail:
14916 return NULL;
14917 }
14918
14919
14920 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
14921 PyObject *resultobj;
14922 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14923 int result;
14924 PyObject * obj0 = 0 ;
14925 char *kwnames[] = {
14926 (char *) "self", NULL
14927 };
14928
14929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
14930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14932 {
14933 PyThreadState* __tstate = wxPyBeginAllowThreads();
14934 result = (int)(arg1)->GetStyle();
14935
14936 wxPyEndAllowThreads(__tstate);
14937 if (PyErr_Occurred()) SWIG_fail;
14938 }
14939 resultobj = SWIG_FromInt((int)result);
14940 return resultobj;
14941 fail:
14942 return NULL;
14943 }
14944
14945
14946 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
14947 PyObject *resultobj;
14948 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14949 int result;
14950 PyObject * obj0 = 0 ;
14951 char *kwnames[] = {
14952 (char *) "self", NULL
14953 };
14954
14955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
14956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 result = (int)(arg1)->GetKind();
14961
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 resultobj = SWIG_FromInt((int)result);
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj;
14974 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14975 bool result;
14976 PyObject * obj0 = 0 ;
14977 char *kwnames[] = {
14978 (char *) "self", NULL
14979 };
14980
14981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
14982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14984 {
14985 PyThreadState* __tstate = wxPyBeginAllowThreads();
14986 result = (bool)(arg1)->IsEnabled();
14987
14988 wxPyEndAllowThreads(__tstate);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 {
14992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14993 }
14994 return resultobj;
14995 fail:
14996 return NULL;
14997 }
14998
14999
15000 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) {
15001 PyObject *resultobj;
15002 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15003 bool result;
15004 PyObject * obj0 = 0 ;
15005 char *kwnames[] = {
15006 (char *) "self", NULL
15007 };
15008
15009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
15010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15012 {
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 result = (bool)(arg1)->IsToggled();
15015
15016 wxPyEndAllowThreads(__tstate);
15017 if (PyErr_Occurred()) SWIG_fail;
15018 }
15019 {
15020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15021 }
15022 return resultobj;
15023 fail:
15024 return NULL;
15025 }
15026
15027
15028 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) {
15029 PyObject *resultobj;
15030 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15031 bool result;
15032 PyObject * obj0 = 0 ;
15033 char *kwnames[] = {
15034 (char *) "self", NULL
15035 };
15036
15037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
15038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15040 {
15041 PyThreadState* __tstate = wxPyBeginAllowThreads();
15042 result = (bool)(arg1)->CanBeToggled();
15043
15044 wxPyEndAllowThreads(__tstate);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 {
15048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15049 }
15050 return resultobj;
15051 fail:
15052 return NULL;
15053 }
15054
15055
15056 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
15057 PyObject *resultobj;
15058 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15059 wxBitmap *result;
15060 PyObject * obj0 = 0 ;
15061 char *kwnames[] = {
15062 (char *) "self", NULL
15063 };
15064
15065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
15066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15068 {
15069 PyThreadState* __tstate = wxPyBeginAllowThreads();
15070 {
15071 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
15072 result = (wxBitmap *) &_result_ref;
15073 }
15074
15075 wxPyEndAllowThreads(__tstate);
15076 if (PyErr_Occurred()) SWIG_fail;
15077 }
15078 {
15079 wxBitmap* resultptr = new wxBitmap(*result);
15080 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15081 }
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj;
15090 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15091 wxBitmap *result;
15092 PyObject * obj0 = 0 ;
15093 char *kwnames[] = {
15094 (char *) "self", NULL
15095 };
15096
15097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
15098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15100 {
15101 PyThreadState* __tstate = wxPyBeginAllowThreads();
15102 {
15103 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
15104 result = (wxBitmap *) &_result_ref;
15105 }
15106
15107 wxPyEndAllowThreads(__tstate);
15108 if (PyErr_Occurred()) SWIG_fail;
15109 }
15110 {
15111 wxBitmap* resultptr = new wxBitmap(*result);
15112 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15113 }
15114 return resultobj;
15115 fail:
15116 return NULL;
15117 }
15118
15119
15120 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
15121 PyObject *resultobj;
15122 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15123 wxBitmap result;
15124 PyObject * obj0 = 0 ;
15125 char *kwnames[] = {
15126 (char *) "self", NULL
15127 };
15128
15129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
15130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15132 {
15133 PyThreadState* __tstate = wxPyBeginAllowThreads();
15134 result = (arg1)->GetBitmap();
15135
15136 wxPyEndAllowThreads(__tstate);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 {
15140 wxBitmap * resultptr;
15141 resultptr = new wxBitmap((wxBitmap &) result);
15142 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15143 }
15144 return resultobj;
15145 fail:
15146 return NULL;
15147 }
15148
15149
15150 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
15151 PyObject *resultobj;
15152 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15153 wxString result;
15154 PyObject * obj0 = 0 ;
15155 char *kwnames[] = {
15156 (char *) "self", NULL
15157 };
15158
15159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
15160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15162 {
15163 PyThreadState* __tstate = wxPyBeginAllowThreads();
15164 result = (arg1)->GetLabel();
15165
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 {
15170 #if wxUSE_UNICODE
15171 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15172 #else
15173 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15174 #endif
15175 }
15176 return resultobj;
15177 fail:
15178 return NULL;
15179 }
15180
15181
15182 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
15183 PyObject *resultobj;
15184 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15185 wxString result;
15186 PyObject * obj0 = 0 ;
15187 char *kwnames[] = {
15188 (char *) "self", NULL
15189 };
15190
15191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
15192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15194 {
15195 PyThreadState* __tstate = wxPyBeginAllowThreads();
15196 result = (arg1)->GetShortHelp();
15197
15198 wxPyEndAllowThreads(__tstate);
15199 if (PyErr_Occurred()) SWIG_fail;
15200 }
15201 {
15202 #if wxUSE_UNICODE
15203 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15204 #else
15205 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15206 #endif
15207 }
15208 return resultobj;
15209 fail:
15210 return NULL;
15211 }
15212
15213
15214 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
15215 PyObject *resultobj;
15216 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15217 wxString result;
15218 PyObject * obj0 = 0 ;
15219 char *kwnames[] = {
15220 (char *) "self", NULL
15221 };
15222
15223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
15224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15226 {
15227 PyThreadState* __tstate = wxPyBeginAllowThreads();
15228 result = (arg1)->GetLongHelp();
15229
15230 wxPyEndAllowThreads(__tstate);
15231 if (PyErr_Occurred()) SWIG_fail;
15232 }
15233 {
15234 #if wxUSE_UNICODE
15235 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15236 #else
15237 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15238 #endif
15239 }
15240 return resultobj;
15241 fail:
15242 return NULL;
15243 }
15244
15245
15246 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
15247 PyObject *resultobj;
15248 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15249 bool arg2 ;
15250 bool result;
15251 PyObject * obj0 = 0 ;
15252 PyObject * obj1 = 0 ;
15253 char *kwnames[] = {
15254 (char *) "self",(char *) "enable", NULL
15255 };
15256
15257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
15258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15260 arg2 = (bool) SWIG_AsBool(obj1);
15261 if (PyErr_Occurred()) SWIG_fail;
15262 {
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 result = (bool)(arg1)->Enable(arg2);
15265
15266 wxPyEndAllowThreads(__tstate);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15269 {
15270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15271 }
15272 return resultobj;
15273 fail:
15274 return NULL;
15275 }
15276
15277
15278 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
15279 PyObject *resultobj;
15280 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15281 PyObject * obj0 = 0 ;
15282 char *kwnames[] = {
15283 (char *) "self", NULL
15284 };
15285
15286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
15287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15289 {
15290 PyThreadState* __tstate = wxPyBeginAllowThreads();
15291 (arg1)->Toggle();
15292
15293 wxPyEndAllowThreads(__tstate);
15294 if (PyErr_Occurred()) SWIG_fail;
15295 }
15296 Py_INCREF(Py_None); resultobj = Py_None;
15297 return resultobj;
15298 fail:
15299 return NULL;
15300 }
15301
15302
15303 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
15304 PyObject *resultobj;
15305 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15306 bool arg2 ;
15307 bool result;
15308 PyObject * obj0 = 0 ;
15309 PyObject * obj1 = 0 ;
15310 char *kwnames[] = {
15311 (char *) "self",(char *) "toggle", NULL
15312 };
15313
15314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
15315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15317 arg2 = (bool) SWIG_AsBool(obj1);
15318 if (PyErr_Occurred()) SWIG_fail;
15319 {
15320 PyThreadState* __tstate = wxPyBeginAllowThreads();
15321 result = (bool)(arg1)->SetToggle(arg2);
15322
15323 wxPyEndAllowThreads(__tstate);
15324 if (PyErr_Occurred()) SWIG_fail;
15325 }
15326 {
15327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15328 }
15329 return resultobj;
15330 fail:
15331 return NULL;
15332 }
15333
15334
15335 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj;
15337 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15338 wxString *arg2 = 0 ;
15339 bool result;
15340 bool temp2 = False ;
15341 PyObject * obj0 = 0 ;
15342 PyObject * obj1 = 0 ;
15343 char *kwnames[] = {
15344 (char *) "self",(char *) "help", NULL
15345 };
15346
15347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
15348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15350 {
15351 arg2 = wxString_in_helper(obj1);
15352 if (arg2 == NULL) SWIG_fail;
15353 temp2 = True;
15354 }
15355 {
15356 PyThreadState* __tstate = wxPyBeginAllowThreads();
15357 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
15358
15359 wxPyEndAllowThreads(__tstate);
15360 if (PyErr_Occurred()) SWIG_fail;
15361 }
15362 {
15363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15364 }
15365 {
15366 if (temp2)
15367 delete arg2;
15368 }
15369 return resultobj;
15370 fail:
15371 {
15372 if (temp2)
15373 delete arg2;
15374 }
15375 return NULL;
15376 }
15377
15378
15379 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
15380 PyObject *resultobj;
15381 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15382 wxString *arg2 = 0 ;
15383 bool result;
15384 bool temp2 = False ;
15385 PyObject * obj0 = 0 ;
15386 PyObject * obj1 = 0 ;
15387 char *kwnames[] = {
15388 (char *) "self",(char *) "help", NULL
15389 };
15390
15391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
15392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15394 {
15395 arg2 = wxString_in_helper(obj1);
15396 if (arg2 == NULL) SWIG_fail;
15397 temp2 = True;
15398 }
15399 {
15400 PyThreadState* __tstate = wxPyBeginAllowThreads();
15401 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
15402
15403 wxPyEndAllowThreads(__tstate);
15404 if (PyErr_Occurred()) SWIG_fail;
15405 }
15406 {
15407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15408 }
15409 {
15410 if (temp2)
15411 delete arg2;
15412 }
15413 return resultobj;
15414 fail:
15415 {
15416 if (temp2)
15417 delete arg2;
15418 }
15419 return NULL;
15420 }
15421
15422
15423 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
15424 PyObject *resultobj;
15425 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15426 wxBitmap *arg2 = 0 ;
15427 PyObject * obj0 = 0 ;
15428 PyObject * obj1 = 0 ;
15429 char *kwnames[] = {
15430 (char *) "self",(char *) "bmp", NULL
15431 };
15432
15433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
15434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15437 SWIG_POINTER_EXCEPTION | 0)) == -1)
15438 SWIG_fail;
15439 if (arg2 == NULL) {
15440 PyErr_SetString(PyExc_TypeError,"null reference");
15441 SWIG_fail;
15442 }
15443 {
15444 PyThreadState* __tstate = wxPyBeginAllowThreads();
15445 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
15446
15447 wxPyEndAllowThreads(__tstate);
15448 if (PyErr_Occurred()) SWIG_fail;
15449 }
15450 Py_INCREF(Py_None); resultobj = Py_None;
15451 return resultobj;
15452 fail:
15453 return NULL;
15454 }
15455
15456
15457 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
15458 PyObject *resultobj;
15459 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15460 wxBitmap *arg2 = 0 ;
15461 PyObject * obj0 = 0 ;
15462 PyObject * obj1 = 0 ;
15463 char *kwnames[] = {
15464 (char *) "self",(char *) "bmp", NULL
15465 };
15466
15467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
15468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15471 SWIG_POINTER_EXCEPTION | 0)) == -1)
15472 SWIG_fail;
15473 if (arg2 == NULL) {
15474 PyErr_SetString(PyExc_TypeError,"null reference");
15475 SWIG_fail;
15476 }
15477 {
15478 PyThreadState* __tstate = wxPyBeginAllowThreads();
15479 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
15480
15481 wxPyEndAllowThreads(__tstate);
15482 if (PyErr_Occurred()) SWIG_fail;
15483 }
15484 Py_INCREF(Py_None); resultobj = Py_None;
15485 return resultobj;
15486 fail:
15487 return NULL;
15488 }
15489
15490
15491 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
15492 PyObject *resultobj;
15493 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15494 wxString *arg2 = 0 ;
15495 bool temp2 = False ;
15496 PyObject * obj0 = 0 ;
15497 PyObject * obj1 = 0 ;
15498 char *kwnames[] = {
15499 (char *) "self",(char *) "label", NULL
15500 };
15501
15502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
15503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15505 {
15506 arg2 = wxString_in_helper(obj1);
15507 if (arg2 == NULL) SWIG_fail;
15508 temp2 = True;
15509 }
15510 {
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 (arg1)->SetLabel((wxString const &)*arg2);
15513
15514 wxPyEndAllowThreads(__tstate);
15515 if (PyErr_Occurred()) SWIG_fail;
15516 }
15517 Py_INCREF(Py_None); resultobj = Py_None;
15518 {
15519 if (temp2)
15520 delete arg2;
15521 }
15522 return resultobj;
15523 fail:
15524 {
15525 if (temp2)
15526 delete arg2;
15527 }
15528 return NULL;
15529 }
15530
15531
15532 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
15533 PyObject *resultobj;
15534 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15535 PyObject * obj0 = 0 ;
15536 char *kwnames[] = {
15537 (char *) "self", NULL
15538 };
15539
15540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
15541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15543 {
15544 PyThreadState* __tstate = wxPyBeginAllowThreads();
15545 (arg1)->Detach();
15546
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 Py_INCREF(Py_None); resultobj = Py_None;
15551 return resultobj;
15552 fail:
15553 return NULL;
15554 }
15555
15556
15557 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
15558 PyObject *resultobj;
15559 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15560 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
15561 PyObject * obj0 = 0 ;
15562 PyObject * obj1 = 0 ;
15563 char *kwnames[] = {
15564 (char *) "self",(char *) "tbar", NULL
15565 };
15566
15567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
15568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
15571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15572 {
15573 PyThreadState* __tstate = wxPyBeginAllowThreads();
15574 (arg1)->Attach(arg2);
15575
15576 wxPyEndAllowThreads(__tstate);
15577 if (PyErr_Occurred()) SWIG_fail;
15578 }
15579 Py_INCREF(Py_None); resultobj = Py_None;
15580 return resultobj;
15581 fail:
15582 return NULL;
15583 }
15584
15585
15586 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
15587 PyObject *resultobj;
15588 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15589 PyObject *result;
15590 PyObject * obj0 = 0 ;
15591 char *kwnames[] = {
15592 (char *) "self", NULL
15593 };
15594
15595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
15596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15598 {
15599 PyThreadState* __tstate = wxPyBeginAllowThreads();
15600 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
15601
15602 wxPyEndAllowThreads(__tstate);
15603 if (PyErr_Occurred()) SWIG_fail;
15604 }
15605 resultobj = result;
15606 return resultobj;
15607 fail:
15608 return NULL;
15609 }
15610
15611
15612 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
15613 PyObject *resultobj;
15614 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15615 PyObject *arg2 = (PyObject *) 0 ;
15616 PyObject * obj0 = 0 ;
15617 PyObject * obj1 = 0 ;
15618 char *kwnames[] = {
15619 (char *) "self",(char *) "clientData", NULL
15620 };
15621
15622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
15623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15625 arg2 = obj1;
15626 {
15627 PyThreadState* __tstate = wxPyBeginAllowThreads();
15628 wxToolBarToolBase_SetClientData(arg1,arg2);
15629
15630 wxPyEndAllowThreads(__tstate);
15631 if (PyErr_Occurred()) SWIG_fail;
15632 }
15633 Py_INCREF(Py_None); resultobj = Py_None;
15634 return resultobj;
15635 fail:
15636 return NULL;
15637 }
15638
15639
15640 static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) {
15641 PyObject *obj;
15642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15643 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
15644 Py_INCREF(obj);
15645 return Py_BuildValue((char *)"");
15646 }
15647 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) {
15648 PyObject *resultobj;
15649 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15650 int arg2 ;
15651 wxString *arg3 = 0 ;
15652 wxBitmap *arg4 = 0 ;
15653 wxBitmap const &arg5_defvalue = wxNullBitmap ;
15654 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
15655 int arg6 = (int) wxITEM_NORMAL ;
15656 wxString const &arg7_defvalue = wxPyEmptyString ;
15657 wxString *arg7 = (wxString *) &arg7_defvalue ;
15658 wxString const &arg8_defvalue = wxPyEmptyString ;
15659 wxString *arg8 = (wxString *) &arg8_defvalue ;
15660 PyObject *arg9 = (PyObject *) NULL ;
15661 wxToolBarToolBase *result;
15662 bool temp3 = False ;
15663 bool temp7 = False ;
15664 bool temp8 = False ;
15665 PyObject * obj0 = 0 ;
15666 PyObject * obj1 = 0 ;
15667 PyObject * obj2 = 0 ;
15668 PyObject * obj3 = 0 ;
15669 PyObject * obj4 = 0 ;
15670 PyObject * obj5 = 0 ;
15671 PyObject * obj6 = 0 ;
15672 PyObject * obj7 = 0 ;
15673 PyObject * obj8 = 0 ;
15674 char *kwnames[] = {
15675 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
15676 };
15677
15678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
15679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15681 arg2 = (int) SWIG_AsInt(obj1);
15682 if (PyErr_Occurred()) SWIG_fail;
15683 {
15684 arg3 = wxString_in_helper(obj2);
15685 if (arg3 == NULL) SWIG_fail;
15686 temp3 = True;
15687 }
15688 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
15689 SWIG_POINTER_EXCEPTION | 0)) == -1)
15690 SWIG_fail;
15691 if (arg4 == NULL) {
15692 PyErr_SetString(PyExc_TypeError,"null reference");
15693 SWIG_fail;
15694 }
15695 if (obj4) {
15696 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
15697 SWIG_POINTER_EXCEPTION | 0)) == -1)
15698 SWIG_fail;
15699 if (arg5 == NULL) {
15700 PyErr_SetString(PyExc_TypeError,"null reference");
15701 SWIG_fail;
15702 }
15703 }
15704 if (obj5) {
15705 arg6 = (wxItemKind) SWIG_AsInt(obj5);
15706 if (PyErr_Occurred()) SWIG_fail;
15707 }
15708 if (obj6) {
15709 {
15710 arg7 = wxString_in_helper(obj6);
15711 if (arg7 == NULL) SWIG_fail;
15712 temp7 = True;
15713 }
15714 }
15715 if (obj7) {
15716 {
15717 arg8 = wxString_in_helper(obj7);
15718 if (arg8 == NULL) SWIG_fail;
15719 temp8 = True;
15720 }
15721 }
15722 if (obj8) {
15723 arg9 = obj8;
15724 }
15725 {
15726 PyThreadState* __tstate = wxPyBeginAllowThreads();
15727 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
15728
15729 wxPyEndAllowThreads(__tstate);
15730 if (PyErr_Occurred()) SWIG_fail;
15731 }
15732 {
15733 resultobj = wxPyMake_wxObject(result);
15734 }
15735 {
15736 if (temp3)
15737 delete arg3;
15738 }
15739 {
15740 if (temp7)
15741 delete arg7;
15742 }
15743 {
15744 if (temp8)
15745 delete arg8;
15746 }
15747 return resultobj;
15748 fail:
15749 {
15750 if (temp3)
15751 delete arg3;
15752 }
15753 {
15754 if (temp7)
15755 delete arg7;
15756 }
15757 {
15758 if (temp8)
15759 delete arg8;
15760 }
15761 return NULL;
15762 }
15763
15764
15765 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) {
15766 PyObject *resultobj;
15767 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15768 size_t arg2 ;
15769 int arg3 ;
15770 wxString *arg4 = 0 ;
15771 wxBitmap *arg5 = 0 ;
15772 wxBitmap const &arg6_defvalue = wxNullBitmap ;
15773 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
15774 int arg7 = (int) wxITEM_NORMAL ;
15775 wxString const &arg8_defvalue = wxPyEmptyString ;
15776 wxString *arg8 = (wxString *) &arg8_defvalue ;
15777 wxString const &arg9_defvalue = wxPyEmptyString ;
15778 wxString *arg9 = (wxString *) &arg9_defvalue ;
15779 PyObject *arg10 = (PyObject *) NULL ;
15780 wxToolBarToolBase *result;
15781 bool temp4 = False ;
15782 bool temp8 = False ;
15783 bool temp9 = False ;
15784 PyObject * obj0 = 0 ;
15785 PyObject * obj1 = 0 ;
15786 PyObject * obj2 = 0 ;
15787 PyObject * obj3 = 0 ;
15788 PyObject * obj4 = 0 ;
15789 PyObject * obj5 = 0 ;
15790 PyObject * obj6 = 0 ;
15791 PyObject * obj7 = 0 ;
15792 PyObject * obj8 = 0 ;
15793 PyObject * obj9 = 0 ;
15794 char *kwnames[] = {
15795 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
15796 };
15797
15798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
15799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15801 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
15802 if (PyErr_Occurred()) SWIG_fail;
15803 arg3 = (int) SWIG_AsInt(obj2);
15804 if (PyErr_Occurred()) SWIG_fail;
15805 {
15806 arg4 = wxString_in_helper(obj3);
15807 if (arg4 == NULL) SWIG_fail;
15808 temp4 = True;
15809 }
15810 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
15811 SWIG_POINTER_EXCEPTION | 0)) == -1)
15812 SWIG_fail;
15813 if (arg5 == NULL) {
15814 PyErr_SetString(PyExc_TypeError,"null reference");
15815 SWIG_fail;
15816 }
15817 if (obj5) {
15818 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
15819 SWIG_POINTER_EXCEPTION | 0)) == -1)
15820 SWIG_fail;
15821 if (arg6 == NULL) {
15822 PyErr_SetString(PyExc_TypeError,"null reference");
15823 SWIG_fail;
15824 }
15825 }
15826 if (obj6) {
15827 arg7 = (wxItemKind) SWIG_AsInt(obj6);
15828 if (PyErr_Occurred()) SWIG_fail;
15829 }
15830 if (obj7) {
15831 {
15832 arg8 = wxString_in_helper(obj7);
15833 if (arg8 == NULL) SWIG_fail;
15834 temp8 = True;
15835 }
15836 }
15837 if (obj8) {
15838 {
15839 arg9 = wxString_in_helper(obj8);
15840 if (arg9 == NULL) SWIG_fail;
15841 temp9 = True;
15842 }
15843 }
15844 if (obj9) {
15845 arg10 = obj9;
15846 }
15847 {
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 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);
15850
15851 wxPyEndAllowThreads(__tstate);
15852 if (PyErr_Occurred()) SWIG_fail;
15853 }
15854 {
15855 resultobj = wxPyMake_wxObject(result);
15856 }
15857 {
15858 if (temp4)
15859 delete arg4;
15860 }
15861 {
15862 if (temp8)
15863 delete arg8;
15864 }
15865 {
15866 if (temp9)
15867 delete arg9;
15868 }
15869 return resultobj;
15870 fail:
15871 {
15872 if (temp4)
15873 delete arg4;
15874 }
15875 {
15876 if (temp8)
15877 delete arg8;
15878 }
15879 {
15880 if (temp9)
15881 delete arg9;
15882 }
15883 return NULL;
15884 }
15885
15886
15887 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
15888 PyObject *resultobj;
15889 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15890 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
15891 wxToolBarToolBase *result;
15892 PyObject * obj0 = 0 ;
15893 PyObject * obj1 = 0 ;
15894 char *kwnames[] = {
15895 (char *) "self",(char *) "tool", NULL
15896 };
15897
15898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
15899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15901 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
15902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15903 {
15904 PyThreadState* __tstate = wxPyBeginAllowThreads();
15905 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
15906
15907 wxPyEndAllowThreads(__tstate);
15908 if (PyErr_Occurred()) SWIG_fail;
15909 }
15910 {
15911 resultobj = wxPyMake_wxObject(result);
15912 }
15913 return resultobj;
15914 fail:
15915 return NULL;
15916 }
15917
15918
15919 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
15920 PyObject *resultobj;
15921 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15922 size_t arg2 ;
15923 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
15924 wxToolBarToolBase *result;
15925 PyObject * obj0 = 0 ;
15926 PyObject * obj1 = 0 ;
15927 PyObject * obj2 = 0 ;
15928 char *kwnames[] = {
15929 (char *) "self",(char *) "pos",(char *) "tool", NULL
15930 };
15931
15932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
15933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15935 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
15936 if (PyErr_Occurred()) SWIG_fail;
15937 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
15938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15939 {
15940 PyThreadState* __tstate = wxPyBeginAllowThreads();
15941 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
15942
15943 wxPyEndAllowThreads(__tstate);
15944 if (PyErr_Occurred()) SWIG_fail;
15945 }
15946 {
15947 resultobj = wxPyMake_wxObject(result);
15948 }
15949 return resultobj;
15950 fail:
15951 return NULL;
15952 }
15953
15954
15955 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) {
15956 PyObject *resultobj;
15957 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15958 wxControl *arg2 = (wxControl *) 0 ;
15959 wxToolBarToolBase *result;
15960 PyObject * obj0 = 0 ;
15961 PyObject * obj1 = 0 ;
15962 char *kwnames[] = {
15963 (char *) "self",(char *) "control", NULL
15964 };
15965
15966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
15967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15969 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
15970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15971 {
15972 PyThreadState* __tstate = wxPyBeginAllowThreads();
15973 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
15974
15975 wxPyEndAllowThreads(__tstate);
15976 if (PyErr_Occurred()) SWIG_fail;
15977 }
15978 {
15979 resultobj = wxPyMake_wxObject(result);
15980 }
15981 return resultobj;
15982 fail:
15983 return NULL;
15984 }
15985
15986
15987 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) {
15988 PyObject *resultobj;
15989 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15990 size_t arg2 ;
15991 wxControl *arg3 = (wxControl *) 0 ;
15992 wxToolBarToolBase *result;
15993 PyObject * obj0 = 0 ;
15994 PyObject * obj1 = 0 ;
15995 PyObject * obj2 = 0 ;
15996 char *kwnames[] = {
15997 (char *) "self",(char *) "pos",(char *) "control", NULL
15998 };
15999
16000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
16001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16003 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
16006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16007 {
16008 PyThreadState* __tstate = wxPyBeginAllowThreads();
16009 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
16010
16011 wxPyEndAllowThreads(__tstate);
16012 if (PyErr_Occurred()) SWIG_fail;
16013 }
16014 {
16015 resultobj = wxPyMake_wxObject(result);
16016 }
16017 return resultobj;
16018 fail:
16019 return NULL;
16020 }
16021
16022
16023 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) {
16024 PyObject *resultobj;
16025 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16026 int arg2 ;
16027 wxControl *result;
16028 PyObject * obj0 = 0 ;
16029 PyObject * obj1 = 0 ;
16030 char *kwnames[] = {
16031 (char *) "self",(char *) "id", NULL
16032 };
16033
16034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
16035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16037 arg2 = (int) SWIG_AsInt(obj1);
16038 if (PyErr_Occurred()) SWIG_fail;
16039 {
16040 PyThreadState* __tstate = wxPyBeginAllowThreads();
16041 result = (wxControl *)(arg1)->FindControl(arg2);
16042
16043 wxPyEndAllowThreads(__tstate);
16044 if (PyErr_Occurred()) SWIG_fail;
16045 }
16046 {
16047 resultobj = wxPyMake_wxObject(result);
16048 }
16049 return resultobj;
16050 fail:
16051 return NULL;
16052 }
16053
16054
16055 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj;
16057 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16058 wxToolBarToolBase *result;
16059 PyObject * obj0 = 0 ;
16060 char *kwnames[] = {
16061 (char *) "self", NULL
16062 };
16063
16064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
16065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16067 {
16068 PyThreadState* __tstate = wxPyBeginAllowThreads();
16069 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
16070
16071 wxPyEndAllowThreads(__tstate);
16072 if (PyErr_Occurred()) SWIG_fail;
16073 }
16074 {
16075 resultobj = wxPyMake_wxObject(result);
16076 }
16077 return resultobj;
16078 fail:
16079 return NULL;
16080 }
16081
16082
16083 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16084 PyObject *resultobj;
16085 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16086 size_t arg2 ;
16087 wxToolBarToolBase *result;
16088 PyObject * obj0 = 0 ;
16089 PyObject * obj1 = 0 ;
16090 char *kwnames[] = {
16091 (char *) "self",(char *) "pos", NULL
16092 };
16093
16094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
16095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16097 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16098 if (PyErr_Occurred()) SWIG_fail;
16099 {
16100 PyThreadState* __tstate = wxPyBeginAllowThreads();
16101 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
16102
16103 wxPyEndAllowThreads(__tstate);
16104 if (PyErr_Occurred()) SWIG_fail;
16105 }
16106 {
16107 resultobj = wxPyMake_wxObject(result);
16108 }
16109 return resultobj;
16110 fail:
16111 return NULL;
16112 }
16113
16114
16115 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) {
16116 PyObject *resultobj;
16117 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16118 int arg2 ;
16119 wxToolBarToolBase *result;
16120 PyObject * obj0 = 0 ;
16121 PyObject * obj1 = 0 ;
16122 char *kwnames[] = {
16123 (char *) "self",(char *) "id", NULL
16124 };
16125
16126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
16127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16129 arg2 = (int) SWIG_AsInt(obj1);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 {
16132 PyThreadState* __tstate = wxPyBeginAllowThreads();
16133 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
16134
16135 wxPyEndAllowThreads(__tstate);
16136 if (PyErr_Occurred()) SWIG_fail;
16137 }
16138 {
16139 resultobj = wxPyMake_wxObject(result);
16140 }
16141 return resultobj;
16142 fail:
16143 return NULL;
16144 }
16145
16146
16147 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) {
16148 PyObject *resultobj;
16149 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16150 size_t arg2 ;
16151 bool result;
16152 PyObject * obj0 = 0 ;
16153 PyObject * obj1 = 0 ;
16154 char *kwnames[] = {
16155 (char *) "self",(char *) "pos", NULL
16156 };
16157
16158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
16159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16161 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 {
16164 PyThreadState* __tstate = wxPyBeginAllowThreads();
16165 result = (bool)(arg1)->DeleteToolByPos(arg2);
16166
16167 wxPyEndAllowThreads(__tstate);
16168 if (PyErr_Occurred()) SWIG_fail;
16169 }
16170 {
16171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16172 }
16173 return resultobj;
16174 fail:
16175 return NULL;
16176 }
16177
16178
16179 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) {
16180 PyObject *resultobj;
16181 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16182 int arg2 ;
16183 bool result;
16184 PyObject * obj0 = 0 ;
16185 PyObject * obj1 = 0 ;
16186 char *kwnames[] = {
16187 (char *) "self",(char *) "id", NULL
16188 };
16189
16190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
16191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16193 arg2 = (int) SWIG_AsInt(obj1);
16194 if (PyErr_Occurred()) SWIG_fail;
16195 {
16196 PyThreadState* __tstate = wxPyBeginAllowThreads();
16197 result = (bool)(arg1)->DeleteTool(arg2);
16198
16199 wxPyEndAllowThreads(__tstate);
16200 if (PyErr_Occurred()) SWIG_fail;
16201 }
16202 {
16203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16204 }
16205 return resultobj;
16206 fail:
16207 return NULL;
16208 }
16209
16210
16211 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) {
16212 PyObject *resultobj;
16213 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16214 PyObject * obj0 = 0 ;
16215 char *kwnames[] = {
16216 (char *) "self", NULL
16217 };
16218
16219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
16220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16222 {
16223 PyThreadState* __tstate = wxPyBeginAllowThreads();
16224 (arg1)->ClearTools();
16225
16226 wxPyEndAllowThreads(__tstate);
16227 if (PyErr_Occurred()) SWIG_fail;
16228 }
16229 Py_INCREF(Py_None); resultobj = Py_None;
16230 return resultobj;
16231 fail:
16232 return NULL;
16233 }
16234
16235
16236 static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
16237 PyObject *resultobj;
16238 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16239 bool result;
16240 PyObject * obj0 = 0 ;
16241 char *kwnames[] = {
16242 (char *) "self", NULL
16243 };
16244
16245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
16246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = (bool)(arg1)->Realize();
16251
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 {
16256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16257 }
16258 return resultobj;
16259 fail:
16260 return NULL;
16261 }
16262
16263
16264 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) {
16265 PyObject *resultobj;
16266 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16267 int arg2 ;
16268 bool arg3 ;
16269 PyObject * obj0 = 0 ;
16270 PyObject * obj1 = 0 ;
16271 PyObject * obj2 = 0 ;
16272 char *kwnames[] = {
16273 (char *) "self",(char *) "id",(char *) "enable", NULL
16274 };
16275
16276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16279 arg2 = (int) SWIG_AsInt(obj1);
16280 if (PyErr_Occurred()) SWIG_fail;
16281 arg3 = (bool) SWIG_AsBool(obj2);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 {
16284 PyThreadState* __tstate = wxPyBeginAllowThreads();
16285 (arg1)->EnableTool(arg2,arg3);
16286
16287 wxPyEndAllowThreads(__tstate);
16288 if (PyErr_Occurred()) SWIG_fail;
16289 }
16290 Py_INCREF(Py_None); resultobj = Py_None;
16291 return resultobj;
16292 fail:
16293 return NULL;
16294 }
16295
16296
16297 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) {
16298 PyObject *resultobj;
16299 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16300 int arg2 ;
16301 bool arg3 ;
16302 PyObject * obj0 = 0 ;
16303 PyObject * obj1 = 0 ;
16304 PyObject * obj2 = 0 ;
16305 char *kwnames[] = {
16306 (char *) "self",(char *) "id",(char *) "toggle", NULL
16307 };
16308
16309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16312 arg2 = (int) SWIG_AsInt(obj1);
16313 if (PyErr_Occurred()) SWIG_fail;
16314 arg3 = (bool) SWIG_AsBool(obj2);
16315 if (PyErr_Occurred()) SWIG_fail;
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 (arg1)->ToggleTool(arg2,arg3);
16319
16320 wxPyEndAllowThreads(__tstate);
16321 if (PyErr_Occurred()) SWIG_fail;
16322 }
16323 Py_INCREF(Py_None); resultobj = Py_None;
16324 return resultobj;
16325 fail:
16326 return NULL;
16327 }
16328
16329
16330 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
16331 PyObject *resultobj;
16332 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16333 int arg2 ;
16334 bool arg3 ;
16335 PyObject * obj0 = 0 ;
16336 PyObject * obj1 = 0 ;
16337 PyObject * obj2 = 0 ;
16338 char *kwnames[] = {
16339 (char *) "self",(char *) "id",(char *) "toggle", NULL
16340 };
16341
16342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
16343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16345 arg2 = (int) SWIG_AsInt(obj1);
16346 if (PyErr_Occurred()) SWIG_fail;
16347 arg3 = (bool) SWIG_AsBool(obj2);
16348 if (PyErr_Occurred()) SWIG_fail;
16349 {
16350 PyThreadState* __tstate = wxPyBeginAllowThreads();
16351 (arg1)->SetToggle(arg2,arg3);
16352
16353 wxPyEndAllowThreads(__tstate);
16354 if (PyErr_Occurred()) SWIG_fail;
16355 }
16356 Py_INCREF(Py_None); resultobj = Py_None;
16357 return resultobj;
16358 fail:
16359 return NULL;
16360 }
16361
16362
16363 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
16364 PyObject *resultobj;
16365 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16366 int arg2 ;
16367 PyObject *result;
16368 PyObject * obj0 = 0 ;
16369 PyObject * obj1 = 0 ;
16370 char *kwnames[] = {
16371 (char *) "self",(char *) "id", NULL
16372 };
16373
16374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
16375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16377 arg2 = (int) SWIG_AsInt(obj1);
16378 if (PyErr_Occurred()) SWIG_fail;
16379 {
16380 PyThreadState* __tstate = wxPyBeginAllowThreads();
16381 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
16382
16383 wxPyEndAllowThreads(__tstate);
16384 if (PyErr_Occurred()) SWIG_fail;
16385 }
16386 resultobj = result;
16387 return resultobj;
16388 fail:
16389 return NULL;
16390 }
16391
16392
16393 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
16394 PyObject *resultobj;
16395 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16396 int arg2 ;
16397 PyObject *arg3 = (PyObject *) 0 ;
16398 PyObject * obj0 = 0 ;
16399 PyObject * obj1 = 0 ;
16400 PyObject * obj2 = 0 ;
16401 char *kwnames[] = {
16402 (char *) "self",(char *) "id",(char *) "clientData", NULL
16403 };
16404
16405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
16406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16408 arg2 = (int) SWIG_AsInt(obj1);
16409 if (PyErr_Occurred()) SWIG_fail;
16410 arg3 = obj2;
16411 {
16412 PyThreadState* __tstate = wxPyBeginAllowThreads();
16413 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
16414
16415 wxPyEndAllowThreads(__tstate);
16416 if (PyErr_Occurred()) SWIG_fail;
16417 }
16418 Py_INCREF(Py_None); resultobj = Py_None;
16419 return resultobj;
16420 fail:
16421 return NULL;
16422 }
16423
16424
16425 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) {
16426 PyObject *resultobj;
16427 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16428 int arg2 ;
16429 int result;
16430 PyObject * obj0 = 0 ;
16431 PyObject * obj1 = 0 ;
16432 char *kwnames[] = {
16433 (char *) "self",(char *) "id", NULL
16434 };
16435
16436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
16437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16439 arg2 = (int) SWIG_AsInt(obj1);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 {
16442 PyThreadState* __tstate = wxPyBeginAllowThreads();
16443 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
16444
16445 wxPyEndAllowThreads(__tstate);
16446 if (PyErr_Occurred()) SWIG_fail;
16447 }
16448 resultobj = SWIG_FromInt((int)result);
16449 return resultobj;
16450 fail:
16451 return NULL;
16452 }
16453
16454
16455 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) {
16456 PyObject *resultobj;
16457 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16458 int arg2 ;
16459 bool result;
16460 PyObject * obj0 = 0 ;
16461 PyObject * obj1 = 0 ;
16462 char *kwnames[] = {
16463 (char *) "self",(char *) "id", NULL
16464 };
16465
16466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
16467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16469 arg2 = (int) SWIG_AsInt(obj1);
16470 if (PyErr_Occurred()) SWIG_fail;
16471 {
16472 PyThreadState* __tstate = wxPyBeginAllowThreads();
16473 result = (bool)(arg1)->GetToolState(arg2);
16474
16475 wxPyEndAllowThreads(__tstate);
16476 if (PyErr_Occurred()) SWIG_fail;
16477 }
16478 {
16479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16480 }
16481 return resultobj;
16482 fail:
16483 return NULL;
16484 }
16485
16486
16487 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
16488 PyObject *resultobj;
16489 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16490 int arg2 ;
16491 bool result;
16492 PyObject * obj0 = 0 ;
16493 PyObject * obj1 = 0 ;
16494 char *kwnames[] = {
16495 (char *) "self",(char *) "id", NULL
16496 };
16497
16498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
16499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16501 arg2 = (int) SWIG_AsInt(obj1);
16502 if (PyErr_Occurred()) SWIG_fail;
16503 {
16504 PyThreadState* __tstate = wxPyBeginAllowThreads();
16505 result = (bool)(arg1)->GetToolEnabled(arg2);
16506
16507 wxPyEndAllowThreads(__tstate);
16508 if (PyErr_Occurred()) SWIG_fail;
16509 }
16510 {
16511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16512 }
16513 return resultobj;
16514 fail:
16515 return NULL;
16516 }
16517
16518
16519 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16520 PyObject *resultobj;
16521 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16522 int arg2 ;
16523 wxString *arg3 = 0 ;
16524 bool temp3 = False ;
16525 PyObject * obj0 = 0 ;
16526 PyObject * obj1 = 0 ;
16527 PyObject * obj2 = 0 ;
16528 char *kwnames[] = {
16529 (char *) "self",(char *) "id",(char *) "helpString", NULL
16530 };
16531
16532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16535 arg2 = (int) SWIG_AsInt(obj1);
16536 if (PyErr_Occurred()) SWIG_fail;
16537 {
16538 arg3 = wxString_in_helper(obj2);
16539 if (arg3 == NULL) SWIG_fail;
16540 temp3 = True;
16541 }
16542 {
16543 PyThreadState* __tstate = wxPyBeginAllowThreads();
16544 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
16545
16546 wxPyEndAllowThreads(__tstate);
16547 if (PyErr_Occurred()) SWIG_fail;
16548 }
16549 Py_INCREF(Py_None); resultobj = Py_None;
16550 {
16551 if (temp3)
16552 delete arg3;
16553 }
16554 return resultobj;
16555 fail:
16556 {
16557 if (temp3)
16558 delete arg3;
16559 }
16560 return NULL;
16561 }
16562
16563
16564 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16565 PyObject *resultobj;
16566 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16567 int arg2 ;
16568 wxString result;
16569 PyObject * obj0 = 0 ;
16570 PyObject * obj1 = 0 ;
16571 char *kwnames[] = {
16572 (char *) "self",(char *) "id", NULL
16573 };
16574
16575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
16576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16578 arg2 = (int) SWIG_AsInt(obj1);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 {
16581 PyThreadState* __tstate = wxPyBeginAllowThreads();
16582 result = (arg1)->GetToolShortHelp(arg2);
16583
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 {
16588 #if wxUSE_UNICODE
16589 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16590 #else
16591 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16592 #endif
16593 }
16594 return resultobj;
16595 fail:
16596 return NULL;
16597 }
16598
16599
16600 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16601 PyObject *resultobj;
16602 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16603 int arg2 ;
16604 wxString *arg3 = 0 ;
16605 bool temp3 = False ;
16606 PyObject * obj0 = 0 ;
16607 PyObject * obj1 = 0 ;
16608 PyObject * obj2 = 0 ;
16609 char *kwnames[] = {
16610 (char *) "self",(char *) "id",(char *) "helpString", NULL
16611 };
16612
16613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16616 arg2 = (int) SWIG_AsInt(obj1);
16617 if (PyErr_Occurred()) SWIG_fail;
16618 {
16619 arg3 = wxString_in_helper(obj2);
16620 if (arg3 == NULL) SWIG_fail;
16621 temp3 = True;
16622 }
16623 {
16624 PyThreadState* __tstate = wxPyBeginAllowThreads();
16625 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
16626
16627 wxPyEndAllowThreads(__tstate);
16628 if (PyErr_Occurred()) SWIG_fail;
16629 }
16630 Py_INCREF(Py_None); resultobj = Py_None;
16631 {
16632 if (temp3)
16633 delete arg3;
16634 }
16635 return resultobj;
16636 fail:
16637 {
16638 if (temp3)
16639 delete arg3;
16640 }
16641 return NULL;
16642 }
16643
16644
16645 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16646 PyObject *resultobj;
16647 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16648 int arg2 ;
16649 wxString result;
16650 PyObject * obj0 = 0 ;
16651 PyObject * obj1 = 0 ;
16652 char *kwnames[] = {
16653 (char *) "self",(char *) "id", NULL
16654 };
16655
16656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
16657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16659 arg2 = (int) SWIG_AsInt(obj1);
16660 if (PyErr_Occurred()) SWIG_fail;
16661 {
16662 PyThreadState* __tstate = wxPyBeginAllowThreads();
16663 result = (arg1)->GetToolLongHelp(arg2);
16664
16665 wxPyEndAllowThreads(__tstate);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 {
16669 #if wxUSE_UNICODE
16670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16671 #else
16672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16673 #endif
16674 }
16675 return resultobj;
16676 fail:
16677 return NULL;
16678 }
16679
16680
16681 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) {
16682 PyObject *resultobj;
16683 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16684 int arg2 ;
16685 int arg3 ;
16686 PyObject * obj0 = 0 ;
16687 PyObject * obj1 = 0 ;
16688 PyObject * obj2 = 0 ;
16689 char *kwnames[] = {
16690 (char *) "self",(char *) "x",(char *) "y", NULL
16691 };
16692
16693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
16694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16696 arg2 = (int) SWIG_AsInt(obj1);
16697 if (PyErr_Occurred()) SWIG_fail;
16698 arg3 = (int) SWIG_AsInt(obj2);
16699 if (PyErr_Occurred()) SWIG_fail;
16700 {
16701 PyThreadState* __tstate = wxPyBeginAllowThreads();
16702 (arg1)->SetMargins(arg2,arg3);
16703
16704 wxPyEndAllowThreads(__tstate);
16705 if (PyErr_Occurred()) SWIG_fail;
16706 }
16707 Py_INCREF(Py_None); resultobj = Py_None;
16708 return resultobj;
16709 fail:
16710 return NULL;
16711 }
16712
16713
16714 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
16715 PyObject *resultobj;
16716 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16717 wxSize *arg2 = 0 ;
16718 wxSize temp2 ;
16719 PyObject * obj0 = 0 ;
16720 PyObject * obj1 = 0 ;
16721 char *kwnames[] = {
16722 (char *) "self",(char *) "size", NULL
16723 };
16724
16725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
16726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16728 {
16729 arg2 = &temp2;
16730 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
16731 }
16732 {
16733 PyThreadState* __tstate = wxPyBeginAllowThreads();
16734 (arg1)->SetMargins((wxSize const &)*arg2);
16735
16736 wxPyEndAllowThreads(__tstate);
16737 if (PyErr_Occurred()) SWIG_fail;
16738 }
16739 Py_INCREF(Py_None); resultobj = Py_None;
16740 return resultobj;
16741 fail:
16742 return NULL;
16743 }
16744
16745
16746 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
16747 PyObject *resultobj;
16748 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16749 int arg2 ;
16750 PyObject * obj0 = 0 ;
16751 PyObject * obj1 = 0 ;
16752 char *kwnames[] = {
16753 (char *) "self",(char *) "packing", NULL
16754 };
16755
16756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
16757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16759 arg2 = (int) SWIG_AsInt(obj1);
16760 if (PyErr_Occurred()) SWIG_fail;
16761 {
16762 PyThreadState* __tstate = wxPyBeginAllowThreads();
16763 (arg1)->SetToolPacking(arg2);
16764
16765 wxPyEndAllowThreads(__tstate);
16766 if (PyErr_Occurred()) SWIG_fail;
16767 }
16768 Py_INCREF(Py_None); resultobj = Py_None;
16769 return resultobj;
16770 fail:
16771 return NULL;
16772 }
16773
16774
16775 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
16776 PyObject *resultobj;
16777 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16778 int arg2 ;
16779 PyObject * obj0 = 0 ;
16780 PyObject * obj1 = 0 ;
16781 char *kwnames[] = {
16782 (char *) "self",(char *) "separation", NULL
16783 };
16784
16785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
16786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16788 arg2 = (int) SWIG_AsInt(obj1);
16789 if (PyErr_Occurred()) SWIG_fail;
16790 {
16791 PyThreadState* __tstate = wxPyBeginAllowThreads();
16792 (arg1)->SetToolSeparation(arg2);
16793
16794 wxPyEndAllowThreads(__tstate);
16795 if (PyErr_Occurred()) SWIG_fail;
16796 }
16797 Py_INCREF(Py_None); resultobj = Py_None;
16798 return resultobj;
16799 fail:
16800 return NULL;
16801 }
16802
16803
16804 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) {
16805 PyObject *resultobj;
16806 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16807 wxSize result;
16808 PyObject * obj0 = 0 ;
16809 char *kwnames[] = {
16810 (char *) "self", NULL
16811 };
16812
16813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
16814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16816 {
16817 PyThreadState* __tstate = wxPyBeginAllowThreads();
16818 result = (arg1)->GetToolMargins();
16819
16820 wxPyEndAllowThreads(__tstate);
16821 if (PyErr_Occurred()) SWIG_fail;
16822 }
16823 {
16824 wxSize * resultptr;
16825 resultptr = new wxSize((wxSize &) result);
16826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16827 }
16828 return resultobj;
16829 fail:
16830 return NULL;
16831 }
16832
16833
16834 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
16835 PyObject *resultobj;
16836 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16837 wxSize result;
16838 PyObject * obj0 = 0 ;
16839 char *kwnames[] = {
16840 (char *) "self", NULL
16841 };
16842
16843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
16844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16846 {
16847 PyThreadState* __tstate = wxPyBeginAllowThreads();
16848 result = (arg1)->GetMargins();
16849
16850 wxPyEndAllowThreads(__tstate);
16851 if (PyErr_Occurred()) SWIG_fail;
16852 }
16853 {
16854 wxSize * resultptr;
16855 resultptr = new wxSize((wxSize &) result);
16856 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16857 }
16858 return resultobj;
16859 fail:
16860 return NULL;
16861 }
16862
16863
16864 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
16865 PyObject *resultobj;
16866 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16867 int result;
16868 PyObject * obj0 = 0 ;
16869 char *kwnames[] = {
16870 (char *) "self", NULL
16871 };
16872
16873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
16874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16876 {
16877 PyThreadState* __tstate = wxPyBeginAllowThreads();
16878 result = (int)(arg1)->GetToolPacking();
16879
16880 wxPyEndAllowThreads(__tstate);
16881 if (PyErr_Occurred()) SWIG_fail;
16882 }
16883 resultobj = SWIG_FromInt((int)result);
16884 return resultobj;
16885 fail:
16886 return NULL;
16887 }
16888
16889
16890 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
16891 PyObject *resultobj;
16892 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16893 int result;
16894 PyObject * obj0 = 0 ;
16895 char *kwnames[] = {
16896 (char *) "self", NULL
16897 };
16898
16899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
16900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16902 {
16903 PyThreadState* __tstate = wxPyBeginAllowThreads();
16904 result = (int)(arg1)->GetToolSeparation();
16905
16906 wxPyEndAllowThreads(__tstate);
16907 if (PyErr_Occurred()) SWIG_fail;
16908 }
16909 resultobj = SWIG_FromInt((int)result);
16910 return resultobj;
16911 fail:
16912 return NULL;
16913 }
16914
16915
16916 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
16917 PyObject *resultobj;
16918 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16919 int arg2 ;
16920 PyObject * obj0 = 0 ;
16921 PyObject * obj1 = 0 ;
16922 char *kwnames[] = {
16923 (char *) "self",(char *) "nRows", NULL
16924 };
16925
16926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
16927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16929 arg2 = (int) SWIG_AsInt(obj1);
16930 if (PyErr_Occurred()) SWIG_fail;
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 (arg1)->SetRows(arg2);
16934
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 Py_INCREF(Py_None); resultobj = Py_None;
16939 return resultobj;
16940 fail:
16941 return NULL;
16942 }
16943
16944
16945 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) {
16946 PyObject *resultobj;
16947 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16948 int arg2 ;
16949 int arg3 ;
16950 PyObject * obj0 = 0 ;
16951 PyObject * obj1 = 0 ;
16952 PyObject * obj2 = 0 ;
16953 char *kwnames[] = {
16954 (char *) "self",(char *) "rows",(char *) "cols", NULL
16955 };
16956
16957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
16958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16960 arg2 = (int) SWIG_AsInt(obj1);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 arg3 = (int) SWIG_AsInt(obj2);
16963 if (PyErr_Occurred()) SWIG_fail;
16964 {
16965 PyThreadState* __tstate = wxPyBeginAllowThreads();
16966 (arg1)->SetMaxRowsCols(arg2,arg3);
16967
16968 wxPyEndAllowThreads(__tstate);
16969 if (PyErr_Occurred()) SWIG_fail;
16970 }
16971 Py_INCREF(Py_None); resultobj = Py_None;
16972 return resultobj;
16973 fail:
16974 return NULL;
16975 }
16976
16977
16978 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) {
16979 PyObject *resultobj;
16980 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16981 int result;
16982 PyObject * obj0 = 0 ;
16983 char *kwnames[] = {
16984 (char *) "self", NULL
16985 };
16986
16987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
16988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16990 {
16991 PyThreadState* __tstate = wxPyBeginAllowThreads();
16992 result = (int)(arg1)->GetMaxRows();
16993
16994 wxPyEndAllowThreads(__tstate);
16995 if (PyErr_Occurred()) SWIG_fail;
16996 }
16997 resultobj = SWIG_FromInt((int)result);
16998 return resultobj;
16999 fail:
17000 return NULL;
17001 }
17002
17003
17004 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) {
17005 PyObject *resultobj;
17006 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17007 int result;
17008 PyObject * obj0 = 0 ;
17009 char *kwnames[] = {
17010 (char *) "self", NULL
17011 };
17012
17013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
17014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17016 {
17017 PyThreadState* __tstate = wxPyBeginAllowThreads();
17018 result = (int)(arg1)->GetMaxCols();
17019
17020 wxPyEndAllowThreads(__tstate);
17021 if (PyErr_Occurred()) SWIG_fail;
17022 }
17023 resultobj = SWIG_FromInt((int)result);
17024 return resultobj;
17025 fail:
17026 return NULL;
17027 }
17028
17029
17030 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
17031 PyObject *resultobj;
17032 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17033 wxSize *arg2 = 0 ;
17034 wxSize temp2 ;
17035 PyObject * obj0 = 0 ;
17036 PyObject * obj1 = 0 ;
17037 char *kwnames[] = {
17038 (char *) "self",(char *) "size", NULL
17039 };
17040
17041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
17042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17044 {
17045 arg2 = &temp2;
17046 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17047 }
17048 {
17049 PyThreadState* __tstate = wxPyBeginAllowThreads();
17050 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
17051
17052 wxPyEndAllowThreads(__tstate);
17053 if (PyErr_Occurred()) SWIG_fail;
17054 }
17055 Py_INCREF(Py_None); resultobj = Py_None;
17056 return resultobj;
17057 fail:
17058 return NULL;
17059 }
17060
17061
17062 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
17063 PyObject *resultobj;
17064 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17065 wxSize result;
17066 PyObject * obj0 = 0 ;
17067 char *kwnames[] = {
17068 (char *) "self", NULL
17069 };
17070
17071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
17072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17074 {
17075 PyThreadState* __tstate = wxPyBeginAllowThreads();
17076 result = (arg1)->GetToolBitmapSize();
17077
17078 wxPyEndAllowThreads(__tstate);
17079 if (PyErr_Occurred()) SWIG_fail;
17080 }
17081 {
17082 wxSize * resultptr;
17083 resultptr = new wxSize((wxSize &) result);
17084 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17085 }
17086 return resultobj;
17087 fail:
17088 return NULL;
17089 }
17090
17091
17092 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) {
17093 PyObject *resultobj;
17094 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17095 wxSize result;
17096 PyObject * obj0 = 0 ;
17097 char *kwnames[] = {
17098 (char *) "self", NULL
17099 };
17100
17101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
17102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17104 {
17105 PyThreadState* __tstate = wxPyBeginAllowThreads();
17106 result = (arg1)->GetToolSize();
17107
17108 wxPyEndAllowThreads(__tstate);
17109 if (PyErr_Occurred()) SWIG_fail;
17110 }
17111 {
17112 wxSize * resultptr;
17113 resultptr = new wxSize((wxSize &) result);
17114 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17115 }
17116 return resultobj;
17117 fail:
17118 return NULL;
17119 }
17120
17121
17122 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
17123 PyObject *resultobj;
17124 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17125 int arg2 ;
17126 int arg3 ;
17127 wxToolBarToolBase *result;
17128 PyObject * obj0 = 0 ;
17129 PyObject * obj1 = 0 ;
17130 PyObject * obj2 = 0 ;
17131 char *kwnames[] = {
17132 (char *) "self",(char *) "x",(char *) "y", NULL
17133 };
17134
17135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17138 arg2 = (int) SWIG_AsInt(obj1);
17139 if (PyErr_Occurred()) SWIG_fail;
17140 arg3 = (int) SWIG_AsInt(obj2);
17141 if (PyErr_Occurred()) SWIG_fail;
17142 {
17143 PyThreadState* __tstate = wxPyBeginAllowThreads();
17144 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17145
17146 wxPyEndAllowThreads(__tstate);
17147 if (PyErr_Occurred()) SWIG_fail;
17148 }
17149 {
17150 resultobj = wxPyMake_wxObject(result);
17151 }
17152 return resultobj;
17153 fail:
17154 return NULL;
17155 }
17156
17157
17158 static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) {
17159 PyObject *resultobj;
17160 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17161 int arg2 ;
17162 wxToolBarToolBase *result;
17163 PyObject * obj0 = 0 ;
17164 PyObject * obj1 = 0 ;
17165 char *kwnames[] = {
17166 (char *) "self",(char *) "toolid", NULL
17167 };
17168
17169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
17170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17172 arg2 = (int) SWIG_AsInt(obj1);
17173 if (PyErr_Occurred()) SWIG_fail;
17174 {
17175 PyThreadState* __tstate = wxPyBeginAllowThreads();
17176 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
17177
17178 wxPyEndAllowThreads(__tstate);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 {
17182 resultobj = wxPyMake_wxObject(result);
17183 }
17184 return resultobj;
17185 fail:
17186 return NULL;
17187 }
17188
17189
17190 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
17191 PyObject *resultobj;
17192 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17193 bool result;
17194 PyObject * obj0 = 0 ;
17195 char *kwnames[] = {
17196 (char *) "self", NULL
17197 };
17198
17199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
17200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17202 {
17203 PyThreadState* __tstate = wxPyBeginAllowThreads();
17204 result = (bool)(arg1)->IsVertical();
17205
17206 wxPyEndAllowThreads(__tstate);
17207 if (PyErr_Occurred()) SWIG_fail;
17208 }
17209 {
17210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17211 }
17212 return resultobj;
17213 fail:
17214 return NULL;
17215 }
17216
17217
17218 static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) {
17219 PyObject *obj;
17220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17221 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
17222 Py_INCREF(obj);
17223 return Py_BuildValue((char *)"");
17224 }
17225 static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
17226 PyObject *resultobj;
17227 wxWindow *arg1 = (wxWindow *) 0 ;
17228 int arg2 ;
17229 wxPoint const &arg3_defvalue = wxDefaultPosition ;
17230 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
17231 wxSize const &arg4_defvalue = wxDefaultSize ;
17232 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
17233 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17234 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
17235 wxString *arg6 = (wxString *) &arg6_defvalue ;
17236 wxToolBar *result;
17237 wxPoint temp3 ;
17238 wxSize temp4 ;
17239 bool temp6 = False ;
17240 PyObject * obj0 = 0 ;
17241 PyObject * obj1 = 0 ;
17242 PyObject * obj2 = 0 ;
17243 PyObject * obj3 = 0 ;
17244 PyObject * obj4 = 0 ;
17245 PyObject * obj5 = 0 ;
17246 char *kwnames[] = {
17247 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17248 };
17249
17250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
17252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17253 arg2 = (int) SWIG_AsInt(obj1);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 if (obj2) {
17256 {
17257 arg3 = &temp3;
17258 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17259 }
17260 }
17261 if (obj3) {
17262 {
17263 arg4 = &temp4;
17264 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
17265 }
17266 }
17267 if (obj4) {
17268 arg5 = (long) SWIG_AsLong(obj4);
17269 if (PyErr_Occurred()) SWIG_fail;
17270 }
17271 if (obj5) {
17272 {
17273 arg6 = wxString_in_helper(obj5);
17274 if (arg6 == NULL) SWIG_fail;
17275 temp6 = True;
17276 }
17277 }
17278 {
17279 PyThreadState* __tstate = wxPyBeginAllowThreads();
17280 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
17281
17282 wxPyEndAllowThreads(__tstate);
17283 if (PyErr_Occurred()) SWIG_fail;
17284 }
17285 {
17286 resultobj = wxPyMake_wxObject(result);
17287 }
17288 {
17289 if (temp6)
17290 delete arg6;
17291 }
17292 return resultobj;
17293 fail:
17294 {
17295 if (temp6)
17296 delete arg6;
17297 }
17298 return NULL;
17299 }
17300
17301
17302 static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
17303 PyObject *resultobj;
17304 wxToolBar *result;
17305 char *kwnames[] = {
17306 NULL
17307 };
17308
17309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
17310 {
17311 PyThreadState* __tstate = wxPyBeginAllowThreads();
17312 result = (wxToolBar *)new wxToolBar();
17313
17314 wxPyEndAllowThreads(__tstate);
17315 if (PyErr_Occurred()) SWIG_fail;
17316 }
17317 {
17318 resultobj = wxPyMake_wxObject(result);
17319 }
17320 return resultobj;
17321 fail:
17322 return NULL;
17323 }
17324
17325
17326 static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
17327 PyObject *resultobj;
17328 wxToolBar *arg1 = (wxToolBar *) 0 ;
17329 wxWindow *arg2 = (wxWindow *) 0 ;
17330 int arg3 ;
17331 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17332 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17333 wxSize const &arg5_defvalue = wxDefaultSize ;
17334 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17335 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17336 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
17337 wxString *arg7 = (wxString *) &arg7_defvalue ;
17338 bool result;
17339 wxPoint temp4 ;
17340 wxSize temp5 ;
17341 bool temp7 = False ;
17342 PyObject * obj0 = 0 ;
17343 PyObject * obj1 = 0 ;
17344 PyObject * obj2 = 0 ;
17345 PyObject * obj3 = 0 ;
17346 PyObject * obj4 = 0 ;
17347 PyObject * obj5 = 0 ;
17348 PyObject * obj6 = 0 ;
17349 char *kwnames[] = {
17350 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17351 };
17352
17353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
17355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
17357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17358 arg3 = (int) SWIG_AsInt(obj2);
17359 if (PyErr_Occurred()) SWIG_fail;
17360 if (obj3) {
17361 {
17362 arg4 = &temp4;
17363 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17364 }
17365 }
17366 if (obj4) {
17367 {
17368 arg5 = &temp5;
17369 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17370 }
17371 }
17372 if (obj5) {
17373 arg6 = (long) SWIG_AsLong(obj5);
17374 if (PyErr_Occurred()) SWIG_fail;
17375 }
17376 if (obj6) {
17377 {
17378 arg7 = wxString_in_helper(obj6);
17379 if (arg7 == NULL) SWIG_fail;
17380 temp7 = True;
17381 }
17382 }
17383 {
17384 PyThreadState* __tstate = wxPyBeginAllowThreads();
17385 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
17386
17387 wxPyEndAllowThreads(__tstate);
17388 if (PyErr_Occurred()) SWIG_fail;
17389 }
17390 {
17391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17392 }
17393 {
17394 if (temp7)
17395 delete arg7;
17396 }
17397 return resultobj;
17398 fail:
17399 {
17400 if (temp7)
17401 delete arg7;
17402 }
17403 return NULL;
17404 }
17405
17406
17407 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
17408 PyObject *resultobj;
17409 wxToolBar *arg1 = (wxToolBar *) 0 ;
17410 int arg2 ;
17411 int arg3 ;
17412 wxToolBarToolBase *result;
17413 PyObject * obj0 = 0 ;
17414 PyObject * obj1 = 0 ;
17415 PyObject * obj2 = 0 ;
17416 char *kwnames[] = {
17417 (char *) "self",(char *) "x",(char *) "y", NULL
17418 };
17419
17420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
17422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17423 arg2 = (int) SWIG_AsInt(obj1);
17424 if (PyErr_Occurred()) SWIG_fail;
17425 arg3 = (int) SWIG_AsInt(obj2);
17426 if (PyErr_Occurred()) SWIG_fail;
17427 {
17428 PyThreadState* __tstate = wxPyBeginAllowThreads();
17429 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17430
17431 wxPyEndAllowThreads(__tstate);
17432 if (PyErr_Occurred()) SWIG_fail;
17433 }
17434 {
17435 resultobj = wxPyMake_wxObject(result);
17436 }
17437 return resultobj;
17438 fail:
17439 return NULL;
17440 }
17441
17442
17443 static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) {
17444 PyObject *obj;
17445 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17446 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
17447 Py_INCREF(obj);
17448 return Py_BuildValue((char *)"");
17449 }
17450 static int _wrap_ListCtrlNameStr_set(PyObject *) {
17451 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
17452 return 1;
17453 }
17454
17455
17456 static PyObject *_wrap_ListCtrlNameStr_get() {
17457 PyObject *pyobj;
17458
17459 {
17460 #if wxUSE_UNICODE
17461 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17462 #else
17463 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17464 #endif
17465 }
17466 return pyobj;
17467 }
17468
17469
17470 static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) {
17471 PyObject *resultobj;
17472 wxColour const &arg1_defvalue = wxNullColour ;
17473 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
17474 wxColour const &arg2_defvalue = wxNullColour ;
17475 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
17476 wxFont const &arg3_defvalue = wxNullFont ;
17477 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
17478 wxListItemAttr *result;
17479 wxColour temp1 ;
17480 wxColour temp2 ;
17481 PyObject * obj0 = 0 ;
17482 PyObject * obj1 = 0 ;
17483 PyObject * obj2 = 0 ;
17484 char *kwnames[] = {
17485 (char *) "colText",(char *) "colBack",(char *) "font", NULL
17486 };
17487
17488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
17489 if (obj0) {
17490 {
17491 arg1 = &temp1;
17492 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
17493 }
17494 }
17495 if (obj1) {
17496 {
17497 arg2 = &temp2;
17498 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17499 }
17500 }
17501 if (obj2) {
17502 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
17503 SWIG_POINTER_EXCEPTION | 0)) == -1)
17504 SWIG_fail;
17505 if (arg3 == NULL) {
17506 PyErr_SetString(PyExc_TypeError,"null reference");
17507 SWIG_fail;
17508 }
17509 }
17510 {
17511 PyThreadState* __tstate = wxPyBeginAllowThreads();
17512 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
17513
17514 wxPyEndAllowThreads(__tstate);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
17518 return resultobj;
17519 fail:
17520 return NULL;
17521 }
17522
17523
17524 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
17525 PyObject *resultobj;
17526 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17527 wxColour *arg2 = 0 ;
17528 wxColour temp2 ;
17529 PyObject * obj0 = 0 ;
17530 PyObject * obj1 = 0 ;
17531 char *kwnames[] = {
17532 (char *) "self",(char *) "colText", NULL
17533 };
17534
17535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
17536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17538 {
17539 arg2 = &temp2;
17540 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17541 }
17542 {
17543 PyThreadState* __tstate = wxPyBeginAllowThreads();
17544 (arg1)->SetTextColour((wxColour const &)*arg2);
17545
17546 wxPyEndAllowThreads(__tstate);
17547 if (PyErr_Occurred()) SWIG_fail;
17548 }
17549 Py_INCREF(Py_None); resultobj = Py_None;
17550 return resultobj;
17551 fail:
17552 return NULL;
17553 }
17554
17555
17556 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
17557 PyObject *resultobj;
17558 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17559 wxColour *arg2 = 0 ;
17560 wxColour temp2 ;
17561 PyObject * obj0 = 0 ;
17562 PyObject * obj1 = 0 ;
17563 char *kwnames[] = {
17564 (char *) "self",(char *) "colBack", NULL
17565 };
17566
17567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
17568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17570 {
17571 arg2 = &temp2;
17572 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17573 }
17574 {
17575 PyThreadState* __tstate = wxPyBeginAllowThreads();
17576 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
17577
17578 wxPyEndAllowThreads(__tstate);
17579 if (PyErr_Occurred()) SWIG_fail;
17580 }
17581 Py_INCREF(Py_None); resultobj = Py_None;
17582 return resultobj;
17583 fail:
17584 return NULL;
17585 }
17586
17587
17588 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
17589 PyObject *resultobj;
17590 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17591 wxFont *arg2 = 0 ;
17592 PyObject * obj0 = 0 ;
17593 PyObject * obj1 = 0 ;
17594 char *kwnames[] = {
17595 (char *) "self",(char *) "font", NULL
17596 };
17597
17598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
17599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17602 SWIG_POINTER_EXCEPTION | 0)) == -1)
17603 SWIG_fail;
17604 if (arg2 == NULL) {
17605 PyErr_SetString(PyExc_TypeError,"null reference");
17606 SWIG_fail;
17607 }
17608 {
17609 PyThreadState* __tstate = wxPyBeginAllowThreads();
17610 (arg1)->SetFont((wxFont const &)*arg2);
17611
17612 wxPyEndAllowThreads(__tstate);
17613 if (PyErr_Occurred()) SWIG_fail;
17614 }
17615 Py_INCREF(Py_None); resultobj = Py_None;
17616 return resultobj;
17617 fail:
17618 return NULL;
17619 }
17620
17621
17622 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
17623 PyObject *resultobj;
17624 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17625 bool result;
17626 PyObject * obj0 = 0 ;
17627 char *kwnames[] = {
17628 (char *) "self", NULL
17629 };
17630
17631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
17632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17634 {
17635 PyThreadState* __tstate = wxPyBeginAllowThreads();
17636 result = (bool)(arg1)->HasTextColour();
17637
17638 wxPyEndAllowThreads(__tstate);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 }
17641 {
17642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17643 }
17644 return resultobj;
17645 fail:
17646 return NULL;
17647 }
17648
17649
17650 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
17651 PyObject *resultobj;
17652 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17653 bool result;
17654 PyObject * obj0 = 0 ;
17655 char *kwnames[] = {
17656 (char *) "self", NULL
17657 };
17658
17659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
17660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17662 {
17663 PyThreadState* __tstate = wxPyBeginAllowThreads();
17664 result = (bool)(arg1)->HasBackgroundColour();
17665
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 {
17670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17671 }
17672 return resultobj;
17673 fail:
17674 return NULL;
17675 }
17676
17677
17678 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
17679 PyObject *resultobj;
17680 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17681 bool result;
17682 PyObject * obj0 = 0 ;
17683 char *kwnames[] = {
17684 (char *) "self", NULL
17685 };
17686
17687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
17688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17690 {
17691 PyThreadState* __tstate = wxPyBeginAllowThreads();
17692 result = (bool)(arg1)->HasFont();
17693
17694 wxPyEndAllowThreads(__tstate);
17695 if (PyErr_Occurred()) SWIG_fail;
17696 }
17697 {
17698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17699 }
17700 return resultobj;
17701 fail:
17702 return NULL;
17703 }
17704
17705
17706 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
17707 PyObject *resultobj;
17708 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17709 wxColour result;
17710 PyObject * obj0 = 0 ;
17711 char *kwnames[] = {
17712 (char *) "self", NULL
17713 };
17714
17715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
17716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17718 {
17719 PyThreadState* __tstate = wxPyBeginAllowThreads();
17720 result = (arg1)->GetTextColour();
17721
17722 wxPyEndAllowThreads(__tstate);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
17725 {
17726 wxColour * resultptr;
17727 resultptr = new wxColour((wxColour &) result);
17728 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17729 }
17730 return resultobj;
17731 fail:
17732 return NULL;
17733 }
17734
17735
17736 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
17737 PyObject *resultobj;
17738 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17739 wxColour result;
17740 PyObject * obj0 = 0 ;
17741 char *kwnames[] = {
17742 (char *) "self", NULL
17743 };
17744
17745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
17746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17748 {
17749 PyThreadState* __tstate = wxPyBeginAllowThreads();
17750 result = (arg1)->GetBackgroundColour();
17751
17752 wxPyEndAllowThreads(__tstate);
17753 if (PyErr_Occurred()) SWIG_fail;
17754 }
17755 {
17756 wxColour * resultptr;
17757 resultptr = new wxColour((wxColour &) result);
17758 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17759 }
17760 return resultobj;
17761 fail:
17762 return NULL;
17763 }
17764
17765
17766 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
17767 PyObject *resultobj;
17768 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17769 wxFont result;
17770 PyObject * obj0 = 0 ;
17771 char *kwnames[] = {
17772 (char *) "self", NULL
17773 };
17774
17775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
17776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17778 {
17779 PyThreadState* __tstate = wxPyBeginAllowThreads();
17780 result = (arg1)->GetFont();
17781
17782 wxPyEndAllowThreads(__tstate);
17783 if (PyErr_Occurred()) SWIG_fail;
17784 }
17785 {
17786 wxFont * resultptr;
17787 resultptr = new wxFont((wxFont &) result);
17788 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
17789 }
17790 return resultobj;
17791 fail:
17792 return NULL;
17793 }
17794
17795
17796 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
17797 PyObject *resultobj;
17798 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17799 PyObject * obj0 = 0 ;
17800 char *kwnames[] = {
17801 (char *) "self", NULL
17802 };
17803
17804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
17805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17807 {
17808 PyThreadState* __tstate = wxPyBeginAllowThreads();
17809 wxListItemAttr_Destroy(arg1);
17810
17811 wxPyEndAllowThreads(__tstate);
17812 if (PyErr_Occurred()) SWIG_fail;
17813 }
17814 Py_INCREF(Py_None); resultobj = Py_None;
17815 return resultobj;
17816 fail:
17817 return NULL;
17818 }
17819
17820
17821 static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) {
17822 PyObject *obj;
17823 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17824 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
17825 Py_INCREF(obj);
17826 return Py_BuildValue((char *)"");
17827 }
17828 static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
17829 PyObject *resultobj;
17830 wxListItem *result;
17831 char *kwnames[] = {
17832 NULL
17833 };
17834
17835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
17836 {
17837 PyThreadState* __tstate = wxPyBeginAllowThreads();
17838 result = (wxListItem *)new wxListItem();
17839
17840 wxPyEndAllowThreads(__tstate);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 }
17843 {
17844 resultobj = wxPyMake_wxObject(result);
17845 }
17846 return resultobj;
17847 fail:
17848 return NULL;
17849 }
17850
17851
17852 static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
17853 PyObject *resultobj;
17854 wxListItem *arg1 = (wxListItem *) 0 ;
17855 PyObject * obj0 = 0 ;
17856 char *kwnames[] = {
17857 (char *) "self", NULL
17858 };
17859
17860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
17861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
17862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17863 {
17864 PyThreadState* __tstate = wxPyBeginAllowThreads();
17865 delete arg1;
17866
17867 wxPyEndAllowThreads(__tstate);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 }
17870 Py_INCREF(Py_None); resultobj = Py_None;
17871 return resultobj;
17872 fail:
17873 return NULL;
17874 }
17875
17876
17877 static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
17878 PyObject *resultobj;
17879 wxListItem *arg1 = (wxListItem *) 0 ;
17880 PyObject * obj0 = 0 ;
17881 char *kwnames[] = {
17882 (char *) "self", NULL
17883 };
17884
17885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
17886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
17887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17888 {
17889 PyThreadState* __tstate = wxPyBeginAllowThreads();
17890 (arg1)->Clear();
17891
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 Py_INCREF(Py_None); resultobj = Py_None;
17896 return resultobj;
17897 fail:
17898 return NULL;
17899 }
17900
17901
17902 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
17903 PyObject *resultobj;
17904 wxListItem *arg1 = (wxListItem *) 0 ;
17905 PyObject * obj0 = 0 ;
17906 char *kwnames[] = {
17907 (char *) "self", NULL
17908 };
17909
17910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
17911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
17912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17913 {
17914 PyThreadState* __tstate = wxPyBeginAllowThreads();
17915 (arg1)->ClearAttributes();
17916
17917 wxPyEndAllowThreads(__tstate);
17918 if (PyErr_Occurred()) SWIG_fail;
17919 }
17920 Py_INCREF(Py_None); resultobj = Py_None;
17921 return resultobj;
17922 fail:
17923 return NULL;
17924 }
17925
17926
17927 static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
17928 PyObject *resultobj;
17929 wxListItem *arg1 = (wxListItem *) 0 ;
17930 long arg2 ;
17931 PyObject * obj0 = 0 ;
17932 PyObject * obj1 = 0 ;
17933 char *kwnames[] = {
17934 (char *) "self",(char *) "mask", NULL
17935 };
17936
17937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
17938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
17939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17940 arg2 = (long) SWIG_AsLong(obj1);
17941 if (PyErr_Occurred()) SWIG_fail;
17942 {
17943 PyThreadState* __tstate = wxPyBeginAllowThreads();
17944 (arg1)->SetMask(arg2);
17945
17946 wxPyEndAllowThreads(__tstate);
17947 if (PyErr_Occurred()) SWIG_fail;
17948 }
17949 Py_INCREF(Py_None); resultobj = Py_None;
17950 return resultobj;
17951 fail:
17952 return NULL;
17953 }
17954
17955
17956 static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
17957 PyObject *resultobj;
17958 wxListItem *arg1 = (wxListItem *) 0 ;
17959 long arg2 ;
17960 PyObject * obj0 = 0 ;
17961 PyObject * obj1 = 0 ;
17962 char *kwnames[] = {
17963 (char *) "self",(char *) "id", NULL
17964 };
17965
17966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
17967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
17968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17969 arg2 = (long) SWIG_AsLong(obj1);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 {
17972 PyThreadState* __tstate = wxPyBeginAllowThreads();
17973 (arg1)->SetId(arg2);
17974
17975 wxPyEndAllowThreads(__tstate);
17976 if (PyErr_Occurred()) SWIG_fail;
17977 }
17978 Py_INCREF(Py_None); resultobj = Py_None;
17979 return resultobj;
17980 fail:
17981 return NULL;
17982 }
17983
17984
17985 static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
17986 PyObject *resultobj;
17987 wxListItem *arg1 = (wxListItem *) 0 ;
17988 int arg2 ;
17989 PyObject * obj0 = 0 ;
17990 PyObject * obj1 = 0 ;
17991 char *kwnames[] = {
17992 (char *) "self",(char *) "col", NULL
17993 };
17994
17995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
17996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
17997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17998 arg2 = (int) SWIG_AsInt(obj1);
17999 if (PyErr_Occurred()) SWIG_fail;
18000 {
18001 PyThreadState* __tstate = wxPyBeginAllowThreads();
18002 (arg1)->SetColumn(arg2);
18003
18004 wxPyEndAllowThreads(__tstate);
18005 if (PyErr_Occurred()) SWIG_fail;
18006 }
18007 Py_INCREF(Py_None); resultobj = Py_None;
18008 return resultobj;
18009 fail:
18010 return NULL;
18011 }
18012
18013
18014 static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
18015 PyObject *resultobj;
18016 wxListItem *arg1 = (wxListItem *) 0 ;
18017 long arg2 ;
18018 PyObject * obj0 = 0 ;
18019 PyObject * obj1 = 0 ;
18020 char *kwnames[] = {
18021 (char *) "self",(char *) "state", NULL
18022 };
18023
18024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
18025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18027 arg2 = (long) SWIG_AsLong(obj1);
18028 if (PyErr_Occurred()) SWIG_fail;
18029 {
18030 PyThreadState* __tstate = wxPyBeginAllowThreads();
18031 (arg1)->SetState(arg2);
18032
18033 wxPyEndAllowThreads(__tstate);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 }
18036 Py_INCREF(Py_None); resultobj = Py_None;
18037 return resultobj;
18038 fail:
18039 return NULL;
18040 }
18041
18042
18043 static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) {
18044 PyObject *resultobj;
18045 wxListItem *arg1 = (wxListItem *) 0 ;
18046 long arg2 ;
18047 PyObject * obj0 = 0 ;
18048 PyObject * obj1 = 0 ;
18049 char *kwnames[] = {
18050 (char *) "self",(char *) "stateMask", NULL
18051 };
18052
18053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
18054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18056 arg2 = (long) SWIG_AsLong(obj1);
18057 if (PyErr_Occurred()) SWIG_fail;
18058 {
18059 PyThreadState* __tstate = wxPyBeginAllowThreads();
18060 (arg1)->SetStateMask(arg2);
18061
18062 wxPyEndAllowThreads(__tstate);
18063 if (PyErr_Occurred()) SWIG_fail;
18064 }
18065 Py_INCREF(Py_None); resultobj = Py_None;
18066 return resultobj;
18067 fail:
18068 return NULL;
18069 }
18070
18071
18072 static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
18073 PyObject *resultobj;
18074 wxListItem *arg1 = (wxListItem *) 0 ;
18075 wxString *arg2 = 0 ;
18076 bool temp2 = False ;
18077 PyObject * obj0 = 0 ;
18078 PyObject * obj1 = 0 ;
18079 char *kwnames[] = {
18080 (char *) "self",(char *) "text", NULL
18081 };
18082
18083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
18084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18086 {
18087 arg2 = wxString_in_helper(obj1);
18088 if (arg2 == NULL) SWIG_fail;
18089 temp2 = True;
18090 }
18091 {
18092 PyThreadState* __tstate = wxPyBeginAllowThreads();
18093 (arg1)->SetText((wxString const &)*arg2);
18094
18095 wxPyEndAllowThreads(__tstate);
18096 if (PyErr_Occurred()) SWIG_fail;
18097 }
18098 Py_INCREF(Py_None); resultobj = Py_None;
18099 {
18100 if (temp2)
18101 delete arg2;
18102 }
18103 return resultobj;
18104 fail:
18105 {
18106 if (temp2)
18107 delete arg2;
18108 }
18109 return NULL;
18110 }
18111
18112
18113 static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) {
18114 PyObject *resultobj;
18115 wxListItem *arg1 = (wxListItem *) 0 ;
18116 int arg2 ;
18117 PyObject * obj0 = 0 ;
18118 PyObject * obj1 = 0 ;
18119 char *kwnames[] = {
18120 (char *) "self",(char *) "image", NULL
18121 };
18122
18123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
18124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18126 arg2 = (int) SWIG_AsInt(obj1);
18127 if (PyErr_Occurred()) SWIG_fail;
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 (arg1)->SetImage(arg2);
18131
18132 wxPyEndAllowThreads(__tstate);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 }
18135 Py_INCREF(Py_None); resultobj = Py_None;
18136 return resultobj;
18137 fail:
18138 return NULL;
18139 }
18140
18141
18142 static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
18143 PyObject *resultobj;
18144 wxListItem *arg1 = (wxListItem *) 0 ;
18145 long arg2 ;
18146 PyObject * obj0 = 0 ;
18147 PyObject * obj1 = 0 ;
18148 char *kwnames[] = {
18149 (char *) "self",(char *) "data", NULL
18150 };
18151
18152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
18153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18155 arg2 = (long) SWIG_AsLong(obj1);
18156 if (PyErr_Occurred()) SWIG_fail;
18157 {
18158 PyThreadState* __tstate = wxPyBeginAllowThreads();
18159 (arg1)->SetData(arg2);
18160
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 Py_INCREF(Py_None); resultobj = Py_None;
18165 return resultobj;
18166 fail:
18167 return NULL;
18168 }
18169
18170
18171 static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
18172 PyObject *resultobj;
18173 wxListItem *arg1 = (wxListItem *) 0 ;
18174 int arg2 ;
18175 PyObject * obj0 = 0 ;
18176 PyObject * obj1 = 0 ;
18177 char *kwnames[] = {
18178 (char *) "self",(char *) "width", NULL
18179 };
18180
18181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
18182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18184 arg2 = (int) SWIG_AsInt(obj1);
18185 if (PyErr_Occurred()) SWIG_fail;
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 (arg1)->SetWidth(arg2);
18189
18190 wxPyEndAllowThreads(__tstate);
18191 if (PyErr_Occurred()) SWIG_fail;
18192 }
18193 Py_INCREF(Py_None); resultobj = Py_None;
18194 return resultobj;
18195 fail:
18196 return NULL;
18197 }
18198
18199
18200 static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
18201 PyObject *resultobj;
18202 wxListItem *arg1 = (wxListItem *) 0 ;
18203 int arg2 ;
18204 PyObject * obj0 = 0 ;
18205 PyObject * obj1 = 0 ;
18206 char *kwnames[] = {
18207 (char *) "self",(char *) "align", NULL
18208 };
18209
18210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
18211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18213 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
18214 if (PyErr_Occurred()) SWIG_fail;
18215 {
18216 PyThreadState* __tstate = wxPyBeginAllowThreads();
18217 (arg1)->SetAlign((wxListColumnFormat )arg2);
18218
18219 wxPyEndAllowThreads(__tstate);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 }
18222 Py_INCREF(Py_None); resultobj = Py_None;
18223 return resultobj;
18224 fail:
18225 return NULL;
18226 }
18227
18228
18229 static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
18230 PyObject *resultobj;
18231 wxListItem *arg1 = (wxListItem *) 0 ;
18232 wxColour *arg2 = 0 ;
18233 wxColour temp2 ;
18234 PyObject * obj0 = 0 ;
18235 PyObject * obj1 = 0 ;
18236 char *kwnames[] = {
18237 (char *) "self",(char *) "colText", NULL
18238 };
18239
18240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18243 {
18244 arg2 = &temp2;
18245 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18246 }
18247 {
18248 PyThreadState* __tstate = wxPyBeginAllowThreads();
18249 (arg1)->SetTextColour((wxColour const &)*arg2);
18250
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 Py_INCREF(Py_None); resultobj = Py_None;
18255 return resultobj;
18256 fail:
18257 return NULL;
18258 }
18259
18260
18261 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
18262 PyObject *resultobj;
18263 wxListItem *arg1 = (wxListItem *) 0 ;
18264 wxColour *arg2 = 0 ;
18265 wxColour temp2 ;
18266 PyObject * obj0 = 0 ;
18267 PyObject * obj1 = 0 ;
18268 char *kwnames[] = {
18269 (char *) "self",(char *) "colBack", NULL
18270 };
18271
18272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18275 {
18276 arg2 = &temp2;
18277 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18278 }
18279 {
18280 PyThreadState* __tstate = wxPyBeginAllowThreads();
18281 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18282
18283 wxPyEndAllowThreads(__tstate);
18284 if (PyErr_Occurred()) SWIG_fail;
18285 }
18286 Py_INCREF(Py_None); resultobj = Py_None;
18287 return resultobj;
18288 fail:
18289 return NULL;
18290 }
18291
18292
18293 static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
18294 PyObject *resultobj;
18295 wxListItem *arg1 = (wxListItem *) 0 ;
18296 wxFont *arg2 = 0 ;
18297 PyObject * obj0 = 0 ;
18298 PyObject * obj1 = 0 ;
18299 char *kwnames[] = {
18300 (char *) "self",(char *) "font", NULL
18301 };
18302
18303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
18304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18307 SWIG_POINTER_EXCEPTION | 0)) == -1)
18308 SWIG_fail;
18309 if (arg2 == NULL) {
18310 PyErr_SetString(PyExc_TypeError,"null reference");
18311 SWIG_fail;
18312 }
18313 {
18314 PyThreadState* __tstate = wxPyBeginAllowThreads();
18315 (arg1)->SetFont((wxFont const &)*arg2);
18316
18317 wxPyEndAllowThreads(__tstate);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 }
18320 Py_INCREF(Py_None); resultobj = Py_None;
18321 return resultobj;
18322 fail:
18323 return NULL;
18324 }
18325
18326
18327 static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
18328 PyObject *resultobj;
18329 wxListItem *arg1 = (wxListItem *) 0 ;
18330 long result;
18331 PyObject * obj0 = 0 ;
18332 char *kwnames[] = {
18333 (char *) "self", NULL
18334 };
18335
18336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
18337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 result = (long)(arg1)->GetMask();
18342
18343 wxPyEndAllowThreads(__tstate);
18344 if (PyErr_Occurred()) SWIG_fail;
18345 }
18346 resultobj = SWIG_FromLong((long)result);
18347 return resultobj;
18348 fail:
18349 return NULL;
18350 }
18351
18352
18353 static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
18354 PyObject *resultobj;
18355 wxListItem *arg1 = (wxListItem *) 0 ;
18356 long result;
18357 PyObject * obj0 = 0 ;
18358 char *kwnames[] = {
18359 (char *) "self", NULL
18360 };
18361
18362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
18363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18365 {
18366 PyThreadState* __tstate = wxPyBeginAllowThreads();
18367 result = (long)(arg1)->GetId();
18368
18369 wxPyEndAllowThreads(__tstate);
18370 if (PyErr_Occurred()) SWIG_fail;
18371 }
18372 resultobj = SWIG_FromLong((long)result);
18373 return resultobj;
18374 fail:
18375 return NULL;
18376 }
18377
18378
18379 static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
18380 PyObject *resultobj;
18381 wxListItem *arg1 = (wxListItem *) 0 ;
18382 int result;
18383 PyObject * obj0 = 0 ;
18384 char *kwnames[] = {
18385 (char *) "self", NULL
18386 };
18387
18388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
18389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18391 {
18392 PyThreadState* __tstate = wxPyBeginAllowThreads();
18393 result = (int)(arg1)->GetColumn();
18394
18395 wxPyEndAllowThreads(__tstate);
18396 if (PyErr_Occurred()) SWIG_fail;
18397 }
18398 resultobj = SWIG_FromInt((int)result);
18399 return resultobj;
18400 fail:
18401 return NULL;
18402 }
18403
18404
18405 static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
18406 PyObject *resultobj;
18407 wxListItem *arg1 = (wxListItem *) 0 ;
18408 long result;
18409 PyObject * obj0 = 0 ;
18410 char *kwnames[] = {
18411 (char *) "self", NULL
18412 };
18413
18414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
18415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18417 {
18418 PyThreadState* __tstate = wxPyBeginAllowThreads();
18419 result = (long)(arg1)->GetState();
18420
18421 wxPyEndAllowThreads(__tstate);
18422 if (PyErr_Occurred()) SWIG_fail;
18423 }
18424 resultobj = SWIG_FromLong((long)result);
18425 return resultobj;
18426 fail:
18427 return NULL;
18428 }
18429
18430
18431 static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
18432 PyObject *resultobj;
18433 wxListItem *arg1 = (wxListItem *) 0 ;
18434 wxString *result;
18435 PyObject * obj0 = 0 ;
18436 char *kwnames[] = {
18437 (char *) "self", NULL
18438 };
18439
18440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
18441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18443 {
18444 PyThreadState* __tstate = wxPyBeginAllowThreads();
18445 {
18446 wxString const &_result_ref = (arg1)->GetText();
18447 result = (wxString *) &_result_ref;
18448 }
18449
18450 wxPyEndAllowThreads(__tstate);
18451 if (PyErr_Occurred()) SWIG_fail;
18452 }
18453 {
18454 #if wxUSE_UNICODE
18455 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18456 #else
18457 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18458 #endif
18459 }
18460 return resultobj;
18461 fail:
18462 return NULL;
18463 }
18464
18465
18466 static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
18467 PyObject *resultobj;
18468 wxListItem *arg1 = (wxListItem *) 0 ;
18469 int result;
18470 PyObject * obj0 = 0 ;
18471 char *kwnames[] = {
18472 (char *) "self", NULL
18473 };
18474
18475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
18476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18478 {
18479 PyThreadState* __tstate = wxPyBeginAllowThreads();
18480 result = (int)(arg1)->GetImage();
18481
18482 wxPyEndAllowThreads(__tstate);
18483 if (PyErr_Occurred()) SWIG_fail;
18484 }
18485 resultobj = SWIG_FromInt((int)result);
18486 return resultobj;
18487 fail:
18488 return NULL;
18489 }
18490
18491
18492 static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
18493 PyObject *resultobj;
18494 wxListItem *arg1 = (wxListItem *) 0 ;
18495 long result;
18496 PyObject * obj0 = 0 ;
18497 char *kwnames[] = {
18498 (char *) "self", NULL
18499 };
18500
18501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
18502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 result = (long)(arg1)->GetData();
18507
18508 wxPyEndAllowThreads(__tstate);
18509 if (PyErr_Occurred()) SWIG_fail;
18510 }
18511 resultobj = SWIG_FromLong((long)result);
18512 return resultobj;
18513 fail:
18514 return NULL;
18515 }
18516
18517
18518 static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
18519 PyObject *resultobj;
18520 wxListItem *arg1 = (wxListItem *) 0 ;
18521 int result;
18522 PyObject * obj0 = 0 ;
18523 char *kwnames[] = {
18524 (char *) "self", NULL
18525 };
18526
18527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
18528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18530 {
18531 PyThreadState* __tstate = wxPyBeginAllowThreads();
18532 result = (int)(arg1)->GetWidth();
18533
18534 wxPyEndAllowThreads(__tstate);
18535 if (PyErr_Occurred()) SWIG_fail;
18536 }
18537 resultobj = SWIG_FromInt((int)result);
18538 return resultobj;
18539 fail:
18540 return NULL;
18541 }
18542
18543
18544 static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
18545 PyObject *resultobj;
18546 wxListItem *arg1 = (wxListItem *) 0 ;
18547 int result;
18548 PyObject * obj0 = 0 ;
18549 char *kwnames[] = {
18550 (char *) "self", NULL
18551 };
18552
18553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
18554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18556 {
18557 PyThreadState* __tstate = wxPyBeginAllowThreads();
18558 result = (int)(arg1)->GetAlign();
18559
18560 wxPyEndAllowThreads(__tstate);
18561 if (PyErr_Occurred()) SWIG_fail;
18562 }
18563 resultobj = SWIG_FromInt((int)result);
18564 return resultobj;
18565 fail:
18566 return NULL;
18567 }
18568
18569
18570 static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
18571 PyObject *resultobj;
18572 wxListItem *arg1 = (wxListItem *) 0 ;
18573 wxListItemAttr *result;
18574 PyObject * obj0 = 0 ;
18575 char *kwnames[] = {
18576 (char *) "self", NULL
18577 };
18578
18579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
18580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18582 {
18583 PyThreadState* __tstate = wxPyBeginAllowThreads();
18584 result = (wxListItemAttr *)(arg1)->GetAttributes();
18585
18586 wxPyEndAllowThreads(__tstate);
18587 if (PyErr_Occurred()) SWIG_fail;
18588 }
18589 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
18590 return resultobj;
18591 fail:
18592 return NULL;
18593 }
18594
18595
18596 static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
18597 PyObject *resultobj;
18598 wxListItem *arg1 = (wxListItem *) 0 ;
18599 bool result;
18600 PyObject * obj0 = 0 ;
18601 char *kwnames[] = {
18602 (char *) "self", NULL
18603 };
18604
18605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
18606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18608 {
18609 PyThreadState* __tstate = wxPyBeginAllowThreads();
18610 result = (bool)(arg1)->HasAttributes();
18611
18612 wxPyEndAllowThreads(__tstate);
18613 if (PyErr_Occurred()) SWIG_fail;
18614 }
18615 {
18616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18617 }
18618 return resultobj;
18619 fail:
18620 return NULL;
18621 }
18622
18623
18624 static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
18625 PyObject *resultobj;
18626 wxListItem *arg1 = (wxListItem *) 0 ;
18627 wxColour result;
18628 PyObject * obj0 = 0 ;
18629 char *kwnames[] = {
18630 (char *) "self", NULL
18631 };
18632
18633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
18634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18636 {
18637 PyThreadState* __tstate = wxPyBeginAllowThreads();
18638 result = ((wxListItem const *)arg1)->GetTextColour();
18639
18640 wxPyEndAllowThreads(__tstate);
18641 if (PyErr_Occurred()) SWIG_fail;
18642 }
18643 {
18644 wxColour * resultptr;
18645 resultptr = new wxColour((wxColour &) result);
18646 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18647 }
18648 return resultobj;
18649 fail:
18650 return NULL;
18651 }
18652
18653
18654 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
18655 PyObject *resultobj;
18656 wxListItem *arg1 = (wxListItem *) 0 ;
18657 wxColour result;
18658 PyObject * obj0 = 0 ;
18659 char *kwnames[] = {
18660 (char *) "self", NULL
18661 };
18662
18663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
18664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18666 {
18667 PyThreadState* __tstate = wxPyBeginAllowThreads();
18668 result = ((wxListItem const *)arg1)->GetBackgroundColour();
18669
18670 wxPyEndAllowThreads(__tstate);
18671 if (PyErr_Occurred()) SWIG_fail;
18672 }
18673 {
18674 wxColour * resultptr;
18675 resultptr = new wxColour((wxColour &) result);
18676 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18677 }
18678 return resultobj;
18679 fail:
18680 return NULL;
18681 }
18682
18683
18684 static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
18685 PyObject *resultobj;
18686 wxListItem *arg1 = (wxListItem *) 0 ;
18687 wxFont result;
18688 PyObject * obj0 = 0 ;
18689 char *kwnames[] = {
18690 (char *) "self", NULL
18691 };
18692
18693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
18694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18696 {
18697 PyThreadState* __tstate = wxPyBeginAllowThreads();
18698 result = ((wxListItem const *)arg1)->GetFont();
18699
18700 wxPyEndAllowThreads(__tstate);
18701 if (PyErr_Occurred()) SWIG_fail;
18702 }
18703 {
18704 wxFont * resultptr;
18705 resultptr = new wxFont((wxFont &) result);
18706 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18707 }
18708 return resultobj;
18709 fail:
18710 return NULL;
18711 }
18712
18713
18714 static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) {
18715 PyObject *resultobj;
18716 wxListItem *arg1 = (wxListItem *) 0 ;
18717 long arg2 ;
18718 PyObject * obj0 = 0 ;
18719 PyObject * obj1 = 0 ;
18720 char *kwnames[] = {
18721 (char *) "self",(char *) "m_mask", NULL
18722 };
18723
18724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
18725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18727 arg2 = (long) SWIG_AsLong(obj1);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 if (arg1) (arg1)->m_mask = arg2;
18730
18731 Py_INCREF(Py_None); resultobj = Py_None;
18732 return resultobj;
18733 fail:
18734 return NULL;
18735 }
18736
18737
18738 static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) {
18739 PyObject *resultobj;
18740 wxListItem *arg1 = (wxListItem *) 0 ;
18741 long result;
18742 PyObject * obj0 = 0 ;
18743 char *kwnames[] = {
18744 (char *) "self", NULL
18745 };
18746
18747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
18748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18750 result = (long) ((arg1)->m_mask);
18751
18752 resultobj = SWIG_FromLong((long)result);
18753 return resultobj;
18754 fail:
18755 return NULL;
18756 }
18757
18758
18759 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) {
18760 PyObject *resultobj;
18761 wxListItem *arg1 = (wxListItem *) 0 ;
18762 long arg2 ;
18763 PyObject * obj0 = 0 ;
18764 PyObject * obj1 = 0 ;
18765 char *kwnames[] = {
18766 (char *) "self",(char *) "m_itemId", NULL
18767 };
18768
18769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
18770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18772 arg2 = (long) SWIG_AsLong(obj1);
18773 if (PyErr_Occurred()) SWIG_fail;
18774 if (arg1) (arg1)->m_itemId = arg2;
18775
18776 Py_INCREF(Py_None); resultobj = Py_None;
18777 return resultobj;
18778 fail:
18779 return NULL;
18780 }
18781
18782
18783 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) {
18784 PyObject *resultobj;
18785 wxListItem *arg1 = (wxListItem *) 0 ;
18786 long result;
18787 PyObject * obj0 = 0 ;
18788 char *kwnames[] = {
18789 (char *) "self", NULL
18790 };
18791
18792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
18793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18795 result = (long) ((arg1)->m_itemId);
18796
18797 resultobj = SWIG_FromLong((long)result);
18798 return resultobj;
18799 fail:
18800 return NULL;
18801 }
18802
18803
18804 static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
18805 PyObject *resultobj;
18806 wxListItem *arg1 = (wxListItem *) 0 ;
18807 int arg2 ;
18808 PyObject * obj0 = 0 ;
18809 PyObject * obj1 = 0 ;
18810 char *kwnames[] = {
18811 (char *) "self",(char *) "m_col", NULL
18812 };
18813
18814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
18815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18817 arg2 = (int) SWIG_AsInt(obj1);
18818 if (PyErr_Occurred()) SWIG_fail;
18819 if (arg1) (arg1)->m_col = arg2;
18820
18821 Py_INCREF(Py_None); resultobj = Py_None;
18822 return resultobj;
18823 fail:
18824 return NULL;
18825 }
18826
18827
18828 static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
18829 PyObject *resultobj;
18830 wxListItem *arg1 = (wxListItem *) 0 ;
18831 int result;
18832 PyObject * obj0 = 0 ;
18833 char *kwnames[] = {
18834 (char *) "self", NULL
18835 };
18836
18837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
18838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18840 result = (int) ((arg1)->m_col);
18841
18842 resultobj = SWIG_FromInt((int)result);
18843 return resultobj;
18844 fail:
18845 return NULL;
18846 }
18847
18848
18849 static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) {
18850 PyObject *resultobj;
18851 wxListItem *arg1 = (wxListItem *) 0 ;
18852 long arg2 ;
18853 PyObject * obj0 = 0 ;
18854 PyObject * obj1 = 0 ;
18855 char *kwnames[] = {
18856 (char *) "self",(char *) "m_state", NULL
18857 };
18858
18859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
18860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18862 arg2 = (long) SWIG_AsLong(obj1);
18863 if (PyErr_Occurred()) SWIG_fail;
18864 if (arg1) (arg1)->m_state = arg2;
18865
18866 Py_INCREF(Py_None); resultobj = Py_None;
18867 return resultobj;
18868 fail:
18869 return NULL;
18870 }
18871
18872
18873 static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) {
18874 PyObject *resultobj;
18875 wxListItem *arg1 = (wxListItem *) 0 ;
18876 long result;
18877 PyObject * obj0 = 0 ;
18878 char *kwnames[] = {
18879 (char *) "self", NULL
18880 };
18881
18882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
18883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18885 result = (long) ((arg1)->m_state);
18886
18887 resultobj = SWIG_FromLong((long)result);
18888 return resultobj;
18889 fail:
18890 return NULL;
18891 }
18892
18893
18894 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) {
18895 PyObject *resultobj;
18896 wxListItem *arg1 = (wxListItem *) 0 ;
18897 long arg2 ;
18898 PyObject * obj0 = 0 ;
18899 PyObject * obj1 = 0 ;
18900 char *kwnames[] = {
18901 (char *) "self",(char *) "m_stateMask", NULL
18902 };
18903
18904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
18905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18907 arg2 = (long) SWIG_AsLong(obj1);
18908 if (PyErr_Occurred()) SWIG_fail;
18909 if (arg1) (arg1)->m_stateMask = arg2;
18910
18911 Py_INCREF(Py_None); resultobj = Py_None;
18912 return resultobj;
18913 fail:
18914 return NULL;
18915 }
18916
18917
18918 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) {
18919 PyObject *resultobj;
18920 wxListItem *arg1 = (wxListItem *) 0 ;
18921 long result;
18922 PyObject * obj0 = 0 ;
18923 char *kwnames[] = {
18924 (char *) "self", NULL
18925 };
18926
18927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
18928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18930 result = (long) ((arg1)->m_stateMask);
18931
18932 resultobj = SWIG_FromLong((long)result);
18933 return resultobj;
18934 fail:
18935 return NULL;
18936 }
18937
18938
18939 static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) {
18940 PyObject *resultobj;
18941 wxListItem *arg1 = (wxListItem *) 0 ;
18942 wxString *arg2 = (wxString *) 0 ;
18943 bool temp2 = False ;
18944 PyObject * obj0 = 0 ;
18945 PyObject * obj1 = 0 ;
18946 char *kwnames[] = {
18947 (char *) "self",(char *) "m_text", NULL
18948 };
18949
18950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
18951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18953 {
18954 arg2 = wxString_in_helper(obj1);
18955 if (arg2 == NULL) SWIG_fail;
18956 temp2 = True;
18957 }
18958 if (arg1) (arg1)->m_text = *arg2;
18959
18960 Py_INCREF(Py_None); resultobj = Py_None;
18961 {
18962 if (temp2)
18963 delete arg2;
18964 }
18965 return resultobj;
18966 fail:
18967 {
18968 if (temp2)
18969 delete arg2;
18970 }
18971 return NULL;
18972 }
18973
18974
18975 static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) {
18976 PyObject *resultobj;
18977 wxListItem *arg1 = (wxListItem *) 0 ;
18978 wxString *result;
18979 PyObject * obj0 = 0 ;
18980 char *kwnames[] = {
18981 (char *) "self", NULL
18982 };
18983
18984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
18985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18987 result = (wxString *)& ((arg1)->m_text);
18988
18989 {
18990 #if wxUSE_UNICODE
18991 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18992 #else
18993 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18994 #endif
18995 }
18996 return resultobj;
18997 fail:
18998 return NULL;
18999 }
19000
19001
19002 static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) {
19003 PyObject *resultobj;
19004 wxListItem *arg1 = (wxListItem *) 0 ;
19005 int arg2 ;
19006 PyObject * obj0 = 0 ;
19007 PyObject * obj1 = 0 ;
19008 char *kwnames[] = {
19009 (char *) "self",(char *) "m_image", NULL
19010 };
19011
19012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
19013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19015 arg2 = (int) SWIG_AsInt(obj1);
19016 if (PyErr_Occurred()) SWIG_fail;
19017 if (arg1) (arg1)->m_image = arg2;
19018
19019 Py_INCREF(Py_None); resultobj = Py_None;
19020 return resultobj;
19021 fail:
19022 return NULL;
19023 }
19024
19025
19026 static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) {
19027 PyObject *resultobj;
19028 wxListItem *arg1 = (wxListItem *) 0 ;
19029 int result;
19030 PyObject * obj0 = 0 ;
19031 char *kwnames[] = {
19032 (char *) "self", NULL
19033 };
19034
19035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
19036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19038 result = (int) ((arg1)->m_image);
19039
19040 resultobj = SWIG_FromInt((int)result);
19041 return resultobj;
19042 fail:
19043 return NULL;
19044 }
19045
19046
19047 static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) {
19048 PyObject *resultobj;
19049 wxListItem *arg1 = (wxListItem *) 0 ;
19050 long arg2 ;
19051 PyObject * obj0 = 0 ;
19052 PyObject * obj1 = 0 ;
19053 char *kwnames[] = {
19054 (char *) "self",(char *) "m_data", NULL
19055 };
19056
19057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
19058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19060 arg2 = (long) SWIG_AsLong(obj1);
19061 if (PyErr_Occurred()) SWIG_fail;
19062 if (arg1) (arg1)->m_data = arg2;
19063
19064 Py_INCREF(Py_None); resultobj = Py_None;
19065 return resultobj;
19066 fail:
19067 return NULL;
19068 }
19069
19070
19071 static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) {
19072 PyObject *resultobj;
19073 wxListItem *arg1 = (wxListItem *) 0 ;
19074 long result;
19075 PyObject * obj0 = 0 ;
19076 char *kwnames[] = {
19077 (char *) "self", NULL
19078 };
19079
19080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
19081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19083 result = (long) ((arg1)->m_data);
19084
19085 resultobj = SWIG_FromLong((long)result);
19086 return resultobj;
19087 fail:
19088 return NULL;
19089 }
19090
19091
19092 static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) {
19093 PyObject *resultobj;
19094 wxListItem *arg1 = (wxListItem *) 0 ;
19095 int arg2 ;
19096 PyObject * obj0 = 0 ;
19097 PyObject * obj1 = 0 ;
19098 char *kwnames[] = {
19099 (char *) "self",(char *) "m_format", NULL
19100 };
19101
19102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
19103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19105 arg2 = (int) SWIG_AsInt(obj1);
19106 if (PyErr_Occurred()) SWIG_fail;
19107 if (arg1) (arg1)->m_format = arg2;
19108
19109 Py_INCREF(Py_None); resultobj = Py_None;
19110 return resultobj;
19111 fail:
19112 return NULL;
19113 }
19114
19115
19116 static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) {
19117 PyObject *resultobj;
19118 wxListItem *arg1 = (wxListItem *) 0 ;
19119 int result;
19120 PyObject * obj0 = 0 ;
19121 char *kwnames[] = {
19122 (char *) "self", NULL
19123 };
19124
19125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
19126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19128 result = (int) ((arg1)->m_format);
19129
19130 resultobj = SWIG_FromInt((int)result);
19131 return resultobj;
19132 fail:
19133 return NULL;
19134 }
19135
19136
19137 static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
19138 PyObject *resultobj;
19139 wxListItem *arg1 = (wxListItem *) 0 ;
19140 int arg2 ;
19141 PyObject * obj0 = 0 ;
19142 PyObject * obj1 = 0 ;
19143 char *kwnames[] = {
19144 (char *) "self",(char *) "m_width", NULL
19145 };
19146
19147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
19148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19150 arg2 = (int) SWIG_AsInt(obj1);
19151 if (PyErr_Occurred()) SWIG_fail;
19152 if (arg1) (arg1)->m_width = arg2;
19153
19154 Py_INCREF(Py_None); resultobj = Py_None;
19155 return resultobj;
19156 fail:
19157 return NULL;
19158 }
19159
19160
19161 static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
19162 PyObject *resultobj;
19163 wxListItem *arg1 = (wxListItem *) 0 ;
19164 int result;
19165 PyObject * obj0 = 0 ;
19166 char *kwnames[] = {
19167 (char *) "self", NULL
19168 };
19169
19170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
19171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19173 result = (int) ((arg1)->m_width);
19174
19175 resultobj = SWIG_FromInt((int)result);
19176 return resultobj;
19177 fail:
19178 return NULL;
19179 }
19180
19181
19182 static PyObject * ListItem_swigregister(PyObject *, PyObject *args) {
19183 PyObject *obj;
19184 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19185 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
19186 Py_INCREF(obj);
19187 return Py_BuildValue((char *)"");
19188 }
19189 static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19190 PyObject *resultobj;
19191 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19192 int arg2 = (int) 0 ;
19193 wxListEvent *result;
19194 PyObject * obj0 = 0 ;
19195 PyObject * obj1 = 0 ;
19196 char *kwnames[] = {
19197 (char *) "commandType",(char *) "id", NULL
19198 };
19199
19200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
19201 if (obj0) {
19202 arg1 = (wxEventType) SWIG_AsInt(obj0);
19203 if (PyErr_Occurred()) SWIG_fail;
19204 }
19205 if (obj1) {
19206 arg2 = (int) SWIG_AsInt(obj1);
19207 if (PyErr_Occurred()) SWIG_fail;
19208 }
19209 {
19210 PyThreadState* __tstate = wxPyBeginAllowThreads();
19211 result = (wxListEvent *)new wxListEvent(arg1,arg2);
19212
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
19217 return resultobj;
19218 fail:
19219 return NULL;
19220 }
19221
19222
19223 static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj;
19225 wxListEvent *arg1 = (wxListEvent *) 0 ;
19226 int arg2 ;
19227 PyObject * obj0 = 0 ;
19228 PyObject * obj1 = 0 ;
19229 char *kwnames[] = {
19230 (char *) "self",(char *) "m_code", NULL
19231 };
19232
19233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
19234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19236 arg2 = (int) SWIG_AsInt(obj1);
19237 if (PyErr_Occurred()) SWIG_fail;
19238 if (arg1) (arg1)->m_code = arg2;
19239
19240 Py_INCREF(Py_None); resultobj = Py_None;
19241 return resultobj;
19242 fail:
19243 return NULL;
19244 }
19245
19246
19247 static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) {
19248 PyObject *resultobj;
19249 wxListEvent *arg1 = (wxListEvent *) 0 ;
19250 int result;
19251 PyObject * obj0 = 0 ;
19252 char *kwnames[] = {
19253 (char *) "self", NULL
19254 };
19255
19256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
19257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19259 result = (int) ((arg1)->m_code);
19260
19261 resultobj = SWIG_FromInt((int)result);
19262 return resultobj;
19263 fail:
19264 return NULL;
19265 }
19266
19267
19268 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
19269 PyObject *resultobj;
19270 wxListEvent *arg1 = (wxListEvent *) 0 ;
19271 long arg2 ;
19272 PyObject * obj0 = 0 ;
19273 PyObject * obj1 = 0 ;
19274 char *kwnames[] = {
19275 (char *) "self",(char *) "m_oldItemIndex", NULL
19276 };
19277
19278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19281 arg2 = (long) SWIG_AsLong(obj1);
19282 if (PyErr_Occurred()) SWIG_fail;
19283 if (arg1) (arg1)->m_oldItemIndex = arg2;
19284
19285 Py_INCREF(Py_None); resultobj = Py_None;
19286 return resultobj;
19287 fail:
19288 return NULL;
19289 }
19290
19291
19292 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
19293 PyObject *resultobj;
19294 wxListEvent *arg1 = (wxListEvent *) 0 ;
19295 long result;
19296 PyObject * obj0 = 0 ;
19297 char *kwnames[] = {
19298 (char *) "self", NULL
19299 };
19300
19301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
19302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19304 result = (long) ((arg1)->m_oldItemIndex);
19305
19306 resultobj = SWIG_FromLong((long)result);
19307 return resultobj;
19308 fail:
19309 return NULL;
19310 }
19311
19312
19313 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
19314 PyObject *resultobj;
19315 wxListEvent *arg1 = (wxListEvent *) 0 ;
19316 long arg2 ;
19317 PyObject * obj0 = 0 ;
19318 PyObject * obj1 = 0 ;
19319 char *kwnames[] = {
19320 (char *) "self",(char *) "m_itemIndex", NULL
19321 };
19322
19323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19326 arg2 = (long) SWIG_AsLong(obj1);
19327 if (PyErr_Occurred()) SWIG_fail;
19328 if (arg1) (arg1)->m_itemIndex = arg2;
19329
19330 Py_INCREF(Py_None); resultobj = Py_None;
19331 return resultobj;
19332 fail:
19333 return NULL;
19334 }
19335
19336
19337 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
19338 PyObject *resultobj;
19339 wxListEvent *arg1 = (wxListEvent *) 0 ;
19340 long result;
19341 PyObject * obj0 = 0 ;
19342 char *kwnames[] = {
19343 (char *) "self", NULL
19344 };
19345
19346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
19347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19349 result = (long) ((arg1)->m_itemIndex);
19350
19351 resultobj = SWIG_FromLong((long)result);
19352 return resultobj;
19353 fail:
19354 return NULL;
19355 }
19356
19357
19358 static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
19359 PyObject *resultobj;
19360 wxListEvent *arg1 = (wxListEvent *) 0 ;
19361 int arg2 ;
19362 PyObject * obj0 = 0 ;
19363 PyObject * obj1 = 0 ;
19364 char *kwnames[] = {
19365 (char *) "self",(char *) "m_col", NULL
19366 };
19367
19368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19371 arg2 = (int) SWIG_AsInt(obj1);
19372 if (PyErr_Occurred()) SWIG_fail;
19373 if (arg1) (arg1)->m_col = arg2;
19374
19375 Py_INCREF(Py_None); resultobj = Py_None;
19376 return resultobj;
19377 fail:
19378 return NULL;
19379 }
19380
19381
19382 static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
19383 PyObject *resultobj;
19384 wxListEvent *arg1 = (wxListEvent *) 0 ;
19385 int result;
19386 PyObject * obj0 = 0 ;
19387 char *kwnames[] = {
19388 (char *) "self", NULL
19389 };
19390
19391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
19392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19394 result = (int) ((arg1)->m_col);
19395
19396 resultobj = SWIG_FromInt((int)result);
19397 return resultobj;
19398 fail:
19399 return NULL;
19400 }
19401
19402
19403 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) {
19404 PyObject *resultobj;
19405 wxListEvent *arg1 = (wxListEvent *) 0 ;
19406 wxPoint *arg2 = (wxPoint *) 0 ;
19407 PyObject * obj0 = 0 ;
19408 PyObject * obj1 = 0 ;
19409 char *kwnames[] = {
19410 (char *) "self",(char *) "m_pointDrag", NULL
19411 };
19412
19413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
19414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19416 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
19417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19418 if (arg1) (arg1)->m_pointDrag = *arg2;
19419
19420 Py_INCREF(Py_None); resultobj = Py_None;
19421 return resultobj;
19422 fail:
19423 return NULL;
19424 }
19425
19426
19427 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) {
19428 PyObject *resultobj;
19429 wxListEvent *arg1 = (wxListEvent *) 0 ;
19430 wxPoint *result;
19431 PyObject * obj0 = 0 ;
19432 char *kwnames[] = {
19433 (char *) "self", NULL
19434 };
19435
19436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
19437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19439 result = (wxPoint *)& ((arg1)->m_pointDrag);
19440
19441 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
19442 return resultobj;
19443 fail:
19444 return NULL;
19445 }
19446
19447
19448 static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) {
19449 PyObject *resultobj;
19450 wxListEvent *arg1 = (wxListEvent *) 0 ;
19451 wxListItem *result;
19452 PyObject * obj0 = 0 ;
19453 char *kwnames[] = {
19454 (char *) "self", NULL
19455 };
19456
19457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
19458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19460 result = (wxListItem *)& ((arg1)->m_item);
19461
19462 {
19463 resultobj = wxPyMake_wxObject(result);
19464 }
19465 return resultobj;
19466 fail:
19467 return NULL;
19468 }
19469
19470
19471 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
19472 PyObject *resultobj;
19473 wxListEvent *arg1 = (wxListEvent *) 0 ;
19474 int result;
19475 PyObject * obj0 = 0 ;
19476 char *kwnames[] = {
19477 (char *) "self", NULL
19478 };
19479
19480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
19481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19483 {
19484 PyThreadState* __tstate = wxPyBeginAllowThreads();
19485 result = (int)(arg1)->GetKeyCode();
19486
19487 wxPyEndAllowThreads(__tstate);
19488 if (PyErr_Occurred()) SWIG_fail;
19489 }
19490 resultobj = SWIG_FromInt((int)result);
19491 return resultobj;
19492 fail:
19493 return NULL;
19494 }
19495
19496
19497 static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
19498 PyObject *resultobj;
19499 wxListEvent *arg1 = (wxListEvent *) 0 ;
19500 long result;
19501 PyObject * obj0 = 0 ;
19502 char *kwnames[] = {
19503 (char *) "self", NULL
19504 };
19505
19506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
19507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19509 {
19510 PyThreadState* __tstate = wxPyBeginAllowThreads();
19511 result = (long)(arg1)->GetIndex();
19512
19513 wxPyEndAllowThreads(__tstate);
19514 if (PyErr_Occurred()) SWIG_fail;
19515 }
19516 resultobj = SWIG_FromLong((long)result);
19517 return resultobj;
19518 fail:
19519 return NULL;
19520 }
19521
19522
19523 static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19524 PyObject *resultobj;
19525 wxListEvent *arg1 = (wxListEvent *) 0 ;
19526 int result;
19527 PyObject * obj0 = 0 ;
19528 char *kwnames[] = {
19529 (char *) "self", NULL
19530 };
19531
19532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
19533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19535 {
19536 PyThreadState* __tstate = wxPyBeginAllowThreads();
19537 result = (int)(arg1)->GetColumn();
19538
19539 wxPyEndAllowThreads(__tstate);
19540 if (PyErr_Occurred()) SWIG_fail;
19541 }
19542 resultobj = SWIG_FromInt((int)result);
19543 return resultobj;
19544 fail:
19545 return NULL;
19546 }
19547
19548
19549 static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
19550 PyObject *resultobj;
19551 wxListEvent *arg1 = (wxListEvent *) 0 ;
19552 wxPoint result;
19553 PyObject * obj0 = 0 ;
19554 char *kwnames[] = {
19555 (char *) "self", NULL
19556 };
19557
19558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
19559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19561 {
19562 PyThreadState* __tstate = wxPyBeginAllowThreads();
19563 result = (arg1)->GetPoint();
19564
19565 wxPyEndAllowThreads(__tstate);
19566 if (PyErr_Occurred()) SWIG_fail;
19567 }
19568 {
19569 wxPoint * resultptr;
19570 resultptr = new wxPoint((wxPoint &) result);
19571 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
19572 }
19573 return resultobj;
19574 fail:
19575 return NULL;
19576 }
19577
19578
19579 static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
19580 PyObject *resultobj;
19581 wxListEvent *arg1 = (wxListEvent *) 0 ;
19582 wxString *result;
19583 PyObject * obj0 = 0 ;
19584 char *kwnames[] = {
19585 (char *) "self", NULL
19586 };
19587
19588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
19589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19591 {
19592 PyThreadState* __tstate = wxPyBeginAllowThreads();
19593 {
19594 wxString const &_result_ref = (arg1)->GetLabel();
19595 result = (wxString *) &_result_ref;
19596 }
19597
19598 wxPyEndAllowThreads(__tstate);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
19601 {
19602 #if wxUSE_UNICODE
19603 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19604 #else
19605 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19606 #endif
19607 }
19608 return resultobj;
19609 fail:
19610 return NULL;
19611 }
19612
19613
19614 static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
19615 PyObject *resultobj;
19616 wxListEvent *arg1 = (wxListEvent *) 0 ;
19617 wxString *result;
19618 PyObject * obj0 = 0 ;
19619 char *kwnames[] = {
19620 (char *) "self", NULL
19621 };
19622
19623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
19624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19626 {
19627 PyThreadState* __tstate = wxPyBeginAllowThreads();
19628 {
19629 wxString const &_result_ref = (arg1)->GetText();
19630 result = (wxString *) &_result_ref;
19631 }
19632
19633 wxPyEndAllowThreads(__tstate);
19634 if (PyErr_Occurred()) SWIG_fail;
19635 }
19636 {
19637 #if wxUSE_UNICODE
19638 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19639 #else
19640 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19641 #endif
19642 }
19643 return resultobj;
19644 fail:
19645 return NULL;
19646 }
19647
19648
19649 static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19650 PyObject *resultobj;
19651 wxListEvent *arg1 = (wxListEvent *) 0 ;
19652 int result;
19653 PyObject * obj0 = 0 ;
19654 char *kwnames[] = {
19655 (char *) "self", NULL
19656 };
19657
19658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
19659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19661 {
19662 PyThreadState* __tstate = wxPyBeginAllowThreads();
19663 result = (int)(arg1)->GetImage();
19664
19665 wxPyEndAllowThreads(__tstate);
19666 if (PyErr_Occurred()) SWIG_fail;
19667 }
19668 resultobj = SWIG_FromInt((int)result);
19669 return resultobj;
19670 fail:
19671 return NULL;
19672 }
19673
19674
19675 static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
19676 PyObject *resultobj;
19677 wxListEvent *arg1 = (wxListEvent *) 0 ;
19678 long result;
19679 PyObject * obj0 = 0 ;
19680 char *kwnames[] = {
19681 (char *) "self", NULL
19682 };
19683
19684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
19685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19687 {
19688 PyThreadState* __tstate = wxPyBeginAllowThreads();
19689 result = (long)(arg1)->GetData();
19690
19691 wxPyEndAllowThreads(__tstate);
19692 if (PyErr_Occurred()) SWIG_fail;
19693 }
19694 resultobj = SWIG_FromLong((long)result);
19695 return resultobj;
19696 fail:
19697 return NULL;
19698 }
19699
19700
19701 static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19702 PyObject *resultobj;
19703 wxListEvent *arg1 = (wxListEvent *) 0 ;
19704 long result;
19705 PyObject * obj0 = 0 ;
19706 char *kwnames[] = {
19707 (char *) "self", NULL
19708 };
19709
19710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
19711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19713 {
19714 PyThreadState* __tstate = wxPyBeginAllowThreads();
19715 result = (long)(arg1)->GetMask();
19716
19717 wxPyEndAllowThreads(__tstate);
19718 if (PyErr_Occurred()) SWIG_fail;
19719 }
19720 resultobj = SWIG_FromLong((long)result);
19721 return resultobj;
19722 fail:
19723 return NULL;
19724 }
19725
19726
19727 static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
19728 PyObject *resultobj;
19729 wxListEvent *arg1 = (wxListEvent *) 0 ;
19730 wxListItem *result;
19731 PyObject * obj0 = 0 ;
19732 char *kwnames[] = {
19733 (char *) "self", NULL
19734 };
19735
19736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
19737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19739 {
19740 PyThreadState* __tstate = wxPyBeginAllowThreads();
19741 {
19742 wxListItem const &_result_ref = (arg1)->GetItem();
19743 result = (wxListItem *) &_result_ref;
19744 }
19745
19746 wxPyEndAllowThreads(__tstate);
19747 if (PyErr_Occurred()) SWIG_fail;
19748 }
19749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
19750 return resultobj;
19751 fail:
19752 return NULL;
19753 }
19754
19755
19756 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) {
19757 PyObject *resultobj;
19758 wxListEvent *arg1 = (wxListEvent *) 0 ;
19759 long result;
19760 PyObject * obj0 = 0 ;
19761 char *kwnames[] = {
19762 (char *) "self", NULL
19763 };
19764
19765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
19766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19768 {
19769 PyThreadState* __tstate = wxPyBeginAllowThreads();
19770 result = (long)(arg1)->GetCacheFrom();
19771
19772 wxPyEndAllowThreads(__tstate);
19773 if (PyErr_Occurred()) SWIG_fail;
19774 }
19775 resultobj = SWIG_FromLong((long)result);
19776 return resultobj;
19777 fail:
19778 return NULL;
19779 }
19780
19781
19782 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) {
19783 PyObject *resultobj;
19784 wxListEvent *arg1 = (wxListEvent *) 0 ;
19785 long result;
19786 PyObject * obj0 = 0 ;
19787 char *kwnames[] = {
19788 (char *) "self", NULL
19789 };
19790
19791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
19792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19794 {
19795 PyThreadState* __tstate = wxPyBeginAllowThreads();
19796 result = (long)(arg1)->GetCacheTo();
19797
19798 wxPyEndAllowThreads(__tstate);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
19801 resultobj = SWIG_FromLong((long)result);
19802 return resultobj;
19803 fail:
19804 return NULL;
19805 }
19806
19807
19808 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
19809 PyObject *resultobj;
19810 wxListEvent *arg1 = (wxListEvent *) 0 ;
19811 bool result;
19812 PyObject * obj0 = 0 ;
19813 char *kwnames[] = {
19814 (char *) "self", NULL
19815 };
19816
19817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
19818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19820 {
19821 PyThreadState* __tstate = wxPyBeginAllowThreads();
19822 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
19823
19824 wxPyEndAllowThreads(__tstate);
19825 if (PyErr_Occurred()) SWIG_fail;
19826 }
19827 {
19828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19829 }
19830 return resultobj;
19831 fail:
19832 return NULL;
19833 }
19834
19835
19836 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
19837 PyObject *resultobj;
19838 wxListEvent *arg1 = (wxListEvent *) 0 ;
19839 bool arg2 ;
19840 PyObject * obj0 = 0 ;
19841 PyObject * obj1 = 0 ;
19842 char *kwnames[] = {
19843 (char *) "self",(char *) "editCancelled", NULL
19844 };
19845
19846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
19847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19849 arg2 = (bool) SWIG_AsBool(obj1);
19850 if (PyErr_Occurred()) SWIG_fail;
19851 {
19852 PyThreadState* __tstate = wxPyBeginAllowThreads();
19853 (arg1)->SetEditCanceled(arg2);
19854
19855 wxPyEndAllowThreads(__tstate);
19856 if (PyErr_Occurred()) SWIG_fail;
19857 }
19858 Py_INCREF(Py_None); resultobj = Py_None;
19859 return resultobj;
19860 fail:
19861 return NULL;
19862 }
19863
19864
19865 static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) {
19866 PyObject *obj;
19867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19868 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
19869 Py_INCREF(obj);
19870 return Py_BuildValue((char *)"");
19871 }
19872 static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
19873 PyObject *resultobj;
19874 wxWindow *arg1 = (wxWindow *) 0 ;
19875 int arg2 = (int) -1 ;
19876 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19877 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19878 wxSize const &arg4_defvalue = wxDefaultSize ;
19879 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
19880 long arg5 = (long) wxLC_ICON ;
19881 wxValidator const &arg6_defvalue = wxDefaultValidator ;
19882 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
19883 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
19884 wxString *arg7 = (wxString *) &arg7_defvalue ;
19885 wxPyListCtrl *result;
19886 wxPoint temp3 ;
19887 wxSize temp4 ;
19888 bool temp7 = False ;
19889 PyObject * obj0 = 0 ;
19890 PyObject * obj1 = 0 ;
19891 PyObject * obj2 = 0 ;
19892 PyObject * obj3 = 0 ;
19893 PyObject * obj4 = 0 ;
19894 PyObject * obj5 = 0 ;
19895 PyObject * obj6 = 0 ;
19896 char *kwnames[] = {
19897 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19898 };
19899
19900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19903 if (obj1) {
19904 arg2 = (int) SWIG_AsInt(obj1);
19905 if (PyErr_Occurred()) SWIG_fail;
19906 }
19907 if (obj2) {
19908 {
19909 arg3 = &temp3;
19910 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19911 }
19912 }
19913 if (obj3) {
19914 {
19915 arg4 = &temp4;
19916 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
19917 }
19918 }
19919 if (obj4) {
19920 arg5 = (long) SWIG_AsLong(obj4);
19921 if (PyErr_Occurred()) SWIG_fail;
19922 }
19923 if (obj5) {
19924 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
19925 SWIG_POINTER_EXCEPTION | 0)) == -1)
19926 SWIG_fail;
19927 if (arg6 == NULL) {
19928 PyErr_SetString(PyExc_TypeError,"null reference");
19929 SWIG_fail;
19930 }
19931 }
19932 if (obj6) {
19933 {
19934 arg7 = wxString_in_helper(obj6);
19935 if (arg7 == NULL) SWIG_fail;
19936 temp7 = True;
19937 }
19938 }
19939 {
19940 PyThreadState* __tstate = wxPyBeginAllowThreads();
19941 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
19942
19943 wxPyEndAllowThreads(__tstate);
19944 if (PyErr_Occurred()) SWIG_fail;
19945 }
19946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
19947 {
19948 if (temp7)
19949 delete arg7;
19950 }
19951 return resultobj;
19952 fail:
19953 {
19954 if (temp7)
19955 delete arg7;
19956 }
19957 return NULL;
19958 }
19959
19960
19961 static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
19962 PyObject *resultobj;
19963 wxPyListCtrl *result;
19964 char *kwnames[] = {
19965 NULL
19966 };
19967
19968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
19969 {
19970 PyThreadState* __tstate = wxPyBeginAllowThreads();
19971 result = (wxPyListCtrl *)new wxPyListCtrl();
19972
19973 wxPyEndAllowThreads(__tstate);
19974 if (PyErr_Occurred()) SWIG_fail;
19975 }
19976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
19977 return resultobj;
19978 fail:
19979 return NULL;
19980 }
19981
19982
19983 static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
19984 PyObject *resultobj;
19985 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
19986 wxWindow *arg2 = (wxWindow *) 0 ;
19987 int arg3 = (int) -1 ;
19988 wxPoint const &arg4_defvalue = wxDefaultPosition ;
19989 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
19990 wxSize const &arg5_defvalue = wxDefaultSize ;
19991 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
19992 long arg6 = (long) wxLC_ICON ;
19993 wxValidator const &arg7_defvalue = wxDefaultValidator ;
19994 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
19995 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
19996 wxString *arg8 = (wxString *) &arg8_defvalue ;
19997 bool result;
19998 wxPoint temp4 ;
19999 wxSize temp5 ;
20000 bool temp8 = False ;
20001 PyObject * obj0 = 0 ;
20002 PyObject * obj1 = 0 ;
20003 PyObject * obj2 = 0 ;
20004 PyObject * obj3 = 0 ;
20005 PyObject * obj4 = 0 ;
20006 PyObject * obj5 = 0 ;
20007 PyObject * obj6 = 0 ;
20008 PyObject * obj7 = 0 ;
20009 char *kwnames[] = {
20010 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
20011 };
20012
20013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
20014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20016 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20018 if (obj2) {
20019 arg3 = (int) SWIG_AsInt(obj2);
20020 if (PyErr_Occurred()) SWIG_fail;
20021 }
20022 if (obj3) {
20023 {
20024 arg4 = &temp4;
20025 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20026 }
20027 }
20028 if (obj4) {
20029 {
20030 arg5 = &temp5;
20031 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20032 }
20033 }
20034 if (obj5) {
20035 arg6 = (long) SWIG_AsLong(obj5);
20036 if (PyErr_Occurred()) SWIG_fail;
20037 }
20038 if (obj6) {
20039 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
20040 SWIG_POINTER_EXCEPTION | 0)) == -1)
20041 SWIG_fail;
20042 if (arg7 == NULL) {
20043 PyErr_SetString(PyExc_TypeError,"null reference");
20044 SWIG_fail;
20045 }
20046 }
20047 if (obj7) {
20048 {
20049 arg8 = wxString_in_helper(obj7);
20050 if (arg8 == NULL) SWIG_fail;
20051 temp8 = True;
20052 }
20053 }
20054 {
20055 PyThreadState* __tstate = wxPyBeginAllowThreads();
20056 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
20057
20058 wxPyEndAllowThreads(__tstate);
20059 if (PyErr_Occurred()) SWIG_fail;
20060 }
20061 {
20062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20063 }
20064 {
20065 if (temp8)
20066 delete arg8;
20067 }
20068 return resultobj;
20069 fail:
20070 {
20071 if (temp8)
20072 delete arg8;
20073 }
20074 return NULL;
20075 }
20076
20077
20078 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
20079 PyObject *resultobj;
20080 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20081 PyObject *arg2 = (PyObject *) 0 ;
20082 PyObject *arg3 = (PyObject *) 0 ;
20083 PyObject * obj0 = 0 ;
20084 PyObject * obj1 = 0 ;
20085 PyObject * obj2 = 0 ;
20086 char *kwnames[] = {
20087 (char *) "self",(char *) "self",(char *) "_class", NULL
20088 };
20089
20090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20093 arg2 = obj1;
20094 arg3 = obj2;
20095 {
20096 PyThreadState* __tstate = wxPyBeginAllowThreads();
20097 (arg1)->_setCallbackInfo(arg2,arg3);
20098
20099 wxPyEndAllowThreads(__tstate);
20100 if (PyErr_Occurred()) SWIG_fail;
20101 }
20102 Py_INCREF(Py_None); resultobj = Py_None;
20103 return resultobj;
20104 fail:
20105 return NULL;
20106 }
20107
20108
20109 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20110 PyObject *resultobj;
20111 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20112 wxColour *arg2 = 0 ;
20113 bool result;
20114 wxColour temp2 ;
20115 PyObject * obj0 = 0 ;
20116 PyObject * obj1 = 0 ;
20117 char *kwnames[] = {
20118 (char *) "self",(char *) "col", NULL
20119 };
20120
20121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
20122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20124 {
20125 arg2 = &temp2;
20126 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20127 }
20128 {
20129 PyThreadState* __tstate = wxPyBeginAllowThreads();
20130 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
20131
20132 wxPyEndAllowThreads(__tstate);
20133 if (PyErr_Occurred()) SWIG_fail;
20134 }
20135 {
20136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20137 }
20138 return resultobj;
20139 fail:
20140 return NULL;
20141 }
20142
20143
20144 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20145 PyObject *resultobj;
20146 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20147 wxColour *arg2 = 0 ;
20148 bool result;
20149 wxColour temp2 ;
20150 PyObject * obj0 = 0 ;
20151 PyObject * obj1 = 0 ;
20152 char *kwnames[] = {
20153 (char *) "self",(char *) "col", NULL
20154 };
20155
20156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
20157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20159 {
20160 arg2 = &temp2;
20161 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20162 }
20163 {
20164 PyThreadState* __tstate = wxPyBeginAllowThreads();
20165 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
20166
20167 wxPyEndAllowThreads(__tstate);
20168 if (PyErr_Occurred()) SWIG_fail;
20169 }
20170 {
20171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20172 }
20173 return resultobj;
20174 fail:
20175 return NULL;
20176 }
20177
20178
20179 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20180 PyObject *resultobj;
20181 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20182 int arg2 ;
20183 wxListItem *result;
20184 PyObject * obj0 = 0 ;
20185 PyObject * obj1 = 0 ;
20186 char *kwnames[] = {
20187 (char *) "self",(char *) "col", NULL
20188 };
20189
20190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
20191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20193 arg2 = (int) SWIG_AsInt(obj1);
20194 if (PyErr_Occurred()) SWIG_fail;
20195 {
20196 PyThreadState* __tstate = wxPyBeginAllowThreads();
20197 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
20198
20199 wxPyEndAllowThreads(__tstate);
20200 if (PyErr_Occurred()) SWIG_fail;
20201 }
20202 {
20203 resultobj = wxPyMake_wxObject(result);
20204 }
20205 return resultobj;
20206 fail:
20207 return NULL;
20208 }
20209
20210
20211 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20212 PyObject *resultobj;
20213 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20214 int arg2 ;
20215 wxListItem *arg3 = 0 ;
20216 bool result;
20217 PyObject * obj0 = 0 ;
20218 PyObject * obj1 = 0 ;
20219 PyObject * obj2 = 0 ;
20220 char *kwnames[] = {
20221 (char *) "self",(char *) "col",(char *) "item", NULL
20222 };
20223
20224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
20225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20227 arg2 = (int) SWIG_AsInt(obj1);
20228 if (PyErr_Occurred()) SWIG_fail;
20229 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
20230 SWIG_POINTER_EXCEPTION | 0)) == -1)
20231 SWIG_fail;
20232 if (arg3 == NULL) {
20233 PyErr_SetString(PyExc_TypeError,"null reference");
20234 SWIG_fail;
20235 }
20236 {
20237 PyThreadState* __tstate = wxPyBeginAllowThreads();
20238 result = (bool)(arg1)->SetColumn(arg2,*arg3);
20239
20240 wxPyEndAllowThreads(__tstate);
20241 if (PyErr_Occurred()) SWIG_fail;
20242 }
20243 {
20244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20245 }
20246 return resultobj;
20247 fail:
20248 return NULL;
20249 }
20250
20251
20252 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
20253 PyObject *resultobj;
20254 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20255 int arg2 ;
20256 int result;
20257 PyObject * obj0 = 0 ;
20258 PyObject * obj1 = 0 ;
20259 char *kwnames[] = {
20260 (char *) "self",(char *) "col", NULL
20261 };
20262
20263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
20264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20266 arg2 = (int) SWIG_AsInt(obj1);
20267 if (PyErr_Occurred()) SWIG_fail;
20268 {
20269 PyThreadState* __tstate = wxPyBeginAllowThreads();
20270 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
20271
20272 wxPyEndAllowThreads(__tstate);
20273 if (PyErr_Occurred()) SWIG_fail;
20274 }
20275 resultobj = SWIG_FromInt((int)result);
20276 return resultobj;
20277 fail:
20278 return NULL;
20279 }
20280
20281
20282 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
20283 PyObject *resultobj;
20284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20285 int arg2 ;
20286 int arg3 ;
20287 bool result;
20288 PyObject * obj0 = 0 ;
20289 PyObject * obj1 = 0 ;
20290 PyObject * obj2 = 0 ;
20291 char *kwnames[] = {
20292 (char *) "self",(char *) "col",(char *) "width", NULL
20293 };
20294
20295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20298 arg2 = (int) SWIG_AsInt(obj1);
20299 if (PyErr_Occurred()) SWIG_fail;
20300 arg3 = (int) SWIG_AsInt(obj2);
20301 if (PyErr_Occurred()) SWIG_fail;
20302 {
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
20305
20306 wxPyEndAllowThreads(__tstate);
20307 if (PyErr_Occurred()) SWIG_fail;
20308 }
20309 {
20310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20311 }
20312 return resultobj;
20313 fail:
20314 return NULL;
20315 }
20316
20317
20318 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) {
20319 PyObject *resultobj;
20320 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20321 int result;
20322 PyObject * obj0 = 0 ;
20323 char *kwnames[] = {
20324 (char *) "self", NULL
20325 };
20326
20327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
20328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20330 {
20331 PyThreadState* __tstate = wxPyBeginAllowThreads();
20332 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
20333
20334 wxPyEndAllowThreads(__tstate);
20335 if (PyErr_Occurred()) SWIG_fail;
20336 }
20337 resultobj = SWIG_FromInt((int)result);
20338 return resultobj;
20339 fail:
20340 return NULL;
20341 }
20342
20343
20344 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) {
20345 PyObject *resultobj;
20346 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20347 wxRect result;
20348 PyObject * obj0 = 0 ;
20349 char *kwnames[] = {
20350 (char *) "self", NULL
20351 };
20352
20353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
20354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20356 {
20357 PyThreadState* __tstate = wxPyBeginAllowThreads();
20358 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
20359
20360 wxPyEndAllowThreads(__tstate);
20361 if (PyErr_Occurred()) SWIG_fail;
20362 }
20363 {
20364 wxRect * resultptr;
20365 resultptr = new wxRect((wxRect &) result);
20366 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
20367 }
20368 return resultobj;
20369 fail:
20370 return NULL;
20371 }
20372
20373
20374 static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
20375 PyObject *resultobj;
20376 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20377 long arg2 ;
20378 int arg3 = (int) 0 ;
20379 wxListItem *result;
20380 PyObject * obj0 = 0 ;
20381 PyObject * obj1 = 0 ;
20382 PyObject * obj2 = 0 ;
20383 char *kwnames[] = {
20384 (char *) "self",(char *) "itemId",(char *) "col", NULL
20385 };
20386
20387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
20388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20390 arg2 = (long) SWIG_AsLong(obj1);
20391 if (PyErr_Occurred()) SWIG_fail;
20392 if (obj2) {
20393 arg3 = (int) SWIG_AsInt(obj2);
20394 if (PyErr_Occurred()) SWIG_fail;
20395 }
20396 {
20397 PyThreadState* __tstate = wxPyBeginAllowThreads();
20398 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
20399
20400 wxPyEndAllowThreads(__tstate);
20401 if (PyErr_Occurred()) SWIG_fail;
20402 }
20403 {
20404 resultobj = wxPyMake_wxObject(result);
20405 }
20406 return resultobj;
20407 fail:
20408 return NULL;
20409 }
20410
20411
20412 static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
20413 PyObject *resultobj;
20414 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20415 wxListItem *arg2 = 0 ;
20416 bool result;
20417 PyObject * obj0 = 0 ;
20418 PyObject * obj1 = 0 ;
20419 char *kwnames[] = {
20420 (char *) "self",(char *) "info", NULL
20421 };
20422
20423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
20424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20426 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
20427 SWIG_POINTER_EXCEPTION | 0)) == -1)
20428 SWIG_fail;
20429 if (arg2 == NULL) {
20430 PyErr_SetString(PyExc_TypeError,"null reference");
20431 SWIG_fail;
20432 }
20433 {
20434 PyThreadState* __tstate = wxPyBeginAllowThreads();
20435 result = (bool)(arg1)->SetItem(*arg2);
20436
20437 wxPyEndAllowThreads(__tstate);
20438 if (PyErr_Occurred()) SWIG_fail;
20439 }
20440 {
20441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20442 }
20443 return resultobj;
20444 fail:
20445 return NULL;
20446 }
20447
20448
20449 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
20450 PyObject *resultobj;
20451 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20452 long arg2 ;
20453 int arg3 ;
20454 wxString *arg4 = 0 ;
20455 int arg5 = (int) -1 ;
20456 long result;
20457 bool temp4 = False ;
20458 PyObject * obj0 = 0 ;
20459 PyObject * obj1 = 0 ;
20460 PyObject * obj2 = 0 ;
20461 PyObject * obj3 = 0 ;
20462 PyObject * obj4 = 0 ;
20463 char *kwnames[] = {
20464 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
20465 };
20466
20467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20470 arg2 = (long) SWIG_AsLong(obj1);
20471 if (PyErr_Occurred()) SWIG_fail;
20472 arg3 = (int) SWIG_AsInt(obj2);
20473 if (PyErr_Occurred()) SWIG_fail;
20474 {
20475 arg4 = wxString_in_helper(obj3);
20476 if (arg4 == NULL) SWIG_fail;
20477 temp4 = True;
20478 }
20479 if (obj4) {
20480 arg5 = (int) SWIG_AsInt(obj4);
20481 if (PyErr_Occurred()) SWIG_fail;
20482 }
20483 {
20484 PyThreadState* __tstate = wxPyBeginAllowThreads();
20485 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
20486
20487 wxPyEndAllowThreads(__tstate);
20488 if (PyErr_Occurred()) SWIG_fail;
20489 }
20490 resultobj = SWIG_FromLong((long)result);
20491 {
20492 if (temp4)
20493 delete arg4;
20494 }
20495 return resultobj;
20496 fail:
20497 {
20498 if (temp4)
20499 delete arg4;
20500 }
20501 return NULL;
20502 }
20503
20504
20505 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
20506 PyObject *resultobj;
20507 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20508 long arg2 ;
20509 long arg3 ;
20510 int result;
20511 PyObject * obj0 = 0 ;
20512 PyObject * obj1 = 0 ;
20513 PyObject * obj2 = 0 ;
20514 char *kwnames[] = {
20515 (char *) "self",(char *) "item",(char *) "stateMask", NULL
20516 };
20517
20518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
20519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20521 arg2 = (long) SWIG_AsLong(obj1);
20522 if (PyErr_Occurred()) SWIG_fail;
20523 arg3 = (long) SWIG_AsLong(obj2);
20524 if (PyErr_Occurred()) SWIG_fail;
20525 {
20526 PyThreadState* __tstate = wxPyBeginAllowThreads();
20527 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
20528
20529 wxPyEndAllowThreads(__tstate);
20530 if (PyErr_Occurred()) SWIG_fail;
20531 }
20532 resultobj = SWIG_FromInt((int)result);
20533 return resultobj;
20534 fail:
20535 return NULL;
20536 }
20537
20538
20539 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
20540 PyObject *resultobj;
20541 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20542 long arg2 ;
20543 long arg3 ;
20544 long arg4 ;
20545 bool result;
20546 PyObject * obj0 = 0 ;
20547 PyObject * obj1 = 0 ;
20548 PyObject * obj2 = 0 ;
20549 PyObject * obj3 = 0 ;
20550 char *kwnames[] = {
20551 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
20552 };
20553
20554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20557 arg2 = (long) SWIG_AsLong(obj1);
20558 if (PyErr_Occurred()) SWIG_fail;
20559 arg3 = (long) SWIG_AsLong(obj2);
20560 if (PyErr_Occurred()) SWIG_fail;
20561 arg4 = (long) SWIG_AsLong(obj3);
20562 if (PyErr_Occurred()) SWIG_fail;
20563 {
20564 PyThreadState* __tstate = wxPyBeginAllowThreads();
20565 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
20566
20567 wxPyEndAllowThreads(__tstate);
20568 if (PyErr_Occurred()) SWIG_fail;
20569 }
20570 {
20571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20572 }
20573 return resultobj;
20574 fail:
20575 return NULL;
20576 }
20577
20578
20579 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
20580 PyObject *resultobj;
20581 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20582 long arg2 ;
20583 int arg3 ;
20584 int arg4 ;
20585 bool result;
20586 PyObject * obj0 = 0 ;
20587 PyObject * obj1 = 0 ;
20588 PyObject * obj2 = 0 ;
20589 PyObject * obj3 = 0 ;
20590 char *kwnames[] = {
20591 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
20592 };
20593
20594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20597 arg2 = (long) SWIG_AsLong(obj1);
20598 if (PyErr_Occurred()) SWIG_fail;
20599 arg3 = (int) SWIG_AsInt(obj2);
20600 if (PyErr_Occurred()) SWIG_fail;
20601 arg4 = (int) SWIG_AsInt(obj3);
20602 if (PyErr_Occurred()) SWIG_fail;
20603 {
20604 PyThreadState* __tstate = wxPyBeginAllowThreads();
20605 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
20606
20607 wxPyEndAllowThreads(__tstate);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 }
20610 {
20611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20612 }
20613 return resultobj;
20614 fail:
20615 return NULL;
20616 }
20617
20618
20619 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
20620 PyObject *resultobj;
20621 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20622 long arg2 ;
20623 wxString result;
20624 PyObject * obj0 = 0 ;
20625 PyObject * obj1 = 0 ;
20626 char *kwnames[] = {
20627 (char *) "self",(char *) "item", NULL
20628 };
20629
20630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
20631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20633 arg2 = (long) SWIG_AsLong(obj1);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 {
20636 PyThreadState* __tstate = wxPyBeginAllowThreads();
20637 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
20638
20639 wxPyEndAllowThreads(__tstate);
20640 if (PyErr_Occurred()) SWIG_fail;
20641 }
20642 {
20643 #if wxUSE_UNICODE
20644 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20645 #else
20646 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20647 #endif
20648 }
20649 return resultobj;
20650 fail:
20651 return NULL;
20652 }
20653
20654
20655 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
20656 PyObject *resultobj;
20657 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20658 long arg2 ;
20659 wxString *arg3 = 0 ;
20660 bool temp3 = False ;
20661 PyObject * obj0 = 0 ;
20662 PyObject * obj1 = 0 ;
20663 PyObject * obj2 = 0 ;
20664 char *kwnames[] = {
20665 (char *) "self",(char *) "item",(char *) "str", NULL
20666 };
20667
20668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
20669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20671 arg2 = (long) SWIG_AsLong(obj1);
20672 if (PyErr_Occurred()) SWIG_fail;
20673 {
20674 arg3 = wxString_in_helper(obj2);
20675 if (arg3 == NULL) SWIG_fail;
20676 temp3 = True;
20677 }
20678 {
20679 PyThreadState* __tstate = wxPyBeginAllowThreads();
20680 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
20681
20682 wxPyEndAllowThreads(__tstate);
20683 if (PyErr_Occurred()) SWIG_fail;
20684 }
20685 Py_INCREF(Py_None); resultobj = Py_None;
20686 {
20687 if (temp3)
20688 delete arg3;
20689 }
20690 return resultobj;
20691 fail:
20692 {
20693 if (temp3)
20694 delete arg3;
20695 }
20696 return NULL;
20697 }
20698
20699
20700 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
20701 PyObject *resultobj;
20702 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20703 long arg2 ;
20704 long result;
20705 PyObject * obj0 = 0 ;
20706 PyObject * obj1 = 0 ;
20707 char *kwnames[] = {
20708 (char *) "self",(char *) "item", NULL
20709 };
20710
20711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
20712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20714 arg2 = (long) SWIG_AsLong(obj1);
20715 if (PyErr_Occurred()) SWIG_fail;
20716 {
20717 PyThreadState* __tstate = wxPyBeginAllowThreads();
20718 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
20719
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 resultobj = SWIG_FromLong((long)result);
20724 return resultobj;
20725 fail:
20726 return NULL;
20727 }
20728
20729
20730 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
20731 PyObject *resultobj;
20732 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20733 long arg2 ;
20734 long arg3 ;
20735 bool result;
20736 PyObject * obj0 = 0 ;
20737 PyObject * obj1 = 0 ;
20738 PyObject * obj2 = 0 ;
20739 char *kwnames[] = {
20740 (char *) "self",(char *) "item",(char *) "data", NULL
20741 };
20742
20743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
20744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20746 arg2 = (long) SWIG_AsLong(obj1);
20747 if (PyErr_Occurred()) SWIG_fail;
20748 arg3 = (long) SWIG_AsLong(obj2);
20749 if (PyErr_Occurred()) SWIG_fail;
20750 {
20751 PyThreadState* __tstate = wxPyBeginAllowThreads();
20752 result = (bool)(arg1)->SetItemData(arg2,arg3);
20753
20754 wxPyEndAllowThreads(__tstate);
20755 if (PyErr_Occurred()) SWIG_fail;
20756 }
20757 {
20758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20759 }
20760 return resultobj;
20761 fail:
20762 return NULL;
20763 }
20764
20765
20766 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
20767 PyObject *resultobj;
20768 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20769 long arg2 ;
20770 wxPoint result;
20771 PyObject * obj0 = 0 ;
20772 PyObject * obj1 = 0 ;
20773 char *kwnames[] = {
20774 (char *) "self",(char *) "item", NULL
20775 };
20776
20777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
20778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20780 arg2 = (long) SWIG_AsLong(obj1);
20781 if (PyErr_Occurred()) SWIG_fail;
20782 {
20783 PyThreadState* __tstate = wxPyBeginAllowThreads();
20784 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
20785
20786 wxPyEndAllowThreads(__tstate);
20787 if (PyErr_Occurred()) SWIG_fail;
20788 }
20789 {
20790 wxPoint * resultptr;
20791 resultptr = new wxPoint((wxPoint &) result);
20792 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20793 }
20794 return resultobj;
20795 fail:
20796 return NULL;
20797 }
20798
20799
20800 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) {
20801 PyObject *resultobj;
20802 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20803 long arg2 ;
20804 int arg3 = (int) wxLIST_RECT_BOUNDS ;
20805 wxRect result;
20806 PyObject * obj0 = 0 ;
20807 PyObject * obj1 = 0 ;
20808 PyObject * obj2 = 0 ;
20809 char *kwnames[] = {
20810 (char *) "self",(char *) "item",(char *) "code", NULL
20811 };
20812
20813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
20814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20816 arg2 = (long) SWIG_AsLong(obj1);
20817 if (PyErr_Occurred()) SWIG_fail;
20818 if (obj2) {
20819 arg3 = (int) SWIG_AsInt(obj2);
20820 if (PyErr_Occurred()) SWIG_fail;
20821 }
20822 {
20823 PyThreadState* __tstate = wxPyBeginAllowThreads();
20824 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
20825
20826 wxPyEndAllowThreads(__tstate);
20827 if (PyErr_Occurred()) SWIG_fail;
20828 }
20829 {
20830 wxRect * resultptr;
20831 resultptr = new wxRect((wxRect &) result);
20832 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
20833 }
20834 return resultobj;
20835 fail:
20836 return NULL;
20837 }
20838
20839
20840 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
20841 PyObject *resultobj;
20842 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20843 long arg2 ;
20844 wxPoint *arg3 = 0 ;
20845 bool result;
20846 wxPoint temp3 ;
20847 PyObject * obj0 = 0 ;
20848 PyObject * obj1 = 0 ;
20849 PyObject * obj2 = 0 ;
20850 char *kwnames[] = {
20851 (char *) "self",(char *) "item",(char *) "pos", NULL
20852 };
20853
20854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
20855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20857 arg2 = (long) SWIG_AsLong(obj1);
20858 if (PyErr_Occurred()) SWIG_fail;
20859 {
20860 arg3 = &temp3;
20861 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20862 }
20863 {
20864 PyThreadState* __tstate = wxPyBeginAllowThreads();
20865 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
20866
20867 wxPyEndAllowThreads(__tstate);
20868 if (PyErr_Occurred()) SWIG_fail;
20869 }
20870 {
20871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20872 }
20873 return resultobj;
20874 fail:
20875 return NULL;
20876 }
20877
20878
20879 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
20880 PyObject *resultobj;
20881 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20882 int result;
20883 PyObject * obj0 = 0 ;
20884 char *kwnames[] = {
20885 (char *) "self", NULL
20886 };
20887
20888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
20889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20891 {
20892 PyThreadState* __tstate = wxPyBeginAllowThreads();
20893 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
20894
20895 wxPyEndAllowThreads(__tstate);
20896 if (PyErr_Occurred()) SWIG_fail;
20897 }
20898 resultobj = SWIG_FromInt((int)result);
20899 return resultobj;
20900 fail:
20901 return NULL;
20902 }
20903
20904
20905 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
20906 PyObject *resultobj;
20907 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20908 int result;
20909 PyObject * obj0 = 0 ;
20910 char *kwnames[] = {
20911 (char *) "self", NULL
20912 };
20913
20914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
20915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20917 {
20918 PyThreadState* __tstate = wxPyBeginAllowThreads();
20919 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
20920
20921 wxPyEndAllowThreads(__tstate);
20922 if (PyErr_Occurred()) SWIG_fail;
20923 }
20924 resultobj = SWIG_FromInt((int)result);
20925 return resultobj;
20926 fail:
20927 return NULL;
20928 }
20929
20930
20931 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
20932 PyObject *resultobj;
20933 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20934 wxSize result;
20935 PyObject * obj0 = 0 ;
20936 char *kwnames[] = {
20937 (char *) "self", NULL
20938 };
20939
20940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
20941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20943 {
20944 PyThreadState* __tstate = wxPyBeginAllowThreads();
20945 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
20946
20947 wxPyEndAllowThreads(__tstate);
20948 if (PyErr_Occurred()) SWIG_fail;
20949 }
20950 {
20951 wxSize * resultptr;
20952 resultptr = new wxSize((wxSize &) result);
20953 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
20954 }
20955 return resultobj;
20956 fail:
20957 return NULL;
20958 }
20959
20960
20961 static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
20962 PyObject *resultobj;
20963 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20964 int arg2 ;
20965 bool arg3 = (bool) False ;
20966 PyObject * obj0 = 0 ;
20967 PyObject * obj1 = 0 ;
20968 PyObject * obj2 = 0 ;
20969 char *kwnames[] = {
20970 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
20971 };
20972
20973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
20974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20976 arg2 = (int) SWIG_AsInt(obj1);
20977 if (PyErr_Occurred()) SWIG_fail;
20978 if (obj2) {
20979 arg3 = (bool) SWIG_AsBool(obj2);
20980 if (PyErr_Occurred()) SWIG_fail;
20981 }
20982 {
20983 PyThreadState* __tstate = wxPyBeginAllowThreads();
20984 (arg1)->SetItemSpacing(arg2,arg3);
20985
20986 wxPyEndAllowThreads(__tstate);
20987 if (PyErr_Occurred()) SWIG_fail;
20988 }
20989 Py_INCREF(Py_None); resultobj = Py_None;
20990 return resultobj;
20991 fail:
20992 return NULL;
20993 }
20994
20995
20996 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
20997 PyObject *resultobj;
20998 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20999 int result;
21000 PyObject * obj0 = 0 ;
21001 char *kwnames[] = {
21002 (char *) "self", NULL
21003 };
21004
21005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
21006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21008 {
21009 PyThreadState* __tstate = wxPyBeginAllowThreads();
21010 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
21011
21012 wxPyEndAllowThreads(__tstate);
21013 if (PyErr_Occurred()) SWIG_fail;
21014 }
21015 resultobj = SWIG_FromInt((int)result);
21016 return resultobj;
21017 fail:
21018 return NULL;
21019 }
21020
21021
21022 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
21023 PyObject *resultobj;
21024 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21025 wxColour result;
21026 PyObject * obj0 = 0 ;
21027 char *kwnames[] = {
21028 (char *) "self", NULL
21029 };
21030
21031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
21032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21034 {
21035 PyThreadState* __tstate = wxPyBeginAllowThreads();
21036 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
21037
21038 wxPyEndAllowThreads(__tstate);
21039 if (PyErr_Occurred()) SWIG_fail;
21040 }
21041 {
21042 wxColour * resultptr;
21043 resultptr = new wxColour((wxColour &) result);
21044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21045 }
21046 return resultobj;
21047 fail:
21048 return NULL;
21049 }
21050
21051
21052 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
21053 PyObject *resultobj;
21054 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21055 wxColour *arg2 = 0 ;
21056 wxColour temp2 ;
21057 PyObject * obj0 = 0 ;
21058 PyObject * obj1 = 0 ;
21059 char *kwnames[] = {
21060 (char *) "self",(char *) "col", NULL
21061 };
21062
21063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
21064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21066 {
21067 arg2 = &temp2;
21068 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21069 }
21070 {
21071 PyThreadState* __tstate = wxPyBeginAllowThreads();
21072 (arg1)->SetTextColour((wxColour const &)*arg2);
21073
21074 wxPyEndAllowThreads(__tstate);
21075 if (PyErr_Occurred()) SWIG_fail;
21076 }
21077 Py_INCREF(Py_None); resultobj = Py_None;
21078 return resultobj;
21079 fail:
21080 return NULL;
21081 }
21082
21083
21084 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) {
21085 PyObject *resultobj;
21086 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21087 long result;
21088 PyObject * obj0 = 0 ;
21089 char *kwnames[] = {
21090 (char *) "self", NULL
21091 };
21092
21093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
21094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21096 {
21097 PyThreadState* __tstate = wxPyBeginAllowThreads();
21098 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
21099
21100 wxPyEndAllowThreads(__tstate);
21101 if (PyErr_Occurred()) SWIG_fail;
21102 }
21103 resultobj = SWIG_FromLong((long)result);
21104 return resultobj;
21105 fail:
21106 return NULL;
21107 }
21108
21109
21110 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) {
21111 PyObject *resultobj;
21112 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21113 long arg2 ;
21114 bool arg3 = (bool) True ;
21115 PyObject * obj0 = 0 ;
21116 PyObject * obj1 = 0 ;
21117 PyObject * obj2 = 0 ;
21118 char *kwnames[] = {
21119 (char *) "self",(char *) "style",(char *) "add", NULL
21120 };
21121
21122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
21123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21125 arg2 = (long) SWIG_AsLong(obj1);
21126 if (PyErr_Occurred()) SWIG_fail;
21127 if (obj2) {
21128 arg3 = (bool) SWIG_AsBool(obj2);
21129 if (PyErr_Occurred()) SWIG_fail;
21130 }
21131 {
21132 PyThreadState* __tstate = wxPyBeginAllowThreads();
21133 (arg1)->SetSingleStyle(arg2,arg3);
21134
21135 wxPyEndAllowThreads(__tstate);
21136 if (PyErr_Occurred()) SWIG_fail;
21137 }
21138 Py_INCREF(Py_None); resultobj = Py_None;
21139 return resultobj;
21140 fail:
21141 return NULL;
21142 }
21143
21144
21145 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
21146 PyObject *resultobj;
21147 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21148 long arg2 ;
21149 PyObject * obj0 = 0 ;
21150 PyObject * obj1 = 0 ;
21151 char *kwnames[] = {
21152 (char *) "self",(char *) "style", NULL
21153 };
21154
21155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
21156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21158 arg2 = (long) SWIG_AsLong(obj1);
21159 if (PyErr_Occurred()) SWIG_fail;
21160 {
21161 PyThreadState* __tstate = wxPyBeginAllowThreads();
21162 (arg1)->SetWindowStyleFlag(arg2);
21163
21164 wxPyEndAllowThreads(__tstate);
21165 if (PyErr_Occurred()) SWIG_fail;
21166 }
21167 Py_INCREF(Py_None); resultobj = Py_None;
21168 return resultobj;
21169 fail:
21170 return NULL;
21171 }
21172
21173
21174 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
21175 PyObject *resultobj;
21176 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21177 long arg2 ;
21178 int arg3 = (int) wxLIST_NEXT_ALL ;
21179 int arg4 = (int) wxLIST_STATE_DONTCARE ;
21180 long result;
21181 PyObject * obj0 = 0 ;
21182 PyObject * obj1 = 0 ;
21183 PyObject * obj2 = 0 ;
21184 PyObject * obj3 = 0 ;
21185 char *kwnames[] = {
21186 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
21187 };
21188
21189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21192 arg2 = (long) SWIG_AsLong(obj1);
21193 if (PyErr_Occurred()) SWIG_fail;
21194 if (obj2) {
21195 arg3 = (int) SWIG_AsInt(obj2);
21196 if (PyErr_Occurred()) SWIG_fail;
21197 }
21198 if (obj3) {
21199 arg4 = (int) SWIG_AsInt(obj3);
21200 if (PyErr_Occurred()) SWIG_fail;
21201 }
21202 {
21203 PyThreadState* __tstate = wxPyBeginAllowThreads();
21204 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
21205
21206 wxPyEndAllowThreads(__tstate);
21207 if (PyErr_Occurred()) SWIG_fail;
21208 }
21209 resultobj = SWIG_FromLong((long)result);
21210 return resultobj;
21211 fail:
21212 return NULL;
21213 }
21214
21215
21216 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
21217 PyObject *resultobj;
21218 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21219 int arg2 ;
21220 wxImageList *result;
21221 PyObject * obj0 = 0 ;
21222 PyObject * obj1 = 0 ;
21223 char *kwnames[] = {
21224 (char *) "self",(char *) "which", NULL
21225 };
21226
21227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
21228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21230 arg2 = (int) SWIG_AsInt(obj1);
21231 if (PyErr_Occurred()) SWIG_fail;
21232 {
21233 PyThreadState* __tstate = wxPyBeginAllowThreads();
21234 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
21235
21236 wxPyEndAllowThreads(__tstate);
21237 if (PyErr_Occurred()) SWIG_fail;
21238 }
21239 {
21240 resultobj = wxPyMake_wxObject(result);
21241 }
21242 return resultobj;
21243 fail:
21244 return NULL;
21245 }
21246
21247
21248 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
21249 PyObject *resultobj;
21250 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21251 wxImageList *arg2 = (wxImageList *) 0 ;
21252 int arg3 ;
21253 PyObject * obj0 = 0 ;
21254 PyObject * obj1 = 0 ;
21255 PyObject * obj2 = 0 ;
21256 char *kwnames[] = {
21257 (char *) "self",(char *) "imageList",(char *) "which", NULL
21258 };
21259
21260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21263 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
21264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21265 arg3 = (int) SWIG_AsInt(obj2);
21266 if (PyErr_Occurred()) SWIG_fail;
21267 {
21268 PyThreadState* __tstate = wxPyBeginAllowThreads();
21269 (arg1)->SetImageList(arg2,arg3);
21270
21271 wxPyEndAllowThreads(__tstate);
21272 if (PyErr_Occurred()) SWIG_fail;
21273 }
21274 Py_INCREF(Py_None); resultobj = Py_None;
21275 return resultobj;
21276 fail:
21277 return NULL;
21278 }
21279
21280
21281 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
21282 PyObject *resultobj;
21283 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21284 wxImageList *arg2 = (wxImageList *) 0 ;
21285 int arg3 ;
21286 PyObject * obj0 = 0 ;
21287 PyObject * obj1 = 0 ;
21288 PyObject * obj2 = 0 ;
21289 char *kwnames[] = {
21290 (char *) "self",(char *) "imageList",(char *) "which", NULL
21291 };
21292
21293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
21297 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
21298 arg3 = (int) SWIG_AsInt(obj2);
21299 if (PyErr_Occurred()) SWIG_fail;
21300 {
21301 PyThreadState* __tstate = wxPyBeginAllowThreads();
21302 (arg1)->AssignImageList(arg2,arg3);
21303
21304 wxPyEndAllowThreads(__tstate);
21305 if (PyErr_Occurred()) SWIG_fail;
21306 }
21307 Py_INCREF(Py_None); resultobj = Py_None;
21308 return resultobj;
21309 fail:
21310 return NULL;
21311 }
21312
21313
21314 static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) {
21315 PyObject *resultobj;
21316 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21317 bool result;
21318 PyObject * obj0 = 0 ;
21319 char *kwnames[] = {
21320 (char *) "self", NULL
21321 };
21322
21323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
21324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21326 {
21327 PyThreadState* __tstate = wxPyBeginAllowThreads();
21328 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
21329
21330 wxPyEndAllowThreads(__tstate);
21331 if (PyErr_Occurred()) SWIG_fail;
21332 }
21333 {
21334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21335 }
21336 return resultobj;
21337 fail:
21338 return NULL;
21339 }
21340
21341
21342 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) {
21343 PyObject *resultobj;
21344 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21345 bool result;
21346 PyObject * obj0 = 0 ;
21347 char *kwnames[] = {
21348 (char *) "self", NULL
21349 };
21350
21351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
21352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21354 {
21355 PyThreadState* __tstate = wxPyBeginAllowThreads();
21356 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
21357
21358 wxPyEndAllowThreads(__tstate);
21359 if (PyErr_Occurred()) SWIG_fail;
21360 }
21361 {
21362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21363 }
21364 return resultobj;
21365 fail:
21366 return NULL;
21367 }
21368
21369
21370 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) {
21371 PyObject *resultobj;
21372 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21373 long arg2 ;
21374 PyObject * obj0 = 0 ;
21375 PyObject * obj1 = 0 ;
21376 char *kwnames[] = {
21377 (char *) "self",(char *) "item", NULL
21378 };
21379
21380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
21381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21383 arg2 = (long) SWIG_AsLong(obj1);
21384 if (PyErr_Occurred()) SWIG_fail;
21385 {
21386 PyThreadState* __tstate = wxPyBeginAllowThreads();
21387 (arg1)->RefreshItem(arg2);
21388
21389 wxPyEndAllowThreads(__tstate);
21390 if (PyErr_Occurred()) SWIG_fail;
21391 }
21392 Py_INCREF(Py_None); resultobj = Py_None;
21393 return resultobj;
21394 fail:
21395 return NULL;
21396 }
21397
21398
21399 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) {
21400 PyObject *resultobj;
21401 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21402 long arg2 ;
21403 long arg3 ;
21404 PyObject * obj0 = 0 ;
21405 PyObject * obj1 = 0 ;
21406 PyObject * obj2 = 0 ;
21407 char *kwnames[] = {
21408 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
21409 };
21410
21411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
21412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21414 arg2 = (long) SWIG_AsLong(obj1);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 arg3 = (long) SWIG_AsLong(obj2);
21417 if (PyErr_Occurred()) SWIG_fail;
21418 {
21419 PyThreadState* __tstate = wxPyBeginAllowThreads();
21420 (arg1)->RefreshItems(arg2,arg3);
21421
21422 wxPyEndAllowThreads(__tstate);
21423 if (PyErr_Occurred()) SWIG_fail;
21424 }
21425 Py_INCREF(Py_None); resultobj = Py_None;
21426 return resultobj;
21427 fail:
21428 return NULL;
21429 }
21430
21431
21432 static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) {
21433 PyObject *resultobj;
21434 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21435 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
21436 bool result;
21437 PyObject * obj0 = 0 ;
21438 PyObject * obj1 = 0 ;
21439 char *kwnames[] = {
21440 (char *) "self",(char *) "flag", NULL
21441 };
21442
21443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
21444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21446 if (obj1) {
21447 arg2 = (int) SWIG_AsInt(obj1);
21448 if (PyErr_Occurred()) SWIG_fail;
21449 }
21450 {
21451 PyThreadState* __tstate = wxPyBeginAllowThreads();
21452 result = (bool)(arg1)->Arrange(arg2);
21453
21454 wxPyEndAllowThreads(__tstate);
21455 if (PyErr_Occurred()) SWIG_fail;
21456 }
21457 {
21458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21459 }
21460 return resultobj;
21461 fail:
21462 return NULL;
21463 }
21464
21465
21466 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
21467 PyObject *resultobj;
21468 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21469 long arg2 ;
21470 bool result;
21471 PyObject * obj0 = 0 ;
21472 PyObject * obj1 = 0 ;
21473 char *kwnames[] = {
21474 (char *) "self",(char *) "item", NULL
21475 };
21476
21477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
21478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21480 arg2 = (long) SWIG_AsLong(obj1);
21481 if (PyErr_Occurred()) SWIG_fail;
21482 {
21483 PyThreadState* __tstate = wxPyBeginAllowThreads();
21484 result = (bool)(arg1)->DeleteItem(arg2);
21485
21486 wxPyEndAllowThreads(__tstate);
21487 if (PyErr_Occurred()) SWIG_fail;
21488 }
21489 {
21490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21491 }
21492 return resultobj;
21493 fail:
21494 return NULL;
21495 }
21496
21497
21498 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
21499 PyObject *resultobj;
21500 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21501 bool result;
21502 PyObject * obj0 = 0 ;
21503 char *kwnames[] = {
21504 (char *) "self", NULL
21505 };
21506
21507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
21508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21510 {
21511 PyThreadState* __tstate = wxPyBeginAllowThreads();
21512 result = (bool)(arg1)->DeleteAllItems();
21513
21514 wxPyEndAllowThreads(__tstate);
21515 if (PyErr_Occurred()) SWIG_fail;
21516 }
21517 {
21518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21519 }
21520 return resultobj;
21521 fail:
21522 return NULL;
21523 }
21524
21525
21526 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21527 PyObject *resultobj;
21528 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21529 int arg2 ;
21530 bool result;
21531 PyObject * obj0 = 0 ;
21532 PyObject * obj1 = 0 ;
21533 char *kwnames[] = {
21534 (char *) "self",(char *) "col", NULL
21535 };
21536
21537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
21538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21540 arg2 = (int) SWIG_AsInt(obj1);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 {
21543 PyThreadState* __tstate = wxPyBeginAllowThreads();
21544 result = (bool)(arg1)->DeleteColumn(arg2);
21545
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 {
21550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21551 }
21552 return resultobj;
21553 fail:
21554 return NULL;
21555 }
21556
21557
21558 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) {
21559 PyObject *resultobj;
21560 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21561 bool result;
21562 PyObject * obj0 = 0 ;
21563 char *kwnames[] = {
21564 (char *) "self", NULL
21565 };
21566
21567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
21568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21570 {
21571 PyThreadState* __tstate = wxPyBeginAllowThreads();
21572 result = (bool)(arg1)->DeleteAllColumns();
21573
21574 wxPyEndAllowThreads(__tstate);
21575 if (PyErr_Occurred()) SWIG_fail;
21576 }
21577 {
21578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21579 }
21580 return resultobj;
21581 fail:
21582 return NULL;
21583 }
21584
21585
21586 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) {
21587 PyObject *resultobj;
21588 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21589 PyObject * obj0 = 0 ;
21590 char *kwnames[] = {
21591 (char *) "self", NULL
21592 };
21593
21594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
21595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21597 {
21598 PyThreadState* __tstate = wxPyBeginAllowThreads();
21599 (arg1)->ClearAll();
21600
21601 wxPyEndAllowThreads(__tstate);
21602 if (PyErr_Occurred()) SWIG_fail;
21603 }
21604 Py_INCREF(Py_None); resultobj = Py_None;
21605 return resultobj;
21606 fail:
21607 return NULL;
21608 }
21609
21610
21611 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
21612 PyObject *resultobj;
21613 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21614 long arg2 ;
21615 PyObject * obj0 = 0 ;
21616 PyObject * obj1 = 0 ;
21617 char *kwnames[] = {
21618 (char *) "self",(char *) "item", NULL
21619 };
21620
21621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
21622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21624 arg2 = (long) SWIG_AsLong(obj1);
21625 if (PyErr_Occurred()) SWIG_fail;
21626 {
21627 PyThreadState* __tstate = wxPyBeginAllowThreads();
21628 (arg1)->EditLabel(arg2);
21629
21630 wxPyEndAllowThreads(__tstate);
21631 if (PyErr_Occurred()) SWIG_fail;
21632 }
21633 Py_INCREF(Py_None); resultobj = Py_None;
21634 return resultobj;
21635 fail:
21636 return NULL;
21637 }
21638
21639
21640 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
21641 PyObject *resultobj;
21642 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21643 long arg2 ;
21644 bool 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_EnsureVisible",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 = (bool)(arg1)->EnsureVisible(arg2);
21659
21660 wxPyEndAllowThreads(__tstate);
21661 if (PyErr_Occurred()) SWIG_fail;
21662 }
21663 {
21664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21665 }
21666 return resultobj;
21667 fail:
21668 return NULL;
21669 }
21670
21671
21672 static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
21673 PyObject *resultobj;
21674 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21675 long arg2 ;
21676 wxString *arg3 = 0 ;
21677 bool arg4 = (bool) False ;
21678 long result;
21679 bool temp3 = False ;
21680 PyObject * obj0 = 0 ;
21681 PyObject * obj1 = 0 ;
21682 PyObject * obj2 = 0 ;
21683 PyObject * obj3 = 0 ;
21684 char *kwnames[] = {
21685 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
21686 };
21687
21688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21691 arg2 = (long) SWIG_AsLong(obj1);
21692 if (PyErr_Occurred()) SWIG_fail;
21693 {
21694 arg3 = wxString_in_helper(obj2);
21695 if (arg3 == NULL) SWIG_fail;
21696 temp3 = True;
21697 }
21698 if (obj3) {
21699 arg4 = (bool) SWIG_AsBool(obj3);
21700 if (PyErr_Occurred()) SWIG_fail;
21701 }
21702 {
21703 PyThreadState* __tstate = wxPyBeginAllowThreads();
21704 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
21705
21706 wxPyEndAllowThreads(__tstate);
21707 if (PyErr_Occurred()) SWIG_fail;
21708 }
21709 resultobj = SWIG_FromLong((long)result);
21710 {
21711 if (temp3)
21712 delete arg3;
21713 }
21714 return resultobj;
21715 fail:
21716 {
21717 if (temp3)
21718 delete arg3;
21719 }
21720 return NULL;
21721 }
21722
21723
21724 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) {
21725 PyObject *resultobj;
21726 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21727 long arg2 ;
21728 long arg3 ;
21729 long result;
21730 PyObject * obj0 = 0 ;
21731 PyObject * obj1 = 0 ;
21732 PyObject * obj2 = 0 ;
21733 char *kwnames[] = {
21734 (char *) "self",(char *) "start",(char *) "data", NULL
21735 };
21736
21737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21740 arg2 = (long) SWIG_AsLong(obj1);
21741 if (PyErr_Occurred()) SWIG_fail;
21742 arg3 = (long) SWIG_AsLong(obj2);
21743 if (PyErr_Occurred()) SWIG_fail;
21744 {
21745 PyThreadState* __tstate = wxPyBeginAllowThreads();
21746 result = (long)(arg1)->FindItem(arg2,arg3);
21747
21748 wxPyEndAllowThreads(__tstate);
21749 if (PyErr_Occurred()) SWIG_fail;
21750 }
21751 resultobj = SWIG_FromLong((long)result);
21752 return resultobj;
21753 fail:
21754 return NULL;
21755 }
21756
21757
21758 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) {
21759 PyObject *resultobj;
21760 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21761 long arg2 ;
21762 wxPoint *arg3 = 0 ;
21763 int arg4 ;
21764 long result;
21765 wxPoint temp3 ;
21766 PyObject * obj0 = 0 ;
21767 PyObject * obj1 = 0 ;
21768 PyObject * obj2 = 0 ;
21769 PyObject * obj3 = 0 ;
21770 char *kwnames[] = {
21771 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
21772 };
21773
21774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21777 arg2 = (long) SWIG_AsLong(obj1);
21778 if (PyErr_Occurred()) SWIG_fail;
21779 {
21780 arg3 = &temp3;
21781 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21782 }
21783 arg4 = (int) SWIG_AsInt(obj3);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 {
21786 PyThreadState* __tstate = wxPyBeginAllowThreads();
21787 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
21788
21789 wxPyEndAllowThreads(__tstate);
21790 if (PyErr_Occurred()) SWIG_fail;
21791 }
21792 resultobj = SWIG_FromLong((long)result);
21793 return resultobj;
21794 fail:
21795 return NULL;
21796 }
21797
21798
21799 static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
21800 PyObject *resultobj;
21801 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21802 wxPoint *arg2 = 0 ;
21803 int *arg3 = 0 ;
21804 long result;
21805 wxPoint temp2 ;
21806 int temp3 ;
21807 PyObject * obj0 = 0 ;
21808 PyObject * obj1 = 0 ;
21809 char *kwnames[] = {
21810 (char *) "self",(char *) "point", NULL
21811 };
21812
21813 arg3 = &temp3;
21814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
21815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21817 {
21818 arg2 = &temp2;
21819 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21820 }
21821 {
21822 PyThreadState* __tstate = wxPyBeginAllowThreads();
21823 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
21824
21825 wxPyEndAllowThreads(__tstate);
21826 if (PyErr_Occurred()) SWIG_fail;
21827 }
21828 resultobj = SWIG_FromLong((long)result);
21829 {
21830 PyObject *o = PyInt_FromLong((long) (*arg3));
21831 resultobj = t_output_helper(resultobj,o);
21832 }
21833 return resultobj;
21834 fail:
21835 return NULL;
21836 }
21837
21838
21839 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
21840 PyObject *resultobj;
21841 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21842 wxListItem *arg2 = 0 ;
21843 long result;
21844 PyObject * obj0 = 0 ;
21845 PyObject * obj1 = 0 ;
21846 char *kwnames[] = {
21847 (char *) "self",(char *) "info", NULL
21848 };
21849
21850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
21851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21853 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21854 SWIG_POINTER_EXCEPTION | 0)) == -1)
21855 SWIG_fail;
21856 if (arg2 == NULL) {
21857 PyErr_SetString(PyExc_TypeError,"null reference");
21858 SWIG_fail;
21859 }
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 result = (long)(arg1)->InsertItem(*arg2);
21863
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 resultobj = SWIG_FromLong((long)result);
21868 return resultobj;
21869 fail:
21870 return NULL;
21871 }
21872
21873
21874 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
21875 PyObject *resultobj;
21876 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21877 long arg2 ;
21878 wxString *arg3 = 0 ;
21879 long result;
21880 bool temp3 = False ;
21881 PyObject * obj0 = 0 ;
21882 PyObject * obj1 = 0 ;
21883 PyObject * obj2 = 0 ;
21884 char *kwnames[] = {
21885 (char *) "self",(char *) "index",(char *) "label", NULL
21886 };
21887
21888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21891 arg2 = (long) SWIG_AsLong(obj1);
21892 if (PyErr_Occurred()) SWIG_fail;
21893 {
21894 arg3 = wxString_in_helper(obj2);
21895 if (arg3 == NULL) SWIG_fail;
21896 temp3 = True;
21897 }
21898 {
21899 PyThreadState* __tstate = wxPyBeginAllowThreads();
21900 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
21901
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 resultobj = SWIG_FromLong((long)result);
21906 {
21907 if (temp3)
21908 delete arg3;
21909 }
21910 return resultobj;
21911 fail:
21912 {
21913 if (temp3)
21914 delete arg3;
21915 }
21916 return NULL;
21917 }
21918
21919
21920 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) {
21921 PyObject *resultobj;
21922 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21923 long arg2 ;
21924 int arg3 ;
21925 long result;
21926 PyObject * obj0 = 0 ;
21927 PyObject * obj1 = 0 ;
21928 PyObject * obj2 = 0 ;
21929 char *kwnames[] = {
21930 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
21931 };
21932
21933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21936 arg2 = (long) SWIG_AsLong(obj1);
21937 if (PyErr_Occurred()) SWIG_fail;
21938 arg3 = (int) SWIG_AsInt(obj2);
21939 if (PyErr_Occurred()) SWIG_fail;
21940 {
21941 PyThreadState* __tstate = wxPyBeginAllowThreads();
21942 result = (long)(arg1)->InsertItem(arg2,arg3);
21943
21944 wxPyEndAllowThreads(__tstate);
21945 if (PyErr_Occurred()) SWIG_fail;
21946 }
21947 resultobj = SWIG_FromLong((long)result);
21948 return resultobj;
21949 fail:
21950 return NULL;
21951 }
21952
21953
21954 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
21955 PyObject *resultobj;
21956 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21957 long arg2 ;
21958 wxString *arg3 = 0 ;
21959 int arg4 ;
21960 long result;
21961 bool temp3 = False ;
21962 PyObject * obj0 = 0 ;
21963 PyObject * obj1 = 0 ;
21964 PyObject * obj2 = 0 ;
21965 PyObject * obj3 = 0 ;
21966 char *kwnames[] = {
21967 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
21968 };
21969
21970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21973 arg2 = (long) SWIG_AsLong(obj1);
21974 if (PyErr_Occurred()) SWIG_fail;
21975 {
21976 arg3 = wxString_in_helper(obj2);
21977 if (arg3 == NULL) SWIG_fail;
21978 temp3 = True;
21979 }
21980 arg4 = (int) SWIG_AsInt(obj3);
21981 if (PyErr_Occurred()) SWIG_fail;
21982 {
21983 PyThreadState* __tstate = wxPyBeginAllowThreads();
21984 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
21985
21986 wxPyEndAllowThreads(__tstate);
21987 if (PyErr_Occurred()) SWIG_fail;
21988 }
21989 resultobj = SWIG_FromLong((long)result);
21990 {
21991 if (temp3)
21992 delete arg3;
21993 }
21994 return resultobj;
21995 fail:
21996 {
21997 if (temp3)
21998 delete arg3;
21999 }
22000 return NULL;
22001 }
22002
22003
22004 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) {
22005 PyObject *resultobj;
22006 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22007 long arg2 ;
22008 wxListItem *arg3 = 0 ;
22009 long result;
22010 PyObject * obj0 = 0 ;
22011 PyObject * obj1 = 0 ;
22012 PyObject * obj2 = 0 ;
22013 char *kwnames[] = {
22014 (char *) "self",(char *) "col",(char *) "info", NULL
22015 };
22016
22017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22020 arg2 = (long) SWIG_AsLong(obj1);
22021 if (PyErr_Occurred()) SWIG_fail;
22022 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
22023 SWIG_POINTER_EXCEPTION | 0)) == -1)
22024 SWIG_fail;
22025 if (arg3 == NULL) {
22026 PyErr_SetString(PyExc_TypeError,"null reference");
22027 SWIG_fail;
22028 }
22029 {
22030 PyThreadState* __tstate = wxPyBeginAllowThreads();
22031 result = (long)(arg1)->InsertColumn(arg2,*arg3);
22032
22033 wxPyEndAllowThreads(__tstate);
22034 if (PyErr_Occurred()) SWIG_fail;
22035 }
22036 resultobj = SWIG_FromLong((long)result);
22037 return resultobj;
22038 fail:
22039 return NULL;
22040 }
22041
22042
22043 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22044 PyObject *resultobj;
22045 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22046 long arg2 ;
22047 wxString *arg3 = 0 ;
22048 int arg4 = (int) wxLIST_FORMAT_LEFT ;
22049 int arg5 = (int) -1 ;
22050 long result;
22051 bool temp3 = False ;
22052 PyObject * obj0 = 0 ;
22053 PyObject * obj1 = 0 ;
22054 PyObject * obj2 = 0 ;
22055 PyObject * obj3 = 0 ;
22056 PyObject * obj4 = 0 ;
22057 char *kwnames[] = {
22058 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
22059 };
22060
22061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22064 arg2 = (long) SWIG_AsLong(obj1);
22065 if (PyErr_Occurred()) SWIG_fail;
22066 {
22067 arg3 = wxString_in_helper(obj2);
22068 if (arg3 == NULL) SWIG_fail;
22069 temp3 = True;
22070 }
22071 if (obj3) {
22072 arg4 = (int) SWIG_AsInt(obj3);
22073 if (PyErr_Occurred()) SWIG_fail;
22074 }
22075 if (obj4) {
22076 arg5 = (int) SWIG_AsInt(obj4);
22077 if (PyErr_Occurred()) SWIG_fail;
22078 }
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
22082
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
22086 resultobj = SWIG_FromLong((long)result);
22087 {
22088 if (temp3)
22089 delete arg3;
22090 }
22091 return resultobj;
22092 fail:
22093 {
22094 if (temp3)
22095 delete arg3;
22096 }
22097 return NULL;
22098 }
22099
22100
22101 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22102 PyObject *resultobj;
22103 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22104 long arg2 ;
22105 PyObject * obj0 = 0 ;
22106 PyObject * obj1 = 0 ;
22107 char *kwnames[] = {
22108 (char *) "self",(char *) "count", NULL
22109 };
22110
22111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
22112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22114 arg2 = (long) SWIG_AsLong(obj1);
22115 if (PyErr_Occurred()) SWIG_fail;
22116 {
22117 PyThreadState* __tstate = wxPyBeginAllowThreads();
22118 (arg1)->SetItemCount(arg2);
22119
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 Py_INCREF(Py_None); resultobj = Py_None;
22124 return resultobj;
22125 fail:
22126 return NULL;
22127 }
22128
22129
22130 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) {
22131 PyObject *resultobj;
22132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22133 int arg2 ;
22134 int arg3 ;
22135 bool result;
22136 PyObject * obj0 = 0 ;
22137 PyObject * obj1 = 0 ;
22138 PyObject * obj2 = 0 ;
22139 char *kwnames[] = {
22140 (char *) "self",(char *) "dx",(char *) "dy", NULL
22141 };
22142
22143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",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 = (int) SWIG_AsInt(obj1);
22147 if (PyErr_Occurred()) SWIG_fail;
22148 arg3 = (int) SWIG_AsInt(obj2);
22149 if (PyErr_Occurred()) SWIG_fail;
22150 {
22151 PyThreadState* __tstate = wxPyBeginAllowThreads();
22152 result = (bool)(arg1)->ScrollList(arg2,arg3);
22153
22154 wxPyEndAllowThreads(__tstate);
22155 if (PyErr_Occurred()) SWIG_fail;
22156 }
22157 {
22158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22159 }
22160 return resultobj;
22161 fail:
22162 return NULL;
22163 }
22164
22165
22166 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22167 PyObject *resultobj;
22168 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22169 long arg2 ;
22170 wxColour *arg3 = 0 ;
22171 wxColour temp3 ;
22172 PyObject * obj0 = 0 ;
22173 PyObject * obj1 = 0 ;
22174 PyObject * obj2 = 0 ;
22175 char *kwnames[] = {
22176 (char *) "self",(char *) "item",(char *) "col", NULL
22177 };
22178
22179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22182 arg2 = (long) SWIG_AsLong(obj1);
22183 if (PyErr_Occurred()) SWIG_fail;
22184 {
22185 arg3 = &temp3;
22186 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22187 }
22188 {
22189 PyThreadState* __tstate = wxPyBeginAllowThreads();
22190 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
22191
22192 wxPyEndAllowThreads(__tstate);
22193 if (PyErr_Occurred()) SWIG_fail;
22194 }
22195 Py_INCREF(Py_None); resultobj = Py_None;
22196 return resultobj;
22197 fail:
22198 return NULL;
22199 }
22200
22201
22202 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22203 PyObject *resultobj;
22204 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22205 long arg2 ;
22206 wxColour result;
22207 PyObject * obj0 = 0 ;
22208 PyObject * obj1 = 0 ;
22209 char *kwnames[] = {
22210 (char *) "self",(char *) "item", NULL
22211 };
22212
22213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
22214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22216 arg2 = (long) SWIG_AsLong(obj1);
22217 if (PyErr_Occurred()) SWIG_fail;
22218 {
22219 PyThreadState* __tstate = wxPyBeginAllowThreads();
22220 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
22221
22222 wxPyEndAllowThreads(__tstate);
22223 if (PyErr_Occurred()) SWIG_fail;
22224 }
22225 {
22226 wxColour * resultptr;
22227 resultptr = new wxColour((wxColour &) result);
22228 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22229 }
22230 return resultobj;
22231 fail:
22232 return NULL;
22233 }
22234
22235
22236 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
22237 PyObject *resultobj;
22238 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22239 long arg2 ;
22240 wxColour *arg3 = 0 ;
22241 wxColour temp3 ;
22242 PyObject * obj0 = 0 ;
22243 PyObject * obj1 = 0 ;
22244 PyObject * obj2 = 0 ;
22245 char *kwnames[] = {
22246 (char *) "self",(char *) "item",(char *) "col", NULL
22247 };
22248
22249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22252 arg2 = (long) SWIG_AsLong(obj1);
22253 if (PyErr_Occurred()) SWIG_fail;
22254 {
22255 arg3 = &temp3;
22256 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22257 }
22258 {
22259 PyThreadState* __tstate = wxPyBeginAllowThreads();
22260 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
22261
22262 wxPyEndAllowThreads(__tstate);
22263 if (PyErr_Occurred()) SWIG_fail;
22264 }
22265 Py_INCREF(Py_None); resultobj = Py_None;
22266 return resultobj;
22267 fail:
22268 return NULL;
22269 }
22270
22271
22272 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
22273 PyObject *resultobj;
22274 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22275 long arg2 ;
22276 wxColour result;
22277 PyObject * obj0 = 0 ;
22278 PyObject * obj1 = 0 ;
22279 char *kwnames[] = {
22280 (char *) "self",(char *) "item", NULL
22281 };
22282
22283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
22284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22286 arg2 = (long) SWIG_AsLong(obj1);
22287 if (PyErr_Occurred()) SWIG_fail;
22288 {
22289 PyThreadState* __tstate = wxPyBeginAllowThreads();
22290 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
22291
22292 wxPyEndAllowThreads(__tstate);
22293 if (PyErr_Occurred()) SWIG_fail;
22294 }
22295 {
22296 wxColour * resultptr;
22297 resultptr = new wxColour((wxColour &) result);
22298 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22299 }
22300 return resultobj;
22301 fail:
22302 return NULL;
22303 }
22304
22305
22306 static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) {
22307 PyObject *resultobj;
22308 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22309 PyObject *arg2 = (PyObject *) 0 ;
22310 bool result;
22311 PyObject * obj0 = 0 ;
22312 PyObject * obj1 = 0 ;
22313 char *kwnames[] = {
22314 (char *) "self",(char *) "func", NULL
22315 };
22316
22317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
22318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22320 arg2 = obj1;
22321 {
22322 PyThreadState* __tstate = wxPyBeginAllowThreads();
22323 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
22324
22325 wxPyEndAllowThreads(__tstate);
22326 if (PyErr_Occurred()) SWIG_fail;
22327 }
22328 {
22329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22330 }
22331 return resultobj;
22332 fail:
22333 return NULL;
22334 }
22335
22336
22337 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) {
22338 PyObject *resultobj;
22339 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22340 wxWindow *result;
22341 PyObject * obj0 = 0 ;
22342 char *kwnames[] = {
22343 (char *) "self", NULL
22344 };
22345
22346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
22347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22349 {
22350 PyThreadState* __tstate = wxPyBeginAllowThreads();
22351 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
22352
22353 wxPyEndAllowThreads(__tstate);
22354 if (PyErr_Occurred()) SWIG_fail;
22355 }
22356 {
22357 resultobj = wxPyMake_wxObject(result);
22358 }
22359 return resultobj;
22360 fail:
22361 return NULL;
22362 }
22363
22364
22365 static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) {
22366 PyObject *obj;
22367 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22368 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
22369 Py_INCREF(obj);
22370 return Py_BuildValue((char *)"");
22371 }
22372 static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) {
22373 PyObject *resultobj;
22374 wxWindow *arg1 = (wxWindow *) 0 ;
22375 int arg2 = (int) -1 ;
22376 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22377 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22378 wxSize const &arg4_defvalue = wxDefaultSize ;
22379 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22380 long arg5 = (long) wxLC_REPORT ;
22381 wxValidator const &arg6_defvalue = wxDefaultValidator ;
22382 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
22383 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
22384 wxString *arg7 = (wxString *) &arg7_defvalue ;
22385 wxListView *result;
22386 wxPoint temp3 ;
22387 wxSize temp4 ;
22388 bool temp7 = False ;
22389 PyObject * obj0 = 0 ;
22390 PyObject * obj1 = 0 ;
22391 PyObject * obj2 = 0 ;
22392 PyObject * obj3 = 0 ;
22393 PyObject * obj4 = 0 ;
22394 PyObject * obj5 = 0 ;
22395 PyObject * obj6 = 0 ;
22396 char *kwnames[] = {
22397 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22398 };
22399
22400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22403 if (obj1) {
22404 arg2 = (int) SWIG_AsInt(obj1);
22405 if (PyErr_Occurred()) SWIG_fail;
22406 }
22407 if (obj2) {
22408 {
22409 arg3 = &temp3;
22410 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22411 }
22412 }
22413 if (obj3) {
22414 {
22415 arg4 = &temp4;
22416 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22417 }
22418 }
22419 if (obj4) {
22420 arg5 = (long) SWIG_AsLong(obj4);
22421 if (PyErr_Occurred()) SWIG_fail;
22422 }
22423 if (obj5) {
22424 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
22425 SWIG_POINTER_EXCEPTION | 0)) == -1)
22426 SWIG_fail;
22427 if (arg6 == NULL) {
22428 PyErr_SetString(PyExc_TypeError,"null reference");
22429 SWIG_fail;
22430 }
22431 }
22432 if (obj6) {
22433 {
22434 arg7 = wxString_in_helper(obj6);
22435 if (arg7 == NULL) SWIG_fail;
22436 temp7 = True;
22437 }
22438 }
22439 {
22440 PyThreadState* __tstate = wxPyBeginAllowThreads();
22441 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
22442
22443 wxPyEndAllowThreads(__tstate);
22444 if (PyErr_Occurred()) SWIG_fail;
22445 }
22446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
22447 {
22448 if (temp7)
22449 delete arg7;
22450 }
22451 return resultobj;
22452 fail:
22453 {
22454 if (temp7)
22455 delete arg7;
22456 }
22457 return NULL;
22458 }
22459
22460
22461 static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) {
22462 PyObject *resultobj;
22463 wxListView *result;
22464 char *kwnames[] = {
22465 NULL
22466 };
22467
22468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
22469 {
22470 PyThreadState* __tstate = wxPyBeginAllowThreads();
22471 result = (wxListView *)new wxListView();
22472
22473 wxPyEndAllowThreads(__tstate);
22474 if (PyErr_Occurred()) SWIG_fail;
22475 }
22476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
22477 return resultobj;
22478 fail:
22479 return NULL;
22480 }
22481
22482
22483 static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) {
22484 PyObject *resultobj;
22485 wxListView *arg1 = (wxListView *) 0 ;
22486 wxWindow *arg2 = (wxWindow *) 0 ;
22487 int arg3 = (int) -1 ;
22488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22490 wxSize const &arg5_defvalue = wxDefaultSize ;
22491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22492 long arg6 = (long) wxLC_REPORT ;
22493 wxValidator const &arg7_defvalue = wxDefaultValidator ;
22494 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
22495 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
22496 wxString *arg8 = (wxString *) &arg8_defvalue ;
22497 bool result;
22498 wxPoint temp4 ;
22499 wxSize temp5 ;
22500 bool temp8 = False ;
22501 PyObject * obj0 = 0 ;
22502 PyObject * obj1 = 0 ;
22503 PyObject * obj2 = 0 ;
22504 PyObject * obj3 = 0 ;
22505 PyObject * obj4 = 0 ;
22506 PyObject * obj5 = 0 ;
22507 PyObject * obj6 = 0 ;
22508 PyObject * obj7 = 0 ;
22509 char *kwnames[] = {
22510 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22511 };
22512
22513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
22514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22516 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
22517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22518 if (obj2) {
22519 arg3 = (int) SWIG_AsInt(obj2);
22520 if (PyErr_Occurred()) SWIG_fail;
22521 }
22522 if (obj3) {
22523 {
22524 arg4 = &temp4;
22525 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22526 }
22527 }
22528 if (obj4) {
22529 {
22530 arg5 = &temp5;
22531 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22532 }
22533 }
22534 if (obj5) {
22535 arg6 = (long) SWIG_AsLong(obj5);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 }
22538 if (obj6) {
22539 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
22540 SWIG_POINTER_EXCEPTION | 0)) == -1)
22541 SWIG_fail;
22542 if (arg7 == NULL) {
22543 PyErr_SetString(PyExc_TypeError,"null reference");
22544 SWIG_fail;
22545 }
22546 }
22547 if (obj7) {
22548 {
22549 arg8 = wxString_in_helper(obj7);
22550 if (arg8 == NULL) SWIG_fail;
22551 temp8 = True;
22552 }
22553 }
22554 {
22555 PyThreadState* __tstate = wxPyBeginAllowThreads();
22556 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
22557
22558 wxPyEndAllowThreads(__tstate);
22559 if (PyErr_Occurred()) SWIG_fail;
22560 }
22561 {
22562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22563 }
22564 {
22565 if (temp8)
22566 delete arg8;
22567 }
22568 return resultobj;
22569 fail:
22570 {
22571 if (temp8)
22572 delete arg8;
22573 }
22574 return NULL;
22575 }
22576
22577
22578 static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) {
22579 PyObject *resultobj;
22580 wxListView *arg1 = (wxListView *) 0 ;
22581 long arg2 ;
22582 bool arg3 = (bool) True ;
22583 PyObject * obj0 = 0 ;
22584 PyObject * obj1 = 0 ;
22585 PyObject * obj2 = 0 ;
22586 char *kwnames[] = {
22587 (char *) "self",(char *) "n",(char *) "on", NULL
22588 };
22589
22590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
22591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22593 arg2 = (long) SWIG_AsLong(obj1);
22594 if (PyErr_Occurred()) SWIG_fail;
22595 if (obj2) {
22596 arg3 = (bool) SWIG_AsBool(obj2);
22597 if (PyErr_Occurred()) SWIG_fail;
22598 }
22599 {
22600 PyThreadState* __tstate = wxPyBeginAllowThreads();
22601 (arg1)->Select(arg2,arg3);
22602
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 Py_INCREF(Py_None); resultobj = Py_None;
22607 return resultobj;
22608 fail:
22609 return NULL;
22610 }
22611
22612
22613 static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) {
22614 PyObject *resultobj;
22615 wxListView *arg1 = (wxListView *) 0 ;
22616 long arg2 ;
22617 PyObject * obj0 = 0 ;
22618 PyObject * obj1 = 0 ;
22619 char *kwnames[] = {
22620 (char *) "self",(char *) "index", NULL
22621 };
22622
22623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
22624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22626 arg2 = (long) SWIG_AsLong(obj1);
22627 if (PyErr_Occurred()) SWIG_fail;
22628 {
22629 PyThreadState* __tstate = wxPyBeginAllowThreads();
22630 (arg1)->Focus(arg2);
22631
22632 wxPyEndAllowThreads(__tstate);
22633 if (PyErr_Occurred()) SWIG_fail;
22634 }
22635 Py_INCREF(Py_None); resultobj = Py_None;
22636 return resultobj;
22637 fail:
22638 return NULL;
22639 }
22640
22641
22642 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) {
22643 PyObject *resultobj;
22644 wxListView *arg1 = (wxListView *) 0 ;
22645 long result;
22646 PyObject * obj0 = 0 ;
22647 char *kwnames[] = {
22648 (char *) "self", NULL
22649 };
22650
22651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
22652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22654 {
22655 PyThreadState* __tstate = wxPyBeginAllowThreads();
22656 result = (long)((wxListView const *)arg1)->GetFocusedItem();
22657
22658 wxPyEndAllowThreads(__tstate);
22659 if (PyErr_Occurred()) SWIG_fail;
22660 }
22661 resultobj = SWIG_FromLong((long)result);
22662 return resultobj;
22663 fail:
22664 return NULL;
22665 }
22666
22667
22668 static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) {
22669 PyObject *resultobj;
22670 wxListView *arg1 = (wxListView *) 0 ;
22671 long arg2 ;
22672 long result;
22673 PyObject * obj0 = 0 ;
22674 PyObject * obj1 = 0 ;
22675 char *kwnames[] = {
22676 (char *) "self",(char *) "item", NULL
22677 };
22678
22679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
22680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22682 arg2 = (long) SWIG_AsLong(obj1);
22683 if (PyErr_Occurred()) SWIG_fail;
22684 {
22685 PyThreadState* __tstate = wxPyBeginAllowThreads();
22686 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
22687
22688 wxPyEndAllowThreads(__tstate);
22689 if (PyErr_Occurred()) SWIG_fail;
22690 }
22691 resultobj = SWIG_FromLong((long)result);
22692 return resultobj;
22693 fail:
22694 return NULL;
22695 }
22696
22697
22698 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) {
22699 PyObject *resultobj;
22700 wxListView *arg1 = (wxListView *) 0 ;
22701 long result;
22702 PyObject * obj0 = 0 ;
22703 char *kwnames[] = {
22704 (char *) "self", NULL
22705 };
22706
22707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
22708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22710 {
22711 PyThreadState* __tstate = wxPyBeginAllowThreads();
22712 result = (long)((wxListView const *)arg1)->GetFirstSelected();
22713
22714 wxPyEndAllowThreads(__tstate);
22715 if (PyErr_Occurred()) SWIG_fail;
22716 }
22717 resultobj = SWIG_FromLong((long)result);
22718 return resultobj;
22719 fail:
22720 return NULL;
22721 }
22722
22723
22724 static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
22725 PyObject *resultobj;
22726 wxListView *arg1 = (wxListView *) 0 ;
22727 long arg2 ;
22728 bool result;
22729 PyObject * obj0 = 0 ;
22730 PyObject * obj1 = 0 ;
22731 char *kwnames[] = {
22732 (char *) "self",(char *) "index", NULL
22733 };
22734
22735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
22736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22738 arg2 = (long) SWIG_AsLong(obj1);
22739 if (PyErr_Occurred()) SWIG_fail;
22740 {
22741 PyThreadState* __tstate = wxPyBeginAllowThreads();
22742 result = (bool)(arg1)->IsSelected(arg2);
22743
22744 wxPyEndAllowThreads(__tstate);
22745 if (PyErr_Occurred()) SWIG_fail;
22746 }
22747 {
22748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22749 }
22750 return resultobj;
22751 fail:
22752 return NULL;
22753 }
22754
22755
22756 static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
22757 PyObject *resultobj;
22758 wxListView *arg1 = (wxListView *) 0 ;
22759 int arg2 ;
22760 int arg3 ;
22761 PyObject * obj0 = 0 ;
22762 PyObject * obj1 = 0 ;
22763 PyObject * obj2 = 0 ;
22764 char *kwnames[] = {
22765 (char *) "self",(char *) "col",(char *) "image", NULL
22766 };
22767
22768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
22769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22771 arg2 = (int) SWIG_AsInt(obj1);
22772 if (PyErr_Occurred()) SWIG_fail;
22773 arg3 = (int) SWIG_AsInt(obj2);
22774 if (PyErr_Occurred()) SWIG_fail;
22775 {
22776 PyThreadState* __tstate = wxPyBeginAllowThreads();
22777 (arg1)->SetColumnImage(arg2,arg3);
22778
22779 wxPyEndAllowThreads(__tstate);
22780 if (PyErr_Occurred()) SWIG_fail;
22781 }
22782 Py_INCREF(Py_None); resultobj = Py_None;
22783 return resultobj;
22784 fail:
22785 return NULL;
22786 }
22787
22788
22789 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
22790 PyObject *resultobj;
22791 wxListView *arg1 = (wxListView *) 0 ;
22792 int arg2 ;
22793 PyObject * obj0 = 0 ;
22794 PyObject * obj1 = 0 ;
22795 char *kwnames[] = {
22796 (char *) "self",(char *) "col", NULL
22797 };
22798
22799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
22800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22802 arg2 = (int) SWIG_AsInt(obj1);
22803 if (PyErr_Occurred()) SWIG_fail;
22804 {
22805 PyThreadState* __tstate = wxPyBeginAllowThreads();
22806 (arg1)->ClearColumnImage(arg2);
22807
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 Py_INCREF(Py_None); resultobj = Py_None;
22812 return resultobj;
22813 fail:
22814 return NULL;
22815 }
22816
22817
22818 static PyObject * ListView_swigregister(PyObject *, PyObject *args) {
22819 PyObject *obj;
22820 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22821 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
22822 Py_INCREF(obj);
22823 return Py_BuildValue((char *)"");
22824 }
22825 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
22826 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
22827 return 1;
22828 }
22829
22830
22831 static PyObject *_wrap_TreeCtrlNameStr_get() {
22832 PyObject *pyobj;
22833
22834 {
22835 #if wxUSE_UNICODE
22836 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
22837 #else
22838 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
22839 #endif
22840 }
22841 return pyobj;
22842 }
22843
22844
22845 static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
22846 PyObject *resultobj;
22847 wxTreeItemId *result;
22848 char *kwnames[] = {
22849 NULL
22850 };
22851
22852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
22853 {
22854 PyThreadState* __tstate = wxPyBeginAllowThreads();
22855 result = (wxTreeItemId *)new wxTreeItemId();
22856
22857 wxPyEndAllowThreads(__tstate);
22858 if (PyErr_Occurred()) SWIG_fail;
22859 }
22860 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
22861 return resultobj;
22862 fail:
22863 return NULL;
22864 }
22865
22866
22867 static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
22868 PyObject *resultobj;
22869 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22870 PyObject * obj0 = 0 ;
22871 char *kwnames[] = {
22872 (char *) "self", NULL
22873 };
22874
22875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
22876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 delete arg1;
22881
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 Py_INCREF(Py_None); resultobj = Py_None;
22886 return resultobj;
22887 fail:
22888 return NULL;
22889 }
22890
22891
22892 static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
22893 PyObject *resultobj;
22894 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22895 bool result;
22896 PyObject * obj0 = 0 ;
22897 char *kwnames[] = {
22898 (char *) "self", NULL
22899 };
22900
22901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
22902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22904 {
22905 PyThreadState* __tstate = wxPyBeginAllowThreads();
22906 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
22907
22908 wxPyEndAllowThreads(__tstate);
22909 if (PyErr_Occurred()) SWIG_fail;
22910 }
22911 {
22912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22913 }
22914 return resultobj;
22915 fail:
22916 return NULL;
22917 }
22918
22919
22920 static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
22921 PyObject *resultobj;
22922 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22923 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
22924 bool result;
22925 PyObject * obj0 = 0 ;
22926 PyObject * obj1 = 0 ;
22927 char *kwnames[] = {
22928 (char *) "self",(char *) "other", NULL
22929 };
22930
22931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
22932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22934 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
22935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22936 {
22937 PyThreadState* __tstate = wxPyBeginAllowThreads();
22938 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
22939
22940 wxPyEndAllowThreads(__tstate);
22941 if (PyErr_Occurred()) SWIG_fail;
22942 }
22943 {
22944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22945 }
22946 return resultobj;
22947 fail:
22948 return NULL;
22949 }
22950
22951
22952 static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
22953 PyObject *resultobj;
22954 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22955 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
22956 bool result;
22957 PyObject * obj0 = 0 ;
22958 PyObject * obj1 = 0 ;
22959 char *kwnames[] = {
22960 (char *) "self",(char *) "other", NULL
22961 };
22962
22963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
22964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22966 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
22967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22968 {
22969 PyThreadState* __tstate = wxPyBeginAllowThreads();
22970 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
22971
22972 wxPyEndAllowThreads(__tstate);
22973 if (PyErr_Occurred()) SWIG_fail;
22974 }
22975 {
22976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22977 }
22978 return resultobj;
22979 fail:
22980 return NULL;
22981 }
22982
22983
22984 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) {
22985 PyObject *resultobj;
22986 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22987 void *arg2 = (void *) 0 ;
22988 PyObject * obj0 = 0 ;
22989 PyObject * obj1 = 0 ;
22990 char *kwnames[] = {
22991 (char *) "self",(char *) "m_pItem", NULL
22992 };
22993
22994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
22995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22997 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22998 if (arg1) (arg1)->m_pItem = arg2;
22999
23000 Py_INCREF(Py_None); resultobj = Py_None;
23001 return resultobj;
23002 fail:
23003 return NULL;
23004 }
23005
23006
23007 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) {
23008 PyObject *resultobj;
23009 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23010 void *result;
23011 PyObject * obj0 = 0 ;
23012 char *kwnames[] = {
23013 (char *) "self", NULL
23014 };
23015
23016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
23017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23019 result = (void *) ((arg1)->m_pItem);
23020
23021 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
23022 return resultobj;
23023 fail:
23024 return NULL;
23025 }
23026
23027
23028 static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) {
23029 PyObject *obj;
23030 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23031 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
23032 Py_INCREF(obj);
23033 return Py_BuildValue((char *)"");
23034 }
23035 static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) {
23036 PyObject *resultobj;
23037 PyObject *arg1 = (PyObject *) NULL ;
23038 wxPyTreeItemData *result;
23039 PyObject * obj0 = 0 ;
23040 char *kwnames[] = {
23041 (char *) "obj", NULL
23042 };
23043
23044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
23045 if (obj0) {
23046 arg1 = obj0;
23047 }
23048 {
23049 PyThreadState* __tstate = wxPyBeginAllowThreads();
23050 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
23051
23052 wxPyEndAllowThreads(__tstate);
23053 if (PyErr_Occurred()) SWIG_fail;
23054 }
23055 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
23056 return resultobj;
23057 fail:
23058 return NULL;
23059 }
23060
23061
23062 static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
23063 PyObject *resultobj;
23064 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23065 PyObject *result;
23066 PyObject * obj0 = 0 ;
23067 char *kwnames[] = {
23068 (char *) "self", NULL
23069 };
23070
23071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
23072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23074 {
23075 PyThreadState* __tstate = wxPyBeginAllowThreads();
23076 result = (PyObject *)(arg1)->GetData();
23077
23078 wxPyEndAllowThreads(__tstate);
23079 if (PyErr_Occurred()) SWIG_fail;
23080 }
23081 resultobj = result;
23082 return resultobj;
23083 fail:
23084 return NULL;
23085 }
23086
23087
23088 static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
23089 PyObject *resultobj;
23090 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23091 PyObject *arg2 = (PyObject *) 0 ;
23092 PyObject * obj0 = 0 ;
23093 PyObject * obj1 = 0 ;
23094 char *kwnames[] = {
23095 (char *) "self",(char *) "obj", NULL
23096 };
23097
23098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
23099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23101 arg2 = obj1;
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 (arg1)->SetData(arg2);
23105
23106 wxPyEndAllowThreads(__tstate);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 }
23109 Py_INCREF(Py_None); resultobj = Py_None;
23110 return resultobj;
23111 fail:
23112 return NULL;
23113 }
23114
23115
23116 static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
23117 PyObject *resultobj;
23118 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23119 wxTreeItemId *result;
23120 PyObject * obj0 = 0 ;
23121 char *kwnames[] = {
23122 (char *) "self", NULL
23123 };
23124
23125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
23126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23128 {
23129 PyThreadState* __tstate = wxPyBeginAllowThreads();
23130 {
23131 wxTreeItemId const &_result_ref = (arg1)->GetId();
23132 result = (wxTreeItemId *) &_result_ref;
23133 }
23134
23135 wxPyEndAllowThreads(__tstate);
23136 if (PyErr_Occurred()) SWIG_fail;
23137 }
23138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
23139 return resultobj;
23140 fail:
23141 return NULL;
23142 }
23143
23144
23145 static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
23146 PyObject *resultobj;
23147 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23148 wxTreeItemId *arg2 = 0 ;
23149 PyObject * obj0 = 0 ;
23150 PyObject * obj1 = 0 ;
23151 char *kwnames[] = {
23152 (char *) "self",(char *) "id", NULL
23153 };
23154
23155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
23156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23158 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23159 SWIG_POINTER_EXCEPTION | 0)) == -1)
23160 SWIG_fail;
23161 if (arg2 == NULL) {
23162 PyErr_SetString(PyExc_TypeError,"null reference");
23163 SWIG_fail;
23164 }
23165 {
23166 PyThreadState* __tstate = wxPyBeginAllowThreads();
23167 (arg1)->SetId((wxTreeItemId const &)*arg2);
23168
23169 wxPyEndAllowThreads(__tstate);
23170 if (PyErr_Occurred()) SWIG_fail;
23171 }
23172 Py_INCREF(Py_None); resultobj = Py_None;
23173 return resultobj;
23174 fail:
23175 return NULL;
23176 }
23177
23178
23179 static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
23180 PyObject *resultobj;
23181 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23182 PyObject * obj0 = 0 ;
23183 char *kwnames[] = {
23184 (char *) "self", NULL
23185 };
23186
23187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
23188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23190 {
23191 PyThreadState* __tstate = wxPyBeginAllowThreads();
23192 wxPyTreeItemData_Destroy(arg1);
23193
23194 wxPyEndAllowThreads(__tstate);
23195 if (PyErr_Occurred()) SWIG_fail;
23196 }
23197 Py_INCREF(Py_None); resultobj = Py_None;
23198 return resultobj;
23199 fail:
23200 return NULL;
23201 }
23202
23203
23204 static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) {
23205 PyObject *obj;
23206 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23207 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
23208 Py_INCREF(obj);
23209 return Py_BuildValue((char *)"");
23210 }
23211 static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
23212 PyObject *resultobj;
23213 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
23214 int arg2 = (int) 0 ;
23215 wxTreeEvent *result;
23216 PyObject * obj0 = 0 ;
23217 PyObject * obj1 = 0 ;
23218 char *kwnames[] = {
23219 (char *) "commandType",(char *) "id", NULL
23220 };
23221
23222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
23223 if (obj0) {
23224 arg1 = (wxEventType) SWIG_AsInt(obj0);
23225 if (PyErr_Occurred()) SWIG_fail;
23226 }
23227 if (obj1) {
23228 arg2 = (int) SWIG_AsInt(obj1);
23229 if (PyErr_Occurred()) SWIG_fail;
23230 }
23231 {
23232 PyThreadState* __tstate = wxPyBeginAllowThreads();
23233 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
23234
23235 wxPyEndAllowThreads(__tstate);
23236 if (PyErr_Occurred()) SWIG_fail;
23237 }
23238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
23239 return resultobj;
23240 fail:
23241 return NULL;
23242 }
23243
23244
23245 static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
23246 PyObject *resultobj;
23247 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23248 wxTreeItemId result;
23249 PyObject * obj0 = 0 ;
23250 char *kwnames[] = {
23251 (char *) "self", NULL
23252 };
23253
23254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
23255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23257 {
23258 PyThreadState* __tstate = wxPyBeginAllowThreads();
23259 result = ((wxTreeEvent const *)arg1)->GetItem();
23260
23261 wxPyEndAllowThreads(__tstate);
23262 if (PyErr_Occurred()) SWIG_fail;
23263 }
23264 {
23265 wxTreeItemId * resultptr;
23266 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23267 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
23268 }
23269 return resultobj;
23270 fail:
23271 return NULL;
23272 }
23273
23274
23275 static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
23276 PyObject *resultobj;
23277 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23278 wxTreeItemId *arg2 = 0 ;
23279 PyObject * obj0 = 0 ;
23280 PyObject * obj1 = 0 ;
23281 char *kwnames[] = {
23282 (char *) "self",(char *) "item", NULL
23283 };
23284
23285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
23286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23288 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23289 SWIG_POINTER_EXCEPTION | 0)) == -1)
23290 SWIG_fail;
23291 if (arg2 == NULL) {
23292 PyErr_SetString(PyExc_TypeError,"null reference");
23293 SWIG_fail;
23294 }
23295 {
23296 PyThreadState* __tstate = wxPyBeginAllowThreads();
23297 (arg1)->SetItem((wxTreeItemId const &)*arg2);
23298
23299 wxPyEndAllowThreads(__tstate);
23300 if (PyErr_Occurred()) SWIG_fail;
23301 }
23302 Py_INCREF(Py_None); resultobj = Py_None;
23303 return resultobj;
23304 fail:
23305 return NULL;
23306 }
23307
23308
23309 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
23310 PyObject *resultobj;
23311 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23312 wxTreeItemId result;
23313 PyObject * obj0 = 0 ;
23314 char *kwnames[] = {
23315 (char *) "self", NULL
23316 };
23317
23318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
23319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23321 {
23322 PyThreadState* __tstate = wxPyBeginAllowThreads();
23323 result = ((wxTreeEvent const *)arg1)->GetOldItem();
23324
23325 wxPyEndAllowThreads(__tstate);
23326 if (PyErr_Occurred()) SWIG_fail;
23327 }
23328 {
23329 wxTreeItemId * resultptr;
23330 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23331 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
23332 }
23333 return resultobj;
23334 fail:
23335 return NULL;
23336 }
23337
23338
23339 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
23340 PyObject *resultobj;
23341 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23342 wxTreeItemId *arg2 = 0 ;
23343 PyObject * obj0 = 0 ;
23344 PyObject * obj1 = 0 ;
23345 char *kwnames[] = {
23346 (char *) "self",(char *) "item", NULL
23347 };
23348
23349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
23350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23353 SWIG_POINTER_EXCEPTION | 0)) == -1)
23354 SWIG_fail;
23355 if (arg2 == NULL) {
23356 PyErr_SetString(PyExc_TypeError,"null reference");
23357 SWIG_fail;
23358 }
23359 {
23360 PyThreadState* __tstate = wxPyBeginAllowThreads();
23361 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
23362
23363 wxPyEndAllowThreads(__tstate);
23364 if (PyErr_Occurred()) SWIG_fail;
23365 }
23366 Py_INCREF(Py_None); resultobj = Py_None;
23367 return resultobj;
23368 fail:
23369 return NULL;
23370 }
23371
23372
23373 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
23374 PyObject *resultobj;
23375 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23376 wxPoint result;
23377 PyObject * obj0 = 0 ;
23378 char *kwnames[] = {
23379 (char *) "self", NULL
23380 };
23381
23382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
23383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23385 {
23386 PyThreadState* __tstate = wxPyBeginAllowThreads();
23387 result = ((wxTreeEvent const *)arg1)->GetPoint();
23388
23389 wxPyEndAllowThreads(__tstate);
23390 if (PyErr_Occurred()) SWIG_fail;
23391 }
23392 {
23393 wxPoint * resultptr;
23394 resultptr = new wxPoint((wxPoint &) result);
23395 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
23396 }
23397 return resultobj;
23398 fail:
23399 return NULL;
23400 }
23401
23402
23403 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
23404 PyObject *resultobj;
23405 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23406 wxPoint *arg2 = 0 ;
23407 wxPoint temp2 ;
23408 PyObject * obj0 = 0 ;
23409 PyObject * obj1 = 0 ;
23410 char *kwnames[] = {
23411 (char *) "self",(char *) "pt", NULL
23412 };
23413
23414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
23415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23417 {
23418 arg2 = &temp2;
23419 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23420 }
23421 {
23422 PyThreadState* __tstate = wxPyBeginAllowThreads();
23423 (arg1)->SetPoint((wxPoint const &)*arg2);
23424
23425 wxPyEndAllowThreads(__tstate);
23426 if (PyErr_Occurred()) SWIG_fail;
23427 }
23428 Py_INCREF(Py_None); resultobj = Py_None;
23429 return resultobj;
23430 fail:
23431 return NULL;
23432 }
23433
23434
23435 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
23436 PyObject *resultobj;
23437 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23438 wxKeyEvent *result;
23439 PyObject * obj0 = 0 ;
23440 char *kwnames[] = {
23441 (char *) "self", NULL
23442 };
23443
23444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
23445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23447 {
23448 PyThreadState* __tstate = wxPyBeginAllowThreads();
23449 {
23450 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
23451 result = (wxKeyEvent *) &_result_ref;
23452 }
23453
23454 wxPyEndAllowThreads(__tstate);
23455 if (PyErr_Occurred()) SWIG_fail;
23456 }
23457 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
23458 return resultobj;
23459 fail:
23460 return NULL;
23461 }
23462
23463
23464 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
23465 PyObject *resultobj;
23466 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23467 int result;
23468 PyObject * obj0 = 0 ;
23469 char *kwnames[] = {
23470 (char *) "self", NULL
23471 };
23472
23473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
23474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23476 {
23477 PyThreadState* __tstate = wxPyBeginAllowThreads();
23478 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
23479
23480 wxPyEndAllowThreads(__tstate);
23481 if (PyErr_Occurred()) SWIG_fail;
23482 }
23483 resultobj = SWIG_FromInt((int)result);
23484 return resultobj;
23485 fail:
23486 return NULL;
23487 }
23488
23489
23490 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
23491 PyObject *resultobj;
23492 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23493 wxKeyEvent *arg2 = 0 ;
23494 PyObject * obj0 = 0 ;
23495 PyObject * obj1 = 0 ;
23496 char *kwnames[] = {
23497 (char *) "self",(char *) "evt", NULL
23498 };
23499
23500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
23501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23503 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
23504 SWIG_POINTER_EXCEPTION | 0)) == -1)
23505 SWIG_fail;
23506 if (arg2 == NULL) {
23507 PyErr_SetString(PyExc_TypeError,"null reference");
23508 SWIG_fail;
23509 }
23510 {
23511 PyThreadState* __tstate = wxPyBeginAllowThreads();
23512 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
23513
23514 wxPyEndAllowThreads(__tstate);
23515 if (PyErr_Occurred()) SWIG_fail;
23516 }
23517 Py_INCREF(Py_None); resultobj = Py_None;
23518 return resultobj;
23519 fail:
23520 return NULL;
23521 }
23522
23523
23524 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23525 PyObject *resultobj;
23526 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23527 wxString *result;
23528 PyObject * obj0 = 0 ;
23529 char *kwnames[] = {
23530 (char *) "self", NULL
23531 };
23532
23533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
23534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23536 {
23537 PyThreadState* __tstate = wxPyBeginAllowThreads();
23538 {
23539 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
23540 result = (wxString *) &_result_ref;
23541 }
23542
23543 wxPyEndAllowThreads(__tstate);
23544 if (PyErr_Occurred()) SWIG_fail;
23545 }
23546 {
23547 #if wxUSE_UNICODE
23548 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
23549 #else
23550 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
23551 #endif
23552 }
23553 return resultobj;
23554 fail:
23555 return NULL;
23556 }
23557
23558
23559 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23560 PyObject *resultobj;
23561 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23562 wxString *arg2 = 0 ;
23563 bool temp2 = False ;
23564 PyObject * obj0 = 0 ;
23565 PyObject * obj1 = 0 ;
23566 char *kwnames[] = {
23567 (char *) "self",(char *) "label", NULL
23568 };
23569
23570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
23571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23573 {
23574 arg2 = wxString_in_helper(obj1);
23575 if (arg2 == NULL) SWIG_fail;
23576 temp2 = True;
23577 }
23578 {
23579 PyThreadState* __tstate = wxPyBeginAllowThreads();
23580 (arg1)->SetLabel((wxString const &)*arg2);
23581
23582 wxPyEndAllowThreads(__tstate);
23583 if (PyErr_Occurred()) SWIG_fail;
23584 }
23585 Py_INCREF(Py_None); resultobj = Py_None;
23586 {
23587 if (temp2)
23588 delete arg2;
23589 }
23590 return resultobj;
23591 fail:
23592 {
23593 if (temp2)
23594 delete arg2;
23595 }
23596 return NULL;
23597 }
23598
23599
23600 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
23601 PyObject *resultobj;
23602 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23603 bool result;
23604 PyObject * obj0 = 0 ;
23605 char *kwnames[] = {
23606 (char *) "self", NULL
23607 };
23608
23609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
23610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23612 {
23613 PyThreadState* __tstate = wxPyBeginAllowThreads();
23614 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
23615
23616 wxPyEndAllowThreads(__tstate);
23617 if (PyErr_Occurred()) SWIG_fail;
23618 }
23619 {
23620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23621 }
23622 return resultobj;
23623 fail:
23624 return NULL;
23625 }
23626
23627
23628 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
23629 PyObject *resultobj;
23630 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23631 bool arg2 ;
23632 PyObject * obj0 = 0 ;
23633 PyObject * obj1 = 0 ;
23634 char *kwnames[] = {
23635 (char *) "self",(char *) "editCancelled", NULL
23636 };
23637
23638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
23639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23641 arg2 = (bool) SWIG_AsBool(obj1);
23642 if (PyErr_Occurred()) SWIG_fail;
23643 {
23644 PyThreadState* __tstate = wxPyBeginAllowThreads();
23645 (arg1)->SetEditCanceled(arg2);
23646
23647 wxPyEndAllowThreads(__tstate);
23648 if (PyErr_Occurred()) SWIG_fail;
23649 }
23650 Py_INCREF(Py_None); resultobj = Py_None;
23651 return resultobj;
23652 fail:
23653 return NULL;
23654 }
23655
23656
23657 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
23658 PyObject *resultobj;
23659 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23660 wxString *arg2 = 0 ;
23661 bool temp2 = False ;
23662 PyObject * obj0 = 0 ;
23663 PyObject * obj1 = 0 ;
23664 char *kwnames[] = {
23665 (char *) "self",(char *) "toolTip", NULL
23666 };
23667
23668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
23669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23671 {
23672 arg2 = wxString_in_helper(obj1);
23673 if (arg2 == NULL) SWIG_fail;
23674 temp2 = True;
23675 }
23676 {
23677 PyThreadState* __tstate = wxPyBeginAllowThreads();
23678 (arg1)->SetToolTip((wxString const &)*arg2);
23679
23680 wxPyEndAllowThreads(__tstate);
23681 if (PyErr_Occurred()) SWIG_fail;
23682 }
23683 Py_INCREF(Py_None); resultobj = Py_None;
23684 {
23685 if (temp2)
23686 delete arg2;
23687 }
23688 return resultobj;
23689 fail:
23690 {
23691 if (temp2)
23692 delete arg2;
23693 }
23694 return NULL;
23695 }
23696
23697
23698 static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) {
23699 PyObject *obj;
23700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23701 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
23702 Py_INCREF(obj);
23703 return Py_BuildValue((char *)"");
23704 }
23705 static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
23706 PyObject *resultobj;
23707 wxWindow *arg1 = (wxWindow *) 0 ;
23708 int arg2 = (int) -1 ;
23709 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23710 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23711 wxSize const &arg4_defvalue = wxDefaultSize ;
23712 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23713 long arg5 = (long) wxTR_DEFAULT_STYLE ;
23714 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23715 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23716 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
23717 wxString *arg7 = (wxString *) &arg7_defvalue ;
23718 wxPyTreeCtrl *result;
23719 wxPoint temp3 ;
23720 wxSize temp4 ;
23721 bool temp7 = False ;
23722 PyObject * obj0 = 0 ;
23723 PyObject * obj1 = 0 ;
23724 PyObject * obj2 = 0 ;
23725 PyObject * obj3 = 0 ;
23726 PyObject * obj4 = 0 ;
23727 PyObject * obj5 = 0 ;
23728 PyObject * obj6 = 0 ;
23729 char *kwnames[] = {
23730 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23731 };
23732
23733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23736 if (obj1) {
23737 arg2 = (int) SWIG_AsInt(obj1);
23738 if (PyErr_Occurred()) SWIG_fail;
23739 }
23740 if (obj2) {
23741 {
23742 arg3 = &temp3;
23743 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23744 }
23745 }
23746 if (obj3) {
23747 {
23748 arg4 = &temp4;
23749 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23750 }
23751 }
23752 if (obj4) {
23753 arg5 = (long) SWIG_AsLong(obj4);
23754 if (PyErr_Occurred()) SWIG_fail;
23755 }
23756 if (obj5) {
23757 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23758 SWIG_POINTER_EXCEPTION | 0)) == -1)
23759 SWIG_fail;
23760 if (arg6 == NULL) {
23761 PyErr_SetString(PyExc_TypeError,"null reference");
23762 SWIG_fail;
23763 }
23764 }
23765 if (obj6) {
23766 {
23767 arg7 = wxString_in_helper(obj6);
23768 if (arg7 == NULL) SWIG_fail;
23769 temp7 = True;
23770 }
23771 }
23772 {
23773 PyThreadState* __tstate = wxPyBeginAllowThreads();
23774 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23775
23776 wxPyEndAllowThreads(__tstate);
23777 if (PyErr_Occurred()) SWIG_fail;
23778 }
23779 {
23780 resultobj = wxPyMake_wxObject(result);
23781 }
23782 {
23783 if (temp7)
23784 delete arg7;
23785 }
23786 return resultobj;
23787 fail:
23788 {
23789 if (temp7)
23790 delete arg7;
23791 }
23792 return NULL;
23793 }
23794
23795
23796 static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
23797 PyObject *resultobj;
23798 wxPyTreeCtrl *result;
23799 char *kwnames[] = {
23800 NULL
23801 };
23802
23803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
23804 {
23805 PyThreadState* __tstate = wxPyBeginAllowThreads();
23806 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
23807
23808 wxPyEndAllowThreads(__tstate);
23809 if (PyErr_Occurred()) SWIG_fail;
23810 }
23811 {
23812 resultobj = wxPyMake_wxObject(result);
23813 }
23814 return resultobj;
23815 fail:
23816 return NULL;
23817 }
23818
23819
23820 static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
23821 PyObject *resultobj;
23822 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23823 wxWindow *arg2 = (wxWindow *) 0 ;
23824 int arg3 = (int) -1 ;
23825 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23826 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23827 wxSize const &arg5_defvalue = wxDefaultSize ;
23828 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23829 long arg6 = (long) wxTR_DEFAULT_STYLE ;
23830 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23831 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23832 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
23833 wxString *arg8 = (wxString *) &arg8_defvalue ;
23834 bool result;
23835 wxPoint temp4 ;
23836 wxSize temp5 ;
23837 bool temp8 = False ;
23838 PyObject * obj0 = 0 ;
23839 PyObject * obj1 = 0 ;
23840 PyObject * obj2 = 0 ;
23841 PyObject * obj3 = 0 ;
23842 PyObject * obj4 = 0 ;
23843 PyObject * obj5 = 0 ;
23844 PyObject * obj6 = 0 ;
23845 PyObject * obj7 = 0 ;
23846 char *kwnames[] = {
23847 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23848 };
23849
23850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23853 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23855 if (obj2) {
23856 arg3 = (int) SWIG_AsInt(obj2);
23857 if (PyErr_Occurred()) SWIG_fail;
23858 }
23859 if (obj3) {
23860 {
23861 arg4 = &temp4;
23862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23863 }
23864 }
23865 if (obj4) {
23866 {
23867 arg5 = &temp5;
23868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23869 }
23870 }
23871 if (obj5) {
23872 arg6 = (long) SWIG_AsLong(obj5);
23873 if (PyErr_Occurred()) SWIG_fail;
23874 }
23875 if (obj6) {
23876 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23877 SWIG_POINTER_EXCEPTION | 0)) == -1)
23878 SWIG_fail;
23879 if (arg7 == NULL) {
23880 PyErr_SetString(PyExc_TypeError,"null reference");
23881 SWIG_fail;
23882 }
23883 }
23884 if (obj7) {
23885 {
23886 arg8 = wxString_in_helper(obj7);
23887 if (arg8 == NULL) SWIG_fail;
23888 temp8 = True;
23889 }
23890 }
23891 {
23892 PyThreadState* __tstate = wxPyBeginAllowThreads();
23893 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23894
23895 wxPyEndAllowThreads(__tstate);
23896 if (PyErr_Occurred()) SWIG_fail;
23897 }
23898 {
23899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23900 }
23901 {
23902 if (temp8)
23903 delete arg8;
23904 }
23905 return resultobj;
23906 fail:
23907 {
23908 if (temp8)
23909 delete arg8;
23910 }
23911 return NULL;
23912 }
23913
23914
23915 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
23916 PyObject *resultobj;
23917 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23918 PyObject *arg2 = (PyObject *) 0 ;
23919 PyObject *arg3 = (PyObject *) 0 ;
23920 PyObject * obj0 = 0 ;
23921 PyObject * obj1 = 0 ;
23922 PyObject * obj2 = 0 ;
23923 char *kwnames[] = {
23924 (char *) "self",(char *) "self",(char *) "_class", NULL
23925 };
23926
23927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23930 arg2 = obj1;
23931 arg3 = obj2;
23932 {
23933 PyThreadState* __tstate = wxPyBeginAllowThreads();
23934 (arg1)->_setCallbackInfo(arg2,arg3);
23935
23936 wxPyEndAllowThreads(__tstate);
23937 if (PyErr_Occurred()) SWIG_fail;
23938 }
23939 Py_INCREF(Py_None); resultobj = Py_None;
23940 return resultobj;
23941 fail:
23942 return NULL;
23943 }
23944
23945
23946 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
23947 PyObject *resultobj;
23948 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23949 size_t result;
23950 PyObject * obj0 = 0 ;
23951 char *kwnames[] = {
23952 (char *) "self", NULL
23953 };
23954
23955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
23956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23958 {
23959 PyThreadState* __tstate = wxPyBeginAllowThreads();
23960 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
23961
23962 wxPyEndAllowThreads(__tstate);
23963 if (PyErr_Occurred()) SWIG_fail;
23964 }
23965 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
23966 return resultobj;
23967 fail:
23968 return NULL;
23969 }
23970
23971
23972 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
23973 PyObject *resultobj;
23974 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23975 unsigned int result;
23976 PyObject * obj0 = 0 ;
23977 char *kwnames[] = {
23978 (char *) "self", NULL
23979 };
23980
23981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
23982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23984 {
23985 PyThreadState* __tstate = wxPyBeginAllowThreads();
23986 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
23987
23988 wxPyEndAllowThreads(__tstate);
23989 if (PyErr_Occurred()) SWIG_fail;
23990 }
23991 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
23992 return resultobj;
23993 fail:
23994 return NULL;
23995 }
23996
23997
23998 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
23999 PyObject *resultobj;
24000 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24001 unsigned int arg2 ;
24002 PyObject * obj0 = 0 ;
24003 PyObject * obj1 = 0 ;
24004 char *kwnames[] = {
24005 (char *) "self",(char *) "indent", NULL
24006 };
24007
24008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
24009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24011 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
24012 if (PyErr_Occurred()) SWIG_fail;
24013 {
24014 PyThreadState* __tstate = wxPyBeginAllowThreads();
24015 (arg1)->SetIndent(arg2);
24016
24017 wxPyEndAllowThreads(__tstate);
24018 if (PyErr_Occurred()) SWIG_fail;
24019 }
24020 Py_INCREF(Py_None); resultobj = Py_None;
24021 return resultobj;
24022 fail:
24023 return NULL;
24024 }
24025
24026
24027 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
24028 PyObject *resultobj;
24029 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24030 unsigned int result;
24031 PyObject * obj0 = 0 ;
24032 char *kwnames[] = {
24033 (char *) "self", NULL
24034 };
24035
24036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
24037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24039 {
24040 PyThreadState* __tstate = wxPyBeginAllowThreads();
24041 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
24042
24043 wxPyEndAllowThreads(__tstate);
24044 if (PyErr_Occurred()) SWIG_fail;
24045 }
24046 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
24047 return resultobj;
24048 fail:
24049 return NULL;
24050 }
24051
24052
24053 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
24054 PyObject *resultobj;
24055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24056 unsigned int arg2 ;
24057 PyObject * obj0 = 0 ;
24058 PyObject * obj1 = 0 ;
24059 char *kwnames[] = {
24060 (char *) "self",(char *) "spacing", NULL
24061 };
24062
24063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
24064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24066 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
24067 if (PyErr_Occurred()) SWIG_fail;
24068 {
24069 PyThreadState* __tstate = wxPyBeginAllowThreads();
24070 (arg1)->SetSpacing(arg2);
24071
24072 wxPyEndAllowThreads(__tstate);
24073 if (PyErr_Occurred()) SWIG_fail;
24074 }
24075 Py_INCREF(Py_None); resultobj = Py_None;
24076 return resultobj;
24077 fail:
24078 return NULL;
24079 }
24080
24081
24082 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
24083 PyObject *resultobj;
24084 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24085 wxImageList *result;
24086 PyObject * obj0 = 0 ;
24087 char *kwnames[] = {
24088 (char *) "self", NULL
24089 };
24090
24091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
24092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24094 {
24095 PyThreadState* __tstate = wxPyBeginAllowThreads();
24096 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
24097
24098 wxPyEndAllowThreads(__tstate);
24099 if (PyErr_Occurred()) SWIG_fail;
24100 }
24101 {
24102 resultobj = wxPyMake_wxObject(result);
24103 }
24104 return resultobj;
24105 fail:
24106 return NULL;
24107 }
24108
24109
24110 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
24111 PyObject *resultobj;
24112 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24113 wxImageList *result;
24114 PyObject * obj0 = 0 ;
24115 char *kwnames[] = {
24116 (char *) "self", NULL
24117 };
24118
24119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
24120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24122 {
24123 PyThreadState* __tstate = wxPyBeginAllowThreads();
24124 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
24125
24126 wxPyEndAllowThreads(__tstate);
24127 if (PyErr_Occurred()) SWIG_fail;
24128 }
24129 {
24130 resultobj = wxPyMake_wxObject(result);
24131 }
24132 return resultobj;
24133 fail:
24134 return NULL;
24135 }
24136
24137
24138 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
24139 PyObject *resultobj;
24140 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24141 wxImageList *arg2 = (wxImageList *) 0 ;
24142 PyObject * obj0 = 0 ;
24143 PyObject * obj1 = 0 ;
24144 char *kwnames[] = {
24145 (char *) "self",(char *) "imageList", NULL
24146 };
24147
24148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
24149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24153 {
24154 PyThreadState* __tstate = wxPyBeginAllowThreads();
24155 (arg1)->SetImageList(arg2);
24156
24157 wxPyEndAllowThreads(__tstate);
24158 if (PyErr_Occurred()) SWIG_fail;
24159 }
24160 Py_INCREF(Py_None); resultobj = Py_None;
24161 return resultobj;
24162 fail:
24163 return NULL;
24164 }
24165
24166
24167 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
24168 PyObject *resultobj;
24169 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24170 wxImageList *arg2 = (wxImageList *) 0 ;
24171 PyObject * obj0 = 0 ;
24172 PyObject * obj1 = 0 ;
24173 char *kwnames[] = {
24174 (char *) "self",(char *) "imageList", NULL
24175 };
24176
24177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
24178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24180 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24182 {
24183 PyThreadState* __tstate = wxPyBeginAllowThreads();
24184 (arg1)->SetStateImageList(arg2);
24185
24186 wxPyEndAllowThreads(__tstate);
24187 if (PyErr_Occurred()) SWIG_fail;
24188 }
24189 Py_INCREF(Py_None); resultobj = Py_None;
24190 return resultobj;
24191 fail:
24192 return NULL;
24193 }
24194
24195
24196 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
24197 PyObject *resultobj;
24198 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24199 wxImageList *arg2 = (wxImageList *) 0 ;
24200 PyObject * obj0 = 0 ;
24201 PyObject * obj1 = 0 ;
24202 char *kwnames[] = {
24203 (char *) "self",(char *) "imageList", NULL
24204 };
24205
24206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
24207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24210 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24211 {
24212 PyThreadState* __tstate = wxPyBeginAllowThreads();
24213 (arg1)->AssignImageList(arg2);
24214
24215 wxPyEndAllowThreads(__tstate);
24216 if (PyErr_Occurred()) SWIG_fail;
24217 }
24218 Py_INCREF(Py_None); resultobj = Py_None;
24219 return resultobj;
24220 fail:
24221 return NULL;
24222 }
24223
24224
24225 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
24226 PyObject *resultobj;
24227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24228 wxImageList *arg2 = (wxImageList *) 0 ;
24229 PyObject * obj0 = 0 ;
24230 PyObject * obj1 = 0 ;
24231 char *kwnames[] = {
24232 (char *) "self",(char *) "imageList", NULL
24233 };
24234
24235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
24236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24238 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24239 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24240 {
24241 PyThreadState* __tstate = wxPyBeginAllowThreads();
24242 (arg1)->AssignStateImageList(arg2);
24243
24244 wxPyEndAllowThreads(__tstate);
24245 if (PyErr_Occurred()) SWIG_fail;
24246 }
24247 Py_INCREF(Py_None); resultobj = Py_None;
24248 return resultobj;
24249 fail:
24250 return NULL;
24251 }
24252
24253
24254 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
24255 PyObject *resultobj;
24256 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24257 wxTreeItemId *arg2 = 0 ;
24258 wxString result;
24259 PyObject * obj0 = 0 ;
24260 PyObject * obj1 = 0 ;
24261 char *kwnames[] = {
24262 (char *) "self",(char *) "item", NULL
24263 };
24264
24265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
24266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24268 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24269 SWIG_POINTER_EXCEPTION | 0)) == -1)
24270 SWIG_fail;
24271 if (arg2 == NULL) {
24272 PyErr_SetString(PyExc_TypeError,"null reference");
24273 SWIG_fail;
24274 }
24275 {
24276 PyThreadState* __tstate = wxPyBeginAllowThreads();
24277 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
24278
24279 wxPyEndAllowThreads(__tstate);
24280 if (PyErr_Occurred()) SWIG_fail;
24281 }
24282 {
24283 #if wxUSE_UNICODE
24284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24285 #else
24286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24287 #endif
24288 }
24289 return resultobj;
24290 fail:
24291 return NULL;
24292 }
24293
24294
24295 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
24296 PyObject *resultobj;
24297 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24298 wxTreeItemId *arg2 = 0 ;
24299 int arg3 = (int) wxTreeItemIcon_Normal ;
24300 int result;
24301 PyObject * obj0 = 0 ;
24302 PyObject * obj1 = 0 ;
24303 PyObject * obj2 = 0 ;
24304 char *kwnames[] = {
24305 (char *) "self",(char *) "item",(char *) "which", NULL
24306 };
24307
24308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24312 SWIG_POINTER_EXCEPTION | 0)) == -1)
24313 SWIG_fail;
24314 if (arg2 == NULL) {
24315 PyErr_SetString(PyExc_TypeError,"null reference");
24316 SWIG_fail;
24317 }
24318 if (obj2) {
24319 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
24320 if (PyErr_Occurred()) SWIG_fail;
24321 }
24322 {
24323 PyThreadState* __tstate = wxPyBeginAllowThreads();
24324 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
24325
24326 wxPyEndAllowThreads(__tstate);
24327 if (PyErr_Occurred()) SWIG_fail;
24328 }
24329 resultobj = SWIG_FromInt((int)result);
24330 return resultobj;
24331 fail:
24332 return NULL;
24333 }
24334
24335
24336 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
24337 PyObject *resultobj;
24338 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24339 wxTreeItemId *arg2 = 0 ;
24340 wxPyTreeItemData *result;
24341 PyObject * obj0 = 0 ;
24342 PyObject * obj1 = 0 ;
24343 char *kwnames[] = {
24344 (char *) "self",(char *) "item", NULL
24345 };
24346
24347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
24348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24350 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24351 SWIG_POINTER_EXCEPTION | 0)) == -1)
24352 SWIG_fail;
24353 if (arg2 == NULL) {
24354 PyErr_SetString(PyExc_TypeError,"null reference");
24355 SWIG_fail;
24356 }
24357 {
24358 PyThreadState* __tstate = wxPyBeginAllowThreads();
24359 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
24360
24361 wxPyEndAllowThreads(__tstate);
24362 if (PyErr_Occurred()) SWIG_fail;
24363 }
24364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
24365 return resultobj;
24366 fail:
24367 return NULL;
24368 }
24369
24370
24371 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
24372 PyObject *resultobj;
24373 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24374 wxTreeItemId *arg2 = 0 ;
24375 PyObject *result;
24376 PyObject * obj0 = 0 ;
24377 PyObject * obj1 = 0 ;
24378 char *kwnames[] = {
24379 (char *) "self",(char *) "item", NULL
24380 };
24381
24382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
24383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24385 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24386 SWIG_POINTER_EXCEPTION | 0)) == -1)
24387 SWIG_fail;
24388 if (arg2 == NULL) {
24389 PyErr_SetString(PyExc_TypeError,"null reference");
24390 SWIG_fail;
24391 }
24392 {
24393 PyThreadState* __tstate = wxPyBeginAllowThreads();
24394 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
24395
24396 wxPyEndAllowThreads(__tstate);
24397 if (PyErr_Occurred()) SWIG_fail;
24398 }
24399 resultobj = result;
24400 return resultobj;
24401 fail:
24402 return NULL;
24403 }
24404
24405
24406 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
24407 PyObject *resultobj;
24408 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24409 wxTreeItemId *arg2 = 0 ;
24410 wxColour result;
24411 PyObject * obj0 = 0 ;
24412 PyObject * obj1 = 0 ;
24413 char *kwnames[] = {
24414 (char *) "self",(char *) "item", NULL
24415 };
24416
24417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
24418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24420 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24421 SWIG_POINTER_EXCEPTION | 0)) == -1)
24422 SWIG_fail;
24423 if (arg2 == NULL) {
24424 PyErr_SetString(PyExc_TypeError,"null reference");
24425 SWIG_fail;
24426 }
24427 {
24428 PyThreadState* __tstate = wxPyBeginAllowThreads();
24429 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
24430
24431 wxPyEndAllowThreads(__tstate);
24432 if (PyErr_Occurred()) SWIG_fail;
24433 }
24434 {
24435 wxColour * resultptr;
24436 resultptr = new wxColour((wxColour &) result);
24437 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24438 }
24439 return resultobj;
24440 fail:
24441 return NULL;
24442 }
24443
24444
24445 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
24446 PyObject *resultobj;
24447 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24448 wxTreeItemId *arg2 = 0 ;
24449 wxColour result;
24450 PyObject * obj0 = 0 ;
24451 PyObject * obj1 = 0 ;
24452 char *kwnames[] = {
24453 (char *) "self",(char *) "item", NULL
24454 };
24455
24456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24459 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24460 SWIG_POINTER_EXCEPTION | 0)) == -1)
24461 SWIG_fail;
24462 if (arg2 == NULL) {
24463 PyErr_SetString(PyExc_TypeError,"null reference");
24464 SWIG_fail;
24465 }
24466 {
24467 PyThreadState* __tstate = wxPyBeginAllowThreads();
24468 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
24469
24470 wxPyEndAllowThreads(__tstate);
24471 if (PyErr_Occurred()) SWIG_fail;
24472 }
24473 {
24474 wxColour * resultptr;
24475 resultptr = new wxColour((wxColour &) result);
24476 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24477 }
24478 return resultobj;
24479 fail:
24480 return NULL;
24481 }
24482
24483
24484 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
24485 PyObject *resultobj;
24486 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24487 wxTreeItemId *arg2 = 0 ;
24488 wxFont result;
24489 PyObject * obj0 = 0 ;
24490 PyObject * obj1 = 0 ;
24491 char *kwnames[] = {
24492 (char *) "self",(char *) "item", NULL
24493 };
24494
24495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
24496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24498 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24499 SWIG_POINTER_EXCEPTION | 0)) == -1)
24500 SWIG_fail;
24501 if (arg2 == NULL) {
24502 PyErr_SetString(PyExc_TypeError,"null reference");
24503 SWIG_fail;
24504 }
24505 {
24506 PyThreadState* __tstate = wxPyBeginAllowThreads();
24507 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
24508
24509 wxPyEndAllowThreads(__tstate);
24510 if (PyErr_Occurred()) SWIG_fail;
24511 }
24512 {
24513 wxFont * resultptr;
24514 resultptr = new wxFont((wxFont &) result);
24515 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
24516 }
24517 return resultobj;
24518 fail:
24519 return NULL;
24520 }
24521
24522
24523 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
24524 PyObject *resultobj;
24525 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24526 wxTreeItemId *arg2 = 0 ;
24527 wxString *arg3 = 0 ;
24528 bool temp3 = False ;
24529 PyObject * obj0 = 0 ;
24530 PyObject * obj1 = 0 ;
24531 PyObject * obj2 = 0 ;
24532 char *kwnames[] = {
24533 (char *) "self",(char *) "item",(char *) "text", NULL
24534 };
24535
24536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
24537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24539 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24540 SWIG_POINTER_EXCEPTION | 0)) == -1)
24541 SWIG_fail;
24542 if (arg2 == NULL) {
24543 PyErr_SetString(PyExc_TypeError,"null reference");
24544 SWIG_fail;
24545 }
24546 {
24547 arg3 = wxString_in_helper(obj2);
24548 if (arg3 == NULL) SWIG_fail;
24549 temp3 = True;
24550 }
24551 {
24552 PyThreadState* __tstate = wxPyBeginAllowThreads();
24553 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
24554
24555 wxPyEndAllowThreads(__tstate);
24556 if (PyErr_Occurred()) SWIG_fail;
24557 }
24558 Py_INCREF(Py_None); resultobj = Py_None;
24559 {
24560 if (temp3)
24561 delete arg3;
24562 }
24563 return resultobj;
24564 fail:
24565 {
24566 if (temp3)
24567 delete arg3;
24568 }
24569 return NULL;
24570 }
24571
24572
24573 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
24574 PyObject *resultobj;
24575 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24576 wxTreeItemId *arg2 = 0 ;
24577 int arg3 ;
24578 int arg4 = (int) wxTreeItemIcon_Normal ;
24579 PyObject * obj0 = 0 ;
24580 PyObject * obj1 = 0 ;
24581 PyObject * obj2 = 0 ;
24582 PyObject * obj3 = 0 ;
24583 char *kwnames[] = {
24584 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
24585 };
24586
24587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24590 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24591 SWIG_POINTER_EXCEPTION | 0)) == -1)
24592 SWIG_fail;
24593 if (arg2 == NULL) {
24594 PyErr_SetString(PyExc_TypeError,"null reference");
24595 SWIG_fail;
24596 }
24597 arg3 = (int) SWIG_AsInt(obj2);
24598 if (PyErr_Occurred()) SWIG_fail;
24599 if (obj3) {
24600 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
24601 if (PyErr_Occurred()) SWIG_fail;
24602 }
24603 {
24604 PyThreadState* __tstate = wxPyBeginAllowThreads();
24605 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
24606
24607 wxPyEndAllowThreads(__tstate);
24608 if (PyErr_Occurred()) SWIG_fail;
24609 }
24610 Py_INCREF(Py_None); resultobj = Py_None;
24611 return resultobj;
24612 fail:
24613 return NULL;
24614 }
24615
24616
24617 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
24618 PyObject *resultobj;
24619 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24620 wxTreeItemId *arg2 = 0 ;
24621 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
24622 PyObject * obj0 = 0 ;
24623 PyObject * obj1 = 0 ;
24624 PyObject * obj2 = 0 ;
24625 char *kwnames[] = {
24626 (char *) "self",(char *) "item",(char *) "data", NULL
24627 };
24628
24629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24632 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24633 SWIG_POINTER_EXCEPTION | 0)) == -1)
24634 SWIG_fail;
24635 if (arg2 == NULL) {
24636 PyErr_SetString(PyExc_TypeError,"null reference");
24637 SWIG_fail;
24638 }
24639 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
24640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24641 {
24642 PyThreadState* __tstate = wxPyBeginAllowThreads();
24643 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
24644
24645 wxPyEndAllowThreads(__tstate);
24646 if (PyErr_Occurred()) SWIG_fail;
24647 }
24648 Py_INCREF(Py_None); resultobj = Py_None;
24649 return resultobj;
24650 fail:
24651 return NULL;
24652 }
24653
24654
24655 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
24656 PyObject *resultobj;
24657 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24658 wxTreeItemId *arg2 = 0 ;
24659 PyObject *arg3 = (PyObject *) 0 ;
24660 PyObject * obj0 = 0 ;
24661 PyObject * obj1 = 0 ;
24662 PyObject * obj2 = 0 ;
24663 char *kwnames[] = {
24664 (char *) "self",(char *) "item",(char *) "obj", NULL
24665 };
24666
24667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24670 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24671 SWIG_POINTER_EXCEPTION | 0)) == -1)
24672 SWIG_fail;
24673 if (arg2 == NULL) {
24674 PyErr_SetString(PyExc_TypeError,"null reference");
24675 SWIG_fail;
24676 }
24677 arg3 = obj2;
24678 {
24679 PyThreadState* __tstate = wxPyBeginAllowThreads();
24680 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
24681
24682 wxPyEndAllowThreads(__tstate);
24683 if (PyErr_Occurred()) SWIG_fail;
24684 }
24685 Py_INCREF(Py_None); resultobj = Py_None;
24686 return resultobj;
24687 fail:
24688 return NULL;
24689 }
24690
24691
24692 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
24693 PyObject *resultobj;
24694 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24695 wxTreeItemId *arg2 = 0 ;
24696 bool arg3 = (bool) True ;
24697 PyObject * obj0 = 0 ;
24698 PyObject * obj1 = 0 ;
24699 PyObject * obj2 = 0 ;
24700 char *kwnames[] = {
24701 (char *) "self",(char *) "item",(char *) "has", NULL
24702 };
24703
24704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
24705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24707 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24708 SWIG_POINTER_EXCEPTION | 0)) == -1)
24709 SWIG_fail;
24710 if (arg2 == NULL) {
24711 PyErr_SetString(PyExc_TypeError,"null reference");
24712 SWIG_fail;
24713 }
24714 if (obj2) {
24715 arg3 = (bool) SWIG_AsBool(obj2);
24716 if (PyErr_Occurred()) SWIG_fail;
24717 }
24718 {
24719 PyThreadState* __tstate = wxPyBeginAllowThreads();
24720 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
24721
24722 wxPyEndAllowThreads(__tstate);
24723 if (PyErr_Occurred()) SWIG_fail;
24724 }
24725 Py_INCREF(Py_None); resultobj = Py_None;
24726 return resultobj;
24727 fail:
24728 return NULL;
24729 }
24730
24731
24732 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) {
24733 PyObject *resultobj;
24734 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24735 wxTreeItemId *arg2 = 0 ;
24736 bool arg3 = (bool) True ;
24737 PyObject * obj0 = 0 ;
24738 PyObject * obj1 = 0 ;
24739 PyObject * obj2 = 0 ;
24740 char *kwnames[] = {
24741 (char *) "self",(char *) "item",(char *) "bold", NULL
24742 };
24743
24744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
24745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24747 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24748 SWIG_POINTER_EXCEPTION | 0)) == -1)
24749 SWIG_fail;
24750 if (arg2 == NULL) {
24751 PyErr_SetString(PyExc_TypeError,"null reference");
24752 SWIG_fail;
24753 }
24754 if (obj2) {
24755 arg3 = (bool) SWIG_AsBool(obj2);
24756 if (PyErr_Occurred()) SWIG_fail;
24757 }
24758 {
24759 PyThreadState* __tstate = wxPyBeginAllowThreads();
24760 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
24761
24762 wxPyEndAllowThreads(__tstate);
24763 if (PyErr_Occurred()) SWIG_fail;
24764 }
24765 Py_INCREF(Py_None); resultobj = Py_None;
24766 return resultobj;
24767 fail:
24768 return NULL;
24769 }
24770
24771
24772 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
24773 PyObject *resultobj;
24774 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24775 wxTreeItemId *arg2 = 0 ;
24776 wxColour *arg3 = 0 ;
24777 wxColour temp3 ;
24778 PyObject * obj0 = 0 ;
24779 PyObject * obj1 = 0 ;
24780 PyObject * obj2 = 0 ;
24781 char *kwnames[] = {
24782 (char *) "self",(char *) "item",(char *) "col", NULL
24783 };
24784
24785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24789 SWIG_POINTER_EXCEPTION | 0)) == -1)
24790 SWIG_fail;
24791 if (arg2 == NULL) {
24792 PyErr_SetString(PyExc_TypeError,"null reference");
24793 SWIG_fail;
24794 }
24795 {
24796 arg3 = &temp3;
24797 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24798 }
24799 {
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
24802
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 Py_INCREF(Py_None); resultobj = Py_None;
24807 return resultobj;
24808 fail:
24809 return NULL;
24810 }
24811
24812
24813 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
24814 PyObject *resultobj;
24815 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24816 wxTreeItemId *arg2 = 0 ;
24817 wxColour *arg3 = 0 ;
24818 wxColour temp3 ;
24819 PyObject * obj0 = 0 ;
24820 PyObject * obj1 = 0 ;
24821 PyObject * obj2 = 0 ;
24822 char *kwnames[] = {
24823 (char *) "self",(char *) "item",(char *) "col", NULL
24824 };
24825
24826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24829 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24830 SWIG_POINTER_EXCEPTION | 0)) == -1)
24831 SWIG_fail;
24832 if (arg2 == NULL) {
24833 PyErr_SetString(PyExc_TypeError,"null reference");
24834 SWIG_fail;
24835 }
24836 {
24837 arg3 = &temp3;
24838 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24839 }
24840 {
24841 PyThreadState* __tstate = wxPyBeginAllowThreads();
24842 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
24843
24844 wxPyEndAllowThreads(__tstate);
24845 if (PyErr_Occurred()) SWIG_fail;
24846 }
24847 Py_INCREF(Py_None); resultobj = Py_None;
24848 return resultobj;
24849 fail:
24850 return NULL;
24851 }
24852
24853
24854 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
24855 PyObject *resultobj;
24856 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24857 wxTreeItemId *arg2 = 0 ;
24858 wxFont *arg3 = 0 ;
24859 PyObject * obj0 = 0 ;
24860 PyObject * obj1 = 0 ;
24861 PyObject * obj2 = 0 ;
24862 char *kwnames[] = {
24863 (char *) "self",(char *) "item",(char *) "font", NULL
24864 };
24865
24866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
24867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24870 SWIG_POINTER_EXCEPTION | 0)) == -1)
24871 SWIG_fail;
24872 if (arg2 == NULL) {
24873 PyErr_SetString(PyExc_TypeError,"null reference");
24874 SWIG_fail;
24875 }
24876 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
24877 SWIG_POINTER_EXCEPTION | 0)) == -1)
24878 SWIG_fail;
24879 if (arg3 == NULL) {
24880 PyErr_SetString(PyExc_TypeError,"null reference");
24881 SWIG_fail;
24882 }
24883 {
24884 PyThreadState* __tstate = wxPyBeginAllowThreads();
24885 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
24886
24887 wxPyEndAllowThreads(__tstate);
24888 if (PyErr_Occurred()) SWIG_fail;
24889 }
24890 Py_INCREF(Py_None); resultobj = Py_None;
24891 return resultobj;
24892 fail:
24893 return NULL;
24894 }
24895
24896
24897 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
24898 PyObject *resultobj;
24899 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24900 wxTreeItemId *arg2 = 0 ;
24901 bool result;
24902 PyObject * obj0 = 0 ;
24903 PyObject * obj1 = 0 ;
24904 char *kwnames[] = {
24905 (char *) "self",(char *) "item", NULL
24906 };
24907
24908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
24909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24911 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24912 SWIG_POINTER_EXCEPTION | 0)) == -1)
24913 SWIG_fail;
24914 if (arg2 == NULL) {
24915 PyErr_SetString(PyExc_TypeError,"null reference");
24916 SWIG_fail;
24917 }
24918 {
24919 PyThreadState* __tstate = wxPyBeginAllowThreads();
24920 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
24921
24922 wxPyEndAllowThreads(__tstate);
24923 if (PyErr_Occurred()) SWIG_fail;
24924 }
24925 {
24926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24927 }
24928 return resultobj;
24929 fail:
24930 return NULL;
24931 }
24932
24933
24934 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
24935 PyObject *resultobj;
24936 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24937 wxTreeItemId *arg2 = 0 ;
24938 bool result;
24939 PyObject * obj0 = 0 ;
24940 PyObject * obj1 = 0 ;
24941 char *kwnames[] = {
24942 (char *) "self",(char *) "item", NULL
24943 };
24944
24945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
24946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24948 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24949 SWIG_POINTER_EXCEPTION | 0)) == -1)
24950 SWIG_fail;
24951 if (arg2 == NULL) {
24952 PyErr_SetString(PyExc_TypeError,"null reference");
24953 SWIG_fail;
24954 }
24955 {
24956 PyThreadState* __tstate = wxPyBeginAllowThreads();
24957 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
24958
24959 wxPyEndAllowThreads(__tstate);
24960 if (PyErr_Occurred()) SWIG_fail;
24961 }
24962 {
24963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24964 }
24965 return resultobj;
24966 fail:
24967 return NULL;
24968 }
24969
24970
24971 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) {
24972 PyObject *resultobj;
24973 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24974 wxTreeItemId *arg2 = 0 ;
24975 bool result;
24976 PyObject * obj0 = 0 ;
24977 PyObject * obj1 = 0 ;
24978 char *kwnames[] = {
24979 (char *) "self",(char *) "item", NULL
24980 };
24981
24982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
24983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24985 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24986 SWIG_POINTER_EXCEPTION | 0)) == -1)
24987 SWIG_fail;
24988 if (arg2 == NULL) {
24989 PyErr_SetString(PyExc_TypeError,"null reference");
24990 SWIG_fail;
24991 }
24992 {
24993 PyThreadState* __tstate = wxPyBeginAllowThreads();
24994 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
24995
24996 wxPyEndAllowThreads(__tstate);
24997 if (PyErr_Occurred()) SWIG_fail;
24998 }
24999 {
25000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25001 }
25002 return resultobj;
25003 fail:
25004 return NULL;
25005 }
25006
25007
25008 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
25009 PyObject *resultobj;
25010 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25011 wxTreeItemId *arg2 = 0 ;
25012 bool result;
25013 PyObject * obj0 = 0 ;
25014 PyObject * obj1 = 0 ;
25015 char *kwnames[] = {
25016 (char *) "self",(char *) "item", NULL
25017 };
25018
25019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
25020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25022 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25023 SWIG_POINTER_EXCEPTION | 0)) == -1)
25024 SWIG_fail;
25025 if (arg2 == NULL) {
25026 PyErr_SetString(PyExc_TypeError,"null reference");
25027 SWIG_fail;
25028 }
25029 {
25030 PyThreadState* __tstate = wxPyBeginAllowThreads();
25031 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
25032
25033 wxPyEndAllowThreads(__tstate);
25034 if (PyErr_Occurred()) SWIG_fail;
25035 }
25036 {
25037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25038 }
25039 return resultobj;
25040 fail:
25041 return NULL;
25042 }
25043
25044
25045 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) {
25046 PyObject *resultobj;
25047 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25048 wxTreeItemId *arg2 = 0 ;
25049 bool result;
25050 PyObject * obj0 = 0 ;
25051 PyObject * obj1 = 0 ;
25052 char *kwnames[] = {
25053 (char *) "self",(char *) "item", NULL
25054 };
25055
25056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
25057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25059 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25060 SWIG_POINTER_EXCEPTION | 0)) == -1)
25061 SWIG_fail;
25062 if (arg2 == NULL) {
25063 PyErr_SetString(PyExc_TypeError,"null reference");
25064 SWIG_fail;
25065 }
25066 {
25067 PyThreadState* __tstate = wxPyBeginAllowThreads();
25068 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
25069
25070 wxPyEndAllowThreads(__tstate);
25071 if (PyErr_Occurred()) SWIG_fail;
25072 }
25073 {
25074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25075 }
25076 return resultobj;
25077 fail:
25078 return NULL;
25079 }
25080
25081
25082 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) {
25083 PyObject *resultobj;
25084 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25085 wxTreeItemId *arg2 = 0 ;
25086 bool arg3 = (bool) True ;
25087 size_t result;
25088 PyObject * obj0 = 0 ;
25089 PyObject * obj1 = 0 ;
25090 PyObject * obj2 = 0 ;
25091 char *kwnames[] = {
25092 (char *) "self",(char *) "item",(char *) "recursively", NULL
25093 };
25094
25095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
25096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25098 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25099 SWIG_POINTER_EXCEPTION | 0)) == -1)
25100 SWIG_fail;
25101 if (arg2 == NULL) {
25102 PyErr_SetString(PyExc_TypeError,"null reference");
25103 SWIG_fail;
25104 }
25105 if (obj2) {
25106 arg3 = (bool) SWIG_AsBool(obj2);
25107 if (PyErr_Occurred()) SWIG_fail;
25108 }
25109 {
25110 PyThreadState* __tstate = wxPyBeginAllowThreads();
25111 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
25112
25113 wxPyEndAllowThreads(__tstate);
25114 if (PyErr_Occurred()) SWIG_fail;
25115 }
25116 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25117 return resultobj;
25118 fail:
25119 return NULL;
25120 }
25121
25122
25123 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) {
25124 PyObject *resultobj;
25125 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25126 wxTreeItemId result;
25127 PyObject * obj0 = 0 ;
25128 char *kwnames[] = {
25129 (char *) "self", NULL
25130 };
25131
25132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
25133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25135 {
25136 PyThreadState* __tstate = wxPyBeginAllowThreads();
25137 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
25138
25139 wxPyEndAllowThreads(__tstate);
25140 if (PyErr_Occurred()) SWIG_fail;
25141 }
25142 {
25143 wxTreeItemId * resultptr;
25144 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25145 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25146 }
25147 return resultobj;
25148 fail:
25149 return NULL;
25150 }
25151
25152
25153 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
25154 PyObject *resultobj;
25155 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25156 wxTreeItemId result;
25157 PyObject * obj0 = 0 ;
25158 char *kwnames[] = {
25159 (char *) "self", NULL
25160 };
25161
25162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
25163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25165 {
25166 PyThreadState* __tstate = wxPyBeginAllowThreads();
25167 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
25168
25169 wxPyEndAllowThreads(__tstate);
25170 if (PyErr_Occurred()) SWIG_fail;
25171 }
25172 {
25173 wxTreeItemId * resultptr;
25174 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25175 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25176 }
25177 return resultobj;
25178 fail:
25179 return NULL;
25180 }
25181
25182
25183 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
25184 PyObject *resultobj;
25185 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25186 PyObject *result;
25187 PyObject * obj0 = 0 ;
25188 char *kwnames[] = {
25189 (char *) "self", NULL
25190 };
25191
25192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
25193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25195 {
25196 PyThreadState* __tstate = wxPyBeginAllowThreads();
25197 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
25198
25199 wxPyEndAllowThreads(__tstate);
25200 if (PyErr_Occurred()) SWIG_fail;
25201 }
25202 resultobj = result;
25203 return resultobj;
25204 fail:
25205 return NULL;
25206 }
25207
25208
25209 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) {
25210 PyObject *resultobj;
25211 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25212 wxTreeItemId *arg2 = 0 ;
25213 wxTreeItemId result;
25214 PyObject * obj0 = 0 ;
25215 PyObject * obj1 = 0 ;
25216 char *kwnames[] = {
25217 (char *) "self",(char *) "item", NULL
25218 };
25219
25220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
25221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25223 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25224 SWIG_POINTER_EXCEPTION | 0)) == -1)
25225 SWIG_fail;
25226 if (arg2 == NULL) {
25227 PyErr_SetString(PyExc_TypeError,"null reference");
25228 SWIG_fail;
25229 }
25230 {
25231 PyThreadState* __tstate = wxPyBeginAllowThreads();
25232 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
25233
25234 wxPyEndAllowThreads(__tstate);
25235 if (PyErr_Occurred()) SWIG_fail;
25236 }
25237 {
25238 wxTreeItemId * resultptr;
25239 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25240 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25241 }
25242 return resultobj;
25243 fail:
25244 return NULL;
25245 }
25246
25247
25248 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) {
25249 PyObject *resultobj;
25250 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25251 wxTreeItemId *arg2 = 0 ;
25252 PyObject *result;
25253 PyObject * obj0 = 0 ;
25254 PyObject * obj1 = 0 ;
25255 char *kwnames[] = {
25256 (char *) "self",(char *) "item", NULL
25257 };
25258
25259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",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_wxTreeItemId,
25263 SWIG_POINTER_EXCEPTION | 0)) == -1)
25264 SWIG_fail;
25265 if (arg2 == NULL) {
25266 PyErr_SetString(PyExc_TypeError,"null reference");
25267 SWIG_fail;
25268 }
25269 {
25270 PyThreadState* __tstate = wxPyBeginAllowThreads();
25271 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
25272
25273 wxPyEndAllowThreads(__tstate);
25274 if (PyErr_Occurred()) SWIG_fail;
25275 }
25276 resultobj = result;
25277 return resultobj;
25278 fail:
25279 return NULL;
25280 }
25281
25282
25283 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) {
25284 PyObject *resultobj;
25285 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25286 wxTreeItemId *arg2 = 0 ;
25287 void *arg3 = (void *) 0 ;
25288 PyObject *result;
25289 PyObject * obj0 = 0 ;
25290 PyObject * obj1 = 0 ;
25291 PyObject * obj2 = 0 ;
25292 char *kwnames[] = {
25293 (char *) "self",(char *) "item",(char *) "cookie", NULL
25294 };
25295
25296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
25297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25299 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25300 SWIG_POINTER_EXCEPTION | 0)) == -1)
25301 SWIG_fail;
25302 if (arg2 == NULL) {
25303 PyErr_SetString(PyExc_TypeError,"null reference");
25304 SWIG_fail;
25305 }
25306 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25307 {
25308 PyThreadState* __tstate = wxPyBeginAllowThreads();
25309 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
25310
25311 wxPyEndAllowThreads(__tstate);
25312 if (PyErr_Occurred()) SWIG_fail;
25313 }
25314 resultobj = result;
25315 return resultobj;
25316 fail:
25317 return NULL;
25318 }
25319
25320
25321 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) {
25322 PyObject *resultobj;
25323 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25324 wxTreeItemId *arg2 = 0 ;
25325 wxTreeItemId result;
25326 PyObject * obj0 = 0 ;
25327 PyObject * obj1 = 0 ;
25328 char *kwnames[] = {
25329 (char *) "self",(char *) "item", NULL
25330 };
25331
25332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
25333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25335 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25336 SWIG_POINTER_EXCEPTION | 0)) == -1)
25337 SWIG_fail;
25338 if (arg2 == NULL) {
25339 PyErr_SetString(PyExc_TypeError,"null reference");
25340 SWIG_fail;
25341 }
25342 {
25343 PyThreadState* __tstate = wxPyBeginAllowThreads();
25344 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
25345
25346 wxPyEndAllowThreads(__tstate);
25347 if (PyErr_Occurred()) SWIG_fail;
25348 }
25349 {
25350 wxTreeItemId * resultptr;
25351 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25352 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25353 }
25354 return resultobj;
25355 fail:
25356 return NULL;
25357 }
25358
25359
25360 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) {
25361 PyObject *resultobj;
25362 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25363 wxTreeItemId *arg2 = 0 ;
25364 wxTreeItemId result;
25365 PyObject * obj0 = 0 ;
25366 PyObject * obj1 = 0 ;
25367 char *kwnames[] = {
25368 (char *) "self",(char *) "item", NULL
25369 };
25370
25371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
25372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25375 SWIG_POINTER_EXCEPTION | 0)) == -1)
25376 SWIG_fail;
25377 if (arg2 == NULL) {
25378 PyErr_SetString(PyExc_TypeError,"null reference");
25379 SWIG_fail;
25380 }
25381 {
25382 PyThreadState* __tstate = wxPyBeginAllowThreads();
25383 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
25384
25385 wxPyEndAllowThreads(__tstate);
25386 if (PyErr_Occurred()) SWIG_fail;
25387 }
25388 {
25389 wxTreeItemId * resultptr;
25390 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25391 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25392 }
25393 return resultobj;
25394 fail:
25395 return NULL;
25396 }
25397
25398
25399 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) {
25400 PyObject *resultobj;
25401 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25402 wxTreeItemId *arg2 = 0 ;
25403 wxTreeItemId result;
25404 PyObject * obj0 = 0 ;
25405 PyObject * obj1 = 0 ;
25406 char *kwnames[] = {
25407 (char *) "self",(char *) "item", NULL
25408 };
25409
25410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
25411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25413 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25414 SWIG_POINTER_EXCEPTION | 0)) == -1)
25415 SWIG_fail;
25416 if (arg2 == NULL) {
25417 PyErr_SetString(PyExc_TypeError,"null reference");
25418 SWIG_fail;
25419 }
25420 {
25421 PyThreadState* __tstate = wxPyBeginAllowThreads();
25422 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
25423
25424 wxPyEndAllowThreads(__tstate);
25425 if (PyErr_Occurred()) SWIG_fail;
25426 }
25427 {
25428 wxTreeItemId * resultptr;
25429 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25430 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25431 }
25432 return resultobj;
25433 fail:
25434 return NULL;
25435 }
25436
25437
25438 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) {
25439 PyObject *resultobj;
25440 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25441 wxTreeItemId result;
25442 PyObject * obj0 = 0 ;
25443 char *kwnames[] = {
25444 (char *) "self", NULL
25445 };
25446
25447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
25448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25450 {
25451 PyThreadState* __tstate = wxPyBeginAllowThreads();
25452 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
25453
25454 wxPyEndAllowThreads(__tstate);
25455 if (PyErr_Occurred()) SWIG_fail;
25456 }
25457 {
25458 wxTreeItemId * resultptr;
25459 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25460 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25461 }
25462 return resultobj;
25463 fail:
25464 return NULL;
25465 }
25466
25467
25468 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) {
25469 PyObject *resultobj;
25470 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25471 wxTreeItemId *arg2 = 0 ;
25472 wxTreeItemId result;
25473 PyObject * obj0 = 0 ;
25474 PyObject * obj1 = 0 ;
25475 char *kwnames[] = {
25476 (char *) "self",(char *) "item", NULL
25477 };
25478
25479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
25480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25482 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25483 SWIG_POINTER_EXCEPTION | 0)) == -1)
25484 SWIG_fail;
25485 if (arg2 == NULL) {
25486 PyErr_SetString(PyExc_TypeError,"null reference");
25487 SWIG_fail;
25488 }
25489 {
25490 PyThreadState* __tstate = wxPyBeginAllowThreads();
25491 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
25492
25493 wxPyEndAllowThreads(__tstate);
25494 if (PyErr_Occurred()) SWIG_fail;
25495 }
25496 {
25497 wxTreeItemId * resultptr;
25498 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25499 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25500 }
25501 return resultobj;
25502 fail:
25503 return NULL;
25504 }
25505
25506
25507 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) {
25508 PyObject *resultobj;
25509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25510 wxTreeItemId *arg2 = 0 ;
25511 wxTreeItemId result;
25512 PyObject * obj0 = 0 ;
25513 PyObject * obj1 = 0 ;
25514 char *kwnames[] = {
25515 (char *) "self",(char *) "item", NULL
25516 };
25517
25518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
25519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25521 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25522 SWIG_POINTER_EXCEPTION | 0)) == -1)
25523 SWIG_fail;
25524 if (arg2 == NULL) {
25525 PyErr_SetString(PyExc_TypeError,"null reference");
25526 SWIG_fail;
25527 }
25528 {
25529 PyThreadState* __tstate = wxPyBeginAllowThreads();
25530 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
25531
25532 wxPyEndAllowThreads(__tstate);
25533 if (PyErr_Occurred()) SWIG_fail;
25534 }
25535 {
25536 wxTreeItemId * resultptr;
25537 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25538 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25539 }
25540 return resultobj;
25541 fail:
25542 return NULL;
25543 }
25544
25545
25546 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) {
25547 PyObject *resultobj;
25548 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25549 wxString *arg2 = 0 ;
25550 int arg3 = (int) -1 ;
25551 int arg4 = (int) -1 ;
25552 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
25553 wxTreeItemId result;
25554 bool temp2 = False ;
25555 PyObject * obj0 = 0 ;
25556 PyObject * obj1 = 0 ;
25557 PyObject * obj2 = 0 ;
25558 PyObject * obj3 = 0 ;
25559 PyObject * obj4 = 0 ;
25560 char *kwnames[] = {
25561 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25562 };
25563
25564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
25565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25567 {
25568 arg2 = wxString_in_helper(obj1);
25569 if (arg2 == NULL) SWIG_fail;
25570 temp2 = True;
25571 }
25572 if (obj2) {
25573 arg3 = (int) SWIG_AsInt(obj2);
25574 if (PyErr_Occurred()) SWIG_fail;
25575 }
25576 if (obj3) {
25577 arg4 = (int) SWIG_AsInt(obj3);
25578 if (PyErr_Occurred()) SWIG_fail;
25579 }
25580 if (obj4) {
25581 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
25582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25583 }
25584 {
25585 PyThreadState* __tstate = wxPyBeginAllowThreads();
25586 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
25587
25588 wxPyEndAllowThreads(__tstate);
25589 if (PyErr_Occurred()) SWIG_fail;
25590 }
25591 {
25592 wxTreeItemId * resultptr;
25593 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25594 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25595 }
25596 {
25597 if (temp2)
25598 delete arg2;
25599 }
25600 return resultobj;
25601 fail:
25602 {
25603 if (temp2)
25604 delete arg2;
25605 }
25606 return NULL;
25607 }
25608
25609
25610 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
25611 PyObject *resultobj;
25612 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25613 wxTreeItemId *arg2 = 0 ;
25614 wxString *arg3 = 0 ;
25615 int arg4 = (int) -1 ;
25616 int arg5 = (int) -1 ;
25617 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
25618 wxTreeItemId result;
25619 bool temp3 = False ;
25620 PyObject * obj0 = 0 ;
25621 PyObject * obj1 = 0 ;
25622 PyObject * obj2 = 0 ;
25623 PyObject * obj3 = 0 ;
25624 PyObject * obj4 = 0 ;
25625 PyObject * obj5 = 0 ;
25626 char *kwnames[] = {
25627 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25628 };
25629
25630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25633 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25634 SWIG_POINTER_EXCEPTION | 0)) == -1)
25635 SWIG_fail;
25636 if (arg2 == NULL) {
25637 PyErr_SetString(PyExc_TypeError,"null reference");
25638 SWIG_fail;
25639 }
25640 {
25641 arg3 = wxString_in_helper(obj2);
25642 if (arg3 == NULL) SWIG_fail;
25643 temp3 = True;
25644 }
25645 if (obj3) {
25646 arg4 = (int) SWIG_AsInt(obj3);
25647 if (PyErr_Occurred()) SWIG_fail;
25648 }
25649 if (obj4) {
25650 arg5 = (int) SWIG_AsInt(obj4);
25651 if (PyErr_Occurred()) SWIG_fail;
25652 }
25653 if (obj5) {
25654 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
25655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25656 }
25657 {
25658 PyThreadState* __tstate = wxPyBeginAllowThreads();
25659 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
25660
25661 wxPyEndAllowThreads(__tstate);
25662 if (PyErr_Occurred()) SWIG_fail;
25663 }
25664 {
25665 wxTreeItemId * resultptr;
25666 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25667 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25668 }
25669 {
25670 if (temp3)
25671 delete arg3;
25672 }
25673 return resultobj;
25674 fail:
25675 {
25676 if (temp3)
25677 delete arg3;
25678 }
25679 return NULL;
25680 }
25681
25682
25683 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
25684 PyObject *resultobj;
25685 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25686 wxTreeItemId *arg2 = 0 ;
25687 wxTreeItemId *arg3 = 0 ;
25688 wxString *arg4 = 0 ;
25689 int arg5 = (int) -1 ;
25690 int arg6 = (int) -1 ;
25691 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
25692 wxTreeItemId result;
25693 bool temp4 = False ;
25694 PyObject * obj0 = 0 ;
25695 PyObject * obj1 = 0 ;
25696 PyObject * obj2 = 0 ;
25697 PyObject * obj3 = 0 ;
25698 PyObject * obj4 = 0 ;
25699 PyObject * obj5 = 0 ;
25700 PyObject * obj6 = 0 ;
25701 char *kwnames[] = {
25702 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25703 };
25704
25705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25709 SWIG_POINTER_EXCEPTION | 0)) == -1)
25710 SWIG_fail;
25711 if (arg2 == NULL) {
25712 PyErr_SetString(PyExc_TypeError,"null reference");
25713 SWIG_fail;
25714 }
25715 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
25716 SWIG_POINTER_EXCEPTION | 0)) == -1)
25717 SWIG_fail;
25718 if (arg3 == NULL) {
25719 PyErr_SetString(PyExc_TypeError,"null reference");
25720 SWIG_fail;
25721 }
25722 {
25723 arg4 = wxString_in_helper(obj3);
25724 if (arg4 == NULL) SWIG_fail;
25725 temp4 = True;
25726 }
25727 if (obj4) {
25728 arg5 = (int) SWIG_AsInt(obj4);
25729 if (PyErr_Occurred()) SWIG_fail;
25730 }
25731 if (obj5) {
25732 arg6 = (int) SWIG_AsInt(obj5);
25733 if (PyErr_Occurred()) SWIG_fail;
25734 }
25735 if (obj6) {
25736 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
25737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25738 }
25739 {
25740 PyThreadState* __tstate = wxPyBeginAllowThreads();
25741 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
25742
25743 wxPyEndAllowThreads(__tstate);
25744 if (PyErr_Occurred()) SWIG_fail;
25745 }
25746 {
25747 wxTreeItemId * resultptr;
25748 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25749 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25750 }
25751 {
25752 if (temp4)
25753 delete arg4;
25754 }
25755 return resultobj;
25756 fail:
25757 {
25758 if (temp4)
25759 delete arg4;
25760 }
25761 return NULL;
25762 }
25763
25764
25765 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) {
25766 PyObject *resultobj;
25767 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25768 wxTreeItemId *arg2 = 0 ;
25769 size_t arg3 ;
25770 wxString *arg4 = 0 ;
25771 int arg5 = (int) -1 ;
25772 int arg6 = (int) -1 ;
25773 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
25774 wxTreeItemId result;
25775 bool temp4 = False ;
25776 PyObject * obj0 = 0 ;
25777 PyObject * obj1 = 0 ;
25778 PyObject * obj2 = 0 ;
25779 PyObject * obj3 = 0 ;
25780 PyObject * obj4 = 0 ;
25781 PyObject * obj5 = 0 ;
25782 PyObject * obj6 = 0 ;
25783 char *kwnames[] = {
25784 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25785 };
25786
25787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25790 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25791 SWIG_POINTER_EXCEPTION | 0)) == -1)
25792 SWIG_fail;
25793 if (arg2 == NULL) {
25794 PyErr_SetString(PyExc_TypeError,"null reference");
25795 SWIG_fail;
25796 }
25797 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
25798 if (PyErr_Occurred()) SWIG_fail;
25799 {
25800 arg4 = wxString_in_helper(obj3);
25801 if (arg4 == NULL) SWIG_fail;
25802 temp4 = True;
25803 }
25804 if (obj4) {
25805 arg5 = (int) SWIG_AsInt(obj4);
25806 if (PyErr_Occurred()) SWIG_fail;
25807 }
25808 if (obj5) {
25809 arg6 = (int) SWIG_AsInt(obj5);
25810 if (PyErr_Occurred()) SWIG_fail;
25811 }
25812 if (obj6) {
25813 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
25814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25815 }
25816 {
25817 PyThreadState* __tstate = wxPyBeginAllowThreads();
25818 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
25819
25820 wxPyEndAllowThreads(__tstate);
25821 if (PyErr_Occurred()) SWIG_fail;
25822 }
25823 {
25824 wxTreeItemId * resultptr;
25825 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25827 }
25828 {
25829 if (temp4)
25830 delete arg4;
25831 }
25832 return resultobj;
25833 fail:
25834 {
25835 if (temp4)
25836 delete arg4;
25837 }
25838 return NULL;
25839 }
25840
25841
25842 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
25843 PyObject *resultobj;
25844 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25845 wxTreeItemId *arg2 = 0 ;
25846 wxString *arg3 = 0 ;
25847 int arg4 = (int) -1 ;
25848 int arg5 = (int) -1 ;
25849 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
25850 wxTreeItemId result;
25851 bool temp3 = False ;
25852 PyObject * obj0 = 0 ;
25853 PyObject * obj1 = 0 ;
25854 PyObject * obj2 = 0 ;
25855 PyObject * obj3 = 0 ;
25856 PyObject * obj4 = 0 ;
25857 PyObject * obj5 = 0 ;
25858 char *kwnames[] = {
25859 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25860 };
25861
25862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25865 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25866 SWIG_POINTER_EXCEPTION | 0)) == -1)
25867 SWIG_fail;
25868 if (arg2 == NULL) {
25869 PyErr_SetString(PyExc_TypeError,"null reference");
25870 SWIG_fail;
25871 }
25872 {
25873 arg3 = wxString_in_helper(obj2);
25874 if (arg3 == NULL) SWIG_fail;
25875 temp3 = True;
25876 }
25877 if (obj3) {
25878 arg4 = (int) SWIG_AsInt(obj3);
25879 if (PyErr_Occurred()) SWIG_fail;
25880 }
25881 if (obj4) {
25882 arg5 = (int) SWIG_AsInt(obj4);
25883 if (PyErr_Occurred()) SWIG_fail;
25884 }
25885 if (obj5) {
25886 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
25887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25888 }
25889 {
25890 PyThreadState* __tstate = wxPyBeginAllowThreads();
25891 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
25892
25893 wxPyEndAllowThreads(__tstate);
25894 if (PyErr_Occurred()) SWIG_fail;
25895 }
25896 {
25897 wxTreeItemId * resultptr;
25898 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25899 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25900 }
25901 {
25902 if (temp3)
25903 delete arg3;
25904 }
25905 return resultobj;
25906 fail:
25907 {
25908 if (temp3)
25909 delete arg3;
25910 }
25911 return NULL;
25912 }
25913
25914
25915 static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
25916 PyObject *resultobj;
25917 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25918 wxTreeItemId *arg2 = 0 ;
25919 PyObject * obj0 = 0 ;
25920 PyObject * obj1 = 0 ;
25921 char *kwnames[] = {
25922 (char *) "self",(char *) "item", NULL
25923 };
25924
25925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
25926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25928 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25929 SWIG_POINTER_EXCEPTION | 0)) == -1)
25930 SWIG_fail;
25931 if (arg2 == NULL) {
25932 PyErr_SetString(PyExc_TypeError,"null reference");
25933 SWIG_fail;
25934 }
25935 {
25936 PyThreadState* __tstate = wxPyBeginAllowThreads();
25937 (arg1)->Delete((wxTreeItemId const &)*arg2);
25938
25939 wxPyEndAllowThreads(__tstate);
25940 if (PyErr_Occurred()) SWIG_fail;
25941 }
25942 Py_INCREF(Py_None); resultobj = Py_None;
25943 return resultobj;
25944 fail:
25945 return NULL;
25946 }
25947
25948
25949 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) {
25950 PyObject *resultobj;
25951 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25952 wxTreeItemId *arg2 = 0 ;
25953 PyObject * obj0 = 0 ;
25954 PyObject * obj1 = 0 ;
25955 char *kwnames[] = {
25956 (char *) "self",(char *) "item", NULL
25957 };
25958
25959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
25960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25962 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25963 SWIG_POINTER_EXCEPTION | 0)) == -1)
25964 SWIG_fail;
25965 if (arg2 == NULL) {
25966 PyErr_SetString(PyExc_TypeError,"null reference");
25967 SWIG_fail;
25968 }
25969 {
25970 PyThreadState* __tstate = wxPyBeginAllowThreads();
25971 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
25972
25973 wxPyEndAllowThreads(__tstate);
25974 if (PyErr_Occurred()) SWIG_fail;
25975 }
25976 Py_INCREF(Py_None); resultobj = Py_None;
25977 return resultobj;
25978 fail:
25979 return NULL;
25980 }
25981
25982
25983 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
25984 PyObject *resultobj;
25985 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25986 PyObject * obj0 = 0 ;
25987 char *kwnames[] = {
25988 (char *) "self", NULL
25989 };
25990
25991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
25992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25994 {
25995 PyThreadState* __tstate = wxPyBeginAllowThreads();
25996 (arg1)->DeleteAllItems();
25997
25998 wxPyEndAllowThreads(__tstate);
25999 if (PyErr_Occurred()) SWIG_fail;
26000 }
26001 Py_INCREF(Py_None); resultobj = Py_None;
26002 return resultobj;
26003 fail:
26004 return NULL;
26005 }
26006
26007
26008 static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) {
26009 PyObject *resultobj;
26010 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26011 wxTreeItemId *arg2 = 0 ;
26012 PyObject * obj0 = 0 ;
26013 PyObject * obj1 = 0 ;
26014 char *kwnames[] = {
26015 (char *) "self",(char *) "item", NULL
26016 };
26017
26018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
26019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26021 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26022 SWIG_POINTER_EXCEPTION | 0)) == -1)
26023 SWIG_fail;
26024 if (arg2 == NULL) {
26025 PyErr_SetString(PyExc_TypeError,"null reference");
26026 SWIG_fail;
26027 }
26028 {
26029 PyThreadState* __tstate = wxPyBeginAllowThreads();
26030 (arg1)->Expand((wxTreeItemId const &)*arg2);
26031
26032 wxPyEndAllowThreads(__tstate);
26033 if (PyErr_Occurred()) SWIG_fail;
26034 }
26035 Py_INCREF(Py_None); resultobj = Py_None;
26036 return resultobj;
26037 fail:
26038 return NULL;
26039 }
26040
26041
26042 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) {
26043 PyObject *resultobj;
26044 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26045 wxTreeItemId *arg2 = 0 ;
26046 PyObject * obj0 = 0 ;
26047 PyObject * obj1 = 0 ;
26048 char *kwnames[] = {
26049 (char *) "self",(char *) "item", NULL
26050 };
26051
26052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
26053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26056 SWIG_POINTER_EXCEPTION | 0)) == -1)
26057 SWIG_fail;
26058 if (arg2 == NULL) {
26059 PyErr_SetString(PyExc_TypeError,"null reference");
26060 SWIG_fail;
26061 }
26062 {
26063 PyThreadState* __tstate = wxPyBeginAllowThreads();
26064 (arg1)->Collapse((wxTreeItemId const &)*arg2);
26065
26066 wxPyEndAllowThreads(__tstate);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 Py_INCREF(Py_None); resultobj = Py_None;
26070 return resultobj;
26071 fail:
26072 return NULL;
26073 }
26074
26075
26076 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) {
26077 PyObject *resultobj;
26078 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26079 wxTreeItemId *arg2 = 0 ;
26080 PyObject * obj0 = 0 ;
26081 PyObject * obj1 = 0 ;
26082 char *kwnames[] = {
26083 (char *) "self",(char *) "item", NULL
26084 };
26085
26086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
26087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26089 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26090 SWIG_POINTER_EXCEPTION | 0)) == -1)
26091 SWIG_fail;
26092 if (arg2 == NULL) {
26093 PyErr_SetString(PyExc_TypeError,"null reference");
26094 SWIG_fail;
26095 }
26096 {
26097 PyThreadState* __tstate = wxPyBeginAllowThreads();
26098 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
26099
26100 wxPyEndAllowThreads(__tstate);
26101 if (PyErr_Occurred()) SWIG_fail;
26102 }
26103 Py_INCREF(Py_None); resultobj = Py_None;
26104 return resultobj;
26105 fail:
26106 return NULL;
26107 }
26108
26109
26110 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
26111 PyObject *resultobj;
26112 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26113 wxTreeItemId *arg2 = 0 ;
26114 PyObject * obj0 = 0 ;
26115 PyObject * obj1 = 0 ;
26116 char *kwnames[] = {
26117 (char *) "self",(char *) "item", NULL
26118 };
26119
26120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
26121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26123 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26124 SWIG_POINTER_EXCEPTION | 0)) == -1)
26125 SWIG_fail;
26126 if (arg2 == NULL) {
26127 PyErr_SetString(PyExc_TypeError,"null reference");
26128 SWIG_fail;
26129 }
26130 {
26131 PyThreadState* __tstate = wxPyBeginAllowThreads();
26132 (arg1)->Toggle((wxTreeItemId const &)*arg2);
26133
26134 wxPyEndAllowThreads(__tstate);
26135 if (PyErr_Occurred()) SWIG_fail;
26136 }
26137 Py_INCREF(Py_None); resultobj = Py_None;
26138 return resultobj;
26139 fail:
26140 return NULL;
26141 }
26142
26143
26144 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) {
26145 PyObject *resultobj;
26146 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26147 PyObject * obj0 = 0 ;
26148 char *kwnames[] = {
26149 (char *) "self", NULL
26150 };
26151
26152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
26153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26155 {
26156 PyThreadState* __tstate = wxPyBeginAllowThreads();
26157 (arg1)->Unselect();
26158
26159 wxPyEndAllowThreads(__tstate);
26160 if (PyErr_Occurred()) SWIG_fail;
26161 }
26162 Py_INCREF(Py_None); resultobj = Py_None;
26163 return resultobj;
26164 fail:
26165 return NULL;
26166 }
26167
26168
26169 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) {
26170 PyObject *resultobj;
26171 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26172 wxTreeItemId *arg2 = 0 ;
26173 PyObject * obj0 = 0 ;
26174 PyObject * obj1 = 0 ;
26175 char *kwnames[] = {
26176 (char *) "self",(char *) "item", NULL
26177 };
26178
26179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
26180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26182 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26183 SWIG_POINTER_EXCEPTION | 0)) == -1)
26184 SWIG_fail;
26185 if (arg2 == NULL) {
26186 PyErr_SetString(PyExc_TypeError,"null reference");
26187 SWIG_fail;
26188 }
26189 {
26190 PyThreadState* __tstate = wxPyBeginAllowThreads();
26191 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
26192
26193 wxPyEndAllowThreads(__tstate);
26194 if (PyErr_Occurred()) SWIG_fail;
26195 }
26196 Py_INCREF(Py_None); resultobj = Py_None;
26197 return resultobj;
26198 fail:
26199 return NULL;
26200 }
26201
26202
26203 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
26204 PyObject *resultobj;
26205 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26206 PyObject * obj0 = 0 ;
26207 char *kwnames[] = {
26208 (char *) "self", NULL
26209 };
26210
26211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
26212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26214 {
26215 PyThreadState* __tstate = wxPyBeginAllowThreads();
26216 (arg1)->UnselectAll();
26217
26218 wxPyEndAllowThreads(__tstate);
26219 if (PyErr_Occurred()) SWIG_fail;
26220 }
26221 Py_INCREF(Py_None); resultobj = Py_None;
26222 return resultobj;
26223 fail:
26224 return NULL;
26225 }
26226
26227
26228 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) {
26229 PyObject *resultobj;
26230 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26231 wxTreeItemId *arg2 = 0 ;
26232 bool arg3 = (bool) True ;
26233 PyObject * obj0 = 0 ;
26234 PyObject * obj1 = 0 ;
26235 PyObject * obj2 = 0 ;
26236 char *kwnames[] = {
26237 (char *) "self",(char *) "item",(char *) "select", NULL
26238 };
26239
26240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
26241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26243 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26244 SWIG_POINTER_EXCEPTION | 0)) == -1)
26245 SWIG_fail;
26246 if (arg2 == NULL) {
26247 PyErr_SetString(PyExc_TypeError,"null reference");
26248 SWIG_fail;
26249 }
26250 if (obj2) {
26251 arg3 = (bool) SWIG_AsBool(obj2);
26252 if (PyErr_Occurred()) SWIG_fail;
26253 }
26254 {
26255 PyThreadState* __tstate = wxPyBeginAllowThreads();
26256 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
26257
26258 wxPyEndAllowThreads(__tstate);
26259 if (PyErr_Occurred()) SWIG_fail;
26260 }
26261 Py_INCREF(Py_None); resultobj = Py_None;
26262 return resultobj;
26263 fail:
26264 return NULL;
26265 }
26266
26267
26268 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) {
26269 PyObject *resultobj;
26270 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26271 wxTreeItemId *arg2 = 0 ;
26272 PyObject * obj0 = 0 ;
26273 PyObject * obj1 = 0 ;
26274 char *kwnames[] = {
26275 (char *) "self",(char *) "item", NULL
26276 };
26277
26278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
26279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26282 SWIG_POINTER_EXCEPTION | 0)) == -1)
26283 SWIG_fail;
26284 if (arg2 == NULL) {
26285 PyErr_SetString(PyExc_TypeError,"null reference");
26286 SWIG_fail;
26287 }
26288 {
26289 PyThreadState* __tstate = wxPyBeginAllowThreads();
26290 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
26291
26292 wxPyEndAllowThreads(__tstate);
26293 if (PyErr_Occurred()) SWIG_fail;
26294 }
26295 Py_INCREF(Py_None); resultobj = Py_None;
26296 return resultobj;
26297 fail:
26298 return NULL;
26299 }
26300
26301
26302 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26303 PyObject *resultobj;
26304 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26305 wxTreeItemId *arg2 = 0 ;
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_EnsureVisible",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 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
26325
26326 wxPyEndAllowThreads(__tstate);
26327 if (PyErr_Occurred()) SWIG_fail;
26328 }
26329 Py_INCREF(Py_None); resultobj = Py_None;
26330 return resultobj;
26331 fail:
26332 return NULL;
26333 }
26334
26335
26336 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) {
26337 PyObject *resultobj;
26338 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26339 wxTreeItemId *arg2 = 0 ;
26340 PyObject * obj0 = 0 ;
26341 PyObject * obj1 = 0 ;
26342 char *kwnames[] = {
26343 (char *) "self",(char *) "item", NULL
26344 };
26345
26346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
26347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26350 SWIG_POINTER_EXCEPTION | 0)) == -1)
26351 SWIG_fail;
26352 if (arg2 == NULL) {
26353 PyErr_SetString(PyExc_TypeError,"null reference");
26354 SWIG_fail;
26355 }
26356 {
26357 PyThreadState* __tstate = wxPyBeginAllowThreads();
26358 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
26359
26360 wxPyEndAllowThreads(__tstate);
26361 if (PyErr_Occurred()) SWIG_fail;
26362 }
26363 Py_INCREF(Py_None); resultobj = Py_None;
26364 return resultobj;
26365 fail:
26366 return NULL;
26367 }
26368
26369
26370 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
26371 PyObject *resultobj;
26372 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26373 wxTreeItemId *arg2 = 0 ;
26374 PyObject * obj0 = 0 ;
26375 PyObject * obj1 = 0 ;
26376 char *kwnames[] = {
26377 (char *) "self",(char *) "item", NULL
26378 };
26379
26380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
26381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26383 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26384 SWIG_POINTER_EXCEPTION | 0)) == -1)
26385 SWIG_fail;
26386 if (arg2 == NULL) {
26387 PyErr_SetString(PyExc_TypeError,"null reference");
26388 SWIG_fail;
26389 }
26390 {
26391 PyThreadState* __tstate = wxPyBeginAllowThreads();
26392 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
26393
26394 wxPyEndAllowThreads(__tstate);
26395 if (PyErr_Occurred()) SWIG_fail;
26396 }
26397 Py_INCREF(Py_None); resultobj = Py_None;
26398 return resultobj;
26399 fail:
26400 return NULL;
26401 }
26402
26403
26404 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
26405 PyObject *resultobj;
26406 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26407 wxTextCtrl *result;
26408 PyObject * obj0 = 0 ;
26409 char *kwnames[] = {
26410 (char *) "self", NULL
26411 };
26412
26413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
26414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26416 {
26417 PyThreadState* __tstate = wxPyBeginAllowThreads();
26418 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
26419
26420 wxPyEndAllowThreads(__tstate);
26421 if (PyErr_Occurred()) SWIG_fail;
26422 }
26423 {
26424 resultobj = wxPyMake_wxObject(result);
26425 }
26426 return resultobj;
26427 fail:
26428 return NULL;
26429 }
26430
26431
26432 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26433 PyObject *resultobj;
26434 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26435 wxTreeItemId *arg2 = 0 ;
26436 PyObject * obj0 = 0 ;
26437 PyObject * obj1 = 0 ;
26438 char *kwnames[] = {
26439 (char *) "self",(char *) "item", NULL
26440 };
26441
26442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
26443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26446 SWIG_POINTER_EXCEPTION | 0)) == -1)
26447 SWIG_fail;
26448 if (arg2 == NULL) {
26449 PyErr_SetString(PyExc_TypeError,"null reference");
26450 SWIG_fail;
26451 }
26452 {
26453 PyThreadState* __tstate = wxPyBeginAllowThreads();
26454 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
26455
26456 wxPyEndAllowThreads(__tstate);
26457 if (PyErr_Occurred()) SWIG_fail;
26458 }
26459 Py_INCREF(Py_None); resultobj = Py_None;
26460 return resultobj;
26461 fail:
26462 return NULL;
26463 }
26464
26465
26466 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
26467 PyObject *resultobj;
26468 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26469 wxPoint *arg2 = 0 ;
26470 int *arg3 = 0 ;
26471 wxTreeItemId result;
26472 wxPoint temp2 ;
26473 int temp3 ;
26474 PyObject * obj0 = 0 ;
26475 PyObject * obj1 = 0 ;
26476 char *kwnames[] = {
26477 (char *) "self",(char *) "point", NULL
26478 };
26479
26480 arg3 = &temp3;
26481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
26482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26484 {
26485 arg2 = &temp2;
26486 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26487 }
26488 {
26489 PyThreadState* __tstate = wxPyBeginAllowThreads();
26490 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
26491
26492 wxPyEndAllowThreads(__tstate);
26493 if (PyErr_Occurred()) SWIG_fail;
26494 }
26495 {
26496 wxTreeItemId * resultptr;
26497 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26498 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26499 }
26500 {
26501 PyObject *o = PyInt_FromLong((long) (*arg3));
26502 resultobj = t_output_helper(resultobj,o);
26503 }
26504 return resultobj;
26505 fail:
26506 return NULL;
26507 }
26508
26509
26510 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) {
26511 PyObject *resultobj;
26512 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26513 wxTreeItemId *arg2 = 0 ;
26514 bool arg3 = (bool) False ;
26515 PyObject *result;
26516 PyObject * obj0 = 0 ;
26517 PyObject * obj1 = 0 ;
26518 PyObject * obj2 = 0 ;
26519 char *kwnames[] = {
26520 (char *) "self",(char *) "item",(char *) "textOnly", NULL
26521 };
26522
26523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
26524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26527 SWIG_POINTER_EXCEPTION | 0)) == -1)
26528 SWIG_fail;
26529 if (arg2 == NULL) {
26530 PyErr_SetString(PyExc_TypeError,"null reference");
26531 SWIG_fail;
26532 }
26533 if (obj2) {
26534 arg3 = (bool) SWIG_AsBool(obj2);
26535 if (PyErr_Occurred()) SWIG_fail;
26536 }
26537 {
26538 PyThreadState* __tstate = wxPyBeginAllowThreads();
26539 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
26540
26541 wxPyEndAllowThreads(__tstate);
26542 if (PyErr_Occurred()) SWIG_fail;
26543 }
26544 resultobj = result;
26545 return resultobj;
26546 fail:
26547 return NULL;
26548 }
26549
26550
26551 static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) {
26552 PyObject *obj;
26553 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26554 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
26555 Py_INCREF(obj);
26556 return Py_BuildValue((char *)"");
26557 }
26558 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
26559 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
26560 return 1;
26561 }
26562
26563
26564 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
26565 PyObject *pyobj;
26566
26567 {
26568 #if wxUSE_UNICODE
26569 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
26570 #else
26571 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
26572 #endif
26573 }
26574 return pyobj;
26575 }
26576
26577
26578 static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
26579 PyObject *resultobj;
26580 wxWindow *arg1 = (wxWindow *) 0 ;
26581 int arg2 = (int) (int)-1 ;
26582 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
26583 wxString *arg3 = (wxString *) &arg3_defvalue ;
26584 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26585 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26586 wxSize const &arg5_defvalue = wxDefaultSize ;
26587 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26588 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
26589 wxString const &arg7_defvalue = wxPyEmptyString ;
26590 wxString *arg7 = (wxString *) &arg7_defvalue ;
26591 int arg8 = (int) 0 ;
26592 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
26593 wxString *arg9 = (wxString *) &arg9_defvalue ;
26594 wxGenericDirCtrl *result;
26595 bool temp3 = False ;
26596 wxPoint temp4 ;
26597 wxSize temp5 ;
26598 bool temp7 = False ;
26599 bool temp9 = False ;
26600 PyObject * obj0 = 0 ;
26601 PyObject * obj1 = 0 ;
26602 PyObject * obj2 = 0 ;
26603 PyObject * obj3 = 0 ;
26604 PyObject * obj4 = 0 ;
26605 PyObject * obj5 = 0 ;
26606 PyObject * obj6 = 0 ;
26607 PyObject * obj7 = 0 ;
26608 PyObject * obj8 = 0 ;
26609 char *kwnames[] = {
26610 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
26611 };
26612
26613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
26614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26616 if (obj1) {
26617 arg2 = (int const) SWIG_AsInt(obj1);
26618 if (PyErr_Occurred()) SWIG_fail;
26619 }
26620 if (obj2) {
26621 {
26622 arg3 = wxString_in_helper(obj2);
26623 if (arg3 == NULL) SWIG_fail;
26624 temp3 = True;
26625 }
26626 }
26627 if (obj3) {
26628 {
26629 arg4 = &temp4;
26630 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26631 }
26632 }
26633 if (obj4) {
26634 {
26635 arg5 = &temp5;
26636 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26637 }
26638 }
26639 if (obj5) {
26640 arg6 = (long) SWIG_AsLong(obj5);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 }
26643 if (obj6) {
26644 {
26645 arg7 = wxString_in_helper(obj6);
26646 if (arg7 == NULL) SWIG_fail;
26647 temp7 = True;
26648 }
26649 }
26650 if (obj7) {
26651 arg8 = (int) SWIG_AsInt(obj7);
26652 if (PyErr_Occurred()) SWIG_fail;
26653 }
26654 if (obj8) {
26655 {
26656 arg9 = wxString_in_helper(obj8);
26657 if (arg9 == NULL) SWIG_fail;
26658 temp9 = True;
26659 }
26660 }
26661 {
26662 PyThreadState* __tstate = wxPyBeginAllowThreads();
26663 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
26664
26665 wxPyEndAllowThreads(__tstate);
26666 if (PyErr_Occurred()) SWIG_fail;
26667 }
26668 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
26669 {
26670 if (temp3)
26671 delete arg3;
26672 }
26673 {
26674 if (temp7)
26675 delete arg7;
26676 }
26677 {
26678 if (temp9)
26679 delete arg9;
26680 }
26681 return resultobj;
26682 fail:
26683 {
26684 if (temp3)
26685 delete arg3;
26686 }
26687 {
26688 if (temp7)
26689 delete arg7;
26690 }
26691 {
26692 if (temp9)
26693 delete arg9;
26694 }
26695 return NULL;
26696 }
26697
26698
26699 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
26700 PyObject *resultobj;
26701 wxGenericDirCtrl *result;
26702 char *kwnames[] = {
26703 NULL
26704 };
26705
26706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
26707 {
26708 PyThreadState* __tstate = wxPyBeginAllowThreads();
26709 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
26710
26711 wxPyEndAllowThreads(__tstate);
26712 if (PyErr_Occurred()) SWIG_fail;
26713 }
26714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
26715 return resultobj;
26716 fail:
26717 return NULL;
26718 }
26719
26720
26721 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
26722 PyObject *resultobj;
26723 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26724 wxWindow *arg2 = (wxWindow *) 0 ;
26725 int arg3 = (int) (int)-1 ;
26726 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
26727 wxString *arg4 = (wxString *) &arg4_defvalue ;
26728 wxPoint const &arg5_defvalue = wxDefaultPosition ;
26729 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
26730 wxSize const &arg6_defvalue = wxDefaultSize ;
26731 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
26732 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
26733 wxString const &arg8_defvalue = wxPyEmptyString ;
26734 wxString *arg8 = (wxString *) &arg8_defvalue ;
26735 int arg9 = (int) 0 ;
26736 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
26737 wxString *arg10 = (wxString *) &arg10_defvalue ;
26738 bool result;
26739 bool temp4 = False ;
26740 wxPoint temp5 ;
26741 wxSize temp6 ;
26742 bool temp8 = False ;
26743 bool temp10 = False ;
26744 PyObject * obj0 = 0 ;
26745 PyObject * obj1 = 0 ;
26746 PyObject * obj2 = 0 ;
26747 PyObject * obj3 = 0 ;
26748 PyObject * obj4 = 0 ;
26749 PyObject * obj5 = 0 ;
26750 PyObject * obj6 = 0 ;
26751 PyObject * obj7 = 0 ;
26752 PyObject * obj8 = 0 ;
26753 PyObject * obj9 = 0 ;
26754 char *kwnames[] = {
26755 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
26756 };
26757
26758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
26759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26761 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
26762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26763 if (obj2) {
26764 arg3 = (int const) SWIG_AsInt(obj2);
26765 if (PyErr_Occurred()) SWIG_fail;
26766 }
26767 if (obj3) {
26768 {
26769 arg4 = wxString_in_helper(obj3);
26770 if (arg4 == NULL) SWIG_fail;
26771 temp4 = True;
26772 }
26773 }
26774 if (obj4) {
26775 {
26776 arg5 = &temp5;
26777 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
26778 }
26779 }
26780 if (obj5) {
26781 {
26782 arg6 = &temp6;
26783 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
26784 }
26785 }
26786 if (obj6) {
26787 arg7 = (long) SWIG_AsLong(obj6);
26788 if (PyErr_Occurred()) SWIG_fail;
26789 }
26790 if (obj7) {
26791 {
26792 arg8 = wxString_in_helper(obj7);
26793 if (arg8 == NULL) SWIG_fail;
26794 temp8 = True;
26795 }
26796 }
26797 if (obj8) {
26798 arg9 = (int) SWIG_AsInt(obj8);
26799 if (PyErr_Occurred()) SWIG_fail;
26800 }
26801 if (obj9) {
26802 {
26803 arg10 = wxString_in_helper(obj9);
26804 if (arg10 == NULL) SWIG_fail;
26805 temp10 = True;
26806 }
26807 }
26808 {
26809 PyThreadState* __tstate = wxPyBeginAllowThreads();
26810 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
26811
26812 wxPyEndAllowThreads(__tstate);
26813 if (PyErr_Occurred()) SWIG_fail;
26814 }
26815 {
26816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26817 }
26818 {
26819 if (temp4)
26820 delete arg4;
26821 }
26822 {
26823 if (temp8)
26824 delete arg8;
26825 }
26826 {
26827 if (temp10)
26828 delete arg10;
26829 }
26830 return resultobj;
26831 fail:
26832 {
26833 if (temp4)
26834 delete arg4;
26835 }
26836 {
26837 if (temp8)
26838 delete arg8;
26839 }
26840 {
26841 if (temp10)
26842 delete arg10;
26843 }
26844 return NULL;
26845 }
26846
26847
26848 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) {
26849 PyObject *resultobj;
26850 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26851 wxString *arg2 = 0 ;
26852 bool result;
26853 bool temp2 = False ;
26854 PyObject * obj0 = 0 ;
26855 PyObject * obj1 = 0 ;
26856 char *kwnames[] = {
26857 (char *) "self",(char *) "path", NULL
26858 };
26859
26860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
26861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26863 {
26864 arg2 = wxString_in_helper(obj1);
26865 if (arg2 == NULL) SWIG_fail;
26866 temp2 = True;
26867 }
26868 {
26869 PyThreadState* __tstate = wxPyBeginAllowThreads();
26870 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
26871
26872 wxPyEndAllowThreads(__tstate);
26873 if (PyErr_Occurred()) SWIG_fail;
26874 }
26875 {
26876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26877 }
26878 {
26879 if (temp2)
26880 delete arg2;
26881 }
26882 return resultobj;
26883 fail:
26884 {
26885 if (temp2)
26886 delete arg2;
26887 }
26888 return NULL;
26889 }
26890
26891
26892 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
26893 PyObject *resultobj;
26894 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26895 wxString result;
26896 PyObject * obj0 = 0 ;
26897 char *kwnames[] = {
26898 (char *) "self", NULL
26899 };
26900
26901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
26902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26904 {
26905 PyThreadState* __tstate = wxPyBeginAllowThreads();
26906 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
26907
26908 wxPyEndAllowThreads(__tstate);
26909 if (PyErr_Occurred()) SWIG_fail;
26910 }
26911 {
26912 #if wxUSE_UNICODE
26913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26914 #else
26915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26916 #endif
26917 }
26918 return resultobj;
26919 fail:
26920 return NULL;
26921 }
26922
26923
26924 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
26925 PyObject *resultobj;
26926 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26927 wxString *arg2 = 0 ;
26928 bool temp2 = False ;
26929 PyObject * obj0 = 0 ;
26930 PyObject * obj1 = 0 ;
26931 char *kwnames[] = {
26932 (char *) "self",(char *) "path", NULL
26933 };
26934
26935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
26936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26938 {
26939 arg2 = wxString_in_helper(obj1);
26940 if (arg2 == NULL) SWIG_fail;
26941 temp2 = True;
26942 }
26943 {
26944 PyThreadState* __tstate = wxPyBeginAllowThreads();
26945 (arg1)->SetDefaultPath((wxString const &)*arg2);
26946
26947 wxPyEndAllowThreads(__tstate);
26948 if (PyErr_Occurred()) SWIG_fail;
26949 }
26950 Py_INCREF(Py_None); resultobj = Py_None;
26951 {
26952 if (temp2)
26953 delete arg2;
26954 }
26955 return resultobj;
26956 fail:
26957 {
26958 if (temp2)
26959 delete arg2;
26960 }
26961 return NULL;
26962 }
26963
26964
26965 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
26966 PyObject *resultobj;
26967 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26968 wxString result;
26969 PyObject * obj0 = 0 ;
26970 char *kwnames[] = {
26971 (char *) "self", NULL
26972 };
26973
26974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
26975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26977 {
26978 PyThreadState* __tstate = wxPyBeginAllowThreads();
26979 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
26980
26981 wxPyEndAllowThreads(__tstate);
26982 if (PyErr_Occurred()) SWIG_fail;
26983 }
26984 {
26985 #if wxUSE_UNICODE
26986 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26987 #else
26988 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26989 #endif
26990 }
26991 return resultobj;
26992 fail:
26993 return NULL;
26994 }
26995
26996
26997 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) {
26998 PyObject *resultobj;
26999 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27000 wxString result;
27001 PyObject * obj0 = 0 ;
27002 char *kwnames[] = {
27003 (char *) "self", NULL
27004 };
27005
27006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
27007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27009 {
27010 PyThreadState* __tstate = wxPyBeginAllowThreads();
27011 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
27012
27013 wxPyEndAllowThreads(__tstate);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 }
27016 {
27017 #if wxUSE_UNICODE
27018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27019 #else
27020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27021 #endif
27022 }
27023 return resultobj;
27024 fail:
27025 return NULL;
27026 }
27027
27028
27029 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
27030 PyObject *resultobj;
27031 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27032 wxString *arg2 = 0 ;
27033 bool temp2 = False ;
27034 PyObject * obj0 = 0 ;
27035 PyObject * obj1 = 0 ;
27036 char *kwnames[] = {
27037 (char *) "self",(char *) "path", NULL
27038 };
27039
27040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
27041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27043 {
27044 arg2 = wxString_in_helper(obj1);
27045 if (arg2 == NULL) SWIG_fail;
27046 temp2 = True;
27047 }
27048 {
27049 PyThreadState* __tstate = wxPyBeginAllowThreads();
27050 (arg1)->SetPath((wxString const &)*arg2);
27051
27052 wxPyEndAllowThreads(__tstate);
27053 if (PyErr_Occurred()) SWIG_fail;
27054 }
27055 Py_INCREF(Py_None); resultobj = Py_None;
27056 {
27057 if (temp2)
27058 delete arg2;
27059 }
27060 return resultobj;
27061 fail:
27062 {
27063 if (temp2)
27064 delete arg2;
27065 }
27066 return NULL;
27067 }
27068
27069
27070 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
27071 PyObject *resultobj;
27072 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27073 bool arg2 ;
27074 PyObject * obj0 = 0 ;
27075 PyObject * obj1 = 0 ;
27076 char *kwnames[] = {
27077 (char *) "self",(char *) "show", NULL
27078 };
27079
27080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
27081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27083 arg2 = (bool) SWIG_AsBool(obj1);
27084 if (PyErr_Occurred()) SWIG_fail;
27085 {
27086 PyThreadState* __tstate = wxPyBeginAllowThreads();
27087 (arg1)->ShowHidden(arg2);
27088
27089 wxPyEndAllowThreads(__tstate);
27090 if (PyErr_Occurred()) SWIG_fail;
27091 }
27092 Py_INCREF(Py_None); resultobj = Py_None;
27093 return resultobj;
27094 fail:
27095 return NULL;
27096 }
27097
27098
27099 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
27100 PyObject *resultobj;
27101 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27102 bool result;
27103 PyObject * obj0 = 0 ;
27104 char *kwnames[] = {
27105 (char *) "self", NULL
27106 };
27107
27108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
27109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27111 {
27112 PyThreadState* __tstate = wxPyBeginAllowThreads();
27113 result = (bool)(arg1)->GetShowHidden();
27114
27115 wxPyEndAllowThreads(__tstate);
27116 if (PyErr_Occurred()) SWIG_fail;
27117 }
27118 {
27119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27120 }
27121 return resultobj;
27122 fail:
27123 return NULL;
27124 }
27125
27126
27127 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
27128 PyObject *resultobj;
27129 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27130 wxString result;
27131 PyObject * obj0 = 0 ;
27132 char *kwnames[] = {
27133 (char *) "self", NULL
27134 };
27135
27136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
27137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27139 {
27140 PyThreadState* __tstate = wxPyBeginAllowThreads();
27141 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
27142
27143 wxPyEndAllowThreads(__tstate);
27144 if (PyErr_Occurred()) SWIG_fail;
27145 }
27146 {
27147 #if wxUSE_UNICODE
27148 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27149 #else
27150 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27151 #endif
27152 }
27153 return resultobj;
27154 fail:
27155 return NULL;
27156 }
27157
27158
27159 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
27160 PyObject *resultobj;
27161 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27162 wxString *arg2 = 0 ;
27163 bool temp2 = False ;
27164 PyObject * obj0 = 0 ;
27165 PyObject * obj1 = 0 ;
27166 char *kwnames[] = {
27167 (char *) "self",(char *) "filter", NULL
27168 };
27169
27170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
27171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27173 {
27174 arg2 = wxString_in_helper(obj1);
27175 if (arg2 == NULL) SWIG_fail;
27176 temp2 = True;
27177 }
27178 {
27179 PyThreadState* __tstate = wxPyBeginAllowThreads();
27180 (arg1)->SetFilter((wxString const &)*arg2);
27181
27182 wxPyEndAllowThreads(__tstate);
27183 if (PyErr_Occurred()) SWIG_fail;
27184 }
27185 Py_INCREF(Py_None); resultobj = Py_None;
27186 {
27187 if (temp2)
27188 delete arg2;
27189 }
27190 return resultobj;
27191 fail:
27192 {
27193 if (temp2)
27194 delete arg2;
27195 }
27196 return NULL;
27197 }
27198
27199
27200 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
27201 PyObject *resultobj;
27202 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27203 int result;
27204 PyObject * obj0 = 0 ;
27205 char *kwnames[] = {
27206 (char *) "self", NULL
27207 };
27208
27209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
27210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27212 {
27213 PyThreadState* __tstate = wxPyBeginAllowThreads();
27214 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
27215
27216 wxPyEndAllowThreads(__tstate);
27217 if (PyErr_Occurred()) SWIG_fail;
27218 }
27219 resultobj = SWIG_FromInt((int)result);
27220 return resultobj;
27221 fail:
27222 return NULL;
27223 }
27224
27225
27226 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
27227 PyObject *resultobj;
27228 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27229 int arg2 ;
27230 PyObject * obj0 = 0 ;
27231 PyObject * obj1 = 0 ;
27232 char *kwnames[] = {
27233 (char *) "self",(char *) "n", NULL
27234 };
27235
27236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
27237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27239 arg2 = (int) SWIG_AsInt(obj1);
27240 if (PyErr_Occurred()) SWIG_fail;
27241 {
27242 PyThreadState* __tstate = wxPyBeginAllowThreads();
27243 (arg1)->SetFilterIndex(arg2);
27244
27245 wxPyEndAllowThreads(__tstate);
27246 if (PyErr_Occurred()) SWIG_fail;
27247 }
27248 Py_INCREF(Py_None); resultobj = Py_None;
27249 return resultobj;
27250 fail:
27251 return NULL;
27252 }
27253
27254
27255 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) {
27256 PyObject *resultobj;
27257 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27258 wxTreeItemId result;
27259 PyObject * obj0 = 0 ;
27260 char *kwnames[] = {
27261 (char *) "self", NULL
27262 };
27263
27264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
27265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27267 {
27268 PyThreadState* __tstate = wxPyBeginAllowThreads();
27269 result = (arg1)->GetRootId();
27270
27271 wxPyEndAllowThreads(__tstate);
27272 if (PyErr_Occurred()) SWIG_fail;
27273 }
27274 {
27275 wxTreeItemId * resultptr;
27276 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27277 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27278 }
27279 return resultobj;
27280 fail:
27281 return NULL;
27282 }
27283
27284
27285 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
27286 PyObject *resultobj;
27287 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27288 wxPyTreeCtrl *result;
27289 PyObject * obj0 = 0 ;
27290 char *kwnames[] = {
27291 (char *) "self", NULL
27292 };
27293
27294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
27295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27297 {
27298 PyThreadState* __tstate = wxPyBeginAllowThreads();
27299 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
27300
27301 wxPyEndAllowThreads(__tstate);
27302 if (PyErr_Occurred()) SWIG_fail;
27303 }
27304 {
27305 resultobj = wxPyMake_wxObject(result);
27306 }
27307 return resultobj;
27308 fail:
27309 return NULL;
27310 }
27311
27312
27313 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
27314 PyObject *resultobj;
27315 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27316 wxDirFilterListCtrl *result;
27317 PyObject * obj0 = 0 ;
27318 char *kwnames[] = {
27319 (char *) "self", NULL
27320 };
27321
27322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
27323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27325 {
27326 PyThreadState* __tstate = wxPyBeginAllowThreads();
27327 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
27328
27329 wxPyEndAllowThreads(__tstate);
27330 if (PyErr_Occurred()) SWIG_fail;
27331 }
27332 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
27333 return resultobj;
27334 fail:
27335 return NULL;
27336 }
27337
27338
27339 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) {
27340 PyObject *resultobj;
27341 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27342 wxTreeItemId arg2 ;
27343 wxString *arg3 = 0 ;
27344 bool *arg4 = 0 ;
27345 wxTreeItemId result;
27346 wxTreeItemId *argp2 ;
27347 bool temp3 = False ;
27348 bool temp4 ;
27349 PyObject * obj0 = 0 ;
27350 PyObject * obj1 = 0 ;
27351 PyObject * obj2 = 0 ;
27352 char *kwnames[] = {
27353 (char *) "self",(char *) "parentId",(char *) "path", NULL
27354 };
27355
27356 arg4 = &temp4;
27357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
27358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27360 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
27361 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
27362 arg2 = *argp2;
27363 {
27364 arg3 = wxString_in_helper(obj2);
27365 if (arg3 == NULL) SWIG_fail;
27366 temp3 = True;
27367 }
27368 {
27369 PyThreadState* __tstate = wxPyBeginAllowThreads();
27370 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
27371
27372 wxPyEndAllowThreads(__tstate);
27373 if (PyErr_Occurred()) SWIG_fail;
27374 }
27375 {
27376 wxTreeItemId * resultptr;
27377 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27378 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27379 }
27380 {
27381 PyObject *o = PyInt_FromLong((long) (*arg4));
27382 resultobj = t_output_helper(resultobj,o);
27383 }
27384 {
27385 if (temp3)
27386 delete arg3;
27387 }
27388 return resultobj;
27389 fail:
27390 {
27391 if (temp3)
27392 delete arg3;
27393 }
27394 return NULL;
27395 }
27396
27397
27398 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) {
27399 PyObject *resultobj;
27400 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27401 PyObject * obj0 = 0 ;
27402 char *kwnames[] = {
27403 (char *) "self", NULL
27404 };
27405
27406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
27407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27409 {
27410 PyThreadState* __tstate = wxPyBeginAllowThreads();
27411 (arg1)->DoResize();
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_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) {
27424 PyObject *resultobj;
27425 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27426 PyObject * obj0 = 0 ;
27427 char *kwnames[] = {
27428 (char *) "self", NULL
27429 };
27430
27431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
27432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27434 {
27435 PyThreadState* __tstate = wxPyBeginAllowThreads();
27436 (arg1)->ReCreateTree();
27437
27438 wxPyEndAllowThreads(__tstate);
27439 if (PyErr_Occurred()) SWIG_fail;
27440 }
27441 Py_INCREF(Py_None); resultobj = Py_None;
27442 return resultobj;
27443 fail:
27444 return NULL;
27445 }
27446
27447
27448 static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) {
27449 PyObject *obj;
27450 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27451 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
27452 Py_INCREF(obj);
27453 return Py_BuildValue((char *)"");
27454 }
27455 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
27456 PyObject *resultobj;
27457 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27458 int arg2 = (int) (int)-1 ;
27459 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27460 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27461 wxSize const &arg4_defvalue = wxDefaultSize ;
27462 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
27463 long arg5 = (long) 0 ;
27464 wxDirFilterListCtrl *result;
27465 wxPoint temp3 ;
27466 wxSize temp4 ;
27467 PyObject * obj0 = 0 ;
27468 PyObject * obj1 = 0 ;
27469 PyObject * obj2 = 0 ;
27470 PyObject * obj3 = 0 ;
27471 PyObject * obj4 = 0 ;
27472 char *kwnames[] = {
27473 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
27474 };
27475
27476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27479 if (obj1) {
27480 arg2 = (int const) SWIG_AsInt(obj1);
27481 if (PyErr_Occurred()) SWIG_fail;
27482 }
27483 if (obj2) {
27484 {
27485 arg3 = &temp3;
27486 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27487 }
27488 }
27489 if (obj3) {
27490 {
27491 arg4 = &temp4;
27492 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27493 }
27494 }
27495 if (obj4) {
27496 arg5 = (long) SWIG_AsLong(obj4);
27497 if (PyErr_Occurred()) SWIG_fail;
27498 }
27499 {
27500 PyThreadState* __tstate = wxPyBeginAllowThreads();
27501 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
27502
27503 wxPyEndAllowThreads(__tstate);
27504 if (PyErr_Occurred()) SWIG_fail;
27505 }
27506 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
27507 return resultobj;
27508 fail:
27509 return NULL;
27510 }
27511
27512
27513 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
27514 PyObject *resultobj;
27515 wxDirFilterListCtrl *result;
27516 char *kwnames[] = {
27517 NULL
27518 };
27519
27520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
27521 {
27522 PyThreadState* __tstate = wxPyBeginAllowThreads();
27523 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
27524
27525 wxPyEndAllowThreads(__tstate);
27526 if (PyErr_Occurred()) SWIG_fail;
27527 }
27528 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
27529 return resultobj;
27530 fail:
27531 return NULL;
27532 }
27533
27534
27535 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
27536 PyObject *resultobj;
27537 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
27538 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
27539 int arg3 = (int) (int)-1 ;
27540 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27541 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27542 wxSize const &arg5_defvalue = wxDefaultSize ;
27543 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27544 long arg6 = (long) 0 ;
27545 bool result;
27546 wxPoint temp4 ;
27547 wxSize temp5 ;
27548 PyObject * obj0 = 0 ;
27549 PyObject * obj1 = 0 ;
27550 PyObject * obj2 = 0 ;
27551 PyObject * obj3 = 0 ;
27552 PyObject * obj4 = 0 ;
27553 PyObject * obj5 = 0 ;
27554 char *kwnames[] = {
27555 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
27556 };
27557
27558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
27560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
27562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27563 if (obj2) {
27564 arg3 = (int const) SWIG_AsInt(obj2);
27565 if (PyErr_Occurred()) SWIG_fail;
27566 }
27567 if (obj3) {
27568 {
27569 arg4 = &temp4;
27570 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27571 }
27572 }
27573 if (obj4) {
27574 {
27575 arg5 = &temp5;
27576 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27577 }
27578 }
27579 if (obj5) {
27580 arg6 = (long) SWIG_AsLong(obj5);
27581 if (PyErr_Occurred()) SWIG_fail;
27582 }
27583 {
27584 PyThreadState* __tstate = wxPyBeginAllowThreads();
27585 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
27586
27587 wxPyEndAllowThreads(__tstate);
27588 if (PyErr_Occurred()) SWIG_fail;
27589 }
27590 {
27591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27592 }
27593 return resultobj;
27594 fail:
27595 return NULL;
27596 }
27597
27598
27599 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) {
27600 PyObject *resultobj;
27601 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
27602 wxString *arg2 = 0 ;
27603 int arg3 ;
27604 bool temp2 = False ;
27605 PyObject * obj0 = 0 ;
27606 PyObject * obj1 = 0 ;
27607 PyObject * obj2 = 0 ;
27608 char *kwnames[] = {
27609 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
27610 };
27611
27612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
27613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
27614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27615 {
27616 arg2 = wxString_in_helper(obj1);
27617 if (arg2 == NULL) SWIG_fail;
27618 temp2 = True;
27619 }
27620 arg3 = (int) SWIG_AsInt(obj2);
27621 if (PyErr_Occurred()) SWIG_fail;
27622 {
27623 PyThreadState* __tstate = wxPyBeginAllowThreads();
27624 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
27625
27626 wxPyEndAllowThreads(__tstate);
27627 if (PyErr_Occurred()) SWIG_fail;
27628 }
27629 Py_INCREF(Py_None); resultobj = Py_None;
27630 {
27631 if (temp2)
27632 delete arg2;
27633 }
27634 return resultobj;
27635 fail:
27636 {
27637 if (temp2)
27638 delete arg2;
27639 }
27640 return NULL;
27641 }
27642
27643
27644 static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) {
27645 PyObject *obj;
27646 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27647 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
27648 Py_INCREF(obj);
27649 return Py_BuildValue((char *)"");
27650 }
27651 static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) {
27652 PyObject *resultobj;
27653 wxWindow *arg1 = (wxWindow *) 0 ;
27654 int arg2 ;
27655 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27656 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27657 wxSize const &arg4_defvalue = wxDefaultSize ;
27658 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
27659 long arg5 = (long) 0 ;
27660 wxValidator const &arg6_defvalue = wxDefaultValidator ;
27661 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
27662 wxString const &arg7_defvalue = wxPyControlNameStr ;
27663 wxString *arg7 = (wxString *) &arg7_defvalue ;
27664 wxPyControl *result;
27665 wxPoint temp3 ;
27666 wxSize temp4 ;
27667 bool temp7 = False ;
27668 PyObject * obj0 = 0 ;
27669 PyObject * obj1 = 0 ;
27670 PyObject * obj2 = 0 ;
27671 PyObject * obj3 = 0 ;
27672 PyObject * obj4 = 0 ;
27673 PyObject * obj5 = 0 ;
27674 PyObject * obj6 = 0 ;
27675 char *kwnames[] = {
27676 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
27677 };
27678
27679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27682 arg2 = (int const) SWIG_AsInt(obj1);
27683 if (PyErr_Occurred()) SWIG_fail;
27684 if (obj2) {
27685 {
27686 arg3 = &temp3;
27687 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27688 }
27689 }
27690 if (obj3) {
27691 {
27692 arg4 = &temp4;
27693 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27694 }
27695 }
27696 if (obj4) {
27697 arg5 = (long) SWIG_AsLong(obj4);
27698 if (PyErr_Occurred()) SWIG_fail;
27699 }
27700 if (obj5) {
27701 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
27702 SWIG_POINTER_EXCEPTION | 0)) == -1)
27703 SWIG_fail;
27704 if (arg6 == NULL) {
27705 PyErr_SetString(PyExc_TypeError,"null reference");
27706 SWIG_fail;
27707 }
27708 }
27709 if (obj6) {
27710 {
27711 arg7 = wxString_in_helper(obj6);
27712 if (arg7 == NULL) SWIG_fail;
27713 temp7 = True;
27714 }
27715 }
27716 {
27717 PyThreadState* __tstate = wxPyBeginAllowThreads();
27718 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
27719
27720 wxPyEndAllowThreads(__tstate);
27721 if (PyErr_Occurred()) SWIG_fail;
27722 }
27723 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
27724 {
27725 if (temp7)
27726 delete arg7;
27727 }
27728 return resultobj;
27729 fail:
27730 {
27731 if (temp7)
27732 delete arg7;
27733 }
27734 return NULL;
27735 }
27736
27737
27738 static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
27739 PyObject *resultobj;
27740 wxPyControl *result;
27741 char *kwnames[] = {
27742 NULL
27743 };
27744
27745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
27746 {
27747 PyThreadState* __tstate = wxPyBeginAllowThreads();
27748 result = (wxPyControl *)new wxPyControl();
27749
27750 wxPyEndAllowThreads(__tstate);
27751 if (PyErr_Occurred()) SWIG_fail;
27752 }
27753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
27754 return resultobj;
27755 fail:
27756 return NULL;
27757 }
27758
27759
27760 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
27761 PyObject *resultobj;
27762 wxPyControl *arg1 = (wxPyControl *) 0 ;
27763 PyObject *arg2 = (PyObject *) 0 ;
27764 PyObject *arg3 = (PyObject *) 0 ;
27765 PyObject * obj0 = 0 ;
27766 PyObject * obj1 = 0 ;
27767 PyObject * obj2 = 0 ;
27768 char *kwnames[] = {
27769 (char *) "self",(char *) "self",(char *) "_class", NULL
27770 };
27771
27772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
27773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27775 arg2 = obj1;
27776 arg3 = obj2;
27777 {
27778 PyThreadState* __tstate = wxPyBeginAllowThreads();
27779 (arg1)->_setCallbackInfo(arg2,arg3);
27780
27781 wxPyEndAllowThreads(__tstate);
27782 if (PyErr_Occurred()) SWIG_fail;
27783 }
27784 Py_INCREF(Py_None); resultobj = Py_None;
27785 return resultobj;
27786 fail:
27787 return NULL;
27788 }
27789
27790
27791 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
27792 PyObject *resultobj;
27793 wxPyControl *arg1 = (wxPyControl *) 0 ;
27794 int arg2 ;
27795 int arg3 ;
27796 int arg4 ;
27797 int arg5 ;
27798 PyObject * obj0 = 0 ;
27799 PyObject * obj1 = 0 ;
27800 PyObject * obj2 = 0 ;
27801 PyObject * obj3 = 0 ;
27802 PyObject * obj4 = 0 ;
27803 char *kwnames[] = {
27804 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
27805 };
27806
27807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27810 arg2 = (int) SWIG_AsInt(obj1);
27811 if (PyErr_Occurred()) SWIG_fail;
27812 arg3 = (int) SWIG_AsInt(obj2);
27813 if (PyErr_Occurred()) SWIG_fail;
27814 arg4 = (int) SWIG_AsInt(obj3);
27815 if (PyErr_Occurred()) SWIG_fail;
27816 arg5 = (int) SWIG_AsInt(obj4);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 {
27819 PyThreadState* __tstate = wxPyBeginAllowThreads();
27820 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
27821
27822 wxPyEndAllowThreads(__tstate);
27823 if (PyErr_Occurred()) SWIG_fail;
27824 }
27825 Py_INCREF(Py_None); resultobj = Py_None;
27826 return resultobj;
27827 fail:
27828 return NULL;
27829 }
27830
27831
27832 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) {
27833 PyObject *resultobj;
27834 wxPyControl *arg1 = (wxPyControl *) 0 ;
27835 int arg2 ;
27836 int arg3 ;
27837 int arg4 ;
27838 int arg5 ;
27839 int arg6 = (int) wxSIZE_AUTO ;
27840 PyObject * obj0 = 0 ;
27841 PyObject * obj1 = 0 ;
27842 PyObject * obj2 = 0 ;
27843 PyObject * obj3 = 0 ;
27844 PyObject * obj4 = 0 ;
27845 PyObject * obj5 = 0 ;
27846 char *kwnames[] = {
27847 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
27848 };
27849
27850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27853 arg2 = (int) SWIG_AsInt(obj1);
27854 if (PyErr_Occurred()) SWIG_fail;
27855 arg3 = (int) SWIG_AsInt(obj2);
27856 if (PyErr_Occurred()) SWIG_fail;
27857 arg4 = (int) SWIG_AsInt(obj3);
27858 if (PyErr_Occurred()) SWIG_fail;
27859 arg5 = (int) SWIG_AsInt(obj4);
27860 if (PyErr_Occurred()) SWIG_fail;
27861 if (obj5) {
27862 arg6 = (int) SWIG_AsInt(obj5);
27863 if (PyErr_Occurred()) SWIG_fail;
27864 }
27865 {
27866 PyThreadState* __tstate = wxPyBeginAllowThreads();
27867 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
27868
27869 wxPyEndAllowThreads(__tstate);
27870 if (PyErr_Occurred()) SWIG_fail;
27871 }
27872 Py_INCREF(Py_None); resultobj = Py_None;
27873 return resultobj;
27874 fail:
27875 return NULL;
27876 }
27877
27878
27879 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
27880 PyObject *resultobj;
27881 wxPyControl *arg1 = (wxPyControl *) 0 ;
27882 int arg2 ;
27883 int arg3 ;
27884 PyObject * obj0 = 0 ;
27885 PyObject * obj1 = 0 ;
27886 PyObject * obj2 = 0 ;
27887 char *kwnames[] = {
27888 (char *) "self",(char *) "width",(char *) "height", NULL
27889 };
27890
27891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
27892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27894 arg2 = (int) SWIG_AsInt(obj1);
27895 if (PyErr_Occurred()) SWIG_fail;
27896 arg3 = (int) SWIG_AsInt(obj2);
27897 if (PyErr_Occurred()) SWIG_fail;
27898 {
27899 PyThreadState* __tstate = wxPyBeginAllowThreads();
27900 (arg1)->base_DoSetClientSize(arg2,arg3);
27901
27902 wxPyEndAllowThreads(__tstate);
27903 if (PyErr_Occurred()) SWIG_fail;
27904 }
27905 Py_INCREF(Py_None); resultobj = Py_None;
27906 return resultobj;
27907 fail:
27908 return NULL;
27909 }
27910
27911
27912 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
27913 PyObject *resultobj;
27914 wxPyControl *arg1 = (wxPyControl *) 0 ;
27915 int arg2 ;
27916 int arg3 ;
27917 PyObject * obj0 = 0 ;
27918 PyObject * obj1 = 0 ;
27919 PyObject * obj2 = 0 ;
27920 char *kwnames[] = {
27921 (char *) "self",(char *) "x",(char *) "y", NULL
27922 };
27923
27924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
27925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27927 arg2 = (int) SWIG_AsInt(obj1);
27928 if (PyErr_Occurred()) SWIG_fail;
27929 arg3 = (int) SWIG_AsInt(obj2);
27930 if (PyErr_Occurred()) SWIG_fail;
27931 {
27932 PyThreadState* __tstate = wxPyBeginAllowThreads();
27933 (arg1)->base_DoSetVirtualSize(arg2,arg3);
27934
27935 wxPyEndAllowThreads(__tstate);
27936 if (PyErr_Occurred()) SWIG_fail;
27937 }
27938 Py_INCREF(Py_None); resultobj = Py_None;
27939 return resultobj;
27940 fail:
27941 return NULL;
27942 }
27943
27944
27945 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) {
27946 PyObject *resultobj;
27947 wxPyControl *arg1 = (wxPyControl *) 0 ;
27948 int *arg2 = (int *) 0 ;
27949 int *arg3 = (int *) 0 ;
27950 int temp2 ;
27951 int temp3 ;
27952 PyObject * obj0 = 0 ;
27953 char *kwnames[] = {
27954 (char *) "self", NULL
27955 };
27956
27957 arg2 = &temp2;
27958 arg3 = &temp3;
27959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
27960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27962 {
27963 PyThreadState* __tstate = wxPyBeginAllowThreads();
27964 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
27965
27966 wxPyEndAllowThreads(__tstate);
27967 if (PyErr_Occurred()) SWIG_fail;
27968 }
27969 Py_INCREF(Py_None); resultobj = Py_None;
27970 {
27971 PyObject *o = PyInt_FromLong((long) (*arg2));
27972 resultobj = t_output_helper(resultobj,o);
27973 }
27974 {
27975 PyObject *o = PyInt_FromLong((long) (*arg3));
27976 resultobj = t_output_helper(resultobj,o);
27977 }
27978 return resultobj;
27979 fail:
27980 return NULL;
27981 }
27982
27983
27984 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
27985 PyObject *resultobj;
27986 wxPyControl *arg1 = (wxPyControl *) 0 ;
27987 int *arg2 = (int *) 0 ;
27988 int *arg3 = (int *) 0 ;
27989 int temp2 ;
27990 int temp3 ;
27991 PyObject * obj0 = 0 ;
27992 char *kwnames[] = {
27993 (char *) "self", NULL
27994 };
27995
27996 arg2 = &temp2;
27997 arg3 = &temp3;
27998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
27999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28001 {
28002 PyThreadState* __tstate = wxPyBeginAllowThreads();
28003 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
28004
28005 wxPyEndAllowThreads(__tstate);
28006 if (PyErr_Occurred()) SWIG_fail;
28007 }
28008 Py_INCREF(Py_None); resultobj = Py_None;
28009 {
28010 PyObject *o = PyInt_FromLong((long) (*arg2));
28011 resultobj = t_output_helper(resultobj,o);
28012 }
28013 {
28014 PyObject *o = PyInt_FromLong((long) (*arg3));
28015 resultobj = t_output_helper(resultobj,o);
28016 }
28017 return resultobj;
28018 fail:
28019 return NULL;
28020 }
28021
28022
28023 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
28024 PyObject *resultobj;
28025 wxPyControl *arg1 = (wxPyControl *) 0 ;
28026 int *arg2 = (int *) 0 ;
28027 int *arg3 = (int *) 0 ;
28028 int temp2 ;
28029 int temp3 ;
28030 PyObject * obj0 = 0 ;
28031 char *kwnames[] = {
28032 (char *) "self", NULL
28033 };
28034
28035 arg2 = &temp2;
28036 arg3 = &temp3;
28037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
28038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28040 {
28041 PyThreadState* __tstate = wxPyBeginAllowThreads();
28042 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
28043
28044 wxPyEndAllowThreads(__tstate);
28045 if (PyErr_Occurred()) SWIG_fail;
28046 }
28047 Py_INCREF(Py_None); resultobj = Py_None;
28048 {
28049 PyObject *o = PyInt_FromLong((long) (*arg2));
28050 resultobj = t_output_helper(resultobj,o);
28051 }
28052 {
28053 PyObject *o = PyInt_FromLong((long) (*arg3));
28054 resultobj = t_output_helper(resultobj,o);
28055 }
28056 return resultobj;
28057 fail:
28058 return NULL;
28059 }
28060
28061
28062 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
28063 PyObject *resultobj;
28064 wxPyControl *arg1 = (wxPyControl *) 0 ;
28065 wxSize result;
28066 PyObject * obj0 = 0 ;
28067 char *kwnames[] = {
28068 (char *) "self", NULL
28069 };
28070
28071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
28072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28074 {
28075 PyThreadState* __tstate = wxPyBeginAllowThreads();
28076 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
28077
28078 wxPyEndAllowThreads(__tstate);
28079 if (PyErr_Occurred()) SWIG_fail;
28080 }
28081 {
28082 wxSize * resultptr;
28083 resultptr = new wxSize((wxSize &) result);
28084 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28085 }
28086 return resultobj;
28087 fail:
28088 return NULL;
28089 }
28090
28091
28092 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
28093 PyObject *resultobj;
28094 wxPyControl *arg1 = (wxPyControl *) 0 ;
28095 wxSize result;
28096 PyObject * obj0 = 0 ;
28097 char *kwnames[] = {
28098 (char *) "self", NULL
28099 };
28100
28101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
28102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28104 {
28105 PyThreadState* __tstate = wxPyBeginAllowThreads();
28106 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
28107
28108 wxPyEndAllowThreads(__tstate);
28109 if (PyErr_Occurred()) SWIG_fail;
28110 }
28111 {
28112 wxSize * resultptr;
28113 resultptr = new wxSize((wxSize &) result);
28114 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28115 }
28116 return resultobj;
28117 fail:
28118 return NULL;
28119 }
28120
28121
28122 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
28123 PyObject *resultobj;
28124 wxPyControl *arg1 = (wxPyControl *) 0 ;
28125 PyObject * obj0 = 0 ;
28126 char *kwnames[] = {
28127 (char *) "self", NULL
28128 };
28129
28130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
28131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28133 {
28134 PyThreadState* __tstate = wxPyBeginAllowThreads();
28135 (arg1)->base_InitDialog();
28136
28137 wxPyEndAllowThreads(__tstate);
28138 if (PyErr_Occurred()) SWIG_fail;
28139 }
28140 Py_INCREF(Py_None); resultobj = Py_None;
28141 return resultobj;
28142 fail:
28143 return NULL;
28144 }
28145
28146
28147 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
28148 PyObject *resultobj;
28149 wxPyControl *arg1 = (wxPyControl *) 0 ;
28150 bool result;
28151 PyObject * obj0 = 0 ;
28152 char *kwnames[] = {
28153 (char *) "self", NULL
28154 };
28155
28156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
28157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28159 {
28160 PyThreadState* __tstate = wxPyBeginAllowThreads();
28161 result = (bool)(arg1)->base_TransferDataToWindow();
28162
28163 wxPyEndAllowThreads(__tstate);
28164 if (PyErr_Occurred()) SWIG_fail;
28165 }
28166 {
28167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28168 }
28169 return resultobj;
28170 fail:
28171 return NULL;
28172 }
28173
28174
28175 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
28176 PyObject *resultobj;
28177 wxPyControl *arg1 = (wxPyControl *) 0 ;
28178 bool result;
28179 PyObject * obj0 = 0 ;
28180 char *kwnames[] = {
28181 (char *) "self", NULL
28182 };
28183
28184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
28185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28187 {
28188 PyThreadState* __tstate = wxPyBeginAllowThreads();
28189 result = (bool)(arg1)->base_TransferDataFromWindow();
28190
28191 wxPyEndAllowThreads(__tstate);
28192 if (PyErr_Occurred()) SWIG_fail;
28193 }
28194 {
28195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28196 }
28197 return resultobj;
28198 fail:
28199 return NULL;
28200 }
28201
28202
28203 static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
28204 PyObject *resultobj;
28205 wxPyControl *arg1 = (wxPyControl *) 0 ;
28206 bool result;
28207 PyObject * obj0 = 0 ;
28208 char *kwnames[] = {
28209 (char *) "self", NULL
28210 };
28211
28212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
28213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28215 {
28216 PyThreadState* __tstate = wxPyBeginAllowThreads();
28217 result = (bool)(arg1)->base_Validate();
28218
28219 wxPyEndAllowThreads(__tstate);
28220 if (PyErr_Occurred()) SWIG_fail;
28221 }
28222 {
28223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28224 }
28225 return resultobj;
28226 fail:
28227 return NULL;
28228 }
28229
28230
28231 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
28232 PyObject *resultobj;
28233 wxPyControl *arg1 = (wxPyControl *) 0 ;
28234 bool result;
28235 PyObject * obj0 = 0 ;
28236 char *kwnames[] = {
28237 (char *) "self", NULL
28238 };
28239
28240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
28241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28243 {
28244 PyThreadState* __tstate = wxPyBeginAllowThreads();
28245 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
28246
28247 wxPyEndAllowThreads(__tstate);
28248 if (PyErr_Occurred()) SWIG_fail;
28249 }
28250 {
28251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28252 }
28253 return resultobj;
28254 fail:
28255 return NULL;
28256 }
28257
28258
28259 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
28260 PyObject *resultobj;
28261 wxPyControl *arg1 = (wxPyControl *) 0 ;
28262 bool result;
28263 PyObject * obj0 = 0 ;
28264 char *kwnames[] = {
28265 (char *) "self", NULL
28266 };
28267
28268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
28269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28271 {
28272 PyThreadState* __tstate = wxPyBeginAllowThreads();
28273 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
28274
28275 wxPyEndAllowThreads(__tstate);
28276 if (PyErr_Occurred()) SWIG_fail;
28277 }
28278 {
28279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28280 }
28281 return resultobj;
28282 fail:
28283 return NULL;
28284 }
28285
28286
28287 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
28288 PyObject *resultobj;
28289 wxPyControl *arg1 = (wxPyControl *) 0 ;
28290 wxSize result;
28291 PyObject * obj0 = 0 ;
28292 char *kwnames[] = {
28293 (char *) "self", NULL
28294 };
28295
28296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
28297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28299 {
28300 PyThreadState* __tstate = wxPyBeginAllowThreads();
28301 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
28302
28303 wxPyEndAllowThreads(__tstate);
28304 if (PyErr_Occurred()) SWIG_fail;
28305 }
28306 {
28307 wxSize * resultptr;
28308 resultptr = new wxSize((wxSize &) result);
28309 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28310 }
28311 return resultobj;
28312 fail:
28313 return NULL;
28314 }
28315
28316
28317 static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
28318 PyObject *resultobj;
28319 wxPyControl *arg1 = (wxPyControl *) 0 ;
28320 wxWindow *arg2 = (wxWindow *) 0 ;
28321 PyObject * obj0 = 0 ;
28322 PyObject * obj1 = 0 ;
28323 char *kwnames[] = {
28324 (char *) "self",(char *) "child", NULL
28325 };
28326
28327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
28328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28330 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28332 {
28333 PyThreadState* __tstate = wxPyBeginAllowThreads();
28334 (arg1)->base_AddChild(arg2);
28335
28336 wxPyEndAllowThreads(__tstate);
28337 if (PyErr_Occurred()) SWIG_fail;
28338 }
28339 Py_INCREF(Py_None); resultobj = Py_None;
28340 return resultobj;
28341 fail:
28342 return NULL;
28343 }
28344
28345
28346 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
28347 PyObject *resultobj;
28348 wxPyControl *arg1 = (wxPyControl *) 0 ;
28349 wxWindow *arg2 = (wxWindow *) 0 ;
28350 PyObject * obj0 = 0 ;
28351 PyObject * obj1 = 0 ;
28352 char *kwnames[] = {
28353 (char *) "self",(char *) "child", NULL
28354 };
28355
28356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
28357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28359 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28361 {
28362 PyThreadState* __tstate = wxPyBeginAllowThreads();
28363 (arg1)->base_RemoveChild(arg2);
28364
28365 wxPyEndAllowThreads(__tstate);
28366 if (PyErr_Occurred()) SWIG_fail;
28367 }
28368 Py_INCREF(Py_None); resultobj = Py_None;
28369 return resultobj;
28370 fail:
28371 return NULL;
28372 }
28373
28374
28375 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
28376 PyObject *resultobj;
28377 wxPyControl *arg1 = (wxPyControl *) 0 ;
28378 bool result;
28379 PyObject * obj0 = 0 ;
28380 char *kwnames[] = {
28381 (char *) "self", NULL
28382 };
28383
28384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
28385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28387 {
28388 PyThreadState* __tstate = wxPyBeginAllowThreads();
28389 result = (bool)(arg1)->base_ShouldInheritColours();
28390
28391 wxPyEndAllowThreads(__tstate);
28392 if (PyErr_Occurred()) SWIG_fail;
28393 }
28394 {
28395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28396 }
28397 return resultobj;
28398 fail:
28399 return NULL;
28400 }
28401
28402
28403 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
28404 PyObject *resultobj;
28405 wxPyControl *arg1 = (wxPyControl *) 0 ;
28406 wxColour *arg2 = 0 ;
28407 wxColour temp2 ;
28408 PyObject * obj0 = 0 ;
28409 PyObject * obj1 = 0 ;
28410 char *kwnames[] = {
28411 (char *) "self",(char *) "c", NULL
28412 };
28413
28414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
28415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28417 {
28418 arg2 = &temp2;
28419 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28420 }
28421 {
28422 PyThreadState* __tstate = wxPyBeginAllowThreads();
28423 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
28424
28425 wxPyEndAllowThreads(__tstate);
28426 if (PyErr_Occurred()) SWIG_fail;
28427 }
28428 Py_INCREF(Py_None); resultobj = Py_None;
28429 return resultobj;
28430 fail:
28431 return NULL;
28432 }
28433
28434
28435 static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
28436 PyObject *obj;
28437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28438 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
28439 Py_INCREF(obj);
28440 return Py_BuildValue((char *)"");
28441 }
28442 static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) {
28443 PyObject *resultobj;
28444 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28445 int arg2 = (int) 0 ;
28446 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28447 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28448 wxHelpEvent *result;
28449 wxPoint temp3 ;
28450 PyObject * obj0 = 0 ;
28451 PyObject * obj1 = 0 ;
28452 PyObject * obj2 = 0 ;
28453 char *kwnames[] = {
28454 (char *) "type",(char *) "winid",(char *) "pt", NULL
28455 };
28456
28457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
28458 if (obj0) {
28459 arg1 = (wxEventType) SWIG_AsInt(obj0);
28460 if (PyErr_Occurred()) SWIG_fail;
28461 }
28462 if (obj1) {
28463 arg2 = (int) SWIG_AsInt(obj1);
28464 if (PyErr_Occurred()) SWIG_fail;
28465 }
28466 if (obj2) {
28467 {
28468 arg3 = &temp3;
28469 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28470 }
28471 }
28472 {
28473 PyThreadState* __tstate = wxPyBeginAllowThreads();
28474 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
28475
28476 wxPyEndAllowThreads(__tstate);
28477 if (PyErr_Occurred()) SWIG_fail;
28478 }
28479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
28480 return resultobj;
28481 fail:
28482 return NULL;
28483 }
28484
28485
28486 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
28487 PyObject *resultobj;
28488 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28489 wxPoint result;
28490 PyObject * obj0 = 0 ;
28491 char *kwnames[] = {
28492 (char *) "self", NULL
28493 };
28494
28495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
28496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28498 {
28499 PyThreadState* __tstate = wxPyBeginAllowThreads();
28500 result = ((wxHelpEvent const *)arg1)->GetPosition();
28501
28502 wxPyEndAllowThreads(__tstate);
28503 if (PyErr_Occurred()) SWIG_fail;
28504 }
28505 {
28506 wxPoint * resultptr;
28507 resultptr = new wxPoint((wxPoint &) result);
28508 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
28509 }
28510 return resultobj;
28511 fail:
28512 return NULL;
28513 }
28514
28515
28516 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
28517 PyObject *resultobj;
28518 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28519 wxPoint *arg2 = 0 ;
28520 wxPoint temp2 ;
28521 PyObject * obj0 = 0 ;
28522 PyObject * obj1 = 0 ;
28523 char *kwnames[] = {
28524 (char *) "self",(char *) "pos", NULL
28525 };
28526
28527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
28528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28530 {
28531 arg2 = &temp2;
28532 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28533 }
28534 {
28535 PyThreadState* __tstate = wxPyBeginAllowThreads();
28536 (arg1)->SetPosition((wxPoint const &)*arg2);
28537
28538 wxPyEndAllowThreads(__tstate);
28539 if (PyErr_Occurred()) SWIG_fail;
28540 }
28541 Py_INCREF(Py_None); resultobj = Py_None;
28542 return resultobj;
28543 fail:
28544 return NULL;
28545 }
28546
28547
28548 static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) {
28549 PyObject *resultobj;
28550 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28551 wxString *result;
28552 PyObject * obj0 = 0 ;
28553 char *kwnames[] = {
28554 (char *) "self", NULL
28555 };
28556
28557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
28558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28560 {
28561 PyThreadState* __tstate = wxPyBeginAllowThreads();
28562 {
28563 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
28564 result = (wxString *) &_result_ref;
28565 }
28566
28567 wxPyEndAllowThreads(__tstate);
28568 if (PyErr_Occurred()) SWIG_fail;
28569 }
28570 {
28571 #if wxUSE_UNICODE
28572 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28573 #else
28574 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28575 #endif
28576 }
28577 return resultobj;
28578 fail:
28579 return NULL;
28580 }
28581
28582
28583 static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) {
28584 PyObject *resultobj;
28585 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28586 wxString *arg2 = 0 ;
28587 bool temp2 = False ;
28588 PyObject * obj0 = 0 ;
28589 PyObject * obj1 = 0 ;
28590 char *kwnames[] = {
28591 (char *) "self",(char *) "link", NULL
28592 };
28593
28594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
28595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28597 {
28598 arg2 = wxString_in_helper(obj1);
28599 if (arg2 == NULL) SWIG_fail;
28600 temp2 = True;
28601 }
28602 {
28603 PyThreadState* __tstate = wxPyBeginAllowThreads();
28604 (arg1)->SetLink((wxString const &)*arg2);
28605
28606 wxPyEndAllowThreads(__tstate);
28607 if (PyErr_Occurred()) SWIG_fail;
28608 }
28609 Py_INCREF(Py_None); resultobj = Py_None;
28610 {
28611 if (temp2)
28612 delete arg2;
28613 }
28614 return resultobj;
28615 fail:
28616 {
28617 if (temp2)
28618 delete arg2;
28619 }
28620 return NULL;
28621 }
28622
28623
28624 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
28625 PyObject *resultobj;
28626 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28627 wxString *result;
28628 PyObject * obj0 = 0 ;
28629 char *kwnames[] = {
28630 (char *) "self", NULL
28631 };
28632
28633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
28634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28636 {
28637 PyThreadState* __tstate = wxPyBeginAllowThreads();
28638 {
28639 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
28640 result = (wxString *) &_result_ref;
28641 }
28642
28643 wxPyEndAllowThreads(__tstate);
28644 if (PyErr_Occurred()) SWIG_fail;
28645 }
28646 {
28647 #if wxUSE_UNICODE
28648 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28649 #else
28650 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28651 #endif
28652 }
28653 return resultobj;
28654 fail:
28655 return NULL;
28656 }
28657
28658
28659 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
28660 PyObject *resultobj;
28661 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28662 wxString *arg2 = 0 ;
28663 bool temp2 = False ;
28664 PyObject * obj0 = 0 ;
28665 PyObject * obj1 = 0 ;
28666 char *kwnames[] = {
28667 (char *) "self",(char *) "target", NULL
28668 };
28669
28670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
28671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28673 {
28674 arg2 = wxString_in_helper(obj1);
28675 if (arg2 == NULL) SWIG_fail;
28676 temp2 = True;
28677 }
28678 {
28679 PyThreadState* __tstate = wxPyBeginAllowThreads();
28680 (arg1)->SetTarget((wxString const &)*arg2);
28681
28682 wxPyEndAllowThreads(__tstate);
28683 if (PyErr_Occurred()) SWIG_fail;
28684 }
28685 Py_INCREF(Py_None); resultobj = Py_None;
28686 {
28687 if (temp2)
28688 delete arg2;
28689 }
28690 return resultobj;
28691 fail:
28692 {
28693 if (temp2)
28694 delete arg2;
28695 }
28696 return NULL;
28697 }
28698
28699
28700 static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) {
28701 PyObject *obj;
28702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28703 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
28704 Py_INCREF(obj);
28705 return Py_BuildValue((char *)"");
28706 }
28707 static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
28708 PyObject *resultobj;
28709 wxWindow *arg1 = (wxWindow *) NULL ;
28710 bool arg2 = (bool) True ;
28711 wxContextHelp *result;
28712 PyObject * obj0 = 0 ;
28713 PyObject * obj1 = 0 ;
28714 char *kwnames[] = {
28715 (char *) "window",(char *) "doNow", NULL
28716 };
28717
28718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
28719 if (obj0) {
28720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28722 }
28723 if (obj1) {
28724 arg2 = (bool) SWIG_AsBool(obj1);
28725 if (PyErr_Occurred()) SWIG_fail;
28726 }
28727 {
28728 PyThreadState* __tstate = wxPyBeginAllowThreads();
28729 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
28730
28731 wxPyEndAllowThreads(__tstate);
28732 if (PyErr_Occurred()) SWIG_fail;
28733 }
28734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
28735 return resultobj;
28736 fail:
28737 return NULL;
28738 }
28739
28740
28741 static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
28742 PyObject *resultobj;
28743 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28744 PyObject * obj0 = 0 ;
28745 char *kwnames[] = {
28746 (char *) "self", NULL
28747 };
28748
28749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
28750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
28751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28752 {
28753 PyThreadState* __tstate = wxPyBeginAllowThreads();
28754 delete arg1;
28755
28756 wxPyEndAllowThreads(__tstate);
28757 if (PyErr_Occurred()) SWIG_fail;
28758 }
28759 Py_INCREF(Py_None); resultobj = Py_None;
28760 return resultobj;
28761 fail:
28762 return NULL;
28763 }
28764
28765
28766 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
28767 PyObject *resultobj;
28768 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28769 wxWindow *arg2 = (wxWindow *) NULL ;
28770 bool result;
28771 PyObject * obj0 = 0 ;
28772 PyObject * obj1 = 0 ;
28773 char *kwnames[] = {
28774 (char *) "self",(char *) "window", NULL
28775 };
28776
28777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
28778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
28779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28780 if (obj1) {
28781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28783 }
28784 {
28785 PyThreadState* __tstate = wxPyBeginAllowThreads();
28786 result = (bool)(arg1)->BeginContextHelp(arg2);
28787
28788 wxPyEndAllowThreads(__tstate);
28789 if (PyErr_Occurred()) SWIG_fail;
28790 }
28791 {
28792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28793 }
28794 return resultobj;
28795 fail:
28796 return NULL;
28797 }
28798
28799
28800 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
28801 PyObject *resultobj;
28802 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28803 bool result;
28804 PyObject * obj0 = 0 ;
28805 char *kwnames[] = {
28806 (char *) "self", NULL
28807 };
28808
28809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
28810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
28811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28812 {
28813 PyThreadState* __tstate = wxPyBeginAllowThreads();
28814 result = (bool)(arg1)->EndContextHelp();
28815
28816 wxPyEndAllowThreads(__tstate);
28817 if (PyErr_Occurred()) SWIG_fail;
28818 }
28819 {
28820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28821 }
28822 return resultobj;
28823 fail:
28824 return NULL;
28825 }
28826
28827
28828 static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) {
28829 PyObject *obj;
28830 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28831 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
28832 Py_INCREF(obj);
28833 return Py_BuildValue((char *)"");
28834 }
28835 static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
28836 PyObject *resultobj;
28837 wxWindow *arg1 = (wxWindow *) 0 ;
28838 int arg2 = (int) wxID_CONTEXT_HELP ;
28839 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28840 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28841 wxSize const &arg4_defvalue = wxDefaultSize ;
28842 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28843 long arg5 = (long) wxBU_AUTODRAW ;
28844 wxContextHelpButton *result;
28845 wxPoint temp3 ;
28846 wxSize temp4 ;
28847 PyObject * obj0 = 0 ;
28848 PyObject * obj1 = 0 ;
28849 PyObject * obj2 = 0 ;
28850 PyObject * obj3 = 0 ;
28851 PyObject * obj4 = 0 ;
28852 char *kwnames[] = {
28853 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28854 };
28855
28856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28859 if (obj1) {
28860 arg2 = (int) SWIG_AsInt(obj1);
28861 if (PyErr_Occurred()) SWIG_fail;
28862 }
28863 if (obj2) {
28864 {
28865 arg3 = &temp3;
28866 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28867 }
28868 }
28869 if (obj3) {
28870 {
28871 arg4 = &temp4;
28872 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28873 }
28874 }
28875 if (obj4) {
28876 arg5 = (long) SWIG_AsLong(obj4);
28877 if (PyErr_Occurred()) SWIG_fail;
28878 }
28879 {
28880 PyThreadState* __tstate = wxPyBeginAllowThreads();
28881 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28882
28883 wxPyEndAllowThreads(__tstate);
28884 if (PyErr_Occurred()) SWIG_fail;
28885 }
28886 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
28887 return resultobj;
28888 fail:
28889 return NULL;
28890 }
28891
28892
28893 static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) {
28894 PyObject *obj;
28895 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28896 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
28897 Py_INCREF(obj);
28898 return Py_BuildValue((char *)"");
28899 }
28900 static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) {
28901 PyObject *resultobj;
28902 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28903 wxHelpProvider *result;
28904 PyObject * obj0 = 0 ;
28905 char *kwnames[] = {
28906 (char *) "helpProvider", NULL
28907 };
28908
28909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
28910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28912 {
28913 PyThreadState* __tstate = wxPyBeginAllowThreads();
28914 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
28915
28916 wxPyEndAllowThreads(__tstate);
28917 if (PyErr_Occurred()) SWIG_fail;
28918 }
28919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
28920 return resultobj;
28921 fail:
28922 return NULL;
28923 }
28924
28925
28926 static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) {
28927 PyObject *resultobj;
28928 wxHelpProvider *result;
28929 char *kwnames[] = {
28930 NULL
28931 };
28932
28933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
28934 {
28935 PyThreadState* __tstate = wxPyBeginAllowThreads();
28936 result = (wxHelpProvider *)wxHelpProvider::Get();
28937
28938 wxPyEndAllowThreads(__tstate);
28939 if (PyErr_Occurred()) SWIG_fail;
28940 }
28941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
28942 return resultobj;
28943 fail:
28944 return NULL;
28945 }
28946
28947
28948 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
28949 PyObject *resultobj;
28950 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28951 wxWindow *arg2 = (wxWindow *) 0 ;
28952 wxString result;
28953 PyObject * obj0 = 0 ;
28954 PyObject * obj1 = 0 ;
28955 char *kwnames[] = {
28956 (char *) "self",(char *) "window", NULL
28957 };
28958
28959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
28960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28962 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28964 {
28965 PyThreadState* __tstate = wxPyBeginAllowThreads();
28966 result = (arg1)->GetHelp((wxWindow const *)arg2);
28967
28968 wxPyEndAllowThreads(__tstate);
28969 if (PyErr_Occurred()) SWIG_fail;
28970 }
28971 {
28972 #if wxUSE_UNICODE
28973 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28974 #else
28975 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28976 #endif
28977 }
28978 return resultobj;
28979 fail:
28980 return NULL;
28981 }
28982
28983
28984 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) {
28985 PyObject *resultobj;
28986 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28987 wxWindow *arg2 = (wxWindow *) 0 ;
28988 bool result;
28989 PyObject * obj0 = 0 ;
28990 PyObject * obj1 = 0 ;
28991 char *kwnames[] = {
28992 (char *) "self",(char *) "window", NULL
28993 };
28994
28995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
28996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28998 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29000 {
29001 PyThreadState* __tstate = wxPyBeginAllowThreads();
29002 result = (bool)(arg1)->ShowHelp(arg2);
29003
29004 wxPyEndAllowThreads(__tstate);
29005 if (PyErr_Occurred()) SWIG_fail;
29006 }
29007 {
29008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29009 }
29010 return resultobj;
29011 fail:
29012 return NULL;
29013 }
29014
29015
29016 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) {
29017 PyObject *resultobj;
29018 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29019 wxWindow *arg2 = (wxWindow *) 0 ;
29020 wxString *arg3 = 0 ;
29021 bool temp3 = False ;
29022 PyObject * obj0 = 0 ;
29023 PyObject * obj1 = 0 ;
29024 PyObject * obj2 = 0 ;
29025 char *kwnames[] = {
29026 (char *) "self",(char *) "window",(char *) "text", NULL
29027 };
29028
29029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
29030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29032 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29034 {
29035 arg3 = wxString_in_helper(obj2);
29036 if (arg3 == NULL) SWIG_fail;
29037 temp3 = True;
29038 }
29039 {
29040 PyThreadState* __tstate = wxPyBeginAllowThreads();
29041 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
29042
29043 wxPyEndAllowThreads(__tstate);
29044 if (PyErr_Occurred()) SWIG_fail;
29045 }
29046 Py_INCREF(Py_None); resultobj = Py_None;
29047 {
29048 if (temp3)
29049 delete arg3;
29050 }
29051 return resultobj;
29052 fail:
29053 {
29054 if (temp3)
29055 delete arg3;
29056 }
29057 return NULL;
29058 }
29059
29060
29061 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) {
29062 PyObject *resultobj;
29063 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29064 int arg2 ;
29065 wxString *arg3 = 0 ;
29066 bool temp3 = False ;
29067 PyObject * obj0 = 0 ;
29068 PyObject * obj1 = 0 ;
29069 PyObject * obj2 = 0 ;
29070 char *kwnames[] = {
29071 (char *) "self",(char *) "id",(char *) "text", NULL
29072 };
29073
29074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
29075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29077 arg2 = (int) SWIG_AsInt(obj1);
29078 if (PyErr_Occurred()) SWIG_fail;
29079 {
29080 arg3 = wxString_in_helper(obj2);
29081 if (arg3 == NULL) SWIG_fail;
29082 temp3 = True;
29083 }
29084 {
29085 PyThreadState* __tstate = wxPyBeginAllowThreads();
29086 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
29087
29088 wxPyEndAllowThreads(__tstate);
29089 if (PyErr_Occurred()) SWIG_fail;
29090 }
29091 Py_INCREF(Py_None); resultobj = Py_None;
29092 {
29093 if (temp3)
29094 delete arg3;
29095 }
29096 return resultobj;
29097 fail:
29098 {
29099 if (temp3)
29100 delete arg3;
29101 }
29102 return NULL;
29103 }
29104
29105
29106 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
29107 PyObject *resultobj;
29108 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29109 wxWindow *arg2 = (wxWindow *) 0 ;
29110 PyObject * obj0 = 0 ;
29111 PyObject * obj1 = 0 ;
29112 char *kwnames[] = {
29113 (char *) "self",(char *) "window", NULL
29114 };
29115
29116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
29117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29119 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29121 {
29122 PyThreadState* __tstate = wxPyBeginAllowThreads();
29123 (arg1)->RemoveHelp(arg2);
29124
29125 wxPyEndAllowThreads(__tstate);
29126 if (PyErr_Occurred()) SWIG_fail;
29127 }
29128 Py_INCREF(Py_None); resultobj = Py_None;
29129 return resultobj;
29130 fail:
29131 return NULL;
29132 }
29133
29134
29135 static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
29136 PyObject *resultobj;
29137 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29138 PyObject * obj0 = 0 ;
29139 char *kwnames[] = {
29140 (char *) "self", NULL
29141 };
29142
29143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
29144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29146 {
29147 PyThreadState* __tstate = wxPyBeginAllowThreads();
29148 wxHelpProvider_Destroy(arg1);
29149
29150 wxPyEndAllowThreads(__tstate);
29151 if (PyErr_Occurred()) SWIG_fail;
29152 }
29153 Py_INCREF(Py_None); resultobj = Py_None;
29154 return resultobj;
29155 fail:
29156 return NULL;
29157 }
29158
29159
29160 static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) {
29161 PyObject *obj;
29162 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29163 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
29164 Py_INCREF(obj);
29165 return Py_BuildValue((char *)"");
29166 }
29167 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) {
29168 PyObject *resultobj;
29169 wxSimpleHelpProvider *result;
29170 char *kwnames[] = {
29171 NULL
29172 };
29173
29174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
29175 {
29176 PyThreadState* __tstate = wxPyBeginAllowThreads();
29177 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
29178
29179 wxPyEndAllowThreads(__tstate);
29180 if (PyErr_Occurred()) SWIG_fail;
29181 }
29182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
29183 return resultobj;
29184 fail:
29185 return NULL;
29186 }
29187
29188
29189 static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) {
29190 PyObject *obj;
29191 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29192 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
29193 Py_INCREF(obj);
29194 return Py_BuildValue((char *)"");
29195 }
29196 static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
29197 PyObject *resultobj;
29198 wxBitmap *arg1 = 0 ;
29199 wxCursor const &arg2_defvalue = wxNullCursor ;
29200 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29201 wxGenericDragImage *result;
29202 PyObject * obj0 = 0 ;
29203 PyObject * obj1 = 0 ;
29204 char *kwnames[] = {
29205 (char *) "image",(char *) "cursor", NULL
29206 };
29207
29208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
29209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
29210 SWIG_POINTER_EXCEPTION | 0)) == -1)
29211 SWIG_fail;
29212 if (arg1 == NULL) {
29213 PyErr_SetString(PyExc_TypeError,"null reference");
29214 SWIG_fail;
29215 }
29216 if (obj1) {
29217 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29218 SWIG_POINTER_EXCEPTION | 0)) == -1)
29219 SWIG_fail;
29220 if (arg2 == NULL) {
29221 PyErr_SetString(PyExc_TypeError,"null reference");
29222 SWIG_fail;
29223 }
29224 }
29225 {
29226 PyThreadState* __tstate = wxPyBeginAllowThreads();
29227 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
29228
29229 wxPyEndAllowThreads(__tstate);
29230 if (PyErr_Occurred()) SWIG_fail;
29231 }
29232 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29233 return resultobj;
29234 fail:
29235 return NULL;
29236 }
29237
29238
29239 static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) {
29240 PyObject *resultobj;
29241 wxIcon *arg1 = 0 ;
29242 wxCursor const &arg2_defvalue = wxNullCursor ;
29243 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29244 wxGenericDragImage *result;
29245 PyObject * obj0 = 0 ;
29246 PyObject * obj1 = 0 ;
29247 char *kwnames[] = {
29248 (char *) "image",(char *) "cursor", NULL
29249 };
29250
29251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
29252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
29253 SWIG_POINTER_EXCEPTION | 0)) == -1)
29254 SWIG_fail;
29255 if (arg1 == NULL) {
29256 PyErr_SetString(PyExc_TypeError,"null reference");
29257 SWIG_fail;
29258 }
29259 if (obj1) {
29260 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29261 SWIG_POINTER_EXCEPTION | 0)) == -1)
29262 SWIG_fail;
29263 if (arg2 == NULL) {
29264 PyErr_SetString(PyExc_TypeError,"null reference");
29265 SWIG_fail;
29266 }
29267 }
29268 {
29269 PyThreadState* __tstate = wxPyBeginAllowThreads();
29270 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
29271
29272 wxPyEndAllowThreads(__tstate);
29273 if (PyErr_Occurred()) SWIG_fail;
29274 }
29275 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29276 return resultobj;
29277 fail:
29278 return NULL;
29279 }
29280
29281
29282 static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) {
29283 PyObject *resultobj;
29284 wxString *arg1 = 0 ;
29285 wxCursor const &arg2_defvalue = wxNullCursor ;
29286 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29287 wxGenericDragImage *result;
29288 bool temp1 = False ;
29289 PyObject * obj0 = 0 ;
29290 PyObject * obj1 = 0 ;
29291 char *kwnames[] = {
29292 (char *) "str",(char *) "cursor", NULL
29293 };
29294
29295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
29296 {
29297 arg1 = wxString_in_helper(obj0);
29298 if (arg1 == NULL) SWIG_fail;
29299 temp1 = True;
29300 }
29301 if (obj1) {
29302 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29303 SWIG_POINTER_EXCEPTION | 0)) == -1)
29304 SWIG_fail;
29305 if (arg2 == NULL) {
29306 PyErr_SetString(PyExc_TypeError,"null reference");
29307 SWIG_fail;
29308 }
29309 }
29310 {
29311 PyThreadState* __tstate = wxPyBeginAllowThreads();
29312 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
29313
29314 wxPyEndAllowThreads(__tstate);
29315 if (PyErr_Occurred()) SWIG_fail;
29316 }
29317 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29318 {
29319 if (temp1)
29320 delete arg1;
29321 }
29322 return resultobj;
29323 fail:
29324 {
29325 if (temp1)
29326 delete arg1;
29327 }
29328 return NULL;
29329 }
29330
29331
29332 static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) {
29333 PyObject *resultobj;
29334 wxPyTreeCtrl *arg1 = 0 ;
29335 wxTreeItemId *arg2 = 0 ;
29336 wxGenericDragImage *result;
29337 PyObject * obj0 = 0 ;
29338 PyObject * obj1 = 0 ;
29339 char *kwnames[] = {
29340 (char *) "treeCtrl",(char *) "id", NULL
29341 };
29342
29343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
29344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
29345 SWIG_POINTER_EXCEPTION | 0)) == -1)
29346 SWIG_fail;
29347 if (arg1 == NULL) {
29348 PyErr_SetString(PyExc_TypeError,"null reference");
29349 SWIG_fail;
29350 }
29351 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
29352 SWIG_POINTER_EXCEPTION | 0)) == -1)
29353 SWIG_fail;
29354 if (arg2 == NULL) {
29355 PyErr_SetString(PyExc_TypeError,"null reference");
29356 SWIG_fail;
29357 }
29358 {
29359 PyThreadState* __tstate = wxPyBeginAllowThreads();
29360 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
29361
29362 wxPyEndAllowThreads(__tstate);
29363 if (PyErr_Occurred()) SWIG_fail;
29364 }
29365 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29366 return resultobj;
29367 fail:
29368 return NULL;
29369 }
29370
29371
29372 static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) {
29373 PyObject *resultobj;
29374 wxPyListCtrl *arg1 = 0 ;
29375 long arg2 ;
29376 wxGenericDragImage *result;
29377 PyObject * obj0 = 0 ;
29378 PyObject * obj1 = 0 ;
29379 char *kwnames[] = {
29380 (char *) "listCtrl",(char *) "id", NULL
29381 };
29382
29383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
29384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
29385 SWIG_POINTER_EXCEPTION | 0)) == -1)
29386 SWIG_fail;
29387 if (arg1 == NULL) {
29388 PyErr_SetString(PyExc_TypeError,"null reference");
29389 SWIG_fail;
29390 }
29391 arg2 = (long) SWIG_AsLong(obj1);
29392 if (PyErr_Occurred()) SWIG_fail;
29393 {
29394 PyThreadState* __tstate = wxPyBeginAllowThreads();
29395 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
29396
29397 wxPyEndAllowThreads(__tstate);
29398 if (PyErr_Occurred()) SWIG_fail;
29399 }
29400 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29401 return resultobj;
29402 fail:
29403 return NULL;
29404 }
29405
29406
29407 static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
29408 PyObject *resultobj;
29409 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29410 PyObject * obj0 = 0 ;
29411 char *kwnames[] = {
29412 (char *) "self", NULL
29413 };
29414
29415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
29416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29418 {
29419 PyThreadState* __tstate = wxPyBeginAllowThreads();
29420 delete arg1;
29421
29422 wxPyEndAllowThreads(__tstate);
29423 if (PyErr_Occurred()) SWIG_fail;
29424 }
29425 Py_INCREF(Py_None); resultobj = Py_None;
29426 return resultobj;
29427 fail:
29428 return NULL;
29429 }
29430
29431
29432 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
29433 PyObject *resultobj;
29434 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29435 wxBitmap *arg2 = (wxBitmap *) 0 ;
29436 PyObject * obj0 = 0 ;
29437 PyObject * obj1 = 0 ;
29438 char *kwnames[] = {
29439 (char *) "self",(char *) "bitmap", NULL
29440 };
29441
29442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
29443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
29446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29447 {
29448 PyThreadState* __tstate = wxPyBeginAllowThreads();
29449 (arg1)->SetBackingBitmap(arg2);
29450
29451 wxPyEndAllowThreads(__tstate);
29452 if (PyErr_Occurred()) SWIG_fail;
29453 }
29454 Py_INCREF(Py_None); resultobj = Py_None;
29455 return resultobj;
29456 fail:
29457 return NULL;
29458 }
29459
29460
29461 static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) {
29462 PyObject *resultobj;
29463 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29464 wxPoint *arg2 = 0 ;
29465 wxWindow *arg3 = (wxWindow *) 0 ;
29466 bool arg4 = (bool) False ;
29467 wxRect *arg5 = (wxRect *) NULL ;
29468 bool result;
29469 wxPoint temp2 ;
29470 PyObject * obj0 = 0 ;
29471 PyObject * obj1 = 0 ;
29472 PyObject * obj2 = 0 ;
29473 PyObject * obj3 = 0 ;
29474 PyObject * obj4 = 0 ;
29475 char *kwnames[] = {
29476 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
29477 };
29478
29479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29482 {
29483 arg2 = &temp2;
29484 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29485 }
29486 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
29487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29488 if (obj3) {
29489 arg4 = (bool) SWIG_AsBool(obj3);
29490 if (PyErr_Occurred()) SWIG_fail;
29491 }
29492 if (obj4) {
29493 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
29494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29495 }
29496 {
29497 PyThreadState* __tstate = wxPyBeginAllowThreads();
29498 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
29499
29500 wxPyEndAllowThreads(__tstate);
29501 if (PyErr_Occurred()) SWIG_fail;
29502 }
29503 {
29504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29505 }
29506 return resultobj;
29507 fail:
29508 return NULL;
29509 }
29510
29511
29512 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) {
29513 PyObject *resultobj;
29514 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29515 wxPoint *arg2 = 0 ;
29516 wxWindow *arg3 = (wxWindow *) 0 ;
29517 wxWindow *arg4 = (wxWindow *) 0 ;
29518 bool result;
29519 wxPoint temp2 ;
29520 PyObject * obj0 = 0 ;
29521 PyObject * obj1 = 0 ;
29522 PyObject * obj2 = 0 ;
29523 PyObject * obj3 = 0 ;
29524 char *kwnames[] = {
29525 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
29526 };
29527
29528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29531 {
29532 arg2 = &temp2;
29533 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29534 }
29535 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
29536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29537 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
29538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29539 {
29540 PyThreadState* __tstate = wxPyBeginAllowThreads();
29541 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
29542
29543 wxPyEndAllowThreads(__tstate);
29544 if (PyErr_Occurred()) SWIG_fail;
29545 }
29546 {
29547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29548 }
29549 return resultobj;
29550 fail:
29551 return NULL;
29552 }
29553
29554
29555 static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) {
29556 PyObject *resultobj;
29557 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29558 bool result;
29559 PyObject * obj0 = 0 ;
29560 char *kwnames[] = {
29561 (char *) "self", NULL
29562 };
29563
29564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
29565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29567 {
29568 PyThreadState* __tstate = wxPyBeginAllowThreads();
29569 result = (bool)(arg1)->EndDrag();
29570
29571 wxPyEndAllowThreads(__tstate);
29572 if (PyErr_Occurred()) SWIG_fail;
29573 }
29574 {
29575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29576 }
29577 return resultobj;
29578 fail:
29579 return NULL;
29580 }
29581
29582
29583 static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) {
29584 PyObject *resultobj;
29585 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29586 wxPoint *arg2 = 0 ;
29587 bool result;
29588 wxPoint temp2 ;
29589 PyObject * obj0 = 0 ;
29590 PyObject * obj1 = 0 ;
29591 char *kwnames[] = {
29592 (char *) "self",(char *) "pt", NULL
29593 };
29594
29595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
29596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29598 {
29599 arg2 = &temp2;
29600 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29601 }
29602 {
29603 PyThreadState* __tstate = wxPyBeginAllowThreads();
29604 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
29605
29606 wxPyEndAllowThreads(__tstate);
29607 if (PyErr_Occurred()) SWIG_fail;
29608 }
29609 {
29610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29611 }
29612 return resultobj;
29613 fail:
29614 return NULL;
29615 }
29616
29617
29618 static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) {
29619 PyObject *resultobj;
29620 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29621 bool result;
29622 PyObject * obj0 = 0 ;
29623 char *kwnames[] = {
29624 (char *) "self", NULL
29625 };
29626
29627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
29628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29630 {
29631 PyThreadState* __tstate = wxPyBeginAllowThreads();
29632 result = (bool)(arg1)->Show();
29633
29634 wxPyEndAllowThreads(__tstate);
29635 if (PyErr_Occurred()) SWIG_fail;
29636 }
29637 {
29638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29639 }
29640 return resultobj;
29641 fail:
29642 return NULL;
29643 }
29644
29645
29646 static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
29647 PyObject *resultobj;
29648 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29649 bool result;
29650 PyObject * obj0 = 0 ;
29651 char *kwnames[] = {
29652 (char *) "self", NULL
29653 };
29654
29655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
29656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29658 {
29659 PyThreadState* __tstate = wxPyBeginAllowThreads();
29660 result = (bool)(arg1)->Hide();
29661
29662 wxPyEndAllowThreads(__tstate);
29663 if (PyErr_Occurred()) SWIG_fail;
29664 }
29665 {
29666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29667 }
29668 return resultobj;
29669 fail:
29670 return NULL;
29671 }
29672
29673
29674 static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) {
29675 PyObject *resultobj;
29676 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29677 wxPoint *arg2 = 0 ;
29678 wxRect result;
29679 wxPoint temp2 ;
29680 PyObject * obj0 = 0 ;
29681 PyObject * obj1 = 0 ;
29682 char *kwnames[] = {
29683 (char *) "self",(char *) "pos", NULL
29684 };
29685
29686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
29687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29689 {
29690 arg2 = &temp2;
29691 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29692 }
29693 {
29694 PyThreadState* __tstate = wxPyBeginAllowThreads();
29695 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
29696
29697 wxPyEndAllowThreads(__tstate);
29698 if (PyErr_Occurred()) SWIG_fail;
29699 }
29700 {
29701 wxRect * resultptr;
29702 resultptr = new wxRect((wxRect &) result);
29703 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
29704 }
29705 return resultobj;
29706 fail:
29707 return NULL;
29708 }
29709
29710
29711 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
29712 PyObject *resultobj;
29713 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29714 wxDC *arg2 = 0 ;
29715 wxPoint *arg3 = 0 ;
29716 bool result;
29717 wxPoint temp3 ;
29718 PyObject * obj0 = 0 ;
29719 PyObject * obj1 = 0 ;
29720 PyObject * obj2 = 0 ;
29721 char *kwnames[] = {
29722 (char *) "self",(char *) "dc",(char *) "pos", NULL
29723 };
29724
29725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
29726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29728 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
29729 SWIG_POINTER_EXCEPTION | 0)) == -1)
29730 SWIG_fail;
29731 if (arg2 == NULL) {
29732 PyErr_SetString(PyExc_TypeError,"null reference");
29733 SWIG_fail;
29734 }
29735 {
29736 arg3 = &temp3;
29737 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29738 }
29739 {
29740 PyThreadState* __tstate = wxPyBeginAllowThreads();
29741 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
29742
29743 wxPyEndAllowThreads(__tstate);
29744 if (PyErr_Occurred()) SWIG_fail;
29745 }
29746 {
29747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29748 }
29749 return resultobj;
29750 fail:
29751 return NULL;
29752 }
29753
29754
29755 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29756 PyObject *resultobj;
29757 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29758 wxDC *arg2 = 0 ;
29759 wxMemoryDC *arg3 = 0 ;
29760 wxRect *arg4 = 0 ;
29761 wxRect *arg5 = 0 ;
29762 bool result;
29763 wxRect temp4 ;
29764 wxRect temp5 ;
29765 PyObject * obj0 = 0 ;
29766 PyObject * obj1 = 0 ;
29767 PyObject * obj2 = 0 ;
29768 PyObject * obj3 = 0 ;
29769 PyObject * obj4 = 0 ;
29770 char *kwnames[] = {
29771 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
29772 };
29773
29774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29777 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
29778 SWIG_POINTER_EXCEPTION | 0)) == -1)
29779 SWIG_fail;
29780 if (arg2 == NULL) {
29781 PyErr_SetString(PyExc_TypeError,"null reference");
29782 SWIG_fail;
29783 }
29784 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
29785 SWIG_POINTER_EXCEPTION | 0)) == -1)
29786 SWIG_fail;
29787 if (arg3 == NULL) {
29788 PyErr_SetString(PyExc_TypeError,"null reference");
29789 SWIG_fail;
29790 }
29791 {
29792 arg4 = &temp4;
29793 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29794 }
29795 {
29796 arg5 = &temp5;
29797 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
29798 }
29799 {
29800 PyThreadState* __tstate = wxPyBeginAllowThreads();
29801 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
29802
29803 wxPyEndAllowThreads(__tstate);
29804 if (PyErr_Occurred()) SWIG_fail;
29805 }
29806 {
29807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29808 }
29809 return resultobj;
29810 fail:
29811 return NULL;
29812 }
29813
29814
29815 static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
29816 PyObject *resultobj;
29817 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29818 wxPoint *arg2 = 0 ;
29819 wxPoint *arg3 = 0 ;
29820 bool arg4 ;
29821 bool arg5 ;
29822 bool result;
29823 wxPoint temp2 ;
29824 wxPoint temp3 ;
29825 PyObject * obj0 = 0 ;
29826 PyObject * obj1 = 0 ;
29827 PyObject * obj2 = 0 ;
29828 PyObject * obj3 = 0 ;
29829 PyObject * obj4 = 0 ;
29830 char *kwnames[] = {
29831 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
29832 };
29833
29834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29837 {
29838 arg2 = &temp2;
29839 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29840 }
29841 {
29842 arg3 = &temp3;
29843 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29844 }
29845 arg4 = (bool) SWIG_AsBool(obj3);
29846 if (PyErr_Occurred()) SWIG_fail;
29847 arg5 = (bool) SWIG_AsBool(obj4);
29848 if (PyErr_Occurred()) SWIG_fail;
29849 {
29850 PyThreadState* __tstate = wxPyBeginAllowThreads();
29851 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
29852
29853 wxPyEndAllowThreads(__tstate);
29854 if (PyErr_Occurred()) SWIG_fail;
29855 }
29856 {
29857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29858 }
29859 return resultobj;
29860 fail:
29861 return NULL;
29862 }
29863
29864
29865 static PyObject * DragImage_swigregister(PyObject *, PyObject *args) {
29866 PyObject *obj;
29867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29868 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
29869 Py_INCREF(obj);
29870 return Py_BuildValue((char *)"");
29871 }
29872 static PyMethodDef SwigMethods[] = {
29873 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL },
29874 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL },
29875 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29876 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL },
29877 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
29878 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL },
29879 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
29880 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
29881 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29882 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
29883 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
29884 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
29885 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
29886 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
29887 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
29888 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
29889 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
29890 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
29891 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL },
29892 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL },
29893 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL },
29894 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
29895 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
29896 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29897 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
29898 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
29899 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
29900 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
29901 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
29902 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL },
29903 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL },
29904 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL },
29905 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL },
29906 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL },
29907 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29908 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
29909 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
29910 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
29911 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL },
29912 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
29913 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
29914 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29915 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
29916 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
29917 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
29918 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
29919 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
29920 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29921 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29922 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29923 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
29924 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
29925 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL },
29926 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
29927 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
29928 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
29929 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL },
29930 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL },
29931 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL },
29932 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29933 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
29934 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
29935 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
29936 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
29937 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
29938 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
29939 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
29940 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
29941 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
29942 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL },
29943 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
29944 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
29945 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29946 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL },
29947 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
29948 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
29949 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29950 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
29951 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
29952 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL },
29953 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL },
29954 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL },
29955 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29956 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL },
29957 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29958 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29959 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29960 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29961 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29962 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29963 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL },
29964 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL },
29965 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL },
29966 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29967 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
29968 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL },
29969 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL },
29970 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
29971 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
29972 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL },
29973 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL },
29974 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
29975 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
29976 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
29977 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL },
29978 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL },
29979 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
29980 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
29981 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL },
29982 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
29983 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
29984 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
29985 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL },
29986 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
29987 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
29988 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29989 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
29990 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL },
29991 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
29992 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
29993 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL },
29994 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS, NULL },
29995 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
29996 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL },
29997 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
29998 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
29999 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
30000 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
30001 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
30002 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
30003 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
30004 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
30005 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30006 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30007 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
30008 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
30009 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL },
30010 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
30011 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
30012 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
30013 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30014 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30015 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
30016 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
30017 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
30018 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
30019 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
30020 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
30021 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL },
30022 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL },
30023 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL },
30024 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30025 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30026 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30027 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
30028 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
30029 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
30030 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL },
30031 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL },
30032 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL },
30033 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL },
30034 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
30035 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL },
30036 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL },
30037 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30038 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30039 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
30040 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
30041 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
30042 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
30043 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
30044 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL },
30045 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL },
30046 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL },
30047 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL },
30048 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL },
30049 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL },
30050 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
30051 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
30052 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
30053 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
30054 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30055 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL },
30056 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30057 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
30058 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
30059 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
30060 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
30061 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
30062 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
30063 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
30064 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
30065 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
30066 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
30067 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
30068 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
30069 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
30070 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
30071 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30072 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30073 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
30074 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
30075 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL },
30076 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
30077 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL },
30078 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30079 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30080 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL },
30081 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL },
30082 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL },
30083 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
30084 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
30085 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30086 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30087 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL },
30088 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
30089 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
30090 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
30091 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30092 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
30093 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL },
30094 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
30095 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
30096 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30097 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
30098 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
30099 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
30100 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
30101 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
30102 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
30103 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
30104 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
30105 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL },
30106 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30107 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30108 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30109 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
30110 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
30111 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL },
30112 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
30113 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
30114 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
30115 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30116 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL },
30117 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30118 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30119 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30120 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL },
30121 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
30122 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
30123 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30124 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30125 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30126 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30127 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30128 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
30129 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
30130 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
30131 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
30132 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL },
30133 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL },
30134 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
30135 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
30136 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
30137 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL },
30138 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
30139 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
30140 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30141 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
30142 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
30143 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL },
30144 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL },
30145 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL },
30146 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30147 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
30148 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
30149 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
30150 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
30151 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
30152 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
30153 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
30154 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
30155 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
30156 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
30157 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
30158 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
30159 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
30160 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
30161 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
30162 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL },
30163 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL },
30164 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL },
30165 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL },
30166 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL },
30167 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30168 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL },
30169 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
30170 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
30171 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL },
30172 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL },
30173 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS, NULL },
30174 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30175 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
30176 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
30177 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30178 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30179 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30180 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
30181 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
30182 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
30183 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
30184 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL },
30185 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL },
30186 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
30187 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS, NULL },
30188 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL },
30189 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30190 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30191 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS, NULL },
30192 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30193 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30194 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30195 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30196 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30197 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS, NULL },
30198 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL },
30199 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
30200 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30201 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
30202 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL },
30203 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL },
30204 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
30205 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
30206 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL },
30207 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30208 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL },
30209 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL },
30210 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL },
30211 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30212 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
30213 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL },
30214 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30215 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL },
30216 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL },
30217 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
30218 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
30219 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
30220 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL },
30221 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL },
30222 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
30223 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
30224 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
30225 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL },
30226 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
30227 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
30228 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
30229 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
30230 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL },
30231 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
30232 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
30233 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
30234 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
30235 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL },
30236 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL },
30237 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
30238 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
30239 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
30240 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
30241 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30242 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30243 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
30244 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
30245 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
30246 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30247 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30248 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
30249 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
30250 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
30251 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
30252 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
30253 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
30254 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
30255 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL },
30256 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL },
30257 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL },
30258 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
30259 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
30260 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL },
30261 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL },
30262 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL },
30263 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
30264 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
30265 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL },
30266 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL },
30267 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL },
30268 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL },
30269 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL },
30270 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL },
30271 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL },
30272 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
30273 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
30274 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
30275 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL },
30276 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL },
30277 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
30278 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30279 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30280 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30281 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30282 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL },
30283 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
30284 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
30285 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
30286 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL },
30287 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
30288 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
30289 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
30290 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
30291 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL },
30292 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL },
30293 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL },
30294 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
30295 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
30296 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL },
30297 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30298 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL },
30299 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
30300 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL },
30301 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
30302 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
30303 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30304 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30305 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL },
30306 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL },
30307 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30308 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30309 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
30310 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30311 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30312 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
30313 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30314 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30315 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
30316 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
30317 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL },
30318 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
30319 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
30320 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
30321 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
30322 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
30323 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
30324 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
30325 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
30326 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL },
30327 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
30328 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL },
30329 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
30330 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
30331 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
30332 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30333 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30334 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
30335 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
30336 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
30337 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
30338 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
30339 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
30340 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
30341 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
30342 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
30343 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
30344 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
30345 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
30346 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30347 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30348 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
30349 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL },
30350 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL },
30351 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL },
30352 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL },
30353 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
30354 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
30355 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL },
30356 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL },
30357 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL },
30358 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL },
30359 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL },
30360 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL },
30361 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL },
30362 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL },
30363 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL },
30364 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL },
30365 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL },
30366 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL },
30367 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
30368 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
30369 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL },
30370 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30371 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL },
30372 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL },
30373 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
30374 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
30375 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
30376 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
30377 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
30378 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
30379 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL },
30380 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL },
30381 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL },
30382 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
30383 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
30384 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
30385 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
30386 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
30387 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
30388 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
30389 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
30390 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
30391 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
30392 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL },
30393 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL },
30394 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
30395 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
30396 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL },
30397 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30398 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30399 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30400 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
30401 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30402 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30403 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
30404 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
30405 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
30406 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
30407 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL },
30408 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL },
30409 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
30410 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
30411 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
30412 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
30413 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
30414 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
30415 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
30416 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
30417 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
30418 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
30419 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30420 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL },
30421 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30422 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
30423 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
30424 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
30425 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
30426 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
30427 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30428 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30429 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL },
30430 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL },
30431 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
30432 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
30433 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30434 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30435 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30436 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL },
30437 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL },
30438 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL },
30439 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL },
30440 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL },
30441 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
30442 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
30443 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL },
30444 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL },
30445 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL },
30446 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
30447 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
30448 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
30449 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL },
30450 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL },
30451 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
30452 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
30453 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
30454 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL },
30455 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
30456 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL },
30457 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL },
30458 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
30459 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL },
30460 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30461 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30462 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30463 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30464 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL },
30465 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL },
30466 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL },
30467 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL },
30468 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL },
30469 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30470 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL },
30471 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL },
30472 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL },
30473 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL },
30474 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL },
30475 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
30476 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
30477 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
30478 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL },
30479 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
30480 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
30481 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
30482 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
30483 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
30484 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL },
30485 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL },
30486 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL },
30487 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL },
30488 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
30489 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
30490 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
30491 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
30492 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
30493 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL },
30494 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30495 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
30496 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
30497 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
30498 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
30499 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
30500 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
30501 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30502 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
30503 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30504 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
30505 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
30506 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
30507 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
30508 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
30509 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL },
30510 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30511 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30512 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30513 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
30514 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
30515 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
30516 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
30517 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
30518 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
30519 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30520 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30521 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30522 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30523 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30524 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
30525 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
30526 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
30527 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
30528 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
30529 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30530 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30531 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
30532 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
30533 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
30534 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
30535 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
30536 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
30537 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL },
30538 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
30539 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
30540 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
30541 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
30542 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
30543 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL },
30544 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
30545 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL },
30546 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL },
30547 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL },
30548 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30549 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
30550 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL },
30551 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL },
30552 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL },
30553 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL },
30554 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL },
30555 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL },
30556 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL },
30557 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL },
30558 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL },
30559 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL },
30560 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
30561 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
30562 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL },
30563 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
30564 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
30565 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL },
30566 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
30567 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL },
30568 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL },
30569 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL },
30570 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
30571 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL },
30572 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL },
30573 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
30574 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL },
30575 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL },
30576 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
30577 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL },
30578 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
30579 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
30580 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL },
30581 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
30582 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL },
30583 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL },
30584 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30585 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30586 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30587 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL },
30588 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
30589 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
30590 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
30591 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL },
30592 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
30593 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
30594 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
30595 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
30596 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
30597 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
30598 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
30599 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL },
30600 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30601 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30602 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL },
30603 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL },
30604 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL },
30605 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL },
30606 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30607 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
30608 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
30609 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
30610 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
30611 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
30612 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
30613 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
30614 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
30615 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
30616 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
30617 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
30618 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL },
30619 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
30620 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30621 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
30622 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
30623 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
30624 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
30625 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
30626 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
30627 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
30628 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
30629 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
30630 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
30631 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
30632 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
30633 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
30634 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
30635 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
30636 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30637 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
30638 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL },
30639 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL },
30640 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
30641 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
30642 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL },
30643 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30644 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30645 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30646 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30647 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL },
30648 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL },
30649 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL },
30650 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL },
30651 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL },
30652 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30653 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30654 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30655 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL },
30656 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL },
30657 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
30658 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL },
30659 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL },
30660 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL },
30661 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
30662 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL },
30663 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL },
30664 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL },
30665 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL },
30666 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
30667 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
30668 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL },
30669 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL },
30670 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL },
30671 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL },
30672 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL },
30673 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
30674 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL },
30675 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
30676 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
30677 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
30678 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL },
30679 { NULL, NULL, 0, NULL }
30680 };
30681
30682
30683 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
30684
30685 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
30686 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30687 }
30688 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
30689 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
30690 }
30691 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
30692 return (void *)((wxSizer *) ((wxBoxSizer *) x));
30693 }
30694 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
30695 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
30696 }
30697 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
30698 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
30699 }
30700 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
30701 return (void *)((wxSizer *) ((wxGridSizer *) x));
30702 }
30703 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
30704 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
30705 }
30706 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
30707 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
30708 }
30709 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
30710 return (void *)((wxSizer *) ((wxPySizer *) x));
30711 }
30712 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
30713 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
30714 }
30715 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
30716 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
30717 }
30718 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
30719 return (void *)((wxEvent *) ((wxMenuEvent *) x));
30720 }
30721 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
30722 return (void *)((wxEvent *) ((wxCloseEvent *) x));
30723 }
30724 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
30725 return (void *)((wxEvent *) ((wxMouseEvent *) x));
30726 }
30727 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
30728 return (void *)((wxEvent *) ((wxEraseEvent *) x));
30729 }
30730 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
30731 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
30732 }
30733 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
30734 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
30735 }
30736 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
30737 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
30738 }
30739 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
30740 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
30741 }
30742 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
30743 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
30744 }
30745 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
30746 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30747 }
30748 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
30749 return (void *)((wxEvent *) ((wxPyEvent *) x));
30750 }
30751 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
30752 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
30753 }
30754 static void *_p_wxListEventTo_p_wxEvent(void *x) {
30755 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
30756 }
30757 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
30758 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30759 }
30760 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
30761 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
30762 }
30763 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
30764 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
30765 }
30766 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
30767 return (void *)((wxEvent *) ((wxIdleEvent *) x));
30768 }
30769 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
30770 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
30771 }
30772 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
30773 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
30774 }
30775 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
30776 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
30777 }
30778 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
30779 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
30780 }
30781 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
30782 return (void *)((wxEvent *) ((wxActivateEvent *) x));
30783 }
30784 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
30785 return (void *)((wxEvent *) ((wxSizeEvent *) x));
30786 }
30787 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
30788 return (void *)((wxEvent *) ((wxMoveEvent *) x));
30789 }
30790 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
30791 return (void *)((wxEvent *) ((wxPaintEvent *) x));
30792 }
30793 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
30794 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
30795 }
30796 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
30797 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
30798 }
30799 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
30800 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
30801 }
30802 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
30803 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
30804 }
30805 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
30806 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30807 }
30808 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
30809 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
30810 }
30811 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
30812 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
30813 }
30814 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
30815 return (void *)((wxEvent *) ((wxFocusEvent *) x));
30816 }
30817 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
30818 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
30819 }
30820 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
30821 return (void *)((wxEvent *) ((wxShowEvent *) x));
30822 }
30823 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
30824 return (void *)((wxEvent *) ((wxCommandEvent *) x));
30825 }
30826 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
30827 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
30828 }
30829 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
30830 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30831 }
30832 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
30833 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
30834 }
30835 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
30836 return (void *)((wxEvent *) ((wxKeyEvent *) x));
30837 }
30838 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
30839 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
30840 }
30841 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
30842 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
30843 }
30844 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
30845 return (void *)((wxItemContainer *) ((wxComboBox *) x));
30846 }
30847 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
30848 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30849 }
30850 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
30851 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
30852 }
30853 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
30854 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
30855 }
30856 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
30857 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
30858 }
30859 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
30860 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30861 }
30862 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
30863 return (void *)((wxPyListCtrl *) ((wxListView *) x));
30864 }
30865 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
30866 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30867 }
30868 static void *_p_wxListBoxTo_p_wxControl(void *x) {
30869 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
30870 }
30871 static void *_p_wxChoiceTo_p_wxControl(void *x) {
30872 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
30873 }
30874 static void *_p_wxToolBarTo_p_wxControl(void *x) {
30875 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
30876 }
30877 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
30878 return (void *)((wxControl *) ((wxStaticBitmap *) x));
30879 }
30880 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
30881 return (void *)((wxControl *) ((wxComboBox *) x));
30882 }
30883 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
30884 return (void *)((wxControl *) ((wxSpinCtrl *) x));
30885 }
30886 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
30887 return (void *)((wxControl *) ((wxStaticBox *) x));
30888 }
30889 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
30890 return (void *)((wxControl *) ((wxPyListCtrl *) x));
30891 }
30892 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
30893 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
30894 }
30895 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
30896 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30897 }
30898 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
30899 return (void *)((wxControl *) ((wxScrollBar *) x));
30900 }
30901 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
30902 return (void *)((wxControl *) ((wxBookCtrl *) x));
30903 }
30904 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
30905 return (void *)((wxControl *) ((wxRadioButton *) x));
30906 }
30907 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
30908 return (void *)((wxControl *) ((wxToggleButton *) x));
30909 }
30910 static void *_p_wxGaugeTo_p_wxControl(void *x) {
30911 return (void *)((wxControl *) ((wxGauge *) x));
30912 }
30913 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
30914 return (void *)((wxControl *) ((wxToolBarBase *) x));
30915 }
30916 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
30917 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
30918 }
30919 static void *_p_wxButtonTo_p_wxControl(void *x) {
30920 return (void *)((wxControl *) ((wxButton *) x));
30921 }
30922 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
30923 return (void *)((wxControl *) ((wxSpinButton *) x));
30924 }
30925 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
30926 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
30927 }
30928 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
30929 return (void *)((wxControl *) ((wxControlWithItems *) x));
30930 }
30931 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
30932 return (void *)((wxControl *) ((wxRadioBox *) x));
30933 }
30934 static void *_p_wxNotebookTo_p_wxControl(void *x) {
30935 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
30936 }
30937 static void *_p_wxListbookTo_p_wxControl(void *x) {
30938 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
30939 }
30940 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
30941 return (void *)((wxControl *) ((wxCheckBox *) x));
30942 }
30943 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
30944 return (void *)((wxControl *) ((wxTextCtrl *) x));
30945 }
30946 static void *_p_wxListViewTo_p_wxControl(void *x) {
30947 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
30948 }
30949 static void *_p_wxSliderTo_p_wxControl(void *x) {
30950 return (void *)((wxControl *) ((wxSlider *) x));
30951 }
30952 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
30953 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
30954 }
30955 static void *_p_wxPyControlTo_p_wxControl(void *x) {
30956 return (void *)((wxControl *) ((wxPyControl *) x));
30957 }
30958 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
30959 return (void *)((wxControl *) ((wxStaticLine *) x));
30960 }
30961 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
30962 return (void *)((wxControl *) ((wxStaticText *) x));
30963 }
30964 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
30965 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
30966 }
30967 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
30968 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
30969 }
30970 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
30971 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
30972 }
30973 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
30974 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30975 }
30976 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
30977 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
30978 }
30979 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
30980 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
30981 }
30982 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
30983 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30984 }
30985 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
30986 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
30987 }
30988 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
30989 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
30990 }
30991 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
30992 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
30993 }
30994 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
30995 return (void *)((wxEvtHandler *) ((wxValidator *) x));
30996 }
30997 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
30998 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
30999 }
31000 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
31001 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31002 }
31003 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
31004 return (void *)((wxEvtHandler *) ((wxMenu *) x));
31005 }
31006 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
31007 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
31008 }
31009 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
31010 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
31011 }
31012 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
31013 return (void *)((wxEvtHandler *) ((wxWindow *) x));
31014 }
31015 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
31016 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
31017 }
31018 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
31019 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
31020 }
31021 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
31022 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
31023 }
31024 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
31025 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
31026 }
31027 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
31028 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31029 }
31030 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
31031 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
31032 }
31033 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
31034 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
31035 }
31036 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
31037 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
31038 }
31039 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
31040 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
31041 }
31042 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
31043 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31044 }
31045 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
31046 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
31047 }
31048 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
31049 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
31050 }
31051 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
31052 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31053 }
31054 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
31055 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
31056 }
31057 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
31058 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
31059 }
31060 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
31061 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
31062 }
31063 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
31064 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31065 }
31066 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
31067 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31068 }
31069 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
31070 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31071 }
31072 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
31073 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31074 }
31075 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
31076 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
31077 }
31078 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
31079 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31080 }
31081 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
31082 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
31083 }
31084 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
31085 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
31086 }
31087 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
31088 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
31089 }
31090 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
31091 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
31092 }
31093 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
31094 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
31095 }
31096 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
31097 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
31098 }
31099 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
31100 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
31101 }
31102 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
31103 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31104 }
31105 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
31106 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
31107 }
31108 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
31109 return (void *)((wxListBox *) ((wxCheckListBox *) x));
31110 }
31111 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
31112 return (void *)((wxBookCtrl *) ((wxListbook *) x));
31113 }
31114 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
31115 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
31116 }
31117 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
31118 return (void *)((wxButton *) ((wxBitmapButton *) x));
31119 }
31120 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
31121 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
31122 }
31123 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
31124 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
31125 }
31126 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
31127 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
31128 }
31129 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
31130 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
31131 }
31132 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
31133 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
31134 }
31135 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
31136 return (void *)((wxObject *) ((wxSizerItem *) x));
31137 }
31138 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
31139 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
31140 }
31141 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
31142 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
31143 }
31144 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
31145 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
31146 }
31147 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
31148 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31149 }
31150 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
31151 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
31152 }
31153 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
31154 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
31155 }
31156 static void *_p_wxSizerTo_p_wxObject(void *x) {
31157 return (void *)((wxObject *) ((wxSizer *) x));
31158 }
31159 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
31160 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31161 }
31162 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
31163 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
31164 }
31165 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
31166 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
31167 }
31168 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
31169 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
31170 }
31171 static void *_p_wxEventTo_p_wxObject(void *x) {
31172 return (void *)((wxObject *) ((wxEvent *) x));
31173 }
31174 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
31175 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
31176 }
31177 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
31178 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
31179 }
31180 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
31181 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
31182 }
31183 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
31184 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
31185 }
31186 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
31187 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
31188 }
31189 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
31190 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31191 }
31192 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
31193 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
31194 }
31195 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
31196 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
31197 }
31198 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
31199 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
31200 }
31201 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
31202 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
31203 }
31204 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
31205 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31206 }
31207 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
31208 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
31209 }
31210 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
31211 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
31212 }
31213 static void *_p_wxControlTo_p_wxObject(void *x) {
31214 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
31215 }
31216 static void *_p_wxPyControlTo_p_wxObject(void *x) {
31217 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
31218 }
31219 static void *_p_wxGaugeTo_p_wxObject(void *x) {
31220 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
31221 }
31222 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
31223 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
31224 }
31225 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
31226 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
31227 }
31228 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
31229 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
31230 }
31231 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
31232 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
31233 }
31234 static void *_p_wxChoiceTo_p_wxObject(void *x) {
31235 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31236 }
31237 static void *_p_wxFSFileTo_p_wxObject(void *x) {
31238 return (void *)((wxObject *) ((wxFSFile *) x));
31239 }
31240 static void *_p_wxPySizerTo_p_wxObject(void *x) {
31241 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
31242 }
31243 static void *_p_wxListViewTo_p_wxObject(void *x) {
31244 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31245 }
31246 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
31247 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
31248 }
31249 static void *_p_wxNotebookTo_p_wxObject(void *x) {
31250 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31251 }
31252 static void *_p_wxPyEventTo_p_wxObject(void *x) {
31253 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
31254 }
31255 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
31256 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
31257 }
31258 static void *_p_wxListbookTo_p_wxObject(void *x) {
31259 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31260 }
31261 static void *_p_wxShowEventTo_p_wxObject(void *x) {
31262 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
31263 }
31264 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
31265 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
31266 }
31267 static void *_p_wxSliderTo_p_wxObject(void *x) {
31268 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
31269 }
31270 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
31271 return (void *)((wxObject *) ((wxMenuItem *) x));
31272 }
31273 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
31274 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
31275 }
31276 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
31277 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
31278 }
31279 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
31280 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
31281 }
31282 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
31283 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
31284 }
31285 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
31286 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
31287 }
31288 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
31289 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
31290 }
31291 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
31292 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
31293 }
31294 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
31295 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
31296 }
31297 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
31298 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
31299 }
31300 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
31301 return (void *)((wxObject *) ((wxContextHelp *) x));
31302 }
31303 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
31304 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
31305 }
31306 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
31307 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
31308 }
31309 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
31310 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
31311 }
31312 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
31313 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
31314 }
31315 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
31316 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
31317 }
31318 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
31319 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
31320 }
31321 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
31322 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
31323 }
31324 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
31325 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
31326 }
31327 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
31328 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
31329 }
31330 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
31331 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
31332 }
31333 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
31334 return (void *)((wxObject *) ((wxImageHandler *) x));
31335 }
31336 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
31337 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
31338 }
31339 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
31340 return (void *)((wxObject *) ((wxEvtHandler *) x));
31341 }
31342 static void *_p_wxListEventTo_p_wxObject(void *x) {
31343 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
31344 }
31345 static void *_p_wxListBoxTo_p_wxObject(void *x) {
31346 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31347 }
31348 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
31349 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31350 }
31351 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
31352 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
31353 }
31354 static void *_p_wxButtonTo_p_wxObject(void *x) {
31355 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
31356 }
31357 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
31358 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
31359 }
31360 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
31361 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
31362 }
31363 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
31364 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31365 }
31366 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
31367 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
31368 }
31369 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
31370 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
31371 }
31372 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
31373 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
31374 }
31375 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
31376 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
31377 }
31378 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
31379 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
31380 }
31381 static void *_p_wxListItemTo_p_wxObject(void *x) {
31382 return (void *)((wxObject *) ((wxListItem *) x));
31383 }
31384 static void *_p_wxImageTo_p_wxObject(void *x) {
31385 return (void *)((wxObject *) ((wxImage *) x));
31386 }
31387 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
31388 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
31389 }
31390 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
31391 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
31392 }
31393 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
31394 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
31395 }
31396 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
31397 return (void *)((wxObject *) ((wxGenericDragImage *) x));
31398 }
31399 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
31400 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
31401 }
31402 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
31403 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31404 }
31405 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
31406 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31407 }
31408 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
31409 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31410 }
31411 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
31412 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
31413 }
31414 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
31415 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
31416 }
31417 static void *_p_wxWindowTo_p_wxObject(void *x) {
31418 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
31419 }
31420 static void *_p_wxMenuTo_p_wxObject(void *x) {
31421 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
31422 }
31423 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
31424 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
31425 }
31426 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
31427 return (void *)((wxObject *) ((wxFileSystem *) x));
31428 }
31429 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
31430 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
31431 }
31432 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
31433 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
31434 }
31435 static void *_p_wxPyAppTo_p_wxObject(void *x) {
31436 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
31437 }
31438 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
31439 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
31440 }
31441 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
31442 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
31443 }
31444 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
31445 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
31446 }
31447 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
31448 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
31449 }
31450 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
31451 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
31452 }
31453 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
31454 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
31455 }
31456 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
31457 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
31458 }
31459 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
31460 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
31461 }
31462 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
31463 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
31464 }
31465 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
31466 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
31467 }
31468 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
31469 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31470 }
31471 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
31472 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
31473 }
31474 static void *_p_wxToolBarTo_p_wxObject(void *x) {
31475 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31476 }
31477 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
31478 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
31479 }
31480 static void *_p_wxValidatorTo_p_wxObject(void *x) {
31481 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
31482 }
31483 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
31484 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
31485 }
31486 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
31487 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
31488 }
31489 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
31490 return (void *)((wxWindow *) ((wxMenuBar *) x));
31491 }
31492 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
31493 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31494 }
31495 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
31496 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
31497 }
31498 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
31499 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
31500 }
31501 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
31502 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
31503 }
31504 static void *_p_wxControlTo_p_wxWindow(void *x) {
31505 return (void *)((wxWindow *) ((wxControl *) x));
31506 }
31507 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
31508 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
31509 }
31510 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
31511 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31512 }
31513 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
31514 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
31515 }
31516 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
31517 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
31518 }
31519 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
31520 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
31521 }
31522 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
31523 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
31524 }
31525 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
31526 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
31527 }
31528 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
31529 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
31530 }
31531 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
31532 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
31533 }
31534 static void *_p_wxListbookTo_p_wxWindow(void *x) {
31535 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31536 }
31537 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
31538 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
31539 }
31540 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
31541 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
31542 }
31543 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
31544 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
31545 }
31546 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
31547 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31548 }
31549 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
31550 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31551 }
31552 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
31553 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31554 }
31555 static void *_p_wxListViewTo_p_wxWindow(void *x) {
31556 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31557 }
31558 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
31559 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31560 }
31561 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
31562 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
31563 }
31564 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
31565 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
31566 }
31567 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
31568 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
31569 }
31570 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
31571 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
31572 }
31573 static void *_p_wxSliderTo_p_wxWindow(void *x) {
31574 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
31575 }
31576 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
31577 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
31578 }
31579 static void *_p_wxButtonTo_p_wxWindow(void *x) {
31580 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
31581 }
31582 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
31583 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
31584 }
31585 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
31586 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31587 }
31588 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
31589 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
31590 }
31591 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
31592 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31593 }
31594 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
31595 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31596 }
31597 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
31598 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
31599 }
31600 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
31601 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
31602 }
31603 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
31604 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
31605 }
31606 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
31607 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
31608 }
31609 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
31610 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
31611 }
31612 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
31613 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31614 }
31615 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
31616 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31617 }
31618 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
31619 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
31620 }
31621 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
31622 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
31623 }
31624 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
31625 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
31626 }
31627 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
31628 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
31629 }
31630 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
31631 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
31632 }
31633 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
31634 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
31635 }
31636 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
31637 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
31638 }
31639 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
31640 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
31641 }
31642 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
31643 return (void *)((wxControlWithItems *) ((wxChoice *) x));
31644 }
31645 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
31646 return (void *)((wxControlWithItems *) ((wxListBox *) x));
31647 }
31648 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
31649 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
31650 }
31651 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
31652 return (void *)((wxValidator *) ((wxPyValidator *) x));
31653 }
31654 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}};
31655 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}};
31656 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}};
31657 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}};
31658 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}};
31659 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}};
31660 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}};
31661 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}};
31662 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}};
31663 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}};
31664 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}};
31665 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}};
31666 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}};
31667 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}};
31668 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}};
31669 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}};
31670 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}};
31671 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}};
31672 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}};
31673 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}};
31674 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}};
31675 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}};
31676 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}};
31677 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}};
31678 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}};
31679 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}};
31680 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}};
31681 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}};
31682 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}};
31683 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}};
31684 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}};
31685 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}};
31686 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}};
31687 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}};
31688 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}};
31689 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}};
31690 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}};
31691 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}};
31692 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}};
31693 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}};
31694 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}};
31695 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}};
31696 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}};
31697 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}};
31698 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}};
31699 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}};
31700 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}};
31701 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}};
31702 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}};
31703 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}};
31704 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}};
31705 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}};
31706 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}};
31707 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}};
31708 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}};
31709 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}};
31710 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}};
31711 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}};
31712 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}};
31713 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}};
31714 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}};
31715 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}};
31716 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}};
31717 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}};
31718 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}};
31719 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}};
31720 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}};
31721 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}};
31722 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}};
31723 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}};
31724 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}};
31725 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}};
31726 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}};
31727 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}};
31728 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}};
31729 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}};
31730 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}};
31731 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}};
31732 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}};
31733 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}};
31734 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}};
31735 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}};
31736 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}};
31737 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}};
31738
31739 static swig_type_info *swig_types_initial[] = {
31740 _swigt__p_wxTextUrlEvent,
31741 _swigt__p_wxBookCtrlEvent,
31742 _swigt__p_wxSizer,
31743 _swigt__p_wxCheckBox,
31744 _swigt__p_wxPyTreeCtrl,
31745 _swigt__p_wxEvent,
31746 _swigt__p_wxGenericDirCtrl,
31747 _swigt__p_bool,
31748 _swigt__p_wxPyTreeItemData,
31749 _swigt__p_wxItemContainer,
31750 _swigt__p_wxDirFilterListCtrl,
31751 _swigt__p_wxPyListCtrl,
31752 _swigt__p_wxStaticLine,
31753 _swigt__p_wxControl,
31754 _swigt__p_wxPyControl,
31755 _swigt__p_wxGauge,
31756 _swigt__p_wxToolBarBase,
31757 _swigt__p_wxFont,
31758 _swigt__p_wxToggleButton,
31759 _swigt__p_wxRadioButton,
31760 _swigt__p_wxChoice,
31761 _swigt__p_wxMemoryDC,
31762 _swigt__p_wxListItemAttr,
31763 _swigt__p_void,
31764 _swigt__p_int,
31765 _swigt__p_wxSize,
31766 _swigt__p_wxDC,
31767 _swigt__p_wxListView,
31768 _swigt__p_wxIcon,
31769 _swigt__p_wxTextCtrl,
31770 _swigt__p_wxNotebook,
31771 _swigt__p_wxNotifyEvent,
31772 _swigt__p_wxArrayString,
31773 _swigt__p_wxListbook,
31774 _swigt__p_wxStaticBitmap,
31775 _swigt__p_wxSlider,
31776 _swigt__p_wxStaticBox,
31777 _swigt__p_wxArrayInt,
31778 _swigt__p_wxContextHelp,
31779 _swigt__p_long,
31780 _swigt__p_wxEvtHandler,
31781 _swigt__p_wxListEvent,
31782 _swigt__p_wxListBox,
31783 _swigt__p_wxCheckListBox,
31784 _swigt__p_wxBookCtrl,
31785 _swigt__p_wxSpinButton,
31786 _swigt__p_wxButton,
31787 _swigt__p_wxBitmapButton,
31788 _swigt__p_wxRect,
31789 _swigt__p_wxContextHelpButton,
31790 _swigt__p_wxRadioBox,
31791 _swigt__p_wxScrollBar,
31792 _swigt__p_char,
31793 _swigt__p_wxTreeItemId,
31794 _swigt__p_wxComboBox,
31795 _swigt__p_wxHelpEvent,
31796 _swigt__p_wxListItem,
31797 _swigt__p_wxNotebookSizer,
31798 _swigt__p_wxSpinEvent,
31799 _swigt__p_wxGenericDragImage,
31800 _swigt__p_wxSpinCtrl,
31801 _swigt__p_wxImageList,
31802 _swigt__p_wxHelpProvider,
31803 _swigt__p_wxTextAttr,
31804 _swigt__p_wxSimpleHelpProvider,
31805 _swigt__p_wxPoint,
31806 _swigt__p_wxListbookEvent,
31807 _swigt__p_wxNotebookEvent,
31808 _swigt__p_wxObject,
31809 _swigt__p_wxCursor,
31810 _swigt__p_wxKeyEvent,
31811 _swigt__p_wxWindow,
31812 _swigt__p_wxString,
31813 _swigt__p_wxBitmap,
31814 _swigt__p_wxTreeEvent,
31815 _swigt__p_wxMouseEvent,
31816 _swigt__p_wxCommandEvent,
31817 _swigt__p_wxStaticText,
31818 _swigt__p_wxControlWithItems,
31819 _swigt__p_wxToolBarToolBase,
31820 _swigt__p_wxColour,
31821 _swigt__p_wxToolBar,
31822 _swigt__p_wxBookCtrlSizer,
31823 _swigt__p_wxValidator,
31824 0
31825 };
31826
31827
31828 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
31829
31830 static swig_const_info swig_const_table[] = {
31831 {0, 0, 0, 0.0, 0, 0}};
31832
31833 #ifdef __cplusplus
31834 }
31835 #endif
31836
31837 #ifdef __cplusplus
31838 extern "C"
31839 #endif
31840 SWIGEXPORT(void) SWIG_init(void) {
31841 static PyObject *SWIG_globals = 0;
31842 static int typeinit = 0;
31843 PyObject *m, *d;
31844 int i;
31845 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
31846 m = Py_InitModule((char *) SWIG_name, SwigMethods);
31847 d = PyModule_GetDict(m);
31848
31849 if (!typeinit) {
31850 for (i = 0; swig_types_initial[i]; i++) {
31851 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
31852 }
31853 typeinit = 1;
31854 }
31855 SWIG_InstallConstants(d,swig_const_table);
31856
31857 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
31858 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
31859 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
31860 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
31861 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
31862 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
31863 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
31864 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
31865 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
31866 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
31867 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
31868 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
31869 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
31870 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
31871 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
31872 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
31873 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
31874 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
31875 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
31876 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
31877 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
31878 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
31879 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
31880 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
31881 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
31882 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
31883 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
31884 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
31885 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
31886 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
31887 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
31888 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
31889 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
31890 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
31891 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
31892 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
31893 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
31894 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
31895 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
31896 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
31897 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
31898 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
31899 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
31900 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
31901 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
31902 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
31903 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
31904 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
31905 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
31906 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
31907 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
31908 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
31909 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
31910 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
31911 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
31912 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
31913 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
31914 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
31915 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
31916 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
31917 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
31918 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
31919 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
31920 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
31921 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
31922 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
31923 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
31924 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
31925 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
31926 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
31927 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
31928 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
31929 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
31930 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
31931 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
31932 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
31933 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
31934 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
31935 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
31936 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
31937 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
31938 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
31939 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
31940 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
31941 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
31942 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
31943 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
31944 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
31945 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
31946 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
31947 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
31948 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
31949 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
31950 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
31951 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
31952 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
31953 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
31954 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
31955 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
31956 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
31957 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
31958 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
31959 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
31960 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
31961 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
31962 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
31963 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
31964 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
31965 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
31966 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
31967 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
31968 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
31969 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
31970 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
31971 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
31972 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
31973 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
31974 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
31975 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
31976 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
31977 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
31978 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
31979 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
31980 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
31981 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
31982 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
31983 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
31984 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
31985 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
31986 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
31987 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
31988 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
31989 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
31990 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
31991 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
31992 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
31993 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
31994 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
31995 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
31996 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
31997 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
31998 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
31999 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
32000 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
32001 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
32002 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
32003 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
32004 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
32005 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
32006 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
32007 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
32008 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
32009 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
32010 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
32011 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
32012 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
32013 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
32014 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
32015 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
32016 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
32017 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
32018 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
32019 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
32020 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
32021 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
32022 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
32023 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
32024 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
32025 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
32026 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
32027 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
32028 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
32029 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
32030 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
32031 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
32032 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
32033 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
32034 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
32035 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
32036 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
32037 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
32038 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
32039 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
32040 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
32041 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
32042 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
32043 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
32044 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
32045 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
32046 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
32047 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
32048 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
32049 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
32050 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
32051 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
32052 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
32053 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
32054 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
32055 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
32056 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
32057 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
32058 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
32059 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
32060 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
32061 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
32062 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
32063 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
32064 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
32065 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
32066 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
32067 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
32068
32069 // Map renamed classes back to their common name for OOR
32070 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
32071
32072 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
32073 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
32074 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
32075 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
32076 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
32077 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
32078 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
32079 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
32080 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
32081 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
32082 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
32083 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
32084 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
32085 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
32086 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
32087 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
32088 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
32089 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
32090 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
32091 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
32092 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
32093 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
32094 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
32095 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
32096 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
32097 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
32098 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
32099 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
32100 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
32101 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
32102 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
32103 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
32104 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
32105 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
32106 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
32107 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
32108 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
32109 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
32110 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
32111 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
32112 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
32113 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
32114 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
32115 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
32116 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
32117 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
32118 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
32119 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
32120 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
32121 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
32122 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
32123 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
32124 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
32125 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
32126 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
32127 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
32128
32129 // Map renamed classes back to their common name for OOR
32130 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
32131 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
32132
32133 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
32134 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
32135 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
32136 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
32137 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
32138 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
32139 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
32140 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
32141 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
32142 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
32143
32144 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
32145
32146 }
32147