]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxTextUrlEvent swig_types[0]
210 #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1]
211 #define SWIGTYPE_p_wxSizer swig_types[2]
212 #define SWIGTYPE_p_wxCheckBox swig_types[3]
213 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4]
214 #define SWIGTYPE_p_wxEvent swig_types[5]
215 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6]
216 #define SWIGTYPE_p_bool swig_types[7]
217 #define SWIGTYPE_p_wxPyTreeItemData swig_types[8]
218 #define SWIGTYPE_p_wxItemContainer swig_types[9]
219 #define SWIGTYPE_p_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 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
390 }
391
392
393 #if INT_MAX != LONG_MAX
394 SWIGSTATICINLINE(int)
395 SWIG_AsInt(PyObject *obj)
396 {
397 return swig_numeric_cast(int,
398 SWIG_CheckLongInRange(SWIG_AsLong(obj),
399 "int", INT_MIN, INT_MAX));
400 }
401 #else
402 #define SWIG_AsInt SWIG_AsLong
403 #endif
404
405
406 SWIGSTATICINLINE(int)
407 SWIG_CheckInt(PyObject* obj)
408 {
409 SWIG_AsInt(obj);
410 if (PyErr_Occurred()) {
411 PyErr_Clear();
412 return 0;
413 } else {
414 return 1;
415 }
416 }
417
418
419 SWIGSTATICINLINE(int)
420 SWIG_CheckLong(PyObject* obj)
421 {
422 SWIG_AsLong(obj);
423 if (PyErr_Occurred()) {
424 PyErr_Clear();
425 return 0;
426 } else {
427 return 1;
428 }
429 }
430
431 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
432
433 SWIGSTATICINLINE(bool)
434 SWIG_AsBool(PyObject *obj)
435 {
436 return PyObject_IsTrue(obj) ? true : false;
437 }
438
439
440 SWIGSTATICINLINE(int)
441 SWIG_CheckBool(PyObject* obj)
442 {
443 SWIG_AsBool(obj);
444 if (PyErr_Occurred()) {
445 PyErr_Clear();
446 return 0;
447 } else {
448 return 1;
449 }
450 }
451
452 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
453 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
454 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
455 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
456 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
457 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
458
459 #include <wx/checklst.h>
460
461
462 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
463 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
464 if (clientData) {
465 wxPyClientData* data = new wxPyClientData(clientData);
466 self->Insert(item, pos, data);
467 } else
468 self->Insert(item, pos);
469 }
470 PyObject *wxListBox_GetSelections(wxListBox *self){
471 wxArrayInt lst;
472 self->GetSelections(lst);
473 PyObject *tup = PyTuple_New(lst.GetCount());
474 for(size_t i=0; i<lst.GetCount(); i++) {
475 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
476 }
477 return tup;
478 }
479 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
480 #ifdef __WXMSW__
481 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
482 self->GetItem(item)->SetTextColour(c);
483 #endif
484 }
485 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
486 #ifdef __WXMSW__
487 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
488 self->GetItem(item)->SetBackgroundColour(c);
489 #endif
490 }
491 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
492 #ifdef __WXMSW__
493 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
494 self->GetItem(item)->SetFont(f);
495 #endif
496 }
497 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
498
499 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
500 PyObject* o2;
501 PyObject* o3;
502
503 if (!target) {
504 target = o;
505 } else if (target == Py_None) {
506 Py_DECREF(Py_None);
507 target = o;
508 } else {
509 if (!PyTuple_Check(target)) {
510 o2 = target;
511 target = PyTuple_New(1);
512 PyTuple_SetItem(target, 0, o2);
513 }
514 o3 = PyTuple_New(1);
515 PyTuple_SetItem(o3, 0, o);
516
517 o2 = target;
518 target = PySequence_Concat(o2, o3);
519 Py_DECREF(o2);
520 Py_DECREF(o3);
521 }
522 return target;
523 }
524
525
526 SWIGSTATICINLINE(unsigned long)
527 SWIG_AsUnsignedLong(PyObject * obj)
528 {
529 if (PyLong_Check(obj)) {
530 return PyLong_AsUnsignedLong(obj);
531 } else {
532 long i = PyInt_AsLong(obj);
533 if ( !PyErr_Occurred() && (i < 0)) {
534 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
535 }
536 return i;
537 }
538 }
539
540
541 SWIGSTATICINLINE(int)
542 SWIG_CheckUnsignedLong(PyObject* obj)
543 {
544 SWIG_AsUnsignedLong(obj);
545 if (PyErr_Occurred()) {
546 PyErr_Clear();
547 return 0;
548 } else {
549 return 1;
550 }
551 }
552
553 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
554 self->AppendText(text);
555 }
556 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
557 return self->GetValue().Mid(from, to - from);
558 }
559 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
560 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
561 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
562 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
563 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
564
565 #include <wx/slider.h>
566
567
568 static const wxString wxPySliderNameStr(wxSliderNameStr);
569 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
570
571 #if !wxUSE_TOGGLEBTN
572 // implement dummy items for platforms that don't have this class
573
574 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
575
576 class wxToggleButton : public wxControl
577 {
578 public:
579 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
580 const wxPoint&, const wxSize&, long,
581 const wxValidator&, const wxString&)
582 { wxPyRaiseNotImplemented(); }
583
584 wxToggleButton()
585 { wxPyRaiseNotImplemented(); }
586 };
587 #endif
588
589 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
590
591 SWIGSTATICINLINE(PyObject* )
592 SWIG_FromUnsignedLong(unsigned long value)
593 {
594 return (value > LONG_MAX) ?
595 PyLong_FromUnsignedLong(value)
596 : PyInt_FromLong(swig_numeric_cast(long,value));
597 }
598
599 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
600 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
601 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
602 if (udata) {
603 Py_INCREF(udata->m_obj);
604 return udata->m_obj;
605 } else {
606 Py_INCREF(Py_None);
607 return Py_None;
608 }
609 }
610 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
611 self->SetClientData(new wxPyUserData(clientData));
612 }
613 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){
614 wxPyUserData* udata = NULL;
615 if (clientData && clientData != Py_None)
616 udata = new wxPyUserData(clientData);
617 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
618 shortHelp, longHelp, udata);
619 }
620 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){
621 wxPyUserData* udata = NULL;
622 if (clientData && clientData != Py_None)
623 udata = new wxPyUserData(clientData);
624 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
625 shortHelp, longHelp, udata);
626 }
627 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
628 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
629 if (udata) {
630 Py_INCREF(udata->m_obj);
631 return udata->m_obj;
632 } else {
633 Py_INCREF(Py_None);
634 return Py_None;
635 }
636 }
637 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
638 self->SetToolClientData(id, new wxPyUserData(clientData));
639 }
640
641 #include <wx/listctrl.h>
642
643
644 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
645 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
646 // Python aware sorting function for wxPyListCtrl
647 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
648 int retval = 0;
649 PyObject* func = (PyObject*)funcPtr;
650 wxPyBeginBlockThreads();
651
652 PyObject* args = Py_BuildValue("(ii)", item1, item2);
653 PyObject* result = PyEval_CallObject(func, args);
654 Py_DECREF(args);
655 if (result) {
656 retval = PyInt_AsLong(result);
657 Py_DECREF(result);
658 }
659
660 wxPyEndBlockThreads();
661 return retval;
662 }
663
664 // C++ Version of a Python aware class
665 class wxPyListCtrl : public wxListCtrl {
666 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
667 public:
668 wxPyListCtrl() : wxListCtrl() {}
669 wxPyListCtrl(wxWindow* parent, wxWindowID id,
670 const wxPoint& pos,
671 const wxSize& size,
672 long style,
673 const wxValidator& validator,
674 const wxString& name) :
675 wxListCtrl(parent, id, pos, size, style, validator, name) {}
676
677 bool Create(wxWindow* parent, wxWindowID id,
678 const wxPoint& pos,
679 const wxSize& size,
680 long style,
681 const wxValidator& validator,
682 const wxString& name) {
683 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
684 }
685
686 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
687 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
688 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
689
690 PYPRIVATE;
691 };
692
693 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
694
695 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
696 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
697 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
698
699 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
700 wxListItem item;
701 item.SetMask( wxLIST_MASK_STATE |
702 wxLIST_MASK_TEXT |
703 wxLIST_MASK_IMAGE |
704 wxLIST_MASK_DATA |
705 wxLIST_SET_ITEM |
706 wxLIST_MASK_WIDTH |
707 wxLIST_MASK_FORMAT
708 );
709 if (self->GetColumn(col, item))
710 return new wxListItem(item);
711 else
712 return NULL;
713 }
714 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
715 wxListItem* info = new wxListItem;
716 info->m_itemId = itemId;
717 info->m_col = col;
718 info->m_mask = 0xFFFF;
719 self->GetItem(*info);
720 return info;
721 }
722 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
723 wxPoint pos;
724 self->GetItemPosition(item, pos);
725 return pos;
726 }
727 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
728 wxRect rect;
729 self->GetItemRect(item, rect, code);
730 return rect;
731 }
732 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
733 if (!PyCallable_Check(func))
734 return False;
735 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
736 }
737 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
738
739 return self;
740
741
742
743 }
744
745 #include <wx/treectrl.h>
746 #include "wx/wxPython/pytree.h"
747
748 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
749 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
750 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
751 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
752 // C++ version of Python aware wxTreeCtrl
753 class wxPyTreeCtrl : public wxTreeCtrl {
754 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
755 public:
756 wxPyTreeCtrl() : wxTreeCtrl() {}
757 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
758 const wxPoint& pos,
759 const wxSize& size,
760 long style,
761 const wxValidator& validator,
762 const wxString& name) :
763 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
764
765 bool Create(wxWindow *parent, wxWindowID id,
766 const wxPoint& pos,
767 const wxSize& size,
768 long style,
769 const wxValidator& validator,
770 const wxString& name) {
771 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
772 }
773
774
775 int OnCompareItems(const wxTreeItemId& item1,
776 const wxTreeItemId& item2) {
777 int rval = 0;
778 bool found;
779 wxPyBeginBlockThreads();
780 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
781 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
782 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
783 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
784 Py_DECREF(o1);
785 Py_DECREF(o2);
786 }
787 wxPyEndBlockThreads();
788 if (! found)
789 rval = wxTreeCtrl::OnCompareItems(item1, item2);
790 return rval;
791 }
792 PYPRIVATE;
793 };
794
795 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
796
797
798
799 #if UINT_MAX < LONG_MAX
800 #define SWIG_FromUnsignedInt SWIG_FromLong
801 #else
802 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
803 #endif
804
805
806 SWIGSTATICINLINE(unsigned long)
807 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
808 unsigned long max_value)
809 {
810 if (!PyErr_Occurred()) {
811 if (value > max_value) {
812 PyObject *err =
813 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
814 value, type, max_value);
815 PyErr_SetObject(PyExc_OverflowError, err);
816 Py_DECREF(err);
817 }
818 }
819 return value;
820 }
821
822
823 #if UINT_MAX != ULONG_MAX
824 SWIGSTATICINLINE(unsigned int)
825 SWIG_AsUnsignedInt(PyObject *obj)
826 {
827 return swig_numeric_cast(unsigned int,
828 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
829 "unsigned int", UINT_MAX));
830 }
831 #else
832 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
833 #endif
834
835
836 SWIGSTATICINLINE(int)
837 SWIG_CheckUnsignedInt(PyObject* obj)
838 {
839 SWIG_AsUnsignedInt(obj);
840 if (PyErr_Occurred()) {
841 PyErr_Clear();
842 return 0;
843 } else {
844 return 1;
845 }
846 }
847
848 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
849 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
850 if (data == NULL) {
851 data = new wxPyTreeItemData();
852 data->SetId(item); // set the id
853 self->SetItemData(item, data);
854 }
855 return data;
856 }
857 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
858 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
859 if (data == NULL) {
860 data = new wxPyTreeItemData();
861 data->SetId(item); // set the id
862 self->SetItemData(item, data);
863 }
864 return data->GetData();
865 }
866 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
867 data->SetId(item); // set the id
868 self->SetItemData(item, data);
869 }
870 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
871 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
872 if (data == NULL) {
873 data = new wxPyTreeItemData(obj);
874 data->SetId(item); // set the id
875 self->SetItemData(item, data);
876 } else
877 data->SetData(obj);
878 }
879 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
880 wxPyBeginBlockThreads();
881 PyObject* rval = PyList_New(0);
882 wxArrayTreeItemIds array;
883 size_t num, x;
884 num = self->GetSelections(array);
885 for (x=0; x < num; x++) {
886 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
887 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
888 PyList_Append(rval, item);
889 }
890 wxPyEndBlockThreads();
891 return rval;
892 }
893 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
894 void* cookie = 0;
895 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
896 wxPyBeginBlockThreads();
897 PyObject* tup = PyTuple_New(2);
898 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
899 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
900 wxPyEndBlockThreads();
901 return tup;
902 }
903 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
904 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
905 wxPyBeginBlockThreads();
906 PyObject* tup = PyTuple_New(2);
907 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
908 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
909 wxPyEndBlockThreads();
910 return tup;
911 }
912 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
913 wxRect rect;
914 if (self->GetBoundingRect(item, rect, textOnly)) {
915 wxPyBeginBlockThreads();
916 wxRect* r = new wxRect(rect);
917 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
918 wxPyEndBlockThreads();
919 return val;
920 }
921 else
922 RETURN_NONE();
923 }
924 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
925 // C++ version of Python aware wxControl
926 class wxPyControl : public wxControl
927 {
928 DECLARE_DYNAMIC_CLASS(wxPyControl)
929 public:
930 wxPyControl() : wxControl() {}
931 wxPyControl(wxWindow* parent, const wxWindowID id,
932 const wxPoint& pos = wxDefaultPosition,
933 const wxSize& size = wxDefaultSize,
934 long style = 0,
935 const wxValidator& validator=wxDefaultValidator,
936 const wxString& name = wxPyControlNameStr)
937 : wxControl(parent, id, pos, size, style, validator, name) {}
938
939
940 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
941 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
942 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
943 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
944
945 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
946 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
947 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
948
949 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
950 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
951
952 DEC_PYCALLBACK__(InitDialog);
953 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
954 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
955 DEC_PYCALLBACK_BOOL_(Validate);
956
957 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
958 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
959 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
960
961 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
962 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
963
964 DEC_PYCALLBACK_BOOL_(ShouldInheritColours);
965
966 PYPRIVATE;
967 };
968
969 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
970
971 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
972 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
973 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
974 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
975
976 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
977 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
978 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
979
980 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
981 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
982
983 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
984 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
985 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
986 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
987
988 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
989 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
990 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
991
992 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
993 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
994
995 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours);
996
997
998
999 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1000
1001 #include <wx/generic/dragimgg.h>
1002
1003 #ifdef __cplusplus
1004 extern "C" {
1005 #endif
1006 static int _wrap_ButtonNameStr_set(PyObject *_val) {
1007 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1008 return 1;
1009 }
1010
1011
1012 static PyObject *_wrap_ButtonNameStr_get() {
1013 PyObject *pyobj;
1014
1015 {
1016 #if wxUSE_UNICODE
1017 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1018 #else
1019 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1020 #endif
1021 }
1022 return pyobj;
1023 }
1024
1025
1026 static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
1027 PyObject *resultobj;
1028 wxWindow *arg1 = (wxWindow *) 0 ;
1029 int arg2 ;
1030 wxString *arg3 = 0 ;
1031 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1032 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1033 wxSize const &arg5_defvalue = wxDefaultSize ;
1034 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1035 long arg6 = (long) 0 ;
1036 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1037 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1038 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1039 wxString *arg8 = (wxString *) &arg8_defvalue ;
1040 wxButton *result;
1041 bool temp3 = False ;
1042 wxPoint temp4 ;
1043 wxSize temp5 ;
1044 bool temp8 = False ;
1045 PyObject * obj0 = 0 ;
1046 PyObject * obj1 = 0 ;
1047 PyObject * obj2 = 0 ;
1048 PyObject * obj3 = 0 ;
1049 PyObject * obj4 = 0 ;
1050 PyObject * obj5 = 0 ;
1051 PyObject * obj6 = 0 ;
1052 PyObject * obj7 = 0 ;
1053 char *kwnames[] = {
1054 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1055 };
1056
1057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1060 arg2 = (int) SWIG_AsInt(obj1);
1061 if (PyErr_Occurred()) SWIG_fail;
1062 {
1063 arg3 = wxString_in_helper(obj2);
1064 if (arg3 == NULL) SWIG_fail;
1065 temp3 = True;
1066 }
1067 if (obj3) {
1068 {
1069 arg4 = &temp4;
1070 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1071 }
1072 }
1073 if (obj4) {
1074 {
1075 arg5 = &temp5;
1076 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1077 }
1078 }
1079 if (obj5) {
1080 arg6 = (long) SWIG_AsLong(obj5);
1081 if (PyErr_Occurred()) SWIG_fail;
1082 }
1083 if (obj6) {
1084 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1085 SWIG_POINTER_EXCEPTION | 0)) == -1)
1086 SWIG_fail;
1087 if (arg7 == NULL) {
1088 PyErr_SetString(PyExc_TypeError,"null reference");
1089 SWIG_fail;
1090 }
1091 }
1092 if (obj7) {
1093 {
1094 arg8 = wxString_in_helper(obj7);
1095 if (arg8 == NULL) SWIG_fail;
1096 temp8 = True;
1097 }
1098 }
1099 {
1100 PyThreadState* __tstate = wxPyBeginAllowThreads();
1101 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1102
1103 wxPyEndAllowThreads(__tstate);
1104 if (PyErr_Occurred()) SWIG_fail;
1105 }
1106 {
1107 resultobj = wxPyMake_wxObject(result);
1108 }
1109 {
1110 if (temp3)
1111 delete arg3;
1112 }
1113 {
1114 if (temp8)
1115 delete arg8;
1116 }
1117 return resultobj;
1118 fail:
1119 {
1120 if (temp3)
1121 delete arg3;
1122 }
1123 {
1124 if (temp8)
1125 delete arg8;
1126 }
1127 return NULL;
1128 }
1129
1130
1131 static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1132 PyObject *resultobj;
1133 wxButton *result;
1134 char *kwnames[] = {
1135 NULL
1136 };
1137
1138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1139 {
1140 PyThreadState* __tstate = wxPyBeginAllowThreads();
1141 result = (wxButton *)new wxButton();
1142
1143 wxPyEndAllowThreads(__tstate);
1144 if (PyErr_Occurred()) SWIG_fail;
1145 }
1146 {
1147 resultobj = wxPyMake_wxObject(result);
1148 }
1149 return resultobj;
1150 fail:
1151 return NULL;
1152 }
1153
1154
1155 static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1156 PyObject *resultobj;
1157 wxButton *arg1 = (wxButton *) 0 ;
1158 wxWindow *arg2 = (wxWindow *) 0 ;
1159 int arg3 ;
1160 wxString *arg4 = 0 ;
1161 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1162 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1163 wxSize const &arg6_defvalue = wxDefaultSize ;
1164 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1165 long arg7 = (long) 0 ;
1166 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1167 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1168 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1169 wxString *arg9 = (wxString *) &arg9_defvalue ;
1170 bool result;
1171 bool temp4 = False ;
1172 wxPoint temp5 ;
1173 wxSize temp6 ;
1174 bool temp9 = False ;
1175 PyObject * obj0 = 0 ;
1176 PyObject * obj1 = 0 ;
1177 PyObject * obj2 = 0 ;
1178 PyObject * obj3 = 0 ;
1179 PyObject * obj4 = 0 ;
1180 PyObject * obj5 = 0 ;
1181 PyObject * obj6 = 0 ;
1182 PyObject * obj7 = 0 ;
1183 PyObject * obj8 = 0 ;
1184 char *kwnames[] = {
1185 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1186 };
1187
1188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1191 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1193 arg3 = (int) SWIG_AsInt(obj2);
1194 if (PyErr_Occurred()) SWIG_fail;
1195 {
1196 arg4 = wxString_in_helper(obj3);
1197 if (arg4 == NULL) SWIG_fail;
1198 temp4 = True;
1199 }
1200 if (obj4) {
1201 {
1202 arg5 = &temp5;
1203 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1204 }
1205 }
1206 if (obj5) {
1207 {
1208 arg6 = &temp6;
1209 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1210 }
1211 }
1212 if (obj6) {
1213 arg7 = (long) SWIG_AsLong(obj6);
1214 if (PyErr_Occurred()) SWIG_fail;
1215 }
1216 if (obj7) {
1217 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1218 SWIG_POINTER_EXCEPTION | 0)) == -1)
1219 SWIG_fail;
1220 if (arg8 == NULL) {
1221 PyErr_SetString(PyExc_TypeError,"null reference");
1222 SWIG_fail;
1223 }
1224 }
1225 if (obj8) {
1226 {
1227 arg9 = wxString_in_helper(obj8);
1228 if (arg9 == NULL) SWIG_fail;
1229 temp9 = True;
1230 }
1231 }
1232 {
1233 PyThreadState* __tstate = wxPyBeginAllowThreads();
1234 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1235
1236 wxPyEndAllowThreads(__tstate);
1237 if (PyErr_Occurred()) SWIG_fail;
1238 }
1239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1240 {
1241 if (temp4)
1242 delete arg4;
1243 }
1244 {
1245 if (temp9)
1246 delete arg9;
1247 }
1248 return resultobj;
1249 fail:
1250 {
1251 if (temp4)
1252 delete arg4;
1253 }
1254 {
1255 if (temp9)
1256 delete arg9;
1257 }
1258 return NULL;
1259 }
1260
1261
1262 static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1263 PyObject *resultobj;
1264 wxButton *arg1 = (wxButton *) 0 ;
1265 PyObject * obj0 = 0 ;
1266 char *kwnames[] = {
1267 (char *) "self", NULL
1268 };
1269
1270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1273 {
1274 PyThreadState* __tstate = wxPyBeginAllowThreads();
1275 (arg1)->SetDefault();
1276
1277 wxPyEndAllowThreads(__tstate);
1278 if (PyErr_Occurred()) SWIG_fail;
1279 }
1280 Py_INCREF(Py_None); resultobj = Py_None;
1281 return resultobj;
1282 fail:
1283 return NULL;
1284 }
1285
1286
1287 static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1288 PyObject *resultobj;
1289 wxSize result;
1290 char *kwnames[] = {
1291 NULL
1292 };
1293
1294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1295 {
1296 PyThreadState* __tstate = wxPyBeginAllowThreads();
1297 result = wxButton::GetDefaultSize();
1298
1299 wxPyEndAllowThreads(__tstate);
1300 if (PyErr_Occurred()) SWIG_fail;
1301 }
1302 {
1303 wxSize * resultptr;
1304 resultptr = new wxSize((wxSize &) result);
1305 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1306 }
1307 return resultobj;
1308 fail:
1309 return NULL;
1310 }
1311
1312
1313 static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1314 PyObject *obj;
1315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1316 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1317 Py_INCREF(obj);
1318 return Py_BuildValue((char *)"");
1319 }
1320 static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1321 PyObject *resultobj;
1322 wxWindow *arg1 = (wxWindow *) 0 ;
1323 int arg2 ;
1324 wxBitmap *arg3 = 0 ;
1325 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1326 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1327 wxSize const &arg5_defvalue = wxDefaultSize ;
1328 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1329 long arg6 = (long) wxBU_AUTODRAW ;
1330 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1331 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1332 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1333 wxString *arg8 = (wxString *) &arg8_defvalue ;
1334 wxBitmapButton *result;
1335 wxPoint temp4 ;
1336 wxSize temp5 ;
1337 bool temp8 = False ;
1338 PyObject * obj0 = 0 ;
1339 PyObject * obj1 = 0 ;
1340 PyObject * obj2 = 0 ;
1341 PyObject * obj3 = 0 ;
1342 PyObject * obj4 = 0 ;
1343 PyObject * obj5 = 0 ;
1344 PyObject * obj6 = 0 ;
1345 PyObject * obj7 = 0 ;
1346 char *kwnames[] = {
1347 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1348 };
1349
1350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1353 arg2 = (int) SWIG_AsInt(obj1);
1354 if (PyErr_Occurred()) SWIG_fail;
1355 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1356 SWIG_POINTER_EXCEPTION | 0)) == -1)
1357 SWIG_fail;
1358 if (arg3 == NULL) {
1359 PyErr_SetString(PyExc_TypeError,"null reference");
1360 SWIG_fail;
1361 }
1362 if (obj3) {
1363 {
1364 arg4 = &temp4;
1365 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1366 }
1367 }
1368 if (obj4) {
1369 {
1370 arg5 = &temp5;
1371 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1372 }
1373 }
1374 if (obj5) {
1375 arg6 = (long) SWIG_AsLong(obj5);
1376 if (PyErr_Occurred()) SWIG_fail;
1377 }
1378 if (obj6) {
1379 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1380 SWIG_POINTER_EXCEPTION | 0)) == -1)
1381 SWIG_fail;
1382 if (arg7 == NULL) {
1383 PyErr_SetString(PyExc_TypeError,"null reference");
1384 SWIG_fail;
1385 }
1386 }
1387 if (obj7) {
1388 {
1389 arg8 = wxString_in_helper(obj7);
1390 if (arg8 == NULL) SWIG_fail;
1391 temp8 = True;
1392 }
1393 }
1394 {
1395 PyThreadState* __tstate = wxPyBeginAllowThreads();
1396 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1397
1398 wxPyEndAllowThreads(__tstate);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 }
1401 {
1402 resultobj = wxPyMake_wxObject(result);
1403 }
1404 {
1405 if (temp8)
1406 delete arg8;
1407 }
1408 return resultobj;
1409 fail:
1410 {
1411 if (temp8)
1412 delete arg8;
1413 }
1414 return NULL;
1415 }
1416
1417
1418 static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1419 PyObject *resultobj;
1420 wxBitmapButton *result;
1421 char *kwnames[] = {
1422 NULL
1423 };
1424
1425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1426 {
1427 PyThreadState* __tstate = wxPyBeginAllowThreads();
1428 result = (wxBitmapButton *)new wxBitmapButton();
1429
1430 wxPyEndAllowThreads(__tstate);
1431 if (PyErr_Occurred()) SWIG_fail;
1432 }
1433 {
1434 resultobj = wxPyMake_wxObject(result);
1435 }
1436 return resultobj;
1437 fail:
1438 return NULL;
1439 }
1440
1441
1442 static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1443 PyObject *resultobj;
1444 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1445 wxWindow *arg2 = (wxWindow *) 0 ;
1446 int arg3 ;
1447 wxBitmap *arg4 = 0 ;
1448 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1449 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1450 wxSize const &arg6_defvalue = wxDefaultSize ;
1451 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1452 long arg7 = (long) wxBU_AUTODRAW ;
1453 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1454 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1455 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1456 wxString *arg9 = (wxString *) &arg9_defvalue ;
1457 bool result;
1458 wxPoint temp5 ;
1459 wxSize temp6 ;
1460 bool temp9 = False ;
1461 PyObject * obj0 = 0 ;
1462 PyObject * obj1 = 0 ;
1463 PyObject * obj2 = 0 ;
1464 PyObject * obj3 = 0 ;
1465 PyObject * obj4 = 0 ;
1466 PyObject * obj5 = 0 ;
1467 PyObject * obj6 = 0 ;
1468 PyObject * obj7 = 0 ;
1469 PyObject * obj8 = 0 ;
1470 char *kwnames[] = {
1471 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1472 };
1473
1474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1477 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1479 arg3 = (int) SWIG_AsInt(obj2);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1482 SWIG_POINTER_EXCEPTION | 0)) == -1)
1483 SWIG_fail;
1484 if (arg4 == NULL) {
1485 PyErr_SetString(PyExc_TypeError,"null reference");
1486 SWIG_fail;
1487 }
1488 if (obj4) {
1489 {
1490 arg5 = &temp5;
1491 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1492 }
1493 }
1494 if (obj5) {
1495 {
1496 arg6 = &temp6;
1497 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1498 }
1499 }
1500 if (obj6) {
1501 arg7 = (long) SWIG_AsLong(obj6);
1502 if (PyErr_Occurred()) SWIG_fail;
1503 }
1504 if (obj7) {
1505 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1506 SWIG_POINTER_EXCEPTION | 0)) == -1)
1507 SWIG_fail;
1508 if (arg8 == NULL) {
1509 PyErr_SetString(PyExc_TypeError,"null reference");
1510 SWIG_fail;
1511 }
1512 }
1513 if (obj8) {
1514 {
1515 arg9 = wxString_in_helper(obj8);
1516 if (arg9 == NULL) SWIG_fail;
1517 temp9 = True;
1518 }
1519 }
1520 {
1521 PyThreadState* __tstate = wxPyBeginAllowThreads();
1522 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1523
1524 wxPyEndAllowThreads(__tstate);
1525 if (PyErr_Occurred()) SWIG_fail;
1526 }
1527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1528 {
1529 if (temp9)
1530 delete arg9;
1531 }
1532 return resultobj;
1533 fail:
1534 {
1535 if (temp9)
1536 delete arg9;
1537 }
1538 return NULL;
1539 }
1540
1541
1542 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1543 PyObject *resultobj;
1544 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1545 wxBitmap result;
1546 PyObject * obj0 = 0 ;
1547 char *kwnames[] = {
1548 (char *) "self", NULL
1549 };
1550
1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1554 {
1555 PyThreadState* __tstate = wxPyBeginAllowThreads();
1556 result = (arg1)->GetBitmapLabel();
1557
1558 wxPyEndAllowThreads(__tstate);
1559 if (PyErr_Occurred()) SWIG_fail;
1560 }
1561 {
1562 wxBitmap * resultptr;
1563 resultptr = new wxBitmap((wxBitmap &) result);
1564 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1565 }
1566 return resultobj;
1567 fail:
1568 return NULL;
1569 }
1570
1571
1572 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject *resultobj;
1574 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1575 wxBitmap result;
1576 PyObject * obj0 = 0 ;
1577 char *kwnames[] = {
1578 (char *) "self", NULL
1579 };
1580
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1584 {
1585 PyThreadState* __tstate = wxPyBeginAllowThreads();
1586 result = (arg1)->GetBitmapDisabled();
1587
1588 wxPyEndAllowThreads(__tstate);
1589 if (PyErr_Occurred()) SWIG_fail;
1590 }
1591 {
1592 wxBitmap * resultptr;
1593 resultptr = new wxBitmap((wxBitmap &) result);
1594 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1595 }
1596 return resultobj;
1597 fail:
1598 return NULL;
1599 }
1600
1601
1602 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1603 PyObject *resultobj;
1604 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1605 wxBitmap result;
1606 PyObject * obj0 = 0 ;
1607 char *kwnames[] = {
1608 (char *) "self", NULL
1609 };
1610
1611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1614 {
1615 PyThreadState* __tstate = wxPyBeginAllowThreads();
1616 result = (arg1)->GetBitmapFocus();
1617
1618 wxPyEndAllowThreads(__tstate);
1619 if (PyErr_Occurred()) SWIG_fail;
1620 }
1621 {
1622 wxBitmap * resultptr;
1623 resultptr = new wxBitmap((wxBitmap &) result);
1624 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1625 }
1626 return resultobj;
1627 fail:
1628 return NULL;
1629 }
1630
1631
1632 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1633 PyObject *resultobj;
1634 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1635 wxBitmap result;
1636 PyObject * obj0 = 0 ;
1637 char *kwnames[] = {
1638 (char *) "self", NULL
1639 };
1640
1641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1644 {
1645 PyThreadState* __tstate = wxPyBeginAllowThreads();
1646 result = (arg1)->GetBitmapSelected();
1647
1648 wxPyEndAllowThreads(__tstate);
1649 if (PyErr_Occurred()) SWIG_fail;
1650 }
1651 {
1652 wxBitmap * resultptr;
1653 resultptr = new wxBitmap((wxBitmap &) result);
1654 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1655 }
1656 return resultobj;
1657 fail:
1658 return NULL;
1659 }
1660
1661
1662 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1663 PyObject *resultobj;
1664 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1665 wxBitmap *arg2 = 0 ;
1666 PyObject * obj0 = 0 ;
1667 PyObject * obj1 = 0 ;
1668 char *kwnames[] = {
1669 (char *) "self",(char *) "bitmap", NULL
1670 };
1671
1672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1675 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1676 SWIG_POINTER_EXCEPTION | 0)) == -1)
1677 SWIG_fail;
1678 if (arg2 == NULL) {
1679 PyErr_SetString(PyExc_TypeError,"null reference");
1680 SWIG_fail;
1681 }
1682 {
1683 PyThreadState* __tstate = wxPyBeginAllowThreads();
1684 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1685
1686 wxPyEndAllowThreads(__tstate);
1687 if (PyErr_Occurred()) SWIG_fail;
1688 }
1689 Py_INCREF(Py_None); resultobj = Py_None;
1690 return resultobj;
1691 fail:
1692 return NULL;
1693 }
1694
1695
1696 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1697 PyObject *resultobj;
1698 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1699 wxBitmap *arg2 = 0 ;
1700 PyObject * obj0 = 0 ;
1701 PyObject * obj1 = 0 ;
1702 char *kwnames[] = {
1703 (char *) "self",(char *) "bitmap", NULL
1704 };
1705
1706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1709 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1710 SWIG_POINTER_EXCEPTION | 0)) == -1)
1711 SWIG_fail;
1712 if (arg2 == NULL) {
1713 PyErr_SetString(PyExc_TypeError,"null reference");
1714 SWIG_fail;
1715 }
1716 {
1717 PyThreadState* __tstate = wxPyBeginAllowThreads();
1718 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1719
1720 wxPyEndAllowThreads(__tstate);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 }
1723 Py_INCREF(Py_None); resultobj = Py_None;
1724 return resultobj;
1725 fail:
1726 return NULL;
1727 }
1728
1729
1730 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1731 PyObject *resultobj;
1732 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1733 wxBitmap *arg2 = 0 ;
1734 PyObject * obj0 = 0 ;
1735 PyObject * obj1 = 0 ;
1736 char *kwnames[] = {
1737 (char *) "self",(char *) "bitmap", NULL
1738 };
1739
1740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1743 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1744 SWIG_POINTER_EXCEPTION | 0)) == -1)
1745 SWIG_fail;
1746 if (arg2 == NULL) {
1747 PyErr_SetString(PyExc_TypeError,"null reference");
1748 SWIG_fail;
1749 }
1750 {
1751 PyThreadState* __tstate = wxPyBeginAllowThreads();
1752 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1753
1754 wxPyEndAllowThreads(__tstate);
1755 if (PyErr_Occurred()) SWIG_fail;
1756 }
1757 Py_INCREF(Py_None); resultobj = Py_None;
1758 return resultobj;
1759 fail:
1760 return NULL;
1761 }
1762
1763
1764 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1765 PyObject *resultobj;
1766 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1767 wxBitmap *arg2 = 0 ;
1768 PyObject * obj0 = 0 ;
1769 PyObject * obj1 = 0 ;
1770 char *kwnames[] = {
1771 (char *) "self",(char *) "bitmap", NULL
1772 };
1773
1774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1777 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1778 SWIG_POINTER_EXCEPTION | 0)) == -1)
1779 SWIG_fail;
1780 if (arg2 == NULL) {
1781 PyErr_SetString(PyExc_TypeError,"null reference");
1782 SWIG_fail;
1783 }
1784 {
1785 PyThreadState* __tstate = wxPyBeginAllowThreads();
1786 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1787
1788 wxPyEndAllowThreads(__tstate);
1789 if (PyErr_Occurred()) SWIG_fail;
1790 }
1791 Py_INCREF(Py_None); resultobj = Py_None;
1792 return resultobj;
1793 fail:
1794 return NULL;
1795 }
1796
1797
1798 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1799 PyObject *resultobj;
1800 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1801 int arg2 ;
1802 int arg3 ;
1803 PyObject * obj0 = 0 ;
1804 PyObject * obj1 = 0 ;
1805 PyObject * obj2 = 0 ;
1806 char *kwnames[] = {
1807 (char *) "self",(char *) "x",(char *) "y", NULL
1808 };
1809
1810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1813 arg2 = (int) SWIG_AsInt(obj1);
1814 if (PyErr_Occurred()) SWIG_fail;
1815 arg3 = (int) SWIG_AsInt(obj2);
1816 if (PyErr_Occurred()) SWIG_fail;
1817 {
1818 PyThreadState* __tstate = wxPyBeginAllowThreads();
1819 (arg1)->SetMargins(arg2,arg3);
1820
1821 wxPyEndAllowThreads(__tstate);
1822 if (PyErr_Occurred()) SWIG_fail;
1823 }
1824 Py_INCREF(Py_None); resultobj = Py_None;
1825 return resultobj;
1826 fail:
1827 return NULL;
1828 }
1829
1830
1831 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1832 PyObject *resultobj;
1833 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1834 int result;
1835 PyObject * obj0 = 0 ;
1836 char *kwnames[] = {
1837 (char *) "self", NULL
1838 };
1839
1840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1843 {
1844 PyThreadState* __tstate = wxPyBeginAllowThreads();
1845 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1846
1847 wxPyEndAllowThreads(__tstate);
1848 if (PyErr_Occurred()) SWIG_fail;
1849 }
1850 resultobj = SWIG_FromInt((int)result);
1851 return resultobj;
1852 fail:
1853 return NULL;
1854 }
1855
1856
1857 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1858 PyObject *resultobj;
1859 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1860 int result;
1861 PyObject * obj0 = 0 ;
1862 char *kwnames[] = {
1863 (char *) "self", NULL
1864 };
1865
1866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1869 {
1870 PyThreadState* __tstate = wxPyBeginAllowThreads();
1871 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1872
1873 wxPyEndAllowThreads(__tstate);
1874 if (PyErr_Occurred()) SWIG_fail;
1875 }
1876 resultobj = SWIG_FromInt((int)result);
1877 return resultobj;
1878 fail:
1879 return NULL;
1880 }
1881
1882
1883 static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1884 PyObject *obj;
1885 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1886 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1887 Py_INCREF(obj);
1888 return Py_BuildValue((char *)"");
1889 }
1890 static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1891 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1892 return 1;
1893 }
1894
1895
1896 static PyObject *_wrap_CheckBoxNameStr_get() {
1897 PyObject *pyobj;
1898
1899 {
1900 #if wxUSE_UNICODE
1901 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1902 #else
1903 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1904 #endif
1905 }
1906 return pyobj;
1907 }
1908
1909
1910 static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1911 PyObject *resultobj;
1912 wxWindow *arg1 = (wxWindow *) 0 ;
1913 int arg2 ;
1914 wxString *arg3 = 0 ;
1915 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1916 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1917 wxSize const &arg5_defvalue = wxDefaultSize ;
1918 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1919 long arg6 = (long) 0 ;
1920 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1921 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1922 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1923 wxString *arg8 = (wxString *) &arg8_defvalue ;
1924 wxCheckBox *result;
1925 bool temp3 = False ;
1926 wxPoint temp4 ;
1927 wxSize temp5 ;
1928 bool temp8 = False ;
1929 PyObject * obj0 = 0 ;
1930 PyObject * obj1 = 0 ;
1931 PyObject * obj2 = 0 ;
1932 PyObject * obj3 = 0 ;
1933 PyObject * obj4 = 0 ;
1934 PyObject * obj5 = 0 ;
1935 PyObject * obj6 = 0 ;
1936 PyObject * obj7 = 0 ;
1937 char *kwnames[] = {
1938 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1939 };
1940
1941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1944 arg2 = (int) SWIG_AsInt(obj1);
1945 if (PyErr_Occurred()) SWIG_fail;
1946 {
1947 arg3 = wxString_in_helper(obj2);
1948 if (arg3 == NULL) SWIG_fail;
1949 temp3 = True;
1950 }
1951 if (obj3) {
1952 {
1953 arg4 = &temp4;
1954 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1955 }
1956 }
1957 if (obj4) {
1958 {
1959 arg5 = &temp5;
1960 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1961 }
1962 }
1963 if (obj5) {
1964 arg6 = (long) SWIG_AsLong(obj5);
1965 if (PyErr_Occurred()) SWIG_fail;
1966 }
1967 if (obj6) {
1968 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1969 SWIG_POINTER_EXCEPTION | 0)) == -1)
1970 SWIG_fail;
1971 if (arg7 == NULL) {
1972 PyErr_SetString(PyExc_TypeError,"null reference");
1973 SWIG_fail;
1974 }
1975 }
1976 if (obj7) {
1977 {
1978 arg8 = wxString_in_helper(obj7);
1979 if (arg8 == NULL) SWIG_fail;
1980 temp8 = True;
1981 }
1982 }
1983 {
1984 PyThreadState* __tstate = wxPyBeginAllowThreads();
1985 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1986
1987 wxPyEndAllowThreads(__tstate);
1988 if (PyErr_Occurred()) SWIG_fail;
1989 }
1990 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
1991 {
1992 if (temp3)
1993 delete arg3;
1994 }
1995 {
1996 if (temp8)
1997 delete arg8;
1998 }
1999 return resultobj;
2000 fail:
2001 {
2002 if (temp3)
2003 delete arg3;
2004 }
2005 {
2006 if (temp8)
2007 delete arg8;
2008 }
2009 return NULL;
2010 }
2011
2012
2013 static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2014 PyObject *resultobj;
2015 wxCheckBox *result;
2016 char *kwnames[] = {
2017 NULL
2018 };
2019
2020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2021 {
2022 PyThreadState* __tstate = wxPyBeginAllowThreads();
2023 result = (wxCheckBox *)new wxCheckBox();
2024
2025 wxPyEndAllowThreads(__tstate);
2026 if (PyErr_Occurred()) SWIG_fail;
2027 }
2028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2029 return resultobj;
2030 fail:
2031 return NULL;
2032 }
2033
2034
2035 static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2036 PyObject *resultobj;
2037 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2038 wxWindow *arg2 = (wxWindow *) 0 ;
2039 int arg3 ;
2040 wxString *arg4 = 0 ;
2041 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2042 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2043 wxSize const &arg6_defvalue = wxDefaultSize ;
2044 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2045 long arg7 = (long) 0 ;
2046 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2047 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2048 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2049 wxString *arg9 = (wxString *) &arg9_defvalue ;
2050 bool result;
2051 bool temp4 = False ;
2052 wxPoint temp5 ;
2053 wxSize temp6 ;
2054 bool temp9 = False ;
2055 PyObject * obj0 = 0 ;
2056 PyObject * obj1 = 0 ;
2057 PyObject * obj2 = 0 ;
2058 PyObject * obj3 = 0 ;
2059 PyObject * obj4 = 0 ;
2060 PyObject * obj5 = 0 ;
2061 PyObject * obj6 = 0 ;
2062 PyObject * obj7 = 0 ;
2063 PyObject * obj8 = 0 ;
2064 char *kwnames[] = {
2065 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2066 };
2067
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2071 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2073 arg3 = (int) SWIG_AsInt(obj2);
2074 if (PyErr_Occurred()) SWIG_fail;
2075 {
2076 arg4 = wxString_in_helper(obj3);
2077 if (arg4 == NULL) SWIG_fail;
2078 temp4 = True;
2079 }
2080 if (obj4) {
2081 {
2082 arg5 = &temp5;
2083 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2084 }
2085 }
2086 if (obj5) {
2087 {
2088 arg6 = &temp6;
2089 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2090 }
2091 }
2092 if (obj6) {
2093 arg7 = (long) SWIG_AsLong(obj6);
2094 if (PyErr_Occurred()) SWIG_fail;
2095 }
2096 if (obj7) {
2097 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2098 SWIG_POINTER_EXCEPTION | 0)) == -1)
2099 SWIG_fail;
2100 if (arg8 == NULL) {
2101 PyErr_SetString(PyExc_TypeError,"null reference");
2102 SWIG_fail;
2103 }
2104 }
2105 if (obj8) {
2106 {
2107 arg9 = wxString_in_helper(obj8);
2108 if (arg9 == NULL) SWIG_fail;
2109 temp9 = True;
2110 }
2111 }
2112 {
2113 PyThreadState* __tstate = wxPyBeginAllowThreads();
2114 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2115
2116 wxPyEndAllowThreads(__tstate);
2117 if (PyErr_Occurred()) SWIG_fail;
2118 }
2119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2120 {
2121 if (temp4)
2122 delete arg4;
2123 }
2124 {
2125 if (temp9)
2126 delete arg9;
2127 }
2128 return resultobj;
2129 fail:
2130 {
2131 if (temp4)
2132 delete arg4;
2133 }
2134 {
2135 if (temp9)
2136 delete arg9;
2137 }
2138 return NULL;
2139 }
2140
2141
2142 static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2143 PyObject *resultobj;
2144 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2145 bool result;
2146 PyObject * obj0 = 0 ;
2147 char *kwnames[] = {
2148 (char *) "self", NULL
2149 };
2150
2151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2154 {
2155 PyThreadState* __tstate = wxPyBeginAllowThreads();
2156 result = (bool)(arg1)->GetValue();
2157
2158 wxPyEndAllowThreads(__tstate);
2159 if (PyErr_Occurred()) SWIG_fail;
2160 }
2161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2162 return resultobj;
2163 fail:
2164 return NULL;
2165 }
2166
2167
2168 static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2169 PyObject *resultobj;
2170 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2171 bool result;
2172 PyObject * obj0 = 0 ;
2173 char *kwnames[] = {
2174 (char *) "self", NULL
2175 };
2176
2177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2180 {
2181 PyThreadState* __tstate = wxPyBeginAllowThreads();
2182 result = (bool)(arg1)->IsChecked();
2183
2184 wxPyEndAllowThreads(__tstate);
2185 if (PyErr_Occurred()) SWIG_fail;
2186 }
2187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2188 return resultobj;
2189 fail:
2190 return NULL;
2191 }
2192
2193
2194 static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2195 PyObject *resultobj;
2196 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2197 bool arg2 ;
2198 PyObject * obj0 = 0 ;
2199 PyObject * obj1 = 0 ;
2200 char *kwnames[] = {
2201 (char *) "self",(char *) "state", NULL
2202 };
2203
2204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2207 arg2 = (bool const) SWIG_AsBool(obj1);
2208 if (PyErr_Occurred()) SWIG_fail;
2209 {
2210 PyThreadState* __tstate = wxPyBeginAllowThreads();
2211 (arg1)->SetValue(arg2);
2212
2213 wxPyEndAllowThreads(__tstate);
2214 if (PyErr_Occurred()) SWIG_fail;
2215 }
2216 Py_INCREF(Py_None); resultobj = Py_None;
2217 return resultobj;
2218 fail:
2219 return NULL;
2220 }
2221
2222
2223 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2224 PyObject *resultobj;
2225 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2226 int result;
2227 PyObject * obj0 = 0 ;
2228 char *kwnames[] = {
2229 (char *) "self", NULL
2230 };
2231
2232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2235 {
2236 PyThreadState* __tstate = wxPyBeginAllowThreads();
2237 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2238
2239 wxPyEndAllowThreads(__tstate);
2240 if (PyErr_Occurred()) SWIG_fail;
2241 }
2242 resultobj = SWIG_FromInt((int)result);
2243 return resultobj;
2244 fail:
2245 return NULL;
2246 }
2247
2248
2249 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2250 PyObject *resultobj;
2251 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2252 int arg2 ;
2253 PyObject * obj0 = 0 ;
2254 PyObject * obj1 = 0 ;
2255 char *kwnames[] = {
2256 (char *) "self",(char *) "state", NULL
2257 };
2258
2259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2262 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2263 if (PyErr_Occurred()) SWIG_fail;
2264 {
2265 PyThreadState* __tstate = wxPyBeginAllowThreads();
2266 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2267
2268 wxPyEndAllowThreads(__tstate);
2269 if (PyErr_Occurred()) SWIG_fail;
2270 }
2271 Py_INCREF(Py_None); resultobj = Py_None;
2272 return resultobj;
2273 fail:
2274 return NULL;
2275 }
2276
2277
2278 static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2279 PyObject *resultobj;
2280 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2281 bool result;
2282 PyObject * obj0 = 0 ;
2283 char *kwnames[] = {
2284 (char *) "self", NULL
2285 };
2286
2287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2290 {
2291 PyThreadState* __tstate = wxPyBeginAllowThreads();
2292 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2293
2294 wxPyEndAllowThreads(__tstate);
2295 if (PyErr_Occurred()) SWIG_fail;
2296 }
2297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2298 return resultobj;
2299 fail:
2300 return NULL;
2301 }
2302
2303
2304 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2305 PyObject *resultobj;
2306 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2307 bool result;
2308 PyObject * obj0 = 0 ;
2309 char *kwnames[] = {
2310 (char *) "self", NULL
2311 };
2312
2313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2316 {
2317 PyThreadState* __tstate = wxPyBeginAllowThreads();
2318 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2319
2320 wxPyEndAllowThreads(__tstate);
2321 if (PyErr_Occurred()) SWIG_fail;
2322 }
2323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2324 return resultobj;
2325 fail:
2326 return NULL;
2327 }
2328
2329
2330 static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2331 PyObject *obj;
2332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2333 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2334 Py_INCREF(obj);
2335 return Py_BuildValue((char *)"");
2336 }
2337 static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2338 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2339 return 1;
2340 }
2341
2342
2343 static PyObject *_wrap_ChoiceNameStr_get() {
2344 PyObject *pyobj;
2345
2346 {
2347 #if wxUSE_UNICODE
2348 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2349 #else
2350 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2351 #endif
2352 }
2353 return pyobj;
2354 }
2355
2356
2357 static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2358 PyObject *resultobj;
2359 wxWindow *arg1 = (wxWindow *) 0 ;
2360 int arg2 ;
2361 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2362 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2363 wxSize const &arg4_defvalue = wxDefaultSize ;
2364 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2365 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2366 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2367 long arg6 = (long) 0 ;
2368 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2369 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2370 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2371 wxString *arg8 = (wxString *) &arg8_defvalue ;
2372 wxChoice *result;
2373 wxPoint temp3 ;
2374 wxSize temp4 ;
2375 bool temp5 = False ;
2376 bool temp8 = False ;
2377 PyObject * obj0 = 0 ;
2378 PyObject * obj1 = 0 ;
2379 PyObject * obj2 = 0 ;
2380 PyObject * obj3 = 0 ;
2381 PyObject * obj4 = 0 ;
2382 PyObject * obj5 = 0 ;
2383 PyObject * obj6 = 0 ;
2384 PyObject * obj7 = 0 ;
2385 char *kwnames[] = {
2386 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2387 };
2388
2389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2392 arg2 = (int) SWIG_AsInt(obj1);
2393 if (PyErr_Occurred()) SWIG_fail;
2394 if (obj2) {
2395 {
2396 arg3 = &temp3;
2397 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2398 }
2399 }
2400 if (obj3) {
2401 {
2402 arg4 = &temp4;
2403 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2404 }
2405 }
2406 if (obj4) {
2407 {
2408 if (! PySequence_Check(obj4)) {
2409 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2410 SWIG_fail;
2411 }
2412 arg5 = new wxArrayString;
2413 temp5 = True;
2414 int i, len=PySequence_Length(obj4);
2415 for (i=0; i<len; i++) {
2416 PyObject* item = PySequence_GetItem(obj4, i);
2417 #if wxUSE_UNICODE
2418 PyObject* str = PyObject_Unicode(item);
2419 #else
2420 PyObject* str = PyObject_Str(item);
2421 #endif
2422 arg5->Add(Py2wxString(str));
2423 Py_DECREF(item);
2424 Py_DECREF(str);
2425 }
2426 }
2427 }
2428 if (obj5) {
2429 arg6 = (long) SWIG_AsLong(obj5);
2430 if (PyErr_Occurred()) SWIG_fail;
2431 }
2432 if (obj6) {
2433 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2434 SWIG_POINTER_EXCEPTION | 0)) == -1)
2435 SWIG_fail;
2436 if (arg7 == NULL) {
2437 PyErr_SetString(PyExc_TypeError,"null reference");
2438 SWIG_fail;
2439 }
2440 }
2441 if (obj7) {
2442 {
2443 arg8 = wxString_in_helper(obj7);
2444 if (arg8 == NULL) SWIG_fail;
2445 temp8 = True;
2446 }
2447 }
2448 {
2449 PyThreadState* __tstate = wxPyBeginAllowThreads();
2450 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2451
2452 wxPyEndAllowThreads(__tstate);
2453 if (PyErr_Occurred()) SWIG_fail;
2454 }
2455 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2456 {
2457 if (temp5) delete arg5;
2458 }
2459 {
2460 if (temp8)
2461 delete arg8;
2462 }
2463 return resultobj;
2464 fail:
2465 {
2466 if (temp5) delete arg5;
2467 }
2468 {
2469 if (temp8)
2470 delete arg8;
2471 }
2472 return NULL;
2473 }
2474
2475
2476 static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2477 PyObject *resultobj;
2478 wxChoice *result;
2479 char *kwnames[] = {
2480 NULL
2481 };
2482
2483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2484 {
2485 PyThreadState* __tstate = wxPyBeginAllowThreads();
2486 result = (wxChoice *)new wxChoice();
2487
2488 wxPyEndAllowThreads(__tstate);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 }
2491 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2492 return resultobj;
2493 fail:
2494 return NULL;
2495 }
2496
2497
2498 static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2499 PyObject *resultobj;
2500 wxChoice *arg1 = (wxChoice *) 0 ;
2501 wxWindow *arg2 = (wxWindow *) 0 ;
2502 int arg3 ;
2503 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2504 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2505 wxSize const &arg5_defvalue = wxDefaultSize ;
2506 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2507 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2508 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2509 long arg7 = (long) 0 ;
2510 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2511 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2512 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2513 wxString *arg9 = (wxString *) &arg9_defvalue ;
2514 bool result;
2515 wxPoint temp4 ;
2516 wxSize temp5 ;
2517 bool temp6 = False ;
2518 bool temp9 = False ;
2519 PyObject * obj0 = 0 ;
2520 PyObject * obj1 = 0 ;
2521 PyObject * obj2 = 0 ;
2522 PyObject * obj3 = 0 ;
2523 PyObject * obj4 = 0 ;
2524 PyObject * obj5 = 0 ;
2525 PyObject * obj6 = 0 ;
2526 PyObject * obj7 = 0 ;
2527 PyObject * obj8 = 0 ;
2528 char *kwnames[] = {
2529 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2530 };
2531
2532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2535 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2537 arg3 = (int) SWIG_AsInt(obj2);
2538 if (PyErr_Occurred()) SWIG_fail;
2539 if (obj3) {
2540 {
2541 arg4 = &temp4;
2542 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2543 }
2544 }
2545 if (obj4) {
2546 {
2547 arg5 = &temp5;
2548 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2549 }
2550 }
2551 if (obj5) {
2552 {
2553 if (! PySequence_Check(obj5)) {
2554 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2555 SWIG_fail;
2556 }
2557 arg6 = new wxArrayString;
2558 temp6 = True;
2559 int i, len=PySequence_Length(obj5);
2560 for (i=0; i<len; i++) {
2561 PyObject* item = PySequence_GetItem(obj5, i);
2562 #if wxUSE_UNICODE
2563 PyObject* str = PyObject_Unicode(item);
2564 #else
2565 PyObject* str = PyObject_Str(item);
2566 #endif
2567 arg6->Add(Py2wxString(str));
2568 Py_DECREF(item);
2569 Py_DECREF(str);
2570 }
2571 }
2572 }
2573 if (obj6) {
2574 arg7 = (long) SWIG_AsLong(obj6);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 if (obj7) {
2578 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2579 SWIG_POINTER_EXCEPTION | 0)) == -1)
2580 SWIG_fail;
2581 if (arg8 == NULL) {
2582 PyErr_SetString(PyExc_TypeError,"null reference");
2583 SWIG_fail;
2584 }
2585 }
2586 if (obj8) {
2587 {
2588 arg9 = wxString_in_helper(obj8);
2589 if (arg9 == NULL) SWIG_fail;
2590 temp9 = True;
2591 }
2592 }
2593 {
2594 PyThreadState* __tstate = wxPyBeginAllowThreads();
2595 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2596
2597 wxPyEndAllowThreads(__tstate);
2598 if (PyErr_Occurred()) SWIG_fail;
2599 }
2600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2601 {
2602 if (temp6) delete arg6;
2603 }
2604 {
2605 if (temp9)
2606 delete arg9;
2607 }
2608 return resultobj;
2609 fail:
2610 {
2611 if (temp6) delete arg6;
2612 }
2613 {
2614 if (temp9)
2615 delete arg9;
2616 }
2617 return NULL;
2618 }
2619
2620
2621 static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2622 PyObject *resultobj;
2623 wxChoice *arg1 = (wxChoice *) 0 ;
2624 int arg2 ;
2625 PyObject * obj0 = 0 ;
2626 PyObject * obj1 = 0 ;
2627 char *kwnames[] = {
2628 (char *) "self",(char *) "n", NULL
2629 };
2630
2631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2634 arg2 = (int const) SWIG_AsInt(obj1);
2635 if (PyErr_Occurred()) SWIG_fail;
2636 {
2637 PyThreadState* __tstate = wxPyBeginAllowThreads();
2638 (arg1)->SetSelection(arg2);
2639
2640 wxPyEndAllowThreads(__tstate);
2641 if (PyErr_Occurred()) SWIG_fail;
2642 }
2643 Py_INCREF(Py_None); resultobj = Py_None;
2644 return resultobj;
2645 fail:
2646 return NULL;
2647 }
2648
2649
2650 static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2651 PyObject *resultobj;
2652 wxChoice *arg1 = (wxChoice *) 0 ;
2653 wxString *arg2 = 0 ;
2654 bool temp2 = False ;
2655 PyObject * obj0 = 0 ;
2656 PyObject * obj1 = 0 ;
2657 char *kwnames[] = {
2658 (char *) "self",(char *) "string", NULL
2659 };
2660
2661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2664 {
2665 arg2 = wxString_in_helper(obj1);
2666 if (arg2 == NULL) SWIG_fail;
2667 temp2 = True;
2668 }
2669 {
2670 PyThreadState* __tstate = wxPyBeginAllowThreads();
2671 (arg1)->SetStringSelection((wxString const &)*arg2);
2672
2673 wxPyEndAllowThreads(__tstate);
2674 if (PyErr_Occurred()) SWIG_fail;
2675 }
2676 Py_INCREF(Py_None); resultobj = Py_None;
2677 {
2678 if (temp2)
2679 delete arg2;
2680 }
2681 return resultobj;
2682 fail:
2683 {
2684 if (temp2)
2685 delete arg2;
2686 }
2687 return NULL;
2688 }
2689
2690
2691 static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2692 PyObject *resultobj;
2693 wxChoice *arg1 = (wxChoice *) 0 ;
2694 int arg2 ;
2695 wxString *arg3 = 0 ;
2696 bool temp3 = False ;
2697 PyObject * obj0 = 0 ;
2698 PyObject * obj1 = 0 ;
2699 PyObject * obj2 = 0 ;
2700 char *kwnames[] = {
2701 (char *) "self",(char *) "n",(char *) "string", NULL
2702 };
2703
2704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2707 arg2 = (int) SWIG_AsInt(obj1);
2708 if (PyErr_Occurred()) SWIG_fail;
2709 {
2710 arg3 = wxString_in_helper(obj2);
2711 if (arg3 == NULL) SWIG_fail;
2712 temp3 = True;
2713 }
2714 {
2715 PyThreadState* __tstate = wxPyBeginAllowThreads();
2716 (arg1)->SetString(arg2,(wxString const &)*arg3);
2717
2718 wxPyEndAllowThreads(__tstate);
2719 if (PyErr_Occurred()) SWIG_fail;
2720 }
2721 Py_INCREF(Py_None); resultobj = Py_None;
2722 {
2723 if (temp3)
2724 delete arg3;
2725 }
2726 return resultobj;
2727 fail:
2728 {
2729 if (temp3)
2730 delete arg3;
2731 }
2732 return NULL;
2733 }
2734
2735
2736 static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2737 PyObject *obj;
2738 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2739 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2740 Py_INCREF(obj);
2741 return Py_BuildValue((char *)"");
2742 }
2743 static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2744 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2745 return 1;
2746 }
2747
2748
2749 static PyObject *_wrap_ComboBoxNameStr_get() {
2750 PyObject *pyobj;
2751
2752 {
2753 #if wxUSE_UNICODE
2754 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2755 #else
2756 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2757 #endif
2758 }
2759 return pyobj;
2760 }
2761
2762
2763 static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2764 PyObject *resultobj;
2765 wxWindow *arg1 = (wxWindow *) 0 ;
2766 int arg2 ;
2767 wxString const &arg3_defvalue = wxPyEmptyString ;
2768 wxString *arg3 = (wxString *) &arg3_defvalue ;
2769 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2770 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2771 wxSize const &arg5_defvalue = wxDefaultSize ;
2772 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2773 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2774 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2775 long arg7 = (long) 0 ;
2776 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2777 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2778 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2779 wxString *arg9 = (wxString *) &arg9_defvalue ;
2780 wxComboBox *result;
2781 bool temp3 = False ;
2782 wxPoint temp4 ;
2783 wxSize temp5 ;
2784 bool temp6 = False ;
2785 bool temp9 = False ;
2786 PyObject * obj0 = 0 ;
2787 PyObject * obj1 = 0 ;
2788 PyObject * obj2 = 0 ;
2789 PyObject * obj3 = 0 ;
2790 PyObject * obj4 = 0 ;
2791 PyObject * obj5 = 0 ;
2792 PyObject * obj6 = 0 ;
2793 PyObject * obj7 = 0 ;
2794 PyObject * obj8 = 0 ;
2795 char *kwnames[] = {
2796 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2797 };
2798
2799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2802 arg2 = (int) SWIG_AsInt(obj1);
2803 if (PyErr_Occurred()) SWIG_fail;
2804 if (obj2) {
2805 {
2806 arg3 = wxString_in_helper(obj2);
2807 if (arg3 == NULL) SWIG_fail;
2808 temp3 = True;
2809 }
2810 }
2811 if (obj3) {
2812 {
2813 arg4 = &temp4;
2814 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2815 }
2816 }
2817 if (obj4) {
2818 {
2819 arg5 = &temp5;
2820 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2821 }
2822 }
2823 if (obj5) {
2824 {
2825 if (! PySequence_Check(obj5)) {
2826 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2827 SWIG_fail;
2828 }
2829 arg6 = new wxArrayString;
2830 temp6 = True;
2831 int i, len=PySequence_Length(obj5);
2832 for (i=0; i<len; i++) {
2833 PyObject* item = PySequence_GetItem(obj5, i);
2834 #if wxUSE_UNICODE
2835 PyObject* str = PyObject_Unicode(item);
2836 #else
2837 PyObject* str = PyObject_Str(item);
2838 #endif
2839 arg6->Add(Py2wxString(str));
2840 Py_DECREF(item);
2841 Py_DECREF(str);
2842 }
2843 }
2844 }
2845 if (obj6) {
2846 arg7 = (long) SWIG_AsLong(obj6);
2847 if (PyErr_Occurred()) SWIG_fail;
2848 }
2849 if (obj7) {
2850 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2851 SWIG_POINTER_EXCEPTION | 0)) == -1)
2852 SWIG_fail;
2853 if (arg8 == NULL) {
2854 PyErr_SetString(PyExc_TypeError,"null reference");
2855 SWIG_fail;
2856 }
2857 }
2858 if (obj8) {
2859 {
2860 arg9 = wxString_in_helper(obj8);
2861 if (arg9 == NULL) SWIG_fail;
2862 temp9 = True;
2863 }
2864 }
2865 {
2866 PyThreadState* __tstate = wxPyBeginAllowThreads();
2867 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);
2868
2869 wxPyEndAllowThreads(__tstate);
2870 if (PyErr_Occurred()) SWIG_fail;
2871 }
2872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
2873 {
2874 if (temp3)
2875 delete arg3;
2876 }
2877 {
2878 if (temp6) delete arg6;
2879 }
2880 {
2881 if (temp9)
2882 delete arg9;
2883 }
2884 return resultobj;
2885 fail:
2886 {
2887 if (temp3)
2888 delete arg3;
2889 }
2890 {
2891 if (temp6) delete arg6;
2892 }
2893 {
2894 if (temp9)
2895 delete arg9;
2896 }
2897 return NULL;
2898 }
2899
2900
2901 static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2902 PyObject *resultobj;
2903 wxComboBox *result;
2904 char *kwnames[] = {
2905 NULL
2906 };
2907
2908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
2909 {
2910 PyThreadState* __tstate = wxPyBeginAllowThreads();
2911 result = (wxComboBox *)new wxComboBox();
2912
2913 wxPyEndAllowThreads(__tstate);
2914 if (PyErr_Occurred()) SWIG_fail;
2915 }
2916 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
2917 return resultobj;
2918 fail:
2919 return NULL;
2920 }
2921
2922
2923 static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2924 PyObject *resultobj;
2925 wxComboBox *arg1 = (wxComboBox *) 0 ;
2926 wxWindow *arg2 = (wxWindow *) 0 ;
2927 int arg3 ;
2928 wxString const &arg4_defvalue = wxPyEmptyString ;
2929 wxString *arg4 = (wxString *) &arg4_defvalue ;
2930 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2931 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2932 wxSize const &arg6_defvalue = wxDefaultSize ;
2933 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2934 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
2935 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
2936 long arg8 = (long) 0 ;
2937 wxValidator const &arg9_defvalue = wxDefaultValidator ;
2938 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
2939 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
2940 wxString *arg10 = (wxString *) &arg10_defvalue ;
2941 bool result;
2942 bool temp4 = False ;
2943 wxPoint temp5 ;
2944 wxSize temp6 ;
2945 bool temp7 = False ;
2946 bool temp10 = False ;
2947 PyObject * obj0 = 0 ;
2948 PyObject * obj1 = 0 ;
2949 PyObject * obj2 = 0 ;
2950 PyObject * obj3 = 0 ;
2951 PyObject * obj4 = 0 ;
2952 PyObject * obj5 = 0 ;
2953 PyObject * obj6 = 0 ;
2954 PyObject * obj7 = 0 ;
2955 PyObject * obj8 = 0 ;
2956 PyObject * obj9 = 0 ;
2957 char *kwnames[] = {
2958 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2959 };
2960
2961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
2962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
2963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2966 arg3 = (int) SWIG_AsInt(obj2);
2967 if (PyErr_Occurred()) SWIG_fail;
2968 if (obj3) {
2969 {
2970 arg4 = wxString_in_helper(obj3);
2971 if (arg4 == NULL) SWIG_fail;
2972 temp4 = True;
2973 }
2974 }
2975 if (obj4) {
2976 {
2977 arg5 = &temp5;
2978 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2979 }
2980 }
2981 if (obj5) {
2982 {
2983 arg6 = &temp6;
2984 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2985 }
2986 }
2987 if (obj6) {
2988 {
2989 if (! PySequence_Check(obj6)) {
2990 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2991 SWIG_fail;
2992 }
2993 arg7 = new wxArrayString;
2994 temp7 = True;
2995 int i, len=PySequence_Length(obj6);
2996 for (i=0; i<len; i++) {
2997 PyObject* item = PySequence_GetItem(obj6, i);
2998 #if wxUSE_UNICODE
2999 PyObject* str = PyObject_Unicode(item);
3000 #else
3001 PyObject* str = PyObject_Str(item);
3002 #endif
3003 arg7->Add(Py2wxString(str));
3004 Py_DECREF(item);
3005 Py_DECREF(str);
3006 }
3007 }
3008 }
3009 if (obj7) {
3010 arg8 = (long) SWIG_AsLong(obj7);
3011 if (PyErr_Occurred()) SWIG_fail;
3012 }
3013 if (obj8) {
3014 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3015 SWIG_POINTER_EXCEPTION | 0)) == -1)
3016 SWIG_fail;
3017 if (arg9 == NULL) {
3018 PyErr_SetString(PyExc_TypeError,"null reference");
3019 SWIG_fail;
3020 }
3021 }
3022 if (obj9) {
3023 {
3024 arg10 = wxString_in_helper(obj9);
3025 if (arg10 == NULL) SWIG_fail;
3026 temp10 = True;
3027 }
3028 }
3029 {
3030 PyThreadState* __tstate = wxPyBeginAllowThreads();
3031 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);
3032
3033 wxPyEndAllowThreads(__tstate);
3034 if (PyErr_Occurred()) SWIG_fail;
3035 }
3036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3037 {
3038 if (temp4)
3039 delete arg4;
3040 }
3041 {
3042 if (temp7) delete arg7;
3043 }
3044 {
3045 if (temp10)
3046 delete arg10;
3047 }
3048 return resultobj;
3049 fail:
3050 {
3051 if (temp4)
3052 delete arg4;
3053 }
3054 {
3055 if (temp7) delete arg7;
3056 }
3057 {
3058 if (temp10)
3059 delete arg10;
3060 }
3061 return NULL;
3062 }
3063
3064
3065 static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3066 PyObject *resultobj;
3067 wxComboBox *arg1 = (wxComboBox *) 0 ;
3068 wxString result;
3069 PyObject * obj0 = 0 ;
3070 char *kwnames[] = {
3071 (char *) "self", NULL
3072 };
3073
3074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3077 {
3078 PyThreadState* __tstate = wxPyBeginAllowThreads();
3079 result = ((wxComboBox const *)arg1)->GetValue();
3080
3081 wxPyEndAllowThreads(__tstate);
3082 if (PyErr_Occurred()) SWIG_fail;
3083 }
3084 {
3085 #if wxUSE_UNICODE
3086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3087 #else
3088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3089 #endif
3090 }
3091 return resultobj;
3092 fail:
3093 return NULL;
3094 }
3095
3096
3097 static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3098 PyObject *resultobj;
3099 wxComboBox *arg1 = (wxComboBox *) 0 ;
3100 wxString *arg2 = 0 ;
3101 bool temp2 = False ;
3102 PyObject * obj0 = 0 ;
3103 PyObject * obj1 = 0 ;
3104 char *kwnames[] = {
3105 (char *) "self",(char *) "value", NULL
3106 };
3107
3108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3111 {
3112 arg2 = wxString_in_helper(obj1);
3113 if (arg2 == NULL) SWIG_fail;
3114 temp2 = True;
3115 }
3116 {
3117 PyThreadState* __tstate = wxPyBeginAllowThreads();
3118 (arg1)->SetValue((wxString const &)*arg2);
3119
3120 wxPyEndAllowThreads(__tstate);
3121 if (PyErr_Occurred()) SWIG_fail;
3122 }
3123 Py_INCREF(Py_None); resultobj = Py_None;
3124 {
3125 if (temp2)
3126 delete arg2;
3127 }
3128 return resultobj;
3129 fail:
3130 {
3131 if (temp2)
3132 delete arg2;
3133 }
3134 return NULL;
3135 }
3136
3137
3138 static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3139 PyObject *resultobj;
3140 wxComboBox *arg1 = (wxComboBox *) 0 ;
3141 PyObject * obj0 = 0 ;
3142 char *kwnames[] = {
3143 (char *) "self", NULL
3144 };
3145
3146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3149 {
3150 PyThreadState* __tstate = wxPyBeginAllowThreads();
3151 (arg1)->Copy();
3152
3153 wxPyEndAllowThreads(__tstate);
3154 if (PyErr_Occurred()) SWIG_fail;
3155 }
3156 Py_INCREF(Py_None); resultobj = Py_None;
3157 return resultobj;
3158 fail:
3159 return NULL;
3160 }
3161
3162
3163 static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3164 PyObject *resultobj;
3165 wxComboBox *arg1 = (wxComboBox *) 0 ;
3166 PyObject * obj0 = 0 ;
3167 char *kwnames[] = {
3168 (char *) "self", NULL
3169 };
3170
3171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3174 {
3175 PyThreadState* __tstate = wxPyBeginAllowThreads();
3176 (arg1)->Cut();
3177
3178 wxPyEndAllowThreads(__tstate);
3179 if (PyErr_Occurred()) SWIG_fail;
3180 }
3181 Py_INCREF(Py_None); resultobj = Py_None;
3182 return resultobj;
3183 fail:
3184 return NULL;
3185 }
3186
3187
3188 static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3189 PyObject *resultobj;
3190 wxComboBox *arg1 = (wxComboBox *) 0 ;
3191 PyObject * obj0 = 0 ;
3192 char *kwnames[] = {
3193 (char *) "self", NULL
3194 };
3195
3196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3199 {
3200 PyThreadState* __tstate = wxPyBeginAllowThreads();
3201 (arg1)->Paste();
3202
3203 wxPyEndAllowThreads(__tstate);
3204 if (PyErr_Occurred()) SWIG_fail;
3205 }
3206 Py_INCREF(Py_None); resultobj = Py_None;
3207 return resultobj;
3208 fail:
3209 return NULL;
3210 }
3211
3212
3213 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3214 PyObject *resultobj;
3215 wxComboBox *arg1 = (wxComboBox *) 0 ;
3216 long arg2 ;
3217 PyObject * obj0 = 0 ;
3218 PyObject * obj1 = 0 ;
3219 char *kwnames[] = {
3220 (char *) "self",(char *) "pos", NULL
3221 };
3222
3223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3226 arg2 = (long) SWIG_AsLong(obj1);
3227 if (PyErr_Occurred()) SWIG_fail;
3228 {
3229 PyThreadState* __tstate = wxPyBeginAllowThreads();
3230 (arg1)->SetInsertionPoint(arg2);
3231
3232 wxPyEndAllowThreads(__tstate);
3233 if (PyErr_Occurred()) SWIG_fail;
3234 }
3235 Py_INCREF(Py_None); resultobj = Py_None;
3236 return resultobj;
3237 fail:
3238 return NULL;
3239 }
3240
3241
3242 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3243 PyObject *resultobj;
3244 wxComboBox *arg1 = (wxComboBox *) 0 ;
3245 long result;
3246 PyObject * obj0 = 0 ;
3247 char *kwnames[] = {
3248 (char *) "self", NULL
3249 };
3250
3251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3254 {
3255 PyThreadState* __tstate = wxPyBeginAllowThreads();
3256 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3257
3258 wxPyEndAllowThreads(__tstate);
3259 if (PyErr_Occurred()) SWIG_fail;
3260 }
3261 resultobj = SWIG_FromLong((long)result);
3262 return resultobj;
3263 fail:
3264 return NULL;
3265 }
3266
3267
3268 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3269 PyObject *resultobj;
3270 wxComboBox *arg1 = (wxComboBox *) 0 ;
3271 long result;
3272 PyObject * obj0 = 0 ;
3273 char *kwnames[] = {
3274 (char *) "self", NULL
3275 };
3276
3277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3280 {
3281 PyThreadState* __tstate = wxPyBeginAllowThreads();
3282 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3283
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 }
3287 resultobj = SWIG_FromLong((long)result);
3288 return resultobj;
3289 fail:
3290 return NULL;
3291 }
3292
3293
3294 static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3295 PyObject *resultobj;
3296 wxComboBox *arg1 = (wxComboBox *) 0 ;
3297 long arg2 ;
3298 long arg3 ;
3299 wxString *arg4 = 0 ;
3300 bool temp4 = False ;
3301 PyObject * obj0 = 0 ;
3302 PyObject * obj1 = 0 ;
3303 PyObject * obj2 = 0 ;
3304 PyObject * obj3 = 0 ;
3305 char *kwnames[] = {
3306 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3307 };
3308
3309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3312 arg2 = (long) SWIG_AsLong(obj1);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 arg3 = (long) SWIG_AsLong(obj2);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 {
3317 arg4 = wxString_in_helper(obj3);
3318 if (arg4 == NULL) SWIG_fail;
3319 temp4 = True;
3320 }
3321 {
3322 PyThreadState* __tstate = wxPyBeginAllowThreads();
3323 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3324
3325 wxPyEndAllowThreads(__tstate);
3326 if (PyErr_Occurred()) SWIG_fail;
3327 }
3328 Py_INCREF(Py_None); resultobj = Py_None;
3329 {
3330 if (temp4)
3331 delete arg4;
3332 }
3333 return resultobj;
3334 fail:
3335 {
3336 if (temp4)
3337 delete arg4;
3338 }
3339 return NULL;
3340 }
3341
3342
3343 static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3344 PyObject *resultobj;
3345 wxComboBox *arg1 = (wxComboBox *) 0 ;
3346 int arg2 ;
3347 PyObject * obj0 = 0 ;
3348 PyObject * obj1 = 0 ;
3349 char *kwnames[] = {
3350 (char *) "self",(char *) "n", NULL
3351 };
3352
3353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3356 arg2 = (int) SWIG_AsInt(obj1);
3357 if (PyErr_Occurred()) SWIG_fail;
3358 {
3359 PyThreadState* __tstate = wxPyBeginAllowThreads();
3360 (arg1)->SetSelection(arg2);
3361
3362 wxPyEndAllowThreads(__tstate);
3363 if (PyErr_Occurred()) SWIG_fail;
3364 }
3365 Py_INCREF(Py_None); resultobj = Py_None;
3366 return resultobj;
3367 fail:
3368 return NULL;
3369 }
3370
3371
3372 static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3373 PyObject *resultobj;
3374 wxComboBox *arg1 = (wxComboBox *) 0 ;
3375 long arg2 ;
3376 long arg3 ;
3377 PyObject * obj0 = 0 ;
3378 PyObject * obj1 = 0 ;
3379 PyObject * obj2 = 0 ;
3380 char *kwnames[] = {
3381 (char *) "self",(char *) "from",(char *) "to", NULL
3382 };
3383
3384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3387 arg2 = (long) SWIG_AsLong(obj1);
3388 if (PyErr_Occurred()) SWIG_fail;
3389 arg3 = (long) SWIG_AsLong(obj2);
3390 if (PyErr_Occurred()) SWIG_fail;
3391 {
3392 PyThreadState* __tstate = wxPyBeginAllowThreads();
3393 (arg1)->SetSelection(arg2,arg3);
3394
3395 wxPyEndAllowThreads(__tstate);
3396 if (PyErr_Occurred()) SWIG_fail;
3397 }
3398 Py_INCREF(Py_None); resultobj = Py_None;
3399 return resultobj;
3400 fail:
3401 return NULL;
3402 }
3403
3404
3405 static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3406 PyObject *resultobj;
3407 wxComboBox *arg1 = (wxComboBox *) 0 ;
3408 bool arg2 ;
3409 PyObject * obj0 = 0 ;
3410 PyObject * obj1 = 0 ;
3411 char *kwnames[] = {
3412 (char *) "self",(char *) "editable", NULL
3413 };
3414
3415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3418 arg2 = (bool) SWIG_AsBool(obj1);
3419 if (PyErr_Occurred()) SWIG_fail;
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 (arg1)->SetEditable(arg2);
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 Py_INCREF(Py_None); resultobj = Py_None;
3428 return resultobj;
3429 fail:
3430 return NULL;
3431 }
3432
3433
3434 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxComboBox *arg1 = (wxComboBox *) 0 ;
3437 PyObject * obj0 = 0 ;
3438 char *kwnames[] = {
3439 (char *) "self", NULL
3440 };
3441
3442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3445 {
3446 PyThreadState* __tstate = wxPyBeginAllowThreads();
3447 (arg1)->SetInsertionPointEnd();
3448
3449 wxPyEndAllowThreads(__tstate);
3450 if (PyErr_Occurred()) SWIG_fail;
3451 }
3452 Py_INCREF(Py_None); resultobj = Py_None;
3453 return resultobj;
3454 fail:
3455 return NULL;
3456 }
3457
3458
3459 static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3460 PyObject *resultobj;
3461 wxComboBox *arg1 = (wxComboBox *) 0 ;
3462 long arg2 ;
3463 long arg3 ;
3464 PyObject * obj0 = 0 ;
3465 PyObject * obj1 = 0 ;
3466 PyObject * obj2 = 0 ;
3467 char *kwnames[] = {
3468 (char *) "self",(char *) "from",(char *) "to", NULL
3469 };
3470
3471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3474 arg2 = (long) SWIG_AsLong(obj1);
3475 if (PyErr_Occurred()) SWIG_fail;
3476 arg3 = (long) SWIG_AsLong(obj2);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 {
3479 PyThreadState* __tstate = wxPyBeginAllowThreads();
3480 (arg1)->Remove(arg2,arg3);
3481
3482 wxPyEndAllowThreads(__tstate);
3483 if (PyErr_Occurred()) SWIG_fail;
3484 }
3485 Py_INCREF(Py_None); resultobj = Py_None;
3486 return resultobj;
3487 fail:
3488 return NULL;
3489 }
3490
3491
3492 static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3493 PyObject *obj;
3494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3495 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3496 Py_INCREF(obj);
3497 return Py_BuildValue((char *)"");
3498 }
3499 static int _wrap_GaugeNameStr_set(PyObject *_val) {
3500 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3501 return 1;
3502 }
3503
3504
3505 static PyObject *_wrap_GaugeNameStr_get() {
3506 PyObject *pyobj;
3507
3508 {
3509 #if wxUSE_UNICODE
3510 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3511 #else
3512 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3513 #endif
3514 }
3515 return pyobj;
3516 }
3517
3518
3519 static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3520 PyObject *resultobj;
3521 wxWindow *arg1 = (wxWindow *) 0 ;
3522 int arg2 ;
3523 int arg3 ;
3524 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3525 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3526 wxSize const &arg5_defvalue = wxDefaultSize ;
3527 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3528 long arg6 = (long) wxGA_HORIZONTAL ;
3529 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3530 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3531 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3532 wxString *arg8 = (wxString *) &arg8_defvalue ;
3533 wxGauge *result;
3534 wxPoint temp4 ;
3535 wxSize temp5 ;
3536 bool temp8 = False ;
3537 PyObject * obj0 = 0 ;
3538 PyObject * obj1 = 0 ;
3539 PyObject * obj2 = 0 ;
3540 PyObject * obj3 = 0 ;
3541 PyObject * obj4 = 0 ;
3542 PyObject * obj5 = 0 ;
3543 PyObject * obj6 = 0 ;
3544 PyObject * obj7 = 0 ;
3545 char *kwnames[] = {
3546 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3547 };
3548
3549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3552 arg2 = (int) SWIG_AsInt(obj1);
3553 if (PyErr_Occurred()) SWIG_fail;
3554 arg3 = (int) SWIG_AsInt(obj2);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 if (obj3) {
3557 {
3558 arg4 = &temp4;
3559 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3560 }
3561 }
3562 if (obj4) {
3563 {
3564 arg5 = &temp5;
3565 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3566 }
3567 }
3568 if (obj5) {
3569 arg6 = (long) SWIG_AsLong(obj5);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 if (obj6) {
3573 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3574 SWIG_POINTER_EXCEPTION | 0)) == -1)
3575 SWIG_fail;
3576 if (arg7 == NULL) {
3577 PyErr_SetString(PyExc_TypeError,"null reference");
3578 SWIG_fail;
3579 }
3580 }
3581 if (obj7) {
3582 {
3583 arg8 = wxString_in_helper(obj7);
3584 if (arg8 == NULL) SWIG_fail;
3585 temp8 = True;
3586 }
3587 }
3588 {
3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
3590 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3591
3592 wxPyEndAllowThreads(__tstate);
3593 if (PyErr_Occurred()) SWIG_fail;
3594 }
3595 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3596 {
3597 if (temp8)
3598 delete arg8;
3599 }
3600 return resultobj;
3601 fail:
3602 {
3603 if (temp8)
3604 delete arg8;
3605 }
3606 return NULL;
3607 }
3608
3609
3610 static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3611 PyObject *resultobj;
3612 wxGauge *result;
3613 char *kwnames[] = {
3614 NULL
3615 };
3616
3617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3618 {
3619 PyThreadState* __tstate = wxPyBeginAllowThreads();
3620 result = (wxGauge *)new wxGauge();
3621
3622 wxPyEndAllowThreads(__tstate);
3623 if (PyErr_Occurred()) SWIG_fail;
3624 }
3625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3626 return resultobj;
3627 fail:
3628 return NULL;
3629 }
3630
3631
3632 static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3633 PyObject *resultobj;
3634 wxGauge *arg1 = (wxGauge *) 0 ;
3635 wxWindow *arg2 = (wxWindow *) 0 ;
3636 int arg3 ;
3637 int arg4 ;
3638 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3639 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3640 wxSize const &arg6_defvalue = wxDefaultSize ;
3641 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3642 long arg7 = (long) wxGA_HORIZONTAL ;
3643 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3644 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3645 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3646 wxString *arg9 = (wxString *) &arg9_defvalue ;
3647 bool result;
3648 wxPoint temp5 ;
3649 wxSize temp6 ;
3650 bool temp9 = False ;
3651 PyObject * obj0 = 0 ;
3652 PyObject * obj1 = 0 ;
3653 PyObject * obj2 = 0 ;
3654 PyObject * obj3 = 0 ;
3655 PyObject * obj4 = 0 ;
3656 PyObject * obj5 = 0 ;
3657 PyObject * obj6 = 0 ;
3658 PyObject * obj7 = 0 ;
3659 PyObject * obj8 = 0 ;
3660 char *kwnames[] = {
3661 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3662 };
3663
3664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3667 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3669 arg3 = (int) SWIG_AsInt(obj2);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 arg4 = (int) SWIG_AsInt(obj3);
3672 if (PyErr_Occurred()) SWIG_fail;
3673 if (obj4) {
3674 {
3675 arg5 = &temp5;
3676 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3677 }
3678 }
3679 if (obj5) {
3680 {
3681 arg6 = &temp6;
3682 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3683 }
3684 }
3685 if (obj6) {
3686 arg7 = (long) SWIG_AsLong(obj6);
3687 if (PyErr_Occurred()) SWIG_fail;
3688 }
3689 if (obj7) {
3690 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3691 SWIG_POINTER_EXCEPTION | 0)) == -1)
3692 SWIG_fail;
3693 if (arg8 == NULL) {
3694 PyErr_SetString(PyExc_TypeError,"null reference");
3695 SWIG_fail;
3696 }
3697 }
3698 if (obj8) {
3699 {
3700 arg9 = wxString_in_helper(obj8);
3701 if (arg9 == NULL) SWIG_fail;
3702 temp9 = True;
3703 }
3704 }
3705 {
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
3707 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3708
3709 wxPyEndAllowThreads(__tstate);
3710 if (PyErr_Occurred()) SWIG_fail;
3711 }
3712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3713 {
3714 if (temp9)
3715 delete arg9;
3716 }
3717 return resultobj;
3718 fail:
3719 {
3720 if (temp9)
3721 delete arg9;
3722 }
3723 return NULL;
3724 }
3725
3726
3727 static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj;
3729 wxGauge *arg1 = (wxGauge *) 0 ;
3730 int arg2 ;
3731 PyObject * obj0 = 0 ;
3732 PyObject * obj1 = 0 ;
3733 char *kwnames[] = {
3734 (char *) "self",(char *) "range", NULL
3735 };
3736
3737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
3738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3740 arg2 = (int) SWIG_AsInt(obj1);
3741 if (PyErr_Occurred()) SWIG_fail;
3742 {
3743 PyThreadState* __tstate = wxPyBeginAllowThreads();
3744 (arg1)->SetRange(arg2);
3745
3746 wxPyEndAllowThreads(__tstate);
3747 if (PyErr_Occurred()) SWIG_fail;
3748 }
3749 Py_INCREF(Py_None); resultobj = Py_None;
3750 return resultobj;
3751 fail:
3752 return NULL;
3753 }
3754
3755
3756 static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3757 PyObject *resultobj;
3758 wxGauge *arg1 = (wxGauge *) 0 ;
3759 int result;
3760 PyObject * obj0 = 0 ;
3761 char *kwnames[] = {
3762 (char *) "self", NULL
3763 };
3764
3765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
3766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3768 {
3769 PyThreadState* __tstate = wxPyBeginAllowThreads();
3770 result = (int)((wxGauge const *)arg1)->GetRange();
3771
3772 wxPyEndAllowThreads(__tstate);
3773 if (PyErr_Occurred()) SWIG_fail;
3774 }
3775 resultobj = SWIG_FromInt((int)result);
3776 return resultobj;
3777 fail:
3778 return NULL;
3779 }
3780
3781
3782 static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3783 PyObject *resultobj;
3784 wxGauge *arg1 = (wxGauge *) 0 ;
3785 int arg2 ;
3786 PyObject * obj0 = 0 ;
3787 PyObject * obj1 = 0 ;
3788 char *kwnames[] = {
3789 (char *) "self",(char *) "pos", NULL
3790 };
3791
3792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
3793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3795 arg2 = (int) SWIG_AsInt(obj1);
3796 if (PyErr_Occurred()) SWIG_fail;
3797 {
3798 PyThreadState* __tstate = wxPyBeginAllowThreads();
3799 (arg1)->SetValue(arg2);
3800
3801 wxPyEndAllowThreads(__tstate);
3802 if (PyErr_Occurred()) SWIG_fail;
3803 }
3804 Py_INCREF(Py_None); resultobj = Py_None;
3805 return resultobj;
3806 fail:
3807 return NULL;
3808 }
3809
3810
3811 static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3812 PyObject *resultobj;
3813 wxGauge *arg1 = (wxGauge *) 0 ;
3814 int result;
3815 PyObject * obj0 = 0 ;
3816 char *kwnames[] = {
3817 (char *) "self", NULL
3818 };
3819
3820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
3821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3823 {
3824 PyThreadState* __tstate = wxPyBeginAllowThreads();
3825 result = (int)((wxGauge const *)arg1)->GetValue();
3826
3827 wxPyEndAllowThreads(__tstate);
3828 if (PyErr_Occurred()) SWIG_fail;
3829 }
3830 resultobj = SWIG_FromInt((int)result);
3831 return resultobj;
3832 fail:
3833 return NULL;
3834 }
3835
3836
3837 static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
3838 PyObject *resultobj;
3839 wxGauge *arg1 = (wxGauge *) 0 ;
3840 bool result;
3841 PyObject * obj0 = 0 ;
3842 char *kwnames[] = {
3843 (char *) "self", NULL
3844 };
3845
3846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
3847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3849 {
3850 PyThreadState* __tstate = wxPyBeginAllowThreads();
3851 result = (bool)((wxGauge const *)arg1)->IsVertical();
3852
3853 wxPyEndAllowThreads(__tstate);
3854 if (PyErr_Occurred()) SWIG_fail;
3855 }
3856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3857 return resultobj;
3858 fail:
3859 return NULL;
3860 }
3861
3862
3863 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3864 PyObject *resultobj;
3865 wxGauge *arg1 = (wxGauge *) 0 ;
3866 int arg2 ;
3867 PyObject * obj0 = 0 ;
3868 PyObject * obj1 = 0 ;
3869 char *kwnames[] = {
3870 (char *) "self",(char *) "w", NULL
3871 };
3872
3873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
3874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3876 arg2 = (int) SWIG_AsInt(obj1);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 {
3879 PyThreadState* __tstate = wxPyBeginAllowThreads();
3880 (arg1)->SetShadowWidth(arg2);
3881
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 Py_INCREF(Py_None); resultobj = Py_None;
3886 return resultobj;
3887 fail:
3888 return NULL;
3889 }
3890
3891
3892 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3893 PyObject *resultobj;
3894 wxGauge *arg1 = (wxGauge *) 0 ;
3895 int result;
3896 PyObject * obj0 = 0 ;
3897 char *kwnames[] = {
3898 (char *) "self", NULL
3899 };
3900
3901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
3902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3904 {
3905 PyThreadState* __tstate = wxPyBeginAllowThreads();
3906 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
3907
3908 wxPyEndAllowThreads(__tstate);
3909 if (PyErr_Occurred()) SWIG_fail;
3910 }
3911 resultobj = SWIG_FromInt((int)result);
3912 return resultobj;
3913 fail:
3914 return NULL;
3915 }
3916
3917
3918 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3919 PyObject *resultobj;
3920 wxGauge *arg1 = (wxGauge *) 0 ;
3921 int arg2 ;
3922 PyObject * obj0 = 0 ;
3923 PyObject * obj1 = 0 ;
3924 char *kwnames[] = {
3925 (char *) "self",(char *) "w", NULL
3926 };
3927
3928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
3929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3931 arg2 = (int) SWIG_AsInt(obj1);
3932 if (PyErr_Occurred()) SWIG_fail;
3933 {
3934 PyThreadState* __tstate = wxPyBeginAllowThreads();
3935 (arg1)->SetBezelFace(arg2);
3936
3937 wxPyEndAllowThreads(__tstate);
3938 if (PyErr_Occurred()) SWIG_fail;
3939 }
3940 Py_INCREF(Py_None); resultobj = Py_None;
3941 return resultobj;
3942 fail:
3943 return NULL;
3944 }
3945
3946
3947 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3948 PyObject *resultobj;
3949 wxGauge *arg1 = (wxGauge *) 0 ;
3950 int result;
3951 PyObject * obj0 = 0 ;
3952 char *kwnames[] = {
3953 (char *) "self", NULL
3954 };
3955
3956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
3957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 result = (int)((wxGauge const *)arg1)->GetBezelFace();
3962
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 }
3966 resultobj = SWIG_FromInt((int)result);
3967 return resultobj;
3968 fail:
3969 return NULL;
3970 }
3971
3972
3973 static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
3974 PyObject *obj;
3975 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3976 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
3977 Py_INCREF(obj);
3978 return Py_BuildValue((char *)"");
3979 }
3980 static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
3981 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
3982 return 1;
3983 }
3984
3985
3986 static PyObject *_wrap_StaticBitmapNameStr_get() {
3987 PyObject *pyobj;
3988
3989 {
3990 #if wxUSE_UNICODE
3991 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
3992 #else
3993 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
3994 #endif
3995 }
3996 return pyobj;
3997 }
3998
3999
4000 static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
4001 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4002 return 1;
4003 }
4004
4005
4006 static PyObject *_wrap_StaticBoxNameStr_get() {
4007 PyObject *pyobj;
4008
4009 {
4010 #if wxUSE_UNICODE
4011 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4012 #else
4013 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4014 #endif
4015 }
4016 return pyobj;
4017 }
4018
4019
4020 static int _wrap_StaticTextNameStr_set(PyObject *_val) {
4021 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4022 return 1;
4023 }
4024
4025
4026 static PyObject *_wrap_StaticTextNameStr_get() {
4027 PyObject *pyobj;
4028
4029 {
4030 #if wxUSE_UNICODE
4031 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4032 #else
4033 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4034 #endif
4035 }
4036 return pyobj;
4037 }
4038
4039
4040 static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4041 PyObject *resultobj;
4042 wxWindow *arg1 = (wxWindow *) 0 ;
4043 int arg2 ;
4044 wxString *arg3 = 0 ;
4045 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4046 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4047 wxSize const &arg5_defvalue = wxDefaultSize ;
4048 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4049 long arg6 = (long) 0 ;
4050 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4051 wxString *arg7 = (wxString *) &arg7_defvalue ;
4052 wxStaticBox *result;
4053 bool temp3 = False ;
4054 wxPoint temp4 ;
4055 wxSize temp5 ;
4056 bool temp7 = False ;
4057 PyObject * obj0 = 0 ;
4058 PyObject * obj1 = 0 ;
4059 PyObject * obj2 = 0 ;
4060 PyObject * obj3 = 0 ;
4061 PyObject * obj4 = 0 ;
4062 PyObject * obj5 = 0 ;
4063 PyObject * obj6 = 0 ;
4064 char *kwnames[] = {
4065 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4066 };
4067
4068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4071 arg2 = (int) SWIG_AsInt(obj1);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 {
4074 arg3 = wxString_in_helper(obj2);
4075 if (arg3 == NULL) SWIG_fail;
4076 temp3 = True;
4077 }
4078 if (obj3) {
4079 {
4080 arg4 = &temp4;
4081 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4082 }
4083 }
4084 if (obj4) {
4085 {
4086 arg5 = &temp5;
4087 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4088 }
4089 }
4090 if (obj5) {
4091 arg6 = (long) SWIG_AsLong(obj5);
4092 if (PyErr_Occurred()) SWIG_fail;
4093 }
4094 if (obj6) {
4095 {
4096 arg7 = wxString_in_helper(obj6);
4097 if (arg7 == NULL) SWIG_fail;
4098 temp7 = True;
4099 }
4100 }
4101 {
4102 PyThreadState* __tstate = wxPyBeginAllowThreads();
4103 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4104
4105 wxPyEndAllowThreads(__tstate);
4106 if (PyErr_Occurred()) SWIG_fail;
4107 }
4108 {
4109 resultobj = wxPyMake_wxObject(result);
4110 }
4111 {
4112 if (temp3)
4113 delete arg3;
4114 }
4115 {
4116 if (temp7)
4117 delete arg7;
4118 }
4119 return resultobj;
4120 fail:
4121 {
4122 if (temp3)
4123 delete arg3;
4124 }
4125 {
4126 if (temp7)
4127 delete arg7;
4128 }
4129 return NULL;
4130 }
4131
4132
4133 static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4134 PyObject *resultobj;
4135 wxStaticBox *result;
4136 char *kwnames[] = {
4137 NULL
4138 };
4139
4140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4141 {
4142 PyThreadState* __tstate = wxPyBeginAllowThreads();
4143 result = (wxStaticBox *)new wxStaticBox();
4144
4145 wxPyEndAllowThreads(__tstate);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 {
4149 resultobj = wxPyMake_wxObject(result);
4150 }
4151 return resultobj;
4152 fail:
4153 return NULL;
4154 }
4155
4156
4157 static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4158 PyObject *resultobj;
4159 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4160 wxWindow *arg2 = (wxWindow *) 0 ;
4161 int arg3 ;
4162 wxString *arg4 = 0 ;
4163 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4164 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4165 wxSize const &arg6_defvalue = wxDefaultSize ;
4166 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4167 long arg7 = (long) 0 ;
4168 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4169 wxString *arg8 = (wxString *) &arg8_defvalue ;
4170 bool result;
4171 bool temp4 = False ;
4172 wxPoint temp5 ;
4173 wxSize temp6 ;
4174 bool temp8 = False ;
4175 PyObject * obj0 = 0 ;
4176 PyObject * obj1 = 0 ;
4177 PyObject * obj2 = 0 ;
4178 PyObject * obj3 = 0 ;
4179 PyObject * obj4 = 0 ;
4180 PyObject * obj5 = 0 ;
4181 PyObject * obj6 = 0 ;
4182 PyObject * obj7 = 0 ;
4183 char *kwnames[] = {
4184 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4185 };
4186
4187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4190 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4192 arg3 = (int) SWIG_AsInt(obj2);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 {
4195 arg4 = wxString_in_helper(obj3);
4196 if (arg4 == NULL) SWIG_fail;
4197 temp4 = True;
4198 }
4199 if (obj4) {
4200 {
4201 arg5 = &temp5;
4202 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4203 }
4204 }
4205 if (obj5) {
4206 {
4207 arg6 = &temp6;
4208 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4209 }
4210 }
4211 if (obj6) {
4212 arg7 = (long) SWIG_AsLong(obj6);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 if (obj7) {
4216 {
4217 arg8 = wxString_in_helper(obj7);
4218 if (arg8 == NULL) SWIG_fail;
4219 temp8 = True;
4220 }
4221 }
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4225
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4230 {
4231 if (temp4)
4232 delete arg4;
4233 }
4234 {
4235 if (temp8)
4236 delete arg8;
4237 }
4238 return resultobj;
4239 fail:
4240 {
4241 if (temp4)
4242 delete arg4;
4243 }
4244 {
4245 if (temp8)
4246 delete arg8;
4247 }
4248 return NULL;
4249 }
4250
4251
4252 static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4253 PyObject *obj;
4254 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4255 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4256 Py_INCREF(obj);
4257 return Py_BuildValue((char *)"");
4258 }
4259 static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj;
4261 wxWindow *arg1 = (wxWindow *) 0 ;
4262 int arg2 ;
4263 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4264 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4265 wxSize const &arg4_defvalue = wxDefaultSize ;
4266 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4267 long arg5 = (long) wxLI_HORIZONTAL ;
4268 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4269 wxString *arg6 = (wxString *) &arg6_defvalue ;
4270 wxStaticLine *result;
4271 wxPoint temp3 ;
4272 wxSize temp4 ;
4273 bool temp6 = False ;
4274 PyObject * obj0 = 0 ;
4275 PyObject * obj1 = 0 ;
4276 PyObject * obj2 = 0 ;
4277 PyObject * obj3 = 0 ;
4278 PyObject * obj4 = 0 ;
4279 PyObject * obj5 = 0 ;
4280 char *kwnames[] = {
4281 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4282 };
4283
4284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4287 arg2 = (int) SWIG_AsInt(obj1);
4288 if (PyErr_Occurred()) SWIG_fail;
4289 if (obj2) {
4290 {
4291 arg3 = &temp3;
4292 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4293 }
4294 }
4295 if (obj3) {
4296 {
4297 arg4 = &temp4;
4298 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4299 }
4300 }
4301 if (obj4) {
4302 arg5 = (long) SWIG_AsLong(obj4);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 if (obj5) {
4306 {
4307 arg6 = wxString_in_helper(obj5);
4308 if (arg6 == NULL) SWIG_fail;
4309 temp6 = True;
4310 }
4311 }
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4315
4316 wxPyEndAllowThreads(__tstate);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 }
4319 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4320 {
4321 if (temp6)
4322 delete arg6;
4323 }
4324 return resultobj;
4325 fail:
4326 {
4327 if (temp6)
4328 delete arg6;
4329 }
4330 return NULL;
4331 }
4332
4333
4334 static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4335 PyObject *resultobj;
4336 wxStaticLine *result;
4337 char *kwnames[] = {
4338 NULL
4339 };
4340
4341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 result = (wxStaticLine *)new wxStaticLine();
4345
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4350 return resultobj;
4351 fail:
4352 return NULL;
4353 }
4354
4355
4356 static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4357 PyObject *resultobj;
4358 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4359 wxWindow *arg2 = (wxWindow *) 0 ;
4360 int arg3 ;
4361 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4362 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4363 wxSize const &arg5_defvalue = wxDefaultSize ;
4364 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4365 long arg6 = (long) wxLI_HORIZONTAL ;
4366 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4367 wxString *arg7 = (wxString *) &arg7_defvalue ;
4368 bool result;
4369 wxPoint temp4 ;
4370 wxSize temp5 ;
4371 bool temp7 = False ;
4372 PyObject * obj0 = 0 ;
4373 PyObject * obj1 = 0 ;
4374 PyObject * obj2 = 0 ;
4375 PyObject * obj3 = 0 ;
4376 PyObject * obj4 = 0 ;
4377 PyObject * obj5 = 0 ;
4378 PyObject * obj6 = 0 ;
4379 char *kwnames[] = {
4380 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4381 };
4382
4383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4386 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4388 arg3 = (int) SWIG_AsInt(obj2);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 if (obj3) {
4391 {
4392 arg4 = &temp4;
4393 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4394 }
4395 }
4396 if (obj4) {
4397 {
4398 arg5 = &temp5;
4399 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4400 }
4401 }
4402 if (obj5) {
4403 arg6 = (long) SWIG_AsLong(obj5);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 if (obj6) {
4407 {
4408 arg7 = wxString_in_helper(obj6);
4409 if (arg7 == NULL) SWIG_fail;
4410 temp7 = True;
4411 }
4412 }
4413 {
4414 PyThreadState* __tstate = wxPyBeginAllowThreads();
4415 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4416
4417 wxPyEndAllowThreads(__tstate);
4418 if (PyErr_Occurred()) SWIG_fail;
4419 }
4420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4421 {
4422 if (temp7)
4423 delete arg7;
4424 }
4425 return resultobj;
4426 fail:
4427 {
4428 if (temp7)
4429 delete arg7;
4430 }
4431 return NULL;
4432 }
4433
4434
4435 static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4436 PyObject *resultobj;
4437 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4438 bool result;
4439 PyObject * obj0 = 0 ;
4440 char *kwnames[] = {
4441 (char *) "self", NULL
4442 };
4443
4444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4447 {
4448 PyThreadState* __tstate = wxPyBeginAllowThreads();
4449 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4450
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4455 return resultobj;
4456 fail:
4457 return NULL;
4458 }
4459
4460
4461 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4462 PyObject *resultobj;
4463 int result;
4464 char *kwnames[] = {
4465 NULL
4466 };
4467
4468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4469 {
4470 PyThreadState* __tstate = wxPyBeginAllowThreads();
4471 result = (int)wxStaticLine::GetDefaultSize();
4472
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_FromInt((int)result);
4477 return resultobj;
4478 fail:
4479 return NULL;
4480 }
4481
4482
4483 static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4484 PyObject *obj;
4485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4486 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4487 Py_INCREF(obj);
4488 return Py_BuildValue((char *)"");
4489 }
4490 static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4491 PyObject *resultobj;
4492 wxWindow *arg1 = (wxWindow *) 0 ;
4493 int arg2 ;
4494 wxString *arg3 = 0 ;
4495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4497 wxSize const &arg5_defvalue = wxDefaultSize ;
4498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4499 long arg6 = (long) 0 ;
4500 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4501 wxString *arg7 = (wxString *) &arg7_defvalue ;
4502 wxStaticText *result;
4503 bool temp3 = False ;
4504 wxPoint temp4 ;
4505 wxSize temp5 ;
4506 bool temp7 = False ;
4507 PyObject * obj0 = 0 ;
4508 PyObject * obj1 = 0 ;
4509 PyObject * obj2 = 0 ;
4510 PyObject * obj3 = 0 ;
4511 PyObject * obj4 = 0 ;
4512 PyObject * obj5 = 0 ;
4513 PyObject * obj6 = 0 ;
4514 char *kwnames[] = {
4515 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4516 };
4517
4518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4521 arg2 = (int) SWIG_AsInt(obj1);
4522 if (PyErr_Occurred()) SWIG_fail;
4523 {
4524 arg3 = wxString_in_helper(obj2);
4525 if (arg3 == NULL) SWIG_fail;
4526 temp3 = True;
4527 }
4528 if (obj3) {
4529 {
4530 arg4 = &temp4;
4531 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4532 }
4533 }
4534 if (obj4) {
4535 {
4536 arg5 = &temp5;
4537 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4538 }
4539 }
4540 if (obj5) {
4541 arg6 = (long) SWIG_AsLong(obj5);
4542 if (PyErr_Occurred()) SWIG_fail;
4543 }
4544 if (obj6) {
4545 {
4546 arg7 = wxString_in_helper(obj6);
4547 if (arg7 == NULL) SWIG_fail;
4548 temp7 = True;
4549 }
4550 }
4551 {
4552 PyThreadState* __tstate = wxPyBeginAllowThreads();
4553 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4554
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4559 {
4560 if (temp3)
4561 delete arg3;
4562 }
4563 {
4564 if (temp7)
4565 delete arg7;
4566 }
4567 return resultobj;
4568 fail:
4569 {
4570 if (temp3)
4571 delete arg3;
4572 }
4573 {
4574 if (temp7)
4575 delete arg7;
4576 }
4577 return NULL;
4578 }
4579
4580
4581 static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4582 PyObject *resultobj;
4583 wxStaticText *result;
4584 char *kwnames[] = {
4585 NULL
4586 };
4587
4588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4589 {
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 result = (wxStaticText *)new wxStaticText();
4592
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4597 return resultobj;
4598 fail:
4599 return NULL;
4600 }
4601
4602
4603 static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4604 PyObject *resultobj;
4605 wxStaticText *arg1 = (wxStaticText *) 0 ;
4606 wxWindow *arg2 = (wxWindow *) 0 ;
4607 int arg3 ;
4608 wxString *arg4 = 0 ;
4609 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4610 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4611 wxSize const &arg6_defvalue = wxDefaultSize ;
4612 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4613 long arg7 = (long) 0 ;
4614 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4615 wxString *arg8 = (wxString *) &arg8_defvalue ;
4616 bool result;
4617 bool temp4 = False ;
4618 wxPoint temp5 ;
4619 wxSize temp6 ;
4620 bool temp8 = False ;
4621 PyObject * obj0 = 0 ;
4622 PyObject * obj1 = 0 ;
4623 PyObject * obj2 = 0 ;
4624 PyObject * obj3 = 0 ;
4625 PyObject * obj4 = 0 ;
4626 PyObject * obj5 = 0 ;
4627 PyObject * obj6 = 0 ;
4628 PyObject * obj7 = 0 ;
4629 char *kwnames[] = {
4630 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4631 };
4632
4633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
4635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4636 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4638 arg3 = (int) SWIG_AsInt(obj2);
4639 if (PyErr_Occurred()) SWIG_fail;
4640 {
4641 arg4 = wxString_in_helper(obj3);
4642 if (arg4 == NULL) SWIG_fail;
4643 temp4 = True;
4644 }
4645 if (obj4) {
4646 {
4647 arg5 = &temp5;
4648 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4649 }
4650 }
4651 if (obj5) {
4652 {
4653 arg6 = &temp6;
4654 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4655 }
4656 }
4657 if (obj6) {
4658 arg7 = (long) SWIG_AsLong(obj6);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 if (obj7) {
4662 {
4663 arg8 = wxString_in_helper(obj7);
4664 if (arg8 == NULL) SWIG_fail;
4665 temp8 = True;
4666 }
4667 }
4668 {
4669 PyThreadState* __tstate = wxPyBeginAllowThreads();
4670 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4671
4672 wxPyEndAllowThreads(__tstate);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 }
4675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4676 {
4677 if (temp4)
4678 delete arg4;
4679 }
4680 {
4681 if (temp8)
4682 delete arg8;
4683 }
4684 return resultobj;
4685 fail:
4686 {
4687 if (temp4)
4688 delete arg4;
4689 }
4690 {
4691 if (temp8)
4692 delete arg8;
4693 }
4694 return NULL;
4695 }
4696
4697
4698 static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
4699 PyObject *obj;
4700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4701 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
4702 Py_INCREF(obj);
4703 return Py_BuildValue((char *)"");
4704 }
4705 static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4706 PyObject *resultobj;
4707 wxWindow *arg1 = (wxWindow *) 0 ;
4708 int arg2 ;
4709 wxBitmap *arg3 = 0 ;
4710 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4711 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4712 wxSize const &arg5_defvalue = wxDefaultSize ;
4713 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4714 long arg6 = (long) 0 ;
4715 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
4716 wxString *arg7 = (wxString *) &arg7_defvalue ;
4717 wxStaticBitmap *result;
4718 wxPoint temp4 ;
4719 wxSize temp5 ;
4720 bool temp7 = False ;
4721 PyObject * obj0 = 0 ;
4722 PyObject * obj1 = 0 ;
4723 PyObject * obj2 = 0 ;
4724 PyObject * obj3 = 0 ;
4725 PyObject * obj4 = 0 ;
4726 PyObject * obj5 = 0 ;
4727 PyObject * obj6 = 0 ;
4728 char *kwnames[] = {
4729 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4730 };
4731
4732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4735 arg2 = (int) SWIG_AsInt(obj1);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
4738 SWIG_POINTER_EXCEPTION | 0)) == -1)
4739 SWIG_fail;
4740 if (arg3 == NULL) {
4741 PyErr_SetString(PyExc_TypeError,"null reference");
4742 SWIG_fail;
4743 }
4744 if (obj3) {
4745 {
4746 arg4 = &temp4;
4747 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4748 }
4749 }
4750 if (obj4) {
4751 {
4752 arg5 = &temp5;
4753 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4754 }
4755 }
4756 if (obj5) {
4757 arg6 = (long) SWIG_AsLong(obj5);
4758 if (PyErr_Occurred()) SWIG_fail;
4759 }
4760 if (obj6) {
4761 {
4762 arg7 = wxString_in_helper(obj6);
4763 if (arg7 == NULL) SWIG_fail;
4764 temp7 = True;
4765 }
4766 }
4767 {
4768 PyThreadState* __tstate = wxPyBeginAllowThreads();
4769 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4770
4771 wxPyEndAllowThreads(__tstate);
4772 if (PyErr_Occurred()) SWIG_fail;
4773 }
4774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
4775 {
4776 if (temp7)
4777 delete arg7;
4778 }
4779 return resultobj;
4780 fail:
4781 {
4782 if (temp7)
4783 delete arg7;
4784 }
4785 return NULL;
4786 }
4787
4788
4789 static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4790 PyObject *resultobj;
4791 wxStaticBitmap *result;
4792 char *kwnames[] = {
4793 NULL
4794 };
4795
4796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
4797 {
4798 PyThreadState* __tstate = wxPyBeginAllowThreads();
4799 result = (wxStaticBitmap *)new wxStaticBitmap();
4800
4801 wxPyEndAllowThreads(__tstate);
4802 if (PyErr_Occurred()) SWIG_fail;
4803 }
4804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
4805 return resultobj;
4806 fail:
4807 return NULL;
4808 }
4809
4810
4811 static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4812 PyObject *resultobj;
4813 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4814 wxWindow *arg2 = (wxWindow *) 0 ;
4815 int arg3 ;
4816 wxBitmap *arg4 = 0 ;
4817 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4818 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4819 wxSize const &arg6_defvalue = wxDefaultSize ;
4820 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4821 long arg7 = (long) 0 ;
4822 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
4823 wxString *arg8 = (wxString *) &arg8_defvalue ;
4824 bool result;
4825 wxPoint temp5 ;
4826 wxSize temp6 ;
4827 bool temp8 = False ;
4828 PyObject * obj0 = 0 ;
4829 PyObject * obj1 = 0 ;
4830 PyObject * obj2 = 0 ;
4831 PyObject * obj3 = 0 ;
4832 PyObject * obj4 = 0 ;
4833 PyObject * obj5 = 0 ;
4834 PyObject * obj6 = 0 ;
4835 PyObject * obj7 = 0 ;
4836 char *kwnames[] = {
4837 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4838 };
4839
4840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4845 arg3 = (int) SWIG_AsInt(obj2);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
4848 SWIG_POINTER_EXCEPTION | 0)) == -1)
4849 SWIG_fail;
4850 if (arg4 == NULL) {
4851 PyErr_SetString(PyExc_TypeError,"null reference");
4852 SWIG_fail;
4853 }
4854 if (obj4) {
4855 {
4856 arg5 = &temp5;
4857 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4858 }
4859 }
4860 if (obj5) {
4861 {
4862 arg6 = &temp6;
4863 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4864 }
4865 }
4866 if (obj6) {
4867 arg7 = (long) SWIG_AsLong(obj6);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 if (obj7) {
4871 {
4872 arg8 = wxString_in_helper(obj7);
4873 if (arg8 == NULL) SWIG_fail;
4874 temp8 = True;
4875 }
4876 }
4877 {
4878 PyThreadState* __tstate = wxPyBeginAllowThreads();
4879 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4880
4881 wxPyEndAllowThreads(__tstate);
4882 if (PyErr_Occurred()) SWIG_fail;
4883 }
4884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4885 {
4886 if (temp8)
4887 delete arg8;
4888 }
4889 return resultobj;
4890 fail:
4891 {
4892 if (temp8)
4893 delete arg8;
4894 }
4895 return NULL;
4896 }
4897
4898
4899 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4900 PyObject *resultobj;
4901 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4902 wxBitmap result;
4903 PyObject * obj0 = 0 ;
4904 char *kwnames[] = {
4905 (char *) "self", NULL
4906 };
4907
4908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
4909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4911 {
4912 PyThreadState* __tstate = wxPyBeginAllowThreads();
4913 result = (arg1)->GetBitmap();
4914
4915 wxPyEndAllowThreads(__tstate);
4916 if (PyErr_Occurred()) SWIG_fail;
4917 }
4918 {
4919 wxBitmap * resultptr;
4920 resultptr = new wxBitmap((wxBitmap &) result);
4921 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
4922 }
4923 return resultobj;
4924 fail:
4925 return NULL;
4926 }
4927
4928
4929 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4930 PyObject *resultobj;
4931 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4932 wxBitmap *arg2 = 0 ;
4933 PyObject * obj0 = 0 ;
4934 PyObject * obj1 = 0 ;
4935 char *kwnames[] = {
4936 (char *) "self",(char *) "bitmap", NULL
4937 };
4938
4939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
4940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4942 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4943 SWIG_POINTER_EXCEPTION | 0)) == -1)
4944 SWIG_fail;
4945 if (arg2 == NULL) {
4946 PyErr_SetString(PyExc_TypeError,"null reference");
4947 SWIG_fail;
4948 }
4949 {
4950 PyThreadState* __tstate = wxPyBeginAllowThreads();
4951 (arg1)->SetBitmap((wxBitmap const &)*arg2);
4952
4953 wxPyEndAllowThreads(__tstate);
4954 if (PyErr_Occurred()) SWIG_fail;
4955 }
4956 Py_INCREF(Py_None); resultobj = Py_None;
4957 return resultobj;
4958 fail:
4959 return NULL;
4960 }
4961
4962
4963 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4964 PyObject *resultobj;
4965 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4966 wxIcon *arg2 = 0 ;
4967 PyObject * obj0 = 0 ;
4968 PyObject * obj1 = 0 ;
4969 char *kwnames[] = {
4970 (char *) "self",(char *) "icon", NULL
4971 };
4972
4973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
4974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4976 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4977 SWIG_POINTER_EXCEPTION | 0)) == -1)
4978 SWIG_fail;
4979 if (arg2 == NULL) {
4980 PyErr_SetString(PyExc_TypeError,"null reference");
4981 SWIG_fail;
4982 }
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 (arg1)->SetIcon((wxIcon const &)*arg2);
4986
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 Py_INCREF(Py_None); resultobj = Py_None;
4991 return resultobj;
4992 fail:
4993 return NULL;
4994 }
4995
4996
4997 static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
4998 PyObject *obj;
4999 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5000 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5001 Py_INCREF(obj);
5002 return Py_BuildValue((char *)"");
5003 }
5004 static int _wrap_ListBoxNameStr_set(PyObject *_val) {
5005 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5006 return 1;
5007 }
5008
5009
5010 static PyObject *_wrap_ListBoxNameStr_get() {
5011 PyObject *pyobj;
5012
5013 {
5014 #if wxUSE_UNICODE
5015 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5016 #else
5017 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5018 #endif
5019 }
5020 return pyobj;
5021 }
5022
5023
5024 static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5025 PyObject *resultobj;
5026 wxWindow *arg1 = (wxWindow *) 0 ;
5027 int arg2 ;
5028 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5029 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5030 wxSize const &arg4_defvalue = wxDefaultSize ;
5031 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5032 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5033 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5034 long arg6 = (long) 0 ;
5035 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5036 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5037 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5038 wxString *arg8 = (wxString *) &arg8_defvalue ;
5039 wxListBox *result;
5040 wxPoint temp3 ;
5041 wxSize temp4 ;
5042 bool temp5 = False ;
5043 bool temp8 = False ;
5044 PyObject * obj0 = 0 ;
5045 PyObject * obj1 = 0 ;
5046 PyObject * obj2 = 0 ;
5047 PyObject * obj3 = 0 ;
5048 PyObject * obj4 = 0 ;
5049 PyObject * obj5 = 0 ;
5050 PyObject * obj6 = 0 ;
5051 PyObject * obj7 = 0 ;
5052 char *kwnames[] = {
5053 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5054 };
5055
5056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5059 arg2 = (int) SWIG_AsInt(obj1);
5060 if (PyErr_Occurred()) SWIG_fail;
5061 if (obj2) {
5062 {
5063 arg3 = &temp3;
5064 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5065 }
5066 }
5067 if (obj3) {
5068 {
5069 arg4 = &temp4;
5070 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5071 }
5072 }
5073 if (obj4) {
5074 {
5075 if (! PySequence_Check(obj4)) {
5076 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5077 SWIG_fail;
5078 }
5079 arg5 = new wxArrayString;
5080 temp5 = True;
5081 int i, len=PySequence_Length(obj4);
5082 for (i=0; i<len; i++) {
5083 PyObject* item = PySequence_GetItem(obj4, i);
5084 #if wxUSE_UNICODE
5085 PyObject* str = PyObject_Unicode(item);
5086 #else
5087 PyObject* str = PyObject_Str(item);
5088 #endif
5089 arg5->Add(Py2wxString(str));
5090 Py_DECREF(item);
5091 Py_DECREF(str);
5092 }
5093 }
5094 }
5095 if (obj5) {
5096 arg6 = (long) SWIG_AsLong(obj5);
5097 if (PyErr_Occurred()) SWIG_fail;
5098 }
5099 if (obj6) {
5100 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5101 SWIG_POINTER_EXCEPTION | 0)) == -1)
5102 SWIG_fail;
5103 if (arg7 == NULL) {
5104 PyErr_SetString(PyExc_TypeError,"null reference");
5105 SWIG_fail;
5106 }
5107 }
5108 if (obj7) {
5109 {
5110 arg8 = wxString_in_helper(obj7);
5111 if (arg8 == NULL) SWIG_fail;
5112 temp8 = True;
5113 }
5114 }
5115 {
5116 PyThreadState* __tstate = wxPyBeginAllowThreads();
5117 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5118
5119 wxPyEndAllowThreads(__tstate);
5120 if (PyErr_Occurred()) SWIG_fail;
5121 }
5122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5123 {
5124 if (temp5) delete arg5;
5125 }
5126 {
5127 if (temp8)
5128 delete arg8;
5129 }
5130 return resultobj;
5131 fail:
5132 {
5133 if (temp5) delete arg5;
5134 }
5135 {
5136 if (temp8)
5137 delete arg8;
5138 }
5139 return NULL;
5140 }
5141
5142
5143 static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5144 PyObject *resultobj;
5145 wxListBox *result;
5146 char *kwnames[] = {
5147 NULL
5148 };
5149
5150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5151 {
5152 PyThreadState* __tstate = wxPyBeginAllowThreads();
5153 result = (wxListBox *)new wxListBox();
5154
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5159 return resultobj;
5160 fail:
5161 return NULL;
5162 }
5163
5164
5165 static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5166 PyObject *resultobj;
5167 wxListBox *arg1 = (wxListBox *) 0 ;
5168 wxWindow *arg2 = (wxWindow *) 0 ;
5169 int arg3 ;
5170 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5171 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5172 wxSize const &arg5_defvalue = wxDefaultSize ;
5173 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5174 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5175 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5176 long arg7 = (long) 0 ;
5177 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5178 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5179 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5180 wxString *arg9 = (wxString *) &arg9_defvalue ;
5181 bool result;
5182 wxPoint temp4 ;
5183 wxSize temp5 ;
5184 bool temp6 = False ;
5185 bool temp9 = False ;
5186 PyObject * obj0 = 0 ;
5187 PyObject * obj1 = 0 ;
5188 PyObject * obj2 = 0 ;
5189 PyObject * obj3 = 0 ;
5190 PyObject * obj4 = 0 ;
5191 PyObject * obj5 = 0 ;
5192 PyObject * obj6 = 0 ;
5193 PyObject * obj7 = 0 ;
5194 PyObject * obj8 = 0 ;
5195 char *kwnames[] = {
5196 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5197 };
5198
5199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5204 arg3 = (int) SWIG_AsInt(obj2);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 if (obj3) {
5207 {
5208 arg4 = &temp4;
5209 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5210 }
5211 }
5212 if (obj4) {
5213 {
5214 arg5 = &temp5;
5215 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5216 }
5217 }
5218 if (obj5) {
5219 {
5220 if (! PySequence_Check(obj5)) {
5221 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5222 SWIG_fail;
5223 }
5224 arg6 = new wxArrayString;
5225 temp6 = True;
5226 int i, len=PySequence_Length(obj5);
5227 for (i=0; i<len; i++) {
5228 PyObject* item = PySequence_GetItem(obj5, i);
5229 #if wxUSE_UNICODE
5230 PyObject* str = PyObject_Unicode(item);
5231 #else
5232 PyObject* str = PyObject_Str(item);
5233 #endif
5234 arg6->Add(Py2wxString(str));
5235 Py_DECREF(item);
5236 Py_DECREF(str);
5237 }
5238 }
5239 }
5240 if (obj6) {
5241 arg7 = (long) SWIG_AsLong(obj6);
5242 if (PyErr_Occurred()) SWIG_fail;
5243 }
5244 if (obj7) {
5245 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5246 SWIG_POINTER_EXCEPTION | 0)) == -1)
5247 SWIG_fail;
5248 if (arg8 == NULL) {
5249 PyErr_SetString(PyExc_TypeError,"null reference");
5250 SWIG_fail;
5251 }
5252 }
5253 if (obj8) {
5254 {
5255 arg9 = wxString_in_helper(obj8);
5256 if (arg9 == NULL) SWIG_fail;
5257 temp9 = True;
5258 }
5259 }
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5263
5264 wxPyEndAllowThreads(__tstate);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 }
5267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5268 {
5269 if (temp6) delete arg6;
5270 }
5271 {
5272 if (temp9)
5273 delete arg9;
5274 }
5275 return resultobj;
5276 fail:
5277 {
5278 if (temp6) delete arg6;
5279 }
5280 {
5281 if (temp9)
5282 delete arg9;
5283 }
5284 return NULL;
5285 }
5286
5287
5288 static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5289 PyObject *resultobj;
5290 wxListBox *arg1 = (wxListBox *) 0 ;
5291 wxString *arg2 = 0 ;
5292 int arg3 ;
5293 PyObject *arg4 = (PyObject *) NULL ;
5294 bool temp2 = False ;
5295 PyObject * obj0 = 0 ;
5296 PyObject * obj1 = 0 ;
5297 PyObject * obj2 = 0 ;
5298 PyObject * obj3 = 0 ;
5299 char *kwnames[] = {
5300 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5301 };
5302
5303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5306 {
5307 arg2 = wxString_in_helper(obj1);
5308 if (arg2 == NULL) SWIG_fail;
5309 temp2 = True;
5310 }
5311 arg3 = (int) SWIG_AsInt(obj2);
5312 if (PyErr_Occurred()) SWIG_fail;
5313 if (obj3) {
5314 arg4 = obj3;
5315 }
5316 {
5317 PyThreadState* __tstate = wxPyBeginAllowThreads();
5318 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5319
5320 wxPyEndAllowThreads(__tstate);
5321 if (PyErr_Occurred()) SWIG_fail;
5322 }
5323 Py_INCREF(Py_None); resultobj = Py_None;
5324 {
5325 if (temp2)
5326 delete arg2;
5327 }
5328 return resultobj;
5329 fail:
5330 {
5331 if (temp2)
5332 delete arg2;
5333 }
5334 return NULL;
5335 }
5336
5337
5338 static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj;
5340 wxListBox *arg1 = (wxListBox *) 0 ;
5341 wxArrayString *arg2 = 0 ;
5342 int arg3 ;
5343 bool temp2 = False ;
5344 PyObject * obj0 = 0 ;
5345 PyObject * obj1 = 0 ;
5346 PyObject * obj2 = 0 ;
5347 char *kwnames[] = {
5348 (char *) "self",(char *) "items",(char *) "pos", NULL
5349 };
5350
5351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5354 {
5355 if (! PySequence_Check(obj1)) {
5356 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5357 SWIG_fail;
5358 }
5359 arg2 = new wxArrayString;
5360 temp2 = True;
5361 int i, len=PySequence_Length(obj1);
5362 for (i=0; i<len; i++) {
5363 PyObject* item = PySequence_GetItem(obj1, i);
5364 #if wxUSE_UNICODE
5365 PyObject* str = PyObject_Unicode(item);
5366 #else
5367 PyObject* str = PyObject_Str(item);
5368 #endif
5369 arg2->Add(Py2wxString(str));
5370 Py_DECREF(item);
5371 Py_DECREF(str);
5372 }
5373 }
5374 arg3 = (int) SWIG_AsInt(obj2);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 {
5377 PyThreadState* __tstate = wxPyBeginAllowThreads();
5378 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5379
5380 wxPyEndAllowThreads(__tstate);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 }
5383 Py_INCREF(Py_None); resultobj = Py_None;
5384 {
5385 if (temp2) delete arg2;
5386 }
5387 return resultobj;
5388 fail:
5389 {
5390 if (temp2) delete arg2;
5391 }
5392 return NULL;
5393 }
5394
5395
5396 static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5397 PyObject *resultobj;
5398 wxListBox *arg1 = (wxListBox *) 0 ;
5399 wxArrayString *arg2 = 0 ;
5400 bool temp2 = False ;
5401 PyObject * obj0 = 0 ;
5402 PyObject * obj1 = 0 ;
5403 char *kwnames[] = {
5404 (char *) "self",(char *) "items", NULL
5405 };
5406
5407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5410 {
5411 if (! PySequence_Check(obj1)) {
5412 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5413 SWIG_fail;
5414 }
5415 arg2 = new wxArrayString;
5416 temp2 = True;
5417 int i, len=PySequence_Length(obj1);
5418 for (i=0; i<len; i++) {
5419 PyObject* item = PySequence_GetItem(obj1, i);
5420 #if wxUSE_UNICODE
5421 PyObject* str = PyObject_Unicode(item);
5422 #else
5423 PyObject* str = PyObject_Str(item);
5424 #endif
5425 arg2->Add(Py2wxString(str));
5426 Py_DECREF(item);
5427 Py_DECREF(str);
5428 }
5429 }
5430 {
5431 PyThreadState* __tstate = wxPyBeginAllowThreads();
5432 (arg1)->Set((wxArrayString const &)*arg2);
5433
5434 wxPyEndAllowThreads(__tstate);
5435 if (PyErr_Occurred()) SWIG_fail;
5436 }
5437 Py_INCREF(Py_None); resultobj = Py_None;
5438 {
5439 if (temp2) delete arg2;
5440 }
5441 return resultobj;
5442 fail:
5443 {
5444 if (temp2) delete arg2;
5445 }
5446 return NULL;
5447 }
5448
5449
5450 static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj;
5452 wxListBox *arg1 = (wxListBox *) 0 ;
5453 int arg2 ;
5454 bool result;
5455 PyObject * obj0 = 0 ;
5456 PyObject * obj1 = 0 ;
5457 char *kwnames[] = {
5458 (char *) "self",(char *) "n", NULL
5459 };
5460
5461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5464 arg2 = (int) SWIG_AsInt(obj1);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 {
5467 PyThreadState* __tstate = wxPyBeginAllowThreads();
5468 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5469
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5474 return resultobj;
5475 fail:
5476 return NULL;
5477 }
5478
5479
5480 static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5481 PyObject *resultobj;
5482 wxListBox *arg1 = (wxListBox *) 0 ;
5483 int arg2 ;
5484 bool arg3 = (bool) True ;
5485 PyObject * obj0 = 0 ;
5486 PyObject * obj1 = 0 ;
5487 PyObject * obj2 = 0 ;
5488 char *kwnames[] = {
5489 (char *) "self",(char *) "n",(char *) "select", NULL
5490 };
5491
5492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5495 arg2 = (int) SWIG_AsInt(obj1);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 if (obj2) {
5498 arg3 = (bool) SWIG_AsBool(obj2);
5499 if (PyErr_Occurred()) SWIG_fail;
5500 }
5501 {
5502 PyThreadState* __tstate = wxPyBeginAllowThreads();
5503 (arg1)->SetSelection(arg2,arg3);
5504
5505 wxPyEndAllowThreads(__tstate);
5506 if (PyErr_Occurred()) SWIG_fail;
5507 }
5508 Py_INCREF(Py_None); resultobj = Py_None;
5509 return resultobj;
5510 fail:
5511 return NULL;
5512 }
5513
5514
5515 static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5516 PyObject *resultobj;
5517 wxListBox *arg1 = (wxListBox *) 0 ;
5518 int arg2 ;
5519 PyObject * obj0 = 0 ;
5520 PyObject * obj1 = 0 ;
5521 char *kwnames[] = {
5522 (char *) "self",(char *) "n", NULL
5523 };
5524
5525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5528 arg2 = (int) SWIG_AsInt(obj1);
5529 if (PyErr_Occurred()) SWIG_fail;
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 (arg1)->Select(arg2);
5533
5534 wxPyEndAllowThreads(__tstate);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 }
5537 Py_INCREF(Py_None); resultobj = Py_None;
5538 return resultobj;
5539 fail:
5540 return NULL;
5541 }
5542
5543
5544 static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5545 PyObject *resultobj;
5546 wxListBox *arg1 = (wxListBox *) 0 ;
5547 int arg2 ;
5548 PyObject * obj0 = 0 ;
5549 PyObject * obj1 = 0 ;
5550 char *kwnames[] = {
5551 (char *) "self",(char *) "n", NULL
5552 };
5553
5554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
5555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5557 arg2 = (int) SWIG_AsInt(obj1);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 {
5560 PyThreadState* __tstate = wxPyBeginAllowThreads();
5561 (arg1)->Deselect(arg2);
5562
5563 wxPyEndAllowThreads(__tstate);
5564 if (PyErr_Occurred()) SWIG_fail;
5565 }
5566 Py_INCREF(Py_None); resultobj = Py_None;
5567 return resultobj;
5568 fail:
5569 return NULL;
5570 }
5571
5572
5573 static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
5574 PyObject *resultobj;
5575 wxListBox *arg1 = (wxListBox *) 0 ;
5576 int arg2 = (int) -1 ;
5577 PyObject * obj0 = 0 ;
5578 PyObject * obj1 = 0 ;
5579 char *kwnames[] = {
5580 (char *) "self",(char *) "itemToLeaveSelected", NULL
5581 };
5582
5583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
5584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5586 if (obj1) {
5587 arg2 = (int) SWIG_AsInt(obj1);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 (arg1)->DeselectAll(arg2);
5593
5594 wxPyEndAllowThreads(__tstate);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 Py_INCREF(Py_None); resultobj = Py_None;
5598 return resultobj;
5599 fail:
5600 return NULL;
5601 }
5602
5603
5604 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5605 PyObject *resultobj;
5606 wxListBox *arg1 = (wxListBox *) 0 ;
5607 wxString *arg2 = 0 ;
5608 bool arg3 = (bool) True ;
5609 bool result;
5610 bool temp2 = False ;
5611 PyObject * obj0 = 0 ;
5612 PyObject * obj1 = 0 ;
5613 PyObject * obj2 = 0 ;
5614 char *kwnames[] = {
5615 (char *) "self",(char *) "s",(char *) "select", NULL
5616 };
5617
5618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5621 {
5622 arg2 = wxString_in_helper(obj1);
5623 if (arg2 == NULL) SWIG_fail;
5624 temp2 = True;
5625 }
5626 if (obj2) {
5627 arg3 = (bool) SWIG_AsBool(obj2);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 {
5631 PyThreadState* __tstate = wxPyBeginAllowThreads();
5632 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
5633
5634 wxPyEndAllowThreads(__tstate);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5638 {
5639 if (temp2)
5640 delete arg2;
5641 }
5642 return resultobj;
5643 fail:
5644 {
5645 if (temp2)
5646 delete arg2;
5647 }
5648 return NULL;
5649 }
5650
5651
5652 static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj;
5654 wxListBox *arg1 = (wxListBox *) 0 ;
5655 PyObject *result;
5656 PyObject * obj0 = 0 ;
5657 char *kwnames[] = {
5658 (char *) "self", NULL
5659 };
5660
5661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
5662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 result = (PyObject *)wxListBox_GetSelections(arg1);
5667
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 resultobj = result;
5672 return resultobj;
5673 fail:
5674 return NULL;
5675 }
5676
5677
5678 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj;
5680 wxListBox *arg1 = (wxListBox *) 0 ;
5681 int arg2 ;
5682 PyObject * obj0 = 0 ;
5683 PyObject * obj1 = 0 ;
5684 char *kwnames[] = {
5685 (char *) "self",(char *) "n", NULL
5686 };
5687
5688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
5689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5691 arg2 = (int) SWIG_AsInt(obj1);
5692 if (PyErr_Occurred()) SWIG_fail;
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 (arg1)->SetFirstItem(arg2);
5696
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 Py_INCREF(Py_None); resultobj = Py_None;
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
5708 PyObject *resultobj;
5709 wxListBox *arg1 = (wxListBox *) 0 ;
5710 wxString *arg2 = 0 ;
5711 bool temp2 = False ;
5712 PyObject * obj0 = 0 ;
5713 PyObject * obj1 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "self",(char *) "s", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5721 {
5722 arg2 = wxString_in_helper(obj1);
5723 if (arg2 == NULL) SWIG_fail;
5724 temp2 = True;
5725 }
5726 {
5727 PyThreadState* __tstate = wxPyBeginAllowThreads();
5728 (arg1)->SetFirstItem((wxString const &)*arg2);
5729
5730 wxPyEndAllowThreads(__tstate);
5731 if (PyErr_Occurred()) SWIG_fail;
5732 }
5733 Py_INCREF(Py_None); resultobj = Py_None;
5734 {
5735 if (temp2)
5736 delete arg2;
5737 }
5738 return resultobj;
5739 fail:
5740 {
5741 if (temp2)
5742 delete arg2;
5743 }
5744 return NULL;
5745 }
5746
5747
5748 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5749 PyObject *resultobj;
5750 wxListBox *arg1 = (wxListBox *) 0 ;
5751 int arg2 ;
5752 PyObject * obj0 = 0 ;
5753 PyObject * obj1 = 0 ;
5754 char *kwnames[] = {
5755 (char *) "self",(char *) "n", NULL
5756 };
5757
5758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5761 arg2 = (int) SWIG_AsInt(obj1);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 {
5764 PyThreadState* __tstate = wxPyBeginAllowThreads();
5765 (arg1)->EnsureVisible(arg2);
5766
5767 wxPyEndAllowThreads(__tstate);
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 Py_INCREF(Py_None); resultobj = Py_None;
5771 return resultobj;
5772 fail:
5773 return NULL;
5774 }
5775
5776
5777 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj;
5779 wxListBox *arg1 = (wxListBox *) 0 ;
5780 wxString *arg2 = 0 ;
5781 bool temp2 = False ;
5782 PyObject * obj0 = 0 ;
5783 PyObject * obj1 = 0 ;
5784 char *kwnames[] = {
5785 (char *) "self",(char *) "s", NULL
5786 };
5787
5788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5791 {
5792 arg2 = wxString_in_helper(obj1);
5793 if (arg2 == NULL) SWIG_fail;
5794 temp2 = True;
5795 }
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
5799
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 Py_INCREF(Py_None); resultobj = Py_None;
5804 {
5805 if (temp2)
5806 delete arg2;
5807 }
5808 return resultobj;
5809 fail:
5810 {
5811 if (temp2)
5812 delete arg2;
5813 }
5814 return NULL;
5815 }
5816
5817
5818 static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
5819 PyObject *resultobj;
5820 wxListBox *arg1 = (wxListBox *) 0 ;
5821 bool result;
5822 PyObject * obj0 = 0 ;
5823 char *kwnames[] = {
5824 (char *) "self", NULL
5825 };
5826
5827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
5828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5830 {
5831 PyThreadState* __tstate = wxPyBeginAllowThreads();
5832 result = (bool)((wxListBox const *)arg1)->IsSorted();
5833
5834 wxPyEndAllowThreads(__tstate);
5835 if (PyErr_Occurred()) SWIG_fail;
5836 }
5837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5838 return resultobj;
5839 fail:
5840 return NULL;
5841 }
5842
5843
5844 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5845 PyObject *resultobj;
5846 wxListBox *arg1 = (wxListBox *) 0 ;
5847 int arg2 ;
5848 wxColour *arg3 = 0 ;
5849 wxColour temp3 ;
5850 PyObject * obj0 = 0 ;
5851 PyObject * obj1 = 0 ;
5852 PyObject * obj2 = 0 ;
5853 char *kwnames[] = {
5854 (char *) "self",(char *) "item",(char *) "c", NULL
5855 };
5856
5857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5860 arg2 = (int) SWIG_AsInt(obj1);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 {
5863 arg3 = &temp3;
5864 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5865 }
5866 {
5867 PyThreadState* __tstate = wxPyBeginAllowThreads();
5868 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
5869
5870 wxPyEndAllowThreads(__tstate);
5871 if (PyErr_Occurred()) SWIG_fail;
5872 }
5873 Py_INCREF(Py_None); resultobj = Py_None;
5874 return resultobj;
5875 fail:
5876 return NULL;
5877 }
5878
5879
5880 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5881 PyObject *resultobj;
5882 wxListBox *arg1 = (wxListBox *) 0 ;
5883 int arg2 ;
5884 wxColour *arg3 = 0 ;
5885 wxColour temp3 ;
5886 PyObject * obj0 = 0 ;
5887 PyObject * obj1 = 0 ;
5888 PyObject * obj2 = 0 ;
5889 char *kwnames[] = {
5890 (char *) "self",(char *) "item",(char *) "c", NULL
5891 };
5892
5893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5896 arg2 = (int) SWIG_AsInt(obj1);
5897 if (PyErr_Occurred()) SWIG_fail;
5898 {
5899 arg3 = &temp3;
5900 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5901 }
5902 {
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
5905
5906 wxPyEndAllowThreads(__tstate);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 }
5909 Py_INCREF(Py_None); resultobj = Py_None;
5910 return resultobj;
5911 fail:
5912 return NULL;
5913 }
5914
5915
5916 static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5917 PyObject *resultobj;
5918 wxListBox *arg1 = (wxListBox *) 0 ;
5919 int arg2 ;
5920 wxFont *arg3 = 0 ;
5921 PyObject * obj0 = 0 ;
5922 PyObject * obj1 = 0 ;
5923 PyObject * obj2 = 0 ;
5924 char *kwnames[] = {
5925 (char *) "self",(char *) "item",(char *) "f", NULL
5926 };
5927
5928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
5929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5931 arg2 = (int) SWIG_AsInt(obj1);
5932 if (PyErr_Occurred()) SWIG_fail;
5933 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
5934 SWIG_POINTER_EXCEPTION | 0)) == -1)
5935 SWIG_fail;
5936 if (arg3 == NULL) {
5937 PyErr_SetString(PyExc_TypeError,"null reference");
5938 SWIG_fail;
5939 }
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
5943
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 Py_INCREF(Py_None); resultobj = Py_None;
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
5955 PyObject *obj;
5956 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5957 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
5958 Py_INCREF(obj);
5959 return Py_BuildValue((char *)"");
5960 }
5961 static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxWindow *arg1 = (wxWindow *) 0 ;
5964 int arg2 ;
5965 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5966 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5967 wxSize const &arg4_defvalue = wxDefaultSize ;
5968 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5969 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5970 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5971 long arg6 = (long) 0 ;
5972 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5973 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5974 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5975 wxString *arg8 = (wxString *) &arg8_defvalue ;
5976 wxCheckListBox *result;
5977 wxPoint temp3 ;
5978 wxSize temp4 ;
5979 bool temp5 = False ;
5980 bool temp8 = False ;
5981 PyObject * obj0 = 0 ;
5982 PyObject * obj1 = 0 ;
5983 PyObject * obj2 = 0 ;
5984 PyObject * obj3 = 0 ;
5985 PyObject * obj4 = 0 ;
5986 PyObject * obj5 = 0 ;
5987 PyObject * obj6 = 0 ;
5988 PyObject * obj7 = 0 ;
5989 char *kwnames[] = {
5990 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5991 };
5992
5993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5996 arg2 = (int) SWIG_AsInt(obj1);
5997 if (PyErr_Occurred()) SWIG_fail;
5998 if (obj2) {
5999 {
6000 arg3 = &temp3;
6001 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6002 }
6003 }
6004 if (obj3) {
6005 {
6006 arg4 = &temp4;
6007 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6008 }
6009 }
6010 if (obj4) {
6011 {
6012 if (! PySequence_Check(obj4)) {
6013 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6014 SWIG_fail;
6015 }
6016 arg5 = new wxArrayString;
6017 temp5 = True;
6018 int i, len=PySequence_Length(obj4);
6019 for (i=0; i<len; i++) {
6020 PyObject* item = PySequence_GetItem(obj4, i);
6021 #if wxUSE_UNICODE
6022 PyObject* str = PyObject_Unicode(item);
6023 #else
6024 PyObject* str = PyObject_Str(item);
6025 #endif
6026 arg5->Add(Py2wxString(str));
6027 Py_DECREF(item);
6028 Py_DECREF(str);
6029 }
6030 }
6031 }
6032 if (obj5) {
6033 arg6 = (long) SWIG_AsLong(obj5);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 if (obj6) {
6037 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6038 SWIG_POINTER_EXCEPTION | 0)) == -1)
6039 SWIG_fail;
6040 if (arg7 == NULL) {
6041 PyErr_SetString(PyExc_TypeError,"null reference");
6042 SWIG_fail;
6043 }
6044 }
6045 if (obj7) {
6046 {
6047 arg8 = wxString_in_helper(obj7);
6048 if (arg8 == NULL) SWIG_fail;
6049 temp8 = True;
6050 }
6051 }
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6055
6056 wxPyEndAllowThreads(__tstate);
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6060 {
6061 if (temp5) delete arg5;
6062 }
6063 {
6064 if (temp8)
6065 delete arg8;
6066 }
6067 return resultobj;
6068 fail:
6069 {
6070 if (temp5) delete arg5;
6071 }
6072 {
6073 if (temp8)
6074 delete arg8;
6075 }
6076 return NULL;
6077 }
6078
6079
6080 static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6081 PyObject *resultobj;
6082 wxCheckListBox *result;
6083 char *kwnames[] = {
6084 NULL
6085 };
6086
6087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 result = (wxCheckListBox *)new wxCheckListBox();
6091
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6096 return resultobj;
6097 fail:
6098 return NULL;
6099 }
6100
6101
6102 static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6103 PyObject *resultobj;
6104 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6105 wxWindow *arg2 = (wxWindow *) 0 ;
6106 int arg3 ;
6107 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6108 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6109 wxSize const &arg5_defvalue = wxDefaultSize ;
6110 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6111 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6112 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6113 long arg7 = (long) 0 ;
6114 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6115 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6116 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6117 wxString *arg9 = (wxString *) &arg9_defvalue ;
6118 bool result;
6119 wxPoint temp4 ;
6120 wxSize temp5 ;
6121 bool temp6 = False ;
6122 bool temp9 = False ;
6123 PyObject * obj0 = 0 ;
6124 PyObject * obj1 = 0 ;
6125 PyObject * obj2 = 0 ;
6126 PyObject * obj3 = 0 ;
6127 PyObject * obj4 = 0 ;
6128 PyObject * obj5 = 0 ;
6129 PyObject * obj6 = 0 ;
6130 PyObject * obj7 = 0 ;
6131 PyObject * obj8 = 0 ;
6132 char *kwnames[] = {
6133 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6134 };
6135
6136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6139 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6141 arg3 = (int) SWIG_AsInt(obj2);
6142 if (PyErr_Occurred()) SWIG_fail;
6143 if (obj3) {
6144 {
6145 arg4 = &temp4;
6146 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6147 }
6148 }
6149 if (obj4) {
6150 {
6151 arg5 = &temp5;
6152 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6153 }
6154 }
6155 if (obj5) {
6156 {
6157 if (! PySequence_Check(obj5)) {
6158 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6159 SWIG_fail;
6160 }
6161 arg6 = new wxArrayString;
6162 temp6 = True;
6163 int i, len=PySequence_Length(obj5);
6164 for (i=0; i<len; i++) {
6165 PyObject* item = PySequence_GetItem(obj5, i);
6166 #if wxUSE_UNICODE
6167 PyObject* str = PyObject_Unicode(item);
6168 #else
6169 PyObject* str = PyObject_Str(item);
6170 #endif
6171 arg6->Add(Py2wxString(str));
6172 Py_DECREF(item);
6173 Py_DECREF(str);
6174 }
6175 }
6176 }
6177 if (obj6) {
6178 arg7 = (long) SWIG_AsLong(obj6);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 if (obj7) {
6182 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6183 SWIG_POINTER_EXCEPTION | 0)) == -1)
6184 SWIG_fail;
6185 if (arg8 == NULL) {
6186 PyErr_SetString(PyExc_TypeError,"null reference");
6187 SWIG_fail;
6188 }
6189 }
6190 if (obj8) {
6191 {
6192 arg9 = wxString_in_helper(obj8);
6193 if (arg9 == NULL) SWIG_fail;
6194 temp9 = True;
6195 }
6196 }
6197 {
6198 PyThreadState* __tstate = wxPyBeginAllowThreads();
6199 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6200
6201 wxPyEndAllowThreads(__tstate);
6202 if (PyErr_Occurred()) SWIG_fail;
6203 }
6204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6205 {
6206 if (temp6) delete arg6;
6207 }
6208 {
6209 if (temp9)
6210 delete arg9;
6211 }
6212 return resultobj;
6213 fail:
6214 {
6215 if (temp6) delete arg6;
6216 }
6217 {
6218 if (temp9)
6219 delete arg9;
6220 }
6221 return NULL;
6222 }
6223
6224
6225 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj;
6227 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6228 int arg2 ;
6229 bool result;
6230 PyObject * obj0 = 0 ;
6231 PyObject * obj1 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "self",(char *) "index", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6239 arg2 = (int) SWIG_AsInt(obj1);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 {
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
6243 result = (bool)(arg1)->IsChecked(arg2);
6244
6245 wxPyEndAllowThreads(__tstate);
6246 if (PyErr_Occurred()) SWIG_fail;
6247 }
6248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6249 return resultobj;
6250 fail:
6251 return NULL;
6252 }
6253
6254
6255 static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6256 PyObject *resultobj;
6257 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6258 int arg2 ;
6259 int arg3 = (int) True ;
6260 PyObject * obj0 = 0 ;
6261 PyObject * obj1 = 0 ;
6262 PyObject * obj2 = 0 ;
6263 char *kwnames[] = {
6264 (char *) "self",(char *) "index",(char *) "check", NULL
6265 };
6266
6267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6270 arg2 = (int) SWIG_AsInt(obj1);
6271 if (PyErr_Occurred()) SWIG_fail;
6272 if (obj2) {
6273 arg3 = (int) SWIG_AsInt(obj2);
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 {
6277 PyThreadState* __tstate = wxPyBeginAllowThreads();
6278 (arg1)->Check(arg2,arg3);
6279
6280 wxPyEndAllowThreads(__tstate);
6281 if (PyErr_Occurred()) SWIG_fail;
6282 }
6283 Py_INCREF(Py_None); resultobj = Py_None;
6284 return resultobj;
6285 fail:
6286 return NULL;
6287 }
6288
6289
6290 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6291 PyObject *resultobj;
6292 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6293 int result;
6294 PyObject * obj0 = 0 ;
6295 char *kwnames[] = {
6296 (char *) "self", NULL
6297 };
6298
6299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
6300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6302 {
6303 PyThreadState* __tstate = wxPyBeginAllowThreads();
6304 result = (int)(arg1)->GetItemHeight();
6305
6306 wxPyEndAllowThreads(__tstate);
6307 if (PyErr_Occurred()) SWIG_fail;
6308 }
6309 resultobj = SWIG_FromInt((int)result);
6310 return resultobj;
6311 fail:
6312 return NULL;
6313 }
6314
6315
6316 static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj;
6318 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6319 wxPoint *arg2 = 0 ;
6320 int result;
6321 wxPoint temp2 ;
6322 PyObject * obj0 = 0 ;
6323 PyObject * obj1 = 0 ;
6324 char *kwnames[] = {
6325 (char *) "self",(char *) "pt", NULL
6326 };
6327
6328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6331 {
6332 arg2 = &temp2;
6333 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6334 }
6335 {
6336 PyThreadState* __tstate = wxPyBeginAllowThreads();
6337 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6338
6339 wxPyEndAllowThreads(__tstate);
6340 if (PyErr_Occurred()) SWIG_fail;
6341 }
6342 resultobj = SWIG_FromInt((int)result);
6343 return resultobj;
6344 fail:
6345 return NULL;
6346 }
6347
6348
6349 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6350 PyObject *resultobj;
6351 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6352 int arg2 ;
6353 int arg3 ;
6354 int result;
6355 PyObject * obj0 = 0 ;
6356 PyObject * obj1 = 0 ;
6357 PyObject * obj2 = 0 ;
6358 char *kwnames[] = {
6359 (char *) "self",(char *) "x",(char *) "y", NULL
6360 };
6361
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6365 arg2 = (int) SWIG_AsInt(obj1);
6366 if (PyErr_Occurred()) SWIG_fail;
6367 arg3 = (int) SWIG_AsInt(obj2);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 {
6370 PyThreadState* __tstate = wxPyBeginAllowThreads();
6371 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6372
6373 wxPyEndAllowThreads(__tstate);
6374 if (PyErr_Occurred()) SWIG_fail;
6375 }
6376 resultobj = SWIG_FromInt((int)result);
6377 return resultobj;
6378 fail:
6379 return NULL;
6380 }
6381
6382
6383 static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6384 PyObject *obj;
6385 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6386 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6387 Py_INCREF(obj);
6388 return Py_BuildValue((char *)"");
6389 }
6390 static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6391 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6392 return 1;
6393 }
6394
6395
6396 static PyObject *_wrap_TextCtrlNameStr_get() {
6397 PyObject *pyobj;
6398
6399 {
6400 #if wxUSE_UNICODE
6401 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6402 #else
6403 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6404 #endif
6405 }
6406 return pyobj;
6407 }
6408
6409
6410 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6411 PyObject *resultobj;
6412 wxTextAttr *result;
6413
6414 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6415 {
6416 PyThreadState* __tstate = wxPyBeginAllowThreads();
6417 result = (wxTextAttr *)new wxTextAttr();
6418
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6423 return resultobj;
6424 fail:
6425 return NULL;
6426 }
6427
6428
6429 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6430 PyObject *resultobj;
6431 wxColour *arg1 = 0 ;
6432 wxColour const &arg2_defvalue = wxNullColour ;
6433 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6434 wxFont const &arg3_defvalue = wxNullFont ;
6435 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6436 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6437 wxTextAttr *result;
6438 wxColour temp1 ;
6439 wxColour temp2 ;
6440 PyObject * obj0 = 0 ;
6441 PyObject * obj1 = 0 ;
6442 PyObject * obj2 = 0 ;
6443 PyObject * obj3 = 0 ;
6444
6445 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6446 {
6447 arg1 = &temp1;
6448 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6449 }
6450 if (obj1) {
6451 {
6452 arg2 = &temp2;
6453 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6454 }
6455 }
6456 if (obj2) {
6457 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6458 SWIG_POINTER_EXCEPTION | 0)) == -1)
6459 SWIG_fail;
6460 if (arg3 == NULL) {
6461 PyErr_SetString(PyExc_TypeError,"null reference");
6462 SWIG_fail;
6463 }
6464 }
6465 if (obj3) {
6466 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 {
6470 PyThreadState* __tstate = wxPyBeginAllowThreads();
6471 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6472
6473 wxPyEndAllowThreads(__tstate);
6474 if (PyErr_Occurred()) SWIG_fail;
6475 }
6476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6477 return resultobj;
6478 fail:
6479 return NULL;
6480 }
6481
6482
6483 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6484 int argc;
6485 PyObject *argv[5];
6486 int ii;
6487
6488 argc = PyObject_Length(args);
6489 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6490 argv[ii] = PyTuple_GetItem(args,ii);
6491 }
6492 if (argc == 0) {
6493 return _wrap_new_TextAttr__SWIG_0(self,args);
6494 }
6495 if ((argc >= 1) && (argc <= 4)) {
6496 int _v;
6497 {
6498 _v = wxColour_typecheck(argv[0]);
6499 }
6500 if (_v) {
6501 if (argc <= 1) {
6502 return _wrap_new_TextAttr__SWIG_1(self,args);
6503 }
6504 {
6505 _v = wxColour_typecheck(argv[1]);
6506 }
6507 if (_v) {
6508 if (argc <= 2) {
6509 return _wrap_new_TextAttr__SWIG_1(self,args);
6510 }
6511 {
6512 void *ptr;
6513 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
6514 _v = 0;
6515 PyErr_Clear();
6516 } else {
6517 _v = 1;
6518 }
6519 }
6520 if (_v) {
6521 if (argc <= 3) {
6522 return _wrap_new_TextAttr__SWIG_1(self,args);
6523 }
6524 _v = SWIG_CheckInt(argv[3]);
6525 if (_v) {
6526 return _wrap_new_TextAttr__SWIG_1(self,args);
6527 }
6528 }
6529 }
6530 }
6531 }
6532
6533 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
6534 return NULL;
6535 }
6536
6537
6538 static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6539 PyObject *resultobj;
6540 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6541 PyObject * obj0 = 0 ;
6542 char *kwnames[] = {
6543 (char *) "self", NULL
6544 };
6545
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
6547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 delete arg1;
6552
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 Py_INCREF(Py_None); resultobj = Py_None;
6557 return resultobj;
6558 fail:
6559 return NULL;
6560 }
6561
6562
6563 static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj;
6565 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6566 PyObject * obj0 = 0 ;
6567 char *kwnames[] = {
6568 (char *) "self", NULL
6569 };
6570
6571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
6572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6574 {
6575 PyThreadState* __tstate = wxPyBeginAllowThreads();
6576 (arg1)->Init();
6577
6578 wxPyEndAllowThreads(__tstate);
6579 if (PyErr_Occurred()) SWIG_fail;
6580 }
6581 Py_INCREF(Py_None); resultobj = Py_None;
6582 return resultobj;
6583 fail:
6584 return NULL;
6585 }
6586
6587
6588 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6589 PyObject *resultobj;
6590 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6591 wxColour *arg2 = 0 ;
6592 wxColour temp2 ;
6593 PyObject * obj0 = 0 ;
6594 PyObject * obj1 = 0 ;
6595 char *kwnames[] = {
6596 (char *) "self",(char *) "colText", NULL
6597 };
6598
6599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
6600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6602 {
6603 arg2 = &temp2;
6604 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6605 }
6606 {
6607 PyThreadState* __tstate = wxPyBeginAllowThreads();
6608 (arg1)->SetTextColour((wxColour const &)*arg2);
6609
6610 wxPyEndAllowThreads(__tstate);
6611 if (PyErr_Occurred()) SWIG_fail;
6612 }
6613 Py_INCREF(Py_None); resultobj = Py_None;
6614 return resultobj;
6615 fail:
6616 return NULL;
6617 }
6618
6619
6620 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6621 PyObject *resultobj;
6622 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6623 wxColour *arg2 = 0 ;
6624 wxColour temp2 ;
6625 PyObject * obj0 = 0 ;
6626 PyObject * obj1 = 0 ;
6627 char *kwnames[] = {
6628 (char *) "self",(char *) "colBack", NULL
6629 };
6630
6631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
6632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6634 {
6635 arg2 = &temp2;
6636 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6637 }
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 Py_INCREF(Py_None); resultobj = Py_None;
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6653 PyObject *resultobj;
6654 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6655 wxFont *arg2 = 0 ;
6656 long arg3 = (long) wxTEXT_ATTR_FONT ;
6657 PyObject * obj0 = 0 ;
6658 PyObject * obj1 = 0 ;
6659 PyObject * obj2 = 0 ;
6660 char *kwnames[] = {
6661 (char *) "self",(char *) "font",(char *) "flags", NULL
6662 };
6663
6664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6667 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6668 SWIG_POINTER_EXCEPTION | 0)) == -1)
6669 SWIG_fail;
6670 if (arg2 == NULL) {
6671 PyErr_SetString(PyExc_TypeError,"null reference");
6672 SWIG_fail;
6673 }
6674 if (obj2) {
6675 arg3 = (long) SWIG_AsLong(obj2);
6676 if (PyErr_Occurred()) SWIG_fail;
6677 }
6678 {
6679 PyThreadState* __tstate = wxPyBeginAllowThreads();
6680 (arg1)->SetFont((wxFont const &)*arg2,arg3);
6681
6682 wxPyEndAllowThreads(__tstate);
6683 if (PyErr_Occurred()) SWIG_fail;
6684 }
6685 Py_INCREF(Py_None); resultobj = Py_None;
6686 return resultobj;
6687 fail:
6688 return NULL;
6689 }
6690
6691
6692 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6693 PyObject *resultobj;
6694 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6695 int arg2 ;
6696 PyObject * obj0 = 0 ;
6697 PyObject * obj1 = 0 ;
6698 char *kwnames[] = {
6699 (char *) "self",(char *) "alignment", NULL
6700 };
6701
6702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
6703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6705 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
6706 if (PyErr_Occurred()) SWIG_fail;
6707 {
6708 PyThreadState* __tstate = wxPyBeginAllowThreads();
6709 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
6710
6711 wxPyEndAllowThreads(__tstate);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 Py_INCREF(Py_None); resultobj = Py_None;
6715 return resultobj;
6716 fail:
6717 return NULL;
6718 }
6719
6720
6721 static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6722 PyObject *resultobj;
6723 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6724 wxArrayInt *arg2 = 0 ;
6725 bool temp2 = False ;
6726 PyObject * obj0 = 0 ;
6727 PyObject * obj1 = 0 ;
6728 char *kwnames[] = {
6729 (char *) "self",(char *) "tabs", NULL
6730 };
6731
6732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
6733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6735 {
6736 if (! PySequence_Check(obj1)) {
6737 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
6738 SWIG_fail;
6739 }
6740 arg2 = new wxArrayInt;
6741 temp2 = True;
6742 int i, len=PySequence_Length(obj1);
6743 for (i=0; i<len; i++) {
6744 PyObject* item = PySequence_GetItem(obj1, i);
6745 PyObject* number = PyNumber_Int(item);
6746 arg2->Add(PyInt_AS_LONG(number));
6747 Py_DECREF(item);
6748 Py_DECREF(number);
6749 }
6750 }
6751 {
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 (arg1)->SetTabs((wxArrayInt const &)*arg2);
6754
6755 wxPyEndAllowThreads(__tstate);
6756 if (PyErr_Occurred()) SWIG_fail;
6757 }
6758 Py_INCREF(Py_None); resultobj = Py_None;
6759 {
6760 if (temp2) delete arg2;
6761 }
6762 return resultobj;
6763 fail:
6764 {
6765 if (temp2) delete arg2;
6766 }
6767 return NULL;
6768 }
6769
6770
6771 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6772 PyObject *resultobj;
6773 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6774 int arg2 ;
6775 PyObject * obj0 = 0 ;
6776 PyObject * obj1 = 0 ;
6777 char *kwnames[] = {
6778 (char *) "self",(char *) "indent", NULL
6779 };
6780
6781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail;
6782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6784 arg2 = (int) SWIG_AsInt(obj1);
6785 if (PyErr_Occurred()) SWIG_fail;
6786 {
6787 PyThreadState* __tstate = wxPyBeginAllowThreads();
6788 (arg1)->SetLeftIndent(arg2);
6789
6790 wxPyEndAllowThreads(__tstate);
6791 if (PyErr_Occurred()) SWIG_fail;
6792 }
6793 Py_INCREF(Py_None); resultobj = Py_None;
6794 return resultobj;
6795 fail:
6796 return NULL;
6797 }
6798
6799
6800 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj;
6802 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6803 int arg2 ;
6804 PyObject * obj0 = 0 ;
6805 PyObject * obj1 = 0 ;
6806 char *kwnames[] = {
6807 (char *) "self",(char *) "indent", NULL
6808 };
6809
6810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
6811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6813 arg2 = (int) SWIG_AsInt(obj1);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 {
6816 PyThreadState* __tstate = wxPyBeginAllowThreads();
6817 (arg1)->SetRightIndent(arg2);
6818
6819 wxPyEndAllowThreads(__tstate);
6820 if (PyErr_Occurred()) SWIG_fail;
6821 }
6822 Py_INCREF(Py_None); resultobj = Py_None;
6823 return resultobj;
6824 fail:
6825 return NULL;
6826 }
6827
6828
6829 static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
6830 PyObject *resultobj;
6831 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6832 long arg2 ;
6833 PyObject * obj0 = 0 ;
6834 PyObject * obj1 = 0 ;
6835 char *kwnames[] = {
6836 (char *) "self",(char *) "flags", NULL
6837 };
6838
6839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
6840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6842 arg2 = (long) SWIG_AsLong(obj1);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 {
6845 PyThreadState* __tstate = wxPyBeginAllowThreads();
6846 (arg1)->SetFlags(arg2);
6847
6848 wxPyEndAllowThreads(__tstate);
6849 if (PyErr_Occurred()) SWIG_fail;
6850 }
6851 Py_INCREF(Py_None); resultobj = Py_None;
6852 return resultobj;
6853 fail:
6854 return NULL;
6855 }
6856
6857
6858 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6859 PyObject *resultobj;
6860 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6861 bool result;
6862 PyObject * obj0 = 0 ;
6863 char *kwnames[] = {
6864 (char *) "self", NULL
6865 };
6866
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
6868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6870 {
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
6873
6874 wxPyEndAllowThreads(__tstate);
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6878 return resultobj;
6879 fail:
6880 return NULL;
6881 }
6882
6883
6884 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj;
6886 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6887 bool result;
6888 PyObject * obj0 = 0 ;
6889 char *kwnames[] = {
6890 (char *) "self", NULL
6891 };
6892
6893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
6894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6896 {
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
6899
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6904 return resultobj;
6905 fail:
6906 return NULL;
6907 }
6908
6909
6910 static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj;
6912 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6913 bool result;
6914 PyObject * obj0 = 0 ;
6915 char *kwnames[] = {
6916 (char *) "self", NULL
6917 };
6918
6919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
6920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6922 {
6923 PyThreadState* __tstate = wxPyBeginAllowThreads();
6924 result = (bool)((wxTextAttr const *)arg1)->HasFont();
6925
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj;
6938 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6939 bool result;
6940 PyObject * obj0 = 0 ;
6941 char *kwnames[] = {
6942 (char *) "self", NULL
6943 };
6944
6945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
6946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6948 {
6949 PyThreadState* __tstate = wxPyBeginAllowThreads();
6950 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
6951
6952 wxPyEndAllowThreads(__tstate);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6956 return resultobj;
6957 fail:
6958 return NULL;
6959 }
6960
6961
6962 static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj;
6964 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6965 bool result;
6966 PyObject * obj0 = 0 ;
6967 char *kwnames[] = {
6968 (char *) "self", NULL
6969 };
6970
6971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
6972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6974 {
6975 PyThreadState* __tstate = wxPyBeginAllowThreads();
6976 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
6977
6978 wxPyEndAllowThreads(__tstate);
6979 if (PyErr_Occurred()) SWIG_fail;
6980 }
6981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6982 return resultobj;
6983 fail:
6984 return NULL;
6985 }
6986
6987
6988 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6989 PyObject *resultobj;
6990 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6991 bool result;
6992 PyObject * obj0 = 0 ;
6993 char *kwnames[] = {
6994 (char *) "self", NULL
6995 };
6996
6997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
6998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7000 {
7001 PyThreadState* __tstate = wxPyBeginAllowThreads();
7002 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7003
7004 wxPyEndAllowThreads(__tstate);
7005 if (PyErr_Occurred()) SWIG_fail;
7006 }
7007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7008 return resultobj;
7009 fail:
7010 return NULL;
7011 }
7012
7013
7014 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7015 PyObject *resultobj;
7016 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7017 bool result;
7018 PyObject * obj0 = 0 ;
7019 char *kwnames[] = {
7020 (char *) "self", NULL
7021 };
7022
7023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7026 {
7027 PyThreadState* __tstate = wxPyBeginAllowThreads();
7028 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7029
7030 wxPyEndAllowThreads(__tstate);
7031 if (PyErr_Occurred()) SWIG_fail;
7032 }
7033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7034 return resultobj;
7035 fail:
7036 return NULL;
7037 }
7038
7039
7040 static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
7041 PyObject *resultobj;
7042 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7043 long arg2 ;
7044 bool result;
7045 PyObject * obj0 = 0 ;
7046 PyObject * obj1 = 0 ;
7047 char *kwnames[] = {
7048 (char *) "self",(char *) "flag", NULL
7049 };
7050
7051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7054 arg2 = (long) SWIG_AsLong(obj1);
7055 if (PyErr_Occurred()) SWIG_fail;
7056 {
7057 PyThreadState* __tstate = wxPyBeginAllowThreads();
7058 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7059
7060 wxPyEndAllowThreads(__tstate);
7061 if (PyErr_Occurred()) SWIG_fail;
7062 }
7063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7064 return resultobj;
7065 fail:
7066 return NULL;
7067 }
7068
7069
7070 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7071 PyObject *resultobj;
7072 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7073 wxColour *result;
7074 PyObject * obj0 = 0 ;
7075 char *kwnames[] = {
7076 (char *) "self", NULL
7077 };
7078
7079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 {
7085 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7086 result = (wxColour *) &_result_ref;
7087 }
7088
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7093 return resultobj;
7094 fail:
7095 return NULL;
7096 }
7097
7098
7099 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7100 PyObject *resultobj;
7101 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7102 wxColour *result;
7103 PyObject * obj0 = 0 ;
7104 char *kwnames[] = {
7105 (char *) "self", NULL
7106 };
7107
7108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7111 {
7112 PyThreadState* __tstate = wxPyBeginAllowThreads();
7113 {
7114 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7115 result = (wxColour *) &_result_ref;
7116 }
7117
7118 wxPyEndAllowThreads(__tstate);
7119 if (PyErr_Occurred()) SWIG_fail;
7120 }
7121 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7122 return resultobj;
7123 fail:
7124 return NULL;
7125 }
7126
7127
7128 static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7129 PyObject *resultobj;
7130 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7131 wxFont *result;
7132 PyObject * obj0 = 0 ;
7133 char *kwnames[] = {
7134 (char *) "self", NULL
7135 };
7136
7137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7140 {
7141 PyThreadState* __tstate = wxPyBeginAllowThreads();
7142 {
7143 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7144 result = (wxFont *) &_result_ref;
7145 }
7146
7147 wxPyEndAllowThreads(__tstate);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 {
7151 wxFont* resultptr = new wxFont(*result);
7152 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7153 }
7154 return resultobj;
7155 fail:
7156 return NULL;
7157 }
7158
7159
7160 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7161 PyObject *resultobj;
7162 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7163 int result;
7164 PyObject * obj0 = 0 ;
7165 char *kwnames[] = {
7166 (char *) "self", NULL
7167 };
7168
7169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7172 {
7173 PyThreadState* __tstate = wxPyBeginAllowThreads();
7174 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7175
7176 wxPyEndAllowThreads(__tstate);
7177 if (PyErr_Occurred()) SWIG_fail;
7178 }
7179 resultobj = SWIG_FromInt((int)result);
7180 return resultobj;
7181 fail:
7182 return NULL;
7183 }
7184
7185
7186 static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7187 PyObject *resultobj;
7188 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7189 wxArrayInt *result;
7190 PyObject * obj0 = 0 ;
7191 char *kwnames[] = {
7192 (char *) "self", NULL
7193 };
7194
7195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7198 {
7199 PyThreadState* __tstate = wxPyBeginAllowThreads();
7200 {
7201 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7202 result = (wxArrayInt *) &_result_ref;
7203 }
7204
7205 wxPyEndAllowThreads(__tstate);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 }
7208 {
7209 resultobj = PyList_New(0);
7210 size_t idx;
7211 for (idx = 0; idx < result->GetCount(); idx += 1) {
7212 PyObject* val = PyInt_FromLong( result->Item(idx) );
7213 PyList_Append(resultobj, val);
7214 Py_DECREF(val);
7215 }
7216 }
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7224 PyObject *resultobj;
7225 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7226 long result;
7227 PyObject * obj0 = 0 ;
7228 char *kwnames[] = {
7229 (char *) "self", NULL
7230 };
7231
7232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7235 {
7236 PyThreadState* __tstate = wxPyBeginAllowThreads();
7237 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7238
7239 wxPyEndAllowThreads(__tstate);
7240 if (PyErr_Occurred()) SWIG_fail;
7241 }
7242 resultobj = SWIG_FromLong((long)result);
7243 return resultobj;
7244 fail:
7245 return NULL;
7246 }
7247
7248
7249 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj;
7251 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7252 long result;
7253 PyObject * obj0 = 0 ;
7254 char *kwnames[] = {
7255 (char *) "self", NULL
7256 };
7257
7258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7261 {
7262 PyThreadState* __tstate = wxPyBeginAllowThreads();
7263 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7264
7265 wxPyEndAllowThreads(__tstate);
7266 if (PyErr_Occurred()) SWIG_fail;
7267 }
7268 resultobj = SWIG_FromLong((long)result);
7269 return resultobj;
7270 fail:
7271 return NULL;
7272 }
7273
7274
7275 static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7276 PyObject *resultobj;
7277 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7278 long result;
7279 PyObject * obj0 = 0 ;
7280 char *kwnames[] = {
7281 (char *) "self", NULL
7282 };
7283
7284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7287 {
7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
7289 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7290
7291 wxPyEndAllowThreads(__tstate);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 resultobj = SWIG_FromLong((long)result);
7295 return resultobj;
7296 fail:
7297 return NULL;
7298 }
7299
7300
7301 static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7302 PyObject *resultobj;
7303 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7304 bool result;
7305 PyObject * obj0 = 0 ;
7306 char *kwnames[] = {
7307 (char *) "self", NULL
7308 };
7309
7310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7313 {
7314 PyThreadState* __tstate = wxPyBeginAllowThreads();
7315 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7316
7317 wxPyEndAllowThreads(__tstate);
7318 if (PyErr_Occurred()) SWIG_fail;
7319 }
7320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7321 return resultobj;
7322 fail:
7323 return NULL;
7324 }
7325
7326
7327 static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7328 PyObject *resultobj;
7329 wxTextAttr *arg1 = 0 ;
7330 wxTextAttr *arg2 = 0 ;
7331 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7332 wxTextAttr result;
7333 PyObject * obj0 = 0 ;
7334 PyObject * obj1 = 0 ;
7335 PyObject * obj2 = 0 ;
7336 char *kwnames[] = {
7337 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7338 };
7339
7340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7342 SWIG_POINTER_EXCEPTION | 0)) == -1)
7343 SWIG_fail;
7344 if (arg1 == NULL) {
7345 PyErr_SetString(PyExc_TypeError,"null reference");
7346 SWIG_fail;
7347 }
7348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7349 SWIG_POINTER_EXCEPTION | 0)) == -1)
7350 SWIG_fail;
7351 if (arg2 == NULL) {
7352 PyErr_SetString(PyExc_TypeError,"null reference");
7353 SWIG_fail;
7354 }
7355 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7357 {
7358 PyThreadState* __tstate = wxPyBeginAllowThreads();
7359 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7360
7361 wxPyEndAllowThreads(__tstate);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 {
7365 wxTextAttr * resultptr;
7366 resultptr = new wxTextAttr((wxTextAttr &) result);
7367 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7368 }
7369 return resultobj;
7370 fail:
7371 return NULL;
7372 }
7373
7374
7375 static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7376 PyObject *obj;
7377 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7378 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7379 Py_INCREF(obj);
7380 return Py_BuildValue((char *)"");
7381 }
7382 static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7383 PyObject *resultobj;
7384 wxWindow *arg1 = (wxWindow *) 0 ;
7385 int arg2 ;
7386 wxString const &arg3_defvalue = wxPyEmptyString ;
7387 wxString *arg3 = (wxString *) &arg3_defvalue ;
7388 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7389 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7390 wxSize const &arg5_defvalue = wxDefaultSize ;
7391 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7392 long arg6 = (long) 0 ;
7393 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7394 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7395 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7396 wxString *arg8 = (wxString *) &arg8_defvalue ;
7397 wxTextCtrl *result;
7398 bool temp3 = False ;
7399 wxPoint temp4 ;
7400 wxSize temp5 ;
7401 bool temp8 = False ;
7402 PyObject * obj0 = 0 ;
7403 PyObject * obj1 = 0 ;
7404 PyObject * obj2 = 0 ;
7405 PyObject * obj3 = 0 ;
7406 PyObject * obj4 = 0 ;
7407 PyObject * obj5 = 0 ;
7408 PyObject * obj6 = 0 ;
7409 PyObject * obj7 = 0 ;
7410 char *kwnames[] = {
7411 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7412 };
7413
7414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7417 arg2 = (int) SWIG_AsInt(obj1);
7418 if (PyErr_Occurred()) SWIG_fail;
7419 if (obj2) {
7420 {
7421 arg3 = wxString_in_helper(obj2);
7422 if (arg3 == NULL) SWIG_fail;
7423 temp3 = True;
7424 }
7425 }
7426 if (obj3) {
7427 {
7428 arg4 = &temp4;
7429 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7430 }
7431 }
7432 if (obj4) {
7433 {
7434 arg5 = &temp5;
7435 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7436 }
7437 }
7438 if (obj5) {
7439 arg6 = (long) SWIG_AsLong(obj5);
7440 if (PyErr_Occurred()) SWIG_fail;
7441 }
7442 if (obj6) {
7443 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7444 SWIG_POINTER_EXCEPTION | 0)) == -1)
7445 SWIG_fail;
7446 if (arg7 == NULL) {
7447 PyErr_SetString(PyExc_TypeError,"null reference");
7448 SWIG_fail;
7449 }
7450 }
7451 if (obj7) {
7452 {
7453 arg8 = wxString_in_helper(obj7);
7454 if (arg8 == NULL) SWIG_fail;
7455 temp8 = True;
7456 }
7457 }
7458 {
7459 PyThreadState* __tstate = wxPyBeginAllowThreads();
7460 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7461
7462 wxPyEndAllowThreads(__tstate);
7463 if (PyErr_Occurred()) SWIG_fail;
7464 }
7465 {
7466 resultobj = wxPyMake_wxObject(result);
7467 }
7468 {
7469 if (temp3)
7470 delete arg3;
7471 }
7472 {
7473 if (temp8)
7474 delete arg8;
7475 }
7476 return resultobj;
7477 fail:
7478 {
7479 if (temp3)
7480 delete arg3;
7481 }
7482 {
7483 if (temp8)
7484 delete arg8;
7485 }
7486 return NULL;
7487 }
7488
7489
7490 static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7491 PyObject *resultobj;
7492 wxTextCtrl *result;
7493 char *kwnames[] = {
7494 NULL
7495 };
7496
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
7498 {
7499 PyThreadState* __tstate = wxPyBeginAllowThreads();
7500 result = (wxTextCtrl *)new wxTextCtrl();
7501
7502 wxPyEndAllowThreads(__tstate);
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
7505 {
7506 resultobj = wxPyMake_wxObject(result);
7507 }
7508 return resultobj;
7509 fail:
7510 return NULL;
7511 }
7512
7513
7514 static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7515 PyObject *resultobj;
7516 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7517 wxWindow *arg2 = (wxWindow *) 0 ;
7518 int arg3 ;
7519 wxString const &arg4_defvalue = wxPyEmptyString ;
7520 wxString *arg4 = (wxString *) &arg4_defvalue ;
7521 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7522 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7523 wxSize const &arg6_defvalue = wxDefaultSize ;
7524 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7525 long arg7 = (long) 0 ;
7526 wxValidator const &arg8_defvalue = wxDefaultValidator ;
7527 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
7528 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
7529 wxString *arg9 = (wxString *) &arg9_defvalue ;
7530 bool result;
7531 bool temp4 = False ;
7532 wxPoint temp5 ;
7533 wxSize temp6 ;
7534 bool temp9 = False ;
7535 PyObject * obj0 = 0 ;
7536 PyObject * obj1 = 0 ;
7537 PyObject * obj2 = 0 ;
7538 PyObject * obj3 = 0 ;
7539 PyObject * obj4 = 0 ;
7540 PyObject * obj5 = 0 ;
7541 PyObject * obj6 = 0 ;
7542 PyObject * obj7 = 0 ;
7543 PyObject * obj8 = 0 ;
7544 char *kwnames[] = {
7545 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7546 };
7547
7548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
7549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7551 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7553 arg3 = (int) SWIG_AsInt(obj2);
7554 if (PyErr_Occurred()) SWIG_fail;
7555 if (obj3) {
7556 {
7557 arg4 = wxString_in_helper(obj3);
7558 if (arg4 == NULL) SWIG_fail;
7559 temp4 = True;
7560 }
7561 }
7562 if (obj4) {
7563 {
7564 arg5 = &temp5;
7565 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7566 }
7567 }
7568 if (obj5) {
7569 {
7570 arg6 = &temp6;
7571 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7572 }
7573 }
7574 if (obj6) {
7575 arg7 = (long) SWIG_AsLong(obj6);
7576 if (PyErr_Occurred()) SWIG_fail;
7577 }
7578 if (obj7) {
7579 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
7580 SWIG_POINTER_EXCEPTION | 0)) == -1)
7581 SWIG_fail;
7582 if (arg8 == NULL) {
7583 PyErr_SetString(PyExc_TypeError,"null reference");
7584 SWIG_fail;
7585 }
7586 }
7587 if (obj8) {
7588 {
7589 arg9 = wxString_in_helper(obj8);
7590 if (arg9 == NULL) SWIG_fail;
7591 temp9 = True;
7592 }
7593 }
7594 {
7595 PyThreadState* __tstate = wxPyBeginAllowThreads();
7596 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7597
7598 wxPyEndAllowThreads(__tstate);
7599 if (PyErr_Occurred()) SWIG_fail;
7600 }
7601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7602 {
7603 if (temp4)
7604 delete arg4;
7605 }
7606 {
7607 if (temp9)
7608 delete arg9;
7609 }
7610 return resultobj;
7611 fail:
7612 {
7613 if (temp4)
7614 delete arg4;
7615 }
7616 {
7617 if (temp9)
7618 delete arg9;
7619 }
7620 return NULL;
7621 }
7622
7623
7624 static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7625 PyObject *resultobj;
7626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7627 wxString result;
7628 PyObject * obj0 = 0 ;
7629 char *kwnames[] = {
7630 (char *) "self", NULL
7631 };
7632
7633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
7634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7636 {
7637 PyThreadState* __tstate = wxPyBeginAllowThreads();
7638 result = ((wxTextCtrl const *)arg1)->GetValue();
7639
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 {
7644 #if wxUSE_UNICODE
7645 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7646 #else
7647 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7648 #endif
7649 }
7650 return resultobj;
7651 fail:
7652 return NULL;
7653 }
7654
7655
7656 static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7657 PyObject *resultobj;
7658 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7659 wxString *arg2 = 0 ;
7660 bool temp2 = False ;
7661 PyObject * obj0 = 0 ;
7662 PyObject * obj1 = 0 ;
7663 char *kwnames[] = {
7664 (char *) "self",(char *) "value", NULL
7665 };
7666
7667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
7668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7670 {
7671 arg2 = wxString_in_helper(obj1);
7672 if (arg2 == NULL) SWIG_fail;
7673 temp2 = True;
7674 }
7675 {
7676 PyThreadState* __tstate = wxPyBeginAllowThreads();
7677 (arg1)->SetValue((wxString const &)*arg2);
7678
7679 wxPyEndAllowThreads(__tstate);
7680 if (PyErr_Occurred()) SWIG_fail;
7681 }
7682 Py_INCREF(Py_None); resultobj = Py_None;
7683 {
7684 if (temp2)
7685 delete arg2;
7686 }
7687 return resultobj;
7688 fail:
7689 {
7690 if (temp2)
7691 delete arg2;
7692 }
7693 return NULL;
7694 }
7695
7696
7697 static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
7698 PyObject *resultobj;
7699 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7700 long arg2 ;
7701 long arg3 ;
7702 wxString result;
7703 PyObject * obj0 = 0 ;
7704 PyObject * obj1 = 0 ;
7705 PyObject * obj2 = 0 ;
7706 char *kwnames[] = {
7707 (char *) "self",(char *) "from",(char *) "to", NULL
7708 };
7709
7710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
7711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7713 arg2 = (long) SWIG_AsLong(obj1);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 arg3 = (long) SWIG_AsLong(obj2);
7716 if (PyErr_Occurred()) SWIG_fail;
7717 {
7718 PyThreadState* __tstate = wxPyBeginAllowThreads();
7719 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
7720
7721 wxPyEndAllowThreads(__tstate);
7722 if (PyErr_Occurred()) SWIG_fail;
7723 }
7724 {
7725 #if wxUSE_UNICODE
7726 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7727 #else
7728 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7729 #endif
7730 }
7731 return resultobj;
7732 fail:
7733 return NULL;
7734 }
7735
7736
7737 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj;
7739 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7740 long arg2 ;
7741 int result;
7742 PyObject * obj0 = 0 ;
7743 PyObject * obj1 = 0 ;
7744 char *kwnames[] = {
7745 (char *) "self",(char *) "lineNo", NULL
7746 };
7747
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
7749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7751 arg2 = (long) SWIG_AsLong(obj1);
7752 if (PyErr_Occurred()) SWIG_fail;
7753 {
7754 PyThreadState* __tstate = wxPyBeginAllowThreads();
7755 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
7756
7757 wxPyEndAllowThreads(__tstate);
7758 if (PyErr_Occurred()) SWIG_fail;
7759 }
7760 resultobj = SWIG_FromInt((int)result);
7761 return resultobj;
7762 fail:
7763 return NULL;
7764 }
7765
7766
7767 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
7768 PyObject *resultobj;
7769 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7770 long arg2 ;
7771 wxString result;
7772 PyObject * obj0 = 0 ;
7773 PyObject * obj1 = 0 ;
7774 char *kwnames[] = {
7775 (char *) "self",(char *) "lineNo", NULL
7776 };
7777
7778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
7779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7781 arg2 = (long) SWIG_AsLong(obj1);
7782 if (PyErr_Occurred()) SWIG_fail;
7783 {
7784 PyThreadState* __tstate = wxPyBeginAllowThreads();
7785 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
7786
7787 wxPyEndAllowThreads(__tstate);
7788 if (PyErr_Occurred()) SWIG_fail;
7789 }
7790 {
7791 #if wxUSE_UNICODE
7792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7793 #else
7794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7795 #endif
7796 }
7797 return resultobj;
7798 fail:
7799 return NULL;
7800 }
7801
7802
7803 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7804 PyObject *resultobj;
7805 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7806 int result;
7807 PyObject * obj0 = 0 ;
7808 char *kwnames[] = {
7809 (char *) "self", NULL
7810 };
7811
7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
7813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7815 {
7816 PyThreadState* __tstate = wxPyBeginAllowThreads();
7817 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
7818
7819 wxPyEndAllowThreads(__tstate);
7820 if (PyErr_Occurred()) SWIG_fail;
7821 }
7822 resultobj = SWIG_FromInt((int)result);
7823 return resultobj;
7824 fail:
7825 return NULL;
7826 }
7827
7828
7829 static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
7830 PyObject *resultobj;
7831 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7832 bool result;
7833 PyObject * obj0 = 0 ;
7834 char *kwnames[] = {
7835 (char *) "self", NULL
7836 };
7837
7838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
7839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7841 {
7842 PyThreadState* __tstate = wxPyBeginAllowThreads();
7843 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
7844
7845 wxPyEndAllowThreads(__tstate);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 }
7848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7849 return resultobj;
7850 fail:
7851 return NULL;
7852 }
7853
7854
7855 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
7856 PyObject *resultobj;
7857 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7858 bool result;
7859 PyObject * obj0 = 0 ;
7860 char *kwnames[] = {
7861 (char *) "self", NULL
7862 };
7863
7864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
7865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7867 {
7868 PyThreadState* __tstate = wxPyBeginAllowThreads();
7869 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
7870
7871 wxPyEndAllowThreads(__tstate);
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7875 return resultobj;
7876 fail:
7877 return NULL;
7878 }
7879
7880
7881 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7882 PyObject *resultobj;
7883 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7884 bool result;
7885 PyObject * obj0 = 0 ;
7886 char *kwnames[] = {
7887 (char *) "self", NULL
7888 };
7889
7890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
7891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7893 {
7894 PyThreadState* __tstate = wxPyBeginAllowThreads();
7895 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
7896
7897 wxPyEndAllowThreads(__tstate);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7901 return resultobj;
7902 fail:
7903 return NULL;
7904 }
7905
7906
7907 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7908 PyObject *resultobj;
7909 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7910 bool result;
7911 PyObject * obj0 = 0 ;
7912 char *kwnames[] = {
7913 (char *) "self", NULL
7914 };
7915
7916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
7917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7919 {
7920 PyThreadState* __tstate = wxPyBeginAllowThreads();
7921 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
7922
7923 wxPyEndAllowThreads(__tstate);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7927 return resultobj;
7928 fail:
7929 return NULL;
7930 }
7931
7932
7933 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7934 PyObject *resultobj;
7935 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7936 long *arg2 = (long *) 0 ;
7937 long *arg3 = (long *) 0 ;
7938 long temp2 ;
7939 long temp3 ;
7940 PyObject * obj0 = 0 ;
7941 char *kwnames[] = {
7942 (char *) "self", NULL
7943 };
7944
7945 arg2 = &temp2;
7946 arg3 = &temp3;
7947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
7948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7950 {
7951 PyThreadState* __tstate = wxPyBeginAllowThreads();
7952 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
7953
7954 wxPyEndAllowThreads(__tstate);
7955 if (PyErr_Occurred()) SWIG_fail;
7956 }
7957 Py_INCREF(Py_None); resultobj = Py_None;
7958 {
7959 PyObject *o = PyInt_FromLong((long) (*arg2));
7960 resultobj = t_output_helper(resultobj,o);
7961 }
7962 {
7963 PyObject *o = PyInt_FromLong((long) (*arg3));
7964 resultobj = t_output_helper(resultobj,o);
7965 }
7966 return resultobj;
7967 fail:
7968 return NULL;
7969 }
7970
7971
7972 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7973 PyObject *resultobj;
7974 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7975 wxString result;
7976 PyObject * obj0 = 0 ;
7977 char *kwnames[] = {
7978 (char *) "self", NULL
7979 };
7980
7981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
7982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7984 {
7985 PyThreadState* __tstate = wxPyBeginAllowThreads();
7986 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
7987
7988 wxPyEndAllowThreads(__tstate);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 {
7992 #if wxUSE_UNICODE
7993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7994 #else
7995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7996 #endif
7997 }
7998 return resultobj;
7999 fail:
8000 return NULL;
8001 }
8002
8003
8004 static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8005 PyObject *resultobj;
8006 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8007 PyObject * obj0 = 0 ;
8008 char *kwnames[] = {
8009 (char *) "self", NULL
8010 };
8011
8012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8015 {
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 (arg1)->Clear();
8018
8019 wxPyEndAllowThreads(__tstate);
8020 if (PyErr_Occurred()) SWIG_fail;
8021 }
8022 Py_INCREF(Py_None); resultobj = Py_None;
8023 return resultobj;
8024 fail:
8025 return NULL;
8026 }
8027
8028
8029 static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8030 PyObject *resultobj;
8031 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8032 long arg2 ;
8033 long arg3 ;
8034 wxString *arg4 = 0 ;
8035 bool temp4 = False ;
8036 PyObject * obj0 = 0 ;
8037 PyObject * obj1 = 0 ;
8038 PyObject * obj2 = 0 ;
8039 PyObject * obj3 = 0 ;
8040 char *kwnames[] = {
8041 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8042 };
8043
8044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8047 arg2 = (long) SWIG_AsLong(obj1);
8048 if (PyErr_Occurred()) SWIG_fail;
8049 arg3 = (long) SWIG_AsLong(obj2);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 {
8052 arg4 = wxString_in_helper(obj3);
8053 if (arg4 == NULL) SWIG_fail;
8054 temp4 = True;
8055 }
8056 {
8057 PyThreadState* __tstate = wxPyBeginAllowThreads();
8058 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8059
8060 wxPyEndAllowThreads(__tstate);
8061 if (PyErr_Occurred()) SWIG_fail;
8062 }
8063 Py_INCREF(Py_None); resultobj = Py_None;
8064 {
8065 if (temp4)
8066 delete arg4;
8067 }
8068 return resultobj;
8069 fail:
8070 {
8071 if (temp4)
8072 delete arg4;
8073 }
8074 return NULL;
8075 }
8076
8077
8078 static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8079 PyObject *resultobj;
8080 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8081 long arg2 ;
8082 long arg3 ;
8083 PyObject * obj0 = 0 ;
8084 PyObject * obj1 = 0 ;
8085 PyObject * obj2 = 0 ;
8086 char *kwnames[] = {
8087 (char *) "self",(char *) "from",(char *) "to", NULL
8088 };
8089
8090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8093 arg2 = (long) SWIG_AsLong(obj1);
8094 if (PyErr_Occurred()) SWIG_fail;
8095 arg3 = (long) SWIG_AsLong(obj2);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 {
8098 PyThreadState* __tstate = wxPyBeginAllowThreads();
8099 (arg1)->Remove(arg2,arg3);
8100
8101 wxPyEndAllowThreads(__tstate);
8102 if (PyErr_Occurred()) SWIG_fail;
8103 }
8104 Py_INCREF(Py_None); resultobj = Py_None;
8105 return resultobj;
8106 fail:
8107 return NULL;
8108 }
8109
8110
8111 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8112 PyObject *resultobj;
8113 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8114 wxString *arg2 = 0 ;
8115 bool result;
8116 bool temp2 = False ;
8117 PyObject * obj0 = 0 ;
8118 PyObject * obj1 = 0 ;
8119 char *kwnames[] = {
8120 (char *) "self",(char *) "file", NULL
8121 };
8122
8123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8126 {
8127 arg2 = wxString_in_helper(obj1);
8128 if (arg2 == NULL) SWIG_fail;
8129 temp2 = True;
8130 }
8131 {
8132 PyThreadState* __tstate = wxPyBeginAllowThreads();
8133 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8134
8135 wxPyEndAllowThreads(__tstate);
8136 if (PyErr_Occurred()) SWIG_fail;
8137 }
8138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8139 {
8140 if (temp2)
8141 delete arg2;
8142 }
8143 return resultobj;
8144 fail:
8145 {
8146 if (temp2)
8147 delete arg2;
8148 }
8149 return NULL;
8150 }
8151
8152
8153 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8154 PyObject *resultobj;
8155 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8156 wxString const &arg2_defvalue = wxPyEmptyString ;
8157 wxString *arg2 = (wxString *) &arg2_defvalue ;
8158 bool result;
8159 bool temp2 = False ;
8160 PyObject * obj0 = 0 ;
8161 PyObject * obj1 = 0 ;
8162 char *kwnames[] = {
8163 (char *) "self",(char *) "file", NULL
8164 };
8165
8166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8169 if (obj1) {
8170 {
8171 arg2 = wxString_in_helper(obj1);
8172 if (arg2 == NULL) SWIG_fail;
8173 temp2 = True;
8174 }
8175 }
8176 {
8177 PyThreadState* __tstate = wxPyBeginAllowThreads();
8178 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8179
8180 wxPyEndAllowThreads(__tstate);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8184 {
8185 if (temp2)
8186 delete arg2;
8187 }
8188 return resultobj;
8189 fail:
8190 {
8191 if (temp2)
8192 delete arg2;
8193 }
8194 return NULL;
8195 }
8196
8197
8198 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8199 PyObject *resultobj;
8200 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8201 PyObject * obj0 = 0 ;
8202 char *kwnames[] = {
8203 (char *) "self", NULL
8204 };
8205
8206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8209 {
8210 PyThreadState* __tstate = wxPyBeginAllowThreads();
8211 (arg1)->MarkDirty();
8212
8213 wxPyEndAllowThreads(__tstate);
8214 if (PyErr_Occurred()) SWIG_fail;
8215 }
8216 Py_INCREF(Py_None); resultobj = Py_None;
8217 return resultobj;
8218 fail:
8219 return NULL;
8220 }
8221
8222
8223 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8224 PyObject *resultobj;
8225 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8226 PyObject * obj0 = 0 ;
8227 char *kwnames[] = {
8228 (char *) "self", NULL
8229 };
8230
8231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8234 {
8235 PyThreadState* __tstate = wxPyBeginAllowThreads();
8236 (arg1)->DiscardEdits();
8237
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 Py_INCREF(Py_None); resultobj = Py_None;
8242 return resultobj;
8243 fail:
8244 return NULL;
8245 }
8246
8247
8248 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8249 PyObject *resultobj;
8250 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8251 unsigned long arg2 ;
8252 PyObject * obj0 = 0 ;
8253 PyObject * obj1 = 0 ;
8254 char *kwnames[] = {
8255 (char *) "self",(char *) "len", NULL
8256 };
8257
8258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8261 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 {
8264 PyThreadState* __tstate = wxPyBeginAllowThreads();
8265 (arg1)->SetMaxLength(arg2);
8266
8267 wxPyEndAllowThreads(__tstate);
8268 if (PyErr_Occurred()) SWIG_fail;
8269 }
8270 Py_INCREF(Py_None); resultobj = Py_None;
8271 return resultobj;
8272 fail:
8273 return NULL;
8274 }
8275
8276
8277 static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8278 PyObject *resultobj;
8279 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8280 wxString *arg2 = 0 ;
8281 bool temp2 = False ;
8282 PyObject * obj0 = 0 ;
8283 PyObject * obj1 = 0 ;
8284 char *kwnames[] = {
8285 (char *) "self",(char *) "text", NULL
8286 };
8287
8288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8291 {
8292 arg2 = wxString_in_helper(obj1);
8293 if (arg2 == NULL) SWIG_fail;
8294 temp2 = True;
8295 }
8296 {
8297 PyThreadState* __tstate = wxPyBeginAllowThreads();
8298 (arg1)->WriteText((wxString const &)*arg2);
8299
8300 wxPyEndAllowThreads(__tstate);
8301 if (PyErr_Occurred()) SWIG_fail;
8302 }
8303 Py_INCREF(Py_None); resultobj = Py_None;
8304 {
8305 if (temp2)
8306 delete arg2;
8307 }
8308 return resultobj;
8309 fail:
8310 {
8311 if (temp2)
8312 delete arg2;
8313 }
8314 return NULL;
8315 }
8316
8317
8318 static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8319 PyObject *resultobj;
8320 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8321 wxString *arg2 = 0 ;
8322 bool temp2 = False ;
8323 PyObject * obj0 = 0 ;
8324 PyObject * obj1 = 0 ;
8325 char *kwnames[] = {
8326 (char *) "self",(char *) "text", NULL
8327 };
8328
8329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8332 {
8333 arg2 = wxString_in_helper(obj1);
8334 if (arg2 == NULL) SWIG_fail;
8335 temp2 = True;
8336 }
8337 {
8338 PyThreadState* __tstate = wxPyBeginAllowThreads();
8339 (arg1)->AppendText((wxString const &)*arg2);
8340
8341 wxPyEndAllowThreads(__tstate);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 Py_INCREF(Py_None); resultobj = Py_None;
8345 {
8346 if (temp2)
8347 delete arg2;
8348 }
8349 return resultobj;
8350 fail:
8351 {
8352 if (temp2)
8353 delete arg2;
8354 }
8355 return NULL;
8356 }
8357
8358
8359 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8360 PyObject *resultobj;
8361 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8362 wxKeyEvent *arg2 = 0 ;
8363 bool result;
8364 PyObject * obj0 = 0 ;
8365 PyObject * obj1 = 0 ;
8366 char *kwnames[] = {
8367 (char *) "self",(char *) "event", NULL
8368 };
8369
8370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8373 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8374 SWIG_POINTER_EXCEPTION | 0)) == -1)
8375 SWIG_fail;
8376 if (arg2 == NULL) {
8377 PyErr_SetString(PyExc_TypeError,"null reference");
8378 SWIG_fail;
8379 }
8380 {
8381 PyThreadState* __tstate = wxPyBeginAllowThreads();
8382 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8383
8384 wxPyEndAllowThreads(__tstate);
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8388 return resultobj;
8389 fail:
8390 return NULL;
8391 }
8392
8393
8394 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8395 PyObject *resultobj;
8396 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8397 long arg2 ;
8398 long arg3 ;
8399 wxTextAttr *arg4 = 0 ;
8400 bool result;
8401 PyObject * obj0 = 0 ;
8402 PyObject * obj1 = 0 ;
8403 PyObject * obj2 = 0 ;
8404 PyObject * obj3 = 0 ;
8405 char *kwnames[] = {
8406 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8407 };
8408
8409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8412 arg2 = (long) SWIG_AsLong(obj1);
8413 if (PyErr_Occurred()) SWIG_fail;
8414 arg3 = (long) SWIG_AsLong(obj2);
8415 if (PyErr_Occurred()) SWIG_fail;
8416 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8417 SWIG_POINTER_EXCEPTION | 0)) == -1)
8418 SWIG_fail;
8419 if (arg4 == NULL) {
8420 PyErr_SetString(PyExc_TypeError,"null reference");
8421 SWIG_fail;
8422 }
8423 {
8424 PyThreadState* __tstate = wxPyBeginAllowThreads();
8425 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8426
8427 wxPyEndAllowThreads(__tstate);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 }
8430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8431 return resultobj;
8432 fail:
8433 return NULL;
8434 }
8435
8436
8437 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8438 PyObject *resultobj;
8439 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8440 long arg2 ;
8441 wxTextAttr *arg3 = 0 ;
8442 bool result;
8443 PyObject * obj0 = 0 ;
8444 PyObject * obj1 = 0 ;
8445 PyObject * obj2 = 0 ;
8446 char *kwnames[] = {
8447 (char *) "self",(char *) "position",(char *) "style", NULL
8448 };
8449
8450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8453 arg2 = (long) SWIG_AsLong(obj1);
8454 if (PyErr_Occurred()) SWIG_fail;
8455 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
8456 SWIG_POINTER_EXCEPTION | 0)) == -1)
8457 SWIG_fail;
8458 if (arg3 == NULL) {
8459 PyErr_SetString(PyExc_TypeError,"null reference");
8460 SWIG_fail;
8461 }
8462 {
8463 PyThreadState* __tstate = wxPyBeginAllowThreads();
8464 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8465
8466 wxPyEndAllowThreads(__tstate);
8467 if (PyErr_Occurred()) SWIG_fail;
8468 }
8469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8470 return resultobj;
8471 fail:
8472 return NULL;
8473 }
8474
8475
8476 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8477 PyObject *resultobj;
8478 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8479 wxTextAttr *arg2 = 0 ;
8480 bool result;
8481 PyObject * obj0 = 0 ;
8482 PyObject * obj1 = 0 ;
8483 char *kwnames[] = {
8484 (char *) "self",(char *) "style", NULL
8485 };
8486
8487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
8488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8491 SWIG_POINTER_EXCEPTION | 0)) == -1)
8492 SWIG_fail;
8493 if (arg2 == NULL) {
8494 PyErr_SetString(PyExc_TypeError,"null reference");
8495 SWIG_fail;
8496 }
8497 {
8498 PyThreadState* __tstate = wxPyBeginAllowThreads();
8499 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
8500
8501 wxPyEndAllowThreads(__tstate);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 }
8504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8505 return resultobj;
8506 fail:
8507 return NULL;
8508 }
8509
8510
8511 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8512 PyObject *resultobj;
8513 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8514 wxTextAttr *result;
8515 PyObject * obj0 = 0 ;
8516 char *kwnames[] = {
8517 (char *) "self", NULL
8518 };
8519
8520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
8521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8523 {
8524 PyThreadState* __tstate = wxPyBeginAllowThreads();
8525 {
8526 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
8527 result = (wxTextAttr *) &_result_ref;
8528 }
8529
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
8534 return resultobj;
8535 fail:
8536 return NULL;
8537 }
8538
8539
8540 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8541 PyObject *resultobj;
8542 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8543 long arg2 ;
8544 long arg3 ;
8545 long result;
8546 PyObject * obj0 = 0 ;
8547 PyObject * obj1 = 0 ;
8548 PyObject * obj2 = 0 ;
8549 char *kwnames[] = {
8550 (char *) "self",(char *) "x",(char *) "y", NULL
8551 };
8552
8553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
8554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8556 arg2 = (long) SWIG_AsLong(obj1);
8557 if (PyErr_Occurred()) SWIG_fail;
8558 arg3 = (long) SWIG_AsLong(obj2);
8559 if (PyErr_Occurred()) SWIG_fail;
8560 {
8561 PyThreadState* __tstate = wxPyBeginAllowThreads();
8562 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
8563
8564 wxPyEndAllowThreads(__tstate);
8565 if (PyErr_Occurred()) SWIG_fail;
8566 }
8567 resultobj = SWIG_FromLong((long)result);
8568 return resultobj;
8569 fail:
8570 return NULL;
8571 }
8572
8573
8574 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
8575 PyObject *resultobj;
8576 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8577 long arg2 ;
8578 long *arg3 = (long *) 0 ;
8579 long *arg4 = (long *) 0 ;
8580 long temp3 ;
8581 long temp4 ;
8582 PyObject * obj0 = 0 ;
8583 PyObject * obj1 = 0 ;
8584 char *kwnames[] = {
8585 (char *) "self",(char *) "pos", NULL
8586 };
8587
8588 arg3 = &temp3;
8589 arg4 = &temp4;
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
8591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8593 arg2 = (long) SWIG_AsLong(obj1);
8594 if (PyErr_Occurred()) SWIG_fail;
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
8598
8599 wxPyEndAllowThreads(__tstate);
8600 if (PyErr_Occurred()) SWIG_fail;
8601 }
8602 Py_INCREF(Py_None); resultobj = Py_None;
8603 {
8604 PyObject *o = PyInt_FromLong((long) (*arg3));
8605 resultobj = t_output_helper(resultobj,o);
8606 }
8607 {
8608 PyObject *o = PyInt_FromLong((long) (*arg4));
8609 resultobj = t_output_helper(resultobj,o);
8610 }
8611 return resultobj;
8612 fail:
8613 return NULL;
8614 }
8615
8616
8617 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8618 PyObject *resultobj;
8619 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8620 long arg2 ;
8621 PyObject * obj0 = 0 ;
8622 PyObject * obj1 = 0 ;
8623 char *kwnames[] = {
8624 (char *) "self",(char *) "pos", NULL
8625 };
8626
8627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
8628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8630 arg2 = (long) SWIG_AsLong(obj1);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 {
8633 PyThreadState* __tstate = wxPyBeginAllowThreads();
8634 (arg1)->ShowPosition(arg2);
8635
8636 wxPyEndAllowThreads(__tstate);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 }
8639 Py_INCREF(Py_None); resultobj = Py_None;
8640 return resultobj;
8641 fail:
8642 return NULL;
8643 }
8644
8645
8646 static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
8647 PyObject *resultobj;
8648 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8649 wxPoint *arg2 = 0 ;
8650 long *arg3 = (long *) 0 ;
8651 long *arg4 = (long *) 0 ;
8652 int result;
8653 wxPoint temp2 ;
8654 long temp3 ;
8655 long temp4 ;
8656 PyObject * obj0 = 0 ;
8657 PyObject * obj1 = 0 ;
8658 char *kwnames[] = {
8659 (char *) "self",(char *) "pt", NULL
8660 };
8661
8662 arg3 = &temp3;
8663 arg4 = &temp4;
8664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
8665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8667 {
8668 arg2 = &temp2;
8669 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8670 }
8671 {
8672 PyThreadState* __tstate = wxPyBeginAllowThreads();
8673 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
8674
8675 wxPyEndAllowThreads(__tstate);
8676 if (PyErr_Occurred()) SWIG_fail;
8677 }
8678 resultobj = SWIG_FromInt((int)result);
8679 {
8680 PyObject *o = PyInt_FromLong((long) (*arg3));
8681 resultobj = t_output_helper(resultobj,o);
8682 }
8683 {
8684 PyObject *o = PyInt_FromLong((long) (*arg4));
8685 resultobj = t_output_helper(resultobj,o);
8686 }
8687 return resultobj;
8688 fail:
8689 return NULL;
8690 }
8691
8692
8693 static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj;
8695 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8696 PyObject * obj0 = 0 ;
8697 char *kwnames[] = {
8698 (char *) "self", NULL
8699 };
8700
8701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
8702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 (arg1)->Copy();
8707
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 Py_INCREF(Py_None); resultobj = Py_None;
8712 return resultobj;
8713 fail:
8714 return NULL;
8715 }
8716
8717
8718 static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj;
8720 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8721 PyObject * obj0 = 0 ;
8722 char *kwnames[] = {
8723 (char *) "self", NULL
8724 };
8725
8726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
8727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 (arg1)->Cut();
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 Py_INCREF(Py_None); resultobj = Py_None;
8737 return resultobj;
8738 fail:
8739 return NULL;
8740 }
8741
8742
8743 static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
8744 PyObject *resultobj;
8745 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8746 PyObject * obj0 = 0 ;
8747 char *kwnames[] = {
8748 (char *) "self", NULL
8749 };
8750
8751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
8752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8754 {
8755 PyThreadState* __tstate = wxPyBeginAllowThreads();
8756 (arg1)->Paste();
8757
8758 wxPyEndAllowThreads(__tstate);
8759 if (PyErr_Occurred()) SWIG_fail;
8760 }
8761 Py_INCREF(Py_None); resultobj = Py_None;
8762 return resultobj;
8763 fail:
8764 return NULL;
8765 }
8766
8767
8768 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
8769 PyObject *resultobj;
8770 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8771 bool result;
8772 PyObject * obj0 = 0 ;
8773 char *kwnames[] = {
8774 (char *) "self", NULL
8775 };
8776
8777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
8778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
8783
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8788 return resultobj;
8789 fail:
8790 return NULL;
8791 }
8792
8793
8794 static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
8795 PyObject *resultobj;
8796 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8797 bool result;
8798 PyObject * obj0 = 0 ;
8799 char *kwnames[] = {
8800 (char *) "self", NULL
8801 };
8802
8803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
8804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8806 {
8807 PyThreadState* __tstate = wxPyBeginAllowThreads();
8808 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
8809
8810 wxPyEndAllowThreads(__tstate);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 }
8813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8814 return resultobj;
8815 fail:
8816 return NULL;
8817 }
8818
8819
8820 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
8821 PyObject *resultobj;
8822 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8823 bool result;
8824 PyObject * obj0 = 0 ;
8825 char *kwnames[] = {
8826 (char *) "self", NULL
8827 };
8828
8829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
8830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8832 {
8833 PyThreadState* __tstate = wxPyBeginAllowThreads();
8834 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
8835
8836 wxPyEndAllowThreads(__tstate);
8837 if (PyErr_Occurred()) SWIG_fail;
8838 }
8839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8840 return resultobj;
8841 fail:
8842 return NULL;
8843 }
8844
8845
8846 static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
8847 PyObject *resultobj;
8848 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8849 PyObject * obj0 = 0 ;
8850 char *kwnames[] = {
8851 (char *) "self", NULL
8852 };
8853
8854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
8855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8857 {
8858 PyThreadState* __tstate = wxPyBeginAllowThreads();
8859 (arg1)->Undo();
8860
8861 wxPyEndAllowThreads(__tstate);
8862 if (PyErr_Occurred()) SWIG_fail;
8863 }
8864 Py_INCREF(Py_None); resultobj = Py_None;
8865 return resultobj;
8866 fail:
8867 return NULL;
8868 }
8869
8870
8871 static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
8872 PyObject *resultobj;
8873 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8874 PyObject * obj0 = 0 ;
8875 char *kwnames[] = {
8876 (char *) "self", NULL
8877 };
8878
8879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
8880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8882 {
8883 PyThreadState* __tstate = wxPyBeginAllowThreads();
8884 (arg1)->Redo();
8885
8886 wxPyEndAllowThreads(__tstate);
8887 if (PyErr_Occurred()) SWIG_fail;
8888 }
8889 Py_INCREF(Py_None); resultobj = Py_None;
8890 return resultobj;
8891 fail:
8892 return NULL;
8893 }
8894
8895
8896 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
8897 PyObject *resultobj;
8898 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8899 bool result;
8900 PyObject * obj0 = 0 ;
8901 char *kwnames[] = {
8902 (char *) "self", NULL
8903 };
8904
8905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
8906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8908 {
8909 PyThreadState* __tstate = wxPyBeginAllowThreads();
8910 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
8911
8912 wxPyEndAllowThreads(__tstate);
8913 if (PyErr_Occurred()) SWIG_fail;
8914 }
8915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8916 return resultobj;
8917 fail:
8918 return NULL;
8919 }
8920
8921
8922 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
8923 PyObject *resultobj;
8924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8925 bool result;
8926 PyObject * obj0 = 0 ;
8927 char *kwnames[] = {
8928 (char *) "self", NULL
8929 };
8930
8931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
8932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8934 {
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
8937
8938 wxPyEndAllowThreads(__tstate);
8939 if (PyErr_Occurred()) SWIG_fail;
8940 }
8941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8942 return resultobj;
8943 fail:
8944 return NULL;
8945 }
8946
8947
8948 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8949 PyObject *resultobj;
8950 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8951 long arg2 ;
8952 PyObject * obj0 = 0 ;
8953 PyObject * obj1 = 0 ;
8954 char *kwnames[] = {
8955 (char *) "self",(char *) "pos", NULL
8956 };
8957
8958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
8959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8961 arg2 = (long) SWIG_AsLong(obj1);
8962 if (PyErr_Occurred()) SWIG_fail;
8963 {
8964 PyThreadState* __tstate = wxPyBeginAllowThreads();
8965 (arg1)->SetInsertionPoint(arg2);
8966
8967 wxPyEndAllowThreads(__tstate);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 }
8970 Py_INCREF(Py_None); resultobj = Py_None;
8971 return resultobj;
8972 fail:
8973 return NULL;
8974 }
8975
8976
8977 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
8978 PyObject *resultobj;
8979 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8980 PyObject * obj0 = 0 ;
8981 char *kwnames[] = {
8982 (char *) "self", NULL
8983 };
8984
8985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
8986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8988 {
8989 PyThreadState* __tstate = wxPyBeginAllowThreads();
8990 (arg1)->SetInsertionPointEnd();
8991
8992 wxPyEndAllowThreads(__tstate);
8993 if (PyErr_Occurred()) SWIG_fail;
8994 }
8995 Py_INCREF(Py_None); resultobj = Py_None;
8996 return resultobj;
8997 fail:
8998 return NULL;
8999 }
9000
9001
9002 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9003 PyObject *resultobj;
9004 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9005 long result;
9006 PyObject * obj0 = 0 ;
9007 char *kwnames[] = {
9008 (char *) "self", NULL
9009 };
9010
9011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9014 {
9015 PyThreadState* __tstate = wxPyBeginAllowThreads();
9016 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9017
9018 wxPyEndAllowThreads(__tstate);
9019 if (PyErr_Occurred()) SWIG_fail;
9020 }
9021 resultobj = SWIG_FromLong((long)result);
9022 return resultobj;
9023 fail:
9024 return NULL;
9025 }
9026
9027
9028 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9029 PyObject *resultobj;
9030 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9031 long result;
9032 PyObject * obj0 = 0 ;
9033 char *kwnames[] = {
9034 (char *) "self", NULL
9035 };
9036
9037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9040 {
9041 PyThreadState* __tstate = wxPyBeginAllowThreads();
9042 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9043
9044 wxPyEndAllowThreads(__tstate);
9045 if (PyErr_Occurred()) SWIG_fail;
9046 }
9047 resultobj = SWIG_FromLong((long)result);
9048 return resultobj;
9049 fail:
9050 return NULL;
9051 }
9052
9053
9054 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9055 PyObject *resultobj;
9056 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9057 long arg2 ;
9058 long arg3 ;
9059 PyObject * obj0 = 0 ;
9060 PyObject * obj1 = 0 ;
9061 PyObject * obj2 = 0 ;
9062 char *kwnames[] = {
9063 (char *) "self",(char *) "from",(char *) "to", NULL
9064 };
9065
9066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9069 arg2 = (long) SWIG_AsLong(obj1);
9070 if (PyErr_Occurred()) SWIG_fail;
9071 arg3 = (long) SWIG_AsLong(obj2);
9072 if (PyErr_Occurred()) SWIG_fail;
9073 {
9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
9075 (arg1)->SetSelection(arg2,arg3);
9076
9077 wxPyEndAllowThreads(__tstate);
9078 if (PyErr_Occurred()) SWIG_fail;
9079 }
9080 Py_INCREF(Py_None); resultobj = Py_None;
9081 return resultobj;
9082 fail:
9083 return NULL;
9084 }
9085
9086
9087 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj;
9089 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9090 PyObject * obj0 = 0 ;
9091 char *kwnames[] = {
9092 (char *) "self", NULL
9093 };
9094
9095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9098 {
9099 PyThreadState* __tstate = wxPyBeginAllowThreads();
9100 (arg1)->SelectAll();
9101
9102 wxPyEndAllowThreads(__tstate);
9103 if (PyErr_Occurred()) SWIG_fail;
9104 }
9105 Py_INCREF(Py_None); resultobj = Py_None;
9106 return resultobj;
9107 fail:
9108 return NULL;
9109 }
9110
9111
9112 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9113 PyObject *resultobj;
9114 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9115 bool arg2 ;
9116 PyObject * obj0 = 0 ;
9117 PyObject * obj1 = 0 ;
9118 char *kwnames[] = {
9119 (char *) "self",(char *) "editable", NULL
9120 };
9121
9122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9125 arg2 = (bool) SWIG_AsBool(obj1);
9126 if (PyErr_Occurred()) SWIG_fail;
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 (arg1)->SetEditable(arg2);
9130
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 Py_INCREF(Py_None); resultobj = Py_None;
9135 return resultobj;
9136 fail:
9137 return NULL;
9138 }
9139
9140
9141 static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
9142 PyObject *resultobj;
9143 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9144 bool arg2 = (bool) True ;
9145 bool result;
9146 PyObject * obj0 = 0 ;
9147 PyObject * obj1 = 0 ;
9148 char *kwnames[] = {
9149 (char *) "self",(char *) "show", NULL
9150 };
9151
9152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail;
9153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9155 if (obj1) {
9156 arg2 = (bool) SWIG_AsBool(obj1);
9157 if (PyErr_Occurred()) SWIG_fail;
9158 }
9159 {
9160 PyThreadState* __tstate = wxPyBeginAllowThreads();
9161 result = (bool)(arg1)->ShowNativeCaret(arg2);
9162
9163 wxPyEndAllowThreads(__tstate);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 }
9166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9167 return resultobj;
9168 fail:
9169 return NULL;
9170 }
9171
9172
9173 static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
9174 PyObject *resultobj;
9175 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9176 bool result;
9177 PyObject * obj0 = 0 ;
9178 char *kwnames[] = {
9179 (char *) "self", NULL
9180 };
9181
9182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail;
9183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9185 {
9186 PyThreadState* __tstate = wxPyBeginAllowThreads();
9187 result = (bool)(arg1)->HideNativeCaret();
9188
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9193 return resultobj;
9194 fail:
9195 return NULL;
9196 }
9197
9198
9199 static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9200 PyObject *resultobj;
9201 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9202 wxString *arg2 = 0 ;
9203 bool temp2 = False ;
9204 PyObject * obj0 = 0 ;
9205 PyObject * obj1 = 0 ;
9206 char *kwnames[] = {
9207 (char *) "self",(char *) "text", NULL
9208 };
9209
9210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9213 {
9214 arg2 = wxString_in_helper(obj1);
9215 if (arg2 == NULL) SWIG_fail;
9216 temp2 = True;
9217 }
9218 {
9219 PyThreadState* __tstate = wxPyBeginAllowThreads();
9220 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9221
9222 wxPyEndAllowThreads(__tstate);
9223 if (PyErr_Occurred()) SWIG_fail;
9224 }
9225 Py_INCREF(Py_None); resultobj = Py_None;
9226 {
9227 if (temp2)
9228 delete arg2;
9229 }
9230 return resultobj;
9231 fail:
9232 {
9233 if (temp2)
9234 delete arg2;
9235 }
9236 return NULL;
9237 }
9238
9239
9240 static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9241 PyObject *resultobj;
9242 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9243 long arg2 ;
9244 long arg3 ;
9245 wxString result;
9246 PyObject * obj0 = 0 ;
9247 PyObject * obj1 = 0 ;
9248 PyObject * obj2 = 0 ;
9249 char *kwnames[] = {
9250 (char *) "self",(char *) "from",(char *) "to", NULL
9251 };
9252
9253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9256 arg2 = (long) SWIG_AsLong(obj1);
9257 if (PyErr_Occurred()) SWIG_fail;
9258 arg3 = (long) SWIG_AsLong(obj2);
9259 if (PyErr_Occurred()) SWIG_fail;
9260 {
9261 PyThreadState* __tstate = wxPyBeginAllowThreads();
9262 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9263
9264 wxPyEndAllowThreads(__tstate);
9265 if (PyErr_Occurred()) SWIG_fail;
9266 }
9267 {
9268 #if wxUSE_UNICODE
9269 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9270 #else
9271 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9272 #endif
9273 }
9274 return resultobj;
9275 fail:
9276 return NULL;
9277 }
9278
9279
9280 static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9281 PyObject *obj;
9282 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9283 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9284 Py_INCREF(obj);
9285 return Py_BuildValue((char *)"");
9286 }
9287 static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9288 PyObject *resultobj;
9289 int arg1 ;
9290 wxMouseEvent *arg2 = 0 ;
9291 long arg3 ;
9292 long arg4 ;
9293 wxTextUrlEvent *result;
9294 PyObject * obj0 = 0 ;
9295 PyObject * obj1 = 0 ;
9296 PyObject * obj2 = 0 ;
9297 PyObject * obj3 = 0 ;
9298 char *kwnames[] = {
9299 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9300 };
9301
9302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9303 arg1 = (int) SWIG_AsInt(obj0);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9306 SWIG_POINTER_EXCEPTION | 0)) == -1)
9307 SWIG_fail;
9308 if (arg2 == NULL) {
9309 PyErr_SetString(PyExc_TypeError,"null reference");
9310 SWIG_fail;
9311 }
9312 arg3 = (long) SWIG_AsLong(obj2);
9313 if (PyErr_Occurred()) SWIG_fail;
9314 arg4 = (long) SWIG_AsLong(obj3);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 {
9317 PyThreadState* __tstate = wxPyBeginAllowThreads();
9318 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9319
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9324 return resultobj;
9325 fail:
9326 return NULL;
9327 }
9328
9329
9330 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj;
9332 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9333 wxMouseEvent *result;
9334 PyObject * obj0 = 0 ;
9335 char *kwnames[] = {
9336 (char *) "self", NULL
9337 };
9338
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9342 {
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 {
9345 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9346 result = (wxMouseEvent *) &_result_ref;
9347 }
9348
9349 wxPyEndAllowThreads(__tstate);
9350 if (PyErr_Occurred()) SWIG_fail;
9351 }
9352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9353 return resultobj;
9354 fail:
9355 return NULL;
9356 }
9357
9358
9359 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9360 PyObject *resultobj;
9361 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9362 long result;
9363 PyObject * obj0 = 0 ;
9364 char *kwnames[] = {
9365 (char *) "self", NULL
9366 };
9367
9368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9374
9375 wxPyEndAllowThreads(__tstate);
9376 if (PyErr_Occurred()) SWIG_fail;
9377 }
9378 resultobj = SWIG_FromLong((long)result);
9379 return resultobj;
9380 fail:
9381 return NULL;
9382 }
9383
9384
9385 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9386 PyObject *resultobj;
9387 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9388 long result;
9389 PyObject * obj0 = 0 ;
9390 char *kwnames[] = {
9391 (char *) "self", NULL
9392 };
9393
9394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 resultobj = SWIG_FromLong((long)result);
9405 return resultobj;
9406 fail:
9407 return NULL;
9408 }
9409
9410
9411 static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
9412 PyObject *obj;
9413 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9414 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9415 Py_INCREF(obj);
9416 return Py_BuildValue((char *)"");
9417 }
9418 static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
9419 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9420 return 1;
9421 }
9422
9423
9424 static PyObject *_wrap_ScrollBarNameStr_get() {
9425 PyObject *pyobj;
9426
9427 {
9428 #if wxUSE_UNICODE
9429 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9430 #else
9431 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9432 #endif
9433 }
9434 return pyobj;
9435 }
9436
9437
9438 static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj;
9440 wxWindow *arg1 = (wxWindow *) 0 ;
9441 int arg2 = (int) -1 ;
9442 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9443 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9444 wxSize const &arg4_defvalue = wxDefaultSize ;
9445 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9446 long arg5 = (long) wxSB_HORIZONTAL ;
9447 wxValidator const &arg6_defvalue = wxDefaultValidator ;
9448 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
9449 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
9450 wxString *arg7 = (wxString *) &arg7_defvalue ;
9451 wxScrollBar *result;
9452 wxPoint temp3 ;
9453 wxSize temp4 ;
9454 bool temp7 = False ;
9455 PyObject * obj0 = 0 ;
9456 PyObject * obj1 = 0 ;
9457 PyObject * obj2 = 0 ;
9458 PyObject * obj3 = 0 ;
9459 PyObject * obj4 = 0 ;
9460 PyObject * obj5 = 0 ;
9461 PyObject * obj6 = 0 ;
9462 char *kwnames[] = {
9463 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9464 };
9465
9466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9469 if (obj1) {
9470 arg2 = (int) SWIG_AsInt(obj1);
9471 if (PyErr_Occurred()) SWIG_fail;
9472 }
9473 if (obj2) {
9474 {
9475 arg3 = &temp3;
9476 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9477 }
9478 }
9479 if (obj3) {
9480 {
9481 arg4 = &temp4;
9482 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9483 }
9484 }
9485 if (obj4) {
9486 arg5 = (long) SWIG_AsLong(obj4);
9487 if (PyErr_Occurred()) SWIG_fail;
9488 }
9489 if (obj5) {
9490 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
9491 SWIG_POINTER_EXCEPTION | 0)) == -1)
9492 SWIG_fail;
9493 if (arg6 == NULL) {
9494 PyErr_SetString(PyExc_TypeError,"null reference");
9495 SWIG_fail;
9496 }
9497 }
9498 if (obj6) {
9499 {
9500 arg7 = wxString_in_helper(obj6);
9501 if (arg7 == NULL) SWIG_fail;
9502 temp7 = True;
9503 }
9504 }
9505 {
9506 PyThreadState* __tstate = wxPyBeginAllowThreads();
9507 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
9508
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
9513 {
9514 if (temp7)
9515 delete arg7;
9516 }
9517 return resultobj;
9518 fail:
9519 {
9520 if (temp7)
9521 delete arg7;
9522 }
9523 return NULL;
9524 }
9525
9526
9527 static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9528 PyObject *resultobj;
9529 wxScrollBar *result;
9530 char *kwnames[] = {
9531 NULL
9532 };
9533
9534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
9535 {
9536 PyThreadState* __tstate = wxPyBeginAllowThreads();
9537 result = (wxScrollBar *)new wxScrollBar();
9538
9539 wxPyEndAllowThreads(__tstate);
9540 if (PyErr_Occurred()) SWIG_fail;
9541 }
9542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
9543 return resultobj;
9544 fail:
9545 return NULL;
9546 }
9547
9548
9549 static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9550 PyObject *resultobj;
9551 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9552 wxWindow *arg2 = (wxWindow *) 0 ;
9553 int arg3 = (int) -1 ;
9554 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9555 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9556 wxSize const &arg5_defvalue = wxDefaultSize ;
9557 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9558 long arg6 = (long) wxSB_HORIZONTAL ;
9559 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9560 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9561 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
9562 wxString *arg8 = (wxString *) &arg8_defvalue ;
9563 bool result;
9564 wxPoint temp4 ;
9565 wxSize temp5 ;
9566 bool temp8 = False ;
9567 PyObject * obj0 = 0 ;
9568 PyObject * obj1 = 0 ;
9569 PyObject * obj2 = 0 ;
9570 PyObject * obj3 = 0 ;
9571 PyObject * obj4 = 0 ;
9572 PyObject * obj5 = 0 ;
9573 PyObject * obj6 = 0 ;
9574 PyObject * obj7 = 0 ;
9575 char *kwnames[] = {
9576 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9577 };
9578
9579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
9580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9582 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
9583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9584 if (obj2) {
9585 arg3 = (int) SWIG_AsInt(obj2);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 if (obj3) {
9589 {
9590 arg4 = &temp4;
9591 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9592 }
9593 }
9594 if (obj4) {
9595 {
9596 arg5 = &temp5;
9597 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9598 }
9599 }
9600 if (obj5) {
9601 arg6 = (long) SWIG_AsLong(obj5);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 if (obj6) {
9605 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
9606 SWIG_POINTER_EXCEPTION | 0)) == -1)
9607 SWIG_fail;
9608 if (arg7 == NULL) {
9609 PyErr_SetString(PyExc_TypeError,"null reference");
9610 SWIG_fail;
9611 }
9612 }
9613 if (obj7) {
9614 {
9615 arg8 = wxString_in_helper(obj7);
9616 if (arg8 == NULL) SWIG_fail;
9617 temp8 = True;
9618 }
9619 }
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
9623
9624 wxPyEndAllowThreads(__tstate);
9625 if (PyErr_Occurred()) SWIG_fail;
9626 }
9627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9628 {
9629 if (temp8)
9630 delete arg8;
9631 }
9632 return resultobj;
9633 fail:
9634 {
9635 if (temp8)
9636 delete arg8;
9637 }
9638 return NULL;
9639 }
9640
9641
9642 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9643 PyObject *resultobj;
9644 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9645 int result;
9646 PyObject * obj0 = 0 ;
9647 char *kwnames[] = {
9648 (char *) "self", NULL
9649 };
9650
9651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
9652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9654 {
9655 PyThreadState* __tstate = wxPyBeginAllowThreads();
9656 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
9657
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 resultobj = SWIG_FromInt((int)result);
9662 return resultobj;
9663 fail:
9664 return NULL;
9665 }
9666
9667
9668 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj;
9670 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9671 int result;
9672 PyObject * obj0 = 0 ;
9673 char *kwnames[] = {
9674 (char *) "self", NULL
9675 };
9676
9677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
9678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9680 {
9681 PyThreadState* __tstate = wxPyBeginAllowThreads();
9682 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
9683
9684 wxPyEndAllowThreads(__tstate);
9685 if (PyErr_Occurred()) SWIG_fail;
9686 }
9687 resultobj = SWIG_FromInt((int)result);
9688 return resultobj;
9689 fail:
9690 return NULL;
9691 }
9692
9693
9694 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9695 PyObject *resultobj;
9696 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9697 int result;
9698 PyObject * obj0 = 0 ;
9699 char *kwnames[] = {
9700 (char *) "self", NULL
9701 };
9702
9703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
9704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
9709
9710 wxPyEndAllowThreads(__tstate);
9711 if (PyErr_Occurred()) SWIG_fail;
9712 }
9713 resultobj = SWIG_FromInt((int)result);
9714 return resultobj;
9715 fail:
9716 return NULL;
9717 }
9718
9719
9720 static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
9721 PyObject *resultobj;
9722 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9723 int result;
9724 PyObject * obj0 = 0 ;
9725 char *kwnames[] = {
9726 (char *) "self", NULL
9727 };
9728
9729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
9730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9732 {
9733 PyThreadState* __tstate = wxPyBeginAllowThreads();
9734 result = (int)((wxScrollBar const *)arg1)->GetRange();
9735
9736 wxPyEndAllowThreads(__tstate);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 }
9739 resultobj = SWIG_FromInt((int)result);
9740 return resultobj;
9741 fail:
9742 return NULL;
9743 }
9744
9745
9746 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
9747 PyObject *resultobj;
9748 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9749 bool result;
9750 PyObject * obj0 = 0 ;
9751 char *kwnames[] = {
9752 (char *) "self", NULL
9753 };
9754
9755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
9756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9758 {
9759 PyThreadState* __tstate = wxPyBeginAllowThreads();
9760 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
9761
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9766 return resultobj;
9767 fail:
9768 return NULL;
9769 }
9770
9771
9772 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9773 PyObject *resultobj;
9774 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9775 int arg2 ;
9776 PyObject * obj0 = 0 ;
9777 PyObject * obj1 = 0 ;
9778 char *kwnames[] = {
9779 (char *) "self",(char *) "viewStart", NULL
9780 };
9781
9782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
9783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9785 arg2 = (int) SWIG_AsInt(obj1);
9786 if (PyErr_Occurred()) SWIG_fail;
9787 {
9788 PyThreadState* __tstate = wxPyBeginAllowThreads();
9789 (arg1)->SetThumbPosition(arg2);
9790
9791 wxPyEndAllowThreads(__tstate);
9792 if (PyErr_Occurred()) SWIG_fail;
9793 }
9794 Py_INCREF(Py_None); resultobj = Py_None;
9795 return resultobj;
9796 fail:
9797 return NULL;
9798 }
9799
9800
9801 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
9802 PyObject *resultobj;
9803 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9804 int arg2 ;
9805 int arg3 ;
9806 int arg4 ;
9807 int arg5 ;
9808 bool arg6 = (bool) True ;
9809 PyObject * obj0 = 0 ;
9810 PyObject * obj1 = 0 ;
9811 PyObject * obj2 = 0 ;
9812 PyObject * obj3 = 0 ;
9813 PyObject * obj4 = 0 ;
9814 PyObject * obj5 = 0 ;
9815 char *kwnames[] = {
9816 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
9817 };
9818
9819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9822 arg2 = (int) SWIG_AsInt(obj1);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 arg3 = (int) SWIG_AsInt(obj2);
9825 if (PyErr_Occurred()) SWIG_fail;
9826 arg4 = (int) SWIG_AsInt(obj3);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 arg5 = (int) SWIG_AsInt(obj4);
9829 if (PyErr_Occurred()) SWIG_fail;
9830 if (obj5) {
9831 arg6 = (bool) SWIG_AsBool(obj5);
9832 if (PyErr_Occurred()) SWIG_fail;
9833 }
9834 {
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
9837
9838 wxPyEndAllowThreads(__tstate);
9839 if (PyErr_Occurred()) SWIG_fail;
9840 }
9841 Py_INCREF(Py_None); resultobj = Py_None;
9842 return resultobj;
9843 fail:
9844 return NULL;
9845 }
9846
9847
9848 static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
9849 PyObject *obj;
9850 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9851 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
9852 Py_INCREF(obj);
9853 return Py_BuildValue((char *)"");
9854 }
9855 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
9856 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
9857 return 1;
9858 }
9859
9860
9861 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
9862 PyObject *pyobj;
9863
9864 {
9865 #if wxUSE_UNICODE
9866 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
9867 #else
9868 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
9869 #endif
9870 }
9871 return pyobj;
9872 }
9873
9874
9875 static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
9876 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
9877 return 1;
9878 }
9879
9880
9881 static PyObject *_wrap_SpinCtrlNameStr_get() {
9882 PyObject *pyobj;
9883
9884 {
9885 #if wxUSE_UNICODE
9886 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
9887 #else
9888 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
9889 #endif
9890 }
9891 return pyobj;
9892 }
9893
9894
9895 static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9896 PyObject *resultobj;
9897 wxWindow *arg1 = (wxWindow *) 0 ;
9898 int arg2 = (int) -1 ;
9899 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9900 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9901 wxSize const &arg4_defvalue = wxDefaultSize ;
9902 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9903 long arg5 = (long) wxSP_HORIZONTAL ;
9904 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
9905 wxString *arg6 = (wxString *) &arg6_defvalue ;
9906 wxSpinButton *result;
9907 wxPoint temp3 ;
9908 wxSize temp4 ;
9909 bool temp6 = False ;
9910 PyObject * obj0 = 0 ;
9911 PyObject * obj1 = 0 ;
9912 PyObject * obj2 = 0 ;
9913 PyObject * obj3 = 0 ;
9914 PyObject * obj4 = 0 ;
9915 PyObject * obj5 = 0 ;
9916 char *kwnames[] = {
9917 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
9918 };
9919
9920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9923 if (obj1) {
9924 arg2 = (int) SWIG_AsInt(obj1);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 if (obj2) {
9928 {
9929 arg3 = &temp3;
9930 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9931 }
9932 }
9933 if (obj3) {
9934 {
9935 arg4 = &temp4;
9936 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9937 }
9938 }
9939 if (obj4) {
9940 arg5 = (long) SWIG_AsLong(obj4);
9941 if (PyErr_Occurred()) SWIG_fail;
9942 }
9943 if (obj5) {
9944 {
9945 arg6 = wxString_in_helper(obj5);
9946 if (arg6 == NULL) SWIG_fail;
9947 temp6 = True;
9948 }
9949 }
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
9953
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
9958 {
9959 if (temp6)
9960 delete arg6;
9961 }
9962 return resultobj;
9963 fail:
9964 {
9965 if (temp6)
9966 delete arg6;
9967 }
9968 return NULL;
9969 }
9970
9971
9972 static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9973 PyObject *resultobj;
9974 wxSpinButton *result;
9975 char *kwnames[] = {
9976 NULL
9977 };
9978
9979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = (wxSpinButton *)new wxSpinButton();
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
9988 return resultobj;
9989 fail:
9990 return NULL;
9991 }
9992
9993
9994 static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9995 PyObject *resultobj;
9996 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9997 wxWindow *arg2 = (wxWindow *) 0 ;
9998 int arg3 = (int) -1 ;
9999 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10000 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10001 wxSize const &arg5_defvalue = wxDefaultSize ;
10002 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10003 long arg6 = (long) wxSP_HORIZONTAL ;
10004 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10005 wxString *arg7 = (wxString *) &arg7_defvalue ;
10006 bool result;
10007 wxPoint temp4 ;
10008 wxSize temp5 ;
10009 bool temp7 = False ;
10010 PyObject * obj0 = 0 ;
10011 PyObject * obj1 = 0 ;
10012 PyObject * obj2 = 0 ;
10013 PyObject * obj3 = 0 ;
10014 PyObject * obj4 = 0 ;
10015 PyObject * obj5 = 0 ;
10016 PyObject * obj6 = 0 ;
10017 char *kwnames[] = {
10018 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10019 };
10020
10021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10024 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10026 if (obj2) {
10027 arg3 = (int) SWIG_AsInt(obj2);
10028 if (PyErr_Occurred()) SWIG_fail;
10029 }
10030 if (obj3) {
10031 {
10032 arg4 = &temp4;
10033 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10034 }
10035 }
10036 if (obj4) {
10037 {
10038 arg5 = &temp5;
10039 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10040 }
10041 }
10042 if (obj5) {
10043 arg6 = (long) SWIG_AsLong(obj5);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 if (obj6) {
10047 {
10048 arg7 = wxString_in_helper(obj6);
10049 if (arg7 == NULL) SWIG_fail;
10050 temp7 = True;
10051 }
10052 }
10053 {
10054 PyThreadState* __tstate = wxPyBeginAllowThreads();
10055 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10056
10057 wxPyEndAllowThreads(__tstate);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 }
10060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10061 {
10062 if (temp7)
10063 delete arg7;
10064 }
10065 return resultobj;
10066 fail:
10067 {
10068 if (temp7)
10069 delete arg7;
10070 }
10071 return NULL;
10072 }
10073
10074
10075 static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10076 PyObject *resultobj;
10077 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10078 int result;
10079 PyObject * obj0 = 0 ;
10080 char *kwnames[] = {
10081 (char *) "self", NULL
10082 };
10083
10084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10087 {
10088 PyThreadState* __tstate = wxPyBeginAllowThreads();
10089 result = (int)((wxSpinButton const *)arg1)->GetValue();
10090
10091 wxPyEndAllowThreads(__tstate);
10092 if (PyErr_Occurred()) SWIG_fail;
10093 }
10094 resultobj = SWIG_FromInt((int)result);
10095 return resultobj;
10096 fail:
10097 return NULL;
10098 }
10099
10100
10101 static PyObject *_wrap_SpinButton_GetMin(PyObject *self, 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_GetMin",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)->GetMin();
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_GetMax(PyObject *self, 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_GetMax",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)->GetMax();
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_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10154 PyObject *resultobj;
10155 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10156 int arg2 ;
10157 PyObject * obj0 = 0 ;
10158 PyObject * obj1 = 0 ;
10159 char *kwnames[] = {
10160 (char *) "self",(char *) "val", NULL
10161 };
10162
10163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10166 arg2 = (int) SWIG_AsInt(obj1);
10167 if (PyErr_Occurred()) SWIG_fail;
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 (arg1)->SetValue(arg2);
10171
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 Py_INCREF(Py_None); resultobj = Py_None;
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj;
10184 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10185 int arg2 ;
10186 PyObject * obj0 = 0 ;
10187 PyObject * obj1 = 0 ;
10188 char *kwnames[] = {
10189 (char *) "self",(char *) "minVal", NULL
10190 };
10191
10192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10195 arg2 = (int) SWIG_AsInt(obj1);
10196 if (PyErr_Occurred()) SWIG_fail;
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 (arg1)->SetMin(arg2);
10200
10201 wxPyEndAllowThreads(__tstate);
10202 if (PyErr_Occurred()) SWIG_fail;
10203 }
10204 Py_INCREF(Py_None); resultobj = Py_None;
10205 return resultobj;
10206 fail:
10207 return NULL;
10208 }
10209
10210
10211 static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10212 PyObject *resultobj;
10213 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10214 int arg2 ;
10215 PyObject * obj0 = 0 ;
10216 PyObject * obj1 = 0 ;
10217 char *kwnames[] = {
10218 (char *) "self",(char *) "maxVal", NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10224 arg2 = (int) SWIG_AsInt(obj1);
10225 if (PyErr_Occurred()) SWIG_fail;
10226 {
10227 PyThreadState* __tstate = wxPyBeginAllowThreads();
10228 (arg1)->SetMax(arg2);
10229
10230 wxPyEndAllowThreads(__tstate);
10231 if (PyErr_Occurred()) SWIG_fail;
10232 }
10233 Py_INCREF(Py_None); resultobj = Py_None;
10234 return resultobj;
10235 fail:
10236 return NULL;
10237 }
10238
10239
10240 static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10241 PyObject *resultobj;
10242 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10243 int arg2 ;
10244 int arg3 ;
10245 PyObject * obj0 = 0 ;
10246 PyObject * obj1 = 0 ;
10247 PyObject * obj2 = 0 ;
10248 char *kwnames[] = {
10249 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10250 };
10251
10252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10255 arg2 = (int) SWIG_AsInt(obj1);
10256 if (PyErr_Occurred()) SWIG_fail;
10257 arg3 = (int) SWIG_AsInt(obj2);
10258 if (PyErr_Occurred()) SWIG_fail;
10259 {
10260 PyThreadState* __tstate = wxPyBeginAllowThreads();
10261 (arg1)->SetRange(arg2,arg3);
10262
10263 wxPyEndAllowThreads(__tstate);
10264 if (PyErr_Occurred()) SWIG_fail;
10265 }
10266 Py_INCREF(Py_None); resultobj = Py_None;
10267 return resultobj;
10268 fail:
10269 return NULL;
10270 }
10271
10272
10273 static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10274 PyObject *resultobj;
10275 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10276 bool result;
10277 PyObject * obj0 = 0 ;
10278 char *kwnames[] = {
10279 (char *) "self", NULL
10280 };
10281
10282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10285 {
10286 PyThreadState* __tstate = wxPyBeginAllowThreads();
10287 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10288
10289 wxPyEndAllowThreads(__tstate);
10290 if (PyErr_Occurred()) SWIG_fail;
10291 }
10292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10293 return resultobj;
10294 fail:
10295 return NULL;
10296 }
10297
10298
10299 static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10300 PyObject *obj;
10301 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10302 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10303 Py_INCREF(obj);
10304 return Py_BuildValue((char *)"");
10305 }
10306 static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10307 PyObject *resultobj;
10308 wxWindow *arg1 = (wxWindow *) 0 ;
10309 int arg2 = (int) -1 ;
10310 wxString const &arg3_defvalue = wxPyEmptyString ;
10311 wxString *arg3 = (wxString *) &arg3_defvalue ;
10312 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10313 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10314 wxSize const &arg5_defvalue = wxDefaultSize ;
10315 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10316 long arg6 = (long) wxSP_ARROW_KEYS ;
10317 int arg7 = (int) 0 ;
10318 int arg8 = (int) 100 ;
10319 int arg9 = (int) 0 ;
10320 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10321 wxString *arg10 = (wxString *) &arg10_defvalue ;
10322 wxSpinCtrl *result;
10323 bool temp3 = False ;
10324 wxPoint temp4 ;
10325 wxSize temp5 ;
10326 bool temp10 = False ;
10327 PyObject * obj0 = 0 ;
10328 PyObject * obj1 = 0 ;
10329 PyObject * obj2 = 0 ;
10330 PyObject * obj3 = 0 ;
10331 PyObject * obj4 = 0 ;
10332 PyObject * obj5 = 0 ;
10333 PyObject * obj6 = 0 ;
10334 PyObject * obj7 = 0 ;
10335 PyObject * obj8 = 0 ;
10336 PyObject * obj9 = 0 ;
10337 char *kwnames[] = {
10338 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10339 };
10340
10341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10344 if (obj1) {
10345 arg2 = (int) SWIG_AsInt(obj1);
10346 if (PyErr_Occurred()) SWIG_fail;
10347 }
10348 if (obj2) {
10349 {
10350 arg3 = wxString_in_helper(obj2);
10351 if (arg3 == NULL) SWIG_fail;
10352 temp3 = True;
10353 }
10354 }
10355 if (obj3) {
10356 {
10357 arg4 = &temp4;
10358 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10359 }
10360 }
10361 if (obj4) {
10362 {
10363 arg5 = &temp5;
10364 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10365 }
10366 }
10367 if (obj5) {
10368 arg6 = (long) SWIG_AsLong(obj5);
10369 if (PyErr_Occurred()) SWIG_fail;
10370 }
10371 if (obj6) {
10372 arg7 = (int) SWIG_AsInt(obj6);
10373 if (PyErr_Occurred()) SWIG_fail;
10374 }
10375 if (obj7) {
10376 arg8 = (int) SWIG_AsInt(obj7);
10377 if (PyErr_Occurred()) SWIG_fail;
10378 }
10379 if (obj8) {
10380 arg9 = (int) SWIG_AsInt(obj8);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 if (obj9) {
10384 {
10385 arg10 = wxString_in_helper(obj9);
10386 if (arg10 == NULL) SWIG_fail;
10387 temp10 = True;
10388 }
10389 }
10390 {
10391 PyThreadState* __tstate = wxPyBeginAllowThreads();
10392 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
10393
10394 wxPyEndAllowThreads(__tstate);
10395 if (PyErr_Occurred()) SWIG_fail;
10396 }
10397 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10398 {
10399 if (temp3)
10400 delete arg3;
10401 }
10402 {
10403 if (temp10)
10404 delete arg10;
10405 }
10406 return resultobj;
10407 fail:
10408 {
10409 if (temp3)
10410 delete arg3;
10411 }
10412 {
10413 if (temp10)
10414 delete arg10;
10415 }
10416 return NULL;
10417 }
10418
10419
10420 static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj;
10422 wxSpinCtrl *result;
10423 char *kwnames[] = {
10424 NULL
10425 };
10426
10427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
10428 {
10429 PyThreadState* __tstate = wxPyBeginAllowThreads();
10430 result = (wxSpinCtrl *)new wxSpinCtrl();
10431
10432 wxPyEndAllowThreads(__tstate);
10433 if (PyErr_Occurred()) SWIG_fail;
10434 }
10435 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10436 return resultobj;
10437 fail:
10438 return NULL;
10439 }
10440
10441
10442 static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10443 PyObject *resultobj;
10444 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10445 wxWindow *arg2 = (wxWindow *) 0 ;
10446 int arg3 = (int) -1 ;
10447 wxString const &arg4_defvalue = wxPyEmptyString ;
10448 wxString *arg4 = (wxString *) &arg4_defvalue ;
10449 wxPoint const &arg5_defvalue = wxDefaultPosition ;
10450 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
10451 wxSize const &arg6_defvalue = wxDefaultSize ;
10452 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
10453 long arg7 = (long) wxSP_ARROW_KEYS ;
10454 int arg8 = (int) 0 ;
10455 int arg9 = (int) 100 ;
10456 int arg10 = (int) 0 ;
10457 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
10458 wxString *arg11 = (wxString *) &arg11_defvalue ;
10459 bool result;
10460 bool temp4 = False ;
10461 wxPoint temp5 ;
10462 wxSize temp6 ;
10463 bool temp11 = False ;
10464 PyObject * obj0 = 0 ;
10465 PyObject * obj1 = 0 ;
10466 PyObject * obj2 = 0 ;
10467 PyObject * obj3 = 0 ;
10468 PyObject * obj4 = 0 ;
10469 PyObject * obj5 = 0 ;
10470 PyObject * obj6 = 0 ;
10471 PyObject * obj7 = 0 ;
10472 PyObject * obj8 = 0 ;
10473 PyObject * obj9 = 0 ;
10474 PyObject * obj10 = 0 ;
10475 char *kwnames[] = {
10476 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10477 };
10478
10479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
10480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10482 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10484 if (obj2) {
10485 arg3 = (int) SWIG_AsInt(obj2);
10486 if (PyErr_Occurred()) SWIG_fail;
10487 }
10488 if (obj3) {
10489 {
10490 arg4 = wxString_in_helper(obj3);
10491 if (arg4 == NULL) SWIG_fail;
10492 temp4 = True;
10493 }
10494 }
10495 if (obj4) {
10496 {
10497 arg5 = &temp5;
10498 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10499 }
10500 }
10501 if (obj5) {
10502 {
10503 arg6 = &temp6;
10504 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
10505 }
10506 }
10507 if (obj6) {
10508 arg7 = (long) SWIG_AsLong(obj6);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 if (obj7) {
10512 arg8 = (int) SWIG_AsInt(obj7);
10513 if (PyErr_Occurred()) SWIG_fail;
10514 }
10515 if (obj8) {
10516 arg9 = (int) SWIG_AsInt(obj8);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 if (obj9) {
10520 arg10 = (int) SWIG_AsInt(obj9);
10521 if (PyErr_Occurred()) SWIG_fail;
10522 }
10523 if (obj10) {
10524 {
10525 arg11 = wxString_in_helper(obj10);
10526 if (arg11 == NULL) SWIG_fail;
10527 temp11 = True;
10528 }
10529 }
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
10533
10534 wxPyEndAllowThreads(__tstate);
10535 if (PyErr_Occurred()) SWIG_fail;
10536 }
10537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10538 {
10539 if (temp4)
10540 delete arg4;
10541 }
10542 {
10543 if (temp11)
10544 delete arg11;
10545 }
10546 return resultobj;
10547 fail:
10548 {
10549 if (temp4)
10550 delete arg4;
10551 }
10552 {
10553 if (temp11)
10554 delete arg11;
10555 }
10556 return NULL;
10557 }
10558
10559
10560 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10561 PyObject *resultobj;
10562 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10563 int result;
10564 PyObject * obj0 = 0 ;
10565 char *kwnames[] = {
10566 (char *) "self", NULL
10567 };
10568
10569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
10570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10572 {
10573 PyThreadState* __tstate = wxPyBeginAllowThreads();
10574 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
10575
10576 wxPyEndAllowThreads(__tstate);
10577 if (PyErr_Occurred()) SWIG_fail;
10578 }
10579 resultobj = SWIG_FromInt((int)result);
10580 return resultobj;
10581 fail:
10582 return NULL;
10583 }
10584
10585
10586 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10587 PyObject *resultobj;
10588 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10589 int arg2 ;
10590 PyObject * obj0 = 0 ;
10591 PyObject * obj1 = 0 ;
10592 char *kwnames[] = {
10593 (char *) "self",(char *) "value", NULL
10594 };
10595
10596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
10597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10599 arg2 = (int) SWIG_AsInt(obj1);
10600 if (PyErr_Occurred()) SWIG_fail;
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 (arg1)->SetValue(arg2);
10604
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 Py_INCREF(Py_None); resultobj = Py_None;
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj;
10617 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10618 wxString *arg2 = 0 ;
10619 bool temp2 = False ;
10620 PyObject * obj0 = 0 ;
10621 PyObject * obj1 = 0 ;
10622 char *kwnames[] = {
10623 (char *) "self",(char *) "text", NULL
10624 };
10625
10626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
10627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10629 {
10630 arg2 = wxString_in_helper(obj1);
10631 if (arg2 == NULL) SWIG_fail;
10632 temp2 = True;
10633 }
10634 {
10635 PyThreadState* __tstate = wxPyBeginAllowThreads();
10636 (arg1)->SetValue((wxString const &)*arg2);
10637
10638 wxPyEndAllowThreads(__tstate);
10639 if (PyErr_Occurred()) SWIG_fail;
10640 }
10641 Py_INCREF(Py_None); resultobj = Py_None;
10642 {
10643 if (temp2)
10644 delete arg2;
10645 }
10646 return resultobj;
10647 fail:
10648 {
10649 if (temp2)
10650 delete arg2;
10651 }
10652 return NULL;
10653 }
10654
10655
10656 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10657 PyObject *resultobj;
10658 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10659 int arg2 ;
10660 int arg3 ;
10661 PyObject * obj0 = 0 ;
10662 PyObject * obj1 = 0 ;
10663 PyObject * obj2 = 0 ;
10664 char *kwnames[] = {
10665 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10666 };
10667
10668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10671 arg2 = (int) SWIG_AsInt(obj1);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 arg3 = (int) SWIG_AsInt(obj2);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 {
10676 PyThreadState* __tstate = wxPyBeginAllowThreads();
10677 (arg1)->SetRange(arg2,arg3);
10678
10679 wxPyEndAllowThreads(__tstate);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 Py_INCREF(Py_None); resultobj = Py_None;
10683 return resultobj;
10684 fail:
10685 return NULL;
10686 }
10687
10688
10689 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10690 PyObject *resultobj;
10691 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10692 int result;
10693 PyObject * obj0 = 0 ;
10694 char *kwnames[] = {
10695 (char *) "self", NULL
10696 };
10697
10698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
10699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
10704
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 }
10708 resultobj = SWIG_FromInt((int)result);
10709 return resultobj;
10710 fail:
10711 return NULL;
10712 }
10713
10714
10715 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10716 PyObject *resultobj;
10717 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10718 int result;
10719 PyObject * obj0 = 0 ;
10720 char *kwnames[] = {
10721 (char *) "self", NULL
10722 };
10723
10724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
10725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10727 {
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
10730
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 resultobj = SWIG_FromInt((int)result);
10735 return resultobj;
10736 fail:
10737 return NULL;
10738 }
10739
10740
10741 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
10742 PyObject *resultobj;
10743 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10744 long arg2 ;
10745 long arg3 ;
10746 PyObject * obj0 = 0 ;
10747 PyObject * obj1 = 0 ;
10748 PyObject * obj2 = 0 ;
10749 char *kwnames[] = {
10750 (char *) "self",(char *) "from",(char *) "to", NULL
10751 };
10752
10753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
10754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10756 arg2 = (long) SWIG_AsLong(obj1);
10757 if (PyErr_Occurred()) SWIG_fail;
10758 arg3 = (long) SWIG_AsLong(obj2);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 {
10761 PyThreadState* __tstate = wxPyBeginAllowThreads();
10762 (arg1)->SetSelection(arg2,arg3);
10763
10764 wxPyEndAllowThreads(__tstate);
10765 if (PyErr_Occurred()) SWIG_fail;
10766 }
10767 Py_INCREF(Py_None); resultobj = Py_None;
10768 return resultobj;
10769 fail:
10770 return NULL;
10771 }
10772
10773
10774 static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
10775 PyObject *obj;
10776 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10777 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
10778 Py_INCREF(obj);
10779 return Py_BuildValue((char *)"");
10780 }
10781 static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10782 PyObject *resultobj;
10783 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10784 int arg2 = (int) 0 ;
10785 wxSpinEvent *result;
10786 PyObject * obj0 = 0 ;
10787 PyObject * obj1 = 0 ;
10788 char *kwnames[] = {
10789 (char *) "commandType",(char *) "winid", NULL
10790 };
10791
10792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
10793 if (obj0) {
10794 arg1 = (wxEventType) SWIG_AsInt(obj0);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 }
10797 if (obj1) {
10798 arg2 = (int) SWIG_AsInt(obj1);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 {
10802 PyThreadState* __tstate = wxPyBeginAllowThreads();
10803 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
10804
10805 wxPyEndAllowThreads(__tstate);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
10809 return resultobj;
10810 fail:
10811 return NULL;
10812 }
10813
10814
10815 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10816 PyObject *resultobj;
10817 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10818 int result;
10819 PyObject * obj0 = 0 ;
10820 char *kwnames[] = {
10821 (char *) "self", NULL
10822 };
10823
10824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
10825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
10826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10827 {
10828 PyThreadState* __tstate = wxPyBeginAllowThreads();
10829 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
10830
10831 wxPyEndAllowThreads(__tstate);
10832 if (PyErr_Occurred()) SWIG_fail;
10833 }
10834 resultobj = SWIG_FromInt((int)result);
10835 return resultobj;
10836 fail:
10837 return NULL;
10838 }
10839
10840
10841 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj;
10843 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10844 int arg2 ;
10845 PyObject * obj0 = 0 ;
10846 PyObject * obj1 = 0 ;
10847 char *kwnames[] = {
10848 (char *) "self",(char *) "pos", NULL
10849 };
10850
10851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
10852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
10853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10854 arg2 = (int) SWIG_AsInt(obj1);
10855 if (PyErr_Occurred()) SWIG_fail;
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 (arg1)->SetPosition(arg2);
10859
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 Py_INCREF(Py_None); resultobj = Py_None;
10864 return resultobj;
10865 fail:
10866 return NULL;
10867 }
10868
10869
10870 static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
10871 PyObject *obj;
10872 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10873 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
10874 Py_INCREF(obj);
10875 return Py_BuildValue((char *)"");
10876 }
10877 static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
10878 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
10879 return 1;
10880 }
10881
10882
10883 static PyObject *_wrap_RadioBoxNameStr_get() {
10884 PyObject *pyobj;
10885
10886 {
10887 #if wxUSE_UNICODE
10888 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
10889 #else
10890 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
10891 #endif
10892 }
10893 return pyobj;
10894 }
10895
10896
10897 static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
10898 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
10899 return 1;
10900 }
10901
10902
10903 static PyObject *_wrap_RadioButtonNameStr_get() {
10904 PyObject *pyobj;
10905
10906 {
10907 #if wxUSE_UNICODE
10908 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
10909 #else
10910 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
10911 #endif
10912 }
10913 return pyobj;
10914 }
10915
10916
10917 static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10918 PyObject *resultobj;
10919 wxWindow *arg1 = (wxWindow *) 0 ;
10920 int arg2 ;
10921 wxString *arg3 = 0 ;
10922 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10923 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10924 wxSize const &arg5_defvalue = wxDefaultSize ;
10925 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10926 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10927 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10928 int arg7 = (int) 0 ;
10929 long arg8 = (long) wxRA_HORIZONTAL ;
10930 wxValidator const &arg9_defvalue = wxDefaultValidator ;
10931 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
10932 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
10933 wxString *arg10 = (wxString *) &arg10_defvalue ;
10934 wxRadioBox *result;
10935 bool temp3 = False ;
10936 wxPoint temp4 ;
10937 wxSize temp5 ;
10938 bool temp6 = False ;
10939 bool temp10 = False ;
10940 PyObject * obj0 = 0 ;
10941 PyObject * obj1 = 0 ;
10942 PyObject * obj2 = 0 ;
10943 PyObject * obj3 = 0 ;
10944 PyObject * obj4 = 0 ;
10945 PyObject * obj5 = 0 ;
10946 PyObject * obj6 = 0 ;
10947 PyObject * obj7 = 0 ;
10948 PyObject * obj8 = 0 ;
10949 PyObject * obj9 = 0 ;
10950 char *kwnames[] = {
10951 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
10952 };
10953
10954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10957 arg2 = (int) SWIG_AsInt(obj1);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 {
10960 arg3 = wxString_in_helper(obj2);
10961 if (arg3 == NULL) SWIG_fail;
10962 temp3 = True;
10963 }
10964 if (obj3) {
10965 {
10966 arg4 = &temp4;
10967 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10968 }
10969 }
10970 if (obj4) {
10971 {
10972 arg5 = &temp5;
10973 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10974 }
10975 }
10976 if (obj5) {
10977 {
10978 if (! PySequence_Check(obj5)) {
10979 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10980 SWIG_fail;
10981 }
10982 arg6 = new wxArrayString;
10983 temp6 = True;
10984 int i, len=PySequence_Length(obj5);
10985 for (i=0; i<len; i++) {
10986 PyObject* item = PySequence_GetItem(obj5, i);
10987 #if wxUSE_UNICODE
10988 PyObject* str = PyObject_Unicode(item);
10989 #else
10990 PyObject* str = PyObject_Str(item);
10991 #endif
10992 arg6->Add(Py2wxString(str));
10993 Py_DECREF(item);
10994 Py_DECREF(str);
10995 }
10996 }
10997 }
10998 if (obj6) {
10999 arg7 = (int) SWIG_AsInt(obj6);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 if (obj7) {
11003 arg8 = (long) SWIG_AsLong(obj7);
11004 if (PyErr_Occurred()) SWIG_fail;
11005 }
11006 if (obj8) {
11007 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11008 SWIG_POINTER_EXCEPTION | 0)) == -1)
11009 SWIG_fail;
11010 if (arg9 == NULL) {
11011 PyErr_SetString(PyExc_TypeError,"null reference");
11012 SWIG_fail;
11013 }
11014 }
11015 if (obj9) {
11016 {
11017 arg10 = wxString_in_helper(obj9);
11018 if (arg10 == NULL) SWIG_fail;
11019 temp10 = True;
11020 }
11021 }
11022 {
11023 PyThreadState* __tstate = wxPyBeginAllowThreads();
11024 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);
11025
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11030 {
11031 if (temp3)
11032 delete arg3;
11033 }
11034 {
11035 if (temp6) delete arg6;
11036 }
11037 {
11038 if (temp10)
11039 delete arg10;
11040 }
11041 return resultobj;
11042 fail:
11043 {
11044 if (temp3)
11045 delete arg3;
11046 }
11047 {
11048 if (temp6) delete arg6;
11049 }
11050 {
11051 if (temp10)
11052 delete arg10;
11053 }
11054 return NULL;
11055 }
11056
11057
11058 static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11059 PyObject *resultobj;
11060 wxRadioBox *result;
11061 char *kwnames[] = {
11062 NULL
11063 };
11064
11065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11066 {
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 result = (wxRadioBox *)new wxRadioBox();
11069
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11074 return resultobj;
11075 fail:
11076 return NULL;
11077 }
11078
11079
11080 static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11081 PyObject *resultobj;
11082 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11083 wxWindow *arg2 = (wxWindow *) 0 ;
11084 int arg3 ;
11085 wxString *arg4 = 0 ;
11086 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11087 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11088 wxSize const &arg6_defvalue = wxDefaultSize ;
11089 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11090 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11091 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11092 int arg8 = (int) 0 ;
11093 long arg9 = (long) wxRA_HORIZONTAL ;
11094 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11095 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11096 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11097 wxString *arg11 = (wxString *) &arg11_defvalue ;
11098 bool result;
11099 bool temp4 = False ;
11100 wxPoint temp5 ;
11101 wxSize temp6 ;
11102 bool temp7 = False ;
11103 bool temp11 = False ;
11104 PyObject * obj0 = 0 ;
11105 PyObject * obj1 = 0 ;
11106 PyObject * obj2 = 0 ;
11107 PyObject * obj3 = 0 ;
11108 PyObject * obj4 = 0 ;
11109 PyObject * obj5 = 0 ;
11110 PyObject * obj6 = 0 ;
11111 PyObject * obj7 = 0 ;
11112 PyObject * obj8 = 0 ;
11113 PyObject * obj9 = 0 ;
11114 PyObject * obj10 = 0 ;
11115 char *kwnames[] = {
11116 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11117 };
11118
11119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11124 arg3 = (int) SWIG_AsInt(obj2);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 {
11127 arg4 = wxString_in_helper(obj3);
11128 if (arg4 == NULL) SWIG_fail;
11129 temp4 = True;
11130 }
11131 if (obj4) {
11132 {
11133 arg5 = &temp5;
11134 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11135 }
11136 }
11137 if (obj5) {
11138 {
11139 arg6 = &temp6;
11140 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11141 }
11142 }
11143 if (obj6) {
11144 {
11145 if (! PySequence_Check(obj6)) {
11146 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11147 SWIG_fail;
11148 }
11149 arg7 = new wxArrayString;
11150 temp7 = True;
11151 int i, len=PySequence_Length(obj6);
11152 for (i=0; i<len; i++) {
11153 PyObject* item = PySequence_GetItem(obj6, i);
11154 #if wxUSE_UNICODE
11155 PyObject* str = PyObject_Unicode(item);
11156 #else
11157 PyObject* str = PyObject_Str(item);
11158 #endif
11159 arg7->Add(Py2wxString(str));
11160 Py_DECREF(item);
11161 Py_DECREF(str);
11162 }
11163 }
11164 }
11165 if (obj7) {
11166 arg8 = (int) SWIG_AsInt(obj7);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 if (obj8) {
11170 arg9 = (long) SWIG_AsLong(obj8);
11171 if (PyErr_Occurred()) SWIG_fail;
11172 }
11173 if (obj9) {
11174 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11175 SWIG_POINTER_EXCEPTION | 0)) == -1)
11176 SWIG_fail;
11177 if (arg10 == NULL) {
11178 PyErr_SetString(PyExc_TypeError,"null reference");
11179 SWIG_fail;
11180 }
11181 }
11182 if (obj10) {
11183 {
11184 arg11 = wxString_in_helper(obj10);
11185 if (arg11 == NULL) SWIG_fail;
11186 temp11 = True;
11187 }
11188 }
11189 {
11190 PyThreadState* __tstate = wxPyBeginAllowThreads();
11191 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);
11192
11193 wxPyEndAllowThreads(__tstate);
11194 if (PyErr_Occurred()) SWIG_fail;
11195 }
11196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11197 {
11198 if (temp4)
11199 delete arg4;
11200 }
11201 {
11202 if (temp7) delete arg7;
11203 }
11204 {
11205 if (temp11)
11206 delete arg11;
11207 }
11208 return resultobj;
11209 fail:
11210 {
11211 if (temp4)
11212 delete arg4;
11213 }
11214 {
11215 if (temp7) delete arg7;
11216 }
11217 {
11218 if (temp11)
11219 delete arg11;
11220 }
11221 return NULL;
11222 }
11223
11224
11225 static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11226 PyObject *resultobj;
11227 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11228 int arg2 ;
11229 PyObject * obj0 = 0 ;
11230 PyObject * obj1 = 0 ;
11231 char *kwnames[] = {
11232 (char *) "self",(char *) "n", NULL
11233 };
11234
11235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11238 arg2 = (int) SWIG_AsInt(obj1);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 {
11241 PyThreadState* __tstate = wxPyBeginAllowThreads();
11242 (arg1)->SetSelection(arg2);
11243
11244 wxPyEndAllowThreads(__tstate);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 }
11247 Py_INCREF(Py_None); resultobj = Py_None;
11248 return resultobj;
11249 fail:
11250 return NULL;
11251 }
11252
11253
11254 static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11255 PyObject *resultobj;
11256 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11257 int result;
11258 PyObject * obj0 = 0 ;
11259 char *kwnames[] = {
11260 (char *) "self", NULL
11261 };
11262
11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11266 {
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11269
11270 wxPyEndAllowThreads(__tstate);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 }
11273 resultobj = SWIG_FromInt((int)result);
11274 return resultobj;
11275 fail:
11276 return NULL;
11277 }
11278
11279
11280 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11281 PyObject *resultobj;
11282 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11283 wxString result;
11284 PyObject * obj0 = 0 ;
11285 char *kwnames[] = {
11286 (char *) "self", NULL
11287 };
11288
11289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11292 {
11293 PyThreadState* __tstate = wxPyBeginAllowThreads();
11294 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11295
11296 wxPyEndAllowThreads(__tstate);
11297 if (PyErr_Occurred()) SWIG_fail;
11298 }
11299 {
11300 #if wxUSE_UNICODE
11301 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11302 #else
11303 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11304 #endif
11305 }
11306 return resultobj;
11307 fail:
11308 return NULL;
11309 }
11310
11311
11312 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11313 PyObject *resultobj;
11314 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11315 wxString *arg2 = 0 ;
11316 bool result;
11317 bool temp2 = False ;
11318 PyObject * obj0 = 0 ;
11319 PyObject * obj1 = 0 ;
11320 char *kwnames[] = {
11321 (char *) "self",(char *) "s", NULL
11322 };
11323
11324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
11325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11327 {
11328 arg2 = wxString_in_helper(obj1);
11329 if (arg2 == NULL) SWIG_fail;
11330 temp2 = True;
11331 }
11332 {
11333 PyThreadState* __tstate = wxPyBeginAllowThreads();
11334 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
11335
11336 wxPyEndAllowThreads(__tstate);
11337 if (PyErr_Occurred()) SWIG_fail;
11338 }
11339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11340 {
11341 if (temp2)
11342 delete arg2;
11343 }
11344 return resultobj;
11345 fail:
11346 {
11347 if (temp2)
11348 delete arg2;
11349 }
11350 return NULL;
11351 }
11352
11353
11354 static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11355 PyObject *resultobj;
11356 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11357 int result;
11358 PyObject * obj0 = 0 ;
11359 char *kwnames[] = {
11360 (char *) "self", NULL
11361 };
11362
11363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
11364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11366 {
11367 PyThreadState* __tstate = wxPyBeginAllowThreads();
11368 result = (int)((wxRadioBox const *)arg1)->GetCount();
11369
11370 wxPyEndAllowThreads(__tstate);
11371 if (PyErr_Occurred()) SWIG_fail;
11372 }
11373 resultobj = SWIG_FromInt((int)result);
11374 return resultobj;
11375 fail:
11376 return NULL;
11377 }
11378
11379
11380 static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
11381 PyObject *resultobj;
11382 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11383 wxString *arg2 = 0 ;
11384 int result;
11385 bool temp2 = False ;
11386 PyObject * obj0 = 0 ;
11387 PyObject * obj1 = 0 ;
11388 char *kwnames[] = {
11389 (char *) "self",(char *) "s", NULL
11390 };
11391
11392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
11393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11395 {
11396 arg2 = wxString_in_helper(obj1);
11397 if (arg2 == NULL) SWIG_fail;
11398 temp2 = True;
11399 }
11400 {
11401 PyThreadState* __tstate = wxPyBeginAllowThreads();
11402 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
11403
11404 wxPyEndAllowThreads(__tstate);
11405 if (PyErr_Occurred()) SWIG_fail;
11406 }
11407 resultobj = SWIG_FromInt((int)result);
11408 {
11409 if (temp2)
11410 delete arg2;
11411 }
11412 return resultobj;
11413 fail:
11414 {
11415 if (temp2)
11416 delete arg2;
11417 }
11418 return NULL;
11419 }
11420
11421
11422 static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
11423 PyObject *resultobj;
11424 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11425 int arg2 ;
11426 wxString result;
11427 PyObject * obj0 = 0 ;
11428 PyObject * obj1 = 0 ;
11429 char *kwnames[] = {
11430 (char *) "self",(char *) "n", NULL
11431 };
11432
11433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
11434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11436 arg2 = (int) SWIG_AsInt(obj1);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 {
11439 PyThreadState* __tstate = wxPyBeginAllowThreads();
11440 result = ((wxRadioBox const *)arg1)->GetString(arg2);
11441
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 {
11446 #if wxUSE_UNICODE
11447 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11448 #else
11449 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11450 #endif
11451 }
11452 return resultobj;
11453 fail:
11454 return NULL;
11455 }
11456
11457
11458 static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
11459 PyObject *resultobj;
11460 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11461 int arg2 ;
11462 wxString *arg3 = 0 ;
11463 bool temp3 = False ;
11464 PyObject * obj0 = 0 ;
11465 PyObject * obj1 = 0 ;
11466 PyObject * obj2 = 0 ;
11467 char *kwnames[] = {
11468 (char *) "self",(char *) "n",(char *) "label", NULL
11469 };
11470
11471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
11472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11474 arg2 = (int) SWIG_AsInt(obj1);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 {
11477 arg3 = wxString_in_helper(obj2);
11478 if (arg3 == NULL) SWIG_fail;
11479 temp3 = True;
11480 }
11481 {
11482 PyThreadState* __tstate = wxPyBeginAllowThreads();
11483 (arg1)->SetString(arg2,(wxString const &)*arg3);
11484
11485 wxPyEndAllowThreads(__tstate);
11486 if (PyErr_Occurred()) SWIG_fail;
11487 }
11488 Py_INCREF(Py_None); resultobj = Py_None;
11489 {
11490 if (temp3)
11491 delete arg3;
11492 }
11493 return resultobj;
11494 fail:
11495 {
11496 if (temp3)
11497 delete arg3;
11498 }
11499 return NULL;
11500 }
11501
11502
11503 static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11504 PyObject *resultobj;
11505 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11506 int arg2 ;
11507 bool arg3 = (bool) True ;
11508 PyObject * obj0 = 0 ;
11509 PyObject * obj1 = 0 ;
11510 PyObject * obj2 = 0 ;
11511 char *kwnames[] = {
11512 (char *) "self",(char *) "n",(char *) "enable", NULL
11513 };
11514
11515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11518 arg2 = (int) SWIG_AsInt(obj1);
11519 if (PyErr_Occurred()) SWIG_fail;
11520 if (obj2) {
11521 arg3 = (bool) SWIG_AsBool(obj2);
11522 if (PyErr_Occurred()) SWIG_fail;
11523 }
11524 {
11525 PyThreadState* __tstate = wxPyBeginAllowThreads();
11526 (arg1)->Enable(arg2,arg3);
11527
11528 wxPyEndAllowThreads(__tstate);
11529 if (PyErr_Occurred()) SWIG_fail;
11530 }
11531 Py_INCREF(Py_None); resultobj = Py_None;
11532 return resultobj;
11533 fail:
11534 return NULL;
11535 }
11536
11537
11538 static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11539 PyObject *resultobj;
11540 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11541 int arg2 ;
11542 bool arg3 = (bool) True ;
11543 PyObject * obj0 = 0 ;
11544 PyObject * obj1 = 0 ;
11545 PyObject * obj2 = 0 ;
11546 char *kwnames[] = {
11547 (char *) "self",(char *) "n",(char *) "show", NULL
11548 };
11549
11550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11553 arg2 = (int) SWIG_AsInt(obj1);
11554 if (PyErr_Occurred()) SWIG_fail;
11555 if (obj2) {
11556 arg3 = (bool) SWIG_AsBool(obj2);
11557 if (PyErr_Occurred()) SWIG_fail;
11558 }
11559 {
11560 PyThreadState* __tstate = wxPyBeginAllowThreads();
11561 (arg1)->Show(arg2,arg3);
11562
11563 wxPyEndAllowThreads(__tstate);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 }
11566 Py_INCREF(Py_None); resultobj = Py_None;
11567 return resultobj;
11568 fail:
11569 return NULL;
11570 }
11571
11572
11573 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11574 PyObject *resultobj;
11575 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11576 int result;
11577 PyObject * obj0 = 0 ;
11578 char *kwnames[] = {
11579 (char *) "self", NULL
11580 };
11581
11582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
11583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11585 {
11586 PyThreadState* __tstate = wxPyBeginAllowThreads();
11587 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
11588
11589 wxPyEndAllowThreads(__tstate);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 resultobj = SWIG_FromInt((int)result);
11593 return resultobj;
11594 fail:
11595 return NULL;
11596 }
11597
11598
11599 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11600 PyObject *resultobj;
11601 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11602 int result;
11603 PyObject * obj0 = 0 ;
11604 char *kwnames[] = {
11605 (char *) "self", NULL
11606 };
11607
11608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
11609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11611 {
11612 PyThreadState* __tstate = wxPyBeginAllowThreads();
11613 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
11614
11615 wxPyEndAllowThreads(__tstate);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 }
11618 resultobj = SWIG_FromInt((int)result);
11619 return resultobj;
11620 fail:
11621 return NULL;
11622 }
11623
11624
11625 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11626 PyObject *resultobj;
11627 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11628 int arg2 ;
11629 int arg3 ;
11630 long arg4 ;
11631 int result;
11632 PyObject * obj0 = 0 ;
11633 PyObject * obj1 = 0 ;
11634 PyObject * obj2 = 0 ;
11635 PyObject * obj3 = 0 ;
11636 char *kwnames[] = {
11637 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
11638 };
11639
11640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11643 arg2 = (int) SWIG_AsInt(obj1);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 arg3 = (wxDirection) SWIG_AsInt(obj2);
11646 if (PyErr_Occurred()) SWIG_fail;
11647 arg4 = (long) SWIG_AsLong(obj3);
11648 if (PyErr_Occurred()) SWIG_fail;
11649 {
11650 PyThreadState* __tstate = wxPyBeginAllowThreads();
11651 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
11652
11653 wxPyEndAllowThreads(__tstate);
11654 if (PyErr_Occurred()) SWIG_fail;
11655 }
11656 resultobj = SWIG_FromInt((int)result);
11657 return resultobj;
11658 fail:
11659 return NULL;
11660 }
11661
11662
11663 static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
11664 PyObject *obj;
11665 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11666 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
11667 Py_INCREF(obj);
11668 return Py_BuildValue((char *)"");
11669 }
11670 static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11671 PyObject *resultobj;
11672 wxWindow *arg1 = (wxWindow *) 0 ;
11673 int arg2 ;
11674 wxString *arg3 = 0 ;
11675 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11676 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11677 wxSize const &arg5_defvalue = wxDefaultSize ;
11678 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11679 long arg6 = (long) 0 ;
11680 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11681 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11682 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
11683 wxString *arg8 = (wxString *) &arg8_defvalue ;
11684 wxRadioButton *result;
11685 bool temp3 = False ;
11686 wxPoint temp4 ;
11687 wxSize temp5 ;
11688 bool temp8 = False ;
11689 PyObject * obj0 = 0 ;
11690 PyObject * obj1 = 0 ;
11691 PyObject * obj2 = 0 ;
11692 PyObject * obj3 = 0 ;
11693 PyObject * obj4 = 0 ;
11694 PyObject * obj5 = 0 ;
11695 PyObject * obj6 = 0 ;
11696 PyObject * obj7 = 0 ;
11697 char *kwnames[] = {
11698 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11699 };
11700
11701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11704 arg2 = (int) SWIG_AsInt(obj1);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 {
11707 arg3 = wxString_in_helper(obj2);
11708 if (arg3 == NULL) SWIG_fail;
11709 temp3 = True;
11710 }
11711 if (obj3) {
11712 {
11713 arg4 = &temp4;
11714 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11715 }
11716 }
11717 if (obj4) {
11718 {
11719 arg5 = &temp5;
11720 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11721 }
11722 }
11723 if (obj5) {
11724 arg6 = (long) SWIG_AsLong(obj5);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 if (obj6) {
11728 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
11729 SWIG_POINTER_EXCEPTION | 0)) == -1)
11730 SWIG_fail;
11731 if (arg7 == NULL) {
11732 PyErr_SetString(PyExc_TypeError,"null reference");
11733 SWIG_fail;
11734 }
11735 }
11736 if (obj7) {
11737 {
11738 arg8 = wxString_in_helper(obj7);
11739 if (arg8 == NULL) SWIG_fail;
11740 temp8 = True;
11741 }
11742 }
11743 {
11744 PyThreadState* __tstate = wxPyBeginAllowThreads();
11745 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11746
11747 wxPyEndAllowThreads(__tstate);
11748 if (PyErr_Occurred()) SWIG_fail;
11749 }
11750 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
11751 {
11752 if (temp3)
11753 delete arg3;
11754 }
11755 {
11756 if (temp8)
11757 delete arg8;
11758 }
11759 return resultobj;
11760 fail:
11761 {
11762 if (temp3)
11763 delete arg3;
11764 }
11765 {
11766 if (temp8)
11767 delete arg8;
11768 }
11769 return NULL;
11770 }
11771
11772
11773 static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11774 PyObject *resultobj;
11775 wxRadioButton *result;
11776 char *kwnames[] = {
11777 NULL
11778 };
11779
11780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 result = (wxRadioButton *)new wxRadioButton();
11784
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
11789 return resultobj;
11790 fail:
11791 return NULL;
11792 }
11793
11794
11795 static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11796 PyObject *resultobj;
11797 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11798 wxWindow *arg2 = (wxWindow *) 0 ;
11799 int arg3 ;
11800 wxString *arg4 = 0 ;
11801 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11802 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11803 wxSize const &arg6_defvalue = wxDefaultSize ;
11804 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11805 long arg7 = (long) 0 ;
11806 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11807 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11808 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
11809 wxString *arg9 = (wxString *) &arg9_defvalue ;
11810 bool result;
11811 bool temp4 = False ;
11812 wxPoint temp5 ;
11813 wxSize temp6 ;
11814 bool temp9 = False ;
11815 PyObject * obj0 = 0 ;
11816 PyObject * obj1 = 0 ;
11817 PyObject * obj2 = 0 ;
11818 PyObject * obj3 = 0 ;
11819 PyObject * obj4 = 0 ;
11820 PyObject * obj5 = 0 ;
11821 PyObject * obj6 = 0 ;
11822 PyObject * obj7 = 0 ;
11823 PyObject * obj8 = 0 ;
11824 char *kwnames[] = {
11825 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11826 };
11827
11828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
11829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
11830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11831 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11833 arg3 = (int) SWIG_AsInt(obj2);
11834 if (PyErr_Occurred()) SWIG_fail;
11835 {
11836 arg4 = wxString_in_helper(obj3);
11837 if (arg4 == NULL) SWIG_fail;
11838 temp4 = True;
11839 }
11840 if (obj4) {
11841 {
11842 arg5 = &temp5;
11843 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11844 }
11845 }
11846 if (obj5) {
11847 {
11848 arg6 = &temp6;
11849 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11850 }
11851 }
11852 if (obj6) {
11853 arg7 = (long) SWIG_AsLong(obj6);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 if (obj7) {
11857 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
11858 SWIG_POINTER_EXCEPTION | 0)) == -1)
11859 SWIG_fail;
11860 if (arg8 == NULL) {
11861 PyErr_SetString(PyExc_TypeError,"null reference");
11862 SWIG_fail;
11863 }
11864 }
11865 if (obj8) {
11866 {
11867 arg9 = wxString_in_helper(obj8);
11868 if (arg9 == NULL) SWIG_fail;
11869 temp9 = True;
11870 }
11871 }
11872 {
11873 PyThreadState* __tstate = wxPyBeginAllowThreads();
11874 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11875
11876 wxPyEndAllowThreads(__tstate);
11877 if (PyErr_Occurred()) SWIG_fail;
11878 }
11879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11880 {
11881 if (temp4)
11882 delete arg4;
11883 }
11884 {
11885 if (temp9)
11886 delete arg9;
11887 }
11888 return resultobj;
11889 fail:
11890 {
11891 if (temp4)
11892 delete arg4;
11893 }
11894 {
11895 if (temp9)
11896 delete arg9;
11897 }
11898 return NULL;
11899 }
11900
11901
11902 static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11903 PyObject *resultobj;
11904 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11905 bool result;
11906 PyObject * obj0 = 0 ;
11907 char *kwnames[] = {
11908 (char *) "self", NULL
11909 };
11910
11911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
11912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
11913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11914 {
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 result = (bool)(arg1)->GetValue();
11917
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11922 return resultobj;
11923 fail:
11924 return NULL;
11925 }
11926
11927
11928 static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11929 PyObject *resultobj;
11930 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11931 bool arg2 ;
11932 PyObject * obj0 = 0 ;
11933 PyObject * obj1 = 0 ;
11934 char *kwnames[] = {
11935 (char *) "self",(char *) "value", NULL
11936 };
11937
11938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
11940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11941 arg2 = (bool) SWIG_AsBool(obj1);
11942 if (PyErr_Occurred()) SWIG_fail;
11943 {
11944 PyThreadState* __tstate = wxPyBeginAllowThreads();
11945 (arg1)->SetValue(arg2);
11946
11947 wxPyEndAllowThreads(__tstate);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 }
11950 Py_INCREF(Py_None); resultobj = Py_None;
11951 return resultobj;
11952 fail:
11953 return NULL;
11954 }
11955
11956
11957 static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
11958 PyObject *obj;
11959 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11960 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
11961 Py_INCREF(obj);
11962 return Py_BuildValue((char *)"");
11963 }
11964 static int _wrap_SliderNameStr_set(PyObject *_val) {
11965 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
11966 return 1;
11967 }
11968
11969
11970 static PyObject *_wrap_SliderNameStr_get() {
11971 PyObject *pyobj;
11972
11973 {
11974 #if wxUSE_UNICODE
11975 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
11976 #else
11977 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
11978 #endif
11979 }
11980 return pyobj;
11981 }
11982
11983
11984 static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
11985 PyObject *resultobj;
11986 wxWindow *arg1 = (wxWindow *) 0 ;
11987 int arg2 ;
11988 int arg3 ;
11989 int arg4 ;
11990 int arg5 ;
11991 wxPoint const &arg6_defvalue = wxDefaultPosition ;
11992 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
11993 wxSize const &arg7_defvalue = wxDefaultSize ;
11994 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
11995 long arg8 = (long) wxSL_HORIZONTAL ;
11996 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11997 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11998 wxString const &arg10_defvalue = wxPySliderNameStr ;
11999 wxString *arg10 = (wxString *) &arg10_defvalue ;
12000 wxSlider *result;
12001 wxPoint temp6 ;
12002 wxSize temp7 ;
12003 bool temp10 = False ;
12004 PyObject * obj0 = 0 ;
12005 PyObject * obj1 = 0 ;
12006 PyObject * obj2 = 0 ;
12007 PyObject * obj3 = 0 ;
12008 PyObject * obj4 = 0 ;
12009 PyObject * obj5 = 0 ;
12010 PyObject * obj6 = 0 ;
12011 PyObject * obj7 = 0 ;
12012 PyObject * obj8 = 0 ;
12013 PyObject * obj9 = 0 ;
12014 char *kwnames[] = {
12015 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12016 };
12017
12018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12021 arg2 = (int) SWIG_AsInt(obj1);
12022 if (PyErr_Occurred()) SWIG_fail;
12023 arg3 = (int) SWIG_AsInt(obj2);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 arg4 = (int) SWIG_AsInt(obj3);
12026 if (PyErr_Occurred()) SWIG_fail;
12027 arg5 = (int) SWIG_AsInt(obj4);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 if (obj5) {
12030 {
12031 arg6 = &temp6;
12032 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12033 }
12034 }
12035 if (obj6) {
12036 {
12037 arg7 = &temp7;
12038 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12039 }
12040 }
12041 if (obj7) {
12042 arg8 = (long) SWIG_AsLong(obj7);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 if (obj8) {
12046 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12047 SWIG_POINTER_EXCEPTION | 0)) == -1)
12048 SWIG_fail;
12049 if (arg9 == NULL) {
12050 PyErr_SetString(PyExc_TypeError,"null reference");
12051 SWIG_fail;
12052 }
12053 }
12054 if (obj9) {
12055 {
12056 arg10 = wxString_in_helper(obj9);
12057 if (arg10 == NULL) SWIG_fail;
12058 temp10 = True;
12059 }
12060 }
12061 {
12062 PyThreadState* __tstate = wxPyBeginAllowThreads();
12063 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12064
12065 wxPyEndAllowThreads(__tstate);
12066 if (PyErr_Occurred()) SWIG_fail;
12067 }
12068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12069 {
12070 if (temp10)
12071 delete arg10;
12072 }
12073 return resultobj;
12074 fail:
12075 {
12076 if (temp10)
12077 delete arg10;
12078 }
12079 return NULL;
12080 }
12081
12082
12083 static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
12084 PyObject *resultobj;
12085 wxSlider *result;
12086 char *kwnames[] = {
12087 NULL
12088 };
12089
12090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 result = (wxSlider *)new wxSlider();
12094
12095 wxPyEndAllowThreads(__tstate);
12096 if (PyErr_Occurred()) SWIG_fail;
12097 }
12098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12099 return resultobj;
12100 fail:
12101 return NULL;
12102 }
12103
12104
12105 static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12106 PyObject *resultobj;
12107 wxSlider *arg1 = (wxSlider *) 0 ;
12108 wxWindow *arg2 = (wxWindow *) 0 ;
12109 int arg3 ;
12110 int arg4 ;
12111 int arg5 ;
12112 int arg6 ;
12113 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12114 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12115 wxSize const &arg8_defvalue = wxDefaultSize ;
12116 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12117 long arg9 = (long) wxSL_HORIZONTAL ;
12118 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12119 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12120 wxString const &arg11_defvalue = wxPySliderNameStr ;
12121 wxString *arg11 = (wxString *) &arg11_defvalue ;
12122 bool result;
12123 wxPoint temp7 ;
12124 wxSize temp8 ;
12125 bool temp11 = False ;
12126 PyObject * obj0 = 0 ;
12127 PyObject * obj1 = 0 ;
12128 PyObject * obj2 = 0 ;
12129 PyObject * obj3 = 0 ;
12130 PyObject * obj4 = 0 ;
12131 PyObject * obj5 = 0 ;
12132 PyObject * obj6 = 0 ;
12133 PyObject * obj7 = 0 ;
12134 PyObject * obj8 = 0 ;
12135 PyObject * obj9 = 0 ;
12136 PyObject * obj10 = 0 ;
12137 char *kwnames[] = {
12138 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12139 };
12140
12141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12144 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12146 arg3 = (int) SWIG_AsInt(obj2);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 arg4 = (int) SWIG_AsInt(obj3);
12149 if (PyErr_Occurred()) SWIG_fail;
12150 arg5 = (int) SWIG_AsInt(obj4);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 arg6 = (int) SWIG_AsInt(obj5);
12153 if (PyErr_Occurred()) SWIG_fail;
12154 if (obj6) {
12155 {
12156 arg7 = &temp7;
12157 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12158 }
12159 }
12160 if (obj7) {
12161 {
12162 arg8 = &temp8;
12163 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12164 }
12165 }
12166 if (obj8) {
12167 arg9 = (long) SWIG_AsLong(obj8);
12168 if (PyErr_Occurred()) SWIG_fail;
12169 }
12170 if (obj9) {
12171 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12172 SWIG_POINTER_EXCEPTION | 0)) == -1)
12173 SWIG_fail;
12174 if (arg10 == NULL) {
12175 PyErr_SetString(PyExc_TypeError,"null reference");
12176 SWIG_fail;
12177 }
12178 }
12179 if (obj10) {
12180 {
12181 arg11 = wxString_in_helper(obj10);
12182 if (arg11 == NULL) SWIG_fail;
12183 temp11 = True;
12184 }
12185 }
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12194 {
12195 if (temp11)
12196 delete arg11;
12197 }
12198 return resultobj;
12199 fail:
12200 {
12201 if (temp11)
12202 delete arg11;
12203 }
12204 return NULL;
12205 }
12206
12207
12208 static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12209 PyObject *resultobj;
12210 wxSlider *arg1 = (wxSlider *) 0 ;
12211 int result;
12212 PyObject * obj0 = 0 ;
12213 char *kwnames[] = {
12214 (char *) "self", NULL
12215 };
12216
12217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12220 {
12221 PyThreadState* __tstate = wxPyBeginAllowThreads();
12222 result = (int)((wxSlider const *)arg1)->GetValue();
12223
12224 wxPyEndAllowThreads(__tstate);
12225 if (PyErr_Occurred()) SWIG_fail;
12226 }
12227 resultobj = SWIG_FromInt((int)result);
12228 return resultobj;
12229 fail:
12230 return NULL;
12231 }
12232
12233
12234 static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12235 PyObject *resultobj;
12236 wxSlider *arg1 = (wxSlider *) 0 ;
12237 int arg2 ;
12238 PyObject * obj0 = 0 ;
12239 PyObject * obj1 = 0 ;
12240 char *kwnames[] = {
12241 (char *) "self",(char *) "value", NULL
12242 };
12243
12244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12247 arg2 = (int) SWIG_AsInt(obj1);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 {
12250 PyThreadState* __tstate = wxPyBeginAllowThreads();
12251 (arg1)->SetValue(arg2);
12252
12253 wxPyEndAllowThreads(__tstate);
12254 if (PyErr_Occurred()) SWIG_fail;
12255 }
12256 Py_INCREF(Py_None); resultobj = Py_None;
12257 return resultobj;
12258 fail:
12259 return NULL;
12260 }
12261
12262
12263 static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
12264 PyObject *resultobj;
12265 wxSlider *arg1 = (wxSlider *) 0 ;
12266 int arg2 ;
12267 int arg3 ;
12268 PyObject * obj0 = 0 ;
12269 PyObject * obj1 = 0 ;
12270 PyObject * obj2 = 0 ;
12271 char *kwnames[] = {
12272 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
12273 };
12274
12275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
12276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12278 arg2 = (int) SWIG_AsInt(obj1);
12279 if (PyErr_Occurred()) SWIG_fail;
12280 arg3 = (int) SWIG_AsInt(obj2);
12281 if (PyErr_Occurred()) SWIG_fail;
12282 {
12283 PyThreadState* __tstate = wxPyBeginAllowThreads();
12284 (arg1)->SetRange(arg2,arg3);
12285
12286 wxPyEndAllowThreads(__tstate);
12287 if (PyErr_Occurred()) SWIG_fail;
12288 }
12289 Py_INCREF(Py_None); resultobj = Py_None;
12290 return resultobj;
12291 fail:
12292 return NULL;
12293 }
12294
12295
12296 static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12297 PyObject *resultobj;
12298 wxSlider *arg1 = (wxSlider *) 0 ;
12299 int result;
12300 PyObject * obj0 = 0 ;
12301 char *kwnames[] = {
12302 (char *) "self", NULL
12303 };
12304
12305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
12306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12308 {
12309 PyThreadState* __tstate = wxPyBeginAllowThreads();
12310 result = (int)((wxSlider const *)arg1)->GetMin();
12311
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) SWIG_fail;
12314 }
12315 resultobj = SWIG_FromInt((int)result);
12316 return resultobj;
12317 fail:
12318 return NULL;
12319 }
12320
12321
12322 static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12323 PyObject *resultobj;
12324 wxSlider *arg1 = (wxSlider *) 0 ;
12325 int result;
12326 PyObject * obj0 = 0 ;
12327 char *kwnames[] = {
12328 (char *) "self", NULL
12329 };
12330
12331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
12332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12334 {
12335 PyThreadState* __tstate = wxPyBeginAllowThreads();
12336 result = (int)((wxSlider const *)arg1)->GetMax();
12337
12338 wxPyEndAllowThreads(__tstate);
12339 if (PyErr_Occurred()) SWIG_fail;
12340 }
12341 resultobj = SWIG_FromInt((int)result);
12342 return resultobj;
12343 fail:
12344 return NULL;
12345 }
12346
12347
12348 static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12349 PyObject *resultobj;
12350 wxSlider *arg1 = (wxSlider *) 0 ;
12351 int arg2 ;
12352 PyObject * obj0 = 0 ;
12353 PyObject * obj1 = 0 ;
12354 char *kwnames[] = {
12355 (char *) "self",(char *) "minValue", NULL
12356 };
12357
12358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
12359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12361 arg2 = (int) SWIG_AsInt(obj1);
12362 if (PyErr_Occurred()) SWIG_fail;
12363 {
12364 PyThreadState* __tstate = wxPyBeginAllowThreads();
12365 (arg1)->SetMin(arg2);
12366
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 Py_INCREF(Py_None); resultobj = Py_None;
12371 return resultobj;
12372 fail:
12373 return NULL;
12374 }
12375
12376
12377 static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12378 PyObject *resultobj;
12379 wxSlider *arg1 = (wxSlider *) 0 ;
12380 int arg2 ;
12381 PyObject * obj0 = 0 ;
12382 PyObject * obj1 = 0 ;
12383 char *kwnames[] = {
12384 (char *) "self",(char *) "maxValue", NULL
12385 };
12386
12387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
12388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12390 arg2 = (int) SWIG_AsInt(obj1);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 {
12393 PyThreadState* __tstate = wxPyBeginAllowThreads();
12394 (arg1)->SetMax(arg2);
12395
12396 wxPyEndAllowThreads(__tstate);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 }
12399 Py_INCREF(Py_None); resultobj = Py_None;
12400 return resultobj;
12401 fail:
12402 return NULL;
12403 }
12404
12405
12406 static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12407 PyObject *resultobj;
12408 wxSlider *arg1 = (wxSlider *) 0 ;
12409 int arg2 ;
12410 PyObject * obj0 = 0 ;
12411 PyObject * obj1 = 0 ;
12412 char *kwnames[] = {
12413 (char *) "self",(char *) "lineSize", NULL
12414 };
12415
12416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
12417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12419 arg2 = (int) SWIG_AsInt(obj1);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 {
12422 PyThreadState* __tstate = wxPyBeginAllowThreads();
12423 (arg1)->SetLineSize(arg2);
12424
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 Py_INCREF(Py_None); resultobj = Py_None;
12429 return resultobj;
12430 fail:
12431 return NULL;
12432 }
12433
12434
12435 static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12436 PyObject *resultobj;
12437 wxSlider *arg1 = (wxSlider *) 0 ;
12438 int arg2 ;
12439 PyObject * obj0 = 0 ;
12440 PyObject * obj1 = 0 ;
12441 char *kwnames[] = {
12442 (char *) "self",(char *) "pageSize", NULL
12443 };
12444
12445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
12446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12448 arg2 = (int) SWIG_AsInt(obj1);
12449 if (PyErr_Occurred()) SWIG_fail;
12450 {
12451 PyThreadState* __tstate = wxPyBeginAllowThreads();
12452 (arg1)->SetPageSize(arg2);
12453
12454 wxPyEndAllowThreads(__tstate);
12455 if (PyErr_Occurred()) SWIG_fail;
12456 }
12457 Py_INCREF(Py_None); resultobj = Py_None;
12458 return resultobj;
12459 fail:
12460 return NULL;
12461 }
12462
12463
12464 static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12465 PyObject *resultobj;
12466 wxSlider *arg1 = (wxSlider *) 0 ;
12467 int result;
12468 PyObject * obj0 = 0 ;
12469 char *kwnames[] = {
12470 (char *) "self", NULL
12471 };
12472
12473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
12474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12476 {
12477 PyThreadState* __tstate = wxPyBeginAllowThreads();
12478 result = (int)((wxSlider const *)arg1)->GetLineSize();
12479
12480 wxPyEndAllowThreads(__tstate);
12481 if (PyErr_Occurred()) SWIG_fail;
12482 }
12483 resultobj = SWIG_FromInt((int)result);
12484 return resultobj;
12485 fail:
12486 return NULL;
12487 }
12488
12489
12490 static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12491 PyObject *resultobj;
12492 wxSlider *arg1 = (wxSlider *) 0 ;
12493 int result;
12494 PyObject * obj0 = 0 ;
12495 char *kwnames[] = {
12496 (char *) "self", NULL
12497 };
12498
12499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
12500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12502 {
12503 PyThreadState* __tstate = wxPyBeginAllowThreads();
12504 result = (int)((wxSlider const *)arg1)->GetPageSize();
12505
12506 wxPyEndAllowThreads(__tstate);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 }
12509 resultobj = SWIG_FromInt((int)result);
12510 return resultobj;
12511 fail:
12512 return NULL;
12513 }
12514
12515
12516 static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
12517 PyObject *resultobj;
12518 wxSlider *arg1 = (wxSlider *) 0 ;
12519 int arg2 ;
12520 PyObject * obj0 = 0 ;
12521 PyObject * obj1 = 0 ;
12522 char *kwnames[] = {
12523 (char *) "self",(char *) "lenPixels", NULL
12524 };
12525
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12529 arg2 = (int) SWIG_AsInt(obj1);
12530 if (PyErr_Occurred()) SWIG_fail;
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 (arg1)->SetThumbLength(arg2);
12534
12535 wxPyEndAllowThreads(__tstate);
12536 if (PyErr_Occurred()) SWIG_fail;
12537 }
12538 Py_INCREF(Py_None); resultobj = Py_None;
12539 return resultobj;
12540 fail:
12541 return NULL;
12542 }
12543
12544
12545 static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
12546 PyObject *resultobj;
12547 wxSlider *arg1 = (wxSlider *) 0 ;
12548 int result;
12549 PyObject * obj0 = 0 ;
12550 char *kwnames[] = {
12551 (char *) "self", NULL
12552 };
12553
12554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
12555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 result = (int)((wxSlider const *)arg1)->GetThumbLength();
12560
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 resultobj = SWIG_FromInt((int)result);
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
12572 PyObject *resultobj;
12573 wxSlider *arg1 = (wxSlider *) 0 ;
12574 int arg2 ;
12575 int arg3 = (int) 1 ;
12576 PyObject * obj0 = 0 ;
12577 PyObject * obj1 = 0 ;
12578 PyObject * obj2 = 0 ;
12579 char *kwnames[] = {
12580 (char *) "self",(char *) "n",(char *) "pos", NULL
12581 };
12582
12583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
12584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12586 arg2 = (int) SWIG_AsInt(obj1);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 if (obj2) {
12589 arg3 = (int) SWIG_AsInt(obj2);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 }
12592 {
12593 PyThreadState* __tstate = wxPyBeginAllowThreads();
12594 (arg1)->SetTickFreq(arg2,arg3);
12595
12596 wxPyEndAllowThreads(__tstate);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 }
12599 Py_INCREF(Py_None); resultobj = Py_None;
12600 return resultobj;
12601 fail:
12602 return NULL;
12603 }
12604
12605
12606 static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
12607 PyObject *resultobj;
12608 wxSlider *arg1 = (wxSlider *) 0 ;
12609 int result;
12610 PyObject * obj0 = 0 ;
12611 char *kwnames[] = {
12612 (char *) "self", NULL
12613 };
12614
12615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
12616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 result = (int)((wxSlider const *)arg1)->GetTickFreq();
12621
12622 wxPyEndAllowThreads(__tstate);
12623 if (PyErr_Occurred()) SWIG_fail;
12624 }
12625 resultobj = SWIG_FromInt((int)result);
12626 return resultobj;
12627 fail:
12628 return NULL;
12629 }
12630
12631
12632 static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
12633 PyObject *resultobj;
12634 wxSlider *arg1 = (wxSlider *) 0 ;
12635 PyObject * obj0 = 0 ;
12636 char *kwnames[] = {
12637 (char *) "self", NULL
12638 };
12639
12640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
12641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12643 {
12644 PyThreadState* __tstate = wxPyBeginAllowThreads();
12645 (arg1)->ClearTicks();
12646
12647 wxPyEndAllowThreads(__tstate);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 Py_INCREF(Py_None); resultobj = Py_None;
12651 return resultobj;
12652 fail:
12653 return NULL;
12654 }
12655
12656
12657 static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
12658 PyObject *resultobj;
12659 wxSlider *arg1 = (wxSlider *) 0 ;
12660 int arg2 ;
12661 PyObject * obj0 = 0 ;
12662 PyObject * obj1 = 0 ;
12663 char *kwnames[] = {
12664 (char *) "self",(char *) "tickPos", NULL
12665 };
12666
12667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
12668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12670 arg2 = (int) SWIG_AsInt(obj1);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 {
12673 PyThreadState* __tstate = wxPyBeginAllowThreads();
12674 (arg1)->SetTick(arg2);
12675
12676 wxPyEndAllowThreads(__tstate);
12677 if (PyErr_Occurred()) SWIG_fail;
12678 }
12679 Py_INCREF(Py_None); resultobj = Py_None;
12680 return resultobj;
12681 fail:
12682 return NULL;
12683 }
12684
12685
12686 static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
12687 PyObject *resultobj;
12688 wxSlider *arg1 = (wxSlider *) 0 ;
12689 PyObject * obj0 = 0 ;
12690 char *kwnames[] = {
12691 (char *) "self", NULL
12692 };
12693
12694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
12695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12697 {
12698 PyThreadState* __tstate = wxPyBeginAllowThreads();
12699 (arg1)->ClearSel();
12700
12701 wxPyEndAllowThreads(__tstate);
12702 if (PyErr_Occurred()) SWIG_fail;
12703 }
12704 Py_INCREF(Py_None); resultobj = Py_None;
12705 return resultobj;
12706 fail:
12707 return NULL;
12708 }
12709
12710
12711 static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
12712 PyObject *resultobj;
12713 wxSlider *arg1 = (wxSlider *) 0 ;
12714 int result;
12715 PyObject * obj0 = 0 ;
12716 char *kwnames[] = {
12717 (char *) "self", NULL
12718 };
12719
12720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
12721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12723 {
12724 PyThreadState* __tstate = wxPyBeginAllowThreads();
12725 result = (int)((wxSlider const *)arg1)->GetSelEnd();
12726
12727 wxPyEndAllowThreads(__tstate);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 resultobj = SWIG_FromInt((int)result);
12731 return resultobj;
12732 fail:
12733 return NULL;
12734 }
12735
12736
12737 static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
12738 PyObject *resultobj;
12739 wxSlider *arg1 = (wxSlider *) 0 ;
12740 int result;
12741 PyObject * obj0 = 0 ;
12742 char *kwnames[] = {
12743 (char *) "self", NULL
12744 };
12745
12746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
12747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12749 {
12750 PyThreadState* __tstate = wxPyBeginAllowThreads();
12751 result = (int)((wxSlider const *)arg1)->GetSelStart();
12752
12753 wxPyEndAllowThreads(__tstate);
12754 if (PyErr_Occurred()) SWIG_fail;
12755 }
12756 resultobj = SWIG_FromInt((int)result);
12757 return resultobj;
12758 fail:
12759 return NULL;
12760 }
12761
12762
12763 static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12764 PyObject *resultobj;
12765 wxSlider *arg1 = (wxSlider *) 0 ;
12766 int arg2 ;
12767 int arg3 ;
12768 PyObject * obj0 = 0 ;
12769 PyObject * obj1 = 0 ;
12770 PyObject * obj2 = 0 ;
12771 char *kwnames[] = {
12772 (char *) "self",(char *) "min",(char *) "max", NULL
12773 };
12774
12775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
12776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12778 arg2 = (int) SWIG_AsInt(obj1);
12779 if (PyErr_Occurred()) SWIG_fail;
12780 arg3 = (int) SWIG_AsInt(obj2);
12781 if (PyErr_Occurred()) SWIG_fail;
12782 {
12783 PyThreadState* __tstate = wxPyBeginAllowThreads();
12784 (arg1)->SetSelection(arg2,arg3);
12785
12786 wxPyEndAllowThreads(__tstate);
12787 if (PyErr_Occurred()) SWIG_fail;
12788 }
12789 Py_INCREF(Py_None); resultobj = Py_None;
12790 return resultobj;
12791 fail:
12792 return NULL;
12793 }
12794
12795
12796 static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
12797 PyObject *obj;
12798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12799 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
12800 Py_INCREF(obj);
12801 return Py_BuildValue((char *)"");
12802 }
12803 static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
12804 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
12805 return 1;
12806 }
12807
12808
12809 static PyObject *_wrap_ToggleButtonNameStr_get() {
12810 PyObject *pyobj;
12811
12812 {
12813 #if wxUSE_UNICODE
12814 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12815 #else
12816 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12817 #endif
12818 }
12819 return pyobj;
12820 }
12821
12822
12823 static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12824 PyObject *resultobj;
12825 wxWindow *arg1 = (wxWindow *) 0 ;
12826 int arg2 ;
12827 wxString *arg3 = 0 ;
12828 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12829 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12830 wxSize const &arg5_defvalue = wxDefaultSize ;
12831 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12832 long arg6 = (long) 0 ;
12833 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12834 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12835 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
12836 wxString *arg8 = (wxString *) &arg8_defvalue ;
12837 wxToggleButton *result;
12838 bool temp3 = False ;
12839 wxPoint temp4 ;
12840 wxSize temp5 ;
12841 bool temp8 = False ;
12842 PyObject * obj0 = 0 ;
12843 PyObject * obj1 = 0 ;
12844 PyObject * obj2 = 0 ;
12845 PyObject * obj3 = 0 ;
12846 PyObject * obj4 = 0 ;
12847 PyObject * obj5 = 0 ;
12848 PyObject * obj6 = 0 ;
12849 PyObject * obj7 = 0 ;
12850 char *kwnames[] = {
12851 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12852 };
12853
12854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12857 arg2 = (int) SWIG_AsInt(obj1);
12858 if (PyErr_Occurred()) SWIG_fail;
12859 {
12860 arg3 = wxString_in_helper(obj2);
12861 if (arg3 == NULL) SWIG_fail;
12862 temp3 = True;
12863 }
12864 if (obj3) {
12865 {
12866 arg4 = &temp4;
12867 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12868 }
12869 }
12870 if (obj4) {
12871 {
12872 arg5 = &temp5;
12873 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12874 }
12875 }
12876 if (obj5) {
12877 arg6 = (long) SWIG_AsLong(obj5);
12878 if (PyErr_Occurred()) SWIG_fail;
12879 }
12880 if (obj6) {
12881 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12882 SWIG_POINTER_EXCEPTION | 0)) == -1)
12883 SWIG_fail;
12884 if (arg7 == NULL) {
12885 PyErr_SetString(PyExc_TypeError,"null reference");
12886 SWIG_fail;
12887 }
12888 }
12889 if (obj7) {
12890 {
12891 arg8 = wxString_in_helper(obj7);
12892 if (arg8 == NULL) SWIG_fail;
12893 temp8 = True;
12894 }
12895 }
12896 {
12897 PyThreadState* __tstate = wxPyBeginAllowThreads();
12898 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12899
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
12904 {
12905 if (temp3)
12906 delete arg3;
12907 }
12908 {
12909 if (temp8)
12910 delete arg8;
12911 }
12912 return resultobj;
12913 fail:
12914 {
12915 if (temp3)
12916 delete arg3;
12917 }
12918 {
12919 if (temp8)
12920 delete arg8;
12921 }
12922 return NULL;
12923 }
12924
12925
12926 static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12927 PyObject *resultobj;
12928 wxToggleButton *result;
12929 char *kwnames[] = {
12930 NULL
12931 };
12932
12933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
12934 {
12935 PyThreadState* __tstate = wxPyBeginAllowThreads();
12936 result = (wxToggleButton *)new wxToggleButton();
12937
12938 wxPyEndAllowThreads(__tstate);
12939 if (PyErr_Occurred()) SWIG_fail;
12940 }
12941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
12942 return resultobj;
12943 fail:
12944 return NULL;
12945 }
12946
12947
12948 static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12949 PyObject *resultobj;
12950 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12951 wxWindow *arg2 = (wxWindow *) 0 ;
12952 int arg3 ;
12953 wxString *arg4 = 0 ;
12954 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12955 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12956 wxSize const &arg6_defvalue = wxDefaultSize ;
12957 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12958 long arg7 = (long) 0 ;
12959 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12960 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12961 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
12962 wxString *arg9 = (wxString *) &arg9_defvalue ;
12963 bool result;
12964 bool temp4 = False ;
12965 wxPoint temp5 ;
12966 wxSize temp6 ;
12967 bool temp9 = False ;
12968 PyObject * obj0 = 0 ;
12969 PyObject * obj1 = 0 ;
12970 PyObject * obj2 = 0 ;
12971 PyObject * obj3 = 0 ;
12972 PyObject * obj4 = 0 ;
12973 PyObject * obj5 = 0 ;
12974 PyObject * obj6 = 0 ;
12975 PyObject * obj7 = 0 ;
12976 PyObject * obj8 = 0 ;
12977 char *kwnames[] = {
12978 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12979 };
12980
12981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
12983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12984 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12986 arg3 = (int) SWIG_AsInt(obj2);
12987 if (PyErr_Occurred()) SWIG_fail;
12988 {
12989 arg4 = wxString_in_helper(obj3);
12990 if (arg4 == NULL) SWIG_fail;
12991 temp4 = True;
12992 }
12993 if (obj4) {
12994 {
12995 arg5 = &temp5;
12996 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12997 }
12998 }
12999 if (obj5) {
13000 {
13001 arg6 = &temp6;
13002 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13003 }
13004 }
13005 if (obj6) {
13006 arg7 = (long) SWIG_AsLong(obj6);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 if (obj7) {
13010 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13011 SWIG_POINTER_EXCEPTION | 0)) == -1)
13012 SWIG_fail;
13013 if (arg8 == NULL) {
13014 PyErr_SetString(PyExc_TypeError,"null reference");
13015 SWIG_fail;
13016 }
13017 }
13018 if (obj8) {
13019 {
13020 arg9 = wxString_in_helper(obj8);
13021 if (arg9 == NULL) SWIG_fail;
13022 temp9 = True;
13023 }
13024 }
13025 {
13026 PyThreadState* __tstate = wxPyBeginAllowThreads();
13027 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13028
13029 wxPyEndAllowThreads(__tstate);
13030 if (PyErr_Occurred()) SWIG_fail;
13031 }
13032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13033 {
13034 if (temp4)
13035 delete arg4;
13036 }
13037 {
13038 if (temp9)
13039 delete arg9;
13040 }
13041 return resultobj;
13042 fail:
13043 {
13044 if (temp4)
13045 delete arg4;
13046 }
13047 {
13048 if (temp9)
13049 delete arg9;
13050 }
13051 return NULL;
13052 }
13053
13054
13055 static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13056 PyObject *resultobj;
13057 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13058 bool arg2 ;
13059 PyObject * obj0 = 0 ;
13060 PyObject * obj1 = 0 ;
13061 char *kwnames[] = {
13062 (char *) "self",(char *) "value", NULL
13063 };
13064
13065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13068 arg2 = (bool) SWIG_AsBool(obj1);
13069 if (PyErr_Occurred()) SWIG_fail;
13070 {
13071 PyThreadState* __tstate = wxPyBeginAllowThreads();
13072 (arg1)->SetValue(arg2);
13073
13074 wxPyEndAllowThreads(__tstate);
13075 if (PyErr_Occurred()) SWIG_fail;
13076 }
13077 Py_INCREF(Py_None); resultobj = Py_None;
13078 return resultobj;
13079 fail:
13080 return NULL;
13081 }
13082
13083
13084 static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13085 PyObject *resultobj;
13086 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13087 bool result;
13088 PyObject * obj0 = 0 ;
13089 char *kwnames[] = {
13090 (char *) "self", NULL
13091 };
13092
13093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
13094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13096 {
13097 PyThreadState* __tstate = wxPyBeginAllowThreads();
13098 result = (bool)((wxToggleButton const *)arg1)->GetValue();
13099
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13104 return resultobj;
13105 fail:
13106 return NULL;
13107 }
13108
13109
13110 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
13111 PyObject *resultobj;
13112 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13113 wxString *arg2 = 0 ;
13114 bool temp2 = False ;
13115 PyObject * obj0 = 0 ;
13116 PyObject * obj1 = 0 ;
13117 char *kwnames[] = {
13118 (char *) "self",(char *) "label", NULL
13119 };
13120
13121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
13122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13124 {
13125 arg2 = wxString_in_helper(obj1);
13126 if (arg2 == NULL) SWIG_fail;
13127 temp2 = True;
13128 }
13129 {
13130 PyThreadState* __tstate = wxPyBeginAllowThreads();
13131 (arg1)->SetLabel((wxString const &)*arg2);
13132
13133 wxPyEndAllowThreads(__tstate);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 Py_INCREF(Py_None); resultobj = Py_None;
13137 {
13138 if (temp2)
13139 delete arg2;
13140 }
13141 return resultobj;
13142 fail:
13143 {
13144 if (temp2)
13145 delete arg2;
13146 }
13147 return NULL;
13148 }
13149
13150
13151 static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
13152 PyObject *obj;
13153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13154 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
13155 Py_INCREF(obj);
13156 return Py_BuildValue((char *)"");
13157 }
13158 static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
13159 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
13160 return 1;
13161 }
13162
13163
13164 static PyObject *_wrap_NOTEBOOK_NAME_get() {
13165 PyObject *pyobj;
13166
13167 {
13168 #if wxUSE_UNICODE
13169 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13170 #else
13171 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13172 #endif
13173 }
13174 return pyobj;
13175 }
13176
13177
13178 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13179 PyObject *resultobj;
13180 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13181 size_t result;
13182 PyObject * obj0 = 0 ;
13183 char *kwnames[] = {
13184 (char *) "self", NULL
13185 };
13186
13187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
13188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13190 {
13191 PyThreadState* __tstate = wxPyBeginAllowThreads();
13192 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
13193
13194 wxPyEndAllowThreads(__tstate);
13195 if (PyErr_Occurred()) SWIG_fail;
13196 }
13197 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
13198 return resultobj;
13199 fail:
13200 return NULL;
13201 }
13202
13203
13204 static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13205 PyObject *resultobj;
13206 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13207 size_t arg2 ;
13208 wxWindow *result;
13209 PyObject * obj0 = 0 ;
13210 PyObject * obj1 = 0 ;
13211 char *kwnames[] = {
13212 (char *) "self",(char *) "n", NULL
13213 };
13214
13215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
13216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13218 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13219 if (PyErr_Occurred()) SWIG_fail;
13220 {
13221 PyThreadState* __tstate = wxPyBeginAllowThreads();
13222 result = (wxWindow *)(arg1)->GetPage(arg2);
13223
13224 wxPyEndAllowThreads(__tstate);
13225 if (PyErr_Occurred()) SWIG_fail;
13226 }
13227 {
13228 resultobj = wxPyMake_wxObject(result);
13229 }
13230 return resultobj;
13231 fail:
13232 return NULL;
13233 }
13234
13235
13236 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13237 PyObject *resultobj;
13238 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13239 int result;
13240 PyObject * obj0 = 0 ;
13241 char *kwnames[] = {
13242 (char *) "self", NULL
13243 };
13244
13245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
13246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13248 {
13249 PyThreadState* __tstate = wxPyBeginAllowThreads();
13250 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
13251
13252 wxPyEndAllowThreads(__tstate);
13253 if (PyErr_Occurred()) SWIG_fail;
13254 }
13255 resultobj = SWIG_FromInt((int)result);
13256 return resultobj;
13257 fail:
13258 return NULL;
13259 }
13260
13261
13262 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13263 PyObject *resultobj;
13264 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13265 size_t arg2 ;
13266 wxString *arg3 = 0 ;
13267 bool result;
13268 bool temp3 = False ;
13269 PyObject * obj0 = 0 ;
13270 PyObject * obj1 = 0 ;
13271 PyObject * obj2 = 0 ;
13272 char *kwnames[] = {
13273 (char *) "self",(char *) "n",(char *) "strText", NULL
13274 };
13275
13276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
13277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13279 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13280 if (PyErr_Occurred()) SWIG_fail;
13281 {
13282 arg3 = wxString_in_helper(obj2);
13283 if (arg3 == NULL) SWIG_fail;
13284 temp3 = True;
13285 }
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
13289
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13294 {
13295 if (temp3)
13296 delete arg3;
13297 }
13298 return resultobj;
13299 fail:
13300 {
13301 if (temp3)
13302 delete arg3;
13303 }
13304 return NULL;
13305 }
13306
13307
13308 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13309 PyObject *resultobj;
13310 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13311 size_t arg2 ;
13312 wxString result;
13313 PyObject * obj0 = 0 ;
13314 PyObject * obj1 = 0 ;
13315 char *kwnames[] = {
13316 (char *) "self",(char *) "n", NULL
13317 };
13318
13319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
13320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13322 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13323 if (PyErr_Occurred()) SWIG_fail;
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
13327
13328 wxPyEndAllowThreads(__tstate);
13329 if (PyErr_Occurred()) SWIG_fail;
13330 }
13331 {
13332 #if wxUSE_UNICODE
13333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13334 #else
13335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13336 #endif
13337 }
13338 return resultobj;
13339 fail:
13340 return NULL;
13341 }
13342
13343
13344 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13345 PyObject *resultobj;
13346 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13347 wxImageList *arg2 = (wxImageList *) 0 ;
13348 PyObject * obj0 = 0 ;
13349 PyObject * obj1 = 0 ;
13350 char *kwnames[] = {
13351 (char *) "self",(char *) "imageList", NULL
13352 };
13353
13354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
13355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
13358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13359 {
13360 PyThreadState* __tstate = wxPyBeginAllowThreads();
13361 (arg1)->SetImageList(arg2);
13362
13363 wxPyEndAllowThreads(__tstate);
13364 if (PyErr_Occurred()) SWIG_fail;
13365 }
13366 Py_INCREF(Py_None); resultobj = Py_None;
13367 return resultobj;
13368 fail:
13369 return NULL;
13370 }
13371
13372
13373 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13374 PyObject *resultobj;
13375 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13376 wxImageList *arg2 = (wxImageList *) 0 ;
13377 PyObject * obj0 = 0 ;
13378 PyObject * obj1 = 0 ;
13379 char *kwnames[] = {
13380 (char *) "self",(char *) "imageList", NULL
13381 };
13382
13383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
13384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13386 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
13387 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
13388 {
13389 PyThreadState* __tstate = wxPyBeginAllowThreads();
13390 (arg1)->AssignImageList(arg2);
13391
13392 wxPyEndAllowThreads(__tstate);
13393 if (PyErr_Occurred()) SWIG_fail;
13394 }
13395 Py_INCREF(Py_None); resultobj = Py_None;
13396 return resultobj;
13397 fail:
13398 return NULL;
13399 }
13400
13401
13402 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13403 PyObject *resultobj;
13404 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13405 wxImageList *result;
13406 PyObject * obj0 = 0 ;
13407 char *kwnames[] = {
13408 (char *) "self", NULL
13409 };
13410
13411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
13412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13414 {
13415 PyThreadState* __tstate = wxPyBeginAllowThreads();
13416 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
13417
13418 wxPyEndAllowThreads(__tstate);
13419 if (PyErr_Occurred()) SWIG_fail;
13420 }
13421 {
13422 resultobj = wxPyMake_wxObject(result);
13423 }
13424 return resultobj;
13425 fail:
13426 return NULL;
13427 }
13428
13429
13430 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj;
13432 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13433 size_t arg2 ;
13434 int result;
13435 PyObject * obj0 = 0 ;
13436 PyObject * obj1 = 0 ;
13437 char *kwnames[] = {
13438 (char *) "self",(char *) "n", NULL
13439 };
13440
13441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
13442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13444 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13445 if (PyErr_Occurred()) SWIG_fail;
13446 {
13447 PyThreadState* __tstate = wxPyBeginAllowThreads();
13448 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
13449
13450 wxPyEndAllowThreads(__tstate);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 }
13453 resultobj = SWIG_FromInt((int)result);
13454 return resultobj;
13455 fail:
13456 return NULL;
13457 }
13458
13459
13460 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
13461 PyObject *resultobj;
13462 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13463 size_t arg2 ;
13464 int arg3 ;
13465 bool result;
13466 PyObject * obj0 = 0 ;
13467 PyObject * obj1 = 0 ;
13468 PyObject * obj2 = 0 ;
13469 char *kwnames[] = {
13470 (char *) "self",(char *) "n",(char *) "imageId", NULL
13471 };
13472
13473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
13474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13476 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13477 if (PyErr_Occurred()) SWIG_fail;
13478 arg3 = (int) SWIG_AsInt(obj2);
13479 if (PyErr_Occurred()) SWIG_fail;
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 result = (bool)(arg1)->SetPageImage(arg2,arg3);
13483
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13488 return resultobj;
13489 fail:
13490 return NULL;
13491 }
13492
13493
13494 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13495 PyObject *resultobj;
13496 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13497 wxSize *arg2 = 0 ;
13498 wxSize temp2 ;
13499 PyObject * obj0 = 0 ;
13500 PyObject * obj1 = 0 ;
13501 char *kwnames[] = {
13502 (char *) "self",(char *) "size", NULL
13503 };
13504
13505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13508 {
13509 arg2 = &temp2;
13510 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13511 }
13512 {
13513 PyThreadState* __tstate = wxPyBeginAllowThreads();
13514 (arg1)->SetPageSize((wxSize const &)*arg2);
13515
13516 wxPyEndAllowThreads(__tstate);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 }
13519 Py_INCREF(Py_None); resultobj = Py_None;
13520 return resultobj;
13521 fail:
13522 return NULL;
13523 }
13524
13525
13526 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13527 PyObject *resultobj;
13528 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13529 wxSize *arg2 = 0 ;
13530 wxSize result;
13531 wxSize temp2 ;
13532 PyObject * obj0 = 0 ;
13533 PyObject * obj1 = 0 ;
13534 char *kwnames[] = {
13535 (char *) "self",(char *) "sizePage", NULL
13536 };
13537
13538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
13539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13541 {
13542 arg2 = &temp2;
13543 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13544 }
13545 {
13546 PyThreadState* __tstate = wxPyBeginAllowThreads();
13547 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
13548
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 {
13553 wxSize * resultptr;
13554 resultptr = new wxSize((wxSize &) result);
13555 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13556 }
13557 return resultobj;
13558 fail:
13559 return NULL;
13560 }
13561
13562
13563 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
13564 PyObject *resultobj;
13565 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13566 size_t arg2 ;
13567 bool result;
13568 PyObject * obj0 = 0 ;
13569 PyObject * obj1 = 0 ;
13570 char *kwnames[] = {
13571 (char *) "self",(char *) "n", NULL
13572 };
13573
13574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
13575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13577 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 {
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 result = (bool)(arg1)->DeletePage(arg2);
13582
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13587 return resultobj;
13588 fail:
13589 return NULL;
13590 }
13591
13592
13593 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
13594 PyObject *resultobj;
13595 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13596 size_t arg2 ;
13597 bool result;
13598 PyObject * obj0 = 0 ;
13599 PyObject * obj1 = 0 ;
13600 char *kwnames[] = {
13601 (char *) "self",(char *) "n", NULL
13602 };
13603
13604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
13605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13607 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 result = (bool)(arg1)->RemovePage(arg2);
13612
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13617 return resultobj;
13618 fail:
13619 return NULL;
13620 }
13621
13622
13623 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
13624 PyObject *resultobj;
13625 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13626 bool result;
13627 PyObject * obj0 = 0 ;
13628 char *kwnames[] = {
13629 (char *) "self", NULL
13630 };
13631
13632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
13633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13635 {
13636 PyThreadState* __tstate = wxPyBeginAllowThreads();
13637 result = (bool)(arg1)->DeleteAllPages();
13638
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13643 return resultobj;
13644 fail:
13645 return NULL;
13646 }
13647
13648
13649 static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj;
13651 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13652 wxWindow *arg2 = (wxWindow *) 0 ;
13653 wxString *arg3 = 0 ;
13654 bool arg4 = (bool) False ;
13655 int arg5 = (int) -1 ;
13656 bool result;
13657 bool temp3 = False ;
13658 PyObject * obj0 = 0 ;
13659 PyObject * obj1 = 0 ;
13660 PyObject * obj2 = 0 ;
13661 PyObject * obj3 = 0 ;
13662 PyObject * obj4 = 0 ;
13663 char *kwnames[] = {
13664 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13665 };
13666
13667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13670 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13672 {
13673 arg3 = wxString_in_helper(obj2);
13674 if (arg3 == NULL) SWIG_fail;
13675 temp3 = True;
13676 }
13677 if (obj3) {
13678 arg4 = (bool) SWIG_AsBool(obj3);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 if (obj4) {
13682 arg5 = (int) SWIG_AsInt(obj4);
13683 if (PyErr_Occurred()) SWIG_fail;
13684 }
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
13688
13689 wxPyEndAllowThreads(__tstate);
13690 if (PyErr_Occurred()) SWIG_fail;
13691 }
13692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13693 {
13694 if (temp3)
13695 delete arg3;
13696 }
13697 return resultobj;
13698 fail:
13699 {
13700 if (temp3)
13701 delete arg3;
13702 }
13703 return NULL;
13704 }
13705
13706
13707 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13708 PyObject *resultobj;
13709 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13710 size_t arg2 ;
13711 wxWindow *arg3 = (wxWindow *) 0 ;
13712 wxString *arg4 = 0 ;
13713 bool arg5 = (bool) False ;
13714 int arg6 = (int) -1 ;
13715 bool result;
13716 bool temp4 = False ;
13717 PyObject * obj0 = 0 ;
13718 PyObject * obj1 = 0 ;
13719 PyObject * obj2 = 0 ;
13720 PyObject * obj3 = 0 ;
13721 PyObject * obj4 = 0 ;
13722 PyObject * obj5 = 0 ;
13723 char *kwnames[] = {
13724 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13725 };
13726
13727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13730 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
13733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13734 {
13735 arg4 = wxString_in_helper(obj3);
13736 if (arg4 == NULL) SWIG_fail;
13737 temp4 = True;
13738 }
13739 if (obj4) {
13740 arg5 = (bool) SWIG_AsBool(obj4);
13741 if (PyErr_Occurred()) SWIG_fail;
13742 }
13743 if (obj5) {
13744 arg6 = (int) SWIG_AsInt(obj5);
13745 if (PyErr_Occurred()) SWIG_fail;
13746 }
13747 {
13748 PyThreadState* __tstate = wxPyBeginAllowThreads();
13749 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
13750
13751 wxPyEndAllowThreads(__tstate);
13752 if (PyErr_Occurred()) SWIG_fail;
13753 }
13754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13755 {
13756 if (temp4)
13757 delete arg4;
13758 }
13759 return resultobj;
13760 fail:
13761 {
13762 if (temp4)
13763 delete arg4;
13764 }
13765 return NULL;
13766 }
13767
13768
13769 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13770 PyObject *resultobj;
13771 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13772 size_t arg2 ;
13773 int result;
13774 PyObject * obj0 = 0 ;
13775 PyObject * obj1 = 0 ;
13776 char *kwnames[] = {
13777 (char *) "self",(char *) "n", NULL
13778 };
13779
13780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13783 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13784 if (PyErr_Occurred()) SWIG_fail;
13785 {
13786 PyThreadState* __tstate = wxPyBeginAllowThreads();
13787 result = (int)(arg1)->SetSelection(arg2);
13788
13789 wxPyEndAllowThreads(__tstate);
13790 if (PyErr_Occurred()) SWIG_fail;
13791 }
13792 resultobj = SWIG_FromInt((int)result);
13793 return resultobj;
13794 fail:
13795 return NULL;
13796 }
13797
13798
13799 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13800 PyObject *resultobj;
13801 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13802 bool arg2 = (bool) True ;
13803 PyObject * obj0 = 0 ;
13804 PyObject * obj1 = 0 ;
13805 char *kwnames[] = {
13806 (char *) "self",(char *) "forward", NULL
13807 };
13808
13809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
13810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13812 if (obj1) {
13813 arg2 = (bool) SWIG_AsBool(obj1);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 {
13817 PyThreadState* __tstate = wxPyBeginAllowThreads();
13818 (arg1)->AdvanceSelection(arg2);
13819
13820 wxPyEndAllowThreads(__tstate);
13821 if (PyErr_Occurred()) SWIG_fail;
13822 }
13823 Py_INCREF(Py_None); resultobj = Py_None;
13824 return resultobj;
13825 fail:
13826 return NULL;
13827 }
13828
13829
13830 static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
13831 PyObject *obj;
13832 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13833 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
13834 Py_INCREF(obj);
13835 return Py_BuildValue((char *)"");
13836 }
13837 static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13838 PyObject *resultobj;
13839 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13840 int arg2 = (int) 0 ;
13841 int arg3 = (int) -1 ;
13842 int arg4 = (int) -1 ;
13843 wxBookCtrlEvent *result;
13844 PyObject * obj0 = 0 ;
13845 PyObject * obj1 = 0 ;
13846 PyObject * obj2 = 0 ;
13847 PyObject * obj3 = 0 ;
13848 char *kwnames[] = {
13849 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
13850 };
13851
13852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13853 if (obj0) {
13854 arg1 = (wxEventType) SWIG_AsInt(obj0);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 if (obj1) {
13858 arg2 = (int) SWIG_AsInt(obj1);
13859 if (PyErr_Occurred()) SWIG_fail;
13860 }
13861 if (obj2) {
13862 arg3 = (int) SWIG_AsInt(obj2);
13863 if (PyErr_Occurred()) SWIG_fail;
13864 }
13865 if (obj3) {
13866 arg4 = (int) SWIG_AsInt(obj3);
13867 if (PyErr_Occurred()) SWIG_fail;
13868 }
13869 {
13870 PyThreadState* __tstate = wxPyBeginAllowThreads();
13871 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
13872
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
13877 return resultobj;
13878 fail:
13879 return NULL;
13880 }
13881
13882
13883 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13884 PyObject *resultobj;
13885 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13886 int result;
13887 PyObject * obj0 = 0 ;
13888 char *kwnames[] = {
13889 (char *) "self", NULL
13890 };
13891
13892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
13893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13895 {
13896 PyThreadState* __tstate = wxPyBeginAllowThreads();
13897 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
13898
13899 wxPyEndAllowThreads(__tstate);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 resultobj = SWIG_FromInt((int)result);
13903 return resultobj;
13904 fail:
13905 return NULL;
13906 }
13907
13908
13909 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13910 PyObject *resultobj;
13911 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13912 int arg2 ;
13913 PyObject * obj0 = 0 ;
13914 PyObject * obj1 = 0 ;
13915 char *kwnames[] = {
13916 (char *) "self",(char *) "nSel", NULL
13917 };
13918
13919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13922 arg2 = (int) SWIG_AsInt(obj1);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 {
13925 PyThreadState* __tstate = wxPyBeginAllowThreads();
13926 (arg1)->SetSelection(arg2);
13927
13928 wxPyEndAllowThreads(__tstate);
13929 if (PyErr_Occurred()) SWIG_fail;
13930 }
13931 Py_INCREF(Py_None); resultobj = Py_None;
13932 return resultobj;
13933 fail:
13934 return NULL;
13935 }
13936
13937
13938 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13939 PyObject *resultobj;
13940 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13941 int result;
13942 PyObject * obj0 = 0 ;
13943 char *kwnames[] = {
13944 (char *) "self", NULL
13945 };
13946
13947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
13948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13950 {
13951 PyThreadState* __tstate = wxPyBeginAllowThreads();
13952 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
13953
13954 wxPyEndAllowThreads(__tstate);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 }
13957 resultobj = SWIG_FromInt((int)result);
13958 return resultobj;
13959 fail:
13960 return NULL;
13961 }
13962
13963
13964 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13965 PyObject *resultobj;
13966 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13967 int arg2 ;
13968 PyObject * obj0 = 0 ;
13969 PyObject * obj1 = 0 ;
13970 char *kwnames[] = {
13971 (char *) "self",(char *) "nOldSel", NULL
13972 };
13973
13974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
13975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13977 arg2 = (int) SWIG_AsInt(obj1);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 {
13980 PyThreadState* __tstate = wxPyBeginAllowThreads();
13981 (arg1)->SetOldSelection(arg2);
13982
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 Py_INCREF(Py_None); resultobj = Py_None;
13987 return resultobj;
13988 fail:
13989 return NULL;
13990 }
13991
13992
13993 static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
13994 PyObject *obj;
13995 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13996 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
13997 Py_INCREF(obj);
13998 return Py_BuildValue((char *)"");
13999 }
14000 static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14001 PyObject *resultobj;
14002 wxWindow *arg1 = (wxWindow *) 0 ;
14003 int arg2 ;
14004 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14005 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14006 wxSize const &arg4_defvalue = wxDefaultSize ;
14007 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14008 long arg5 = (long) 0 ;
14009 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
14010 wxString *arg6 = (wxString *) &arg6_defvalue ;
14011 wxNotebook *result;
14012 wxPoint temp3 ;
14013 wxSize temp4 ;
14014 bool temp6 = False ;
14015 PyObject * obj0 = 0 ;
14016 PyObject * obj1 = 0 ;
14017 PyObject * obj2 = 0 ;
14018 PyObject * obj3 = 0 ;
14019 PyObject * obj4 = 0 ;
14020 PyObject * obj5 = 0 ;
14021 char *kwnames[] = {
14022 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14023 };
14024
14025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14028 arg2 = (int) SWIG_AsInt(obj1);
14029 if (PyErr_Occurred()) SWIG_fail;
14030 if (obj2) {
14031 {
14032 arg3 = &temp3;
14033 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14034 }
14035 }
14036 if (obj3) {
14037 {
14038 arg4 = &temp4;
14039 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14040 }
14041 }
14042 if (obj4) {
14043 arg5 = (long) SWIG_AsLong(obj4);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 }
14046 if (obj5) {
14047 {
14048 arg6 = wxString_in_helper(obj5);
14049 if (arg6 == NULL) SWIG_fail;
14050 temp6 = True;
14051 }
14052 }
14053 {
14054 PyThreadState* __tstate = wxPyBeginAllowThreads();
14055 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14056
14057 wxPyEndAllowThreads(__tstate);
14058 if (PyErr_Occurred()) SWIG_fail;
14059 }
14060 {
14061 resultobj = wxPyMake_wxObject(result);
14062 }
14063 {
14064 if (temp6)
14065 delete arg6;
14066 }
14067 return resultobj;
14068 fail:
14069 {
14070 if (temp6)
14071 delete arg6;
14072 }
14073 return NULL;
14074 }
14075
14076
14077 static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14078 PyObject *resultobj;
14079 wxNotebook *result;
14080 char *kwnames[] = {
14081 NULL
14082 };
14083
14084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
14085 {
14086 PyThreadState* __tstate = wxPyBeginAllowThreads();
14087 result = (wxNotebook *)new wxNotebook();
14088
14089 wxPyEndAllowThreads(__tstate);
14090 if (PyErr_Occurred()) SWIG_fail;
14091 }
14092 {
14093 resultobj = wxPyMake_wxObject(result);
14094 }
14095 return resultobj;
14096 fail:
14097 return NULL;
14098 }
14099
14100
14101 static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14102 PyObject *resultobj;
14103 wxNotebook *arg1 = (wxNotebook *) 0 ;
14104 wxWindow *arg2 = (wxWindow *) 0 ;
14105 int arg3 ;
14106 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14107 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14108 wxSize const &arg5_defvalue = wxDefaultSize ;
14109 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14110 long arg6 = (long) 0 ;
14111 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
14112 wxString *arg7 = (wxString *) &arg7_defvalue ;
14113 bool result;
14114 wxPoint temp4 ;
14115 wxSize temp5 ;
14116 bool temp7 = False ;
14117 PyObject * obj0 = 0 ;
14118 PyObject * obj1 = 0 ;
14119 PyObject * obj2 = 0 ;
14120 PyObject * obj3 = 0 ;
14121 PyObject * obj4 = 0 ;
14122 PyObject * obj5 = 0 ;
14123 PyObject * obj6 = 0 ;
14124 char *kwnames[] = {
14125 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14126 };
14127
14128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14131 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14133 arg3 = (int) SWIG_AsInt(obj2);
14134 if (PyErr_Occurred()) SWIG_fail;
14135 if (obj3) {
14136 {
14137 arg4 = &temp4;
14138 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14139 }
14140 }
14141 if (obj4) {
14142 {
14143 arg5 = &temp5;
14144 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14145 }
14146 }
14147 if (obj5) {
14148 arg6 = (long) SWIG_AsLong(obj5);
14149 if (PyErr_Occurred()) SWIG_fail;
14150 }
14151 if (obj6) {
14152 {
14153 arg7 = wxString_in_helper(obj6);
14154 if (arg7 == NULL) SWIG_fail;
14155 temp7 = True;
14156 }
14157 }
14158 {
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14161
14162 wxPyEndAllowThreads(__tstate);
14163 if (PyErr_Occurred()) SWIG_fail;
14164 }
14165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14166 {
14167 if (temp7)
14168 delete arg7;
14169 }
14170 return resultobj;
14171 fail:
14172 {
14173 if (temp7)
14174 delete arg7;
14175 }
14176 return NULL;
14177 }
14178
14179
14180 static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14181 PyObject *resultobj;
14182 wxNotebook *arg1 = (wxNotebook *) 0 ;
14183 int result;
14184 PyObject * obj0 = 0 ;
14185 char *kwnames[] = {
14186 (char *) "self", NULL
14187 };
14188
14189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
14190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14192 {
14193 PyThreadState* __tstate = wxPyBeginAllowThreads();
14194 result = (int)((wxNotebook const *)arg1)->GetRowCount();
14195
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 resultobj = SWIG_FromInt((int)result);
14200 return resultobj;
14201 fail:
14202 return NULL;
14203 }
14204
14205
14206 static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
14207 PyObject *resultobj;
14208 wxNotebook *arg1 = (wxNotebook *) 0 ;
14209 wxSize *arg2 = 0 ;
14210 wxSize temp2 ;
14211 PyObject * obj0 = 0 ;
14212 PyObject * obj1 = 0 ;
14213 char *kwnames[] = {
14214 (char *) "self",(char *) "padding", NULL
14215 };
14216
14217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
14218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14220 {
14221 arg2 = &temp2;
14222 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14223 }
14224 {
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
14226 (arg1)->SetPadding((wxSize const &)*arg2);
14227
14228 wxPyEndAllowThreads(__tstate);
14229 if (PyErr_Occurred()) SWIG_fail;
14230 }
14231 Py_INCREF(Py_None); resultobj = Py_None;
14232 return resultobj;
14233 fail:
14234 return NULL;
14235 }
14236
14237
14238 static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14239 PyObject *resultobj;
14240 wxNotebook *arg1 = (wxNotebook *) 0 ;
14241 wxSize *arg2 = 0 ;
14242 wxSize temp2 ;
14243 PyObject * obj0 = 0 ;
14244 PyObject * obj1 = 0 ;
14245 char *kwnames[] = {
14246 (char *) "self",(char *) "sz", NULL
14247 };
14248
14249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
14250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14252 {
14253 arg2 = &temp2;
14254 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14255 }
14256 {
14257 PyThreadState* __tstate = wxPyBeginAllowThreads();
14258 (arg1)->SetTabSize((wxSize const &)*arg2);
14259
14260 wxPyEndAllowThreads(__tstate);
14261 if (PyErr_Occurred()) SWIG_fail;
14262 }
14263 Py_INCREF(Py_None); resultobj = Py_None;
14264 return resultobj;
14265 fail:
14266 return NULL;
14267 }
14268
14269
14270 static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
14271 PyObject *resultobj;
14272 wxNotebook *arg1 = (wxNotebook *) 0 ;
14273 wxPoint *arg2 = 0 ;
14274 long *arg3 = (long *) 0 ;
14275 int result;
14276 wxPoint temp2 ;
14277 long temp3 ;
14278 PyObject * obj0 = 0 ;
14279 PyObject * obj1 = 0 ;
14280 char *kwnames[] = {
14281 (char *) "self",(char *) "pt", NULL
14282 };
14283
14284 arg3 = &temp3;
14285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
14286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14288 {
14289 arg2 = &temp2;
14290 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14291 }
14292 {
14293 PyThreadState* __tstate = wxPyBeginAllowThreads();
14294 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
14295
14296 wxPyEndAllowThreads(__tstate);
14297 if (PyErr_Occurred()) SWIG_fail;
14298 }
14299 resultobj = SWIG_FromInt((int)result);
14300 {
14301 PyObject *o = PyInt_FromLong((long) (*arg3));
14302 resultobj = t_output_helper(resultobj,o);
14303 }
14304 return resultobj;
14305 fail:
14306 return NULL;
14307 }
14308
14309
14310 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14311 PyObject *resultobj;
14312 wxNotebook *arg1 = (wxNotebook *) 0 ;
14313 wxSize *arg2 = 0 ;
14314 wxSize result;
14315 wxSize temp2 ;
14316 PyObject * obj0 = 0 ;
14317 PyObject * obj1 = 0 ;
14318 char *kwnames[] = {
14319 (char *) "self",(char *) "sizePage", NULL
14320 };
14321
14322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14325 {
14326 arg2 = &temp2;
14327 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14328 }
14329 {
14330 PyThreadState* __tstate = wxPyBeginAllowThreads();
14331 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14332
14333 wxPyEndAllowThreads(__tstate);
14334 if (PyErr_Occurred()) SWIG_fail;
14335 }
14336 {
14337 wxSize * resultptr;
14338 resultptr = new wxSize((wxSize &) result);
14339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14340 }
14341 return resultobj;
14342 fail:
14343 return NULL;
14344 }
14345
14346
14347 static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14348 PyObject *resultobj;
14349 wxNotebook *arg1 = (wxNotebook *) 0 ;
14350 wxWindow *arg2 = (wxWindow *) 0 ;
14351 wxColour *arg3 = 0 ;
14352 wxColour temp3 ;
14353 PyObject * obj0 = 0 ;
14354 PyObject * obj1 = 0 ;
14355 PyObject * obj2 = 0 ;
14356 char *kwnames[] = {
14357 (char *) "self",(char *) "window",(char *) "colour", NULL
14358 };
14359
14360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
14361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14365 {
14366 arg3 = &temp3;
14367 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14368 }
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3);
14372
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 Py_INCREF(Py_None); resultobj = Py_None;
14377 return resultobj;
14378 fail:
14379 return NULL;
14380 }
14381
14382
14383 static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
14384 PyObject *obj;
14385 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14386 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
14387 Py_INCREF(obj);
14388 return Py_BuildValue((char *)"");
14389 }
14390 static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14391 PyObject *resultobj;
14392 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14393 int arg2 = (int) 0 ;
14394 int arg3 = (int) -1 ;
14395 int arg4 = (int) -1 ;
14396 wxNotebookEvent *result;
14397 PyObject * obj0 = 0 ;
14398 PyObject * obj1 = 0 ;
14399 PyObject * obj2 = 0 ;
14400 PyObject * obj3 = 0 ;
14401 char *kwnames[] = {
14402 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14403 };
14404
14405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14406 if (obj0) {
14407 arg1 = (wxEventType) SWIG_AsInt(obj0);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 }
14410 if (obj1) {
14411 arg2 = (int) SWIG_AsInt(obj1);
14412 if (PyErr_Occurred()) SWIG_fail;
14413 }
14414 if (obj2) {
14415 arg3 = (int) SWIG_AsInt(obj2);
14416 if (PyErr_Occurred()) SWIG_fail;
14417 }
14418 if (obj3) {
14419 arg4 = (int) SWIG_AsInt(obj3);
14420 if (PyErr_Occurred()) SWIG_fail;
14421 }
14422 {
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
14425
14426 wxPyEndAllowThreads(__tstate);
14427 if (PyErr_Occurred()) SWIG_fail;
14428 }
14429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
14430 return resultobj;
14431 fail:
14432 return NULL;
14433 }
14434
14435
14436 static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
14437 PyObject *obj;
14438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14439 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
14440 Py_INCREF(obj);
14441 return Py_BuildValue((char *)"");
14442 }
14443 static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
14444 PyObject *resultobj;
14445 wxWindow *arg1 = (wxWindow *) 0 ;
14446 int arg2 ;
14447 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14448 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14449 wxSize const &arg4_defvalue = wxDefaultSize ;
14450 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14451 long arg5 = (long) 0 ;
14452 wxString const &arg6_defvalue = wxPyEmptyString ;
14453 wxString *arg6 = (wxString *) &arg6_defvalue ;
14454 wxListbook *result;
14455 wxPoint temp3 ;
14456 wxSize temp4 ;
14457 bool temp6 = False ;
14458 PyObject * obj0 = 0 ;
14459 PyObject * obj1 = 0 ;
14460 PyObject * obj2 = 0 ;
14461 PyObject * obj3 = 0 ;
14462 PyObject * obj4 = 0 ;
14463 PyObject * obj5 = 0 ;
14464 char *kwnames[] = {
14465 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14466 };
14467
14468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14471 arg2 = (int) SWIG_AsInt(obj1);
14472 if (PyErr_Occurred()) SWIG_fail;
14473 if (obj2) {
14474 {
14475 arg3 = &temp3;
14476 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14477 }
14478 }
14479 if (obj3) {
14480 {
14481 arg4 = &temp4;
14482 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14483 }
14484 }
14485 if (obj4) {
14486 arg5 = (long) SWIG_AsLong(obj4);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 }
14489 if (obj5) {
14490 {
14491 arg6 = wxString_in_helper(obj5);
14492 if (arg6 == NULL) SWIG_fail;
14493 temp6 = True;
14494 }
14495 }
14496 {
14497 PyThreadState* __tstate = wxPyBeginAllowThreads();
14498 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14499
14500 wxPyEndAllowThreads(__tstate);
14501 if (PyErr_Occurred()) SWIG_fail;
14502 }
14503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
14504 {
14505 if (temp6)
14506 delete arg6;
14507 }
14508 return resultobj;
14509 fail:
14510 {
14511 if (temp6)
14512 delete arg6;
14513 }
14514 return NULL;
14515 }
14516
14517
14518 static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
14519 PyObject *resultobj;
14520 wxListbook *result;
14521 char *kwnames[] = {
14522 NULL
14523 };
14524
14525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
14526 {
14527 PyThreadState* __tstate = wxPyBeginAllowThreads();
14528 result = (wxListbook *)new wxListbook();
14529
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
14534 return resultobj;
14535 fail:
14536 return NULL;
14537 }
14538
14539
14540 static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14541 PyObject *resultobj;
14542 wxListbook *arg1 = (wxListbook *) 0 ;
14543 wxWindow *arg2 = (wxWindow *) 0 ;
14544 int arg3 ;
14545 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14546 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14547 wxSize const &arg5_defvalue = wxDefaultSize ;
14548 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14549 long arg6 = (long) 0 ;
14550 wxString const &arg7_defvalue = wxPyEmptyString ;
14551 wxString *arg7 = (wxString *) &arg7_defvalue ;
14552 bool result;
14553 wxPoint temp4 ;
14554 wxSize temp5 ;
14555 bool temp7 = False ;
14556 PyObject * obj0 = 0 ;
14557 PyObject * obj1 = 0 ;
14558 PyObject * obj2 = 0 ;
14559 PyObject * obj3 = 0 ;
14560 PyObject * obj4 = 0 ;
14561 PyObject * obj5 = 0 ;
14562 PyObject * obj6 = 0 ;
14563 char *kwnames[] = {
14564 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14565 };
14566
14567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
14569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14572 arg3 = (int) SWIG_AsInt(obj2);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 if (obj3) {
14575 {
14576 arg4 = &temp4;
14577 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14578 }
14579 }
14580 if (obj4) {
14581 {
14582 arg5 = &temp5;
14583 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14584 }
14585 }
14586 if (obj5) {
14587 arg6 = (long) SWIG_AsLong(obj5);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
14590 if (obj6) {
14591 {
14592 arg7 = wxString_in_helper(obj6);
14593 if (arg7 == NULL) SWIG_fail;
14594 temp7 = True;
14595 }
14596 }
14597 {
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
14599 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14600
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14605 {
14606 if (temp7)
14607 delete arg7;
14608 }
14609 return resultobj;
14610 fail:
14611 {
14612 if (temp7)
14613 delete arg7;
14614 }
14615 return NULL;
14616 }
14617
14618
14619 static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
14620 PyObject *resultobj;
14621 wxListbook *arg1 = (wxListbook *) 0 ;
14622 bool result;
14623 PyObject * obj0 = 0 ;
14624 char *kwnames[] = {
14625 (char *) "self", NULL
14626 };
14627
14628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
14629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
14630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 result = (bool)((wxListbook const *)arg1)->IsVertical();
14634
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
14646 PyObject *obj;
14647 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14648 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
14649 Py_INCREF(obj);
14650 return Py_BuildValue((char *)"");
14651 }
14652 static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14653 PyObject *resultobj;
14654 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14655 int arg2 = (int) 0 ;
14656 int arg3 = (int) -1 ;
14657 int arg4 = (int) -1 ;
14658 wxListbookEvent *result;
14659 PyObject * obj0 = 0 ;
14660 PyObject * obj1 = 0 ;
14661 PyObject * obj2 = 0 ;
14662 PyObject * obj3 = 0 ;
14663 char *kwnames[] = {
14664 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14665 };
14666
14667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14668 if (obj0) {
14669 arg1 = (wxEventType) SWIG_AsInt(obj0);
14670 if (PyErr_Occurred()) SWIG_fail;
14671 }
14672 if (obj1) {
14673 arg2 = (int) SWIG_AsInt(obj1);
14674 if (PyErr_Occurred()) SWIG_fail;
14675 }
14676 if (obj2) {
14677 arg3 = (int) SWIG_AsInt(obj2);
14678 if (PyErr_Occurred()) SWIG_fail;
14679 }
14680 if (obj3) {
14681 arg4 = (int) SWIG_AsInt(obj3);
14682 if (PyErr_Occurred()) SWIG_fail;
14683 }
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
14687
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
14692 return resultobj;
14693 fail:
14694 return NULL;
14695 }
14696
14697
14698 static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
14699 PyObject *obj;
14700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14701 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
14702 Py_INCREF(obj);
14703 return Py_BuildValue((char *)"");
14704 }
14705 static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
14706 PyObject *resultobj;
14707 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14708 wxBookCtrlSizer *result;
14709 PyObject * obj0 = 0 ;
14710 char *kwnames[] = {
14711 (char *) "nb", NULL
14712 };
14713
14714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
14715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14717 {
14718 PyThreadState* __tstate = wxPyBeginAllowThreads();
14719 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
14720
14721 wxPyEndAllowThreads(__tstate);
14722 if (PyErr_Occurred()) SWIG_fail;
14723 }
14724 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
14725 return resultobj;
14726 fail:
14727 return NULL;
14728 }
14729
14730
14731 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
14732 PyObject *resultobj;
14733 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14734 PyObject * obj0 = 0 ;
14735 char *kwnames[] = {
14736 (char *) "self", NULL
14737 };
14738
14739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14742 {
14743 PyThreadState* __tstate = wxPyBeginAllowThreads();
14744 (arg1)->RecalcSizes();
14745
14746 wxPyEndAllowThreads(__tstate);
14747 if (PyErr_Occurred()) SWIG_fail;
14748 }
14749 Py_INCREF(Py_None); resultobj = Py_None;
14750 return resultobj;
14751 fail:
14752 return NULL;
14753 }
14754
14755
14756 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
14757 PyObject *resultobj;
14758 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14759 wxSize result;
14760 PyObject * obj0 = 0 ;
14761 char *kwnames[] = {
14762 (char *) "self", NULL
14763 };
14764
14765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
14766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14768 {
14769 PyThreadState* __tstate = wxPyBeginAllowThreads();
14770 result = (arg1)->CalcMin();
14771
14772 wxPyEndAllowThreads(__tstate);
14773 if (PyErr_Occurred()) SWIG_fail;
14774 }
14775 {
14776 wxSize * resultptr;
14777 resultptr = new wxSize((wxSize &) result);
14778 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14779 }
14780 return resultobj;
14781 fail:
14782 return NULL;
14783 }
14784
14785
14786 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14787 PyObject *resultobj;
14788 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14789 wxBookCtrl *result;
14790 PyObject * obj0 = 0 ;
14791 char *kwnames[] = {
14792 (char *) "self", NULL
14793 };
14794
14795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
14796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14798 {
14799 PyThreadState* __tstate = wxPyBeginAllowThreads();
14800 result = (wxBookCtrl *)(arg1)->GetControl();
14801
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
14806 return resultobj;
14807 fail:
14808 return NULL;
14809 }
14810
14811
14812 static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
14813 PyObject *obj;
14814 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14815 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
14816 Py_INCREF(obj);
14817 return Py_BuildValue((char *)"");
14818 }
14819 static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
14820 PyObject *resultobj;
14821 wxNotebook *arg1 = (wxNotebook *) 0 ;
14822 wxNotebookSizer *result;
14823 PyObject * obj0 = 0 ;
14824 char *kwnames[] = {
14825 (char *) "nb", NULL
14826 };
14827
14828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
14829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14831 {
14832 PyThreadState* __tstate = wxPyBeginAllowThreads();
14833 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
14834
14835 wxPyEndAllowThreads(__tstate);
14836 if (PyErr_Occurred()) SWIG_fail;
14837 }
14838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
14839 return resultobj;
14840 fail:
14841 return NULL;
14842 }
14843
14844
14845 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
14846 PyObject *resultobj;
14847 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14848 PyObject * obj0 = 0 ;
14849 char *kwnames[] = {
14850 (char *) "self", NULL
14851 };
14852
14853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
14855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14856 {
14857 PyThreadState* __tstate = wxPyBeginAllowThreads();
14858 (arg1)->RecalcSizes();
14859
14860 wxPyEndAllowThreads(__tstate);
14861 if (PyErr_Occurred()) SWIG_fail;
14862 }
14863 Py_INCREF(Py_None); resultobj = Py_None;
14864 return resultobj;
14865 fail:
14866 return NULL;
14867 }
14868
14869
14870 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
14871 PyObject *resultobj;
14872 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14873 wxSize result;
14874 PyObject * obj0 = 0 ;
14875 char *kwnames[] = {
14876 (char *) "self", NULL
14877 };
14878
14879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
14880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
14881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14882 {
14883 PyThreadState* __tstate = wxPyBeginAllowThreads();
14884 result = (arg1)->CalcMin();
14885
14886 wxPyEndAllowThreads(__tstate);
14887 if (PyErr_Occurred()) SWIG_fail;
14888 }
14889 {
14890 wxSize * resultptr;
14891 resultptr = new wxSize((wxSize &) result);
14892 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14893 }
14894 return resultobj;
14895 fail:
14896 return NULL;
14897 }
14898
14899
14900 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14901 PyObject *resultobj;
14902 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14903 wxNotebook *result;
14904 PyObject * obj0 = 0 ;
14905 char *kwnames[] = {
14906 (char *) "self", NULL
14907 };
14908
14909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
14910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
14911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14912 {
14913 PyThreadState* __tstate = wxPyBeginAllowThreads();
14914 result = (wxNotebook *)(arg1)->GetNotebook();
14915
14916 wxPyEndAllowThreads(__tstate);
14917 if (PyErr_Occurred()) SWIG_fail;
14918 }
14919 {
14920 resultobj = wxPyMake_wxObject(result);
14921 }
14922 return resultobj;
14923 fail:
14924 return NULL;
14925 }
14926
14927
14928 static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
14929 PyObject *obj;
14930 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14931 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
14932 Py_INCREF(obj);
14933 return Py_BuildValue((char *)"");
14934 }
14935 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
14936 PyObject *resultobj;
14937 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14938 int result;
14939 PyObject * obj0 = 0 ;
14940 char *kwnames[] = {
14941 (char *) "self", NULL
14942 };
14943
14944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
14945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14947 {
14948 PyThreadState* __tstate = wxPyBeginAllowThreads();
14949 result = (int)(arg1)->GetId();
14950
14951 wxPyEndAllowThreads(__tstate);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 resultobj = SWIG_FromInt((int)result);
14955 return resultobj;
14956 fail:
14957 return NULL;
14958 }
14959
14960
14961 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14962 PyObject *resultobj;
14963 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14964 wxControl *result;
14965 PyObject * obj0 = 0 ;
14966 char *kwnames[] = {
14967 (char *) "self", NULL
14968 };
14969
14970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
14971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14973 {
14974 PyThreadState* __tstate = wxPyBeginAllowThreads();
14975 result = (wxControl *)(arg1)->GetControl();
14976
14977 wxPyEndAllowThreads(__tstate);
14978 if (PyErr_Occurred()) SWIG_fail;
14979 }
14980 {
14981 resultobj = wxPyMake_wxObject(result);
14982 }
14983 return resultobj;
14984 fail:
14985 return NULL;
14986 }
14987
14988
14989 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
14990 PyObject *resultobj;
14991 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14992 wxToolBarBase *result;
14993 PyObject * obj0 = 0 ;
14994 char *kwnames[] = {
14995 (char *) "self", NULL
14996 };
14997
14998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
14999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15001 {
15002 PyThreadState* __tstate = wxPyBeginAllowThreads();
15003 result = (wxToolBarBase *)(arg1)->GetToolBar();
15004
15005 wxPyEndAllowThreads(__tstate);
15006 if (PyErr_Occurred()) SWIG_fail;
15007 }
15008 {
15009 resultobj = wxPyMake_wxObject(result);
15010 }
15011 return resultobj;
15012 fail:
15013 return NULL;
15014 }
15015
15016
15017 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
15018 PyObject *resultobj;
15019 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15020 int result;
15021 PyObject * obj0 = 0 ;
15022 char *kwnames[] = {
15023 (char *) "self", NULL
15024 };
15025
15026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
15027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15029 {
15030 PyThreadState* __tstate = wxPyBeginAllowThreads();
15031 result = (int)(arg1)->IsButton();
15032
15033 wxPyEndAllowThreads(__tstate);
15034 if (PyErr_Occurred()) SWIG_fail;
15035 }
15036 resultobj = SWIG_FromInt((int)result);
15037 return resultobj;
15038 fail:
15039 return NULL;
15040 }
15041
15042
15043 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15044 PyObject *resultobj;
15045 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15046 int result;
15047 PyObject * obj0 = 0 ;
15048 char *kwnames[] = {
15049 (char *) "self", NULL
15050 };
15051
15052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
15053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15055 {
15056 PyThreadState* __tstate = wxPyBeginAllowThreads();
15057 result = (int)(arg1)->IsControl();
15058
15059 wxPyEndAllowThreads(__tstate);
15060 if (PyErr_Occurred()) SWIG_fail;
15061 }
15062 resultobj = SWIG_FromInt((int)result);
15063 return resultobj;
15064 fail:
15065 return NULL;
15066 }
15067
15068
15069 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
15070 PyObject *resultobj;
15071 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15072 int result;
15073 PyObject * obj0 = 0 ;
15074 char *kwnames[] = {
15075 (char *) "self", NULL
15076 };
15077
15078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
15079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15081 {
15082 PyThreadState* __tstate = wxPyBeginAllowThreads();
15083 result = (int)(arg1)->IsSeparator();
15084
15085 wxPyEndAllowThreads(__tstate);
15086 if (PyErr_Occurred()) SWIG_fail;
15087 }
15088 resultobj = SWIG_FromInt((int)result);
15089 return resultobj;
15090 fail:
15091 return NULL;
15092 }
15093
15094
15095 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15096 PyObject *resultobj;
15097 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15098 int result;
15099 PyObject * obj0 = 0 ;
15100 char *kwnames[] = {
15101 (char *) "self", NULL
15102 };
15103
15104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
15105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 result = (int)(arg1)->GetStyle();
15110
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 resultobj = SWIG_FromInt((int)result);
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
15122 PyObject *resultobj;
15123 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15124 int result;
15125 PyObject * obj0 = 0 ;
15126 char *kwnames[] = {
15127 (char *) "self", NULL
15128 };
15129
15130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
15131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15133 {
15134 PyThreadState* __tstate = wxPyBeginAllowThreads();
15135 result = (int)(arg1)->GetKind();
15136
15137 wxPyEndAllowThreads(__tstate);
15138 if (PyErr_Occurred()) SWIG_fail;
15139 }
15140 resultobj = SWIG_FromInt((int)result);
15141 return resultobj;
15142 fail:
15143 return NULL;
15144 }
15145
15146
15147 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
15148 PyObject *resultobj;
15149 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15150 bool result;
15151 PyObject * obj0 = 0 ;
15152 char *kwnames[] = {
15153 (char *) "self", NULL
15154 };
15155
15156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
15157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15159 {
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
15161 result = (bool)(arg1)->IsEnabled();
15162
15163 wxPyEndAllowThreads(__tstate);
15164 if (PyErr_Occurred()) SWIG_fail;
15165 }
15166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15167 return resultobj;
15168 fail:
15169 return NULL;
15170 }
15171
15172
15173 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15174 PyObject *resultobj;
15175 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15176 bool result;
15177 PyObject * obj0 = 0 ;
15178 char *kwnames[] = {
15179 (char *) "self", NULL
15180 };
15181
15182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
15183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15185 {
15186 PyThreadState* __tstate = wxPyBeginAllowThreads();
15187 result = (bool)(arg1)->IsToggled();
15188
15189 wxPyEndAllowThreads(__tstate);
15190 if (PyErr_Occurred()) SWIG_fail;
15191 }
15192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15193 return resultobj;
15194 fail:
15195 return NULL;
15196 }
15197
15198
15199 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15200 PyObject *resultobj;
15201 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15202 bool result;
15203 PyObject * obj0 = 0 ;
15204 char *kwnames[] = {
15205 (char *) "self", NULL
15206 };
15207
15208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
15209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15211 {
15212 PyThreadState* __tstate = wxPyBeginAllowThreads();
15213 result = (bool)(arg1)->CanBeToggled();
15214
15215 wxPyEndAllowThreads(__tstate);
15216 if (PyErr_Occurred()) SWIG_fail;
15217 }
15218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15219 return resultobj;
15220 fail:
15221 return NULL;
15222 }
15223
15224
15225 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15226 PyObject *resultobj;
15227 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15228 wxBitmap *result;
15229 PyObject * obj0 = 0 ;
15230 char *kwnames[] = {
15231 (char *) "self", NULL
15232 };
15233
15234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
15235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15237 {
15238 PyThreadState* __tstate = wxPyBeginAllowThreads();
15239 {
15240 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
15241 result = (wxBitmap *) &_result_ref;
15242 }
15243
15244 wxPyEndAllowThreads(__tstate);
15245 if (PyErr_Occurred()) SWIG_fail;
15246 }
15247 {
15248 wxBitmap* resultptr = new wxBitmap(*result);
15249 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15250 }
15251 return resultobj;
15252 fail:
15253 return NULL;
15254 }
15255
15256
15257 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15258 PyObject *resultobj;
15259 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15260 wxBitmap *result;
15261 PyObject * obj0 = 0 ;
15262 char *kwnames[] = {
15263 (char *) "self", NULL
15264 };
15265
15266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
15267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15269 {
15270 PyThreadState* __tstate = wxPyBeginAllowThreads();
15271 {
15272 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
15273 result = (wxBitmap *) &_result_ref;
15274 }
15275
15276 wxPyEndAllowThreads(__tstate);
15277 if (PyErr_Occurred()) SWIG_fail;
15278 }
15279 {
15280 wxBitmap* resultptr = new wxBitmap(*result);
15281 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15282 }
15283 return resultobj;
15284 fail:
15285 return NULL;
15286 }
15287
15288
15289 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15290 PyObject *resultobj;
15291 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15292 wxBitmap result;
15293 PyObject * obj0 = 0 ;
15294 char *kwnames[] = {
15295 (char *) "self", NULL
15296 };
15297
15298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
15299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15301 {
15302 PyThreadState* __tstate = wxPyBeginAllowThreads();
15303 result = (arg1)->GetBitmap();
15304
15305 wxPyEndAllowThreads(__tstate);
15306 if (PyErr_Occurred()) SWIG_fail;
15307 }
15308 {
15309 wxBitmap * resultptr;
15310 resultptr = new wxBitmap((wxBitmap &) result);
15311 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15312 }
15313 return resultobj;
15314 fail:
15315 return NULL;
15316 }
15317
15318
15319 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
15320 PyObject *resultobj;
15321 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15322 wxString result;
15323 PyObject * obj0 = 0 ;
15324 char *kwnames[] = {
15325 (char *) "self", NULL
15326 };
15327
15328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
15329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15331 {
15332 PyThreadState* __tstate = wxPyBeginAllowThreads();
15333 result = (arg1)->GetLabel();
15334
15335 wxPyEndAllowThreads(__tstate);
15336 if (PyErr_Occurred()) SWIG_fail;
15337 }
15338 {
15339 #if wxUSE_UNICODE
15340 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15341 #else
15342 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15343 #endif
15344 }
15345 return resultobj;
15346 fail:
15347 return NULL;
15348 }
15349
15350
15351 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15352 PyObject *resultobj;
15353 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15354 wxString result;
15355 PyObject * obj0 = 0 ;
15356 char *kwnames[] = {
15357 (char *) "self", NULL
15358 };
15359
15360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
15361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15363 {
15364 PyThreadState* __tstate = wxPyBeginAllowThreads();
15365 result = (arg1)->GetShortHelp();
15366
15367 wxPyEndAllowThreads(__tstate);
15368 if (PyErr_Occurred()) SWIG_fail;
15369 }
15370 {
15371 #if wxUSE_UNICODE
15372 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15373 #else
15374 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15375 #endif
15376 }
15377 return resultobj;
15378 fail:
15379 return NULL;
15380 }
15381
15382
15383 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15384 PyObject *resultobj;
15385 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15386 wxString result;
15387 PyObject * obj0 = 0 ;
15388 char *kwnames[] = {
15389 (char *) "self", NULL
15390 };
15391
15392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
15393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15395 {
15396 PyThreadState* __tstate = wxPyBeginAllowThreads();
15397 result = (arg1)->GetLongHelp();
15398
15399 wxPyEndAllowThreads(__tstate);
15400 if (PyErr_Occurred()) SWIG_fail;
15401 }
15402 {
15403 #if wxUSE_UNICODE
15404 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15405 #else
15406 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15407 #endif
15408 }
15409 return resultobj;
15410 fail:
15411 return NULL;
15412 }
15413
15414
15415 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
15416 PyObject *resultobj;
15417 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15418 bool arg2 ;
15419 bool result;
15420 PyObject * obj0 = 0 ;
15421 PyObject * obj1 = 0 ;
15422 char *kwnames[] = {
15423 (char *) "self",(char *) "enable", NULL
15424 };
15425
15426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
15427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15429 arg2 = (bool) SWIG_AsBool(obj1);
15430 if (PyErr_Occurred()) SWIG_fail;
15431 {
15432 PyThreadState* __tstate = wxPyBeginAllowThreads();
15433 result = (bool)(arg1)->Enable(arg2);
15434
15435 wxPyEndAllowThreads(__tstate);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15439 return resultobj;
15440 fail:
15441 return NULL;
15442 }
15443
15444
15445 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
15446 PyObject *resultobj;
15447 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15448 PyObject * obj0 = 0 ;
15449 char *kwnames[] = {
15450 (char *) "self", NULL
15451 };
15452
15453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
15454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15456 {
15457 PyThreadState* __tstate = wxPyBeginAllowThreads();
15458 (arg1)->Toggle();
15459
15460 wxPyEndAllowThreads(__tstate);
15461 if (PyErr_Occurred()) SWIG_fail;
15462 }
15463 Py_INCREF(Py_None); resultobj = Py_None;
15464 return resultobj;
15465 fail:
15466 return NULL;
15467 }
15468
15469
15470 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
15471 PyObject *resultobj;
15472 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15473 bool arg2 ;
15474 bool result;
15475 PyObject * obj0 = 0 ;
15476 PyObject * obj1 = 0 ;
15477 char *kwnames[] = {
15478 (char *) "self",(char *) "toggle", NULL
15479 };
15480
15481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
15482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15484 arg2 = (bool) SWIG_AsBool(obj1);
15485 if (PyErr_Occurred()) SWIG_fail;
15486 {
15487 PyThreadState* __tstate = wxPyBeginAllowThreads();
15488 result = (bool)(arg1)->SetToggle(arg2);
15489
15490 wxPyEndAllowThreads(__tstate);
15491 if (PyErr_Occurred()) SWIG_fail;
15492 }
15493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15494 return resultobj;
15495 fail:
15496 return NULL;
15497 }
15498
15499
15500 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15501 PyObject *resultobj;
15502 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15503 wxString *arg2 = 0 ;
15504 bool result;
15505 bool temp2 = False ;
15506 PyObject * obj0 = 0 ;
15507 PyObject * obj1 = 0 ;
15508 char *kwnames[] = {
15509 (char *) "self",(char *) "help", NULL
15510 };
15511
15512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
15513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15515 {
15516 arg2 = wxString_in_helper(obj1);
15517 if (arg2 == NULL) SWIG_fail;
15518 temp2 = True;
15519 }
15520 {
15521 PyThreadState* __tstate = wxPyBeginAllowThreads();
15522 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
15523
15524 wxPyEndAllowThreads(__tstate);
15525 if (PyErr_Occurred()) SWIG_fail;
15526 }
15527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15528 {
15529 if (temp2)
15530 delete arg2;
15531 }
15532 return resultobj;
15533 fail:
15534 {
15535 if (temp2)
15536 delete arg2;
15537 }
15538 return NULL;
15539 }
15540
15541
15542 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15543 PyObject *resultobj;
15544 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15545 wxString *arg2 = 0 ;
15546 bool result;
15547 bool temp2 = False ;
15548 PyObject * obj0 = 0 ;
15549 PyObject * obj1 = 0 ;
15550 char *kwnames[] = {
15551 (char *) "self",(char *) "help", NULL
15552 };
15553
15554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
15555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15557 {
15558 arg2 = wxString_in_helper(obj1);
15559 if (arg2 == NULL) SWIG_fail;
15560 temp2 = True;
15561 }
15562 {
15563 PyThreadState* __tstate = wxPyBeginAllowThreads();
15564 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
15565
15566 wxPyEndAllowThreads(__tstate);
15567 if (PyErr_Occurred()) SWIG_fail;
15568 }
15569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15570 {
15571 if (temp2)
15572 delete arg2;
15573 }
15574 return resultobj;
15575 fail:
15576 {
15577 if (temp2)
15578 delete arg2;
15579 }
15580 return NULL;
15581 }
15582
15583
15584 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15585 PyObject *resultobj;
15586 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15587 wxBitmap *arg2 = 0 ;
15588 PyObject * obj0 = 0 ;
15589 PyObject * obj1 = 0 ;
15590 char *kwnames[] = {
15591 (char *) "self",(char *) "bmp", NULL
15592 };
15593
15594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
15595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15597 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15598 SWIG_POINTER_EXCEPTION | 0)) == -1)
15599 SWIG_fail;
15600 if (arg2 == NULL) {
15601 PyErr_SetString(PyExc_TypeError,"null reference");
15602 SWIG_fail;
15603 }
15604 {
15605 PyThreadState* __tstate = wxPyBeginAllowThreads();
15606 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
15607
15608 wxPyEndAllowThreads(__tstate);
15609 if (PyErr_Occurred()) SWIG_fail;
15610 }
15611 Py_INCREF(Py_None); resultobj = Py_None;
15612 return resultobj;
15613 fail:
15614 return NULL;
15615 }
15616
15617
15618 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15619 PyObject *resultobj;
15620 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15621 wxBitmap *arg2 = 0 ;
15622 PyObject * obj0 = 0 ;
15623 PyObject * obj1 = 0 ;
15624 char *kwnames[] = {
15625 (char *) "self",(char *) "bmp", NULL
15626 };
15627
15628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
15629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15632 SWIG_POINTER_EXCEPTION | 0)) == -1)
15633 SWIG_fail;
15634 if (arg2 == NULL) {
15635 PyErr_SetString(PyExc_TypeError,"null reference");
15636 SWIG_fail;
15637 }
15638 {
15639 PyThreadState* __tstate = wxPyBeginAllowThreads();
15640 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
15641
15642 wxPyEndAllowThreads(__tstate);
15643 if (PyErr_Occurred()) SWIG_fail;
15644 }
15645 Py_INCREF(Py_None); resultobj = Py_None;
15646 return resultobj;
15647 fail:
15648 return NULL;
15649 }
15650
15651
15652 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
15653 PyObject *resultobj;
15654 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15655 wxString *arg2 = 0 ;
15656 bool temp2 = False ;
15657 PyObject * obj0 = 0 ;
15658 PyObject * obj1 = 0 ;
15659 char *kwnames[] = {
15660 (char *) "self",(char *) "label", NULL
15661 };
15662
15663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
15664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15666 {
15667 arg2 = wxString_in_helper(obj1);
15668 if (arg2 == NULL) SWIG_fail;
15669 temp2 = True;
15670 }
15671 {
15672 PyThreadState* __tstate = wxPyBeginAllowThreads();
15673 (arg1)->SetLabel((wxString const &)*arg2);
15674
15675 wxPyEndAllowThreads(__tstate);
15676 if (PyErr_Occurred()) SWIG_fail;
15677 }
15678 Py_INCREF(Py_None); resultobj = Py_None;
15679 {
15680 if (temp2)
15681 delete arg2;
15682 }
15683 return resultobj;
15684 fail:
15685 {
15686 if (temp2)
15687 delete arg2;
15688 }
15689 return NULL;
15690 }
15691
15692
15693 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
15694 PyObject *resultobj;
15695 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15696 PyObject * obj0 = 0 ;
15697 char *kwnames[] = {
15698 (char *) "self", NULL
15699 };
15700
15701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
15702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15704 {
15705 PyThreadState* __tstate = wxPyBeginAllowThreads();
15706 (arg1)->Detach();
15707
15708 wxPyEndAllowThreads(__tstate);
15709 if (PyErr_Occurred()) SWIG_fail;
15710 }
15711 Py_INCREF(Py_None); resultobj = Py_None;
15712 return resultobj;
15713 fail:
15714 return NULL;
15715 }
15716
15717
15718 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
15719 PyObject *resultobj;
15720 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15721 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
15722 PyObject * obj0 = 0 ;
15723 PyObject * obj1 = 0 ;
15724 char *kwnames[] = {
15725 (char *) "self",(char *) "tbar", NULL
15726 };
15727
15728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
15729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15731 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
15732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15733 {
15734 PyThreadState* __tstate = wxPyBeginAllowThreads();
15735 (arg1)->Attach(arg2);
15736
15737 wxPyEndAllowThreads(__tstate);
15738 if (PyErr_Occurred()) SWIG_fail;
15739 }
15740 Py_INCREF(Py_None); resultobj = Py_None;
15741 return resultobj;
15742 fail:
15743 return NULL;
15744 }
15745
15746
15747 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
15748 PyObject *resultobj;
15749 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15750 PyObject *result;
15751 PyObject * obj0 = 0 ;
15752 char *kwnames[] = {
15753 (char *) "self", NULL
15754 };
15755
15756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
15757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15759 {
15760 PyThreadState* __tstate = wxPyBeginAllowThreads();
15761 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
15762
15763 wxPyEndAllowThreads(__tstate);
15764 if (PyErr_Occurred()) SWIG_fail;
15765 }
15766 resultobj = result;
15767 return resultobj;
15768 fail:
15769 return NULL;
15770 }
15771
15772
15773 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
15774 PyObject *resultobj;
15775 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15776 PyObject *arg2 = (PyObject *) 0 ;
15777 PyObject * obj0 = 0 ;
15778 PyObject * obj1 = 0 ;
15779 char *kwnames[] = {
15780 (char *) "self",(char *) "clientData", NULL
15781 };
15782
15783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
15784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15786 arg2 = obj1;
15787 {
15788 PyThreadState* __tstate = wxPyBeginAllowThreads();
15789 wxToolBarToolBase_SetClientData(arg1,arg2);
15790
15791 wxPyEndAllowThreads(__tstate);
15792 if (PyErr_Occurred()) SWIG_fail;
15793 }
15794 Py_INCREF(Py_None); resultobj = Py_None;
15795 return resultobj;
15796 fail:
15797 return NULL;
15798 }
15799
15800
15801 static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
15802 PyObject *obj;
15803 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15804 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
15805 Py_INCREF(obj);
15806 return Py_BuildValue((char *)"");
15807 }
15808 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
15809 PyObject *resultobj;
15810 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15811 int arg2 ;
15812 wxString *arg3 = 0 ;
15813 wxBitmap *arg4 = 0 ;
15814 wxBitmap const &arg5_defvalue = wxNullBitmap ;
15815 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
15816 int arg6 = (int) wxITEM_NORMAL ;
15817 wxString const &arg7_defvalue = wxPyEmptyString ;
15818 wxString *arg7 = (wxString *) &arg7_defvalue ;
15819 wxString const &arg8_defvalue = wxPyEmptyString ;
15820 wxString *arg8 = (wxString *) &arg8_defvalue ;
15821 PyObject *arg9 = (PyObject *) NULL ;
15822 wxToolBarToolBase *result;
15823 bool temp3 = False ;
15824 bool temp7 = False ;
15825 bool temp8 = False ;
15826 PyObject * obj0 = 0 ;
15827 PyObject * obj1 = 0 ;
15828 PyObject * obj2 = 0 ;
15829 PyObject * obj3 = 0 ;
15830 PyObject * obj4 = 0 ;
15831 PyObject * obj5 = 0 ;
15832 PyObject * obj6 = 0 ;
15833 PyObject * obj7 = 0 ;
15834 PyObject * obj8 = 0 ;
15835 char *kwnames[] = {
15836 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
15837 };
15838
15839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
15840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15842 arg2 = (int) SWIG_AsInt(obj1);
15843 if (PyErr_Occurred()) SWIG_fail;
15844 {
15845 arg3 = wxString_in_helper(obj2);
15846 if (arg3 == NULL) SWIG_fail;
15847 temp3 = True;
15848 }
15849 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
15850 SWIG_POINTER_EXCEPTION | 0)) == -1)
15851 SWIG_fail;
15852 if (arg4 == NULL) {
15853 PyErr_SetString(PyExc_TypeError,"null reference");
15854 SWIG_fail;
15855 }
15856 if (obj4) {
15857 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
15858 SWIG_POINTER_EXCEPTION | 0)) == -1)
15859 SWIG_fail;
15860 if (arg5 == NULL) {
15861 PyErr_SetString(PyExc_TypeError,"null reference");
15862 SWIG_fail;
15863 }
15864 }
15865 if (obj5) {
15866 arg6 = (wxItemKind) SWIG_AsInt(obj5);
15867 if (PyErr_Occurred()) SWIG_fail;
15868 }
15869 if (obj6) {
15870 {
15871 arg7 = wxString_in_helper(obj6);
15872 if (arg7 == NULL) SWIG_fail;
15873 temp7 = True;
15874 }
15875 }
15876 if (obj7) {
15877 {
15878 arg8 = wxString_in_helper(obj7);
15879 if (arg8 == NULL) SWIG_fail;
15880 temp8 = True;
15881 }
15882 }
15883 if (obj8) {
15884 arg9 = obj8;
15885 }
15886 {
15887 PyThreadState* __tstate = wxPyBeginAllowThreads();
15888 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
15889
15890 wxPyEndAllowThreads(__tstate);
15891 if (PyErr_Occurred()) SWIG_fail;
15892 }
15893 {
15894 resultobj = wxPyMake_wxObject(result);
15895 }
15896 {
15897 if (temp3)
15898 delete arg3;
15899 }
15900 {
15901 if (temp7)
15902 delete arg7;
15903 }
15904 {
15905 if (temp8)
15906 delete arg8;
15907 }
15908 return resultobj;
15909 fail:
15910 {
15911 if (temp3)
15912 delete arg3;
15913 }
15914 {
15915 if (temp7)
15916 delete arg7;
15917 }
15918 {
15919 if (temp8)
15920 delete arg8;
15921 }
15922 return NULL;
15923 }
15924
15925
15926 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
15927 PyObject *resultobj;
15928 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15929 size_t arg2 ;
15930 int arg3 ;
15931 wxString *arg4 = 0 ;
15932 wxBitmap *arg5 = 0 ;
15933 wxBitmap const &arg6_defvalue = wxNullBitmap ;
15934 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
15935 int arg7 = (int) wxITEM_NORMAL ;
15936 wxString const &arg8_defvalue = wxPyEmptyString ;
15937 wxString *arg8 = (wxString *) &arg8_defvalue ;
15938 wxString const &arg9_defvalue = wxPyEmptyString ;
15939 wxString *arg9 = (wxString *) &arg9_defvalue ;
15940 PyObject *arg10 = (PyObject *) NULL ;
15941 wxToolBarToolBase *result;
15942 bool temp4 = False ;
15943 bool temp8 = False ;
15944 bool temp9 = False ;
15945 PyObject * obj0 = 0 ;
15946 PyObject * obj1 = 0 ;
15947 PyObject * obj2 = 0 ;
15948 PyObject * obj3 = 0 ;
15949 PyObject * obj4 = 0 ;
15950 PyObject * obj5 = 0 ;
15951 PyObject * obj6 = 0 ;
15952 PyObject * obj7 = 0 ;
15953 PyObject * obj8 = 0 ;
15954 PyObject * obj9 = 0 ;
15955 char *kwnames[] = {
15956 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
15957 };
15958
15959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
15960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15962 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
15963 if (PyErr_Occurred()) SWIG_fail;
15964 arg3 = (int) SWIG_AsInt(obj2);
15965 if (PyErr_Occurred()) SWIG_fail;
15966 {
15967 arg4 = wxString_in_helper(obj3);
15968 if (arg4 == NULL) SWIG_fail;
15969 temp4 = True;
15970 }
15971 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
15972 SWIG_POINTER_EXCEPTION | 0)) == -1)
15973 SWIG_fail;
15974 if (arg5 == NULL) {
15975 PyErr_SetString(PyExc_TypeError,"null reference");
15976 SWIG_fail;
15977 }
15978 if (obj5) {
15979 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
15980 SWIG_POINTER_EXCEPTION | 0)) == -1)
15981 SWIG_fail;
15982 if (arg6 == NULL) {
15983 PyErr_SetString(PyExc_TypeError,"null reference");
15984 SWIG_fail;
15985 }
15986 }
15987 if (obj6) {
15988 arg7 = (wxItemKind) SWIG_AsInt(obj6);
15989 if (PyErr_Occurred()) SWIG_fail;
15990 }
15991 if (obj7) {
15992 {
15993 arg8 = wxString_in_helper(obj7);
15994 if (arg8 == NULL) SWIG_fail;
15995 temp8 = True;
15996 }
15997 }
15998 if (obj8) {
15999 {
16000 arg9 = wxString_in_helper(obj8);
16001 if (arg9 == NULL) SWIG_fail;
16002 temp9 = True;
16003 }
16004 }
16005 if (obj9) {
16006 arg10 = obj9;
16007 }
16008 {
16009 PyThreadState* __tstate = wxPyBeginAllowThreads();
16010 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);
16011
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 {
16016 resultobj = wxPyMake_wxObject(result);
16017 }
16018 {
16019 if (temp4)
16020 delete arg4;
16021 }
16022 {
16023 if (temp8)
16024 delete arg8;
16025 }
16026 {
16027 if (temp9)
16028 delete arg9;
16029 }
16030 return resultobj;
16031 fail:
16032 {
16033 if (temp4)
16034 delete arg4;
16035 }
16036 {
16037 if (temp8)
16038 delete arg8;
16039 }
16040 {
16041 if (temp9)
16042 delete arg9;
16043 }
16044 return NULL;
16045 }
16046
16047
16048 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16049 PyObject *resultobj;
16050 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16051 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
16052 wxToolBarToolBase *result;
16053 PyObject * obj0 = 0 ;
16054 PyObject * obj1 = 0 ;
16055 char *kwnames[] = {
16056 (char *) "self",(char *) "tool", NULL
16057 };
16058
16059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
16060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16062 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
16063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16064 {
16065 PyThreadState* __tstate = wxPyBeginAllowThreads();
16066 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
16067
16068 wxPyEndAllowThreads(__tstate);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 }
16071 {
16072 resultobj = wxPyMake_wxObject(result);
16073 }
16074 return resultobj;
16075 fail:
16076 return NULL;
16077 }
16078
16079
16080 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16081 PyObject *resultobj;
16082 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16083 size_t arg2 ;
16084 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
16085 wxToolBarToolBase *result;
16086 PyObject * obj0 = 0 ;
16087 PyObject * obj1 = 0 ;
16088 PyObject * obj2 = 0 ;
16089 char *kwnames[] = {
16090 (char *) "self",(char *) "pos",(char *) "tool", NULL
16091 };
16092
16093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
16094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16096 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16097 if (PyErr_Occurred()) SWIG_fail;
16098 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
16099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16100 {
16101 PyThreadState* __tstate = wxPyBeginAllowThreads();
16102 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
16103
16104 wxPyEndAllowThreads(__tstate);
16105 if (PyErr_Occurred()) SWIG_fail;
16106 }
16107 {
16108 resultobj = wxPyMake_wxObject(result);
16109 }
16110 return resultobj;
16111 fail:
16112 return NULL;
16113 }
16114
16115
16116 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16117 PyObject *resultobj;
16118 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16119 wxControl *arg2 = (wxControl *) 0 ;
16120 wxToolBarToolBase *result;
16121 PyObject * obj0 = 0 ;
16122 PyObject * obj1 = 0 ;
16123 char *kwnames[] = {
16124 (char *) "self",(char *) "control", NULL
16125 };
16126
16127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
16128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16130 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
16131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16132 {
16133 PyThreadState* __tstate = wxPyBeginAllowThreads();
16134 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
16135
16136 wxPyEndAllowThreads(__tstate);
16137 if (PyErr_Occurred()) SWIG_fail;
16138 }
16139 {
16140 resultobj = wxPyMake_wxObject(result);
16141 }
16142 return resultobj;
16143 fail:
16144 return NULL;
16145 }
16146
16147
16148 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16149 PyObject *resultobj;
16150 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16151 size_t arg2 ;
16152 wxControl *arg3 = (wxControl *) 0 ;
16153 wxToolBarToolBase *result;
16154 PyObject * obj0 = 0 ;
16155 PyObject * obj1 = 0 ;
16156 PyObject * obj2 = 0 ;
16157 char *kwnames[] = {
16158 (char *) "self",(char *) "pos",(char *) "control", NULL
16159 };
16160
16161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
16162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16164 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
16167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16168 {
16169 PyThreadState* __tstate = wxPyBeginAllowThreads();
16170 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
16171
16172 wxPyEndAllowThreads(__tstate);
16173 if (PyErr_Occurred()) SWIG_fail;
16174 }
16175 {
16176 resultobj = wxPyMake_wxObject(result);
16177 }
16178 return resultobj;
16179 fail:
16180 return NULL;
16181 }
16182
16183
16184 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16185 PyObject *resultobj;
16186 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16187 int arg2 ;
16188 wxControl *result;
16189 PyObject * obj0 = 0 ;
16190 PyObject * obj1 = 0 ;
16191 char *kwnames[] = {
16192 (char *) "self",(char *) "id", NULL
16193 };
16194
16195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
16196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16198 arg2 = (int) SWIG_AsInt(obj1);
16199 if (PyErr_Occurred()) SWIG_fail;
16200 {
16201 PyThreadState* __tstate = wxPyBeginAllowThreads();
16202 result = (wxControl *)(arg1)->FindControl(arg2);
16203
16204 wxPyEndAllowThreads(__tstate);
16205 if (PyErr_Occurred()) SWIG_fail;
16206 }
16207 {
16208 resultobj = wxPyMake_wxObject(result);
16209 }
16210 return resultobj;
16211 fail:
16212 return NULL;
16213 }
16214
16215
16216 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16217 PyObject *resultobj;
16218 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16219 wxToolBarToolBase *result;
16220 PyObject * obj0 = 0 ;
16221 char *kwnames[] = {
16222 (char *) "self", NULL
16223 };
16224
16225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
16226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16228 {
16229 PyThreadState* __tstate = wxPyBeginAllowThreads();
16230 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
16231
16232 wxPyEndAllowThreads(__tstate);
16233 if (PyErr_Occurred()) SWIG_fail;
16234 }
16235 {
16236 resultobj = wxPyMake_wxObject(result);
16237 }
16238 return resultobj;
16239 fail:
16240 return NULL;
16241 }
16242
16243
16244 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16245 PyObject *resultobj;
16246 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16247 size_t arg2 ;
16248 wxToolBarToolBase *result;
16249 PyObject * obj0 = 0 ;
16250 PyObject * obj1 = 0 ;
16251 char *kwnames[] = {
16252 (char *) "self",(char *) "pos", NULL
16253 };
16254
16255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
16256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16258 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16259 if (PyErr_Occurred()) SWIG_fail;
16260 {
16261 PyThreadState* __tstate = wxPyBeginAllowThreads();
16262 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
16263
16264 wxPyEndAllowThreads(__tstate);
16265 if (PyErr_Occurred()) SWIG_fail;
16266 }
16267 {
16268 resultobj = wxPyMake_wxObject(result);
16269 }
16270 return resultobj;
16271 fail:
16272 return NULL;
16273 }
16274
16275
16276 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16277 PyObject *resultobj;
16278 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16279 int arg2 ;
16280 wxToolBarToolBase *result;
16281 PyObject * obj0 = 0 ;
16282 PyObject * obj1 = 0 ;
16283 char *kwnames[] = {
16284 (char *) "self",(char *) "id", NULL
16285 };
16286
16287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
16288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16290 arg2 = (int) SWIG_AsInt(obj1);
16291 if (PyErr_Occurred()) SWIG_fail;
16292 {
16293 PyThreadState* __tstate = wxPyBeginAllowThreads();
16294 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
16295
16296 wxPyEndAllowThreads(__tstate);
16297 if (PyErr_Occurred()) SWIG_fail;
16298 }
16299 {
16300 resultobj = wxPyMake_wxObject(result);
16301 }
16302 return resultobj;
16303 fail:
16304 return NULL;
16305 }
16306
16307
16308 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
16309 PyObject *resultobj;
16310 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16311 size_t arg2 ;
16312 bool result;
16313 PyObject * obj0 = 0 ;
16314 PyObject * obj1 = 0 ;
16315 char *kwnames[] = {
16316 (char *) "self",(char *) "pos", NULL
16317 };
16318
16319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
16320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16322 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 {
16325 PyThreadState* __tstate = wxPyBeginAllowThreads();
16326 result = (bool)(arg1)->DeleteToolByPos(arg2);
16327
16328 wxPyEndAllowThreads(__tstate);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16332 return resultobj;
16333 fail:
16334 return NULL;
16335 }
16336
16337
16338 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16339 PyObject *resultobj;
16340 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16341 int arg2 ;
16342 bool result;
16343 PyObject * obj0 = 0 ;
16344 PyObject * obj1 = 0 ;
16345 char *kwnames[] = {
16346 (char *) "self",(char *) "id", NULL
16347 };
16348
16349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
16350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16352 arg2 = (int) SWIG_AsInt(obj1);
16353 if (PyErr_Occurred()) SWIG_fail;
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
16356 result = (bool)(arg1)->DeleteTool(arg2);
16357
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16362 return resultobj;
16363 fail:
16364 return NULL;
16365 }
16366
16367
16368 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
16369 PyObject *resultobj;
16370 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16371 PyObject * obj0 = 0 ;
16372 char *kwnames[] = {
16373 (char *) "self", NULL
16374 };
16375
16376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
16377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16379 {
16380 PyThreadState* __tstate = wxPyBeginAllowThreads();
16381 (arg1)->ClearTools();
16382
16383 wxPyEndAllowThreads(__tstate);
16384 if (PyErr_Occurred()) SWIG_fail;
16385 }
16386 Py_INCREF(Py_None); resultobj = Py_None;
16387 return resultobj;
16388 fail:
16389 return NULL;
16390 }
16391
16392
16393 static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
16394 PyObject *resultobj;
16395 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16396 bool result;
16397 PyObject * obj0 = 0 ;
16398 char *kwnames[] = {
16399 (char *) "self", NULL
16400 };
16401
16402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
16403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16405 {
16406 PyThreadState* __tstate = wxPyBeginAllowThreads();
16407 result = (bool)(arg1)->Realize();
16408
16409 wxPyEndAllowThreads(__tstate);
16410 if (PyErr_Occurred()) SWIG_fail;
16411 }
16412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16413 return resultobj;
16414 fail:
16415 return NULL;
16416 }
16417
16418
16419 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16420 PyObject *resultobj;
16421 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16422 int arg2 ;
16423 bool arg3 ;
16424 PyObject * obj0 = 0 ;
16425 PyObject * obj1 = 0 ;
16426 PyObject * obj2 = 0 ;
16427 char *kwnames[] = {
16428 (char *) "self",(char *) "id",(char *) "enable", NULL
16429 };
16430
16431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16434 arg2 = (int) SWIG_AsInt(obj1);
16435 if (PyErr_Occurred()) SWIG_fail;
16436 arg3 = (bool) SWIG_AsBool(obj2);
16437 if (PyErr_Occurred()) SWIG_fail;
16438 {
16439 PyThreadState* __tstate = wxPyBeginAllowThreads();
16440 (arg1)->EnableTool(arg2,arg3);
16441
16442 wxPyEndAllowThreads(__tstate);
16443 if (PyErr_Occurred()) SWIG_fail;
16444 }
16445 Py_INCREF(Py_None); resultobj = Py_None;
16446 return resultobj;
16447 fail:
16448 return NULL;
16449 }
16450
16451
16452 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16453 PyObject *resultobj;
16454 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16455 int arg2 ;
16456 bool arg3 ;
16457 PyObject * obj0 = 0 ;
16458 PyObject * obj1 = 0 ;
16459 PyObject * obj2 = 0 ;
16460 char *kwnames[] = {
16461 (char *) "self",(char *) "id",(char *) "toggle", NULL
16462 };
16463
16464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16467 arg2 = (int) SWIG_AsInt(obj1);
16468 if (PyErr_Occurred()) SWIG_fail;
16469 arg3 = (bool) SWIG_AsBool(obj2);
16470 if (PyErr_Occurred()) SWIG_fail;
16471 {
16472 PyThreadState* __tstate = wxPyBeginAllowThreads();
16473 (arg1)->ToggleTool(arg2,arg3);
16474
16475 wxPyEndAllowThreads(__tstate);
16476 if (PyErr_Occurred()) SWIG_fail;
16477 }
16478 Py_INCREF(Py_None); resultobj = Py_None;
16479 return resultobj;
16480 fail:
16481 return NULL;
16482 }
16483
16484
16485 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16486 PyObject *resultobj;
16487 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16488 int arg2 ;
16489 bool arg3 ;
16490 PyObject * obj0 = 0 ;
16491 PyObject * obj1 = 0 ;
16492 PyObject * obj2 = 0 ;
16493 char *kwnames[] = {
16494 (char *) "self",(char *) "id",(char *) "toggle", NULL
16495 };
16496
16497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
16498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16500 arg2 = (int) SWIG_AsInt(obj1);
16501 if (PyErr_Occurred()) SWIG_fail;
16502 arg3 = (bool) SWIG_AsBool(obj2);
16503 if (PyErr_Occurred()) SWIG_fail;
16504 {
16505 PyThreadState* __tstate = wxPyBeginAllowThreads();
16506 (arg1)->SetToggle(arg2,arg3);
16507
16508 wxPyEndAllowThreads(__tstate);
16509 if (PyErr_Occurred()) SWIG_fail;
16510 }
16511 Py_INCREF(Py_None); resultobj = Py_None;
16512 return resultobj;
16513 fail:
16514 return NULL;
16515 }
16516
16517
16518 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16519 PyObject *resultobj;
16520 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16521 int arg2 ;
16522 PyObject *result;
16523 PyObject * obj0 = 0 ;
16524 PyObject * obj1 = 0 ;
16525 char *kwnames[] = {
16526 (char *) "self",(char *) "id", NULL
16527 };
16528
16529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
16530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16532 arg2 = (int) SWIG_AsInt(obj1);
16533 if (PyErr_Occurred()) SWIG_fail;
16534 {
16535 PyThreadState* __tstate = wxPyBeginAllowThreads();
16536 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
16537
16538 wxPyEndAllowThreads(__tstate);
16539 if (PyErr_Occurred()) SWIG_fail;
16540 }
16541 resultobj = result;
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16549 PyObject *resultobj;
16550 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16551 int arg2 ;
16552 PyObject *arg3 = (PyObject *) 0 ;
16553 PyObject * obj0 = 0 ;
16554 PyObject * obj1 = 0 ;
16555 PyObject * obj2 = 0 ;
16556 char *kwnames[] = {
16557 (char *) "self",(char *) "id",(char *) "clientData", NULL
16558 };
16559
16560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
16561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16563 arg2 = (int) SWIG_AsInt(obj1);
16564 if (PyErr_Occurred()) SWIG_fail;
16565 arg3 = obj2;
16566 {
16567 PyThreadState* __tstate = wxPyBeginAllowThreads();
16568 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
16569
16570 wxPyEndAllowThreads(__tstate);
16571 if (PyErr_Occurred()) SWIG_fail;
16572 }
16573 Py_INCREF(Py_None); resultobj = Py_None;
16574 return resultobj;
16575 fail:
16576 return NULL;
16577 }
16578
16579
16580 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
16581 PyObject *resultobj;
16582 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16583 int arg2 ;
16584 int result;
16585 PyObject * obj0 = 0 ;
16586 PyObject * obj1 = 0 ;
16587 char *kwnames[] = {
16588 (char *) "self",(char *) "id", NULL
16589 };
16590
16591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
16592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16594 arg2 = (int) SWIG_AsInt(obj1);
16595 if (PyErr_Occurred()) SWIG_fail;
16596 {
16597 PyThreadState* __tstate = wxPyBeginAllowThreads();
16598 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
16599
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 resultobj = SWIG_FromInt((int)result);
16604 return resultobj;
16605 fail:
16606 return NULL;
16607 }
16608
16609
16610 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
16611 PyObject *resultobj;
16612 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16613 int arg2 ;
16614 bool result;
16615 PyObject * obj0 = 0 ;
16616 PyObject * obj1 = 0 ;
16617 char *kwnames[] = {
16618 (char *) "self",(char *) "id", NULL
16619 };
16620
16621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
16622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16624 arg2 = (int) SWIG_AsInt(obj1);
16625 if (PyErr_Occurred()) SWIG_fail;
16626 {
16627 PyThreadState* __tstate = wxPyBeginAllowThreads();
16628 result = (bool)(arg1)->GetToolState(arg2);
16629
16630 wxPyEndAllowThreads(__tstate);
16631 if (PyErr_Occurred()) SWIG_fail;
16632 }
16633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16634 return resultobj;
16635 fail:
16636 return NULL;
16637 }
16638
16639
16640 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
16641 PyObject *resultobj;
16642 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16643 int arg2 ;
16644 bool result;
16645 PyObject * obj0 = 0 ;
16646 PyObject * obj1 = 0 ;
16647 char *kwnames[] = {
16648 (char *) "self",(char *) "id", NULL
16649 };
16650
16651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
16652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16654 arg2 = (int) SWIG_AsInt(obj1);
16655 if (PyErr_Occurred()) SWIG_fail;
16656 {
16657 PyThreadState* __tstate = wxPyBeginAllowThreads();
16658 result = (bool)(arg1)->GetToolEnabled(arg2);
16659
16660 wxPyEndAllowThreads(__tstate);
16661 if (PyErr_Occurred()) SWIG_fail;
16662 }
16663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16664 return resultobj;
16665 fail:
16666 return NULL;
16667 }
16668
16669
16670 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16671 PyObject *resultobj;
16672 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16673 int arg2 ;
16674 wxString *arg3 = 0 ;
16675 bool temp3 = False ;
16676 PyObject * obj0 = 0 ;
16677 PyObject * obj1 = 0 ;
16678 PyObject * obj2 = 0 ;
16679 char *kwnames[] = {
16680 (char *) "self",(char *) "id",(char *) "helpString", NULL
16681 };
16682
16683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16686 arg2 = (int) SWIG_AsInt(obj1);
16687 if (PyErr_Occurred()) SWIG_fail;
16688 {
16689 arg3 = wxString_in_helper(obj2);
16690 if (arg3 == NULL) SWIG_fail;
16691 temp3 = True;
16692 }
16693 {
16694 PyThreadState* __tstate = wxPyBeginAllowThreads();
16695 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
16696
16697 wxPyEndAllowThreads(__tstate);
16698 if (PyErr_Occurred()) SWIG_fail;
16699 }
16700 Py_INCREF(Py_None); resultobj = Py_None;
16701 {
16702 if (temp3)
16703 delete arg3;
16704 }
16705 return resultobj;
16706 fail:
16707 {
16708 if (temp3)
16709 delete arg3;
16710 }
16711 return NULL;
16712 }
16713
16714
16715 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16716 PyObject *resultobj;
16717 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16718 int arg2 ;
16719 wxString result;
16720 PyObject * obj0 = 0 ;
16721 PyObject * obj1 = 0 ;
16722 char *kwnames[] = {
16723 (char *) "self",(char *) "id", NULL
16724 };
16725
16726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
16727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16729 arg2 = (int) SWIG_AsInt(obj1);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 {
16732 PyThreadState* __tstate = wxPyBeginAllowThreads();
16733 result = (arg1)->GetToolShortHelp(arg2);
16734
16735 wxPyEndAllowThreads(__tstate);
16736 if (PyErr_Occurred()) SWIG_fail;
16737 }
16738 {
16739 #if wxUSE_UNICODE
16740 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16741 #else
16742 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16743 #endif
16744 }
16745 return resultobj;
16746 fail:
16747 return NULL;
16748 }
16749
16750
16751 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16752 PyObject *resultobj;
16753 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16754 int arg2 ;
16755 wxString *arg3 = 0 ;
16756 bool temp3 = False ;
16757 PyObject * obj0 = 0 ;
16758 PyObject * obj1 = 0 ;
16759 PyObject * obj2 = 0 ;
16760 char *kwnames[] = {
16761 (char *) "self",(char *) "id",(char *) "helpString", NULL
16762 };
16763
16764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16767 arg2 = (int) SWIG_AsInt(obj1);
16768 if (PyErr_Occurred()) SWIG_fail;
16769 {
16770 arg3 = wxString_in_helper(obj2);
16771 if (arg3 == NULL) SWIG_fail;
16772 temp3 = True;
16773 }
16774 {
16775 PyThreadState* __tstate = wxPyBeginAllowThreads();
16776 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
16777
16778 wxPyEndAllowThreads(__tstate);
16779 if (PyErr_Occurred()) SWIG_fail;
16780 }
16781 Py_INCREF(Py_None); resultobj = Py_None;
16782 {
16783 if (temp3)
16784 delete arg3;
16785 }
16786 return resultobj;
16787 fail:
16788 {
16789 if (temp3)
16790 delete arg3;
16791 }
16792 return NULL;
16793 }
16794
16795
16796 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16797 PyObject *resultobj;
16798 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16799 int arg2 ;
16800 wxString result;
16801 PyObject * obj0 = 0 ;
16802 PyObject * obj1 = 0 ;
16803 char *kwnames[] = {
16804 (char *) "self",(char *) "id", NULL
16805 };
16806
16807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
16808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16810 arg2 = (int) SWIG_AsInt(obj1);
16811 if (PyErr_Occurred()) SWIG_fail;
16812 {
16813 PyThreadState* __tstate = wxPyBeginAllowThreads();
16814 result = (arg1)->GetToolLongHelp(arg2);
16815
16816 wxPyEndAllowThreads(__tstate);
16817 if (PyErr_Occurred()) SWIG_fail;
16818 }
16819 {
16820 #if wxUSE_UNICODE
16821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16822 #else
16823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16824 #endif
16825 }
16826 return resultobj;
16827 fail:
16828 return NULL;
16829 }
16830
16831
16832 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
16833 PyObject *resultobj;
16834 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16835 int arg2 ;
16836 int arg3 ;
16837 PyObject * obj0 = 0 ;
16838 PyObject * obj1 = 0 ;
16839 PyObject * obj2 = 0 ;
16840 char *kwnames[] = {
16841 (char *) "self",(char *) "x",(char *) "y", NULL
16842 };
16843
16844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
16845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16847 arg2 = (int) SWIG_AsInt(obj1);
16848 if (PyErr_Occurred()) SWIG_fail;
16849 arg3 = (int) SWIG_AsInt(obj2);
16850 if (PyErr_Occurred()) SWIG_fail;
16851 {
16852 PyThreadState* __tstate = wxPyBeginAllowThreads();
16853 (arg1)->SetMargins(arg2,arg3);
16854
16855 wxPyEndAllowThreads(__tstate);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
16858 Py_INCREF(Py_None); resultobj = Py_None;
16859 return resultobj;
16860 fail:
16861 return NULL;
16862 }
16863
16864
16865 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16866 PyObject *resultobj;
16867 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16868 wxSize *arg2 = 0 ;
16869 wxSize temp2 ;
16870 PyObject * obj0 = 0 ;
16871 PyObject * obj1 = 0 ;
16872 char *kwnames[] = {
16873 (char *) "self",(char *) "size", NULL
16874 };
16875
16876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
16877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16879 {
16880 arg2 = &temp2;
16881 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
16882 }
16883 {
16884 PyThreadState* __tstate = wxPyBeginAllowThreads();
16885 (arg1)->SetMargins((wxSize const &)*arg2);
16886
16887 wxPyEndAllowThreads(__tstate);
16888 if (PyErr_Occurred()) SWIG_fail;
16889 }
16890 Py_INCREF(Py_None); resultobj = Py_None;
16891 return resultobj;
16892 fail:
16893 return NULL;
16894 }
16895
16896
16897 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
16898 PyObject *resultobj;
16899 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16900 int arg2 ;
16901 PyObject * obj0 = 0 ;
16902 PyObject * obj1 = 0 ;
16903 char *kwnames[] = {
16904 (char *) "self",(char *) "packing", NULL
16905 };
16906
16907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
16908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16910 arg2 = (int) SWIG_AsInt(obj1);
16911 if (PyErr_Occurred()) SWIG_fail;
16912 {
16913 PyThreadState* __tstate = wxPyBeginAllowThreads();
16914 (arg1)->SetToolPacking(arg2);
16915
16916 wxPyEndAllowThreads(__tstate);
16917 if (PyErr_Occurred()) SWIG_fail;
16918 }
16919 Py_INCREF(Py_None); resultobj = Py_None;
16920 return resultobj;
16921 fail:
16922 return NULL;
16923 }
16924
16925
16926 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
16927 PyObject *resultobj;
16928 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16929 int arg2 ;
16930 PyObject * obj0 = 0 ;
16931 PyObject * obj1 = 0 ;
16932 char *kwnames[] = {
16933 (char *) "self",(char *) "separation", NULL
16934 };
16935
16936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
16937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16939 arg2 = (int) SWIG_AsInt(obj1);
16940 if (PyErr_Occurred()) SWIG_fail;
16941 {
16942 PyThreadState* __tstate = wxPyBeginAllowThreads();
16943 (arg1)->SetToolSeparation(arg2);
16944
16945 wxPyEndAllowThreads(__tstate);
16946 if (PyErr_Occurred()) SWIG_fail;
16947 }
16948 Py_INCREF(Py_None); resultobj = Py_None;
16949 return resultobj;
16950 fail:
16951 return NULL;
16952 }
16953
16954
16955 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16956 PyObject *resultobj;
16957 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16958 wxSize result;
16959 PyObject * obj0 = 0 ;
16960 char *kwnames[] = {
16961 (char *) "self", NULL
16962 };
16963
16964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
16965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16967 {
16968 PyThreadState* __tstate = wxPyBeginAllowThreads();
16969 result = (arg1)->GetToolMargins();
16970
16971 wxPyEndAllowThreads(__tstate);
16972 if (PyErr_Occurred()) SWIG_fail;
16973 }
16974 {
16975 wxSize * resultptr;
16976 resultptr = new wxSize((wxSize &) result);
16977 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16978 }
16979 return resultobj;
16980 fail:
16981 return NULL;
16982 }
16983
16984
16985 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16986 PyObject *resultobj;
16987 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16988 wxSize result;
16989 PyObject * obj0 = 0 ;
16990 char *kwnames[] = {
16991 (char *) "self", NULL
16992 };
16993
16994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
16995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16997 {
16998 PyThreadState* __tstate = wxPyBeginAllowThreads();
16999 result = (arg1)->GetMargins();
17000
17001 wxPyEndAllowThreads(__tstate);
17002 if (PyErr_Occurred()) SWIG_fail;
17003 }
17004 {
17005 wxSize * resultptr;
17006 resultptr = new wxSize((wxSize &) result);
17007 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17008 }
17009 return resultobj;
17010 fail:
17011 return NULL;
17012 }
17013
17014
17015 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17016 PyObject *resultobj;
17017 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17018 int result;
17019 PyObject * obj0 = 0 ;
17020 char *kwnames[] = {
17021 (char *) "self", NULL
17022 };
17023
17024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
17025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17027 {
17028 PyThreadState* __tstate = wxPyBeginAllowThreads();
17029 result = (int)(arg1)->GetToolPacking();
17030
17031 wxPyEndAllowThreads(__tstate);
17032 if (PyErr_Occurred()) SWIG_fail;
17033 }
17034 resultobj = SWIG_FromInt((int)result);
17035 return resultobj;
17036 fail:
17037 return NULL;
17038 }
17039
17040
17041 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17042 PyObject *resultobj;
17043 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17044 int result;
17045 PyObject * obj0 = 0 ;
17046 char *kwnames[] = {
17047 (char *) "self", NULL
17048 };
17049
17050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
17051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17053 {
17054 PyThreadState* __tstate = wxPyBeginAllowThreads();
17055 result = (int)(arg1)->GetToolSeparation();
17056
17057 wxPyEndAllowThreads(__tstate);
17058 if (PyErr_Occurred()) SWIG_fail;
17059 }
17060 resultobj = SWIG_FromInt((int)result);
17061 return resultobj;
17062 fail:
17063 return NULL;
17064 }
17065
17066
17067 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17068 PyObject *resultobj;
17069 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17070 int arg2 ;
17071 PyObject * obj0 = 0 ;
17072 PyObject * obj1 = 0 ;
17073 char *kwnames[] = {
17074 (char *) "self",(char *) "nRows", NULL
17075 };
17076
17077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
17078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17080 arg2 = (int) SWIG_AsInt(obj1);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 {
17083 PyThreadState* __tstate = wxPyBeginAllowThreads();
17084 (arg1)->SetRows(arg2);
17085
17086 wxPyEndAllowThreads(__tstate);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
17089 Py_INCREF(Py_None); resultobj = Py_None;
17090 return resultobj;
17091 fail:
17092 return NULL;
17093 }
17094
17095
17096 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17097 PyObject *resultobj;
17098 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17099 int arg2 ;
17100 int arg3 ;
17101 PyObject * obj0 = 0 ;
17102 PyObject * obj1 = 0 ;
17103 PyObject * obj2 = 0 ;
17104 char *kwnames[] = {
17105 (char *) "self",(char *) "rows",(char *) "cols", NULL
17106 };
17107
17108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
17109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17111 arg2 = (int) SWIG_AsInt(obj1);
17112 if (PyErr_Occurred()) SWIG_fail;
17113 arg3 = (int) SWIG_AsInt(obj2);
17114 if (PyErr_Occurred()) SWIG_fail;
17115 {
17116 PyThreadState* __tstate = wxPyBeginAllowThreads();
17117 (arg1)->SetMaxRowsCols(arg2,arg3);
17118
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 Py_INCREF(Py_None); resultobj = Py_None;
17123 return resultobj;
17124 fail:
17125 return NULL;
17126 }
17127
17128
17129 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17130 PyObject *resultobj;
17131 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17132 int result;
17133 PyObject * obj0 = 0 ;
17134 char *kwnames[] = {
17135 (char *) "self", NULL
17136 };
17137
17138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
17139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17141 {
17142 PyThreadState* __tstate = wxPyBeginAllowThreads();
17143 result = (int)(arg1)->GetMaxRows();
17144
17145 wxPyEndAllowThreads(__tstate);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 resultobj = SWIG_FromInt((int)result);
17149 return resultobj;
17150 fail:
17151 return NULL;
17152 }
17153
17154
17155 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17156 PyObject *resultobj;
17157 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17158 int result;
17159 PyObject * obj0 = 0 ;
17160 char *kwnames[] = {
17161 (char *) "self", NULL
17162 };
17163
17164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
17165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17167 {
17168 PyThreadState* __tstate = wxPyBeginAllowThreads();
17169 result = (int)(arg1)->GetMaxCols();
17170
17171 wxPyEndAllowThreads(__tstate);
17172 if (PyErr_Occurred()) SWIG_fail;
17173 }
17174 resultobj = SWIG_FromInt((int)result);
17175 return resultobj;
17176 fail:
17177 return NULL;
17178 }
17179
17180
17181 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17182 PyObject *resultobj;
17183 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17184 wxSize *arg2 = 0 ;
17185 wxSize temp2 ;
17186 PyObject * obj0 = 0 ;
17187 PyObject * obj1 = 0 ;
17188 char *kwnames[] = {
17189 (char *) "self",(char *) "size", NULL
17190 };
17191
17192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
17193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17195 {
17196 arg2 = &temp2;
17197 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17198 }
17199 {
17200 PyThreadState* __tstate = wxPyBeginAllowThreads();
17201 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
17202
17203 wxPyEndAllowThreads(__tstate);
17204 if (PyErr_Occurred()) SWIG_fail;
17205 }
17206 Py_INCREF(Py_None); resultobj = Py_None;
17207 return resultobj;
17208 fail:
17209 return NULL;
17210 }
17211
17212
17213 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17214 PyObject *resultobj;
17215 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17216 wxSize result;
17217 PyObject * obj0 = 0 ;
17218 char *kwnames[] = {
17219 (char *) "self", NULL
17220 };
17221
17222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
17223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17225 {
17226 PyThreadState* __tstate = wxPyBeginAllowThreads();
17227 result = (arg1)->GetToolBitmapSize();
17228
17229 wxPyEndAllowThreads(__tstate);
17230 if (PyErr_Occurred()) SWIG_fail;
17231 }
17232 {
17233 wxSize * resultptr;
17234 resultptr = new wxSize((wxSize &) result);
17235 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17236 }
17237 return resultobj;
17238 fail:
17239 return NULL;
17240 }
17241
17242
17243 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17244 PyObject *resultobj;
17245 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17246 wxSize result;
17247 PyObject * obj0 = 0 ;
17248 char *kwnames[] = {
17249 (char *) "self", NULL
17250 };
17251
17252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
17253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17255 {
17256 PyThreadState* __tstate = wxPyBeginAllowThreads();
17257 result = (arg1)->GetToolSize();
17258
17259 wxPyEndAllowThreads(__tstate);
17260 if (PyErr_Occurred()) SWIG_fail;
17261 }
17262 {
17263 wxSize * resultptr;
17264 resultptr = new wxSize((wxSize &) result);
17265 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17266 }
17267 return resultobj;
17268 fail:
17269 return NULL;
17270 }
17271
17272
17273 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17274 PyObject *resultobj;
17275 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17276 int arg2 ;
17277 int arg3 ;
17278 wxToolBarToolBase *result;
17279 PyObject * obj0 = 0 ;
17280 PyObject * obj1 = 0 ;
17281 PyObject * obj2 = 0 ;
17282 char *kwnames[] = {
17283 (char *) "self",(char *) "x",(char *) "y", NULL
17284 };
17285
17286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17289 arg2 = (int) SWIG_AsInt(obj1);
17290 if (PyErr_Occurred()) SWIG_fail;
17291 arg3 = (int) SWIG_AsInt(obj2);
17292 if (PyErr_Occurred()) SWIG_fail;
17293 {
17294 PyThreadState* __tstate = wxPyBeginAllowThreads();
17295 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17296
17297 wxPyEndAllowThreads(__tstate);
17298 if (PyErr_Occurred()) SWIG_fail;
17299 }
17300 {
17301 resultobj = wxPyMake_wxObject(result);
17302 }
17303 return resultobj;
17304 fail:
17305 return NULL;
17306 }
17307
17308
17309 static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
17310 PyObject *resultobj;
17311 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17312 int arg2 ;
17313 wxToolBarToolBase *result;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 char *kwnames[] = {
17317 (char *) "self",(char *) "toolid", NULL
17318 };
17319
17320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
17321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17323 arg2 = (int) SWIG_AsInt(obj1);
17324 if (PyErr_Occurred()) SWIG_fail;
17325 {
17326 PyThreadState* __tstate = wxPyBeginAllowThreads();
17327 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
17328
17329 wxPyEndAllowThreads(__tstate);
17330 if (PyErr_Occurred()) SWIG_fail;
17331 }
17332 {
17333 resultobj = wxPyMake_wxObject(result);
17334 }
17335 return resultobj;
17336 fail:
17337 return NULL;
17338 }
17339
17340
17341 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
17342 PyObject *resultobj;
17343 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17344 bool result;
17345 PyObject * obj0 = 0 ;
17346 char *kwnames[] = {
17347 (char *) "self", NULL
17348 };
17349
17350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
17351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17353 {
17354 PyThreadState* __tstate = wxPyBeginAllowThreads();
17355 result = (bool)(arg1)->IsVertical();
17356
17357 wxPyEndAllowThreads(__tstate);
17358 if (PyErr_Occurred()) SWIG_fail;
17359 }
17360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17361 return resultobj;
17362 fail:
17363 return NULL;
17364 }
17365
17366
17367 static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
17368 PyObject *obj;
17369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17370 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
17371 Py_INCREF(obj);
17372 return Py_BuildValue((char *)"");
17373 }
17374 static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
17375 PyObject *resultobj;
17376 wxWindow *arg1 = (wxWindow *) 0 ;
17377 int arg2 ;
17378 wxPoint const &arg3_defvalue = wxDefaultPosition ;
17379 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
17380 wxSize const &arg4_defvalue = wxDefaultSize ;
17381 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
17382 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17383 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
17384 wxString *arg6 = (wxString *) &arg6_defvalue ;
17385 wxToolBar *result;
17386 wxPoint temp3 ;
17387 wxSize temp4 ;
17388 bool temp6 = False ;
17389 PyObject * obj0 = 0 ;
17390 PyObject * obj1 = 0 ;
17391 PyObject * obj2 = 0 ;
17392 PyObject * obj3 = 0 ;
17393 PyObject * obj4 = 0 ;
17394 PyObject * obj5 = 0 ;
17395 char *kwnames[] = {
17396 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17397 };
17398
17399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
17401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17402 arg2 = (int) SWIG_AsInt(obj1);
17403 if (PyErr_Occurred()) SWIG_fail;
17404 if (obj2) {
17405 {
17406 arg3 = &temp3;
17407 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17408 }
17409 }
17410 if (obj3) {
17411 {
17412 arg4 = &temp4;
17413 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
17414 }
17415 }
17416 if (obj4) {
17417 arg5 = (long) SWIG_AsLong(obj4);
17418 if (PyErr_Occurred()) SWIG_fail;
17419 }
17420 if (obj5) {
17421 {
17422 arg6 = wxString_in_helper(obj5);
17423 if (arg6 == NULL) SWIG_fail;
17424 temp6 = True;
17425 }
17426 }
17427 {
17428 PyThreadState* __tstate = wxPyBeginAllowThreads();
17429 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
17430
17431 wxPyEndAllowThreads(__tstate);
17432 if (PyErr_Occurred()) SWIG_fail;
17433 }
17434 {
17435 resultobj = wxPyMake_wxObject(result);
17436 }
17437 {
17438 if (temp6)
17439 delete arg6;
17440 }
17441 return resultobj;
17442 fail:
17443 {
17444 if (temp6)
17445 delete arg6;
17446 }
17447 return NULL;
17448 }
17449
17450
17451 static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
17452 PyObject *resultobj;
17453 wxToolBar *result;
17454 char *kwnames[] = {
17455 NULL
17456 };
17457
17458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
17459 {
17460 PyThreadState* __tstate = wxPyBeginAllowThreads();
17461 result = (wxToolBar *)new wxToolBar();
17462
17463 wxPyEndAllowThreads(__tstate);
17464 if (PyErr_Occurred()) SWIG_fail;
17465 }
17466 {
17467 resultobj = wxPyMake_wxObject(result);
17468 }
17469 return resultobj;
17470 fail:
17471 return NULL;
17472 }
17473
17474
17475 static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
17476 PyObject *resultobj;
17477 wxToolBar *arg1 = (wxToolBar *) 0 ;
17478 wxWindow *arg2 = (wxWindow *) 0 ;
17479 int arg3 ;
17480 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17481 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17482 wxSize const &arg5_defvalue = wxDefaultSize ;
17483 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17484 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17485 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
17486 wxString *arg7 = (wxString *) &arg7_defvalue ;
17487 bool result;
17488 wxPoint temp4 ;
17489 wxSize temp5 ;
17490 bool temp7 = False ;
17491 PyObject * obj0 = 0 ;
17492 PyObject * obj1 = 0 ;
17493 PyObject * obj2 = 0 ;
17494 PyObject * obj3 = 0 ;
17495 PyObject * obj4 = 0 ;
17496 PyObject * obj5 = 0 ;
17497 PyObject * obj6 = 0 ;
17498 char *kwnames[] = {
17499 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17500 };
17501
17502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
17504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
17506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17507 arg3 = (int) SWIG_AsInt(obj2);
17508 if (PyErr_Occurred()) SWIG_fail;
17509 if (obj3) {
17510 {
17511 arg4 = &temp4;
17512 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17513 }
17514 }
17515 if (obj4) {
17516 {
17517 arg5 = &temp5;
17518 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17519 }
17520 }
17521 if (obj5) {
17522 arg6 = (long) SWIG_AsLong(obj5);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 }
17525 if (obj6) {
17526 {
17527 arg7 = wxString_in_helper(obj6);
17528 if (arg7 == NULL) SWIG_fail;
17529 temp7 = True;
17530 }
17531 }
17532 {
17533 PyThreadState* __tstate = wxPyBeginAllowThreads();
17534 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
17535
17536 wxPyEndAllowThreads(__tstate);
17537 if (PyErr_Occurred()) SWIG_fail;
17538 }
17539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17540 {
17541 if (temp7)
17542 delete arg7;
17543 }
17544 return resultobj;
17545 fail:
17546 {
17547 if (temp7)
17548 delete arg7;
17549 }
17550 return NULL;
17551 }
17552
17553
17554 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17555 PyObject *resultobj;
17556 wxToolBar *arg1 = (wxToolBar *) 0 ;
17557 int arg2 ;
17558 int arg3 ;
17559 wxToolBarToolBase *result;
17560 PyObject * obj0 = 0 ;
17561 PyObject * obj1 = 0 ;
17562 PyObject * obj2 = 0 ;
17563 char *kwnames[] = {
17564 (char *) "self",(char *) "x",(char *) "y", NULL
17565 };
17566
17567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
17569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17570 arg2 = (int) SWIG_AsInt(obj1);
17571 if (PyErr_Occurred()) SWIG_fail;
17572 arg3 = (int) SWIG_AsInt(obj2);
17573 if (PyErr_Occurred()) SWIG_fail;
17574 {
17575 PyThreadState* __tstate = wxPyBeginAllowThreads();
17576 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17577
17578 wxPyEndAllowThreads(__tstate);
17579 if (PyErr_Occurred()) SWIG_fail;
17580 }
17581 {
17582 resultobj = wxPyMake_wxObject(result);
17583 }
17584 return resultobj;
17585 fail:
17586 return NULL;
17587 }
17588
17589
17590 static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
17591 PyObject *obj;
17592 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17593 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
17594 Py_INCREF(obj);
17595 return Py_BuildValue((char *)"");
17596 }
17597 static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
17598 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
17599 return 1;
17600 }
17601
17602
17603 static PyObject *_wrap_ListCtrlNameStr_get() {
17604 PyObject *pyobj;
17605
17606 {
17607 #if wxUSE_UNICODE
17608 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17609 #else
17610 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17611 #endif
17612 }
17613 return pyobj;
17614 }
17615
17616
17617 static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
17618 PyObject *resultobj;
17619 wxColour const &arg1_defvalue = wxNullColour ;
17620 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
17621 wxColour const &arg2_defvalue = wxNullColour ;
17622 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
17623 wxFont const &arg3_defvalue = wxNullFont ;
17624 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
17625 wxListItemAttr *result;
17626 wxColour temp1 ;
17627 wxColour temp2 ;
17628 PyObject * obj0 = 0 ;
17629 PyObject * obj1 = 0 ;
17630 PyObject * obj2 = 0 ;
17631 char *kwnames[] = {
17632 (char *) "colText",(char *) "colBack",(char *) "font", NULL
17633 };
17634
17635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
17636 if (obj0) {
17637 {
17638 arg1 = &temp1;
17639 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
17640 }
17641 }
17642 if (obj1) {
17643 {
17644 arg2 = &temp2;
17645 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17646 }
17647 }
17648 if (obj2) {
17649 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
17650 SWIG_POINTER_EXCEPTION | 0)) == -1)
17651 SWIG_fail;
17652 if (arg3 == NULL) {
17653 PyErr_SetString(PyExc_TypeError,"null reference");
17654 SWIG_fail;
17655 }
17656 }
17657 {
17658 PyThreadState* __tstate = wxPyBeginAllowThreads();
17659 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
17660
17661 wxPyEndAllowThreads(__tstate);
17662 if (PyErr_Occurred()) SWIG_fail;
17663 }
17664 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
17665 return resultobj;
17666 fail:
17667 return NULL;
17668 }
17669
17670
17671 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17672 PyObject *resultobj;
17673 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17674 wxColour *arg2 = 0 ;
17675 wxColour temp2 ;
17676 PyObject * obj0 = 0 ;
17677 PyObject * obj1 = 0 ;
17678 char *kwnames[] = {
17679 (char *) "self",(char *) "colText", NULL
17680 };
17681
17682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
17683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17685 {
17686 arg2 = &temp2;
17687 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17688 }
17689 {
17690 PyThreadState* __tstate = wxPyBeginAllowThreads();
17691 (arg1)->SetTextColour((wxColour const &)*arg2);
17692
17693 wxPyEndAllowThreads(__tstate);
17694 if (PyErr_Occurred()) SWIG_fail;
17695 }
17696 Py_INCREF(Py_None); resultobj = Py_None;
17697 return resultobj;
17698 fail:
17699 return NULL;
17700 }
17701
17702
17703 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17704 PyObject *resultobj;
17705 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17706 wxColour *arg2 = 0 ;
17707 wxColour temp2 ;
17708 PyObject * obj0 = 0 ;
17709 PyObject * obj1 = 0 ;
17710 char *kwnames[] = {
17711 (char *) "self",(char *) "colBack", NULL
17712 };
17713
17714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
17715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17717 {
17718 arg2 = &temp2;
17719 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17720 }
17721 {
17722 PyThreadState* __tstate = wxPyBeginAllowThreads();
17723 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
17724
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 Py_INCREF(Py_None); resultobj = Py_None;
17729 return resultobj;
17730 fail:
17731 return NULL;
17732 }
17733
17734
17735 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj;
17737 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17738 wxFont *arg2 = 0 ;
17739 PyObject * obj0 = 0 ;
17740 PyObject * obj1 = 0 ;
17741 char *kwnames[] = {
17742 (char *) "self",(char *) "font", NULL
17743 };
17744
17745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
17746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17748 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17749 SWIG_POINTER_EXCEPTION | 0)) == -1)
17750 SWIG_fail;
17751 if (arg2 == NULL) {
17752 PyErr_SetString(PyExc_TypeError,"null reference");
17753 SWIG_fail;
17754 }
17755 {
17756 PyThreadState* __tstate = wxPyBeginAllowThreads();
17757 (arg1)->SetFont((wxFont const &)*arg2);
17758
17759 wxPyEndAllowThreads(__tstate);
17760 if (PyErr_Occurred()) SWIG_fail;
17761 }
17762 Py_INCREF(Py_None); resultobj = Py_None;
17763 return resultobj;
17764 fail:
17765 return NULL;
17766 }
17767
17768
17769 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17770 PyObject *resultobj;
17771 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17772 bool result;
17773 PyObject * obj0 = 0 ;
17774 char *kwnames[] = {
17775 (char *) "self", NULL
17776 };
17777
17778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
17779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17781 {
17782 PyThreadState* __tstate = wxPyBeginAllowThreads();
17783 result = (bool)(arg1)->HasTextColour();
17784
17785 wxPyEndAllowThreads(__tstate);
17786 if (PyErr_Occurred()) SWIG_fail;
17787 }
17788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17789 return resultobj;
17790 fail:
17791 return NULL;
17792 }
17793
17794
17795 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17796 PyObject *resultobj;
17797 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17798 bool result;
17799 PyObject * obj0 = 0 ;
17800 char *kwnames[] = {
17801 (char *) "self", NULL
17802 };
17803
17804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",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 result = (bool)(arg1)->HasBackgroundColour();
17810
17811 wxPyEndAllowThreads(__tstate);
17812 if (PyErr_Occurred()) SWIG_fail;
17813 }
17814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17815 return resultobj;
17816 fail:
17817 return NULL;
17818 }
17819
17820
17821 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17822 PyObject *resultobj;
17823 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17824 bool result;
17825 PyObject * obj0 = 0 ;
17826 char *kwnames[] = {
17827 (char *) "self", NULL
17828 };
17829
17830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
17831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17833 {
17834 PyThreadState* __tstate = wxPyBeginAllowThreads();
17835 result = (bool)(arg1)->HasFont();
17836
17837 wxPyEndAllowThreads(__tstate);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 }
17840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17841 return resultobj;
17842 fail:
17843 return NULL;
17844 }
17845
17846
17847 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17848 PyObject *resultobj;
17849 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17850 wxColour result;
17851 PyObject * obj0 = 0 ;
17852 char *kwnames[] = {
17853 (char *) "self", NULL
17854 };
17855
17856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
17857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17859 {
17860 PyThreadState* __tstate = wxPyBeginAllowThreads();
17861 result = (arg1)->GetTextColour();
17862
17863 wxPyEndAllowThreads(__tstate);
17864 if (PyErr_Occurred()) SWIG_fail;
17865 }
17866 {
17867 wxColour * resultptr;
17868 resultptr = new wxColour((wxColour &) result);
17869 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17870 }
17871 return resultobj;
17872 fail:
17873 return NULL;
17874 }
17875
17876
17877 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17878 PyObject *resultobj;
17879 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17880 wxColour result;
17881 PyObject * obj0 = 0 ;
17882 char *kwnames[] = {
17883 (char *) "self", NULL
17884 };
17885
17886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
17887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 result = (arg1)->GetBackgroundColour();
17892
17893 wxPyEndAllowThreads(__tstate);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 }
17896 {
17897 wxColour * resultptr;
17898 resultptr = new wxColour((wxColour &) result);
17899 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17900 }
17901 return resultobj;
17902 fail:
17903 return NULL;
17904 }
17905
17906
17907 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17908 PyObject *resultobj;
17909 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17910 wxFont result;
17911 PyObject * obj0 = 0 ;
17912 char *kwnames[] = {
17913 (char *) "self", NULL
17914 };
17915
17916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
17917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17919 {
17920 PyThreadState* __tstate = wxPyBeginAllowThreads();
17921 result = (arg1)->GetFont();
17922
17923 wxPyEndAllowThreads(__tstate);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 }
17926 {
17927 wxFont * resultptr;
17928 resultptr = new wxFont((wxFont &) result);
17929 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
17930 }
17931 return resultobj;
17932 fail:
17933 return NULL;
17934 }
17935
17936
17937 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
17938 PyObject *resultobj;
17939 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17940 PyObject * obj0 = 0 ;
17941 char *kwnames[] = {
17942 (char *) "self", NULL
17943 };
17944
17945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
17946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17948 {
17949 PyThreadState* __tstate = wxPyBeginAllowThreads();
17950 wxListItemAttr_Destroy(arg1);
17951
17952 wxPyEndAllowThreads(__tstate);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 }
17955 Py_INCREF(Py_None); resultobj = Py_None;
17956 return resultobj;
17957 fail:
17958 return NULL;
17959 }
17960
17961
17962 static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
17963 PyObject *obj;
17964 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17965 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
17966 Py_INCREF(obj);
17967 return Py_BuildValue((char *)"");
17968 }
17969 static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17970 PyObject *resultobj;
17971 wxListItem *result;
17972 char *kwnames[] = {
17973 NULL
17974 };
17975
17976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
17977 {
17978 PyThreadState* __tstate = wxPyBeginAllowThreads();
17979 result = (wxListItem *)new wxListItem();
17980
17981 wxPyEndAllowThreads(__tstate);
17982 if (PyErr_Occurred()) SWIG_fail;
17983 }
17984 {
17985 resultobj = wxPyMake_wxObject(result);
17986 }
17987 return resultobj;
17988 fail:
17989 return NULL;
17990 }
17991
17992
17993 static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17994 PyObject *resultobj;
17995 wxListItem *arg1 = (wxListItem *) 0 ;
17996 PyObject * obj0 = 0 ;
17997 char *kwnames[] = {
17998 (char *) "self", NULL
17999 };
18000
18001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
18002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18004 {
18005 PyThreadState* __tstate = wxPyBeginAllowThreads();
18006 delete arg1;
18007
18008 wxPyEndAllowThreads(__tstate);
18009 if (PyErr_Occurred()) SWIG_fail;
18010 }
18011 Py_INCREF(Py_None); resultobj = Py_None;
18012 return resultobj;
18013 fail:
18014 return NULL;
18015 }
18016
18017
18018 static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
18019 PyObject *resultobj;
18020 wxListItem *arg1 = (wxListItem *) 0 ;
18021 PyObject * obj0 = 0 ;
18022 char *kwnames[] = {
18023 (char *) "self", NULL
18024 };
18025
18026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
18027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18029 {
18030 PyThreadState* __tstate = wxPyBeginAllowThreads();
18031 (arg1)->Clear();
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_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18044 PyObject *resultobj;
18045 wxListItem *arg1 = (wxListItem *) 0 ;
18046 PyObject * obj0 = 0 ;
18047 char *kwnames[] = {
18048 (char *) "self", NULL
18049 };
18050
18051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
18052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18054 {
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 (arg1)->ClearAttributes();
18057
18058 wxPyEndAllowThreads(__tstate);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 }
18061 Py_INCREF(Py_None); resultobj = Py_None;
18062 return resultobj;
18063 fail:
18064 return NULL;
18065 }
18066
18067
18068 static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18069 PyObject *resultobj;
18070 wxListItem *arg1 = (wxListItem *) 0 ;
18071 long arg2 ;
18072 PyObject * obj0 = 0 ;
18073 PyObject * obj1 = 0 ;
18074 char *kwnames[] = {
18075 (char *) "self",(char *) "mask", NULL
18076 };
18077
18078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
18079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18081 arg2 = (long) SWIG_AsLong(obj1);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 {
18084 PyThreadState* __tstate = wxPyBeginAllowThreads();
18085 (arg1)->SetMask(arg2);
18086
18087 wxPyEndAllowThreads(__tstate);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 }
18090 Py_INCREF(Py_None); resultobj = Py_None;
18091 return resultobj;
18092 fail:
18093 return NULL;
18094 }
18095
18096
18097 static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18098 PyObject *resultobj;
18099 wxListItem *arg1 = (wxListItem *) 0 ;
18100 long arg2 ;
18101 PyObject * obj0 = 0 ;
18102 PyObject * obj1 = 0 ;
18103 char *kwnames[] = {
18104 (char *) "self",(char *) "id", NULL
18105 };
18106
18107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
18108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18110 arg2 = (long) SWIG_AsLong(obj1);
18111 if (PyErr_Occurred()) SWIG_fail;
18112 {
18113 PyThreadState* __tstate = wxPyBeginAllowThreads();
18114 (arg1)->SetId(arg2);
18115
18116 wxPyEndAllowThreads(__tstate);
18117 if (PyErr_Occurred()) SWIG_fail;
18118 }
18119 Py_INCREF(Py_None); resultobj = Py_None;
18120 return resultobj;
18121 fail:
18122 return NULL;
18123 }
18124
18125
18126 static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
18127 PyObject *resultobj;
18128 wxListItem *arg1 = (wxListItem *) 0 ;
18129 int arg2 ;
18130 PyObject * obj0 = 0 ;
18131 PyObject * obj1 = 0 ;
18132 char *kwnames[] = {
18133 (char *) "self",(char *) "col", NULL
18134 };
18135
18136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
18137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18139 arg2 = (int) SWIG_AsInt(obj1);
18140 if (PyErr_Occurred()) SWIG_fail;
18141 {
18142 PyThreadState* __tstate = wxPyBeginAllowThreads();
18143 (arg1)->SetColumn(arg2);
18144
18145 wxPyEndAllowThreads(__tstate);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 }
18148 Py_INCREF(Py_None); resultobj = Py_None;
18149 return resultobj;
18150 fail:
18151 return NULL;
18152 }
18153
18154
18155 static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj;
18157 wxListItem *arg1 = (wxListItem *) 0 ;
18158 long arg2 ;
18159 PyObject * obj0 = 0 ;
18160 PyObject * obj1 = 0 ;
18161 char *kwnames[] = {
18162 (char *) "self",(char *) "state", NULL
18163 };
18164
18165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
18166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18168 arg2 = (long) SWIG_AsLong(obj1);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 {
18171 PyThreadState* __tstate = wxPyBeginAllowThreads();
18172 (arg1)->SetState(arg2);
18173
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 Py_INCREF(Py_None); resultobj = Py_None;
18178 return resultobj;
18179 fail:
18180 return NULL;
18181 }
18182
18183
18184 static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18185 PyObject *resultobj;
18186 wxListItem *arg1 = (wxListItem *) 0 ;
18187 long arg2 ;
18188 PyObject * obj0 = 0 ;
18189 PyObject * obj1 = 0 ;
18190 char *kwnames[] = {
18191 (char *) "self",(char *) "stateMask", NULL
18192 };
18193
18194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
18195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18197 arg2 = (long) SWIG_AsLong(obj1);
18198 if (PyErr_Occurred()) SWIG_fail;
18199 {
18200 PyThreadState* __tstate = wxPyBeginAllowThreads();
18201 (arg1)->SetStateMask(arg2);
18202
18203 wxPyEndAllowThreads(__tstate);
18204 if (PyErr_Occurred()) SWIG_fail;
18205 }
18206 Py_INCREF(Py_None); resultobj = Py_None;
18207 return resultobj;
18208 fail:
18209 return NULL;
18210 }
18211
18212
18213 static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18214 PyObject *resultobj;
18215 wxListItem *arg1 = (wxListItem *) 0 ;
18216 wxString *arg2 = 0 ;
18217 bool temp2 = False ;
18218 PyObject * obj0 = 0 ;
18219 PyObject * obj1 = 0 ;
18220 char *kwnames[] = {
18221 (char *) "self",(char *) "text", NULL
18222 };
18223
18224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
18225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18227 {
18228 arg2 = wxString_in_helper(obj1);
18229 if (arg2 == NULL) SWIG_fail;
18230 temp2 = True;
18231 }
18232 {
18233 PyThreadState* __tstate = wxPyBeginAllowThreads();
18234 (arg1)->SetText((wxString const &)*arg2);
18235
18236 wxPyEndAllowThreads(__tstate);
18237 if (PyErr_Occurred()) SWIG_fail;
18238 }
18239 Py_INCREF(Py_None); resultobj = Py_None;
18240 {
18241 if (temp2)
18242 delete arg2;
18243 }
18244 return resultobj;
18245 fail:
18246 {
18247 if (temp2)
18248 delete arg2;
18249 }
18250 return NULL;
18251 }
18252
18253
18254 static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
18255 PyObject *resultobj;
18256 wxListItem *arg1 = (wxListItem *) 0 ;
18257 int arg2 ;
18258 PyObject * obj0 = 0 ;
18259 PyObject * obj1 = 0 ;
18260 char *kwnames[] = {
18261 (char *) "self",(char *) "image", NULL
18262 };
18263
18264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
18265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18267 arg2 = (int) SWIG_AsInt(obj1);
18268 if (PyErr_Occurred()) SWIG_fail;
18269 {
18270 PyThreadState* __tstate = wxPyBeginAllowThreads();
18271 (arg1)->SetImage(arg2);
18272
18273 wxPyEndAllowThreads(__tstate);
18274 if (PyErr_Occurred()) SWIG_fail;
18275 }
18276 Py_INCREF(Py_None); resultobj = Py_None;
18277 return resultobj;
18278 fail:
18279 return NULL;
18280 }
18281
18282
18283 static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
18284 PyObject *resultobj;
18285 wxListItem *arg1 = (wxListItem *) 0 ;
18286 long arg2 ;
18287 PyObject * obj0 = 0 ;
18288 PyObject * obj1 = 0 ;
18289 char *kwnames[] = {
18290 (char *) "self",(char *) "data", NULL
18291 };
18292
18293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
18294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18296 arg2 = (long) SWIG_AsLong(obj1);
18297 if (PyErr_Occurred()) SWIG_fail;
18298 {
18299 PyThreadState* __tstate = wxPyBeginAllowThreads();
18300 (arg1)->SetData(arg2);
18301
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 Py_INCREF(Py_None); resultobj = Py_None;
18306 return resultobj;
18307 fail:
18308 return NULL;
18309 }
18310
18311
18312 static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj;
18314 wxListItem *arg1 = (wxListItem *) 0 ;
18315 int arg2 ;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 char *kwnames[] = {
18319 (char *) "self",(char *) "width", NULL
18320 };
18321
18322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
18323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18325 arg2 = (int) SWIG_AsInt(obj1);
18326 if (PyErr_Occurred()) SWIG_fail;
18327 {
18328 PyThreadState* __tstate = wxPyBeginAllowThreads();
18329 (arg1)->SetWidth(arg2);
18330
18331 wxPyEndAllowThreads(__tstate);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 Py_INCREF(Py_None); resultobj = Py_None;
18335 return resultobj;
18336 fail:
18337 return NULL;
18338 }
18339
18340
18341 static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
18342 PyObject *resultobj;
18343 wxListItem *arg1 = (wxListItem *) 0 ;
18344 int arg2 ;
18345 PyObject * obj0 = 0 ;
18346 PyObject * obj1 = 0 ;
18347 char *kwnames[] = {
18348 (char *) "self",(char *) "align", NULL
18349 };
18350
18351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
18352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18354 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
18355 if (PyErr_Occurred()) SWIG_fail;
18356 {
18357 PyThreadState* __tstate = wxPyBeginAllowThreads();
18358 (arg1)->SetAlign((wxListColumnFormat )arg2);
18359
18360 wxPyEndAllowThreads(__tstate);
18361 if (PyErr_Occurred()) SWIG_fail;
18362 }
18363 Py_INCREF(Py_None); resultobj = Py_None;
18364 return resultobj;
18365 fail:
18366 return NULL;
18367 }
18368
18369
18370 static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18371 PyObject *resultobj;
18372 wxListItem *arg1 = (wxListItem *) 0 ;
18373 wxColour *arg2 = 0 ;
18374 wxColour temp2 ;
18375 PyObject * obj0 = 0 ;
18376 PyObject * obj1 = 0 ;
18377 char *kwnames[] = {
18378 (char *) "self",(char *) "colText", NULL
18379 };
18380
18381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18384 {
18385 arg2 = &temp2;
18386 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18387 }
18388 {
18389 PyThreadState* __tstate = wxPyBeginAllowThreads();
18390 (arg1)->SetTextColour((wxColour const &)*arg2);
18391
18392 wxPyEndAllowThreads(__tstate);
18393 if (PyErr_Occurred()) SWIG_fail;
18394 }
18395 Py_INCREF(Py_None); resultobj = Py_None;
18396 return resultobj;
18397 fail:
18398 return NULL;
18399 }
18400
18401
18402 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18403 PyObject *resultobj;
18404 wxListItem *arg1 = (wxListItem *) 0 ;
18405 wxColour *arg2 = 0 ;
18406 wxColour temp2 ;
18407 PyObject * obj0 = 0 ;
18408 PyObject * obj1 = 0 ;
18409 char *kwnames[] = {
18410 (char *) "self",(char *) "colBack", NULL
18411 };
18412
18413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18416 {
18417 arg2 = &temp2;
18418 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18419 }
18420 {
18421 PyThreadState* __tstate = wxPyBeginAllowThreads();
18422 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18423
18424 wxPyEndAllowThreads(__tstate);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 Py_INCREF(Py_None); resultobj = Py_None;
18428 return resultobj;
18429 fail:
18430 return NULL;
18431 }
18432
18433
18434 static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18435 PyObject *resultobj;
18436 wxListItem *arg1 = (wxListItem *) 0 ;
18437 wxFont *arg2 = 0 ;
18438 PyObject * obj0 = 0 ;
18439 PyObject * obj1 = 0 ;
18440 char *kwnames[] = {
18441 (char *) "self",(char *) "font", NULL
18442 };
18443
18444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
18445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18447 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18448 SWIG_POINTER_EXCEPTION | 0)) == -1)
18449 SWIG_fail;
18450 if (arg2 == NULL) {
18451 PyErr_SetString(PyExc_TypeError,"null reference");
18452 SWIG_fail;
18453 }
18454 {
18455 PyThreadState* __tstate = wxPyBeginAllowThreads();
18456 (arg1)->SetFont((wxFont const &)*arg2);
18457
18458 wxPyEndAllowThreads(__tstate);
18459 if (PyErr_Occurred()) SWIG_fail;
18460 }
18461 Py_INCREF(Py_None); resultobj = Py_None;
18462 return resultobj;
18463 fail:
18464 return NULL;
18465 }
18466
18467
18468 static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18469 PyObject *resultobj;
18470 wxListItem *arg1 = (wxListItem *) 0 ;
18471 long result;
18472 PyObject * obj0 = 0 ;
18473 char *kwnames[] = {
18474 (char *) "self", NULL
18475 };
18476
18477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
18478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 result = (long)(arg1)->GetMask();
18483
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 resultobj = SWIG_FromLong((long)result);
18488 return resultobj;
18489 fail:
18490 return NULL;
18491 }
18492
18493
18494 static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18495 PyObject *resultobj;
18496 wxListItem *arg1 = (wxListItem *) 0 ;
18497 long result;
18498 PyObject * obj0 = 0 ;
18499 char *kwnames[] = {
18500 (char *) "self", NULL
18501 };
18502
18503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
18504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18506 {
18507 PyThreadState* __tstate = wxPyBeginAllowThreads();
18508 result = (long)(arg1)->GetId();
18509
18510 wxPyEndAllowThreads(__tstate);
18511 if (PyErr_Occurred()) SWIG_fail;
18512 }
18513 resultobj = SWIG_FromLong((long)result);
18514 return resultobj;
18515 fail:
18516 return NULL;
18517 }
18518
18519
18520 static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
18521 PyObject *resultobj;
18522 wxListItem *arg1 = (wxListItem *) 0 ;
18523 int result;
18524 PyObject * obj0 = 0 ;
18525 char *kwnames[] = {
18526 (char *) "self", NULL
18527 };
18528
18529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
18530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18532 {
18533 PyThreadState* __tstate = wxPyBeginAllowThreads();
18534 result = (int)(arg1)->GetColumn();
18535
18536 wxPyEndAllowThreads(__tstate);
18537 if (PyErr_Occurred()) SWIG_fail;
18538 }
18539 resultobj = SWIG_FromInt((int)result);
18540 return resultobj;
18541 fail:
18542 return NULL;
18543 }
18544
18545
18546 static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
18547 PyObject *resultobj;
18548 wxListItem *arg1 = (wxListItem *) 0 ;
18549 long result;
18550 PyObject * obj0 = 0 ;
18551 char *kwnames[] = {
18552 (char *) "self", NULL
18553 };
18554
18555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
18556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18558 {
18559 PyThreadState* __tstate = wxPyBeginAllowThreads();
18560 result = (long)(arg1)->GetState();
18561
18562 wxPyEndAllowThreads(__tstate);
18563 if (PyErr_Occurred()) SWIG_fail;
18564 }
18565 resultobj = SWIG_FromLong((long)result);
18566 return resultobj;
18567 fail:
18568 return NULL;
18569 }
18570
18571
18572 static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18573 PyObject *resultobj;
18574 wxListItem *arg1 = (wxListItem *) 0 ;
18575 wxString *result;
18576 PyObject * obj0 = 0 ;
18577 char *kwnames[] = {
18578 (char *) "self", NULL
18579 };
18580
18581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
18582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18584 {
18585 PyThreadState* __tstate = wxPyBeginAllowThreads();
18586 {
18587 wxString const &_result_ref = (arg1)->GetText();
18588 result = (wxString *) &_result_ref;
18589 }
18590
18591 wxPyEndAllowThreads(__tstate);
18592 if (PyErr_Occurred()) SWIG_fail;
18593 }
18594 {
18595 #if wxUSE_UNICODE
18596 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18597 #else
18598 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18599 #endif
18600 }
18601 return resultobj;
18602 fail:
18603 return NULL;
18604 }
18605
18606
18607 static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
18608 PyObject *resultobj;
18609 wxListItem *arg1 = (wxListItem *) 0 ;
18610 int result;
18611 PyObject * obj0 = 0 ;
18612 char *kwnames[] = {
18613 (char *) "self", NULL
18614 };
18615
18616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
18617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18619 {
18620 PyThreadState* __tstate = wxPyBeginAllowThreads();
18621 result = (int)(arg1)->GetImage();
18622
18623 wxPyEndAllowThreads(__tstate);
18624 if (PyErr_Occurred()) SWIG_fail;
18625 }
18626 resultobj = SWIG_FromInt((int)result);
18627 return resultobj;
18628 fail:
18629 return NULL;
18630 }
18631
18632
18633 static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
18634 PyObject *resultobj;
18635 wxListItem *arg1 = (wxListItem *) 0 ;
18636 long result;
18637 PyObject * obj0 = 0 ;
18638 char *kwnames[] = {
18639 (char *) "self", NULL
18640 };
18641
18642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
18643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18645 {
18646 PyThreadState* __tstate = wxPyBeginAllowThreads();
18647 result = (long)(arg1)->GetData();
18648
18649 wxPyEndAllowThreads(__tstate);
18650 if (PyErr_Occurred()) SWIG_fail;
18651 }
18652 resultobj = SWIG_FromLong((long)result);
18653 return resultobj;
18654 fail:
18655 return NULL;
18656 }
18657
18658
18659 static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
18660 PyObject *resultobj;
18661 wxListItem *arg1 = (wxListItem *) 0 ;
18662 int result;
18663 PyObject * obj0 = 0 ;
18664 char *kwnames[] = {
18665 (char *) "self", NULL
18666 };
18667
18668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
18669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18671 {
18672 PyThreadState* __tstate = wxPyBeginAllowThreads();
18673 result = (int)(arg1)->GetWidth();
18674
18675 wxPyEndAllowThreads(__tstate);
18676 if (PyErr_Occurred()) SWIG_fail;
18677 }
18678 resultobj = SWIG_FromInt((int)result);
18679 return resultobj;
18680 fail:
18681 return NULL;
18682 }
18683
18684
18685 static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
18686 PyObject *resultobj;
18687 wxListItem *arg1 = (wxListItem *) 0 ;
18688 int result;
18689 PyObject * obj0 = 0 ;
18690 char *kwnames[] = {
18691 (char *) "self", NULL
18692 };
18693
18694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
18695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18697 {
18698 PyThreadState* __tstate = wxPyBeginAllowThreads();
18699 result = (int)(arg1)->GetAlign();
18700
18701 wxPyEndAllowThreads(__tstate);
18702 if (PyErr_Occurred()) SWIG_fail;
18703 }
18704 resultobj = SWIG_FromInt((int)result);
18705 return resultobj;
18706 fail:
18707 return NULL;
18708 }
18709
18710
18711 static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18712 PyObject *resultobj;
18713 wxListItem *arg1 = (wxListItem *) 0 ;
18714 wxListItemAttr *result;
18715 PyObject * obj0 = 0 ;
18716 char *kwnames[] = {
18717 (char *) "self", NULL
18718 };
18719
18720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
18721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18723 {
18724 PyThreadState* __tstate = wxPyBeginAllowThreads();
18725 result = (wxListItemAttr *)(arg1)->GetAttributes();
18726
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
18731 return resultobj;
18732 fail:
18733 return NULL;
18734 }
18735
18736
18737 static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18738 PyObject *resultobj;
18739 wxListItem *arg1 = (wxListItem *) 0 ;
18740 bool result;
18741 PyObject * obj0 = 0 ;
18742 char *kwnames[] = {
18743 (char *) "self", NULL
18744 };
18745
18746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
18747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18749 {
18750 PyThreadState* __tstate = wxPyBeginAllowThreads();
18751 result = (bool)(arg1)->HasAttributes();
18752
18753 wxPyEndAllowThreads(__tstate);
18754 if (PyErr_Occurred()) SWIG_fail;
18755 }
18756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18757 return resultobj;
18758 fail:
18759 return NULL;
18760 }
18761
18762
18763 static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18764 PyObject *resultobj;
18765 wxListItem *arg1 = (wxListItem *) 0 ;
18766 wxColour result;
18767 PyObject * obj0 = 0 ;
18768 char *kwnames[] = {
18769 (char *) "self", NULL
18770 };
18771
18772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
18773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18775 {
18776 PyThreadState* __tstate = wxPyBeginAllowThreads();
18777 result = ((wxListItem const *)arg1)->GetTextColour();
18778
18779 wxPyEndAllowThreads(__tstate);
18780 if (PyErr_Occurred()) SWIG_fail;
18781 }
18782 {
18783 wxColour * resultptr;
18784 resultptr = new wxColour((wxColour &) result);
18785 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18786 }
18787 return resultobj;
18788 fail:
18789 return NULL;
18790 }
18791
18792
18793 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18794 PyObject *resultobj;
18795 wxListItem *arg1 = (wxListItem *) 0 ;
18796 wxColour result;
18797 PyObject * obj0 = 0 ;
18798 char *kwnames[] = {
18799 (char *) "self", NULL
18800 };
18801
18802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
18803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18805 {
18806 PyThreadState* __tstate = wxPyBeginAllowThreads();
18807 result = ((wxListItem const *)arg1)->GetBackgroundColour();
18808
18809 wxPyEndAllowThreads(__tstate);
18810 if (PyErr_Occurred()) SWIG_fail;
18811 }
18812 {
18813 wxColour * resultptr;
18814 resultptr = new wxColour((wxColour &) result);
18815 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18816 }
18817 return resultobj;
18818 fail:
18819 return NULL;
18820 }
18821
18822
18823 static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18824 PyObject *resultobj;
18825 wxListItem *arg1 = (wxListItem *) 0 ;
18826 wxFont result;
18827 PyObject * obj0 = 0 ;
18828 char *kwnames[] = {
18829 (char *) "self", NULL
18830 };
18831
18832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
18833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18835 {
18836 PyThreadState* __tstate = wxPyBeginAllowThreads();
18837 result = ((wxListItem const *)arg1)->GetFont();
18838
18839 wxPyEndAllowThreads(__tstate);
18840 if (PyErr_Occurred()) SWIG_fail;
18841 }
18842 {
18843 wxFont * resultptr;
18844 resultptr = new wxFont((wxFont &) result);
18845 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18846 }
18847 return resultobj;
18848 fail:
18849 return NULL;
18850 }
18851
18852
18853 static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18854 PyObject *resultobj;
18855 wxListItem *arg1 = (wxListItem *) 0 ;
18856 long arg2 ;
18857 PyObject * obj0 = 0 ;
18858 PyObject * obj1 = 0 ;
18859 char *kwnames[] = {
18860 (char *) "self",(char *) "m_mask", NULL
18861 };
18862
18863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
18864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18866 arg2 = (long) SWIG_AsLong(obj1);
18867 if (PyErr_Occurred()) SWIG_fail;
18868 if (arg1) (arg1)->m_mask = arg2;
18869
18870 Py_INCREF(Py_None); resultobj = Py_None;
18871 return resultobj;
18872 fail:
18873 return NULL;
18874 }
18875
18876
18877 static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18878 PyObject *resultobj;
18879 wxListItem *arg1 = (wxListItem *) 0 ;
18880 long result;
18881 PyObject * obj0 = 0 ;
18882 char *kwnames[] = {
18883 (char *) "self", NULL
18884 };
18885
18886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
18887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18889 result = (long) ((arg1)->m_mask);
18890
18891 resultobj = SWIG_FromLong((long)result);
18892 return resultobj;
18893 fail:
18894 return NULL;
18895 }
18896
18897
18898 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18899 PyObject *resultobj;
18900 wxListItem *arg1 = (wxListItem *) 0 ;
18901 long arg2 ;
18902 PyObject * obj0 = 0 ;
18903 PyObject * obj1 = 0 ;
18904 char *kwnames[] = {
18905 (char *) "self",(char *) "m_itemId", NULL
18906 };
18907
18908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
18909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18911 arg2 = (long) SWIG_AsLong(obj1);
18912 if (PyErr_Occurred()) SWIG_fail;
18913 if (arg1) (arg1)->m_itemId = arg2;
18914
18915 Py_INCREF(Py_None); resultobj = Py_None;
18916 return resultobj;
18917 fail:
18918 return NULL;
18919 }
18920
18921
18922 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18923 PyObject *resultobj;
18924 wxListItem *arg1 = (wxListItem *) 0 ;
18925 long result;
18926 PyObject * obj0 = 0 ;
18927 char *kwnames[] = {
18928 (char *) "self", NULL
18929 };
18930
18931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
18932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18934 result = (long) ((arg1)->m_itemId);
18935
18936 resultobj = SWIG_FromLong((long)result);
18937 return resultobj;
18938 fail:
18939 return NULL;
18940 }
18941
18942
18943 static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18944 PyObject *resultobj;
18945 wxListItem *arg1 = (wxListItem *) 0 ;
18946 int arg2 ;
18947 PyObject * obj0 = 0 ;
18948 PyObject * obj1 = 0 ;
18949 char *kwnames[] = {
18950 (char *) "self",(char *) "m_col", NULL
18951 };
18952
18953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
18954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18956 arg2 = (int) SWIG_AsInt(obj1);
18957 if (PyErr_Occurred()) SWIG_fail;
18958 if (arg1) (arg1)->m_col = arg2;
18959
18960 Py_INCREF(Py_None); resultobj = Py_None;
18961 return resultobj;
18962 fail:
18963 return NULL;
18964 }
18965
18966
18967 static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18968 PyObject *resultobj;
18969 wxListItem *arg1 = (wxListItem *) 0 ;
18970 int result;
18971 PyObject * obj0 = 0 ;
18972 char *kwnames[] = {
18973 (char *) "self", NULL
18974 };
18975
18976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
18977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18979 result = (int) ((arg1)->m_col);
18980
18981 resultobj = SWIG_FromInt((int)result);
18982 return resultobj;
18983 fail:
18984 return NULL;
18985 }
18986
18987
18988 static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18989 PyObject *resultobj;
18990 wxListItem *arg1 = (wxListItem *) 0 ;
18991 long arg2 ;
18992 PyObject * obj0 = 0 ;
18993 PyObject * obj1 = 0 ;
18994 char *kwnames[] = {
18995 (char *) "self",(char *) "m_state", NULL
18996 };
18997
18998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
18999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19001 arg2 = (long) SWIG_AsLong(obj1);
19002 if (PyErr_Occurred()) SWIG_fail;
19003 if (arg1) (arg1)->m_state = arg2;
19004
19005 Py_INCREF(Py_None); resultobj = Py_None;
19006 return resultobj;
19007 fail:
19008 return NULL;
19009 }
19010
19011
19012 static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19013 PyObject *resultobj;
19014 wxListItem *arg1 = (wxListItem *) 0 ;
19015 long result;
19016 PyObject * obj0 = 0 ;
19017 char *kwnames[] = {
19018 (char *) "self", NULL
19019 };
19020
19021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
19022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19024 result = (long) ((arg1)->m_state);
19025
19026 resultobj = SWIG_FromLong((long)result);
19027 return resultobj;
19028 fail:
19029 return NULL;
19030 }
19031
19032
19033 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19034 PyObject *resultobj;
19035 wxListItem *arg1 = (wxListItem *) 0 ;
19036 long arg2 ;
19037 PyObject * obj0 = 0 ;
19038 PyObject * obj1 = 0 ;
19039 char *kwnames[] = {
19040 (char *) "self",(char *) "m_stateMask", NULL
19041 };
19042
19043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
19044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19046 arg2 = (long) SWIG_AsLong(obj1);
19047 if (PyErr_Occurred()) SWIG_fail;
19048 if (arg1) (arg1)->m_stateMask = arg2;
19049
19050 Py_INCREF(Py_None); resultobj = Py_None;
19051 return resultobj;
19052 fail:
19053 return NULL;
19054 }
19055
19056
19057 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19058 PyObject *resultobj;
19059 wxListItem *arg1 = (wxListItem *) 0 ;
19060 long result;
19061 PyObject * obj0 = 0 ;
19062 char *kwnames[] = {
19063 (char *) "self", NULL
19064 };
19065
19066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
19067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19069 result = (long) ((arg1)->m_stateMask);
19070
19071 resultobj = SWIG_FromLong((long)result);
19072 return resultobj;
19073 fail:
19074 return NULL;
19075 }
19076
19077
19078 static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19079 PyObject *resultobj;
19080 wxListItem *arg1 = (wxListItem *) 0 ;
19081 wxString *arg2 = (wxString *) 0 ;
19082 bool temp2 = False ;
19083 PyObject * obj0 = 0 ;
19084 PyObject * obj1 = 0 ;
19085 char *kwnames[] = {
19086 (char *) "self",(char *) "m_text", NULL
19087 };
19088
19089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
19090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19092 {
19093 arg2 = wxString_in_helper(obj1);
19094 if (arg2 == NULL) SWIG_fail;
19095 temp2 = True;
19096 }
19097 if (arg1) (arg1)->m_text = *arg2;
19098
19099 Py_INCREF(Py_None); resultobj = Py_None;
19100 {
19101 if (temp2)
19102 delete arg2;
19103 }
19104 return resultobj;
19105 fail:
19106 {
19107 if (temp2)
19108 delete arg2;
19109 }
19110 return NULL;
19111 }
19112
19113
19114 static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19115 PyObject *resultobj;
19116 wxListItem *arg1 = (wxListItem *) 0 ;
19117 wxString *result;
19118 PyObject * obj0 = 0 ;
19119 char *kwnames[] = {
19120 (char *) "self", NULL
19121 };
19122
19123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
19124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19126 result = (wxString *)& ((arg1)->m_text);
19127
19128 {
19129 #if wxUSE_UNICODE
19130 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19131 #else
19132 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19133 #endif
19134 }
19135 return resultobj;
19136 fail:
19137 return NULL;
19138 }
19139
19140
19141 static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19142 PyObject *resultobj;
19143 wxListItem *arg1 = (wxListItem *) 0 ;
19144 int arg2 ;
19145 PyObject * obj0 = 0 ;
19146 PyObject * obj1 = 0 ;
19147 char *kwnames[] = {
19148 (char *) "self",(char *) "m_image", NULL
19149 };
19150
19151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
19152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19154 arg2 = (int) SWIG_AsInt(obj1);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 if (arg1) (arg1)->m_image = arg2;
19157
19158 Py_INCREF(Py_None); resultobj = Py_None;
19159 return resultobj;
19160 fail:
19161 return NULL;
19162 }
19163
19164
19165 static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19166 PyObject *resultobj;
19167 wxListItem *arg1 = (wxListItem *) 0 ;
19168 int result;
19169 PyObject * obj0 = 0 ;
19170 char *kwnames[] = {
19171 (char *) "self", NULL
19172 };
19173
19174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
19175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19177 result = (int) ((arg1)->m_image);
19178
19179 resultobj = SWIG_FromInt((int)result);
19180 return resultobj;
19181 fail:
19182 return NULL;
19183 }
19184
19185
19186 static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19187 PyObject *resultobj;
19188 wxListItem *arg1 = (wxListItem *) 0 ;
19189 long arg2 ;
19190 PyObject * obj0 = 0 ;
19191 PyObject * obj1 = 0 ;
19192 char *kwnames[] = {
19193 (char *) "self",(char *) "m_data", NULL
19194 };
19195
19196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
19197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19199 arg2 = (long) SWIG_AsLong(obj1);
19200 if (PyErr_Occurred()) SWIG_fail;
19201 if (arg1) (arg1)->m_data = arg2;
19202
19203 Py_INCREF(Py_None); resultobj = Py_None;
19204 return resultobj;
19205 fail:
19206 return NULL;
19207 }
19208
19209
19210 static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19211 PyObject *resultobj;
19212 wxListItem *arg1 = (wxListItem *) 0 ;
19213 long result;
19214 PyObject * obj0 = 0 ;
19215 char *kwnames[] = {
19216 (char *) "self", NULL
19217 };
19218
19219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
19220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19222 result = (long) ((arg1)->m_data);
19223
19224 resultobj = SWIG_FromLong((long)result);
19225 return resultobj;
19226 fail:
19227 return NULL;
19228 }
19229
19230
19231 static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19232 PyObject *resultobj;
19233 wxListItem *arg1 = (wxListItem *) 0 ;
19234 int arg2 ;
19235 PyObject * obj0 = 0 ;
19236 PyObject * obj1 = 0 ;
19237 char *kwnames[] = {
19238 (char *) "self",(char *) "m_format", NULL
19239 };
19240
19241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
19242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19244 arg2 = (int) SWIG_AsInt(obj1);
19245 if (PyErr_Occurred()) SWIG_fail;
19246 if (arg1) (arg1)->m_format = arg2;
19247
19248 Py_INCREF(Py_None); resultobj = Py_None;
19249 return resultobj;
19250 fail:
19251 return NULL;
19252 }
19253
19254
19255 static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj;
19257 wxListItem *arg1 = (wxListItem *) 0 ;
19258 int result;
19259 PyObject * obj0 = 0 ;
19260 char *kwnames[] = {
19261 (char *) "self", NULL
19262 };
19263
19264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
19265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19267 result = (int) ((arg1)->m_format);
19268
19269 resultobj = SWIG_FromInt((int)result);
19270 return resultobj;
19271 fail:
19272 return NULL;
19273 }
19274
19275
19276 static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19277 PyObject *resultobj;
19278 wxListItem *arg1 = (wxListItem *) 0 ;
19279 int arg2 ;
19280 PyObject * obj0 = 0 ;
19281 PyObject * obj1 = 0 ;
19282 char *kwnames[] = {
19283 (char *) "self",(char *) "m_width", NULL
19284 };
19285
19286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
19287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19289 arg2 = (int) SWIG_AsInt(obj1);
19290 if (PyErr_Occurred()) SWIG_fail;
19291 if (arg1) (arg1)->m_width = arg2;
19292
19293 Py_INCREF(Py_None); resultobj = Py_None;
19294 return resultobj;
19295 fail:
19296 return NULL;
19297 }
19298
19299
19300 static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19301 PyObject *resultobj;
19302 wxListItem *arg1 = (wxListItem *) 0 ;
19303 int result;
19304 PyObject * obj0 = 0 ;
19305 char *kwnames[] = {
19306 (char *) "self", NULL
19307 };
19308
19309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
19310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19312 result = (int) ((arg1)->m_width);
19313
19314 resultobj = SWIG_FromInt((int)result);
19315 return resultobj;
19316 fail:
19317 return NULL;
19318 }
19319
19320
19321 static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
19322 PyObject *obj;
19323 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19324 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
19325 Py_INCREF(obj);
19326 return Py_BuildValue((char *)"");
19327 }
19328 static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19329 PyObject *resultobj;
19330 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19331 int arg2 = (int) 0 ;
19332 wxListEvent *result;
19333 PyObject * obj0 = 0 ;
19334 PyObject * obj1 = 0 ;
19335 char *kwnames[] = {
19336 (char *) "commandType",(char *) "id", NULL
19337 };
19338
19339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
19340 if (obj0) {
19341 arg1 = (wxEventType) SWIG_AsInt(obj0);
19342 if (PyErr_Occurred()) SWIG_fail;
19343 }
19344 if (obj1) {
19345 arg2 = (int) SWIG_AsInt(obj1);
19346 if (PyErr_Occurred()) SWIG_fail;
19347 }
19348 {
19349 PyThreadState* __tstate = wxPyBeginAllowThreads();
19350 result = (wxListEvent *)new wxListEvent(arg1,arg2);
19351
19352 wxPyEndAllowThreads(__tstate);
19353 if (PyErr_Occurred()) SWIG_fail;
19354 }
19355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
19356 return resultobj;
19357 fail:
19358 return NULL;
19359 }
19360
19361
19362 static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19363 PyObject *resultobj;
19364 wxListEvent *arg1 = (wxListEvent *) 0 ;
19365 int arg2 ;
19366 PyObject * obj0 = 0 ;
19367 PyObject * obj1 = 0 ;
19368 char *kwnames[] = {
19369 (char *) "self",(char *) "m_code", NULL
19370 };
19371
19372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
19373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19375 arg2 = (int) SWIG_AsInt(obj1);
19376 if (PyErr_Occurred()) SWIG_fail;
19377 if (arg1) (arg1)->m_code = arg2;
19378
19379 Py_INCREF(Py_None); resultobj = Py_None;
19380 return resultobj;
19381 fail:
19382 return NULL;
19383 }
19384
19385
19386 static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19387 PyObject *resultobj;
19388 wxListEvent *arg1 = (wxListEvent *) 0 ;
19389 int result;
19390 PyObject * obj0 = 0 ;
19391 char *kwnames[] = {
19392 (char *) "self", NULL
19393 };
19394
19395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
19396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19398 result = (int) ((arg1)->m_code);
19399
19400 resultobj = SWIG_FromInt((int)result);
19401 return resultobj;
19402 fail:
19403 return NULL;
19404 }
19405
19406
19407 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19408 PyObject *resultobj;
19409 wxListEvent *arg1 = (wxListEvent *) 0 ;
19410 long arg2 ;
19411 PyObject * obj0 = 0 ;
19412 PyObject * obj1 = 0 ;
19413 char *kwnames[] = {
19414 (char *) "self",(char *) "m_oldItemIndex", NULL
19415 };
19416
19417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19420 arg2 = (long) SWIG_AsLong(obj1);
19421 if (PyErr_Occurred()) SWIG_fail;
19422 if (arg1) (arg1)->m_oldItemIndex = arg2;
19423
19424 Py_INCREF(Py_None); resultobj = Py_None;
19425 return resultobj;
19426 fail:
19427 return NULL;
19428 }
19429
19430
19431 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19432 PyObject *resultobj;
19433 wxListEvent *arg1 = (wxListEvent *) 0 ;
19434 long result;
19435 PyObject * obj0 = 0 ;
19436 char *kwnames[] = {
19437 (char *) "self", NULL
19438 };
19439
19440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
19441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19443 result = (long) ((arg1)->m_oldItemIndex);
19444
19445 resultobj = SWIG_FromLong((long)result);
19446 return resultobj;
19447 fail:
19448 return NULL;
19449 }
19450
19451
19452 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19453 PyObject *resultobj;
19454 wxListEvent *arg1 = (wxListEvent *) 0 ;
19455 long arg2 ;
19456 PyObject * obj0 = 0 ;
19457 PyObject * obj1 = 0 ;
19458 char *kwnames[] = {
19459 (char *) "self",(char *) "m_itemIndex", NULL
19460 };
19461
19462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19465 arg2 = (long) SWIG_AsLong(obj1);
19466 if (PyErr_Occurred()) SWIG_fail;
19467 if (arg1) (arg1)->m_itemIndex = arg2;
19468
19469 Py_INCREF(Py_None); resultobj = Py_None;
19470 return resultobj;
19471 fail:
19472 return NULL;
19473 }
19474
19475
19476 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19477 PyObject *resultobj;
19478 wxListEvent *arg1 = (wxListEvent *) 0 ;
19479 long result;
19480 PyObject * obj0 = 0 ;
19481 char *kwnames[] = {
19482 (char *) "self", NULL
19483 };
19484
19485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
19486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19488 result = (long) ((arg1)->m_itemIndex);
19489
19490 resultobj = SWIG_FromLong((long)result);
19491 return resultobj;
19492 fail:
19493 return NULL;
19494 }
19495
19496
19497 static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19498 PyObject *resultobj;
19499 wxListEvent *arg1 = (wxListEvent *) 0 ;
19500 int arg2 ;
19501 PyObject * obj0 = 0 ;
19502 PyObject * obj1 = 0 ;
19503 char *kwnames[] = {
19504 (char *) "self",(char *) "m_col", NULL
19505 };
19506
19507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19510 arg2 = (int) SWIG_AsInt(obj1);
19511 if (PyErr_Occurred()) SWIG_fail;
19512 if (arg1) (arg1)->m_col = arg2;
19513
19514 Py_INCREF(Py_None); resultobj = Py_None;
19515 return resultobj;
19516 fail:
19517 return NULL;
19518 }
19519
19520
19521 static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19522 PyObject *resultobj;
19523 wxListEvent *arg1 = (wxListEvent *) 0 ;
19524 int result;
19525 PyObject * obj0 = 0 ;
19526 char *kwnames[] = {
19527 (char *) "self", NULL
19528 };
19529
19530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
19531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19533 result = (int) ((arg1)->m_col);
19534
19535 resultobj = SWIG_FromInt((int)result);
19536 return resultobj;
19537 fail:
19538 return NULL;
19539 }
19540
19541
19542 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19543 PyObject *resultobj;
19544 wxListEvent *arg1 = (wxListEvent *) 0 ;
19545 wxPoint *arg2 = (wxPoint *) 0 ;
19546 PyObject * obj0 = 0 ;
19547 PyObject * obj1 = 0 ;
19548 char *kwnames[] = {
19549 (char *) "self",(char *) "m_pointDrag", NULL
19550 };
19551
19552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
19553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19555 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
19556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19557 if (arg1) (arg1)->m_pointDrag = *arg2;
19558
19559 Py_INCREF(Py_None); resultobj = Py_None;
19560 return resultobj;
19561 fail:
19562 return NULL;
19563 }
19564
19565
19566 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19567 PyObject *resultobj;
19568 wxListEvent *arg1 = (wxListEvent *) 0 ;
19569 wxPoint *result;
19570 PyObject * obj0 = 0 ;
19571 char *kwnames[] = {
19572 (char *) "self", NULL
19573 };
19574
19575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
19576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19578 result = (wxPoint *)& ((arg1)->m_pointDrag);
19579
19580 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
19581 return resultobj;
19582 fail:
19583 return NULL;
19584 }
19585
19586
19587 static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19588 PyObject *resultobj;
19589 wxListEvent *arg1 = (wxListEvent *) 0 ;
19590 wxListItem *result;
19591 PyObject * obj0 = 0 ;
19592 char *kwnames[] = {
19593 (char *) "self", NULL
19594 };
19595
19596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
19597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19599 result = (wxListItem *)& ((arg1)->m_item);
19600
19601 {
19602 resultobj = wxPyMake_wxObject(result);
19603 }
19604 return resultobj;
19605 fail:
19606 return NULL;
19607 }
19608
19609
19610 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
19611 PyObject *resultobj;
19612 wxListEvent *arg1 = (wxListEvent *) 0 ;
19613 int result;
19614 PyObject * obj0 = 0 ;
19615 char *kwnames[] = {
19616 (char *) "self", NULL
19617 };
19618
19619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
19620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19622 {
19623 PyThreadState* __tstate = wxPyBeginAllowThreads();
19624 result = (int)(arg1)->GetKeyCode();
19625
19626 wxPyEndAllowThreads(__tstate);
19627 if (PyErr_Occurred()) SWIG_fail;
19628 }
19629 resultobj = SWIG_FromInt((int)result);
19630 return resultobj;
19631 fail:
19632 return NULL;
19633 }
19634
19635
19636 static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
19637 PyObject *resultobj;
19638 wxListEvent *arg1 = (wxListEvent *) 0 ;
19639 long result;
19640 PyObject * obj0 = 0 ;
19641 char *kwnames[] = {
19642 (char *) "self", NULL
19643 };
19644
19645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
19646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19648 {
19649 PyThreadState* __tstate = wxPyBeginAllowThreads();
19650 result = (long)(arg1)->GetIndex();
19651
19652 wxPyEndAllowThreads(__tstate);
19653 if (PyErr_Occurred()) SWIG_fail;
19654 }
19655 resultobj = SWIG_FromLong((long)result);
19656 return resultobj;
19657 fail:
19658 return NULL;
19659 }
19660
19661
19662 static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19663 PyObject *resultobj;
19664 wxListEvent *arg1 = (wxListEvent *) 0 ;
19665 int result;
19666 PyObject * obj0 = 0 ;
19667 char *kwnames[] = {
19668 (char *) "self", NULL
19669 };
19670
19671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
19672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19674 {
19675 PyThreadState* __tstate = wxPyBeginAllowThreads();
19676 result = (int)(arg1)->GetColumn();
19677
19678 wxPyEndAllowThreads(__tstate);
19679 if (PyErr_Occurred()) SWIG_fail;
19680 }
19681 resultobj = SWIG_FromInt((int)result);
19682 return resultobj;
19683 fail:
19684 return NULL;
19685 }
19686
19687
19688 static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
19689 PyObject *resultobj;
19690 wxListEvent *arg1 = (wxListEvent *) 0 ;
19691 wxPoint result;
19692 PyObject * obj0 = 0 ;
19693 char *kwnames[] = {
19694 (char *) "self", NULL
19695 };
19696
19697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
19698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19700 {
19701 PyThreadState* __tstate = wxPyBeginAllowThreads();
19702 result = (arg1)->GetPoint();
19703
19704 wxPyEndAllowThreads(__tstate);
19705 if (PyErr_Occurred()) SWIG_fail;
19706 }
19707 {
19708 wxPoint * resultptr;
19709 resultptr = new wxPoint((wxPoint &) result);
19710 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
19711 }
19712 return resultobj;
19713 fail:
19714 return NULL;
19715 }
19716
19717
19718 static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
19719 PyObject *resultobj;
19720 wxListEvent *arg1 = (wxListEvent *) 0 ;
19721 wxString *result;
19722 PyObject * obj0 = 0 ;
19723 char *kwnames[] = {
19724 (char *) "self", NULL
19725 };
19726
19727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
19728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19730 {
19731 PyThreadState* __tstate = wxPyBeginAllowThreads();
19732 {
19733 wxString const &_result_ref = (arg1)->GetLabel();
19734 result = (wxString *) &_result_ref;
19735 }
19736
19737 wxPyEndAllowThreads(__tstate);
19738 if (PyErr_Occurred()) SWIG_fail;
19739 }
19740 {
19741 #if wxUSE_UNICODE
19742 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19743 #else
19744 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19745 #endif
19746 }
19747 return resultobj;
19748 fail:
19749 return NULL;
19750 }
19751
19752
19753 static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj;
19755 wxListEvent *arg1 = (wxListEvent *) 0 ;
19756 wxString *result;
19757 PyObject * obj0 = 0 ;
19758 char *kwnames[] = {
19759 (char *) "self", NULL
19760 };
19761
19762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
19763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19765 {
19766 PyThreadState* __tstate = wxPyBeginAllowThreads();
19767 {
19768 wxString const &_result_ref = (arg1)->GetText();
19769 result = (wxString *) &_result_ref;
19770 }
19771
19772 wxPyEndAllowThreads(__tstate);
19773 if (PyErr_Occurred()) SWIG_fail;
19774 }
19775 {
19776 #if wxUSE_UNICODE
19777 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19778 #else
19779 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19780 #endif
19781 }
19782 return resultobj;
19783 fail:
19784 return NULL;
19785 }
19786
19787
19788 static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19789 PyObject *resultobj;
19790 wxListEvent *arg1 = (wxListEvent *) 0 ;
19791 int result;
19792 PyObject * obj0 = 0 ;
19793 char *kwnames[] = {
19794 (char *) "self", NULL
19795 };
19796
19797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
19798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19800 {
19801 PyThreadState* __tstate = wxPyBeginAllowThreads();
19802 result = (int)(arg1)->GetImage();
19803
19804 wxPyEndAllowThreads(__tstate);
19805 if (PyErr_Occurred()) SWIG_fail;
19806 }
19807 resultobj = SWIG_FromInt((int)result);
19808 return resultobj;
19809 fail:
19810 return NULL;
19811 }
19812
19813
19814 static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19815 PyObject *resultobj;
19816 wxListEvent *arg1 = (wxListEvent *) 0 ;
19817 long result;
19818 PyObject * obj0 = 0 ;
19819 char *kwnames[] = {
19820 (char *) "self", NULL
19821 };
19822
19823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
19824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19826 {
19827 PyThreadState* __tstate = wxPyBeginAllowThreads();
19828 result = (long)(arg1)->GetData();
19829
19830 wxPyEndAllowThreads(__tstate);
19831 if (PyErr_Occurred()) SWIG_fail;
19832 }
19833 resultobj = SWIG_FromLong((long)result);
19834 return resultobj;
19835 fail:
19836 return NULL;
19837 }
19838
19839
19840 static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19841 PyObject *resultobj;
19842 wxListEvent *arg1 = (wxListEvent *) 0 ;
19843 long result;
19844 PyObject * obj0 = 0 ;
19845 char *kwnames[] = {
19846 (char *) "self", NULL
19847 };
19848
19849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
19850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19852 {
19853 PyThreadState* __tstate = wxPyBeginAllowThreads();
19854 result = (long)(arg1)->GetMask();
19855
19856 wxPyEndAllowThreads(__tstate);
19857 if (PyErr_Occurred()) SWIG_fail;
19858 }
19859 resultobj = SWIG_FromLong((long)result);
19860 return resultobj;
19861 fail:
19862 return NULL;
19863 }
19864
19865
19866 static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
19867 PyObject *resultobj;
19868 wxListEvent *arg1 = (wxListEvent *) 0 ;
19869 wxListItem *result;
19870 PyObject * obj0 = 0 ;
19871 char *kwnames[] = {
19872 (char *) "self", NULL
19873 };
19874
19875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
19876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19878 {
19879 PyThreadState* __tstate = wxPyBeginAllowThreads();
19880 {
19881 wxListItem const &_result_ref = (arg1)->GetItem();
19882 result = (wxListItem *) &_result_ref;
19883 }
19884
19885 wxPyEndAllowThreads(__tstate);
19886 if (PyErr_Occurred()) SWIG_fail;
19887 }
19888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
19889 return resultobj;
19890 fail:
19891 return NULL;
19892 }
19893
19894
19895 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
19896 PyObject *resultobj;
19897 wxListEvent *arg1 = (wxListEvent *) 0 ;
19898 long result;
19899 PyObject * obj0 = 0 ;
19900 char *kwnames[] = {
19901 (char *) "self", NULL
19902 };
19903
19904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
19905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19907 {
19908 PyThreadState* __tstate = wxPyBeginAllowThreads();
19909 result = (long)(arg1)->GetCacheFrom();
19910
19911 wxPyEndAllowThreads(__tstate);
19912 if (PyErr_Occurred()) SWIG_fail;
19913 }
19914 resultobj = SWIG_FromLong((long)result);
19915 return resultobj;
19916 fail:
19917 return NULL;
19918 }
19919
19920
19921 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19922 PyObject *resultobj;
19923 wxListEvent *arg1 = (wxListEvent *) 0 ;
19924 long result;
19925 PyObject * obj0 = 0 ;
19926 char *kwnames[] = {
19927 (char *) "self", NULL
19928 };
19929
19930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
19931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19933 {
19934 PyThreadState* __tstate = wxPyBeginAllowThreads();
19935 result = (long)(arg1)->GetCacheTo();
19936
19937 wxPyEndAllowThreads(__tstate);
19938 if (PyErr_Occurred()) SWIG_fail;
19939 }
19940 resultobj = SWIG_FromLong((long)result);
19941 return resultobj;
19942 fail:
19943 return NULL;
19944 }
19945
19946
19947 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
19948 PyObject *resultobj;
19949 wxListEvent *arg1 = (wxListEvent *) 0 ;
19950 bool result;
19951 PyObject * obj0 = 0 ;
19952 char *kwnames[] = {
19953 (char *) "self", NULL
19954 };
19955
19956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
19957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19959 {
19960 PyThreadState* __tstate = wxPyBeginAllowThreads();
19961 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
19962
19963 wxPyEndAllowThreads(__tstate);
19964 if (PyErr_Occurred()) SWIG_fail;
19965 }
19966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19967 return resultobj;
19968 fail:
19969 return NULL;
19970 }
19971
19972
19973 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
19974 PyObject *resultobj;
19975 wxListEvent *arg1 = (wxListEvent *) 0 ;
19976 bool arg2 ;
19977 PyObject * obj0 = 0 ;
19978 PyObject * obj1 = 0 ;
19979 char *kwnames[] = {
19980 (char *) "self",(char *) "editCancelled", NULL
19981 };
19982
19983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
19984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19986 arg2 = (bool) SWIG_AsBool(obj1);
19987 if (PyErr_Occurred()) SWIG_fail;
19988 {
19989 PyThreadState* __tstate = wxPyBeginAllowThreads();
19990 (arg1)->SetEditCanceled(arg2);
19991
19992 wxPyEndAllowThreads(__tstate);
19993 if (PyErr_Occurred()) SWIG_fail;
19994 }
19995 Py_INCREF(Py_None); resultobj = Py_None;
19996 return resultobj;
19997 fail:
19998 return NULL;
19999 }
20000
20001
20002 static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
20003 PyObject *obj;
20004 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20005 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
20006 Py_INCREF(obj);
20007 return Py_BuildValue((char *)"");
20008 }
20009 static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20010 PyObject *resultobj;
20011 wxWindow *arg1 = (wxWindow *) 0 ;
20012 int arg2 = (int) -1 ;
20013 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20014 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20015 wxSize const &arg4_defvalue = wxDefaultSize ;
20016 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20017 long arg5 = (long) wxLC_ICON ;
20018 wxValidator const &arg6_defvalue = wxDefaultValidator ;
20019 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
20020 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
20021 wxString *arg7 = (wxString *) &arg7_defvalue ;
20022 wxPyListCtrl *result;
20023 wxPoint temp3 ;
20024 wxSize temp4 ;
20025 bool temp7 = False ;
20026 PyObject * obj0 = 0 ;
20027 PyObject * obj1 = 0 ;
20028 PyObject * obj2 = 0 ;
20029 PyObject * obj3 = 0 ;
20030 PyObject * obj4 = 0 ;
20031 PyObject * obj5 = 0 ;
20032 PyObject * obj6 = 0 ;
20033 char *kwnames[] = {
20034 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
20035 };
20036
20037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
20038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20040 if (obj1) {
20041 arg2 = (int) SWIG_AsInt(obj1);
20042 if (PyErr_Occurred()) SWIG_fail;
20043 }
20044 if (obj2) {
20045 {
20046 arg3 = &temp3;
20047 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20048 }
20049 }
20050 if (obj3) {
20051 {
20052 arg4 = &temp4;
20053 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20054 }
20055 }
20056 if (obj4) {
20057 arg5 = (long) SWIG_AsLong(obj4);
20058 if (PyErr_Occurred()) SWIG_fail;
20059 }
20060 if (obj5) {
20061 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
20062 SWIG_POINTER_EXCEPTION | 0)) == -1)
20063 SWIG_fail;
20064 if (arg6 == NULL) {
20065 PyErr_SetString(PyExc_TypeError,"null reference");
20066 SWIG_fail;
20067 }
20068 }
20069 if (obj6) {
20070 {
20071 arg7 = wxString_in_helper(obj6);
20072 if (arg7 == NULL) SWIG_fail;
20073 temp7 = True;
20074 }
20075 }
20076 {
20077 PyThreadState* __tstate = wxPyBeginAllowThreads();
20078 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
20079
20080 wxPyEndAllowThreads(__tstate);
20081 if (PyErr_Occurred()) SWIG_fail;
20082 }
20083 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20084 {
20085 if (temp7)
20086 delete arg7;
20087 }
20088 return resultobj;
20089 fail:
20090 {
20091 if (temp7)
20092 delete arg7;
20093 }
20094 return NULL;
20095 }
20096
20097
20098 static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20099 PyObject *resultobj;
20100 wxPyListCtrl *result;
20101 char *kwnames[] = {
20102 NULL
20103 };
20104
20105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
20106 {
20107 PyThreadState* __tstate = wxPyBeginAllowThreads();
20108 result = (wxPyListCtrl *)new wxPyListCtrl();
20109
20110 wxPyEndAllowThreads(__tstate);
20111 if (PyErr_Occurred()) SWIG_fail;
20112 }
20113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20114 return resultobj;
20115 fail:
20116 return NULL;
20117 }
20118
20119
20120 static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
20121 PyObject *resultobj;
20122 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20123 wxWindow *arg2 = (wxWindow *) 0 ;
20124 int arg3 = (int) -1 ;
20125 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20126 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20127 wxSize const &arg5_defvalue = wxDefaultSize ;
20128 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20129 long arg6 = (long) wxLC_ICON ;
20130 wxValidator const &arg7_defvalue = wxDefaultValidator ;
20131 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
20132 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
20133 wxString *arg8 = (wxString *) &arg8_defvalue ;
20134 bool result;
20135 wxPoint temp4 ;
20136 wxSize temp5 ;
20137 bool temp8 = False ;
20138 PyObject * obj0 = 0 ;
20139 PyObject * obj1 = 0 ;
20140 PyObject * obj2 = 0 ;
20141 PyObject * obj3 = 0 ;
20142 PyObject * obj4 = 0 ;
20143 PyObject * obj5 = 0 ;
20144 PyObject * obj6 = 0 ;
20145 PyObject * obj7 = 0 ;
20146 char *kwnames[] = {
20147 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
20148 };
20149
20150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
20151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20153 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20155 if (obj2) {
20156 arg3 = (int) SWIG_AsInt(obj2);
20157 if (PyErr_Occurred()) SWIG_fail;
20158 }
20159 if (obj3) {
20160 {
20161 arg4 = &temp4;
20162 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20163 }
20164 }
20165 if (obj4) {
20166 {
20167 arg5 = &temp5;
20168 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20169 }
20170 }
20171 if (obj5) {
20172 arg6 = (long) SWIG_AsLong(obj5);
20173 if (PyErr_Occurred()) SWIG_fail;
20174 }
20175 if (obj6) {
20176 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
20177 SWIG_POINTER_EXCEPTION | 0)) == -1)
20178 SWIG_fail;
20179 if (arg7 == NULL) {
20180 PyErr_SetString(PyExc_TypeError,"null reference");
20181 SWIG_fail;
20182 }
20183 }
20184 if (obj7) {
20185 {
20186 arg8 = wxString_in_helper(obj7);
20187 if (arg8 == NULL) SWIG_fail;
20188 temp8 = True;
20189 }
20190 }
20191 {
20192 PyThreadState* __tstate = wxPyBeginAllowThreads();
20193 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
20194
20195 wxPyEndAllowThreads(__tstate);
20196 if (PyErr_Occurred()) SWIG_fail;
20197 }
20198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20199 {
20200 if (temp8)
20201 delete arg8;
20202 }
20203 return resultobj;
20204 fail:
20205 {
20206 if (temp8)
20207 delete arg8;
20208 }
20209 return NULL;
20210 }
20211
20212
20213 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
20214 PyObject *resultobj;
20215 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20216 PyObject *arg2 = (PyObject *) 0 ;
20217 PyObject *arg3 = (PyObject *) 0 ;
20218 PyObject * obj0 = 0 ;
20219 PyObject * obj1 = 0 ;
20220 PyObject * obj2 = 0 ;
20221 char *kwnames[] = {
20222 (char *) "self",(char *) "self",(char *) "_class", NULL
20223 };
20224
20225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20228 arg2 = obj1;
20229 arg3 = obj2;
20230 {
20231 PyThreadState* __tstate = wxPyBeginAllowThreads();
20232 (arg1)->_setCallbackInfo(arg2,arg3);
20233
20234 wxPyEndAllowThreads(__tstate);
20235 if (PyErr_Occurred()) SWIG_fail;
20236 }
20237 Py_INCREF(Py_None); resultobj = Py_None;
20238 return resultobj;
20239 fail:
20240 return NULL;
20241 }
20242
20243
20244 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20245 PyObject *resultobj;
20246 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20247 wxColour *arg2 = 0 ;
20248 bool result;
20249 wxColour temp2 ;
20250 PyObject * obj0 = 0 ;
20251 PyObject * obj1 = 0 ;
20252 char *kwnames[] = {
20253 (char *) "self",(char *) "col", NULL
20254 };
20255
20256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
20257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20259 {
20260 arg2 = &temp2;
20261 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20262 }
20263 {
20264 PyThreadState* __tstate = wxPyBeginAllowThreads();
20265 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
20266
20267 wxPyEndAllowThreads(__tstate);
20268 if (PyErr_Occurred()) SWIG_fail;
20269 }
20270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20271 return resultobj;
20272 fail:
20273 return NULL;
20274 }
20275
20276
20277 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20278 PyObject *resultobj;
20279 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20280 wxColour *arg2 = 0 ;
20281 bool result;
20282 wxColour temp2 ;
20283 PyObject * obj0 = 0 ;
20284 PyObject * obj1 = 0 ;
20285 char *kwnames[] = {
20286 (char *) "self",(char *) "col", NULL
20287 };
20288
20289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
20290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20292 {
20293 arg2 = &temp2;
20294 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20295 }
20296 {
20297 PyThreadState* __tstate = wxPyBeginAllowThreads();
20298 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
20299
20300 wxPyEndAllowThreads(__tstate);
20301 if (PyErr_Occurred()) SWIG_fail;
20302 }
20303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20304 return resultobj;
20305 fail:
20306 return NULL;
20307 }
20308
20309
20310 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20311 PyObject *resultobj;
20312 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20313 int arg2 ;
20314 wxListItem *result;
20315 PyObject * obj0 = 0 ;
20316 PyObject * obj1 = 0 ;
20317 char *kwnames[] = {
20318 (char *) "self",(char *) "col", NULL
20319 };
20320
20321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
20322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20324 arg2 = (int) SWIG_AsInt(obj1);
20325 if (PyErr_Occurred()) SWIG_fail;
20326 {
20327 PyThreadState* __tstate = wxPyBeginAllowThreads();
20328 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
20329
20330 wxPyEndAllowThreads(__tstate);
20331 if (PyErr_Occurred()) SWIG_fail;
20332 }
20333 {
20334 resultobj = wxPyMake_wxObject(result);
20335 }
20336 return resultobj;
20337 fail:
20338 return NULL;
20339 }
20340
20341
20342 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20343 PyObject *resultobj;
20344 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20345 int arg2 ;
20346 wxListItem *arg3 = 0 ;
20347 bool result;
20348 PyObject * obj0 = 0 ;
20349 PyObject * obj1 = 0 ;
20350 PyObject * obj2 = 0 ;
20351 char *kwnames[] = {
20352 (char *) "self",(char *) "col",(char *) "item", NULL
20353 };
20354
20355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
20356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20358 arg2 = (int) SWIG_AsInt(obj1);
20359 if (PyErr_Occurred()) SWIG_fail;
20360 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
20361 SWIG_POINTER_EXCEPTION | 0)) == -1)
20362 SWIG_fail;
20363 if (arg3 == NULL) {
20364 PyErr_SetString(PyExc_TypeError,"null reference");
20365 SWIG_fail;
20366 }
20367 {
20368 PyThreadState* __tstate = wxPyBeginAllowThreads();
20369 result = (bool)(arg1)->SetColumn(arg2,*arg3);
20370
20371 wxPyEndAllowThreads(__tstate);
20372 if (PyErr_Occurred()) SWIG_fail;
20373 }
20374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20375 return resultobj;
20376 fail:
20377 return NULL;
20378 }
20379
20380
20381 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
20382 PyObject *resultobj;
20383 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20384 int arg2 ;
20385 int result;
20386 PyObject * obj0 = 0 ;
20387 PyObject * obj1 = 0 ;
20388 char *kwnames[] = {
20389 (char *) "self",(char *) "col", NULL
20390 };
20391
20392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
20393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20395 arg2 = (int) SWIG_AsInt(obj1);
20396 if (PyErr_Occurred()) SWIG_fail;
20397 {
20398 PyThreadState* __tstate = wxPyBeginAllowThreads();
20399 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
20400
20401 wxPyEndAllowThreads(__tstate);
20402 if (PyErr_Occurred()) SWIG_fail;
20403 }
20404 resultobj = SWIG_FromInt((int)result);
20405 return resultobj;
20406 fail:
20407 return NULL;
20408 }
20409
20410
20411 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
20412 PyObject *resultobj;
20413 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20414 int arg2 ;
20415 int arg3 ;
20416 bool result;
20417 PyObject * obj0 = 0 ;
20418 PyObject * obj1 = 0 ;
20419 PyObject * obj2 = 0 ;
20420 char *kwnames[] = {
20421 (char *) "self",(char *) "col",(char *) "width", NULL
20422 };
20423
20424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20427 arg2 = (int) SWIG_AsInt(obj1);
20428 if (PyErr_Occurred()) SWIG_fail;
20429 arg3 = (int) SWIG_AsInt(obj2);
20430 if (PyErr_Occurred()) SWIG_fail;
20431 {
20432 PyThreadState* __tstate = wxPyBeginAllowThreads();
20433 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
20434
20435 wxPyEndAllowThreads(__tstate);
20436 if (PyErr_Occurred()) SWIG_fail;
20437 }
20438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20439 return resultobj;
20440 fail:
20441 return NULL;
20442 }
20443
20444
20445 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
20446 PyObject *resultobj;
20447 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20448 int result;
20449 PyObject * obj0 = 0 ;
20450 char *kwnames[] = {
20451 (char *) "self", NULL
20452 };
20453
20454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
20455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20457 {
20458 PyThreadState* __tstate = wxPyBeginAllowThreads();
20459 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
20460
20461 wxPyEndAllowThreads(__tstate);
20462 if (PyErr_Occurred()) SWIG_fail;
20463 }
20464 resultobj = SWIG_FromInt((int)result);
20465 return resultobj;
20466 fail:
20467 return NULL;
20468 }
20469
20470
20471 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
20472 PyObject *resultobj;
20473 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20474 wxRect result;
20475 PyObject * obj0 = 0 ;
20476 char *kwnames[] = {
20477 (char *) "self", NULL
20478 };
20479
20480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
20481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20483 {
20484 PyThreadState* __tstate = wxPyBeginAllowThreads();
20485 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
20486
20487 wxPyEndAllowThreads(__tstate);
20488 if (PyErr_Occurred()) SWIG_fail;
20489 }
20490 {
20491 wxRect * resultptr;
20492 resultptr = new wxRect((wxRect &) result);
20493 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
20494 }
20495 return resultobj;
20496 fail:
20497 return NULL;
20498 }
20499
20500
20501 static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
20502 PyObject *resultobj;
20503 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20504 wxTextCtrl *result;
20505 PyObject * obj0 = 0 ;
20506 char *kwnames[] = {
20507 (char *) "self", NULL
20508 };
20509
20510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail;
20511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20513 {
20514 PyThreadState* __tstate = wxPyBeginAllowThreads();
20515 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
20516
20517 wxPyEndAllowThreads(__tstate);
20518 if (PyErr_Occurred()) SWIG_fail;
20519 }
20520 {
20521 resultobj = wxPyMake_wxObject(result);
20522 }
20523 return resultobj;
20524 fail:
20525 return NULL;
20526 }
20527
20528
20529 static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20530 PyObject *resultobj;
20531 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20532 long arg2 ;
20533 int arg3 = (int) 0 ;
20534 wxListItem *result;
20535 PyObject * obj0 = 0 ;
20536 PyObject * obj1 = 0 ;
20537 PyObject * obj2 = 0 ;
20538 char *kwnames[] = {
20539 (char *) "self",(char *) "itemId",(char *) "col", NULL
20540 };
20541
20542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
20543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20545 arg2 = (long) SWIG_AsLong(obj1);
20546 if (PyErr_Occurred()) SWIG_fail;
20547 if (obj2) {
20548 arg3 = (int) SWIG_AsInt(obj2);
20549 if (PyErr_Occurred()) SWIG_fail;
20550 }
20551 {
20552 PyThreadState* __tstate = wxPyBeginAllowThreads();
20553 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
20554
20555 wxPyEndAllowThreads(__tstate);
20556 if (PyErr_Occurred()) SWIG_fail;
20557 }
20558 {
20559 resultobj = wxPyMake_wxObject(result);
20560 }
20561 return resultobj;
20562 fail:
20563 return NULL;
20564 }
20565
20566
20567 static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20568 PyObject *resultobj;
20569 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20570 wxListItem *arg2 = 0 ;
20571 bool result;
20572 PyObject * obj0 = 0 ;
20573 PyObject * obj1 = 0 ;
20574 char *kwnames[] = {
20575 (char *) "self",(char *) "info", NULL
20576 };
20577
20578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
20579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
20582 SWIG_POINTER_EXCEPTION | 0)) == -1)
20583 SWIG_fail;
20584 if (arg2 == NULL) {
20585 PyErr_SetString(PyExc_TypeError,"null reference");
20586 SWIG_fail;
20587 }
20588 {
20589 PyThreadState* __tstate = wxPyBeginAllowThreads();
20590 result = (bool)(arg1)->SetItem(*arg2);
20591
20592 wxPyEndAllowThreads(__tstate);
20593 if (PyErr_Occurred()) SWIG_fail;
20594 }
20595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20596 return resultobj;
20597 fail:
20598 return NULL;
20599 }
20600
20601
20602 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20603 PyObject *resultobj;
20604 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20605 long arg2 ;
20606 int arg3 ;
20607 wxString *arg4 = 0 ;
20608 int arg5 = (int) -1 ;
20609 long result;
20610 bool temp4 = False ;
20611 PyObject * obj0 = 0 ;
20612 PyObject * obj1 = 0 ;
20613 PyObject * obj2 = 0 ;
20614 PyObject * obj3 = 0 ;
20615 PyObject * obj4 = 0 ;
20616 char *kwnames[] = {
20617 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
20618 };
20619
20620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20623 arg2 = (long) SWIG_AsLong(obj1);
20624 if (PyErr_Occurred()) SWIG_fail;
20625 arg3 = (int) SWIG_AsInt(obj2);
20626 if (PyErr_Occurred()) SWIG_fail;
20627 {
20628 arg4 = wxString_in_helper(obj3);
20629 if (arg4 == NULL) SWIG_fail;
20630 temp4 = True;
20631 }
20632 if (obj4) {
20633 arg5 = (int) SWIG_AsInt(obj4);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 }
20636 {
20637 PyThreadState* __tstate = wxPyBeginAllowThreads();
20638 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
20639
20640 wxPyEndAllowThreads(__tstate);
20641 if (PyErr_Occurred()) SWIG_fail;
20642 }
20643 resultobj = SWIG_FromLong((long)result);
20644 {
20645 if (temp4)
20646 delete arg4;
20647 }
20648 return resultobj;
20649 fail:
20650 {
20651 if (temp4)
20652 delete arg4;
20653 }
20654 return NULL;
20655 }
20656
20657
20658 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
20659 PyObject *resultobj;
20660 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20661 long arg2 ;
20662 long arg3 ;
20663 int result;
20664 PyObject * obj0 = 0 ;
20665 PyObject * obj1 = 0 ;
20666 PyObject * obj2 = 0 ;
20667 char *kwnames[] = {
20668 (char *) "self",(char *) "item",(char *) "stateMask", NULL
20669 };
20670
20671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
20672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20674 arg2 = (long) SWIG_AsLong(obj1);
20675 if (PyErr_Occurred()) SWIG_fail;
20676 arg3 = (long) SWIG_AsLong(obj2);
20677 if (PyErr_Occurred()) SWIG_fail;
20678 {
20679 PyThreadState* __tstate = wxPyBeginAllowThreads();
20680 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
20681
20682 wxPyEndAllowThreads(__tstate);
20683 if (PyErr_Occurred()) SWIG_fail;
20684 }
20685 resultobj = SWIG_FromInt((int)result);
20686 return resultobj;
20687 fail:
20688 return NULL;
20689 }
20690
20691
20692 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
20693 PyObject *resultobj;
20694 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20695 long arg2 ;
20696 long arg3 ;
20697 long arg4 ;
20698 bool result;
20699 PyObject * obj0 = 0 ;
20700 PyObject * obj1 = 0 ;
20701 PyObject * obj2 = 0 ;
20702 PyObject * obj3 = 0 ;
20703 char *kwnames[] = {
20704 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
20705 };
20706
20707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20710 arg2 = (long) SWIG_AsLong(obj1);
20711 if (PyErr_Occurred()) SWIG_fail;
20712 arg3 = (long) SWIG_AsLong(obj2);
20713 if (PyErr_Occurred()) SWIG_fail;
20714 arg4 = (long) SWIG_AsLong(obj3);
20715 if (PyErr_Occurred()) SWIG_fail;
20716 {
20717 PyThreadState* __tstate = wxPyBeginAllowThreads();
20718 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
20719
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20724 return resultobj;
20725 fail:
20726 return NULL;
20727 }
20728
20729
20730 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20731 PyObject *resultobj;
20732 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20733 long arg2 ;
20734 int arg3 ;
20735 int arg4 ;
20736 bool result;
20737 PyObject * obj0 = 0 ;
20738 PyObject * obj1 = 0 ;
20739 PyObject * obj2 = 0 ;
20740 PyObject * obj3 = 0 ;
20741 char *kwnames[] = {
20742 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
20743 };
20744
20745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20748 arg2 = (long) SWIG_AsLong(obj1);
20749 if (PyErr_Occurred()) SWIG_fail;
20750 arg3 = (int) SWIG_AsInt(obj2);
20751 if (PyErr_Occurred()) SWIG_fail;
20752 arg4 = (int) SWIG_AsInt(obj3);
20753 if (PyErr_Occurred()) SWIG_fail;
20754 {
20755 PyThreadState* __tstate = wxPyBeginAllowThreads();
20756 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
20757
20758 wxPyEndAllowThreads(__tstate);
20759 if (PyErr_Occurred()) SWIG_fail;
20760 }
20761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20762 return resultobj;
20763 fail:
20764 return NULL;
20765 }
20766
20767
20768 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
20769 PyObject *resultobj;
20770 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20771 long arg2 ;
20772 wxString result;
20773 PyObject * obj0 = 0 ;
20774 PyObject * obj1 = 0 ;
20775 char *kwnames[] = {
20776 (char *) "self",(char *) "item", NULL
20777 };
20778
20779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
20780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20782 arg2 = (long) SWIG_AsLong(obj1);
20783 if (PyErr_Occurred()) SWIG_fail;
20784 {
20785 PyThreadState* __tstate = wxPyBeginAllowThreads();
20786 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
20787
20788 wxPyEndAllowThreads(__tstate);
20789 if (PyErr_Occurred()) SWIG_fail;
20790 }
20791 {
20792 #if wxUSE_UNICODE
20793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20794 #else
20795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20796 #endif
20797 }
20798 return resultobj;
20799 fail:
20800 return NULL;
20801 }
20802
20803
20804 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
20805 PyObject *resultobj;
20806 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20807 long arg2 ;
20808 wxString *arg3 = 0 ;
20809 bool temp3 = False ;
20810 PyObject * obj0 = 0 ;
20811 PyObject * obj1 = 0 ;
20812 PyObject * obj2 = 0 ;
20813 char *kwnames[] = {
20814 (char *) "self",(char *) "item",(char *) "str", NULL
20815 };
20816
20817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
20818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20820 arg2 = (long) SWIG_AsLong(obj1);
20821 if (PyErr_Occurred()) SWIG_fail;
20822 {
20823 arg3 = wxString_in_helper(obj2);
20824 if (arg3 == NULL) SWIG_fail;
20825 temp3 = True;
20826 }
20827 {
20828 PyThreadState* __tstate = wxPyBeginAllowThreads();
20829 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
20830
20831 wxPyEndAllowThreads(__tstate);
20832 if (PyErr_Occurred()) SWIG_fail;
20833 }
20834 Py_INCREF(Py_None); resultobj = Py_None;
20835 {
20836 if (temp3)
20837 delete arg3;
20838 }
20839 return resultobj;
20840 fail:
20841 {
20842 if (temp3)
20843 delete arg3;
20844 }
20845 return NULL;
20846 }
20847
20848
20849 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
20850 PyObject *resultobj;
20851 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20852 long arg2 ;
20853 long result;
20854 PyObject * obj0 = 0 ;
20855 PyObject * obj1 = 0 ;
20856 char *kwnames[] = {
20857 (char *) "self",(char *) "item", NULL
20858 };
20859
20860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
20861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20863 arg2 = (long) SWIG_AsLong(obj1);
20864 if (PyErr_Occurred()) SWIG_fail;
20865 {
20866 PyThreadState* __tstate = wxPyBeginAllowThreads();
20867 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
20868
20869 wxPyEndAllowThreads(__tstate);
20870 if (PyErr_Occurred()) SWIG_fail;
20871 }
20872 resultobj = SWIG_FromLong((long)result);
20873 return resultobj;
20874 fail:
20875 return NULL;
20876 }
20877
20878
20879 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
20880 PyObject *resultobj;
20881 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20882 long arg2 ;
20883 long arg3 ;
20884 bool result;
20885 PyObject * obj0 = 0 ;
20886 PyObject * obj1 = 0 ;
20887 PyObject * obj2 = 0 ;
20888 char *kwnames[] = {
20889 (char *) "self",(char *) "item",(char *) "data", NULL
20890 };
20891
20892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
20893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20895 arg2 = (long) SWIG_AsLong(obj1);
20896 if (PyErr_Occurred()) SWIG_fail;
20897 arg3 = (long) SWIG_AsLong(obj2);
20898 if (PyErr_Occurred()) SWIG_fail;
20899 {
20900 PyThreadState* __tstate = wxPyBeginAllowThreads();
20901 result = (bool)(arg1)->SetItemData(arg2,arg3);
20902
20903 wxPyEndAllowThreads(__tstate);
20904 if (PyErr_Occurred()) SWIG_fail;
20905 }
20906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20907 return resultobj;
20908 fail:
20909 return NULL;
20910 }
20911
20912
20913 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
20914 PyObject *resultobj;
20915 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20916 long arg2 ;
20917 wxPoint result;
20918 PyObject * obj0 = 0 ;
20919 PyObject * obj1 = 0 ;
20920 char *kwnames[] = {
20921 (char *) "self",(char *) "item", NULL
20922 };
20923
20924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
20925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20927 arg2 = (long) SWIG_AsLong(obj1);
20928 if (PyErr_Occurred()) SWIG_fail;
20929 {
20930 PyThreadState* __tstate = wxPyBeginAllowThreads();
20931 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
20932
20933 wxPyEndAllowThreads(__tstate);
20934 if (PyErr_Occurred()) SWIG_fail;
20935 }
20936 {
20937 wxPoint * resultptr;
20938 resultptr = new wxPoint((wxPoint &) result);
20939 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20940 }
20941 return resultobj;
20942 fail:
20943 return NULL;
20944 }
20945
20946
20947 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
20948 PyObject *resultobj;
20949 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20950 long arg2 ;
20951 int arg3 = (int) wxLIST_RECT_BOUNDS ;
20952 wxRect result;
20953 PyObject * obj0 = 0 ;
20954 PyObject * obj1 = 0 ;
20955 PyObject * obj2 = 0 ;
20956 char *kwnames[] = {
20957 (char *) "self",(char *) "item",(char *) "code", NULL
20958 };
20959
20960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
20961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20963 arg2 = (long) SWIG_AsLong(obj1);
20964 if (PyErr_Occurred()) SWIG_fail;
20965 if (obj2) {
20966 arg3 = (int) SWIG_AsInt(obj2);
20967 if (PyErr_Occurred()) SWIG_fail;
20968 }
20969 {
20970 PyThreadState* __tstate = wxPyBeginAllowThreads();
20971 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
20972
20973 wxPyEndAllowThreads(__tstate);
20974 if (PyErr_Occurred()) SWIG_fail;
20975 }
20976 {
20977 wxRect * resultptr;
20978 resultptr = new wxRect((wxRect &) result);
20979 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
20980 }
20981 return resultobj;
20982 fail:
20983 return NULL;
20984 }
20985
20986
20987 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
20988 PyObject *resultobj;
20989 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20990 long arg2 ;
20991 wxPoint *arg3 = 0 ;
20992 bool result;
20993 wxPoint temp3 ;
20994 PyObject * obj0 = 0 ;
20995 PyObject * obj1 = 0 ;
20996 PyObject * obj2 = 0 ;
20997 char *kwnames[] = {
20998 (char *) "self",(char *) "item",(char *) "pos", NULL
20999 };
21000
21001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
21002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21004 arg2 = (long) SWIG_AsLong(obj1);
21005 if (PyErr_Occurred()) SWIG_fail;
21006 {
21007 arg3 = &temp3;
21008 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21009 }
21010 {
21011 PyThreadState* __tstate = wxPyBeginAllowThreads();
21012 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
21013
21014 wxPyEndAllowThreads(__tstate);
21015 if (PyErr_Occurred()) SWIG_fail;
21016 }
21017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21018 return resultobj;
21019 fail:
21020 return NULL;
21021 }
21022
21023
21024 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21025 PyObject *resultobj;
21026 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21027 int result;
21028 PyObject * obj0 = 0 ;
21029 char *kwnames[] = {
21030 (char *) "self", NULL
21031 };
21032
21033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
21034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21036 {
21037 PyThreadState* __tstate = wxPyBeginAllowThreads();
21038 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
21039
21040 wxPyEndAllowThreads(__tstate);
21041 if (PyErr_Occurred()) SWIG_fail;
21042 }
21043 resultobj = SWIG_FromInt((int)result);
21044 return resultobj;
21045 fail:
21046 return NULL;
21047 }
21048
21049
21050 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21051 PyObject *resultobj;
21052 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21053 int result;
21054 PyObject * obj0 = 0 ;
21055 char *kwnames[] = {
21056 (char *) "self", NULL
21057 };
21058
21059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
21060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21062 {
21063 PyThreadState* __tstate = wxPyBeginAllowThreads();
21064 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
21065
21066 wxPyEndAllowThreads(__tstate);
21067 if (PyErr_Occurred()) SWIG_fail;
21068 }
21069 resultobj = SWIG_FromInt((int)result);
21070 return resultobj;
21071 fail:
21072 return NULL;
21073 }
21074
21075
21076 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
21077 PyObject *resultobj;
21078 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21079 wxSize result;
21080 PyObject * obj0 = 0 ;
21081 char *kwnames[] = {
21082 (char *) "self", NULL
21083 };
21084
21085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
21086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21088 {
21089 PyThreadState* __tstate = wxPyBeginAllowThreads();
21090 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
21091
21092 wxPyEndAllowThreads(__tstate);
21093 if (PyErr_Occurred()) SWIG_fail;
21094 }
21095 {
21096 wxSize * resultptr;
21097 resultptr = new wxSize((wxSize &) result);
21098 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
21099 }
21100 return resultobj;
21101 fail:
21102 return NULL;
21103 }
21104
21105
21106 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21107 PyObject *resultobj;
21108 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21109 int result;
21110 PyObject * obj0 = 0 ;
21111 char *kwnames[] = {
21112 (char *) "self", NULL
21113 };
21114
21115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
21116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21118 {
21119 PyThreadState* __tstate = wxPyBeginAllowThreads();
21120 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
21121
21122 wxPyEndAllowThreads(__tstate);
21123 if (PyErr_Occurred()) SWIG_fail;
21124 }
21125 resultobj = SWIG_FromInt((int)result);
21126 return resultobj;
21127 fail:
21128 return NULL;
21129 }
21130
21131
21132 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21133 PyObject *resultobj;
21134 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21135 wxColour result;
21136 PyObject * obj0 = 0 ;
21137 char *kwnames[] = {
21138 (char *) "self", NULL
21139 };
21140
21141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
21142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21144 {
21145 PyThreadState* __tstate = wxPyBeginAllowThreads();
21146 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
21147
21148 wxPyEndAllowThreads(__tstate);
21149 if (PyErr_Occurred()) SWIG_fail;
21150 }
21151 {
21152 wxColour * resultptr;
21153 resultptr = new wxColour((wxColour &) result);
21154 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21155 }
21156 return resultobj;
21157 fail:
21158 return NULL;
21159 }
21160
21161
21162 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21163 PyObject *resultobj;
21164 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21165 wxColour *arg2 = 0 ;
21166 wxColour temp2 ;
21167 PyObject * obj0 = 0 ;
21168 PyObject * obj1 = 0 ;
21169 char *kwnames[] = {
21170 (char *) "self",(char *) "col", NULL
21171 };
21172
21173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
21174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21176 {
21177 arg2 = &temp2;
21178 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21179 }
21180 {
21181 PyThreadState* __tstate = wxPyBeginAllowThreads();
21182 (arg1)->SetTextColour((wxColour const &)*arg2);
21183
21184 wxPyEndAllowThreads(__tstate);
21185 if (PyErr_Occurred()) SWIG_fail;
21186 }
21187 Py_INCREF(Py_None); resultobj = Py_None;
21188 return resultobj;
21189 fail:
21190 return NULL;
21191 }
21192
21193
21194 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21195 PyObject *resultobj;
21196 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21197 long result;
21198 PyObject * obj0 = 0 ;
21199 char *kwnames[] = {
21200 (char *) "self", NULL
21201 };
21202
21203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
21204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21206 {
21207 PyThreadState* __tstate = wxPyBeginAllowThreads();
21208 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
21209
21210 wxPyEndAllowThreads(__tstate);
21211 if (PyErr_Occurred()) SWIG_fail;
21212 }
21213 resultobj = SWIG_FromLong((long)result);
21214 return resultobj;
21215 fail:
21216 return NULL;
21217 }
21218
21219
21220 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
21221 PyObject *resultobj;
21222 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21223 long arg2 ;
21224 bool arg3 = (bool) True ;
21225 PyObject * obj0 = 0 ;
21226 PyObject * obj1 = 0 ;
21227 PyObject * obj2 = 0 ;
21228 char *kwnames[] = {
21229 (char *) "self",(char *) "style",(char *) "add", NULL
21230 };
21231
21232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
21233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21235 arg2 = (long) SWIG_AsLong(obj1);
21236 if (PyErr_Occurred()) SWIG_fail;
21237 if (obj2) {
21238 arg3 = (bool) SWIG_AsBool(obj2);
21239 if (PyErr_Occurred()) SWIG_fail;
21240 }
21241 {
21242 PyThreadState* __tstate = wxPyBeginAllowThreads();
21243 (arg1)->SetSingleStyle(arg2,arg3);
21244
21245 wxPyEndAllowThreads(__tstate);
21246 if (PyErr_Occurred()) SWIG_fail;
21247 }
21248 Py_INCREF(Py_None); resultobj = Py_None;
21249 return resultobj;
21250 fail:
21251 return NULL;
21252 }
21253
21254
21255 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
21256 PyObject *resultobj;
21257 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21258 long arg2 ;
21259 PyObject * obj0 = 0 ;
21260 PyObject * obj1 = 0 ;
21261 char *kwnames[] = {
21262 (char *) "self",(char *) "style", NULL
21263 };
21264
21265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
21266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21268 arg2 = (long) SWIG_AsLong(obj1);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 {
21271 PyThreadState* __tstate = wxPyBeginAllowThreads();
21272 (arg1)->SetWindowStyleFlag(arg2);
21273
21274 wxPyEndAllowThreads(__tstate);
21275 if (PyErr_Occurred()) SWIG_fail;
21276 }
21277 Py_INCREF(Py_None); resultobj = Py_None;
21278 return resultobj;
21279 fail:
21280 return NULL;
21281 }
21282
21283
21284 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21285 PyObject *resultobj;
21286 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21287 long arg2 ;
21288 int arg3 = (int) wxLIST_NEXT_ALL ;
21289 int arg4 = (int) wxLIST_STATE_DONTCARE ;
21290 long result;
21291 PyObject * obj0 = 0 ;
21292 PyObject * obj1 = 0 ;
21293 PyObject * obj2 = 0 ;
21294 PyObject * obj3 = 0 ;
21295 char *kwnames[] = {
21296 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
21297 };
21298
21299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21302 arg2 = (long) SWIG_AsLong(obj1);
21303 if (PyErr_Occurred()) SWIG_fail;
21304 if (obj2) {
21305 arg3 = (int) SWIG_AsInt(obj2);
21306 if (PyErr_Occurred()) SWIG_fail;
21307 }
21308 if (obj3) {
21309 arg4 = (int) SWIG_AsInt(obj3);
21310 if (PyErr_Occurred()) SWIG_fail;
21311 }
21312 {
21313 PyThreadState* __tstate = wxPyBeginAllowThreads();
21314 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
21315
21316 wxPyEndAllowThreads(__tstate);
21317 if (PyErr_Occurred()) SWIG_fail;
21318 }
21319 resultobj = SWIG_FromLong((long)result);
21320 return resultobj;
21321 fail:
21322 return NULL;
21323 }
21324
21325
21326 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21327 PyObject *resultobj;
21328 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21329 int arg2 ;
21330 wxImageList *result;
21331 PyObject * obj0 = 0 ;
21332 PyObject * obj1 = 0 ;
21333 char *kwnames[] = {
21334 (char *) "self",(char *) "which", NULL
21335 };
21336
21337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
21338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21340 arg2 = (int) SWIG_AsInt(obj1);
21341 if (PyErr_Occurred()) SWIG_fail;
21342 {
21343 PyThreadState* __tstate = wxPyBeginAllowThreads();
21344 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
21345
21346 wxPyEndAllowThreads(__tstate);
21347 if (PyErr_Occurred()) SWIG_fail;
21348 }
21349 {
21350 resultobj = wxPyMake_wxObject(result);
21351 }
21352 return resultobj;
21353 fail:
21354 return NULL;
21355 }
21356
21357
21358 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21359 PyObject *resultobj;
21360 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21361 wxImageList *arg2 = (wxImageList *) 0 ;
21362 int arg3 ;
21363 PyObject * obj0 = 0 ;
21364 PyObject * obj1 = 0 ;
21365 PyObject * obj2 = 0 ;
21366 char *kwnames[] = {
21367 (char *) "self",(char *) "imageList",(char *) "which", NULL
21368 };
21369
21370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21373 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
21374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21375 arg3 = (int) SWIG_AsInt(obj2);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 (arg1)->SetImageList(arg2,arg3);
21380
21381 wxPyEndAllowThreads(__tstate);
21382 if (PyErr_Occurred()) SWIG_fail;
21383 }
21384 Py_INCREF(Py_None); resultobj = Py_None;
21385 return resultobj;
21386 fail:
21387 return NULL;
21388 }
21389
21390
21391 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21392 PyObject *resultobj;
21393 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21394 wxImageList *arg2 = (wxImageList *) 0 ;
21395 int arg3 ;
21396 PyObject * obj0 = 0 ;
21397 PyObject * obj1 = 0 ;
21398 PyObject * obj2 = 0 ;
21399 char *kwnames[] = {
21400 (char *) "self",(char *) "imageList",(char *) "which", NULL
21401 };
21402
21403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21406 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
21407 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
21408 arg3 = (int) SWIG_AsInt(obj2);
21409 if (PyErr_Occurred()) SWIG_fail;
21410 {
21411 PyThreadState* __tstate = wxPyBeginAllowThreads();
21412 (arg1)->AssignImageList(arg2,arg3);
21413
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 Py_INCREF(Py_None); resultobj = Py_None;
21418 return resultobj;
21419 fail:
21420 return NULL;
21421 }
21422
21423
21424 static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) {
21425 PyObject *resultobj;
21426 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21427 bool result;
21428 PyObject * obj0 = 0 ;
21429 char *kwnames[] = {
21430 (char *) "self", NULL
21431 };
21432
21433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
21434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21436 {
21437 PyThreadState* __tstate = wxPyBeginAllowThreads();
21438 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
21439
21440 wxPyEndAllowThreads(__tstate);
21441 if (PyErr_Occurred()) SWIG_fail;
21442 }
21443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21444 return resultobj;
21445 fail:
21446 return NULL;
21447 }
21448
21449
21450 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
21451 PyObject *resultobj;
21452 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21453 bool result;
21454 PyObject * obj0 = 0 ;
21455 char *kwnames[] = {
21456 (char *) "self", NULL
21457 };
21458
21459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
21460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21462 {
21463 PyThreadState* __tstate = wxPyBeginAllowThreads();
21464 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
21465
21466 wxPyEndAllowThreads(__tstate);
21467 if (PyErr_Occurred()) SWIG_fail;
21468 }
21469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21470 return resultobj;
21471 fail:
21472 return NULL;
21473 }
21474
21475
21476 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21477 PyObject *resultobj;
21478 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21479 long arg2 ;
21480 PyObject * obj0 = 0 ;
21481 PyObject * obj1 = 0 ;
21482 char *kwnames[] = {
21483 (char *) "self",(char *) "item", NULL
21484 };
21485
21486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
21487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21489 arg2 = (long) SWIG_AsLong(obj1);
21490 if (PyErr_Occurred()) SWIG_fail;
21491 {
21492 PyThreadState* __tstate = wxPyBeginAllowThreads();
21493 (arg1)->RefreshItem(arg2);
21494
21495 wxPyEndAllowThreads(__tstate);
21496 if (PyErr_Occurred()) SWIG_fail;
21497 }
21498 Py_INCREF(Py_None); resultobj = Py_None;
21499 return resultobj;
21500 fail:
21501 return NULL;
21502 }
21503
21504
21505 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
21506 PyObject *resultobj;
21507 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21508 long arg2 ;
21509 long arg3 ;
21510 PyObject * obj0 = 0 ;
21511 PyObject * obj1 = 0 ;
21512 PyObject * obj2 = 0 ;
21513 char *kwnames[] = {
21514 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
21515 };
21516
21517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
21518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21520 arg2 = (long) SWIG_AsLong(obj1);
21521 if (PyErr_Occurred()) SWIG_fail;
21522 arg3 = (long) SWIG_AsLong(obj2);
21523 if (PyErr_Occurred()) SWIG_fail;
21524 {
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
21526 (arg1)->RefreshItems(arg2,arg3);
21527
21528 wxPyEndAllowThreads(__tstate);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 }
21531 Py_INCREF(Py_None); resultobj = Py_None;
21532 return resultobj;
21533 fail:
21534 return NULL;
21535 }
21536
21537
21538 static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
21539 PyObject *resultobj;
21540 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21541 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
21542 bool result;
21543 PyObject * obj0 = 0 ;
21544 PyObject * obj1 = 0 ;
21545 char *kwnames[] = {
21546 (char *) "self",(char *) "flag", NULL
21547 };
21548
21549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
21550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21552 if (obj1) {
21553 arg2 = (int) SWIG_AsInt(obj1);
21554 if (PyErr_Occurred()) SWIG_fail;
21555 }
21556 {
21557 PyThreadState* __tstate = wxPyBeginAllowThreads();
21558 result = (bool)(arg1)->Arrange(arg2);
21559
21560 wxPyEndAllowThreads(__tstate);
21561 if (PyErr_Occurred()) SWIG_fail;
21562 }
21563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21564 return resultobj;
21565 fail:
21566 return NULL;
21567 }
21568
21569
21570 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21571 PyObject *resultobj;
21572 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21573 long arg2 ;
21574 bool result;
21575 PyObject * obj0 = 0 ;
21576 PyObject * obj1 = 0 ;
21577 char *kwnames[] = {
21578 (char *) "self",(char *) "item", NULL
21579 };
21580
21581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
21582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21584 arg2 = (long) SWIG_AsLong(obj1);
21585 if (PyErr_Occurred()) SWIG_fail;
21586 {
21587 PyThreadState* __tstate = wxPyBeginAllowThreads();
21588 result = (bool)(arg1)->DeleteItem(arg2);
21589
21590 wxPyEndAllowThreads(__tstate);
21591 if (PyErr_Occurred()) SWIG_fail;
21592 }
21593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21594 return resultobj;
21595 fail:
21596 return NULL;
21597 }
21598
21599
21600 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
21601 PyObject *resultobj;
21602 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21603 bool result;
21604 PyObject * obj0 = 0 ;
21605 char *kwnames[] = {
21606 (char *) "self", NULL
21607 };
21608
21609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
21610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21612 {
21613 PyThreadState* __tstate = wxPyBeginAllowThreads();
21614 result = (bool)(arg1)->DeleteAllItems();
21615
21616 wxPyEndAllowThreads(__tstate);
21617 if (PyErr_Occurred()) SWIG_fail;
21618 }
21619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21620 return resultobj;
21621 fail:
21622 return NULL;
21623 }
21624
21625
21626 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21627 PyObject *resultobj;
21628 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21629 int arg2 ;
21630 bool result;
21631 PyObject * obj0 = 0 ;
21632 PyObject * obj1 = 0 ;
21633 char *kwnames[] = {
21634 (char *) "self",(char *) "col", NULL
21635 };
21636
21637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
21638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21640 arg2 = (int) SWIG_AsInt(obj1);
21641 if (PyErr_Occurred()) SWIG_fail;
21642 {
21643 PyThreadState* __tstate = wxPyBeginAllowThreads();
21644 result = (bool)(arg1)->DeleteColumn(arg2);
21645
21646 wxPyEndAllowThreads(__tstate);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 }
21649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21650 return resultobj;
21651 fail:
21652 return NULL;
21653 }
21654
21655
21656 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
21657 PyObject *resultobj;
21658 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21659 bool result;
21660 PyObject * obj0 = 0 ;
21661 char *kwnames[] = {
21662 (char *) "self", NULL
21663 };
21664
21665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
21666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21668 {
21669 PyThreadState* __tstate = wxPyBeginAllowThreads();
21670 result = (bool)(arg1)->DeleteAllColumns();
21671
21672 wxPyEndAllowThreads(__tstate);
21673 if (PyErr_Occurred()) SWIG_fail;
21674 }
21675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21676 return resultobj;
21677 fail:
21678 return NULL;
21679 }
21680
21681
21682 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
21683 PyObject *resultobj;
21684 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21685 PyObject * obj0 = 0 ;
21686 char *kwnames[] = {
21687 (char *) "self", NULL
21688 };
21689
21690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
21691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21693 {
21694 PyThreadState* __tstate = wxPyBeginAllowThreads();
21695 (arg1)->ClearAll();
21696
21697 wxPyEndAllowThreads(__tstate);
21698 if (PyErr_Occurred()) SWIG_fail;
21699 }
21700 Py_INCREF(Py_None); resultobj = Py_None;
21701 return resultobj;
21702 fail:
21703 return NULL;
21704 }
21705
21706
21707 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21708 PyObject *resultobj;
21709 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21710 long arg2 ;
21711 wxTextCtrl *result;
21712 PyObject * obj0 = 0 ;
21713 PyObject * obj1 = 0 ;
21714 char *kwnames[] = {
21715 (char *) "self",(char *) "item", NULL
21716 };
21717
21718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
21719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21721 arg2 = (long) SWIG_AsLong(obj1);
21722 if (PyErr_Occurred()) SWIG_fail;
21723 {
21724 PyThreadState* __tstate = wxPyBeginAllowThreads();
21725 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
21726
21727 wxPyEndAllowThreads(__tstate);
21728 if (PyErr_Occurred()) SWIG_fail;
21729 }
21730 {
21731 resultobj = wxPyMake_wxObject(result);
21732 }
21733 return resultobj;
21734 fail:
21735 return NULL;
21736 }
21737
21738
21739 static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21740 PyObject *resultobj;
21741 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21742 bool arg2 ;
21743 bool result;
21744 PyObject * obj0 = 0 ;
21745 PyObject * obj1 = 0 ;
21746 char *kwnames[] = {
21747 (char *) "self",(char *) "cancel", NULL
21748 };
21749
21750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail;
21751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21753 arg2 = (bool) SWIG_AsBool(obj1);
21754 if (PyErr_Occurred()) SWIG_fail;
21755 {
21756 PyThreadState* __tstate = wxPyBeginAllowThreads();
21757 result = (bool)(arg1)->EndEditLabel(arg2);
21758
21759 wxPyEndAllowThreads(__tstate);
21760 if (PyErr_Occurred()) SWIG_fail;
21761 }
21762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21763 return resultobj;
21764 fail:
21765 return NULL;
21766 }
21767
21768
21769 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
21770 PyObject *resultobj;
21771 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21772 long arg2 ;
21773 bool result;
21774 PyObject * obj0 = 0 ;
21775 PyObject * obj1 = 0 ;
21776 char *kwnames[] = {
21777 (char *) "self",(char *) "item", NULL
21778 };
21779
21780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
21781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21783 arg2 = (long) SWIG_AsLong(obj1);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 {
21786 PyThreadState* __tstate = wxPyBeginAllowThreads();
21787 result = (bool)(arg1)->EnsureVisible(arg2);
21788
21789 wxPyEndAllowThreads(__tstate);
21790 if (PyErr_Occurred()) SWIG_fail;
21791 }
21792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21793 return resultobj;
21794 fail:
21795 return NULL;
21796 }
21797
21798
21799 static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21800 PyObject *resultobj;
21801 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21802 long arg2 ;
21803 wxString *arg3 = 0 ;
21804 bool arg4 = (bool) False ;
21805 long result;
21806 bool temp3 = False ;
21807 PyObject * obj0 = 0 ;
21808 PyObject * obj1 = 0 ;
21809 PyObject * obj2 = 0 ;
21810 PyObject * obj3 = 0 ;
21811 char *kwnames[] = {
21812 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
21813 };
21814
21815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21818 arg2 = (long) SWIG_AsLong(obj1);
21819 if (PyErr_Occurred()) SWIG_fail;
21820 {
21821 arg3 = wxString_in_helper(obj2);
21822 if (arg3 == NULL) SWIG_fail;
21823 temp3 = True;
21824 }
21825 if (obj3) {
21826 arg4 = (bool) SWIG_AsBool(obj3);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 {
21830 PyThreadState* __tstate = wxPyBeginAllowThreads();
21831 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
21832
21833 wxPyEndAllowThreads(__tstate);
21834 if (PyErr_Occurred()) SWIG_fail;
21835 }
21836 resultobj = SWIG_FromLong((long)result);
21837 {
21838 if (temp3)
21839 delete arg3;
21840 }
21841 return resultobj;
21842 fail:
21843 {
21844 if (temp3)
21845 delete arg3;
21846 }
21847 return NULL;
21848 }
21849
21850
21851 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21852 PyObject *resultobj;
21853 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21854 long arg2 ;
21855 long arg3 ;
21856 long result;
21857 PyObject * obj0 = 0 ;
21858 PyObject * obj1 = 0 ;
21859 PyObject * obj2 = 0 ;
21860 char *kwnames[] = {
21861 (char *) "self",(char *) "start",(char *) "data", NULL
21862 };
21863
21864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21867 arg2 = (long) SWIG_AsLong(obj1);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 arg3 = (long) SWIG_AsLong(obj2);
21870 if (PyErr_Occurred()) SWIG_fail;
21871 {
21872 PyThreadState* __tstate = wxPyBeginAllowThreads();
21873 result = (long)(arg1)->FindItem(arg2,arg3);
21874
21875 wxPyEndAllowThreads(__tstate);
21876 if (PyErr_Occurred()) SWIG_fail;
21877 }
21878 resultobj = SWIG_FromLong((long)result);
21879 return resultobj;
21880 fail:
21881 return NULL;
21882 }
21883
21884
21885 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
21886 PyObject *resultobj;
21887 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21888 long arg2 ;
21889 wxPoint *arg3 = 0 ;
21890 int arg4 ;
21891 long result;
21892 wxPoint temp3 ;
21893 PyObject * obj0 = 0 ;
21894 PyObject * obj1 = 0 ;
21895 PyObject * obj2 = 0 ;
21896 PyObject * obj3 = 0 ;
21897 char *kwnames[] = {
21898 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
21899 };
21900
21901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21904 arg2 = (long) SWIG_AsLong(obj1);
21905 if (PyErr_Occurred()) SWIG_fail;
21906 {
21907 arg3 = &temp3;
21908 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21909 }
21910 arg4 = (int) SWIG_AsInt(obj3);
21911 if (PyErr_Occurred()) SWIG_fail;
21912 {
21913 PyThreadState* __tstate = wxPyBeginAllowThreads();
21914 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
21915
21916 wxPyEndAllowThreads(__tstate);
21917 if (PyErr_Occurred()) SWIG_fail;
21918 }
21919 resultobj = SWIG_FromLong((long)result);
21920 return resultobj;
21921 fail:
21922 return NULL;
21923 }
21924
21925
21926 static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj;
21928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21929 wxPoint *arg2 = 0 ;
21930 int *arg3 = 0 ;
21931 long result;
21932 wxPoint temp2 ;
21933 int temp3 ;
21934 PyObject * obj0 = 0 ;
21935 PyObject * obj1 = 0 ;
21936 char *kwnames[] = {
21937 (char *) "self",(char *) "point", NULL
21938 };
21939
21940 arg3 = &temp3;
21941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
21942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21944 {
21945 arg2 = &temp2;
21946 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21947 }
21948 {
21949 PyThreadState* __tstate = wxPyBeginAllowThreads();
21950 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
21951
21952 wxPyEndAllowThreads(__tstate);
21953 if (PyErr_Occurred()) SWIG_fail;
21954 }
21955 resultobj = SWIG_FromLong((long)result);
21956 {
21957 PyObject *o = PyInt_FromLong((long) (*arg3));
21958 resultobj = t_output_helper(resultobj,o);
21959 }
21960 return resultobj;
21961 fail:
21962 return NULL;
21963 }
21964
21965
21966 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21967 PyObject *resultobj;
21968 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21969 wxListItem *arg2 = 0 ;
21970 long result;
21971 PyObject * obj0 = 0 ;
21972 PyObject * obj1 = 0 ;
21973 char *kwnames[] = {
21974 (char *) "self",(char *) "info", NULL
21975 };
21976
21977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
21978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21980 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21981 SWIG_POINTER_EXCEPTION | 0)) == -1)
21982 SWIG_fail;
21983 if (arg2 == NULL) {
21984 PyErr_SetString(PyExc_TypeError,"null reference");
21985 SWIG_fail;
21986 }
21987 {
21988 PyThreadState* __tstate = wxPyBeginAllowThreads();
21989 result = (long)(arg1)->InsertItem(*arg2);
21990
21991 wxPyEndAllowThreads(__tstate);
21992 if (PyErr_Occurred()) SWIG_fail;
21993 }
21994 resultobj = SWIG_FromLong((long)result);
21995 return resultobj;
21996 fail:
21997 return NULL;
21998 }
21999
22000
22001 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22002 PyObject *resultobj;
22003 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22004 long arg2 ;
22005 wxString *arg3 = 0 ;
22006 long result;
22007 bool temp3 = False ;
22008 PyObject * obj0 = 0 ;
22009 PyObject * obj1 = 0 ;
22010 PyObject * obj2 = 0 ;
22011 char *kwnames[] = {
22012 (char *) "self",(char *) "index",(char *) "label", NULL
22013 };
22014
22015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22018 arg2 = (long) SWIG_AsLong(obj1);
22019 if (PyErr_Occurred()) SWIG_fail;
22020 {
22021 arg3 = wxString_in_helper(obj2);
22022 if (arg3 == NULL) SWIG_fail;
22023 temp3 = True;
22024 }
22025 {
22026 PyThreadState* __tstate = wxPyBeginAllowThreads();
22027 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
22028
22029 wxPyEndAllowThreads(__tstate);
22030 if (PyErr_Occurred()) SWIG_fail;
22031 }
22032 resultobj = SWIG_FromLong((long)result);
22033 {
22034 if (temp3)
22035 delete arg3;
22036 }
22037 return resultobj;
22038 fail:
22039 {
22040 if (temp3)
22041 delete arg3;
22042 }
22043 return NULL;
22044 }
22045
22046
22047 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22048 PyObject *resultobj;
22049 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22050 long arg2 ;
22051 int arg3 ;
22052 long result;
22053 PyObject * obj0 = 0 ;
22054 PyObject * obj1 = 0 ;
22055 PyObject * obj2 = 0 ;
22056 char *kwnames[] = {
22057 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
22058 };
22059
22060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22063 arg2 = (long) SWIG_AsLong(obj1);
22064 if (PyErr_Occurred()) SWIG_fail;
22065 arg3 = (int) SWIG_AsInt(obj2);
22066 if (PyErr_Occurred()) SWIG_fail;
22067 {
22068 PyThreadState* __tstate = wxPyBeginAllowThreads();
22069 result = (long)(arg1)->InsertItem(arg2,arg3);
22070
22071 wxPyEndAllowThreads(__tstate);
22072 if (PyErr_Occurred()) SWIG_fail;
22073 }
22074 resultobj = SWIG_FromLong((long)result);
22075 return resultobj;
22076 fail:
22077 return NULL;
22078 }
22079
22080
22081 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22082 PyObject *resultobj;
22083 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22084 long arg2 ;
22085 wxString *arg3 = 0 ;
22086 int arg4 ;
22087 long result;
22088 bool temp3 = False ;
22089 PyObject * obj0 = 0 ;
22090 PyObject * obj1 = 0 ;
22091 PyObject * obj2 = 0 ;
22092 PyObject * obj3 = 0 ;
22093 char *kwnames[] = {
22094 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
22095 };
22096
22097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22100 arg2 = (long) SWIG_AsLong(obj1);
22101 if (PyErr_Occurred()) SWIG_fail;
22102 {
22103 arg3 = wxString_in_helper(obj2);
22104 if (arg3 == NULL) SWIG_fail;
22105 temp3 = True;
22106 }
22107 arg4 = (int) SWIG_AsInt(obj3);
22108 if (PyErr_Occurred()) SWIG_fail;
22109 {
22110 PyThreadState* __tstate = wxPyBeginAllowThreads();
22111 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
22112
22113 wxPyEndAllowThreads(__tstate);
22114 if (PyErr_Occurred()) SWIG_fail;
22115 }
22116 resultobj = SWIG_FromLong((long)result);
22117 {
22118 if (temp3)
22119 delete arg3;
22120 }
22121 return resultobj;
22122 fail:
22123 {
22124 if (temp3)
22125 delete arg3;
22126 }
22127 return NULL;
22128 }
22129
22130
22131 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
22132 PyObject *resultobj;
22133 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22134 long arg2 ;
22135 wxListItem *arg3 = 0 ;
22136 long result;
22137 PyObject * obj0 = 0 ;
22138 PyObject * obj1 = 0 ;
22139 PyObject * obj2 = 0 ;
22140 char *kwnames[] = {
22141 (char *) "self",(char *) "col",(char *) "info", NULL
22142 };
22143
22144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22147 arg2 = (long) SWIG_AsLong(obj1);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
22150 SWIG_POINTER_EXCEPTION | 0)) == -1)
22151 SWIG_fail;
22152 if (arg3 == NULL) {
22153 PyErr_SetString(PyExc_TypeError,"null reference");
22154 SWIG_fail;
22155 }
22156 {
22157 PyThreadState* __tstate = wxPyBeginAllowThreads();
22158 result = (long)(arg1)->InsertColumn(arg2,*arg3);
22159
22160 wxPyEndAllowThreads(__tstate);
22161 if (PyErr_Occurred()) SWIG_fail;
22162 }
22163 resultobj = SWIG_FromLong((long)result);
22164 return resultobj;
22165 fail:
22166 return NULL;
22167 }
22168
22169
22170 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22171 PyObject *resultobj;
22172 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22173 long arg2 ;
22174 wxString *arg3 = 0 ;
22175 int arg4 = (int) wxLIST_FORMAT_LEFT ;
22176 int arg5 = (int) -1 ;
22177 long result;
22178 bool temp3 = False ;
22179 PyObject * obj0 = 0 ;
22180 PyObject * obj1 = 0 ;
22181 PyObject * obj2 = 0 ;
22182 PyObject * obj3 = 0 ;
22183 PyObject * obj4 = 0 ;
22184 char *kwnames[] = {
22185 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
22186 };
22187
22188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22191 arg2 = (long) SWIG_AsLong(obj1);
22192 if (PyErr_Occurred()) SWIG_fail;
22193 {
22194 arg3 = wxString_in_helper(obj2);
22195 if (arg3 == NULL) SWIG_fail;
22196 temp3 = True;
22197 }
22198 if (obj3) {
22199 arg4 = (int) SWIG_AsInt(obj3);
22200 if (PyErr_Occurred()) SWIG_fail;
22201 }
22202 if (obj4) {
22203 arg5 = (int) SWIG_AsInt(obj4);
22204 if (PyErr_Occurred()) SWIG_fail;
22205 }
22206 {
22207 PyThreadState* __tstate = wxPyBeginAllowThreads();
22208 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
22209
22210 wxPyEndAllowThreads(__tstate);
22211 if (PyErr_Occurred()) SWIG_fail;
22212 }
22213 resultobj = SWIG_FromLong((long)result);
22214 {
22215 if (temp3)
22216 delete arg3;
22217 }
22218 return resultobj;
22219 fail:
22220 {
22221 if (temp3)
22222 delete arg3;
22223 }
22224 return NULL;
22225 }
22226
22227
22228 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22229 PyObject *resultobj;
22230 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22231 long arg2 ;
22232 PyObject * obj0 = 0 ;
22233 PyObject * obj1 = 0 ;
22234 char *kwnames[] = {
22235 (char *) "self",(char *) "count", NULL
22236 };
22237
22238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
22239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22241 arg2 = (long) SWIG_AsLong(obj1);
22242 if (PyErr_Occurred()) SWIG_fail;
22243 {
22244 PyThreadState* __tstate = wxPyBeginAllowThreads();
22245 (arg1)->SetItemCount(arg2);
22246
22247 wxPyEndAllowThreads(__tstate);
22248 if (PyErr_Occurred()) SWIG_fail;
22249 }
22250 Py_INCREF(Py_None); resultobj = Py_None;
22251 return resultobj;
22252 fail:
22253 return NULL;
22254 }
22255
22256
22257 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
22258 PyObject *resultobj;
22259 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22260 int arg2 ;
22261 int arg3 ;
22262 bool result;
22263 PyObject * obj0 = 0 ;
22264 PyObject * obj1 = 0 ;
22265 PyObject * obj2 = 0 ;
22266 char *kwnames[] = {
22267 (char *) "self",(char *) "dx",(char *) "dy", NULL
22268 };
22269
22270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22273 arg2 = (int) SWIG_AsInt(obj1);
22274 if (PyErr_Occurred()) SWIG_fail;
22275 arg3 = (int) SWIG_AsInt(obj2);
22276 if (PyErr_Occurred()) SWIG_fail;
22277 {
22278 PyThreadState* __tstate = wxPyBeginAllowThreads();
22279 result = (bool)(arg1)->ScrollList(arg2,arg3);
22280
22281 wxPyEndAllowThreads(__tstate);
22282 if (PyErr_Occurred()) SWIG_fail;
22283 }
22284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22285 return resultobj;
22286 fail:
22287 return NULL;
22288 }
22289
22290
22291 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22292 PyObject *resultobj;
22293 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22294 long arg2 ;
22295 wxColour *arg3 = 0 ;
22296 wxColour temp3 ;
22297 PyObject * obj0 = 0 ;
22298 PyObject * obj1 = 0 ;
22299 PyObject * obj2 = 0 ;
22300 char *kwnames[] = {
22301 (char *) "self",(char *) "item",(char *) "col", NULL
22302 };
22303
22304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22307 arg2 = (long) SWIG_AsLong(obj1);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 {
22310 arg3 = &temp3;
22311 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22312 }
22313 {
22314 PyThreadState* __tstate = wxPyBeginAllowThreads();
22315 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
22316
22317 wxPyEndAllowThreads(__tstate);
22318 if (PyErr_Occurred()) SWIG_fail;
22319 }
22320 Py_INCREF(Py_None); resultobj = Py_None;
22321 return resultobj;
22322 fail:
22323 return NULL;
22324 }
22325
22326
22327 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22328 PyObject *resultobj;
22329 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22330 long arg2 ;
22331 wxColour result;
22332 PyObject * obj0 = 0 ;
22333 PyObject * obj1 = 0 ;
22334 char *kwnames[] = {
22335 (char *) "self",(char *) "item", NULL
22336 };
22337
22338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
22339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22341 arg2 = (long) SWIG_AsLong(obj1);
22342 if (PyErr_Occurred()) SWIG_fail;
22343 {
22344 PyThreadState* __tstate = wxPyBeginAllowThreads();
22345 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
22346
22347 wxPyEndAllowThreads(__tstate);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 }
22350 {
22351 wxColour * resultptr;
22352 resultptr = new wxColour((wxColour &) result);
22353 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22354 }
22355 return resultobj;
22356 fail:
22357 return NULL;
22358 }
22359
22360
22361 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22362 PyObject *resultobj;
22363 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22364 long arg2 ;
22365 wxColour *arg3 = 0 ;
22366 wxColour temp3 ;
22367 PyObject * obj0 = 0 ;
22368 PyObject * obj1 = 0 ;
22369 PyObject * obj2 = 0 ;
22370 char *kwnames[] = {
22371 (char *) "self",(char *) "item",(char *) "col", NULL
22372 };
22373
22374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22377 arg2 = (long) SWIG_AsLong(obj1);
22378 if (PyErr_Occurred()) SWIG_fail;
22379 {
22380 arg3 = &temp3;
22381 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22382 }
22383 {
22384 PyThreadState* __tstate = wxPyBeginAllowThreads();
22385 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
22386
22387 wxPyEndAllowThreads(__tstate);
22388 if (PyErr_Occurred()) SWIG_fail;
22389 }
22390 Py_INCREF(Py_None); resultobj = Py_None;
22391 return resultobj;
22392 fail:
22393 return NULL;
22394 }
22395
22396
22397 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22398 PyObject *resultobj;
22399 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22400 long arg2 ;
22401 wxColour result;
22402 PyObject * obj0 = 0 ;
22403 PyObject * obj1 = 0 ;
22404 char *kwnames[] = {
22405 (char *) "self",(char *) "item", NULL
22406 };
22407
22408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
22409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22411 arg2 = (long) SWIG_AsLong(obj1);
22412 if (PyErr_Occurred()) SWIG_fail;
22413 {
22414 PyThreadState* __tstate = wxPyBeginAllowThreads();
22415 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
22416
22417 wxPyEndAllowThreads(__tstate);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 }
22420 {
22421 wxColour * resultptr;
22422 resultptr = new wxColour((wxColour &) result);
22423 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22424 }
22425 return resultobj;
22426 fail:
22427 return NULL;
22428 }
22429
22430
22431 static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22432 PyObject *resultobj;
22433 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22434 PyObject *arg2 = (PyObject *) 0 ;
22435 bool result;
22436 PyObject * obj0 = 0 ;
22437 PyObject * obj1 = 0 ;
22438 char *kwnames[] = {
22439 (char *) "self",(char *) "func", NULL
22440 };
22441
22442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
22443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22445 arg2 = obj1;
22446 {
22447 PyThreadState* __tstate = wxPyBeginAllowThreads();
22448 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
22449
22450 wxPyEndAllowThreads(__tstate);
22451 if (PyErr_Occurred()) SWIG_fail;
22452 }
22453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22454 return resultobj;
22455 fail:
22456 return NULL;
22457 }
22458
22459
22460 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
22461 PyObject *resultobj;
22462 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22463 wxWindow *result;
22464 PyObject * obj0 = 0 ;
22465 char *kwnames[] = {
22466 (char *) "self", NULL
22467 };
22468
22469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
22470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22472 {
22473 PyThreadState* __tstate = wxPyBeginAllowThreads();
22474 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
22475
22476 wxPyEndAllowThreads(__tstate);
22477 if (PyErr_Occurred()) SWIG_fail;
22478 }
22479 {
22480 resultobj = wxPyMake_wxObject(result);
22481 }
22482 return resultobj;
22483 fail:
22484 return NULL;
22485 }
22486
22487
22488 static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
22489 PyObject *obj;
22490 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22491 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
22492 Py_INCREF(obj);
22493 return Py_BuildValue((char *)"");
22494 }
22495 static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
22496 PyObject *resultobj;
22497 wxWindow *arg1 = (wxWindow *) 0 ;
22498 int arg2 = (int) -1 ;
22499 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22500 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22501 wxSize const &arg4_defvalue = wxDefaultSize ;
22502 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22503 long arg5 = (long) wxLC_REPORT ;
22504 wxValidator const &arg6_defvalue = wxDefaultValidator ;
22505 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
22506 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
22507 wxString *arg7 = (wxString *) &arg7_defvalue ;
22508 wxListView *result;
22509 wxPoint temp3 ;
22510 wxSize temp4 ;
22511 bool temp7 = False ;
22512 PyObject * obj0 = 0 ;
22513 PyObject * obj1 = 0 ;
22514 PyObject * obj2 = 0 ;
22515 PyObject * obj3 = 0 ;
22516 PyObject * obj4 = 0 ;
22517 PyObject * obj5 = 0 ;
22518 PyObject * obj6 = 0 ;
22519 char *kwnames[] = {
22520 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22521 };
22522
22523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22526 if (obj1) {
22527 arg2 = (int) SWIG_AsInt(obj1);
22528 if (PyErr_Occurred()) SWIG_fail;
22529 }
22530 if (obj2) {
22531 {
22532 arg3 = &temp3;
22533 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22534 }
22535 }
22536 if (obj3) {
22537 {
22538 arg4 = &temp4;
22539 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22540 }
22541 }
22542 if (obj4) {
22543 arg5 = (long) SWIG_AsLong(obj4);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 if (obj5) {
22547 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
22548 SWIG_POINTER_EXCEPTION | 0)) == -1)
22549 SWIG_fail;
22550 if (arg6 == NULL) {
22551 PyErr_SetString(PyExc_TypeError,"null reference");
22552 SWIG_fail;
22553 }
22554 }
22555 if (obj6) {
22556 {
22557 arg7 = wxString_in_helper(obj6);
22558 if (arg7 == NULL) SWIG_fail;
22559 temp7 = True;
22560 }
22561 }
22562 {
22563 PyThreadState* __tstate = wxPyBeginAllowThreads();
22564 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
22565
22566 wxPyEndAllowThreads(__tstate);
22567 if (PyErr_Occurred()) SWIG_fail;
22568 }
22569 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
22570 {
22571 if (temp7)
22572 delete arg7;
22573 }
22574 return resultobj;
22575 fail:
22576 {
22577 if (temp7)
22578 delete arg7;
22579 }
22580 return NULL;
22581 }
22582
22583
22584 static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
22585 PyObject *resultobj;
22586 wxListView *result;
22587 char *kwnames[] = {
22588 NULL
22589 };
22590
22591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
22592 {
22593 PyThreadState* __tstate = wxPyBeginAllowThreads();
22594 result = (wxListView *)new wxListView();
22595
22596 wxPyEndAllowThreads(__tstate);
22597 if (PyErr_Occurred()) SWIG_fail;
22598 }
22599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
22600 return resultobj;
22601 fail:
22602 return NULL;
22603 }
22604
22605
22606 static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
22607 PyObject *resultobj;
22608 wxListView *arg1 = (wxListView *) 0 ;
22609 wxWindow *arg2 = (wxWindow *) 0 ;
22610 int arg3 = (int) -1 ;
22611 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22612 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22613 wxSize const &arg5_defvalue = wxDefaultSize ;
22614 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22615 long arg6 = (long) wxLC_REPORT ;
22616 wxValidator const &arg7_defvalue = wxDefaultValidator ;
22617 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
22618 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
22619 wxString *arg8 = (wxString *) &arg8_defvalue ;
22620 bool result;
22621 wxPoint temp4 ;
22622 wxSize temp5 ;
22623 bool temp8 = False ;
22624 PyObject * obj0 = 0 ;
22625 PyObject * obj1 = 0 ;
22626 PyObject * obj2 = 0 ;
22627 PyObject * obj3 = 0 ;
22628 PyObject * obj4 = 0 ;
22629 PyObject * obj5 = 0 ;
22630 PyObject * obj6 = 0 ;
22631 PyObject * obj7 = 0 ;
22632 char *kwnames[] = {
22633 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22634 };
22635
22636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
22637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22639 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
22640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22641 if (obj2) {
22642 arg3 = (int) SWIG_AsInt(obj2);
22643 if (PyErr_Occurred()) SWIG_fail;
22644 }
22645 if (obj3) {
22646 {
22647 arg4 = &temp4;
22648 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22649 }
22650 }
22651 if (obj4) {
22652 {
22653 arg5 = &temp5;
22654 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22655 }
22656 }
22657 if (obj5) {
22658 arg6 = (long) SWIG_AsLong(obj5);
22659 if (PyErr_Occurred()) SWIG_fail;
22660 }
22661 if (obj6) {
22662 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
22663 SWIG_POINTER_EXCEPTION | 0)) == -1)
22664 SWIG_fail;
22665 if (arg7 == NULL) {
22666 PyErr_SetString(PyExc_TypeError,"null reference");
22667 SWIG_fail;
22668 }
22669 }
22670 if (obj7) {
22671 {
22672 arg8 = wxString_in_helper(obj7);
22673 if (arg8 == NULL) SWIG_fail;
22674 temp8 = True;
22675 }
22676 }
22677 {
22678 PyThreadState* __tstate = wxPyBeginAllowThreads();
22679 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
22680
22681 wxPyEndAllowThreads(__tstate);
22682 if (PyErr_Occurred()) SWIG_fail;
22683 }
22684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22685 {
22686 if (temp8)
22687 delete arg8;
22688 }
22689 return resultobj;
22690 fail:
22691 {
22692 if (temp8)
22693 delete arg8;
22694 }
22695 return NULL;
22696 }
22697
22698
22699 static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
22700 PyObject *resultobj;
22701 wxListView *arg1 = (wxListView *) 0 ;
22702 long arg2 ;
22703 bool arg3 = (bool) True ;
22704 PyObject * obj0 = 0 ;
22705 PyObject * obj1 = 0 ;
22706 PyObject * obj2 = 0 ;
22707 char *kwnames[] = {
22708 (char *) "self",(char *) "n",(char *) "on", NULL
22709 };
22710
22711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
22712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22714 arg2 = (long) SWIG_AsLong(obj1);
22715 if (PyErr_Occurred()) SWIG_fail;
22716 if (obj2) {
22717 arg3 = (bool) SWIG_AsBool(obj2);
22718 if (PyErr_Occurred()) SWIG_fail;
22719 }
22720 {
22721 PyThreadState* __tstate = wxPyBeginAllowThreads();
22722 (arg1)->Select(arg2,arg3);
22723
22724 wxPyEndAllowThreads(__tstate);
22725 if (PyErr_Occurred()) SWIG_fail;
22726 }
22727 Py_INCREF(Py_None); resultobj = Py_None;
22728 return resultobj;
22729 fail:
22730 return NULL;
22731 }
22732
22733
22734 static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
22735 PyObject *resultobj;
22736 wxListView *arg1 = (wxListView *) 0 ;
22737 long arg2 ;
22738 PyObject * obj0 = 0 ;
22739 PyObject * obj1 = 0 ;
22740 char *kwnames[] = {
22741 (char *) "self",(char *) "index", NULL
22742 };
22743
22744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
22745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22747 arg2 = (long) SWIG_AsLong(obj1);
22748 if (PyErr_Occurred()) SWIG_fail;
22749 {
22750 PyThreadState* __tstate = wxPyBeginAllowThreads();
22751 (arg1)->Focus(arg2);
22752
22753 wxPyEndAllowThreads(__tstate);
22754 if (PyErr_Occurred()) SWIG_fail;
22755 }
22756 Py_INCREF(Py_None); resultobj = Py_None;
22757 return resultobj;
22758 fail:
22759 return NULL;
22760 }
22761
22762
22763 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22764 PyObject *resultobj;
22765 wxListView *arg1 = (wxListView *) 0 ;
22766 long result;
22767 PyObject * obj0 = 0 ;
22768 char *kwnames[] = {
22769 (char *) "self", NULL
22770 };
22771
22772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
22773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22775 {
22776 PyThreadState* __tstate = wxPyBeginAllowThreads();
22777 result = (long)((wxListView const *)arg1)->GetFocusedItem();
22778
22779 wxPyEndAllowThreads(__tstate);
22780 if (PyErr_Occurred()) SWIG_fail;
22781 }
22782 resultobj = SWIG_FromLong((long)result);
22783 return resultobj;
22784 fail:
22785 return NULL;
22786 }
22787
22788
22789 static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22790 PyObject *resultobj;
22791 wxListView *arg1 = (wxListView *) 0 ;
22792 long arg2 ;
22793 long result;
22794 PyObject * obj0 = 0 ;
22795 PyObject * obj1 = 0 ;
22796 char *kwnames[] = {
22797 (char *) "self",(char *) "item", NULL
22798 };
22799
22800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
22801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22803 arg2 = (long) SWIG_AsLong(obj1);
22804 if (PyErr_Occurred()) SWIG_fail;
22805 {
22806 PyThreadState* __tstate = wxPyBeginAllowThreads();
22807 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
22808
22809 wxPyEndAllowThreads(__tstate);
22810 if (PyErr_Occurred()) SWIG_fail;
22811 }
22812 resultobj = SWIG_FromLong((long)result);
22813 return resultobj;
22814 fail:
22815 return NULL;
22816 }
22817
22818
22819 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22820 PyObject *resultobj;
22821 wxListView *arg1 = (wxListView *) 0 ;
22822 long result;
22823 PyObject * obj0 = 0 ;
22824 char *kwnames[] = {
22825 (char *) "self", NULL
22826 };
22827
22828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
22829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22831 {
22832 PyThreadState* __tstate = wxPyBeginAllowThreads();
22833 result = (long)((wxListView const *)arg1)->GetFirstSelected();
22834
22835 wxPyEndAllowThreads(__tstate);
22836 if (PyErr_Occurred()) SWIG_fail;
22837 }
22838 resultobj = SWIG_FromLong((long)result);
22839 return resultobj;
22840 fail:
22841 return NULL;
22842 }
22843
22844
22845 static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22846 PyObject *resultobj;
22847 wxListView *arg1 = (wxListView *) 0 ;
22848 long arg2 ;
22849 bool result;
22850 PyObject * obj0 = 0 ;
22851 PyObject * obj1 = 0 ;
22852 char *kwnames[] = {
22853 (char *) "self",(char *) "index", NULL
22854 };
22855
22856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
22857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22859 arg2 = (long) SWIG_AsLong(obj1);
22860 if (PyErr_Occurred()) SWIG_fail;
22861 {
22862 PyThreadState* __tstate = wxPyBeginAllowThreads();
22863 result = (bool)(arg1)->IsSelected(arg2);
22864
22865 wxPyEndAllowThreads(__tstate);
22866 if (PyErr_Occurred()) SWIG_fail;
22867 }
22868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22869 return resultobj;
22870 fail:
22871 return NULL;
22872 }
22873
22874
22875 static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
22876 PyObject *resultobj;
22877 wxListView *arg1 = (wxListView *) 0 ;
22878 int arg2 ;
22879 int arg3 ;
22880 PyObject * obj0 = 0 ;
22881 PyObject * obj1 = 0 ;
22882 PyObject * obj2 = 0 ;
22883 char *kwnames[] = {
22884 (char *) "self",(char *) "col",(char *) "image", NULL
22885 };
22886
22887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
22888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22890 arg2 = (int) SWIG_AsInt(obj1);
22891 if (PyErr_Occurred()) SWIG_fail;
22892 arg3 = (int) SWIG_AsInt(obj2);
22893 if (PyErr_Occurred()) SWIG_fail;
22894 {
22895 PyThreadState* __tstate = wxPyBeginAllowThreads();
22896 (arg1)->SetColumnImage(arg2,arg3);
22897
22898 wxPyEndAllowThreads(__tstate);
22899 if (PyErr_Occurred()) SWIG_fail;
22900 }
22901 Py_INCREF(Py_None); resultobj = Py_None;
22902 return resultobj;
22903 fail:
22904 return NULL;
22905 }
22906
22907
22908 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
22909 PyObject *resultobj;
22910 wxListView *arg1 = (wxListView *) 0 ;
22911 int arg2 ;
22912 PyObject * obj0 = 0 ;
22913 PyObject * obj1 = 0 ;
22914 char *kwnames[] = {
22915 (char *) "self",(char *) "col", NULL
22916 };
22917
22918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
22919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22921 arg2 = (int) SWIG_AsInt(obj1);
22922 if (PyErr_Occurred()) SWIG_fail;
22923 {
22924 PyThreadState* __tstate = wxPyBeginAllowThreads();
22925 (arg1)->ClearColumnImage(arg2);
22926
22927 wxPyEndAllowThreads(__tstate);
22928 if (PyErr_Occurred()) SWIG_fail;
22929 }
22930 Py_INCREF(Py_None); resultobj = Py_None;
22931 return resultobj;
22932 fail:
22933 return NULL;
22934 }
22935
22936
22937 static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
22938 PyObject *obj;
22939 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22940 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
22941 Py_INCREF(obj);
22942 return Py_BuildValue((char *)"");
22943 }
22944 static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
22945 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
22946 return 1;
22947 }
22948
22949
22950 static PyObject *_wrap_TreeCtrlNameStr_get() {
22951 PyObject *pyobj;
22952
22953 {
22954 #if wxUSE_UNICODE
22955 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
22956 #else
22957 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
22958 #endif
22959 }
22960 return pyobj;
22961 }
22962
22963
22964 static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
22965 PyObject *resultobj;
22966 wxTreeItemId *result;
22967 char *kwnames[] = {
22968 NULL
22969 };
22970
22971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
22972 {
22973 PyThreadState* __tstate = wxPyBeginAllowThreads();
22974 result = (wxTreeItemId *)new wxTreeItemId();
22975
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
22980 return resultobj;
22981 fail:
22982 return NULL;
22983 }
22984
22985
22986 static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
22987 PyObject *resultobj;
22988 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22989 PyObject * obj0 = 0 ;
22990 char *kwnames[] = {
22991 (char *) "self", NULL
22992 };
22993
22994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
22995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22997 {
22998 PyThreadState* __tstate = wxPyBeginAllowThreads();
22999 delete arg1;
23000
23001 wxPyEndAllowThreads(__tstate);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 }
23004 Py_INCREF(Py_None); resultobj = Py_None;
23005 return resultobj;
23006 fail:
23007 return NULL;
23008 }
23009
23010
23011 static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
23012 PyObject *resultobj;
23013 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23014 bool result;
23015 PyObject * obj0 = 0 ;
23016 char *kwnames[] = {
23017 (char *) "self", NULL
23018 };
23019
23020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
23021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23023 {
23024 PyThreadState* __tstate = wxPyBeginAllowThreads();
23025 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
23026
23027 wxPyEndAllowThreads(__tstate);
23028 if (PyErr_Occurred()) SWIG_fail;
23029 }
23030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23031 return resultobj;
23032 fail:
23033 return NULL;
23034 }
23035
23036
23037 static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23038 PyObject *resultobj;
23039 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23040 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
23041 bool result;
23042 PyObject * obj0 = 0 ;
23043 PyObject * obj1 = 0 ;
23044 char *kwnames[] = {
23045 (char *) "self",(char *) "other", NULL
23046 };
23047
23048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
23049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23051 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23053 {
23054 PyThreadState* __tstate = wxPyBeginAllowThreads();
23055 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
23056
23057 wxPyEndAllowThreads(__tstate);
23058 if (PyErr_Occurred()) SWIG_fail;
23059 }
23060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23061 return resultobj;
23062 fail:
23063 return NULL;
23064 }
23065
23066
23067 static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23068 PyObject *resultobj;
23069 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23070 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
23071 bool result;
23072 PyObject * obj0 = 0 ;
23073 PyObject * obj1 = 0 ;
23074 char *kwnames[] = {
23075 (char *) "self",(char *) "other", NULL
23076 };
23077
23078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
23079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23083 {
23084 PyThreadState* __tstate = wxPyBeginAllowThreads();
23085 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
23086
23087 wxPyEndAllowThreads(__tstate);
23088 if (PyErr_Occurred()) SWIG_fail;
23089 }
23090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23091 return resultobj;
23092 fail:
23093 return NULL;
23094 }
23095
23096
23097 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
23098 PyObject *resultobj;
23099 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23100 void *arg2 = (void *) 0 ;
23101 PyObject * obj0 = 0 ;
23102 PyObject * obj1 = 0 ;
23103 char *kwnames[] = {
23104 (char *) "self",(char *) "m_pItem", NULL
23105 };
23106
23107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
23108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23110 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23111 if (arg1) (arg1)->m_pItem = arg2;
23112
23113 Py_INCREF(Py_None); resultobj = Py_None;
23114 return resultobj;
23115 fail:
23116 return NULL;
23117 }
23118
23119
23120 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
23121 PyObject *resultobj;
23122 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23123 void *result;
23124 PyObject * obj0 = 0 ;
23125 char *kwnames[] = {
23126 (char *) "self", NULL
23127 };
23128
23129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
23130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23132 result = (void *) ((arg1)->m_pItem);
23133
23134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
23135 return resultobj;
23136 fail:
23137 return NULL;
23138 }
23139
23140
23141 static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
23142 PyObject *obj;
23143 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23144 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
23145 Py_INCREF(obj);
23146 return Py_BuildValue((char *)"");
23147 }
23148 static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
23149 PyObject *resultobj;
23150 PyObject *arg1 = (PyObject *) NULL ;
23151 wxPyTreeItemData *result;
23152 PyObject * obj0 = 0 ;
23153 char *kwnames[] = {
23154 (char *) "obj", NULL
23155 };
23156
23157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
23158 if (obj0) {
23159 arg1 = obj0;
23160 }
23161 {
23162 PyThreadState* __tstate = wxPyBeginAllowThreads();
23163 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
23164
23165 wxPyEndAllowThreads(__tstate);
23166 if (PyErr_Occurred()) SWIG_fail;
23167 }
23168 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
23169 return resultobj;
23170 fail:
23171 return NULL;
23172 }
23173
23174
23175 static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23176 PyObject *resultobj;
23177 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23178 PyObject *result;
23179 PyObject * obj0 = 0 ;
23180 char *kwnames[] = {
23181 (char *) "self", NULL
23182 };
23183
23184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
23185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23187 {
23188 PyThreadState* __tstate = wxPyBeginAllowThreads();
23189 result = (PyObject *)(arg1)->GetData();
23190
23191 wxPyEndAllowThreads(__tstate);
23192 if (PyErr_Occurred()) SWIG_fail;
23193 }
23194 resultobj = result;
23195 return resultobj;
23196 fail:
23197 return NULL;
23198 }
23199
23200
23201 static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23202 PyObject *resultobj;
23203 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23204 PyObject *arg2 = (PyObject *) 0 ;
23205 PyObject * obj0 = 0 ;
23206 PyObject * obj1 = 0 ;
23207 char *kwnames[] = {
23208 (char *) "self",(char *) "obj", NULL
23209 };
23210
23211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
23212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23214 arg2 = obj1;
23215 {
23216 PyThreadState* __tstate = wxPyBeginAllowThreads();
23217 (arg1)->SetData(arg2);
23218
23219 wxPyEndAllowThreads(__tstate);
23220 if (PyErr_Occurred()) SWIG_fail;
23221 }
23222 Py_INCREF(Py_None); resultobj = Py_None;
23223 return resultobj;
23224 fail:
23225 return NULL;
23226 }
23227
23228
23229 static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23230 PyObject *resultobj;
23231 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23232 wxTreeItemId *result;
23233 PyObject * obj0 = 0 ;
23234 char *kwnames[] = {
23235 (char *) "self", NULL
23236 };
23237
23238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
23239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23241 {
23242 PyThreadState* __tstate = wxPyBeginAllowThreads();
23243 {
23244 wxTreeItemId const &_result_ref = (arg1)->GetId();
23245 result = (wxTreeItemId *) &_result_ref;
23246 }
23247
23248 wxPyEndAllowThreads(__tstate);
23249 if (PyErr_Occurred()) SWIG_fail;
23250 }
23251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
23252 return resultobj;
23253 fail:
23254 return NULL;
23255 }
23256
23257
23258 static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23259 PyObject *resultobj;
23260 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23261 wxTreeItemId *arg2 = 0 ;
23262 PyObject * obj0 = 0 ;
23263 PyObject * obj1 = 0 ;
23264 char *kwnames[] = {
23265 (char *) "self",(char *) "id", NULL
23266 };
23267
23268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
23269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23271 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23272 SWIG_POINTER_EXCEPTION | 0)) == -1)
23273 SWIG_fail;
23274 if (arg2 == NULL) {
23275 PyErr_SetString(PyExc_TypeError,"null reference");
23276 SWIG_fail;
23277 }
23278 {
23279 PyThreadState* __tstate = wxPyBeginAllowThreads();
23280 (arg1)->SetId((wxTreeItemId const &)*arg2);
23281
23282 wxPyEndAllowThreads(__tstate);
23283 if (PyErr_Occurred()) SWIG_fail;
23284 }
23285 Py_INCREF(Py_None); resultobj = Py_None;
23286 return resultobj;
23287 fail:
23288 return NULL;
23289 }
23290
23291
23292 static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
23293 PyObject *resultobj;
23294 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23295 PyObject * obj0 = 0 ;
23296 char *kwnames[] = {
23297 (char *) "self", NULL
23298 };
23299
23300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
23301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23303 {
23304 PyThreadState* __tstate = wxPyBeginAllowThreads();
23305 wxPyTreeItemData_Destroy(arg1);
23306
23307 wxPyEndAllowThreads(__tstate);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 }
23310 Py_INCREF(Py_None); resultobj = Py_None;
23311 return resultobj;
23312 fail:
23313 return NULL;
23314 }
23315
23316
23317 static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
23318 PyObject *obj;
23319 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23320 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
23321 Py_INCREF(obj);
23322 return Py_BuildValue((char *)"");
23323 }
23324 static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23325 PyObject *resultobj;
23326 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
23327 int arg2 = (int) 0 ;
23328 wxTreeEvent *result;
23329 PyObject * obj0 = 0 ;
23330 PyObject * obj1 = 0 ;
23331 char *kwnames[] = {
23332 (char *) "commandType",(char *) "id", NULL
23333 };
23334
23335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
23336 if (obj0) {
23337 arg1 = (wxEventType) SWIG_AsInt(obj0);
23338 if (PyErr_Occurred()) SWIG_fail;
23339 }
23340 if (obj1) {
23341 arg2 = (int) SWIG_AsInt(obj1);
23342 if (PyErr_Occurred()) SWIG_fail;
23343 }
23344 {
23345 PyThreadState* __tstate = wxPyBeginAllowThreads();
23346 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
23347
23348 wxPyEndAllowThreads(__tstate);
23349 if (PyErr_Occurred()) SWIG_fail;
23350 }
23351 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
23352 return resultobj;
23353 fail:
23354 return NULL;
23355 }
23356
23357
23358 static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23359 PyObject *resultobj;
23360 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23361 wxTreeItemId result;
23362 PyObject * obj0 = 0 ;
23363 char *kwnames[] = {
23364 (char *) "self", NULL
23365 };
23366
23367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
23368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23370 {
23371 PyThreadState* __tstate = wxPyBeginAllowThreads();
23372 result = ((wxTreeEvent const *)arg1)->GetItem();
23373
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
23377 {
23378 wxTreeItemId * resultptr;
23379 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23380 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
23381 }
23382 return resultobj;
23383 fail:
23384 return NULL;
23385 }
23386
23387
23388 static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23389 PyObject *resultobj;
23390 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23391 wxTreeItemId *arg2 = 0 ;
23392 PyObject * obj0 = 0 ;
23393 PyObject * obj1 = 0 ;
23394 char *kwnames[] = {
23395 (char *) "self",(char *) "item", NULL
23396 };
23397
23398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
23399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23401 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23402 SWIG_POINTER_EXCEPTION | 0)) == -1)
23403 SWIG_fail;
23404 if (arg2 == NULL) {
23405 PyErr_SetString(PyExc_TypeError,"null reference");
23406 SWIG_fail;
23407 }
23408 {
23409 PyThreadState* __tstate = wxPyBeginAllowThreads();
23410 (arg1)->SetItem((wxTreeItemId const &)*arg2);
23411
23412 wxPyEndAllowThreads(__tstate);
23413 if (PyErr_Occurred()) SWIG_fail;
23414 }
23415 Py_INCREF(Py_None); resultobj = Py_None;
23416 return resultobj;
23417 fail:
23418 return NULL;
23419 }
23420
23421
23422 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23423 PyObject *resultobj;
23424 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23425 wxTreeItemId result;
23426 PyObject * obj0 = 0 ;
23427 char *kwnames[] = {
23428 (char *) "self", NULL
23429 };
23430
23431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
23432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23434 {
23435 PyThreadState* __tstate = wxPyBeginAllowThreads();
23436 result = ((wxTreeEvent const *)arg1)->GetOldItem();
23437
23438 wxPyEndAllowThreads(__tstate);
23439 if (PyErr_Occurred()) SWIG_fail;
23440 }
23441 {
23442 wxTreeItemId * resultptr;
23443 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23444 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
23445 }
23446 return resultobj;
23447 fail:
23448 return NULL;
23449 }
23450
23451
23452 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23453 PyObject *resultobj;
23454 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23455 wxTreeItemId *arg2 = 0 ;
23456 PyObject * obj0 = 0 ;
23457 PyObject * obj1 = 0 ;
23458 char *kwnames[] = {
23459 (char *) "self",(char *) "item", NULL
23460 };
23461
23462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
23463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23466 SWIG_POINTER_EXCEPTION | 0)) == -1)
23467 SWIG_fail;
23468 if (arg2 == NULL) {
23469 PyErr_SetString(PyExc_TypeError,"null reference");
23470 SWIG_fail;
23471 }
23472 {
23473 PyThreadState* __tstate = wxPyBeginAllowThreads();
23474 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
23475
23476 wxPyEndAllowThreads(__tstate);
23477 if (PyErr_Occurred()) SWIG_fail;
23478 }
23479 Py_INCREF(Py_None); resultobj = Py_None;
23480 return resultobj;
23481 fail:
23482 return NULL;
23483 }
23484
23485
23486 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
23487 PyObject *resultobj;
23488 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23489 wxPoint result;
23490 PyObject * obj0 = 0 ;
23491 char *kwnames[] = {
23492 (char *) "self", NULL
23493 };
23494
23495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
23496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23498 {
23499 PyThreadState* __tstate = wxPyBeginAllowThreads();
23500 result = ((wxTreeEvent const *)arg1)->GetPoint();
23501
23502 wxPyEndAllowThreads(__tstate);
23503 if (PyErr_Occurred()) SWIG_fail;
23504 }
23505 {
23506 wxPoint * resultptr;
23507 resultptr = new wxPoint((wxPoint &) result);
23508 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
23509 }
23510 return resultobj;
23511 fail:
23512 return NULL;
23513 }
23514
23515
23516 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
23517 PyObject *resultobj;
23518 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23519 wxPoint *arg2 = 0 ;
23520 wxPoint temp2 ;
23521 PyObject * obj0 = 0 ;
23522 PyObject * obj1 = 0 ;
23523 char *kwnames[] = {
23524 (char *) "self",(char *) "pt", NULL
23525 };
23526
23527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
23528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23530 {
23531 arg2 = &temp2;
23532 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23533 }
23534 {
23535 PyThreadState* __tstate = wxPyBeginAllowThreads();
23536 (arg1)->SetPoint((wxPoint const &)*arg2);
23537
23538 wxPyEndAllowThreads(__tstate);
23539 if (PyErr_Occurred()) SWIG_fail;
23540 }
23541 Py_INCREF(Py_None); resultobj = Py_None;
23542 return resultobj;
23543 fail:
23544 return NULL;
23545 }
23546
23547
23548 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23549 PyObject *resultobj;
23550 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23551 wxKeyEvent *result;
23552 PyObject * obj0 = 0 ;
23553 char *kwnames[] = {
23554 (char *) "self", NULL
23555 };
23556
23557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
23558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23560 {
23561 PyThreadState* __tstate = wxPyBeginAllowThreads();
23562 {
23563 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
23564 result = (wxKeyEvent *) &_result_ref;
23565 }
23566
23567 wxPyEndAllowThreads(__tstate);
23568 if (PyErr_Occurred()) SWIG_fail;
23569 }
23570 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
23571 return resultobj;
23572 fail:
23573 return NULL;
23574 }
23575
23576
23577 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
23578 PyObject *resultobj;
23579 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23580 int result;
23581 PyObject * obj0 = 0 ;
23582 char *kwnames[] = {
23583 (char *) "self", NULL
23584 };
23585
23586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
23587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23589 {
23590 PyThreadState* __tstate = wxPyBeginAllowThreads();
23591 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
23592
23593 wxPyEndAllowThreads(__tstate);
23594 if (PyErr_Occurred()) SWIG_fail;
23595 }
23596 resultobj = SWIG_FromInt((int)result);
23597 return resultobj;
23598 fail:
23599 return NULL;
23600 }
23601
23602
23603 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23604 PyObject *resultobj;
23605 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23606 wxKeyEvent *arg2 = 0 ;
23607 PyObject * obj0 = 0 ;
23608 PyObject * obj1 = 0 ;
23609 char *kwnames[] = {
23610 (char *) "self",(char *) "evt", NULL
23611 };
23612
23613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
23614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
23617 SWIG_POINTER_EXCEPTION | 0)) == -1)
23618 SWIG_fail;
23619 if (arg2 == NULL) {
23620 PyErr_SetString(PyExc_TypeError,"null reference");
23621 SWIG_fail;
23622 }
23623 {
23624 PyThreadState* __tstate = wxPyBeginAllowThreads();
23625 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
23626
23627 wxPyEndAllowThreads(__tstate);
23628 if (PyErr_Occurred()) SWIG_fail;
23629 }
23630 Py_INCREF(Py_None); resultobj = Py_None;
23631 return resultobj;
23632 fail:
23633 return NULL;
23634 }
23635
23636
23637 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
23638 PyObject *resultobj;
23639 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23640 wxString *result;
23641 PyObject * obj0 = 0 ;
23642 char *kwnames[] = {
23643 (char *) "self", NULL
23644 };
23645
23646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
23647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23649 {
23650 PyThreadState* __tstate = wxPyBeginAllowThreads();
23651 {
23652 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
23653 result = (wxString *) &_result_ref;
23654 }
23655
23656 wxPyEndAllowThreads(__tstate);
23657 if (PyErr_Occurred()) SWIG_fail;
23658 }
23659 {
23660 #if wxUSE_UNICODE
23661 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
23662 #else
23663 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
23664 #endif
23665 }
23666 return resultobj;
23667 fail:
23668 return NULL;
23669 }
23670
23671
23672 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
23673 PyObject *resultobj;
23674 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23675 wxString *arg2 = 0 ;
23676 bool temp2 = False ;
23677 PyObject * obj0 = 0 ;
23678 PyObject * obj1 = 0 ;
23679 char *kwnames[] = {
23680 (char *) "self",(char *) "label", NULL
23681 };
23682
23683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
23684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23686 {
23687 arg2 = wxString_in_helper(obj1);
23688 if (arg2 == NULL) SWIG_fail;
23689 temp2 = True;
23690 }
23691 {
23692 PyThreadState* __tstate = wxPyBeginAllowThreads();
23693 (arg1)->SetLabel((wxString const &)*arg2);
23694
23695 wxPyEndAllowThreads(__tstate);
23696 if (PyErr_Occurred()) SWIG_fail;
23697 }
23698 Py_INCREF(Py_None); resultobj = Py_None;
23699 {
23700 if (temp2)
23701 delete arg2;
23702 }
23703 return resultobj;
23704 fail:
23705 {
23706 if (temp2)
23707 delete arg2;
23708 }
23709 return NULL;
23710 }
23711
23712
23713 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
23714 PyObject *resultobj;
23715 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23716 bool result;
23717 PyObject * obj0 = 0 ;
23718 char *kwnames[] = {
23719 (char *) "self", NULL
23720 };
23721
23722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
23723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23725 {
23726 PyThreadState* __tstate = wxPyBeginAllowThreads();
23727 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
23728
23729 wxPyEndAllowThreads(__tstate);
23730 if (PyErr_Occurred()) SWIG_fail;
23731 }
23732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23733 return resultobj;
23734 fail:
23735 return NULL;
23736 }
23737
23738
23739 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
23740 PyObject *resultobj;
23741 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23742 bool arg2 ;
23743 PyObject * obj0 = 0 ;
23744 PyObject * obj1 = 0 ;
23745 char *kwnames[] = {
23746 (char *) "self",(char *) "editCancelled", NULL
23747 };
23748
23749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
23750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23752 arg2 = (bool) SWIG_AsBool(obj1);
23753 if (PyErr_Occurred()) SWIG_fail;
23754 {
23755 PyThreadState* __tstate = wxPyBeginAllowThreads();
23756 (arg1)->SetEditCanceled(arg2);
23757
23758 wxPyEndAllowThreads(__tstate);
23759 if (PyErr_Occurred()) SWIG_fail;
23760 }
23761 Py_INCREF(Py_None); resultobj = Py_None;
23762 return resultobj;
23763 fail:
23764 return NULL;
23765 }
23766
23767
23768 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
23769 PyObject *resultobj;
23770 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23771 wxString *arg2 = 0 ;
23772 bool temp2 = False ;
23773 PyObject * obj0 = 0 ;
23774 PyObject * obj1 = 0 ;
23775 char *kwnames[] = {
23776 (char *) "self",(char *) "toolTip", NULL
23777 };
23778
23779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
23780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23782 {
23783 arg2 = wxString_in_helper(obj1);
23784 if (arg2 == NULL) SWIG_fail;
23785 temp2 = True;
23786 }
23787 {
23788 PyThreadState* __tstate = wxPyBeginAllowThreads();
23789 (arg1)->SetToolTip((wxString const &)*arg2);
23790
23791 wxPyEndAllowThreads(__tstate);
23792 if (PyErr_Occurred()) SWIG_fail;
23793 }
23794 Py_INCREF(Py_None); resultobj = Py_None;
23795 {
23796 if (temp2)
23797 delete arg2;
23798 }
23799 return resultobj;
23800 fail:
23801 {
23802 if (temp2)
23803 delete arg2;
23804 }
23805 return NULL;
23806 }
23807
23808
23809 static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
23810 PyObject *obj;
23811 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23812 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
23813 Py_INCREF(obj);
23814 return Py_BuildValue((char *)"");
23815 }
23816 static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
23817 PyObject *resultobj;
23818 wxWindow *arg1 = (wxWindow *) 0 ;
23819 int arg2 = (int) -1 ;
23820 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23821 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23822 wxSize const &arg4_defvalue = wxDefaultSize ;
23823 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23824 long arg5 = (long) wxTR_DEFAULT_STYLE ;
23825 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23826 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23827 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
23828 wxString *arg7 = (wxString *) &arg7_defvalue ;
23829 wxPyTreeCtrl *result;
23830 wxPoint temp3 ;
23831 wxSize temp4 ;
23832 bool temp7 = False ;
23833 PyObject * obj0 = 0 ;
23834 PyObject * obj1 = 0 ;
23835 PyObject * obj2 = 0 ;
23836 PyObject * obj3 = 0 ;
23837 PyObject * obj4 = 0 ;
23838 PyObject * obj5 = 0 ;
23839 PyObject * obj6 = 0 ;
23840 char *kwnames[] = {
23841 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23842 };
23843
23844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23847 if (obj1) {
23848 arg2 = (int) SWIG_AsInt(obj1);
23849 if (PyErr_Occurred()) SWIG_fail;
23850 }
23851 if (obj2) {
23852 {
23853 arg3 = &temp3;
23854 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23855 }
23856 }
23857 if (obj3) {
23858 {
23859 arg4 = &temp4;
23860 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23861 }
23862 }
23863 if (obj4) {
23864 arg5 = (long) SWIG_AsLong(obj4);
23865 if (PyErr_Occurred()) SWIG_fail;
23866 }
23867 if (obj5) {
23868 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23869 SWIG_POINTER_EXCEPTION | 0)) == -1)
23870 SWIG_fail;
23871 if (arg6 == NULL) {
23872 PyErr_SetString(PyExc_TypeError,"null reference");
23873 SWIG_fail;
23874 }
23875 }
23876 if (obj6) {
23877 {
23878 arg7 = wxString_in_helper(obj6);
23879 if (arg7 == NULL) SWIG_fail;
23880 temp7 = True;
23881 }
23882 }
23883 {
23884 PyThreadState* __tstate = wxPyBeginAllowThreads();
23885 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23886
23887 wxPyEndAllowThreads(__tstate);
23888 if (PyErr_Occurred()) SWIG_fail;
23889 }
23890 {
23891 resultobj = wxPyMake_wxObject(result);
23892 }
23893 {
23894 if (temp7)
23895 delete arg7;
23896 }
23897 return resultobj;
23898 fail:
23899 {
23900 if (temp7)
23901 delete arg7;
23902 }
23903 return NULL;
23904 }
23905
23906
23907 static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
23908 PyObject *resultobj;
23909 wxPyTreeCtrl *result;
23910 char *kwnames[] = {
23911 NULL
23912 };
23913
23914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
23915 {
23916 PyThreadState* __tstate = wxPyBeginAllowThreads();
23917 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
23918
23919 wxPyEndAllowThreads(__tstate);
23920 if (PyErr_Occurred()) SWIG_fail;
23921 }
23922 {
23923 resultobj = wxPyMake_wxObject(result);
23924 }
23925 return resultobj;
23926 fail:
23927 return NULL;
23928 }
23929
23930
23931 static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23932 PyObject *resultobj;
23933 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23934 wxWindow *arg2 = (wxWindow *) 0 ;
23935 int arg3 = (int) -1 ;
23936 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23937 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23938 wxSize const &arg5_defvalue = wxDefaultSize ;
23939 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23940 long arg6 = (long) wxTR_DEFAULT_STYLE ;
23941 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23942 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23943 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
23944 wxString *arg8 = (wxString *) &arg8_defvalue ;
23945 bool result;
23946 wxPoint temp4 ;
23947 wxSize temp5 ;
23948 bool temp8 = False ;
23949 PyObject * obj0 = 0 ;
23950 PyObject * obj1 = 0 ;
23951 PyObject * obj2 = 0 ;
23952 PyObject * obj3 = 0 ;
23953 PyObject * obj4 = 0 ;
23954 PyObject * obj5 = 0 ;
23955 PyObject * obj6 = 0 ;
23956 PyObject * obj7 = 0 ;
23957 char *kwnames[] = {
23958 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23959 };
23960
23961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23966 if (obj2) {
23967 arg3 = (int) SWIG_AsInt(obj2);
23968 if (PyErr_Occurred()) SWIG_fail;
23969 }
23970 if (obj3) {
23971 {
23972 arg4 = &temp4;
23973 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23974 }
23975 }
23976 if (obj4) {
23977 {
23978 arg5 = &temp5;
23979 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23980 }
23981 }
23982 if (obj5) {
23983 arg6 = (long) SWIG_AsLong(obj5);
23984 if (PyErr_Occurred()) SWIG_fail;
23985 }
23986 if (obj6) {
23987 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23988 SWIG_POINTER_EXCEPTION | 0)) == -1)
23989 SWIG_fail;
23990 if (arg7 == NULL) {
23991 PyErr_SetString(PyExc_TypeError,"null reference");
23992 SWIG_fail;
23993 }
23994 }
23995 if (obj7) {
23996 {
23997 arg8 = wxString_in_helper(obj7);
23998 if (arg8 == NULL) SWIG_fail;
23999 temp8 = True;
24000 }
24001 }
24002 {
24003 PyThreadState* __tstate = wxPyBeginAllowThreads();
24004 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24005
24006 wxPyEndAllowThreads(__tstate);
24007 if (PyErr_Occurred()) SWIG_fail;
24008 }
24009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24010 {
24011 if (temp8)
24012 delete arg8;
24013 }
24014 return resultobj;
24015 fail:
24016 {
24017 if (temp8)
24018 delete arg8;
24019 }
24020 return NULL;
24021 }
24022
24023
24024 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24025 PyObject *resultobj;
24026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24027 PyObject *arg2 = (PyObject *) 0 ;
24028 PyObject *arg3 = (PyObject *) 0 ;
24029 PyObject * obj0 = 0 ;
24030 PyObject * obj1 = 0 ;
24031 PyObject * obj2 = 0 ;
24032 char *kwnames[] = {
24033 (char *) "self",(char *) "self",(char *) "_class", NULL
24034 };
24035
24036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24039 arg2 = obj1;
24040 arg3 = obj2;
24041 {
24042 PyThreadState* __tstate = wxPyBeginAllowThreads();
24043 (arg1)->_setCallbackInfo(arg2,arg3);
24044
24045 wxPyEndAllowThreads(__tstate);
24046 if (PyErr_Occurred()) SWIG_fail;
24047 }
24048 Py_INCREF(Py_None); resultobj = Py_None;
24049 return resultobj;
24050 fail:
24051 return NULL;
24052 }
24053
24054
24055 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24056 PyObject *resultobj;
24057 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24058 size_t result;
24059 PyObject * obj0 = 0 ;
24060 char *kwnames[] = {
24061 (char *) "self", NULL
24062 };
24063
24064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
24065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24067 {
24068 PyThreadState* __tstate = wxPyBeginAllowThreads();
24069 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
24070
24071 wxPyEndAllowThreads(__tstate);
24072 if (PyErr_Occurred()) SWIG_fail;
24073 }
24074 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24075 return resultobj;
24076 fail:
24077 return NULL;
24078 }
24079
24080
24081 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
24082 PyObject *resultobj;
24083 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24084 unsigned int result;
24085 PyObject * obj0 = 0 ;
24086 char *kwnames[] = {
24087 (char *) "self", NULL
24088 };
24089
24090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
24091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24093 {
24094 PyThreadState* __tstate = wxPyBeginAllowThreads();
24095 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
24096
24097 wxPyEndAllowThreads(__tstate);
24098 if (PyErr_Occurred()) SWIG_fail;
24099 }
24100 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
24101 return resultobj;
24102 fail:
24103 return NULL;
24104 }
24105
24106
24107 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
24108 PyObject *resultobj;
24109 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24110 unsigned int arg2 ;
24111 PyObject * obj0 = 0 ;
24112 PyObject * obj1 = 0 ;
24113 char *kwnames[] = {
24114 (char *) "self",(char *) "indent", NULL
24115 };
24116
24117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
24118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24120 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
24121 if (PyErr_Occurred()) SWIG_fail;
24122 {
24123 PyThreadState* __tstate = wxPyBeginAllowThreads();
24124 (arg1)->SetIndent(arg2);
24125
24126 wxPyEndAllowThreads(__tstate);
24127 if (PyErr_Occurred()) SWIG_fail;
24128 }
24129 Py_INCREF(Py_None); resultobj = Py_None;
24130 return resultobj;
24131 fail:
24132 return NULL;
24133 }
24134
24135
24136 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
24137 PyObject *resultobj;
24138 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24139 unsigned int result;
24140 PyObject * obj0 = 0 ;
24141 char *kwnames[] = {
24142 (char *) "self", NULL
24143 };
24144
24145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
24146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24148 {
24149 PyThreadState* __tstate = wxPyBeginAllowThreads();
24150 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
24151
24152 wxPyEndAllowThreads(__tstate);
24153 if (PyErr_Occurred()) SWIG_fail;
24154 }
24155 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
24156 return resultobj;
24157 fail:
24158 return NULL;
24159 }
24160
24161
24162 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
24163 PyObject *resultobj;
24164 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24165 unsigned int arg2 ;
24166 PyObject * obj0 = 0 ;
24167 PyObject * obj1 = 0 ;
24168 char *kwnames[] = {
24169 (char *) "self",(char *) "spacing", NULL
24170 };
24171
24172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
24173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24175 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
24176 if (PyErr_Occurred()) SWIG_fail;
24177 {
24178 PyThreadState* __tstate = wxPyBeginAllowThreads();
24179 (arg1)->SetSpacing(arg2);
24180
24181 wxPyEndAllowThreads(__tstate);
24182 if (PyErr_Occurred()) SWIG_fail;
24183 }
24184 Py_INCREF(Py_None); resultobj = Py_None;
24185 return resultobj;
24186 fail:
24187 return NULL;
24188 }
24189
24190
24191 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24192 PyObject *resultobj;
24193 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24194 wxImageList *result;
24195 PyObject * obj0 = 0 ;
24196 char *kwnames[] = {
24197 (char *) "self", NULL
24198 };
24199
24200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
24201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24203 {
24204 PyThreadState* __tstate = wxPyBeginAllowThreads();
24205 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
24206
24207 wxPyEndAllowThreads(__tstate);
24208 if (PyErr_Occurred()) SWIG_fail;
24209 }
24210 {
24211 resultobj = wxPyMake_wxObject(result);
24212 }
24213 return resultobj;
24214 fail:
24215 return NULL;
24216 }
24217
24218
24219 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24220 PyObject *resultobj;
24221 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24222 wxImageList *result;
24223 PyObject * obj0 = 0 ;
24224 char *kwnames[] = {
24225 (char *) "self", NULL
24226 };
24227
24228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
24229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24231 {
24232 PyThreadState* __tstate = wxPyBeginAllowThreads();
24233 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
24234
24235 wxPyEndAllowThreads(__tstate);
24236 if (PyErr_Occurred()) SWIG_fail;
24237 }
24238 {
24239 resultobj = wxPyMake_wxObject(result);
24240 }
24241 return resultobj;
24242 fail:
24243 return NULL;
24244 }
24245
24246
24247 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24248 PyObject *resultobj;
24249 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24250 wxImageList *arg2 = (wxImageList *) 0 ;
24251 PyObject * obj0 = 0 ;
24252 PyObject * obj1 = 0 ;
24253 char *kwnames[] = {
24254 (char *) "self",(char *) "imageList", NULL
24255 };
24256
24257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
24258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24260 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24262 {
24263 PyThreadState* __tstate = wxPyBeginAllowThreads();
24264 (arg1)->SetImageList(arg2);
24265
24266 wxPyEndAllowThreads(__tstate);
24267 if (PyErr_Occurred()) SWIG_fail;
24268 }
24269 Py_INCREF(Py_None); resultobj = Py_None;
24270 return resultobj;
24271 fail:
24272 return NULL;
24273 }
24274
24275
24276 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24277 PyObject *resultobj;
24278 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24279 wxImageList *arg2 = (wxImageList *) 0 ;
24280 PyObject * obj0 = 0 ;
24281 PyObject * obj1 = 0 ;
24282 char *kwnames[] = {
24283 (char *) "self",(char *) "imageList", NULL
24284 };
24285
24286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
24287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24289 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24291 {
24292 PyThreadState* __tstate = wxPyBeginAllowThreads();
24293 (arg1)->SetStateImageList(arg2);
24294
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 Py_INCREF(Py_None); resultobj = Py_None;
24299 return resultobj;
24300 fail:
24301 return NULL;
24302 }
24303
24304
24305 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24306 PyObject *resultobj;
24307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24308 wxImageList *arg2 = (wxImageList *) 0 ;
24309 PyObject * obj0 = 0 ;
24310 PyObject * obj1 = 0 ;
24311 char *kwnames[] = {
24312 (char *) "self",(char *) "imageList", NULL
24313 };
24314
24315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
24316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24318 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24319 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24320 {
24321 PyThreadState* __tstate = wxPyBeginAllowThreads();
24322 (arg1)->AssignImageList(arg2);
24323
24324 wxPyEndAllowThreads(__tstate);
24325 if (PyErr_Occurred()) SWIG_fail;
24326 }
24327 Py_INCREF(Py_None); resultobj = Py_None;
24328 return resultobj;
24329 fail:
24330 return NULL;
24331 }
24332
24333
24334 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24335 PyObject *resultobj;
24336 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24337 wxImageList *arg2 = (wxImageList *) 0 ;
24338 PyObject * obj0 = 0 ;
24339 PyObject * obj1 = 0 ;
24340 char *kwnames[] = {
24341 (char *) "self",(char *) "imageList", NULL
24342 };
24343
24344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
24345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24347 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24348 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24349 {
24350 PyThreadState* __tstate = wxPyBeginAllowThreads();
24351 (arg1)->AssignStateImageList(arg2);
24352
24353 wxPyEndAllowThreads(__tstate);
24354 if (PyErr_Occurred()) SWIG_fail;
24355 }
24356 Py_INCREF(Py_None); resultobj = Py_None;
24357 return resultobj;
24358 fail:
24359 return NULL;
24360 }
24361
24362
24363 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
24364 PyObject *resultobj;
24365 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24366 wxTreeItemId *arg2 = 0 ;
24367 wxString result;
24368 PyObject * obj0 = 0 ;
24369 PyObject * obj1 = 0 ;
24370 char *kwnames[] = {
24371 (char *) "self",(char *) "item", NULL
24372 };
24373
24374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
24375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24378 SWIG_POINTER_EXCEPTION | 0)) == -1)
24379 SWIG_fail;
24380 if (arg2 == NULL) {
24381 PyErr_SetString(PyExc_TypeError,"null reference");
24382 SWIG_fail;
24383 }
24384 {
24385 PyThreadState* __tstate = wxPyBeginAllowThreads();
24386 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
24387
24388 wxPyEndAllowThreads(__tstate);
24389 if (PyErr_Occurred()) SWIG_fail;
24390 }
24391 {
24392 #if wxUSE_UNICODE
24393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24394 #else
24395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24396 #endif
24397 }
24398 return resultobj;
24399 fail:
24400 return NULL;
24401 }
24402
24403
24404 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24405 PyObject *resultobj;
24406 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24407 wxTreeItemId *arg2 = 0 ;
24408 int arg3 = (int) wxTreeItemIcon_Normal ;
24409 int result;
24410 PyObject * obj0 = 0 ;
24411 PyObject * obj1 = 0 ;
24412 PyObject * obj2 = 0 ;
24413 char *kwnames[] = {
24414 (char *) "self",(char *) "item",(char *) "which", NULL
24415 };
24416
24417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) 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 if (obj2) {
24428 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
24429 if (PyErr_Occurred()) SWIG_fail;
24430 }
24431 {
24432 PyThreadState* __tstate = wxPyBeginAllowThreads();
24433 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
24434
24435 wxPyEndAllowThreads(__tstate);
24436 if (PyErr_Occurred()) SWIG_fail;
24437 }
24438 resultobj = SWIG_FromInt((int)result);
24439 return resultobj;
24440 fail:
24441 return NULL;
24442 }
24443
24444
24445 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24446 PyObject *resultobj;
24447 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24448 wxTreeItemId *arg2 = 0 ;
24449 wxPyTreeItemData *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_GetItemData",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 = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
24469
24470 wxPyEndAllowThreads(__tstate);
24471 if (PyErr_Occurred()) SWIG_fail;
24472 }
24473 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
24474 return resultobj;
24475 fail:
24476 return NULL;
24477 }
24478
24479
24480 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
24481 PyObject *resultobj;
24482 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24483 wxTreeItemId *arg2 = 0 ;
24484 PyObject *result;
24485 PyObject * obj0 = 0 ;
24486 PyObject * obj1 = 0 ;
24487 char *kwnames[] = {
24488 (char *) "self",(char *) "item", NULL
24489 };
24490
24491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
24492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24495 SWIG_POINTER_EXCEPTION | 0)) == -1)
24496 SWIG_fail;
24497 if (arg2 == NULL) {
24498 PyErr_SetString(PyExc_TypeError,"null reference");
24499 SWIG_fail;
24500 }
24501 {
24502 PyThreadState* __tstate = wxPyBeginAllowThreads();
24503 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
24504
24505 wxPyEndAllowThreads(__tstate);
24506 if (PyErr_Occurred()) SWIG_fail;
24507 }
24508 resultobj = result;
24509 return resultobj;
24510 fail:
24511 return NULL;
24512 }
24513
24514
24515 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24516 PyObject *resultobj;
24517 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24518 wxTreeItemId *arg2 = 0 ;
24519 wxColour result;
24520 PyObject * obj0 = 0 ;
24521 PyObject * obj1 = 0 ;
24522 char *kwnames[] = {
24523 (char *) "self",(char *) "item", NULL
24524 };
24525
24526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
24527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24529 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24530 SWIG_POINTER_EXCEPTION | 0)) == -1)
24531 SWIG_fail;
24532 if (arg2 == NULL) {
24533 PyErr_SetString(PyExc_TypeError,"null reference");
24534 SWIG_fail;
24535 }
24536 {
24537 PyThreadState* __tstate = wxPyBeginAllowThreads();
24538 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
24539
24540 wxPyEndAllowThreads(__tstate);
24541 if (PyErr_Occurred()) SWIG_fail;
24542 }
24543 {
24544 wxColour * resultptr;
24545 resultptr = new wxColour((wxColour &) result);
24546 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24547 }
24548 return resultobj;
24549 fail:
24550 return NULL;
24551 }
24552
24553
24554 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24555 PyObject *resultobj;
24556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24557 wxTreeItemId *arg2 = 0 ;
24558 wxColour result;
24559 PyObject * obj0 = 0 ;
24560 PyObject * obj1 = 0 ;
24561 char *kwnames[] = {
24562 (char *) "self",(char *) "item", NULL
24563 };
24564
24565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24568 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24569 SWIG_POINTER_EXCEPTION | 0)) == -1)
24570 SWIG_fail;
24571 if (arg2 == NULL) {
24572 PyErr_SetString(PyExc_TypeError,"null reference");
24573 SWIG_fail;
24574 }
24575 {
24576 PyThreadState* __tstate = wxPyBeginAllowThreads();
24577 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
24578
24579 wxPyEndAllowThreads(__tstate);
24580 if (PyErr_Occurred()) SWIG_fail;
24581 }
24582 {
24583 wxColour * resultptr;
24584 resultptr = new wxColour((wxColour &) result);
24585 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24586 }
24587 return resultobj;
24588 fail:
24589 return NULL;
24590 }
24591
24592
24593 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24594 PyObject *resultobj;
24595 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24596 wxTreeItemId *arg2 = 0 ;
24597 wxFont result;
24598 PyObject * obj0 = 0 ;
24599 PyObject * obj1 = 0 ;
24600 char *kwnames[] = {
24601 (char *) "self",(char *) "item", NULL
24602 };
24603
24604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
24605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24607 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24608 SWIG_POINTER_EXCEPTION | 0)) == -1)
24609 SWIG_fail;
24610 if (arg2 == NULL) {
24611 PyErr_SetString(PyExc_TypeError,"null reference");
24612 SWIG_fail;
24613 }
24614 {
24615 PyThreadState* __tstate = wxPyBeginAllowThreads();
24616 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
24617
24618 wxPyEndAllowThreads(__tstate);
24619 if (PyErr_Occurred()) SWIG_fail;
24620 }
24621 {
24622 wxFont * resultptr;
24623 resultptr = new wxFont((wxFont &) result);
24624 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
24625 }
24626 return resultobj;
24627 fail:
24628 return NULL;
24629 }
24630
24631
24632 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
24633 PyObject *resultobj;
24634 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24635 wxTreeItemId *arg2 = 0 ;
24636 wxString *arg3 = 0 ;
24637 bool temp3 = False ;
24638 PyObject * obj0 = 0 ;
24639 PyObject * obj1 = 0 ;
24640 PyObject * obj2 = 0 ;
24641 char *kwnames[] = {
24642 (char *) "self",(char *) "item",(char *) "text", NULL
24643 };
24644
24645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
24646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24649 SWIG_POINTER_EXCEPTION | 0)) == -1)
24650 SWIG_fail;
24651 if (arg2 == NULL) {
24652 PyErr_SetString(PyExc_TypeError,"null reference");
24653 SWIG_fail;
24654 }
24655 {
24656 arg3 = wxString_in_helper(obj2);
24657 if (arg3 == NULL) SWIG_fail;
24658 temp3 = True;
24659 }
24660 {
24661 PyThreadState* __tstate = wxPyBeginAllowThreads();
24662 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
24663
24664 wxPyEndAllowThreads(__tstate);
24665 if (PyErr_Occurred()) SWIG_fail;
24666 }
24667 Py_INCREF(Py_None); resultobj = Py_None;
24668 {
24669 if (temp3)
24670 delete arg3;
24671 }
24672 return resultobj;
24673 fail:
24674 {
24675 if (temp3)
24676 delete arg3;
24677 }
24678 return NULL;
24679 }
24680
24681
24682 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24683 PyObject *resultobj;
24684 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24685 wxTreeItemId *arg2 = 0 ;
24686 int arg3 ;
24687 int arg4 = (int) wxTreeItemIcon_Normal ;
24688 PyObject * obj0 = 0 ;
24689 PyObject * obj1 = 0 ;
24690 PyObject * obj2 = 0 ;
24691 PyObject * obj3 = 0 ;
24692 char *kwnames[] = {
24693 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
24694 };
24695
24696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24699 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24700 SWIG_POINTER_EXCEPTION | 0)) == -1)
24701 SWIG_fail;
24702 if (arg2 == NULL) {
24703 PyErr_SetString(PyExc_TypeError,"null reference");
24704 SWIG_fail;
24705 }
24706 arg3 = (int) SWIG_AsInt(obj2);
24707 if (PyErr_Occurred()) SWIG_fail;
24708 if (obj3) {
24709 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
24710 if (PyErr_Occurred()) SWIG_fail;
24711 }
24712 {
24713 PyThreadState* __tstate = wxPyBeginAllowThreads();
24714 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
24715
24716 wxPyEndAllowThreads(__tstate);
24717 if (PyErr_Occurred()) SWIG_fail;
24718 }
24719 Py_INCREF(Py_None); resultobj = Py_None;
24720 return resultobj;
24721 fail:
24722 return NULL;
24723 }
24724
24725
24726 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24727 PyObject *resultobj;
24728 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24729 wxTreeItemId *arg2 = 0 ;
24730 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
24731 PyObject * obj0 = 0 ;
24732 PyObject * obj1 = 0 ;
24733 PyObject * obj2 = 0 ;
24734 char *kwnames[] = {
24735 (char *) "self",(char *) "item",(char *) "data", NULL
24736 };
24737
24738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24742 SWIG_POINTER_EXCEPTION | 0)) == -1)
24743 SWIG_fail;
24744 if (arg2 == NULL) {
24745 PyErr_SetString(PyExc_TypeError,"null reference");
24746 SWIG_fail;
24747 }
24748 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
24749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24750 {
24751 PyThreadState* __tstate = wxPyBeginAllowThreads();
24752 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
24753
24754 wxPyEndAllowThreads(__tstate);
24755 if (PyErr_Occurred()) SWIG_fail;
24756 }
24757 Py_INCREF(Py_None); resultobj = Py_None;
24758 return resultobj;
24759 fail:
24760 return NULL;
24761 }
24762
24763
24764 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
24765 PyObject *resultobj;
24766 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24767 wxTreeItemId *arg2 = 0 ;
24768 PyObject *arg3 = (PyObject *) 0 ;
24769 PyObject * obj0 = 0 ;
24770 PyObject * obj1 = 0 ;
24771 PyObject * obj2 = 0 ;
24772 char *kwnames[] = {
24773 (char *) "self",(char *) "item",(char *) "obj", NULL
24774 };
24775
24776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24779 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24780 SWIG_POINTER_EXCEPTION | 0)) == -1)
24781 SWIG_fail;
24782 if (arg2 == NULL) {
24783 PyErr_SetString(PyExc_TypeError,"null reference");
24784 SWIG_fail;
24785 }
24786 arg3 = obj2;
24787 {
24788 PyThreadState* __tstate = wxPyBeginAllowThreads();
24789 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
24790
24791 wxPyEndAllowThreads(__tstate);
24792 if (PyErr_Occurred()) SWIG_fail;
24793 }
24794 Py_INCREF(Py_None); resultobj = Py_None;
24795 return resultobj;
24796 fail:
24797 return NULL;
24798 }
24799
24800
24801 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24802 PyObject *resultobj;
24803 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24804 wxTreeItemId *arg2 = 0 ;
24805 bool arg3 = (bool) True ;
24806 PyObject * obj0 = 0 ;
24807 PyObject * obj1 = 0 ;
24808 PyObject * obj2 = 0 ;
24809 char *kwnames[] = {
24810 (char *) "self",(char *) "item",(char *) "has", NULL
24811 };
24812
24813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
24814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24816 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24817 SWIG_POINTER_EXCEPTION | 0)) == -1)
24818 SWIG_fail;
24819 if (arg2 == NULL) {
24820 PyErr_SetString(PyExc_TypeError,"null reference");
24821 SWIG_fail;
24822 }
24823 if (obj2) {
24824 arg3 = (bool) SWIG_AsBool(obj2);
24825 if (PyErr_Occurred()) SWIG_fail;
24826 }
24827 {
24828 PyThreadState* __tstate = wxPyBeginAllowThreads();
24829 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
24830
24831 wxPyEndAllowThreads(__tstate);
24832 if (PyErr_Occurred()) SWIG_fail;
24833 }
24834 Py_INCREF(Py_None); resultobj = Py_None;
24835 return resultobj;
24836 fail:
24837 return NULL;
24838 }
24839
24840
24841 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
24842 PyObject *resultobj;
24843 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24844 wxTreeItemId *arg2 = 0 ;
24845 bool arg3 = (bool) True ;
24846 PyObject * obj0 = 0 ;
24847 PyObject * obj1 = 0 ;
24848 PyObject * obj2 = 0 ;
24849 char *kwnames[] = {
24850 (char *) "self",(char *) "item",(char *) "bold", NULL
24851 };
24852
24853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
24854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24856 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24857 SWIG_POINTER_EXCEPTION | 0)) == -1)
24858 SWIG_fail;
24859 if (arg2 == NULL) {
24860 PyErr_SetString(PyExc_TypeError,"null reference");
24861 SWIG_fail;
24862 }
24863 if (obj2) {
24864 arg3 = (bool) SWIG_AsBool(obj2);
24865 if (PyErr_Occurred()) SWIG_fail;
24866 }
24867 {
24868 PyThreadState* __tstate = wxPyBeginAllowThreads();
24869 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
24870
24871 wxPyEndAllowThreads(__tstate);
24872 if (PyErr_Occurred()) SWIG_fail;
24873 }
24874 Py_INCREF(Py_None); resultobj = Py_None;
24875 return resultobj;
24876 fail:
24877 return NULL;
24878 }
24879
24880
24881 static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
24882 PyObject *resultobj;
24883 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24884 wxTreeItemId *arg2 = 0 ;
24885 bool arg3 = (bool) True ;
24886 PyObject * obj0 = 0 ;
24887 PyObject * obj1 = 0 ;
24888 PyObject * obj2 = 0 ;
24889 char *kwnames[] = {
24890 (char *) "self",(char *) "item",(char *) "highlight", NULL
24891 };
24892
24893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
24894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24896 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24897 SWIG_POINTER_EXCEPTION | 0)) == -1)
24898 SWIG_fail;
24899 if (arg2 == NULL) {
24900 PyErr_SetString(PyExc_TypeError,"null reference");
24901 SWIG_fail;
24902 }
24903 if (obj2) {
24904 arg3 = (bool) SWIG_AsBool(obj2);
24905 if (PyErr_Occurred()) SWIG_fail;
24906 }
24907 {
24908 PyThreadState* __tstate = wxPyBeginAllowThreads();
24909 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
24910
24911 wxPyEndAllowThreads(__tstate);
24912 if (PyErr_Occurred()) SWIG_fail;
24913 }
24914 Py_INCREF(Py_None); resultobj = Py_None;
24915 return resultobj;
24916 fail:
24917 return NULL;
24918 }
24919
24920
24921 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24922 PyObject *resultobj;
24923 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24924 wxTreeItemId *arg2 = 0 ;
24925 wxColour *arg3 = 0 ;
24926 wxColour temp3 ;
24927 PyObject * obj0 = 0 ;
24928 PyObject * obj1 = 0 ;
24929 PyObject * obj2 = 0 ;
24930 char *kwnames[] = {
24931 (char *) "self",(char *) "item",(char *) "col", NULL
24932 };
24933
24934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24937 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24938 SWIG_POINTER_EXCEPTION | 0)) == -1)
24939 SWIG_fail;
24940 if (arg2 == NULL) {
24941 PyErr_SetString(PyExc_TypeError,"null reference");
24942 SWIG_fail;
24943 }
24944 {
24945 arg3 = &temp3;
24946 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24947 }
24948 {
24949 PyThreadState* __tstate = wxPyBeginAllowThreads();
24950 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
24951
24952 wxPyEndAllowThreads(__tstate);
24953 if (PyErr_Occurred()) SWIG_fail;
24954 }
24955 Py_INCREF(Py_None); resultobj = Py_None;
24956 return resultobj;
24957 fail:
24958 return NULL;
24959 }
24960
24961
24962 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24963 PyObject *resultobj;
24964 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24965 wxTreeItemId *arg2 = 0 ;
24966 wxColour *arg3 = 0 ;
24967 wxColour temp3 ;
24968 PyObject * obj0 = 0 ;
24969 PyObject * obj1 = 0 ;
24970 PyObject * obj2 = 0 ;
24971 char *kwnames[] = {
24972 (char *) "self",(char *) "item",(char *) "col", NULL
24973 };
24974
24975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24978 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24979 SWIG_POINTER_EXCEPTION | 0)) == -1)
24980 SWIG_fail;
24981 if (arg2 == NULL) {
24982 PyErr_SetString(PyExc_TypeError,"null reference");
24983 SWIG_fail;
24984 }
24985 {
24986 arg3 = &temp3;
24987 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24988 }
24989 {
24990 PyThreadState* __tstate = wxPyBeginAllowThreads();
24991 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
24992
24993 wxPyEndAllowThreads(__tstate);
24994 if (PyErr_Occurred()) SWIG_fail;
24995 }
24996 Py_INCREF(Py_None); resultobj = Py_None;
24997 return resultobj;
24998 fail:
24999 return NULL;
25000 }
25001
25002
25003 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25004 PyObject *resultobj;
25005 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25006 wxTreeItemId *arg2 = 0 ;
25007 wxFont *arg3 = 0 ;
25008 PyObject * obj0 = 0 ;
25009 PyObject * obj1 = 0 ;
25010 PyObject * obj2 = 0 ;
25011 char *kwnames[] = {
25012 (char *) "self",(char *) "item",(char *) "font", NULL
25013 };
25014
25015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
25016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25019 SWIG_POINTER_EXCEPTION | 0)) == -1)
25020 SWIG_fail;
25021 if (arg2 == NULL) {
25022 PyErr_SetString(PyExc_TypeError,"null reference");
25023 SWIG_fail;
25024 }
25025 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
25026 SWIG_POINTER_EXCEPTION | 0)) == -1)
25027 SWIG_fail;
25028 if (arg3 == NULL) {
25029 PyErr_SetString(PyExc_TypeError,"null reference");
25030 SWIG_fail;
25031 }
25032 {
25033 PyThreadState* __tstate = wxPyBeginAllowThreads();
25034 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
25035
25036 wxPyEndAllowThreads(__tstate);
25037 if (PyErr_Occurred()) SWIG_fail;
25038 }
25039 Py_INCREF(Py_None); resultobj = Py_None;
25040 return resultobj;
25041 fail:
25042 return NULL;
25043 }
25044
25045
25046 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25047 PyObject *resultobj;
25048 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25049 wxTreeItemId *arg2 = 0 ;
25050 bool result;
25051 PyObject * obj0 = 0 ;
25052 PyObject * obj1 = 0 ;
25053 char *kwnames[] = {
25054 (char *) "self",(char *) "item", NULL
25055 };
25056
25057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
25058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25060 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25061 SWIG_POINTER_EXCEPTION | 0)) == -1)
25062 SWIG_fail;
25063 if (arg2 == NULL) {
25064 PyErr_SetString(PyExc_TypeError,"null reference");
25065 SWIG_fail;
25066 }
25067 {
25068 PyThreadState* __tstate = wxPyBeginAllowThreads();
25069 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
25070
25071 wxPyEndAllowThreads(__tstate);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25075 return resultobj;
25076 fail:
25077 return NULL;
25078 }
25079
25080
25081 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25082 PyObject *resultobj;
25083 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25084 wxTreeItemId *arg2 = 0 ;
25085 bool result;
25086 PyObject * obj0 = 0 ;
25087 PyObject * obj1 = 0 ;
25088 char *kwnames[] = {
25089 (char *) "self",(char *) "item", NULL
25090 };
25091
25092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
25093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25095 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25096 SWIG_POINTER_EXCEPTION | 0)) == -1)
25097 SWIG_fail;
25098 if (arg2 == NULL) {
25099 PyErr_SetString(PyExc_TypeError,"null reference");
25100 SWIG_fail;
25101 }
25102 {
25103 PyThreadState* __tstate = wxPyBeginAllowThreads();
25104 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
25105
25106 wxPyEndAllowThreads(__tstate);
25107 if (PyErr_Occurred()) SWIG_fail;
25108 }
25109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25110 return resultobj;
25111 fail:
25112 return NULL;
25113 }
25114
25115
25116 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
25117 PyObject *resultobj;
25118 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25119 wxTreeItemId *arg2 = 0 ;
25120 bool result;
25121 PyObject * obj0 = 0 ;
25122 PyObject * obj1 = 0 ;
25123 char *kwnames[] = {
25124 (char *) "self",(char *) "item", NULL
25125 };
25126
25127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
25128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25130 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25131 SWIG_POINTER_EXCEPTION | 0)) == -1)
25132 SWIG_fail;
25133 if (arg2 == NULL) {
25134 PyErr_SetString(PyExc_TypeError,"null reference");
25135 SWIG_fail;
25136 }
25137 {
25138 PyThreadState* __tstate = wxPyBeginAllowThreads();
25139 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
25140
25141 wxPyEndAllowThreads(__tstate);
25142 if (PyErr_Occurred()) SWIG_fail;
25143 }
25144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25145 return resultobj;
25146 fail:
25147 return NULL;
25148 }
25149
25150
25151 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
25152 PyObject *resultobj;
25153 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25154 wxTreeItemId *arg2 = 0 ;
25155 bool result;
25156 PyObject * obj0 = 0 ;
25157 PyObject * obj1 = 0 ;
25158 char *kwnames[] = {
25159 (char *) "self",(char *) "item", NULL
25160 };
25161
25162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
25163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25165 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25166 SWIG_POINTER_EXCEPTION | 0)) == -1)
25167 SWIG_fail;
25168 if (arg2 == NULL) {
25169 PyErr_SetString(PyExc_TypeError,"null reference");
25170 SWIG_fail;
25171 }
25172 {
25173 PyThreadState* __tstate = wxPyBeginAllowThreads();
25174 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
25175
25176 wxPyEndAllowThreads(__tstate);
25177 if (PyErr_Occurred()) SWIG_fail;
25178 }
25179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25180 return resultobj;
25181 fail:
25182 return NULL;
25183 }
25184
25185
25186 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
25187 PyObject *resultobj;
25188 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25189 wxTreeItemId *arg2 = 0 ;
25190 bool result;
25191 PyObject * obj0 = 0 ;
25192 PyObject * obj1 = 0 ;
25193 char *kwnames[] = {
25194 (char *) "self",(char *) "item", NULL
25195 };
25196
25197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
25198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25200 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25201 SWIG_POINTER_EXCEPTION | 0)) == -1)
25202 SWIG_fail;
25203 if (arg2 == NULL) {
25204 PyErr_SetString(PyExc_TypeError,"null reference");
25205 SWIG_fail;
25206 }
25207 {
25208 PyThreadState* __tstate = wxPyBeginAllowThreads();
25209 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
25210
25211 wxPyEndAllowThreads(__tstate);
25212 if (PyErr_Occurred()) SWIG_fail;
25213 }
25214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25215 return resultobj;
25216 fail:
25217 return NULL;
25218 }
25219
25220
25221 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
25222 PyObject *resultobj;
25223 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25224 wxTreeItemId *arg2 = 0 ;
25225 bool arg3 = (bool) True ;
25226 size_t result;
25227 PyObject * obj0 = 0 ;
25228 PyObject * obj1 = 0 ;
25229 PyObject * obj2 = 0 ;
25230 char *kwnames[] = {
25231 (char *) "self",(char *) "item",(char *) "recursively", NULL
25232 };
25233
25234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
25235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25237 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25238 SWIG_POINTER_EXCEPTION | 0)) == -1)
25239 SWIG_fail;
25240 if (arg2 == NULL) {
25241 PyErr_SetString(PyExc_TypeError,"null reference");
25242 SWIG_fail;
25243 }
25244 if (obj2) {
25245 arg3 = (bool) SWIG_AsBool(obj2);
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
25248 {
25249 PyThreadState* __tstate = wxPyBeginAllowThreads();
25250 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
25251
25252 wxPyEndAllowThreads(__tstate);
25253 if (PyErr_Occurred()) SWIG_fail;
25254 }
25255 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25256 return resultobj;
25257 fail:
25258 return NULL;
25259 }
25260
25261
25262 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25263 PyObject *resultobj;
25264 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25265 wxTreeItemId result;
25266 PyObject * obj0 = 0 ;
25267 char *kwnames[] = {
25268 (char *) "self", NULL
25269 };
25270
25271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
25272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25274 {
25275 PyThreadState* __tstate = wxPyBeginAllowThreads();
25276 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
25277
25278 wxPyEndAllowThreads(__tstate);
25279 if (PyErr_Occurred()) SWIG_fail;
25280 }
25281 {
25282 wxTreeItemId * resultptr;
25283 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25284 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25285 }
25286 return resultobj;
25287 fail:
25288 return NULL;
25289 }
25290
25291
25292 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
25293 PyObject *resultobj;
25294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25295 wxTreeItemId result;
25296 PyObject * obj0 = 0 ;
25297 char *kwnames[] = {
25298 (char *) "self", NULL
25299 };
25300
25301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
25302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25304 {
25305 PyThreadState* __tstate = wxPyBeginAllowThreads();
25306 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
25307
25308 wxPyEndAllowThreads(__tstate);
25309 if (PyErr_Occurred()) SWIG_fail;
25310 }
25311 {
25312 wxTreeItemId * resultptr;
25313 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25314 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25315 }
25316 return resultobj;
25317 fail:
25318 return NULL;
25319 }
25320
25321
25322 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
25323 PyObject *resultobj;
25324 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25325 PyObject *result;
25326 PyObject * obj0 = 0 ;
25327 char *kwnames[] = {
25328 (char *) "self", NULL
25329 };
25330
25331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
25332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25334 {
25335 PyThreadState* __tstate = wxPyBeginAllowThreads();
25336 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
25337
25338 wxPyEndAllowThreads(__tstate);
25339 if (PyErr_Occurred()) SWIG_fail;
25340 }
25341 resultobj = result;
25342 return resultobj;
25343 fail:
25344 return NULL;
25345 }
25346
25347
25348 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
25349 PyObject *resultobj;
25350 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25351 wxTreeItemId *arg2 = 0 ;
25352 wxTreeItemId result;
25353 PyObject * obj0 = 0 ;
25354 PyObject * obj1 = 0 ;
25355 char *kwnames[] = {
25356 (char *) "self",(char *) "item", NULL
25357 };
25358
25359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
25360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25362 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25363 SWIG_POINTER_EXCEPTION | 0)) == -1)
25364 SWIG_fail;
25365 if (arg2 == NULL) {
25366 PyErr_SetString(PyExc_TypeError,"null reference");
25367 SWIG_fail;
25368 }
25369 {
25370 PyThreadState* __tstate = wxPyBeginAllowThreads();
25371 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
25372
25373 wxPyEndAllowThreads(__tstate);
25374 if (PyErr_Occurred()) SWIG_fail;
25375 }
25376 {
25377 wxTreeItemId * resultptr;
25378 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25379 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25380 }
25381 return resultobj;
25382 fail:
25383 return NULL;
25384 }
25385
25386
25387 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25388 PyObject *resultobj;
25389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25390 wxTreeItemId *arg2 = 0 ;
25391 PyObject *result;
25392 PyObject * obj0 = 0 ;
25393 PyObject * obj1 = 0 ;
25394 char *kwnames[] = {
25395 (char *) "self",(char *) "item", NULL
25396 };
25397
25398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
25399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25401 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25402 SWIG_POINTER_EXCEPTION | 0)) == -1)
25403 SWIG_fail;
25404 if (arg2 == NULL) {
25405 PyErr_SetString(PyExc_TypeError,"null reference");
25406 SWIG_fail;
25407 }
25408 {
25409 PyThreadState* __tstate = wxPyBeginAllowThreads();
25410 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
25411
25412 wxPyEndAllowThreads(__tstate);
25413 if (PyErr_Occurred()) SWIG_fail;
25414 }
25415 resultobj = result;
25416 return resultobj;
25417 fail:
25418 return NULL;
25419 }
25420
25421
25422 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25423 PyObject *resultobj;
25424 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25425 wxTreeItemId *arg2 = 0 ;
25426 void *arg3 = (void *) 0 ;
25427 PyObject *result;
25428 PyObject * obj0 = 0 ;
25429 PyObject * obj1 = 0 ;
25430 PyObject * obj2 = 0 ;
25431 char *kwnames[] = {
25432 (char *) "self",(char *) "item",(char *) "cookie", NULL
25433 };
25434
25435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
25436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25438 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25439 SWIG_POINTER_EXCEPTION | 0)) == -1)
25440 SWIG_fail;
25441 if (arg2 == NULL) {
25442 PyErr_SetString(PyExc_TypeError,"null reference");
25443 SWIG_fail;
25444 }
25445 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25446 {
25447 PyThreadState* __tstate = wxPyBeginAllowThreads();
25448 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
25449
25450 wxPyEndAllowThreads(__tstate);
25451 if (PyErr_Occurred()) SWIG_fail;
25452 }
25453 resultobj = result;
25454 return resultobj;
25455 fail:
25456 return NULL;
25457 }
25458
25459
25460 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25461 PyObject *resultobj;
25462 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25463 wxTreeItemId *arg2 = 0 ;
25464 wxTreeItemId result;
25465 PyObject * obj0 = 0 ;
25466 PyObject * obj1 = 0 ;
25467 char *kwnames[] = {
25468 (char *) "self",(char *) "item", NULL
25469 };
25470
25471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
25472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25474 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25475 SWIG_POINTER_EXCEPTION | 0)) == -1)
25476 SWIG_fail;
25477 if (arg2 == NULL) {
25478 PyErr_SetString(PyExc_TypeError,"null reference");
25479 SWIG_fail;
25480 }
25481 {
25482 PyThreadState* __tstate = wxPyBeginAllowThreads();
25483 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
25484
25485 wxPyEndAllowThreads(__tstate);
25486 if (PyErr_Occurred()) SWIG_fail;
25487 }
25488 {
25489 wxTreeItemId * resultptr;
25490 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25491 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25492 }
25493 return resultobj;
25494 fail:
25495 return NULL;
25496 }
25497
25498
25499 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
25500 PyObject *resultobj;
25501 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25502 wxTreeItemId *arg2 = 0 ;
25503 wxTreeItemId result;
25504 PyObject * obj0 = 0 ;
25505 PyObject * obj1 = 0 ;
25506 char *kwnames[] = {
25507 (char *) "self",(char *) "item", NULL
25508 };
25509
25510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
25511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25513 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25514 SWIG_POINTER_EXCEPTION | 0)) == -1)
25515 SWIG_fail;
25516 if (arg2 == NULL) {
25517 PyErr_SetString(PyExc_TypeError,"null reference");
25518 SWIG_fail;
25519 }
25520 {
25521 PyThreadState* __tstate = wxPyBeginAllowThreads();
25522 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
25523
25524 wxPyEndAllowThreads(__tstate);
25525 if (PyErr_Occurred()) SWIG_fail;
25526 }
25527 {
25528 wxTreeItemId * resultptr;
25529 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25530 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25531 }
25532 return resultobj;
25533 fail:
25534 return NULL;
25535 }
25536
25537
25538 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
25539 PyObject *resultobj;
25540 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25541 wxTreeItemId *arg2 = 0 ;
25542 wxTreeItemId result;
25543 PyObject * obj0 = 0 ;
25544 PyObject * obj1 = 0 ;
25545 char *kwnames[] = {
25546 (char *) "self",(char *) "item", NULL
25547 };
25548
25549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
25550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25552 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25553 SWIG_POINTER_EXCEPTION | 0)) == -1)
25554 SWIG_fail;
25555 if (arg2 == NULL) {
25556 PyErr_SetString(PyExc_TypeError,"null reference");
25557 SWIG_fail;
25558 }
25559 {
25560 PyThreadState* __tstate = wxPyBeginAllowThreads();
25561 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
25562
25563 wxPyEndAllowThreads(__tstate);
25564 if (PyErr_Occurred()) SWIG_fail;
25565 }
25566 {
25567 wxTreeItemId * resultptr;
25568 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25569 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25570 }
25571 return resultobj;
25572 fail:
25573 return NULL;
25574 }
25575
25576
25577 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25578 PyObject *resultobj;
25579 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25580 wxTreeItemId result;
25581 PyObject * obj0 = 0 ;
25582 char *kwnames[] = {
25583 (char *) "self", NULL
25584 };
25585
25586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
25587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25589 {
25590 PyThreadState* __tstate = wxPyBeginAllowThreads();
25591 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
25592
25593 wxPyEndAllowThreads(__tstate);
25594 if (PyErr_Occurred()) SWIG_fail;
25595 }
25596 {
25597 wxTreeItemId * resultptr;
25598 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25599 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25600 }
25601 return resultobj;
25602 fail:
25603 return NULL;
25604 }
25605
25606
25607 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25608 PyObject *resultobj;
25609 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25610 wxTreeItemId *arg2 = 0 ;
25611 wxTreeItemId result;
25612 PyObject * obj0 = 0 ;
25613 PyObject * obj1 = 0 ;
25614 char *kwnames[] = {
25615 (char *) "self",(char *) "item", NULL
25616 };
25617
25618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
25619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25621 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25622 SWIG_POINTER_EXCEPTION | 0)) == -1)
25623 SWIG_fail;
25624 if (arg2 == NULL) {
25625 PyErr_SetString(PyExc_TypeError,"null reference");
25626 SWIG_fail;
25627 }
25628 {
25629 PyThreadState* __tstate = wxPyBeginAllowThreads();
25630 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
25631
25632 wxPyEndAllowThreads(__tstate);
25633 if (PyErr_Occurred()) SWIG_fail;
25634 }
25635 {
25636 wxTreeItemId * resultptr;
25637 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25638 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25639 }
25640 return resultobj;
25641 fail:
25642 return NULL;
25643 }
25644
25645
25646 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25647 PyObject *resultobj;
25648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25649 wxTreeItemId *arg2 = 0 ;
25650 wxTreeItemId result;
25651 PyObject * obj0 = 0 ;
25652 PyObject * obj1 = 0 ;
25653 char *kwnames[] = {
25654 (char *) "self",(char *) "item", NULL
25655 };
25656
25657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
25658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25661 SWIG_POINTER_EXCEPTION | 0)) == -1)
25662 SWIG_fail;
25663 if (arg2 == NULL) {
25664 PyErr_SetString(PyExc_TypeError,"null reference");
25665 SWIG_fail;
25666 }
25667 {
25668 PyThreadState* __tstate = wxPyBeginAllowThreads();
25669 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
25670
25671 wxPyEndAllowThreads(__tstate);
25672 if (PyErr_Occurred()) SWIG_fail;
25673 }
25674 {
25675 wxTreeItemId * resultptr;
25676 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25677 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25678 }
25679 return resultobj;
25680 fail:
25681 return NULL;
25682 }
25683
25684
25685 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
25686 PyObject *resultobj;
25687 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25688 wxString *arg2 = 0 ;
25689 int arg3 = (int) -1 ;
25690 int arg4 = (int) -1 ;
25691 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
25692 wxTreeItemId result;
25693 bool temp2 = False ;
25694 PyObject * obj0 = 0 ;
25695 PyObject * obj1 = 0 ;
25696 PyObject * obj2 = 0 ;
25697 PyObject * obj3 = 0 ;
25698 PyObject * obj4 = 0 ;
25699 char *kwnames[] = {
25700 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25701 };
25702
25703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
25704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25706 {
25707 arg2 = wxString_in_helper(obj1);
25708 if (arg2 == NULL) SWIG_fail;
25709 temp2 = True;
25710 }
25711 if (obj2) {
25712 arg3 = (int) SWIG_AsInt(obj2);
25713 if (PyErr_Occurred()) SWIG_fail;
25714 }
25715 if (obj3) {
25716 arg4 = (int) SWIG_AsInt(obj3);
25717 if (PyErr_Occurred()) SWIG_fail;
25718 }
25719 if (obj4) {
25720 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
25721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25722 }
25723 {
25724 PyThreadState* __tstate = wxPyBeginAllowThreads();
25725 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
25726
25727 wxPyEndAllowThreads(__tstate);
25728 if (PyErr_Occurred()) SWIG_fail;
25729 }
25730 {
25731 wxTreeItemId * resultptr;
25732 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25733 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25734 }
25735 {
25736 if (temp2)
25737 delete arg2;
25738 }
25739 return resultobj;
25740 fail:
25741 {
25742 if (temp2)
25743 delete arg2;
25744 }
25745 return NULL;
25746 }
25747
25748
25749 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25750 PyObject *resultobj;
25751 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25752 wxTreeItemId *arg2 = 0 ;
25753 wxString *arg3 = 0 ;
25754 int arg4 = (int) -1 ;
25755 int arg5 = (int) -1 ;
25756 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
25757 wxTreeItemId result;
25758 bool temp3 = False ;
25759 PyObject * obj0 = 0 ;
25760 PyObject * obj1 = 0 ;
25761 PyObject * obj2 = 0 ;
25762 PyObject * obj3 = 0 ;
25763 PyObject * obj4 = 0 ;
25764 PyObject * obj5 = 0 ;
25765 char *kwnames[] = {
25766 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25767 };
25768
25769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25772 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25773 SWIG_POINTER_EXCEPTION | 0)) == -1)
25774 SWIG_fail;
25775 if (arg2 == NULL) {
25776 PyErr_SetString(PyExc_TypeError,"null reference");
25777 SWIG_fail;
25778 }
25779 {
25780 arg3 = wxString_in_helper(obj2);
25781 if (arg3 == NULL) SWIG_fail;
25782 temp3 = True;
25783 }
25784 if (obj3) {
25785 arg4 = (int) SWIG_AsInt(obj3);
25786 if (PyErr_Occurred()) SWIG_fail;
25787 }
25788 if (obj4) {
25789 arg5 = (int) SWIG_AsInt(obj4);
25790 if (PyErr_Occurred()) SWIG_fail;
25791 }
25792 if (obj5) {
25793 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
25794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25795 }
25796 {
25797 PyThreadState* __tstate = wxPyBeginAllowThreads();
25798 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
25799
25800 wxPyEndAllowThreads(__tstate);
25801 if (PyErr_Occurred()) SWIG_fail;
25802 }
25803 {
25804 wxTreeItemId * resultptr;
25805 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25806 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25807 }
25808 {
25809 if (temp3)
25810 delete arg3;
25811 }
25812 return resultobj;
25813 fail:
25814 {
25815 if (temp3)
25816 delete arg3;
25817 }
25818 return NULL;
25819 }
25820
25821
25822 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25823 PyObject *resultobj;
25824 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25825 wxTreeItemId *arg2 = 0 ;
25826 wxTreeItemId *arg3 = 0 ;
25827 wxString *arg4 = 0 ;
25828 int arg5 = (int) -1 ;
25829 int arg6 = (int) -1 ;
25830 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
25831 wxTreeItemId result;
25832 bool temp4 = False ;
25833 PyObject * obj0 = 0 ;
25834 PyObject * obj1 = 0 ;
25835 PyObject * obj2 = 0 ;
25836 PyObject * obj3 = 0 ;
25837 PyObject * obj4 = 0 ;
25838 PyObject * obj5 = 0 ;
25839 PyObject * obj6 = 0 ;
25840 char *kwnames[] = {
25841 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25842 };
25843
25844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25847 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25848 SWIG_POINTER_EXCEPTION | 0)) == -1)
25849 SWIG_fail;
25850 if (arg2 == NULL) {
25851 PyErr_SetString(PyExc_TypeError,"null reference");
25852 SWIG_fail;
25853 }
25854 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
25855 SWIG_POINTER_EXCEPTION | 0)) == -1)
25856 SWIG_fail;
25857 if (arg3 == NULL) {
25858 PyErr_SetString(PyExc_TypeError,"null reference");
25859 SWIG_fail;
25860 }
25861 {
25862 arg4 = wxString_in_helper(obj3);
25863 if (arg4 == NULL) SWIG_fail;
25864 temp4 = True;
25865 }
25866 if (obj4) {
25867 arg5 = (int) SWIG_AsInt(obj4);
25868 if (PyErr_Occurred()) SWIG_fail;
25869 }
25870 if (obj5) {
25871 arg6 = (int) SWIG_AsInt(obj5);
25872 if (PyErr_Occurred()) SWIG_fail;
25873 }
25874 if (obj6) {
25875 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
25876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25877 }
25878 {
25879 PyThreadState* __tstate = wxPyBeginAllowThreads();
25880 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
25881
25882 wxPyEndAllowThreads(__tstate);
25883 if (PyErr_Occurred()) SWIG_fail;
25884 }
25885 {
25886 wxTreeItemId * resultptr;
25887 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25888 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25889 }
25890 {
25891 if (temp4)
25892 delete arg4;
25893 }
25894 return resultobj;
25895 fail:
25896 {
25897 if (temp4)
25898 delete arg4;
25899 }
25900 return NULL;
25901 }
25902
25903
25904 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
25905 PyObject *resultobj;
25906 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25907 wxTreeItemId *arg2 = 0 ;
25908 size_t arg3 ;
25909 wxString *arg4 = 0 ;
25910 int arg5 = (int) -1 ;
25911 int arg6 = (int) -1 ;
25912 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
25913 wxTreeItemId result;
25914 bool temp4 = False ;
25915 PyObject * obj0 = 0 ;
25916 PyObject * obj1 = 0 ;
25917 PyObject * obj2 = 0 ;
25918 PyObject * obj3 = 0 ;
25919 PyObject * obj4 = 0 ;
25920 PyObject * obj5 = 0 ;
25921 PyObject * obj6 = 0 ;
25922 char *kwnames[] = {
25923 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25924 };
25925
25926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25929 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25930 SWIG_POINTER_EXCEPTION | 0)) == -1)
25931 SWIG_fail;
25932 if (arg2 == NULL) {
25933 PyErr_SetString(PyExc_TypeError,"null reference");
25934 SWIG_fail;
25935 }
25936 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
25937 if (PyErr_Occurred()) SWIG_fail;
25938 {
25939 arg4 = wxString_in_helper(obj3);
25940 if (arg4 == NULL) SWIG_fail;
25941 temp4 = True;
25942 }
25943 if (obj4) {
25944 arg5 = (int) SWIG_AsInt(obj4);
25945 if (PyErr_Occurred()) SWIG_fail;
25946 }
25947 if (obj5) {
25948 arg6 = (int) SWIG_AsInt(obj5);
25949 if (PyErr_Occurred()) SWIG_fail;
25950 }
25951 if (obj6) {
25952 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
25953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25954 }
25955 {
25956 PyThreadState* __tstate = wxPyBeginAllowThreads();
25957 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
25958
25959 wxPyEndAllowThreads(__tstate);
25960 if (PyErr_Occurred()) SWIG_fail;
25961 }
25962 {
25963 wxTreeItemId * resultptr;
25964 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25965 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25966 }
25967 {
25968 if (temp4)
25969 delete arg4;
25970 }
25971 return resultobj;
25972 fail:
25973 {
25974 if (temp4)
25975 delete arg4;
25976 }
25977 return NULL;
25978 }
25979
25980
25981 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25982 PyObject *resultobj;
25983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25984 wxTreeItemId *arg2 = 0 ;
25985 wxString *arg3 = 0 ;
25986 int arg4 = (int) -1 ;
25987 int arg5 = (int) -1 ;
25988 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
25989 wxTreeItemId result;
25990 bool temp3 = False ;
25991 PyObject * obj0 = 0 ;
25992 PyObject * obj1 = 0 ;
25993 PyObject * obj2 = 0 ;
25994 PyObject * obj3 = 0 ;
25995 PyObject * obj4 = 0 ;
25996 PyObject * obj5 = 0 ;
25997 char *kwnames[] = {
25998 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25999 };
26000
26001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26004 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26005 SWIG_POINTER_EXCEPTION | 0)) == -1)
26006 SWIG_fail;
26007 if (arg2 == NULL) {
26008 PyErr_SetString(PyExc_TypeError,"null reference");
26009 SWIG_fail;
26010 }
26011 {
26012 arg3 = wxString_in_helper(obj2);
26013 if (arg3 == NULL) SWIG_fail;
26014 temp3 = True;
26015 }
26016 if (obj3) {
26017 arg4 = (int) SWIG_AsInt(obj3);
26018 if (PyErr_Occurred()) SWIG_fail;
26019 }
26020 if (obj4) {
26021 arg5 = (int) SWIG_AsInt(obj4);
26022 if (PyErr_Occurred()) SWIG_fail;
26023 }
26024 if (obj5) {
26025 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26027 }
26028 {
26029 PyThreadState* __tstate = wxPyBeginAllowThreads();
26030 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26031
26032 wxPyEndAllowThreads(__tstate);
26033 if (PyErr_Occurred()) SWIG_fail;
26034 }
26035 {
26036 wxTreeItemId * resultptr;
26037 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26038 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26039 }
26040 {
26041 if (temp3)
26042 delete arg3;
26043 }
26044 return resultobj;
26045 fail:
26046 {
26047 if (temp3)
26048 delete arg3;
26049 }
26050 return NULL;
26051 }
26052
26053
26054 static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
26055 PyObject *resultobj;
26056 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26057 wxTreeItemId *arg2 = 0 ;
26058 PyObject * obj0 = 0 ;
26059 PyObject * obj1 = 0 ;
26060 char *kwnames[] = {
26061 (char *) "self",(char *) "item", NULL
26062 };
26063
26064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
26065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26067 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26068 SWIG_POINTER_EXCEPTION | 0)) == -1)
26069 SWIG_fail;
26070 if (arg2 == NULL) {
26071 PyErr_SetString(PyExc_TypeError,"null reference");
26072 SWIG_fail;
26073 }
26074 {
26075 PyThreadState* __tstate = wxPyBeginAllowThreads();
26076 (arg1)->Delete((wxTreeItemId const &)*arg2);
26077
26078 wxPyEndAllowThreads(__tstate);
26079 if (PyErr_Occurred()) SWIG_fail;
26080 }
26081 Py_INCREF(Py_None); resultobj = Py_None;
26082 return resultobj;
26083 fail:
26084 return NULL;
26085 }
26086
26087
26088 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26089 PyObject *resultobj;
26090 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26091 wxTreeItemId *arg2 = 0 ;
26092 PyObject * obj0 = 0 ;
26093 PyObject * obj1 = 0 ;
26094 char *kwnames[] = {
26095 (char *) "self",(char *) "item", NULL
26096 };
26097
26098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
26099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26101 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26102 SWIG_POINTER_EXCEPTION | 0)) == -1)
26103 SWIG_fail;
26104 if (arg2 == NULL) {
26105 PyErr_SetString(PyExc_TypeError,"null reference");
26106 SWIG_fail;
26107 }
26108 {
26109 PyThreadState* __tstate = wxPyBeginAllowThreads();
26110 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
26111
26112 wxPyEndAllowThreads(__tstate);
26113 if (PyErr_Occurred()) SWIG_fail;
26114 }
26115 Py_INCREF(Py_None); resultobj = Py_None;
26116 return resultobj;
26117 fail:
26118 return NULL;
26119 }
26120
26121
26122 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
26123 PyObject *resultobj;
26124 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26125 PyObject * obj0 = 0 ;
26126 char *kwnames[] = {
26127 (char *) "self", NULL
26128 };
26129
26130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
26131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26133 {
26134 PyThreadState* __tstate = wxPyBeginAllowThreads();
26135 (arg1)->DeleteAllItems();
26136
26137 wxPyEndAllowThreads(__tstate);
26138 if (PyErr_Occurred()) SWIG_fail;
26139 }
26140 Py_INCREF(Py_None); resultobj = Py_None;
26141 return resultobj;
26142 fail:
26143 return NULL;
26144 }
26145
26146
26147 static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
26148 PyObject *resultobj;
26149 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26150 wxTreeItemId *arg2 = 0 ;
26151 PyObject * obj0 = 0 ;
26152 PyObject * obj1 = 0 ;
26153 char *kwnames[] = {
26154 (char *) "self",(char *) "item", NULL
26155 };
26156
26157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
26158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26160 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26161 SWIG_POINTER_EXCEPTION | 0)) == -1)
26162 SWIG_fail;
26163 if (arg2 == NULL) {
26164 PyErr_SetString(PyExc_TypeError,"null reference");
26165 SWIG_fail;
26166 }
26167 {
26168 PyThreadState* __tstate = wxPyBeginAllowThreads();
26169 (arg1)->Expand((wxTreeItemId const &)*arg2);
26170
26171 wxPyEndAllowThreads(__tstate);
26172 if (PyErr_Occurred()) SWIG_fail;
26173 }
26174 Py_INCREF(Py_None); resultobj = Py_None;
26175 return resultobj;
26176 fail:
26177 return NULL;
26178 }
26179
26180
26181 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
26182 PyObject *resultobj;
26183 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26184 wxTreeItemId *arg2 = 0 ;
26185 PyObject * obj0 = 0 ;
26186 PyObject * obj1 = 0 ;
26187 char *kwnames[] = {
26188 (char *) "self",(char *) "item", NULL
26189 };
26190
26191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
26192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26194 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26195 SWIG_POINTER_EXCEPTION | 0)) == -1)
26196 SWIG_fail;
26197 if (arg2 == NULL) {
26198 PyErr_SetString(PyExc_TypeError,"null reference");
26199 SWIG_fail;
26200 }
26201 {
26202 PyThreadState* __tstate = wxPyBeginAllowThreads();
26203 (arg1)->Collapse((wxTreeItemId const &)*arg2);
26204
26205 wxPyEndAllowThreads(__tstate);
26206 if (PyErr_Occurred()) SWIG_fail;
26207 }
26208 Py_INCREF(Py_None); resultobj = Py_None;
26209 return resultobj;
26210 fail:
26211 return NULL;
26212 }
26213
26214
26215 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
26216 PyObject *resultobj;
26217 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26218 wxTreeItemId *arg2 = 0 ;
26219 PyObject * obj0 = 0 ;
26220 PyObject * obj1 = 0 ;
26221 char *kwnames[] = {
26222 (char *) "self",(char *) "item", NULL
26223 };
26224
26225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
26226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26228 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26229 SWIG_POINTER_EXCEPTION | 0)) == -1)
26230 SWIG_fail;
26231 if (arg2 == NULL) {
26232 PyErr_SetString(PyExc_TypeError,"null reference");
26233 SWIG_fail;
26234 }
26235 {
26236 PyThreadState* __tstate = wxPyBeginAllowThreads();
26237 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
26238
26239 wxPyEndAllowThreads(__tstate);
26240 if (PyErr_Occurred()) SWIG_fail;
26241 }
26242 Py_INCREF(Py_None); resultobj = Py_None;
26243 return resultobj;
26244 fail:
26245 return NULL;
26246 }
26247
26248
26249 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
26250 PyObject *resultobj;
26251 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26252 wxTreeItemId *arg2 = 0 ;
26253 PyObject * obj0 = 0 ;
26254 PyObject * obj1 = 0 ;
26255 char *kwnames[] = {
26256 (char *) "self",(char *) "item", NULL
26257 };
26258
26259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
26260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26262 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26263 SWIG_POINTER_EXCEPTION | 0)) == -1)
26264 SWIG_fail;
26265 if (arg2 == NULL) {
26266 PyErr_SetString(PyExc_TypeError,"null reference");
26267 SWIG_fail;
26268 }
26269 {
26270 PyThreadState* __tstate = wxPyBeginAllowThreads();
26271 (arg1)->Toggle((wxTreeItemId const &)*arg2);
26272
26273 wxPyEndAllowThreads(__tstate);
26274 if (PyErr_Occurred()) SWIG_fail;
26275 }
26276 Py_INCREF(Py_None); resultobj = Py_None;
26277 return resultobj;
26278 fail:
26279 return NULL;
26280 }
26281
26282
26283 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
26284 PyObject *resultobj;
26285 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26286 PyObject * obj0 = 0 ;
26287 char *kwnames[] = {
26288 (char *) "self", NULL
26289 };
26290
26291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
26292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26294 {
26295 PyThreadState* __tstate = wxPyBeginAllowThreads();
26296 (arg1)->Unselect();
26297
26298 wxPyEndAllowThreads(__tstate);
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 Py_INCREF(Py_None); resultobj = Py_None;
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26309 PyObject *resultobj;
26310 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26311 wxTreeItemId *arg2 = 0 ;
26312 PyObject * obj0 = 0 ;
26313 PyObject * obj1 = 0 ;
26314 char *kwnames[] = {
26315 (char *) "self",(char *) "item", NULL
26316 };
26317
26318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
26319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26322 SWIG_POINTER_EXCEPTION | 0)) == -1)
26323 SWIG_fail;
26324 if (arg2 == NULL) {
26325 PyErr_SetString(PyExc_TypeError,"null reference");
26326 SWIG_fail;
26327 }
26328 {
26329 PyThreadState* __tstate = wxPyBeginAllowThreads();
26330 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
26331
26332 wxPyEndAllowThreads(__tstate);
26333 if (PyErr_Occurred()) SWIG_fail;
26334 }
26335 Py_INCREF(Py_None); resultobj = Py_None;
26336 return resultobj;
26337 fail:
26338 return NULL;
26339 }
26340
26341
26342 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
26343 PyObject *resultobj;
26344 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26345 PyObject * obj0 = 0 ;
26346 char *kwnames[] = {
26347 (char *) "self", NULL
26348 };
26349
26350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
26351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26353 {
26354 PyThreadState* __tstate = wxPyBeginAllowThreads();
26355 (arg1)->UnselectAll();
26356
26357 wxPyEndAllowThreads(__tstate);
26358 if (PyErr_Occurred()) SWIG_fail;
26359 }
26360 Py_INCREF(Py_None); resultobj = Py_None;
26361 return resultobj;
26362 fail:
26363 return NULL;
26364 }
26365
26366
26367 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26368 PyObject *resultobj;
26369 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26370 wxTreeItemId *arg2 = 0 ;
26371 bool arg3 = (bool) True ;
26372 PyObject * obj0 = 0 ;
26373 PyObject * obj1 = 0 ;
26374 PyObject * obj2 = 0 ;
26375 char *kwnames[] = {
26376 (char *) "self",(char *) "item",(char *) "select", NULL
26377 };
26378
26379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
26380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26382 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26383 SWIG_POINTER_EXCEPTION | 0)) == -1)
26384 SWIG_fail;
26385 if (arg2 == NULL) {
26386 PyErr_SetString(PyExc_TypeError,"null reference");
26387 SWIG_fail;
26388 }
26389 if (obj2) {
26390 arg3 = (bool) SWIG_AsBool(obj2);
26391 if (PyErr_Occurred()) SWIG_fail;
26392 }
26393 {
26394 PyThreadState* __tstate = wxPyBeginAllowThreads();
26395 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
26396
26397 wxPyEndAllowThreads(__tstate);
26398 if (PyErr_Occurred()) SWIG_fail;
26399 }
26400 Py_INCREF(Py_None); resultobj = Py_None;
26401 return resultobj;
26402 fail:
26403 return NULL;
26404 }
26405
26406
26407 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26408 PyObject *resultobj;
26409 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26410 wxTreeItemId *arg2 = 0 ;
26411 PyObject * obj0 = 0 ;
26412 PyObject * obj1 = 0 ;
26413 char *kwnames[] = {
26414 (char *) "self",(char *) "item", NULL
26415 };
26416
26417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
26418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26420 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26421 SWIG_POINTER_EXCEPTION | 0)) == -1)
26422 SWIG_fail;
26423 if (arg2 == NULL) {
26424 PyErr_SetString(PyExc_TypeError,"null reference");
26425 SWIG_fail;
26426 }
26427 {
26428 PyThreadState* __tstate = wxPyBeginAllowThreads();
26429 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
26430
26431 wxPyEndAllowThreads(__tstate);
26432 if (PyErr_Occurred()) SWIG_fail;
26433 }
26434 Py_INCREF(Py_None); resultobj = Py_None;
26435 return resultobj;
26436 fail:
26437 return NULL;
26438 }
26439
26440
26441 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26442 PyObject *resultobj;
26443 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26444 wxTreeItemId *arg2 = 0 ;
26445 PyObject * obj0 = 0 ;
26446 PyObject * obj1 = 0 ;
26447 char *kwnames[] = {
26448 (char *) "self",(char *) "item", NULL
26449 };
26450
26451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
26452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26455 SWIG_POINTER_EXCEPTION | 0)) == -1)
26456 SWIG_fail;
26457 if (arg2 == NULL) {
26458 PyErr_SetString(PyExc_TypeError,"null reference");
26459 SWIG_fail;
26460 }
26461 {
26462 PyThreadState* __tstate = wxPyBeginAllowThreads();
26463 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
26464
26465 wxPyEndAllowThreads(__tstate);
26466 if (PyErr_Occurred()) SWIG_fail;
26467 }
26468 Py_INCREF(Py_None); resultobj = Py_None;
26469 return resultobj;
26470 fail:
26471 return NULL;
26472 }
26473
26474
26475 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
26476 PyObject *resultobj;
26477 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26478 wxTreeItemId *arg2 = 0 ;
26479 PyObject * obj0 = 0 ;
26480 PyObject * obj1 = 0 ;
26481 char *kwnames[] = {
26482 (char *) "self",(char *) "item", NULL
26483 };
26484
26485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
26486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26488 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26489 SWIG_POINTER_EXCEPTION | 0)) == -1)
26490 SWIG_fail;
26491 if (arg2 == NULL) {
26492 PyErr_SetString(PyExc_TypeError,"null reference");
26493 SWIG_fail;
26494 }
26495 {
26496 PyThreadState* __tstate = wxPyBeginAllowThreads();
26497 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
26498
26499 wxPyEndAllowThreads(__tstate);
26500 if (PyErr_Occurred()) SWIG_fail;
26501 }
26502 Py_INCREF(Py_None); resultobj = Py_None;
26503 return resultobj;
26504 fail:
26505 return NULL;
26506 }
26507
26508
26509 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
26510 PyObject *resultobj;
26511 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26512 wxTreeItemId *arg2 = 0 ;
26513 PyObject * obj0 = 0 ;
26514 PyObject * obj1 = 0 ;
26515 char *kwnames[] = {
26516 (char *) "self",(char *) "item", NULL
26517 };
26518
26519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
26520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26523 SWIG_POINTER_EXCEPTION | 0)) == -1)
26524 SWIG_fail;
26525 if (arg2 == NULL) {
26526 PyErr_SetString(PyExc_TypeError,"null reference");
26527 SWIG_fail;
26528 }
26529 {
26530 PyThreadState* __tstate = wxPyBeginAllowThreads();
26531 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
26532
26533 wxPyEndAllowThreads(__tstate);
26534 if (PyErr_Occurred()) SWIG_fail;
26535 }
26536 Py_INCREF(Py_None); resultobj = Py_None;
26537 return resultobj;
26538 fail:
26539 return NULL;
26540 }
26541
26542
26543 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
26544 PyObject *resultobj;
26545 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26546 wxTextCtrl *result;
26547 PyObject * obj0 = 0 ;
26548 char *kwnames[] = {
26549 (char *) "self", NULL
26550 };
26551
26552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
26553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26555 {
26556 PyThreadState* __tstate = wxPyBeginAllowThreads();
26557 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
26558
26559 wxPyEndAllowThreads(__tstate);
26560 if (PyErr_Occurred()) SWIG_fail;
26561 }
26562 {
26563 resultobj = wxPyMake_wxObject(result);
26564 }
26565 return resultobj;
26566 fail:
26567 return NULL;
26568 }
26569
26570
26571 static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
26572 PyObject *resultobj;
26573 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26574 wxTreeItemId *arg2 = 0 ;
26575 bool arg3 = (bool) False ;
26576 PyObject * obj0 = 0 ;
26577 PyObject * obj1 = 0 ;
26578 PyObject * obj2 = 0 ;
26579 char *kwnames[] = {
26580 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
26581 };
26582
26583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
26584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26586 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26587 SWIG_POINTER_EXCEPTION | 0)) == -1)
26588 SWIG_fail;
26589 if (arg2 == NULL) {
26590 PyErr_SetString(PyExc_TypeError,"null reference");
26591 SWIG_fail;
26592 }
26593 if (obj2) {
26594 arg3 = (bool) SWIG_AsBool(obj2);
26595 if (PyErr_Occurred()) SWIG_fail;
26596 }
26597 {
26598 PyThreadState* __tstate = wxPyBeginAllowThreads();
26599 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
26600
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 Py_INCREF(Py_None); resultobj = Py_None;
26605 return resultobj;
26606 fail:
26607 return NULL;
26608 }
26609
26610
26611 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26612 PyObject *resultobj;
26613 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26614 wxTreeItemId *arg2 = 0 ;
26615 PyObject * obj0 = 0 ;
26616 PyObject * obj1 = 0 ;
26617 char *kwnames[] = {
26618 (char *) "self",(char *) "item", NULL
26619 };
26620
26621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
26622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26625 SWIG_POINTER_EXCEPTION | 0)) == -1)
26626 SWIG_fail;
26627 if (arg2 == NULL) {
26628 PyErr_SetString(PyExc_TypeError,"null reference");
26629 SWIG_fail;
26630 }
26631 {
26632 PyThreadState* __tstate = wxPyBeginAllowThreads();
26633 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
26634
26635 wxPyEndAllowThreads(__tstate);
26636 if (PyErr_Occurred()) SWIG_fail;
26637 }
26638 Py_INCREF(Py_None); resultobj = Py_None;
26639 return resultobj;
26640 fail:
26641 return NULL;
26642 }
26643
26644
26645 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
26646 PyObject *resultobj;
26647 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26648 wxPoint *arg2 = 0 ;
26649 int *arg3 = 0 ;
26650 wxTreeItemId result;
26651 wxPoint temp2 ;
26652 int temp3 ;
26653 PyObject * obj0 = 0 ;
26654 PyObject * obj1 = 0 ;
26655 char *kwnames[] = {
26656 (char *) "self",(char *) "point", NULL
26657 };
26658
26659 arg3 = &temp3;
26660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
26661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26663 {
26664 arg2 = &temp2;
26665 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26666 }
26667 {
26668 PyThreadState* __tstate = wxPyBeginAllowThreads();
26669 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
26670
26671 wxPyEndAllowThreads(__tstate);
26672 if (PyErr_Occurred()) SWIG_fail;
26673 }
26674 {
26675 wxTreeItemId * resultptr;
26676 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26677 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26678 }
26679 {
26680 PyObject *o = PyInt_FromLong((long) (*arg3));
26681 resultobj = t_output_helper(resultobj,o);
26682 }
26683 return resultobj;
26684 fail:
26685 return NULL;
26686 }
26687
26688
26689 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
26690 PyObject *resultobj;
26691 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26692 wxTreeItemId *arg2 = 0 ;
26693 bool arg3 = (bool) False ;
26694 PyObject *result;
26695 PyObject * obj0 = 0 ;
26696 PyObject * obj1 = 0 ;
26697 PyObject * obj2 = 0 ;
26698 char *kwnames[] = {
26699 (char *) "self",(char *) "item",(char *) "textOnly", NULL
26700 };
26701
26702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
26703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26705 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26706 SWIG_POINTER_EXCEPTION | 0)) == -1)
26707 SWIG_fail;
26708 if (arg2 == NULL) {
26709 PyErr_SetString(PyExc_TypeError,"null reference");
26710 SWIG_fail;
26711 }
26712 if (obj2) {
26713 arg3 = (bool) SWIG_AsBool(obj2);
26714 if (PyErr_Occurred()) SWIG_fail;
26715 }
26716 {
26717 PyThreadState* __tstate = wxPyBeginAllowThreads();
26718 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
26719
26720 wxPyEndAllowThreads(__tstate);
26721 if (PyErr_Occurred()) SWIG_fail;
26722 }
26723 resultobj = result;
26724 return resultobj;
26725 fail:
26726 return NULL;
26727 }
26728
26729
26730 static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
26731 PyObject *obj;
26732 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26733 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
26734 Py_INCREF(obj);
26735 return Py_BuildValue((char *)"");
26736 }
26737 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
26738 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
26739 return 1;
26740 }
26741
26742
26743 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
26744 PyObject *pyobj;
26745
26746 {
26747 #if wxUSE_UNICODE
26748 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
26749 #else
26750 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
26751 #endif
26752 }
26753 return pyobj;
26754 }
26755
26756
26757 static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
26758 PyObject *resultobj;
26759 wxWindow *arg1 = (wxWindow *) 0 ;
26760 int arg2 = (int) (int)-1 ;
26761 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
26762 wxString *arg3 = (wxString *) &arg3_defvalue ;
26763 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26764 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26765 wxSize const &arg5_defvalue = wxDefaultSize ;
26766 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26767 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
26768 wxString const &arg7_defvalue = wxPyEmptyString ;
26769 wxString *arg7 = (wxString *) &arg7_defvalue ;
26770 int arg8 = (int) 0 ;
26771 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
26772 wxString *arg9 = (wxString *) &arg9_defvalue ;
26773 wxGenericDirCtrl *result;
26774 bool temp3 = False ;
26775 wxPoint temp4 ;
26776 wxSize temp5 ;
26777 bool temp7 = False ;
26778 bool temp9 = False ;
26779 PyObject * obj0 = 0 ;
26780 PyObject * obj1 = 0 ;
26781 PyObject * obj2 = 0 ;
26782 PyObject * obj3 = 0 ;
26783 PyObject * obj4 = 0 ;
26784 PyObject * obj5 = 0 ;
26785 PyObject * obj6 = 0 ;
26786 PyObject * obj7 = 0 ;
26787 PyObject * obj8 = 0 ;
26788 char *kwnames[] = {
26789 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
26790 };
26791
26792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
26793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26795 if (obj1) {
26796 arg2 = (int const) SWIG_AsInt(obj1);
26797 if (PyErr_Occurred()) SWIG_fail;
26798 }
26799 if (obj2) {
26800 {
26801 arg3 = wxString_in_helper(obj2);
26802 if (arg3 == NULL) SWIG_fail;
26803 temp3 = True;
26804 }
26805 }
26806 if (obj3) {
26807 {
26808 arg4 = &temp4;
26809 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26810 }
26811 }
26812 if (obj4) {
26813 {
26814 arg5 = &temp5;
26815 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26816 }
26817 }
26818 if (obj5) {
26819 arg6 = (long) SWIG_AsLong(obj5);
26820 if (PyErr_Occurred()) SWIG_fail;
26821 }
26822 if (obj6) {
26823 {
26824 arg7 = wxString_in_helper(obj6);
26825 if (arg7 == NULL) SWIG_fail;
26826 temp7 = True;
26827 }
26828 }
26829 if (obj7) {
26830 arg8 = (int) SWIG_AsInt(obj7);
26831 if (PyErr_Occurred()) SWIG_fail;
26832 }
26833 if (obj8) {
26834 {
26835 arg9 = wxString_in_helper(obj8);
26836 if (arg9 == NULL) SWIG_fail;
26837 temp9 = True;
26838 }
26839 }
26840 {
26841 PyThreadState* __tstate = wxPyBeginAllowThreads();
26842 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
26843
26844 wxPyEndAllowThreads(__tstate);
26845 if (PyErr_Occurred()) SWIG_fail;
26846 }
26847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
26848 {
26849 if (temp3)
26850 delete arg3;
26851 }
26852 {
26853 if (temp7)
26854 delete arg7;
26855 }
26856 {
26857 if (temp9)
26858 delete arg9;
26859 }
26860 return resultobj;
26861 fail:
26862 {
26863 if (temp3)
26864 delete arg3;
26865 }
26866 {
26867 if (temp7)
26868 delete arg7;
26869 }
26870 {
26871 if (temp9)
26872 delete arg9;
26873 }
26874 return NULL;
26875 }
26876
26877
26878 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
26879 PyObject *resultobj;
26880 wxGenericDirCtrl *result;
26881 char *kwnames[] = {
26882 NULL
26883 };
26884
26885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
26886 {
26887 PyThreadState* __tstate = wxPyBeginAllowThreads();
26888 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
26889
26890 wxPyEndAllowThreads(__tstate);
26891 if (PyErr_Occurred()) SWIG_fail;
26892 }
26893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
26894 return resultobj;
26895 fail:
26896 return NULL;
26897 }
26898
26899
26900 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
26901 PyObject *resultobj;
26902 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26903 wxWindow *arg2 = (wxWindow *) 0 ;
26904 int arg3 = (int) (int)-1 ;
26905 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
26906 wxString *arg4 = (wxString *) &arg4_defvalue ;
26907 wxPoint const &arg5_defvalue = wxDefaultPosition ;
26908 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
26909 wxSize const &arg6_defvalue = wxDefaultSize ;
26910 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
26911 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
26912 wxString const &arg8_defvalue = wxPyEmptyString ;
26913 wxString *arg8 = (wxString *) &arg8_defvalue ;
26914 int arg9 = (int) 0 ;
26915 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
26916 wxString *arg10 = (wxString *) &arg10_defvalue ;
26917 bool result;
26918 bool temp4 = False ;
26919 wxPoint temp5 ;
26920 wxSize temp6 ;
26921 bool temp8 = False ;
26922 bool temp10 = False ;
26923 PyObject * obj0 = 0 ;
26924 PyObject * obj1 = 0 ;
26925 PyObject * obj2 = 0 ;
26926 PyObject * obj3 = 0 ;
26927 PyObject * obj4 = 0 ;
26928 PyObject * obj5 = 0 ;
26929 PyObject * obj6 = 0 ;
26930 PyObject * obj7 = 0 ;
26931 PyObject * obj8 = 0 ;
26932 PyObject * obj9 = 0 ;
26933 char *kwnames[] = {
26934 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
26935 };
26936
26937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
26938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26940 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
26941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26942 if (obj2) {
26943 arg3 = (int const) SWIG_AsInt(obj2);
26944 if (PyErr_Occurred()) SWIG_fail;
26945 }
26946 if (obj3) {
26947 {
26948 arg4 = wxString_in_helper(obj3);
26949 if (arg4 == NULL) SWIG_fail;
26950 temp4 = True;
26951 }
26952 }
26953 if (obj4) {
26954 {
26955 arg5 = &temp5;
26956 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
26957 }
26958 }
26959 if (obj5) {
26960 {
26961 arg6 = &temp6;
26962 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
26963 }
26964 }
26965 if (obj6) {
26966 arg7 = (long) SWIG_AsLong(obj6);
26967 if (PyErr_Occurred()) SWIG_fail;
26968 }
26969 if (obj7) {
26970 {
26971 arg8 = wxString_in_helper(obj7);
26972 if (arg8 == NULL) SWIG_fail;
26973 temp8 = True;
26974 }
26975 }
26976 if (obj8) {
26977 arg9 = (int) SWIG_AsInt(obj8);
26978 if (PyErr_Occurred()) SWIG_fail;
26979 }
26980 if (obj9) {
26981 {
26982 arg10 = wxString_in_helper(obj9);
26983 if (arg10 == NULL) SWIG_fail;
26984 temp10 = True;
26985 }
26986 }
26987 {
26988 PyThreadState* __tstate = wxPyBeginAllowThreads();
26989 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
26990
26991 wxPyEndAllowThreads(__tstate);
26992 if (PyErr_Occurred()) SWIG_fail;
26993 }
26994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26995 {
26996 if (temp4)
26997 delete arg4;
26998 }
26999 {
27000 if (temp8)
27001 delete arg8;
27002 }
27003 {
27004 if (temp10)
27005 delete arg10;
27006 }
27007 return resultobj;
27008 fail:
27009 {
27010 if (temp4)
27011 delete arg4;
27012 }
27013 {
27014 if (temp8)
27015 delete arg8;
27016 }
27017 {
27018 if (temp10)
27019 delete arg10;
27020 }
27021 return NULL;
27022 }
27023
27024
27025 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27026 PyObject *resultobj;
27027 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27028 wxString *arg2 = 0 ;
27029 bool result;
27030 bool temp2 = False ;
27031 PyObject * obj0 = 0 ;
27032 PyObject * obj1 = 0 ;
27033 char *kwnames[] = {
27034 (char *) "self",(char *) "path", NULL
27035 };
27036
27037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
27038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27040 {
27041 arg2 = wxString_in_helper(obj1);
27042 if (arg2 == NULL) SWIG_fail;
27043 temp2 = True;
27044 }
27045 {
27046 PyThreadState* __tstate = wxPyBeginAllowThreads();
27047 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
27048
27049 wxPyEndAllowThreads(__tstate);
27050 if (PyErr_Occurred()) SWIG_fail;
27051 }
27052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27053 {
27054 if (temp2)
27055 delete arg2;
27056 }
27057 return resultobj;
27058 fail:
27059 {
27060 if (temp2)
27061 delete arg2;
27062 }
27063 return NULL;
27064 }
27065
27066
27067 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27068 PyObject *resultobj;
27069 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27070 wxString result;
27071 PyObject * obj0 = 0 ;
27072 char *kwnames[] = {
27073 (char *) "self", NULL
27074 };
27075
27076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
27077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27079 {
27080 PyThreadState* __tstate = wxPyBeginAllowThreads();
27081 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
27082
27083 wxPyEndAllowThreads(__tstate);
27084 if (PyErr_Occurred()) SWIG_fail;
27085 }
27086 {
27087 #if wxUSE_UNICODE
27088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27089 #else
27090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27091 #endif
27092 }
27093 return resultobj;
27094 fail:
27095 return NULL;
27096 }
27097
27098
27099 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27100 PyObject *resultobj;
27101 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27102 wxString *arg2 = 0 ;
27103 bool temp2 = False ;
27104 PyObject * obj0 = 0 ;
27105 PyObject * obj1 = 0 ;
27106 char *kwnames[] = {
27107 (char *) "self",(char *) "path", NULL
27108 };
27109
27110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
27111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27113 {
27114 arg2 = wxString_in_helper(obj1);
27115 if (arg2 == NULL) SWIG_fail;
27116 temp2 = True;
27117 }
27118 {
27119 PyThreadState* __tstate = wxPyBeginAllowThreads();
27120 (arg1)->SetDefaultPath((wxString const &)*arg2);
27121
27122 wxPyEndAllowThreads(__tstate);
27123 if (PyErr_Occurred()) SWIG_fail;
27124 }
27125 Py_INCREF(Py_None); resultobj = Py_None;
27126 {
27127 if (temp2)
27128 delete arg2;
27129 }
27130 return resultobj;
27131 fail:
27132 {
27133 if (temp2)
27134 delete arg2;
27135 }
27136 return NULL;
27137 }
27138
27139
27140 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27141 PyObject *resultobj;
27142 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27143 wxString result;
27144 PyObject * obj0 = 0 ;
27145 char *kwnames[] = {
27146 (char *) "self", NULL
27147 };
27148
27149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
27150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27152 {
27153 PyThreadState* __tstate = wxPyBeginAllowThreads();
27154 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
27155
27156 wxPyEndAllowThreads(__tstate);
27157 if (PyErr_Occurred()) SWIG_fail;
27158 }
27159 {
27160 #if wxUSE_UNICODE
27161 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27162 #else
27163 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27164 #endif
27165 }
27166 return resultobj;
27167 fail:
27168 return NULL;
27169 }
27170
27171
27172 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
27173 PyObject *resultobj;
27174 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27175 wxString result;
27176 PyObject * obj0 = 0 ;
27177 char *kwnames[] = {
27178 (char *) "self", NULL
27179 };
27180
27181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
27182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27184 {
27185 PyThreadState* __tstate = wxPyBeginAllowThreads();
27186 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
27187
27188 wxPyEndAllowThreads(__tstate);
27189 if (PyErr_Occurred()) SWIG_fail;
27190 }
27191 {
27192 #if wxUSE_UNICODE
27193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27194 #else
27195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27196 #endif
27197 }
27198 return resultobj;
27199 fail:
27200 return NULL;
27201 }
27202
27203
27204 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27205 PyObject *resultobj;
27206 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27207 wxString *arg2 = 0 ;
27208 bool temp2 = False ;
27209 PyObject * obj0 = 0 ;
27210 PyObject * obj1 = 0 ;
27211 char *kwnames[] = {
27212 (char *) "self",(char *) "path", NULL
27213 };
27214
27215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
27216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27218 {
27219 arg2 = wxString_in_helper(obj1);
27220 if (arg2 == NULL) SWIG_fail;
27221 temp2 = True;
27222 }
27223 {
27224 PyThreadState* __tstate = wxPyBeginAllowThreads();
27225 (arg1)->SetPath((wxString const &)*arg2);
27226
27227 wxPyEndAllowThreads(__tstate);
27228 if (PyErr_Occurred()) SWIG_fail;
27229 }
27230 Py_INCREF(Py_None); resultobj = Py_None;
27231 {
27232 if (temp2)
27233 delete arg2;
27234 }
27235 return resultobj;
27236 fail:
27237 {
27238 if (temp2)
27239 delete arg2;
27240 }
27241 return NULL;
27242 }
27243
27244
27245 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
27246 PyObject *resultobj;
27247 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27248 bool arg2 ;
27249 PyObject * obj0 = 0 ;
27250 PyObject * obj1 = 0 ;
27251 char *kwnames[] = {
27252 (char *) "self",(char *) "show", NULL
27253 };
27254
27255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
27256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27258 arg2 = (bool) SWIG_AsBool(obj1);
27259 if (PyErr_Occurred()) SWIG_fail;
27260 {
27261 PyThreadState* __tstate = wxPyBeginAllowThreads();
27262 (arg1)->ShowHidden(arg2);
27263
27264 wxPyEndAllowThreads(__tstate);
27265 if (PyErr_Occurred()) SWIG_fail;
27266 }
27267 Py_INCREF(Py_None); resultobj = Py_None;
27268 return resultobj;
27269 fail:
27270 return NULL;
27271 }
27272
27273
27274 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
27275 PyObject *resultobj;
27276 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27277 bool result;
27278 PyObject * obj0 = 0 ;
27279 char *kwnames[] = {
27280 (char *) "self", NULL
27281 };
27282
27283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
27284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27286 {
27287 PyThreadState* __tstate = wxPyBeginAllowThreads();
27288 result = (bool)(arg1)->GetShowHidden();
27289
27290 wxPyEndAllowThreads(__tstate);
27291 if (PyErr_Occurred()) SWIG_fail;
27292 }
27293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27294 return resultobj;
27295 fail:
27296 return NULL;
27297 }
27298
27299
27300 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
27301 PyObject *resultobj;
27302 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27303 wxString result;
27304 PyObject * obj0 = 0 ;
27305 char *kwnames[] = {
27306 (char *) "self", NULL
27307 };
27308
27309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
27310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27312 {
27313 PyThreadState* __tstate = wxPyBeginAllowThreads();
27314 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
27315
27316 wxPyEndAllowThreads(__tstate);
27317 if (PyErr_Occurred()) SWIG_fail;
27318 }
27319 {
27320 #if wxUSE_UNICODE
27321 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27322 #else
27323 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27324 #endif
27325 }
27326 return resultobj;
27327 fail:
27328 return NULL;
27329 }
27330
27331
27332 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
27333 PyObject *resultobj;
27334 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27335 wxString *arg2 = 0 ;
27336 bool temp2 = False ;
27337 PyObject * obj0 = 0 ;
27338 PyObject * obj1 = 0 ;
27339 char *kwnames[] = {
27340 (char *) "self",(char *) "filter", NULL
27341 };
27342
27343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
27344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27346 {
27347 arg2 = wxString_in_helper(obj1);
27348 if (arg2 == NULL) SWIG_fail;
27349 temp2 = True;
27350 }
27351 {
27352 PyThreadState* __tstate = wxPyBeginAllowThreads();
27353 (arg1)->SetFilter((wxString const &)*arg2);
27354
27355 wxPyEndAllowThreads(__tstate);
27356 if (PyErr_Occurred()) SWIG_fail;
27357 }
27358 Py_INCREF(Py_None); resultobj = Py_None;
27359 {
27360 if (temp2)
27361 delete arg2;
27362 }
27363 return resultobj;
27364 fail:
27365 {
27366 if (temp2)
27367 delete arg2;
27368 }
27369 return NULL;
27370 }
27371
27372
27373 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
27374 PyObject *resultobj;
27375 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27376 int result;
27377 PyObject * obj0 = 0 ;
27378 char *kwnames[] = {
27379 (char *) "self", NULL
27380 };
27381
27382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
27383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27385 {
27386 PyThreadState* __tstate = wxPyBeginAllowThreads();
27387 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
27388
27389 wxPyEndAllowThreads(__tstate);
27390 if (PyErr_Occurred()) SWIG_fail;
27391 }
27392 resultobj = SWIG_FromInt((int)result);
27393 return resultobj;
27394 fail:
27395 return NULL;
27396 }
27397
27398
27399 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
27400 PyObject *resultobj;
27401 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27402 int arg2 ;
27403 PyObject * obj0 = 0 ;
27404 PyObject * obj1 = 0 ;
27405 char *kwnames[] = {
27406 (char *) "self",(char *) "n", NULL
27407 };
27408
27409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
27410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27412 arg2 = (int) SWIG_AsInt(obj1);
27413 if (PyErr_Occurred()) SWIG_fail;
27414 {
27415 PyThreadState* __tstate = wxPyBeginAllowThreads();
27416 (arg1)->SetFilterIndex(arg2);
27417
27418 wxPyEndAllowThreads(__tstate);
27419 if (PyErr_Occurred()) SWIG_fail;
27420 }
27421 Py_INCREF(Py_None); resultobj = Py_None;
27422 return resultobj;
27423 fail:
27424 return NULL;
27425 }
27426
27427
27428 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
27429 PyObject *resultobj;
27430 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27431 wxTreeItemId result;
27432 PyObject * obj0 = 0 ;
27433 char *kwnames[] = {
27434 (char *) "self", NULL
27435 };
27436
27437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
27438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27440 {
27441 PyThreadState* __tstate = wxPyBeginAllowThreads();
27442 result = (arg1)->GetRootId();
27443
27444 wxPyEndAllowThreads(__tstate);
27445 if (PyErr_Occurred()) SWIG_fail;
27446 }
27447 {
27448 wxTreeItemId * resultptr;
27449 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27450 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27451 }
27452 return resultobj;
27453 fail:
27454 return NULL;
27455 }
27456
27457
27458 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27459 PyObject *resultobj;
27460 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27461 wxPyTreeCtrl *result;
27462 PyObject * obj0 = 0 ;
27463 char *kwnames[] = {
27464 (char *) "self", NULL
27465 };
27466
27467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
27468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27470 {
27471 PyThreadState* __tstate = wxPyBeginAllowThreads();
27472 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
27473
27474 wxPyEndAllowThreads(__tstate);
27475 if (PyErr_Occurred()) SWIG_fail;
27476 }
27477 {
27478 resultobj = wxPyMake_wxObject(result);
27479 }
27480 return resultobj;
27481 fail:
27482 return NULL;
27483 }
27484
27485
27486 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27487 PyObject *resultobj;
27488 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27489 wxDirFilterListCtrl *result;
27490 PyObject * obj0 = 0 ;
27491 char *kwnames[] = {
27492 (char *) "self", NULL
27493 };
27494
27495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
27496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27498 {
27499 PyThreadState* __tstate = wxPyBeginAllowThreads();
27500 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
27501
27502 wxPyEndAllowThreads(__tstate);
27503 if (PyErr_Occurred()) SWIG_fail;
27504 }
27505 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
27506 return resultobj;
27507 fail:
27508 return NULL;
27509 }
27510
27511
27512 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
27513 PyObject *resultobj;
27514 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27515 wxTreeItemId arg2 ;
27516 wxString *arg3 = 0 ;
27517 bool *arg4 = 0 ;
27518 wxTreeItemId result;
27519 wxTreeItemId *argp2 ;
27520 bool temp3 = False ;
27521 bool temp4 ;
27522 PyObject * obj0 = 0 ;
27523 PyObject * obj1 = 0 ;
27524 PyObject * obj2 = 0 ;
27525 char *kwnames[] = {
27526 (char *) "self",(char *) "parentId",(char *) "path", NULL
27527 };
27528
27529 arg4 = &temp4;
27530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
27531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27533 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
27534 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
27535 arg2 = *argp2;
27536 {
27537 arg3 = wxString_in_helper(obj2);
27538 if (arg3 == NULL) SWIG_fail;
27539 temp3 = True;
27540 }
27541 {
27542 PyThreadState* __tstate = wxPyBeginAllowThreads();
27543 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
27544
27545 wxPyEndAllowThreads(__tstate);
27546 if (PyErr_Occurred()) SWIG_fail;
27547 }
27548 {
27549 wxTreeItemId * resultptr;
27550 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27551 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27552 }
27553 {
27554 PyObject *o = PyInt_FromLong((long) (*arg4));
27555 resultobj = t_output_helper(resultobj,o);
27556 }
27557 {
27558 if (temp3)
27559 delete arg3;
27560 }
27561 return resultobj;
27562 fail:
27563 {
27564 if (temp3)
27565 delete arg3;
27566 }
27567 return NULL;
27568 }
27569
27570
27571 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
27572 PyObject *resultobj;
27573 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27574 PyObject * obj0 = 0 ;
27575 char *kwnames[] = {
27576 (char *) "self", NULL
27577 };
27578
27579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
27580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27582 {
27583 PyThreadState* __tstate = wxPyBeginAllowThreads();
27584 (arg1)->DoResize();
27585
27586 wxPyEndAllowThreads(__tstate);
27587 if (PyErr_Occurred()) SWIG_fail;
27588 }
27589 Py_INCREF(Py_None); resultobj = Py_None;
27590 return resultobj;
27591 fail:
27592 return NULL;
27593 }
27594
27595
27596 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
27597 PyObject *resultobj;
27598 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27599 PyObject * obj0 = 0 ;
27600 char *kwnames[] = {
27601 (char *) "self", NULL
27602 };
27603
27604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
27605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27607 {
27608 PyThreadState* __tstate = wxPyBeginAllowThreads();
27609 (arg1)->ReCreateTree();
27610
27611 wxPyEndAllowThreads(__tstate);
27612 if (PyErr_Occurred()) SWIG_fail;
27613 }
27614 Py_INCREF(Py_None); resultobj = Py_None;
27615 return resultobj;
27616 fail:
27617 return NULL;
27618 }
27619
27620
27621 static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
27622 PyObject *obj;
27623 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27624 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
27625 Py_INCREF(obj);
27626 return Py_BuildValue((char *)"");
27627 }
27628 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27629 PyObject *resultobj;
27630 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27631 int arg2 = (int) (int)-1 ;
27632 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27633 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27634 wxSize const &arg4_defvalue = wxDefaultSize ;
27635 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
27636 long arg5 = (long) 0 ;
27637 wxDirFilterListCtrl *result;
27638 wxPoint temp3 ;
27639 wxSize temp4 ;
27640 PyObject * obj0 = 0 ;
27641 PyObject * obj1 = 0 ;
27642 PyObject * obj2 = 0 ;
27643 PyObject * obj3 = 0 ;
27644 PyObject * obj4 = 0 ;
27645 char *kwnames[] = {
27646 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
27647 };
27648
27649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27652 if (obj1) {
27653 arg2 = (int const) SWIG_AsInt(obj1);
27654 if (PyErr_Occurred()) SWIG_fail;
27655 }
27656 if (obj2) {
27657 {
27658 arg3 = &temp3;
27659 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27660 }
27661 }
27662 if (obj3) {
27663 {
27664 arg4 = &temp4;
27665 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27666 }
27667 }
27668 if (obj4) {
27669 arg5 = (long) SWIG_AsLong(obj4);
27670 if (PyErr_Occurred()) SWIG_fail;
27671 }
27672 {
27673 PyThreadState* __tstate = wxPyBeginAllowThreads();
27674 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
27675
27676 wxPyEndAllowThreads(__tstate);
27677 if (PyErr_Occurred()) SWIG_fail;
27678 }
27679 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
27680 return resultobj;
27681 fail:
27682 return NULL;
27683 }
27684
27685
27686 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27687 PyObject *resultobj;
27688 wxDirFilterListCtrl *result;
27689 char *kwnames[] = {
27690 NULL
27691 };
27692
27693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
27694 {
27695 PyThreadState* __tstate = wxPyBeginAllowThreads();
27696 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
27697
27698 wxPyEndAllowThreads(__tstate);
27699 if (PyErr_Occurred()) SWIG_fail;
27700 }
27701 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
27702 return resultobj;
27703 fail:
27704 return NULL;
27705 }
27706
27707
27708 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
27709 PyObject *resultobj;
27710 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
27711 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
27712 int arg3 = (int) (int)-1 ;
27713 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27714 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27715 wxSize const &arg5_defvalue = wxDefaultSize ;
27716 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27717 long arg6 = (long) 0 ;
27718 bool result;
27719 wxPoint temp4 ;
27720 wxSize temp5 ;
27721 PyObject * obj0 = 0 ;
27722 PyObject * obj1 = 0 ;
27723 PyObject * obj2 = 0 ;
27724 PyObject * obj3 = 0 ;
27725 PyObject * obj4 = 0 ;
27726 PyObject * obj5 = 0 ;
27727 char *kwnames[] = {
27728 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
27729 };
27730
27731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
27733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27734 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
27735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27736 if (obj2) {
27737 arg3 = (int const) SWIG_AsInt(obj2);
27738 if (PyErr_Occurred()) SWIG_fail;
27739 }
27740 if (obj3) {
27741 {
27742 arg4 = &temp4;
27743 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27744 }
27745 }
27746 if (obj4) {
27747 {
27748 arg5 = &temp5;
27749 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27750 }
27751 }
27752 if (obj5) {
27753 arg6 = (long) SWIG_AsLong(obj5);
27754 if (PyErr_Occurred()) SWIG_fail;
27755 }
27756 {
27757 PyThreadState* __tstate = wxPyBeginAllowThreads();
27758 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
27759
27760 wxPyEndAllowThreads(__tstate);
27761 if (PyErr_Occurred()) SWIG_fail;
27762 }
27763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27764 return resultobj;
27765 fail:
27766 return NULL;
27767 }
27768
27769
27770 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
27771 PyObject *resultobj;
27772 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
27773 wxString *arg2 = 0 ;
27774 int arg3 ;
27775 bool temp2 = False ;
27776 PyObject * obj0 = 0 ;
27777 PyObject * obj1 = 0 ;
27778 PyObject * obj2 = 0 ;
27779 char *kwnames[] = {
27780 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
27781 };
27782
27783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
27784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
27785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27786 {
27787 arg2 = wxString_in_helper(obj1);
27788 if (arg2 == NULL) SWIG_fail;
27789 temp2 = True;
27790 }
27791 arg3 = (int) SWIG_AsInt(obj2);
27792 if (PyErr_Occurred()) SWIG_fail;
27793 {
27794 PyThreadState* __tstate = wxPyBeginAllowThreads();
27795 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
27796
27797 wxPyEndAllowThreads(__tstate);
27798 if (PyErr_Occurred()) SWIG_fail;
27799 }
27800 Py_INCREF(Py_None); resultobj = Py_None;
27801 {
27802 if (temp2)
27803 delete arg2;
27804 }
27805 return resultobj;
27806 fail:
27807 {
27808 if (temp2)
27809 delete arg2;
27810 }
27811 return NULL;
27812 }
27813
27814
27815 static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
27816 PyObject *obj;
27817 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27818 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
27819 Py_INCREF(obj);
27820 return Py_BuildValue((char *)"");
27821 }
27822 static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27823 PyObject *resultobj;
27824 wxWindow *arg1 = (wxWindow *) 0 ;
27825 int arg2 ;
27826 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27827 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27828 wxSize const &arg4_defvalue = wxDefaultSize ;
27829 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
27830 long arg5 = (long) 0 ;
27831 wxValidator const &arg6_defvalue = wxDefaultValidator ;
27832 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
27833 wxString const &arg7_defvalue = wxPyControlNameStr ;
27834 wxString *arg7 = (wxString *) &arg7_defvalue ;
27835 wxPyControl *result;
27836 wxPoint temp3 ;
27837 wxSize temp4 ;
27838 bool temp7 = False ;
27839 PyObject * obj0 = 0 ;
27840 PyObject * obj1 = 0 ;
27841 PyObject * obj2 = 0 ;
27842 PyObject * obj3 = 0 ;
27843 PyObject * obj4 = 0 ;
27844 PyObject * obj5 = 0 ;
27845 PyObject * obj6 = 0 ;
27846 char *kwnames[] = {
27847 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
27848 };
27849
27850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27853 arg2 = (int const) SWIG_AsInt(obj1);
27854 if (PyErr_Occurred()) SWIG_fail;
27855 if (obj2) {
27856 {
27857 arg3 = &temp3;
27858 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27859 }
27860 }
27861 if (obj3) {
27862 {
27863 arg4 = &temp4;
27864 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27865 }
27866 }
27867 if (obj4) {
27868 arg5 = (long) SWIG_AsLong(obj4);
27869 if (PyErr_Occurred()) SWIG_fail;
27870 }
27871 if (obj5) {
27872 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
27873 SWIG_POINTER_EXCEPTION | 0)) == -1)
27874 SWIG_fail;
27875 if (arg6 == NULL) {
27876 PyErr_SetString(PyExc_TypeError,"null reference");
27877 SWIG_fail;
27878 }
27879 }
27880 if (obj6) {
27881 {
27882 arg7 = wxString_in_helper(obj6);
27883 if (arg7 == NULL) SWIG_fail;
27884 temp7 = True;
27885 }
27886 }
27887 {
27888 PyThreadState* __tstate = wxPyBeginAllowThreads();
27889 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
27890
27891 wxPyEndAllowThreads(__tstate);
27892 if (PyErr_Occurred()) SWIG_fail;
27893 }
27894 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
27895 {
27896 if (temp7)
27897 delete arg7;
27898 }
27899 return resultobj;
27900 fail:
27901 {
27902 if (temp7)
27903 delete arg7;
27904 }
27905 return NULL;
27906 }
27907
27908
27909 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
27910 PyObject *resultobj;
27911 wxPyControl *arg1 = (wxPyControl *) 0 ;
27912 PyObject *arg2 = (PyObject *) 0 ;
27913 PyObject *arg3 = (PyObject *) 0 ;
27914 PyObject * obj0 = 0 ;
27915 PyObject * obj1 = 0 ;
27916 PyObject * obj2 = 0 ;
27917 char *kwnames[] = {
27918 (char *) "self",(char *) "self",(char *) "_class", NULL
27919 };
27920
27921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
27922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27924 arg2 = obj1;
27925 arg3 = obj2;
27926 {
27927 PyThreadState* __tstate = wxPyBeginAllowThreads();
27928 (arg1)->_setCallbackInfo(arg2,arg3);
27929
27930 wxPyEndAllowThreads(__tstate);
27931 if (PyErr_Occurred()) SWIG_fail;
27932 }
27933 Py_INCREF(Py_None); resultobj = Py_None;
27934 return resultobj;
27935 fail:
27936 return NULL;
27937 }
27938
27939
27940 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27941 PyObject *resultobj;
27942 wxPyControl *arg1 = (wxPyControl *) 0 ;
27943 int arg2 ;
27944 int arg3 ;
27945 int arg4 ;
27946 int arg5 ;
27947 PyObject * obj0 = 0 ;
27948 PyObject * obj1 = 0 ;
27949 PyObject * obj2 = 0 ;
27950 PyObject * obj3 = 0 ;
27951 PyObject * obj4 = 0 ;
27952 char *kwnames[] = {
27953 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
27954 };
27955
27956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27959 arg2 = (int) SWIG_AsInt(obj1);
27960 if (PyErr_Occurred()) SWIG_fail;
27961 arg3 = (int) SWIG_AsInt(obj2);
27962 if (PyErr_Occurred()) SWIG_fail;
27963 arg4 = (int) SWIG_AsInt(obj3);
27964 if (PyErr_Occurred()) SWIG_fail;
27965 arg5 = (int) SWIG_AsInt(obj4);
27966 if (PyErr_Occurred()) SWIG_fail;
27967 {
27968 PyThreadState* __tstate = wxPyBeginAllowThreads();
27969 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
27970
27971 wxPyEndAllowThreads(__tstate);
27972 if (PyErr_Occurred()) SWIG_fail;
27973 }
27974 Py_INCREF(Py_None); resultobj = Py_None;
27975 return resultobj;
27976 fail:
27977 return NULL;
27978 }
27979
27980
27981 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27982 PyObject *resultobj;
27983 wxPyControl *arg1 = (wxPyControl *) 0 ;
27984 int arg2 ;
27985 int arg3 ;
27986 int arg4 ;
27987 int arg5 ;
27988 int arg6 = (int) wxSIZE_AUTO ;
27989 PyObject * obj0 = 0 ;
27990 PyObject * obj1 = 0 ;
27991 PyObject * obj2 = 0 ;
27992 PyObject * obj3 = 0 ;
27993 PyObject * obj4 = 0 ;
27994 PyObject * obj5 = 0 ;
27995 char *kwnames[] = {
27996 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
27997 };
27998
27999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28002 arg2 = (int) SWIG_AsInt(obj1);
28003 if (PyErr_Occurred()) SWIG_fail;
28004 arg3 = (int) SWIG_AsInt(obj2);
28005 if (PyErr_Occurred()) SWIG_fail;
28006 arg4 = (int) SWIG_AsInt(obj3);
28007 if (PyErr_Occurred()) SWIG_fail;
28008 arg5 = (int) SWIG_AsInt(obj4);
28009 if (PyErr_Occurred()) SWIG_fail;
28010 if (obj5) {
28011 arg6 = (int) SWIG_AsInt(obj5);
28012 if (PyErr_Occurred()) SWIG_fail;
28013 }
28014 {
28015 PyThreadState* __tstate = wxPyBeginAllowThreads();
28016 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
28017
28018 wxPyEndAllowThreads(__tstate);
28019 if (PyErr_Occurred()) SWIG_fail;
28020 }
28021 Py_INCREF(Py_None); resultobj = Py_None;
28022 return resultobj;
28023 fail:
28024 return NULL;
28025 }
28026
28027
28028 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28029 PyObject *resultobj;
28030 wxPyControl *arg1 = (wxPyControl *) 0 ;
28031 int arg2 ;
28032 int arg3 ;
28033 PyObject * obj0 = 0 ;
28034 PyObject * obj1 = 0 ;
28035 PyObject * obj2 = 0 ;
28036 char *kwnames[] = {
28037 (char *) "self",(char *) "width",(char *) "height", NULL
28038 };
28039
28040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
28041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28043 arg2 = (int) SWIG_AsInt(obj1);
28044 if (PyErr_Occurred()) SWIG_fail;
28045 arg3 = (int) SWIG_AsInt(obj2);
28046 if (PyErr_Occurred()) SWIG_fail;
28047 {
28048 PyThreadState* __tstate = wxPyBeginAllowThreads();
28049 (arg1)->base_DoSetClientSize(arg2,arg3);
28050
28051 wxPyEndAllowThreads(__tstate);
28052 if (PyErr_Occurred()) SWIG_fail;
28053 }
28054 Py_INCREF(Py_None); resultobj = Py_None;
28055 return resultobj;
28056 fail:
28057 return NULL;
28058 }
28059
28060
28061 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28062 PyObject *resultobj;
28063 wxPyControl *arg1 = (wxPyControl *) 0 ;
28064 int arg2 ;
28065 int arg3 ;
28066 PyObject * obj0 = 0 ;
28067 PyObject * obj1 = 0 ;
28068 PyObject * obj2 = 0 ;
28069 char *kwnames[] = {
28070 (char *) "self",(char *) "x",(char *) "y", NULL
28071 };
28072
28073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
28074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28076 arg2 = (int) SWIG_AsInt(obj1);
28077 if (PyErr_Occurred()) SWIG_fail;
28078 arg3 = (int) SWIG_AsInt(obj2);
28079 if (PyErr_Occurred()) SWIG_fail;
28080 {
28081 PyThreadState* __tstate = wxPyBeginAllowThreads();
28082 (arg1)->base_DoSetVirtualSize(arg2,arg3);
28083
28084 wxPyEndAllowThreads(__tstate);
28085 if (PyErr_Occurred()) SWIG_fail;
28086 }
28087 Py_INCREF(Py_None); resultobj = Py_None;
28088 return resultobj;
28089 fail:
28090 return NULL;
28091 }
28092
28093
28094 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28095 PyObject *resultobj;
28096 wxPyControl *arg1 = (wxPyControl *) 0 ;
28097 int *arg2 = (int *) 0 ;
28098 int *arg3 = (int *) 0 ;
28099 int temp2 ;
28100 int temp3 ;
28101 PyObject * obj0 = 0 ;
28102 char *kwnames[] = {
28103 (char *) "self", NULL
28104 };
28105
28106 arg2 = &temp2;
28107 arg3 = &temp3;
28108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
28109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28111 {
28112 PyThreadState* __tstate = wxPyBeginAllowThreads();
28113 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
28114
28115 wxPyEndAllowThreads(__tstate);
28116 if (PyErr_Occurred()) SWIG_fail;
28117 }
28118 Py_INCREF(Py_None); resultobj = Py_None;
28119 {
28120 PyObject *o = PyInt_FromLong((long) (*arg2));
28121 resultobj = t_output_helper(resultobj,o);
28122 }
28123 {
28124 PyObject *o = PyInt_FromLong((long) (*arg3));
28125 resultobj = t_output_helper(resultobj,o);
28126 }
28127 return resultobj;
28128 fail:
28129 return NULL;
28130 }
28131
28132
28133 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28134 PyObject *resultobj;
28135 wxPyControl *arg1 = (wxPyControl *) 0 ;
28136 int *arg2 = (int *) 0 ;
28137 int *arg3 = (int *) 0 ;
28138 int temp2 ;
28139 int temp3 ;
28140 PyObject * obj0 = 0 ;
28141 char *kwnames[] = {
28142 (char *) "self", NULL
28143 };
28144
28145 arg2 = &temp2;
28146 arg3 = &temp3;
28147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
28148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28150 {
28151 PyThreadState* __tstate = wxPyBeginAllowThreads();
28152 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
28153
28154 wxPyEndAllowThreads(__tstate);
28155 if (PyErr_Occurred()) SWIG_fail;
28156 }
28157 Py_INCREF(Py_None); resultobj = Py_None;
28158 {
28159 PyObject *o = PyInt_FromLong((long) (*arg2));
28160 resultobj = t_output_helper(resultobj,o);
28161 }
28162 {
28163 PyObject *o = PyInt_FromLong((long) (*arg3));
28164 resultobj = t_output_helper(resultobj,o);
28165 }
28166 return resultobj;
28167 fail:
28168 return NULL;
28169 }
28170
28171
28172 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28173 PyObject *resultobj;
28174 wxPyControl *arg1 = (wxPyControl *) 0 ;
28175 int *arg2 = (int *) 0 ;
28176 int *arg3 = (int *) 0 ;
28177 int temp2 ;
28178 int temp3 ;
28179 PyObject * obj0 = 0 ;
28180 char *kwnames[] = {
28181 (char *) "self", NULL
28182 };
28183
28184 arg2 = &temp2;
28185 arg3 = &temp3;
28186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
28187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28189 {
28190 PyThreadState* __tstate = wxPyBeginAllowThreads();
28191 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
28192
28193 wxPyEndAllowThreads(__tstate);
28194 if (PyErr_Occurred()) SWIG_fail;
28195 }
28196 Py_INCREF(Py_None); resultobj = Py_None;
28197 {
28198 PyObject *o = PyInt_FromLong((long) (*arg2));
28199 resultobj = t_output_helper(resultobj,o);
28200 }
28201 {
28202 PyObject *o = PyInt_FromLong((long) (*arg3));
28203 resultobj = t_output_helper(resultobj,o);
28204 }
28205 return resultobj;
28206 fail:
28207 return NULL;
28208 }
28209
28210
28211 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28212 PyObject *resultobj;
28213 wxPyControl *arg1 = (wxPyControl *) 0 ;
28214 wxSize result;
28215 PyObject * obj0 = 0 ;
28216 char *kwnames[] = {
28217 (char *) "self", NULL
28218 };
28219
28220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
28221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28223 {
28224 PyThreadState* __tstate = wxPyBeginAllowThreads();
28225 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
28226
28227 wxPyEndAllowThreads(__tstate);
28228 if (PyErr_Occurred()) SWIG_fail;
28229 }
28230 {
28231 wxSize * resultptr;
28232 resultptr = new wxSize((wxSize &) result);
28233 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28234 }
28235 return resultobj;
28236 fail:
28237 return NULL;
28238 }
28239
28240
28241 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28242 PyObject *resultobj;
28243 wxPyControl *arg1 = (wxPyControl *) 0 ;
28244 wxSize result;
28245 PyObject * obj0 = 0 ;
28246 char *kwnames[] = {
28247 (char *) "self", NULL
28248 };
28249
28250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
28251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28253 {
28254 PyThreadState* __tstate = wxPyBeginAllowThreads();
28255 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
28256
28257 wxPyEndAllowThreads(__tstate);
28258 if (PyErr_Occurred()) SWIG_fail;
28259 }
28260 {
28261 wxSize * resultptr;
28262 resultptr = new wxSize((wxSize &) result);
28263 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28264 }
28265 return resultobj;
28266 fail:
28267 return NULL;
28268 }
28269
28270
28271 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
28272 PyObject *resultobj;
28273 wxPyControl *arg1 = (wxPyControl *) 0 ;
28274 PyObject * obj0 = 0 ;
28275 char *kwnames[] = {
28276 (char *) "self", NULL
28277 };
28278
28279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
28280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28282 {
28283 PyThreadState* __tstate = wxPyBeginAllowThreads();
28284 (arg1)->base_InitDialog();
28285
28286 wxPyEndAllowThreads(__tstate);
28287 if (PyErr_Occurred()) SWIG_fail;
28288 }
28289 Py_INCREF(Py_None); resultobj = Py_None;
28290 return resultobj;
28291 fail:
28292 return NULL;
28293 }
28294
28295
28296 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28297 PyObject *resultobj;
28298 wxPyControl *arg1 = (wxPyControl *) 0 ;
28299 bool result;
28300 PyObject * obj0 = 0 ;
28301 char *kwnames[] = {
28302 (char *) "self", NULL
28303 };
28304
28305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
28306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28308 {
28309 PyThreadState* __tstate = wxPyBeginAllowThreads();
28310 result = (bool)(arg1)->base_TransferDataToWindow();
28311
28312 wxPyEndAllowThreads(__tstate);
28313 if (PyErr_Occurred()) SWIG_fail;
28314 }
28315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28316 return resultobj;
28317 fail:
28318 return NULL;
28319 }
28320
28321
28322 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28323 PyObject *resultobj;
28324 wxPyControl *arg1 = (wxPyControl *) 0 ;
28325 bool result;
28326 PyObject * obj0 = 0 ;
28327 char *kwnames[] = {
28328 (char *) "self", NULL
28329 };
28330
28331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
28332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28334 {
28335 PyThreadState* __tstate = wxPyBeginAllowThreads();
28336 result = (bool)(arg1)->base_TransferDataFromWindow();
28337
28338 wxPyEndAllowThreads(__tstate);
28339 if (PyErr_Occurred()) SWIG_fail;
28340 }
28341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28342 return resultobj;
28343 fail:
28344 return NULL;
28345 }
28346
28347
28348 static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
28349 PyObject *resultobj;
28350 wxPyControl *arg1 = (wxPyControl *) 0 ;
28351 bool result;
28352 PyObject * obj0 = 0 ;
28353 char *kwnames[] = {
28354 (char *) "self", NULL
28355 };
28356
28357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
28358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28360 {
28361 PyThreadState* __tstate = wxPyBeginAllowThreads();
28362 result = (bool)(arg1)->base_Validate();
28363
28364 wxPyEndAllowThreads(__tstate);
28365 if (PyErr_Occurred()) SWIG_fail;
28366 }
28367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28368 return resultobj;
28369 fail:
28370 return NULL;
28371 }
28372
28373
28374 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
28375 PyObject *resultobj;
28376 wxPyControl *arg1 = (wxPyControl *) 0 ;
28377 bool result;
28378 PyObject * obj0 = 0 ;
28379 char *kwnames[] = {
28380 (char *) "self", NULL
28381 };
28382
28383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
28384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28386 {
28387 PyThreadState* __tstate = wxPyBeginAllowThreads();
28388 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
28389
28390 wxPyEndAllowThreads(__tstate);
28391 if (PyErr_Occurred()) SWIG_fail;
28392 }
28393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28394 return resultobj;
28395 fail:
28396 return NULL;
28397 }
28398
28399
28400 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
28401 PyObject *resultobj;
28402 wxPyControl *arg1 = (wxPyControl *) 0 ;
28403 bool result;
28404 PyObject * obj0 = 0 ;
28405 char *kwnames[] = {
28406 (char *) "self", NULL
28407 };
28408
28409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
28410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28412 {
28413 PyThreadState* __tstate = wxPyBeginAllowThreads();
28414 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
28415
28416 wxPyEndAllowThreads(__tstate);
28417 if (PyErr_Occurred()) SWIG_fail;
28418 }
28419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28420 return resultobj;
28421 fail:
28422 return NULL;
28423 }
28424
28425
28426 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28427 PyObject *resultobj;
28428 wxPyControl *arg1 = (wxPyControl *) 0 ;
28429 wxSize result;
28430 PyObject * obj0 = 0 ;
28431 char *kwnames[] = {
28432 (char *) "self", NULL
28433 };
28434
28435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
28436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28438 {
28439 PyThreadState* __tstate = wxPyBeginAllowThreads();
28440 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
28441
28442 wxPyEndAllowThreads(__tstate);
28443 if (PyErr_Occurred()) SWIG_fail;
28444 }
28445 {
28446 wxSize * resultptr;
28447 resultptr = new wxSize((wxSize &) result);
28448 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28449 }
28450 return resultobj;
28451 fail:
28452 return NULL;
28453 }
28454
28455
28456 static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28457 PyObject *resultobj;
28458 wxPyControl *arg1 = (wxPyControl *) 0 ;
28459 wxWindow *arg2 = (wxWindow *) 0 ;
28460 PyObject * obj0 = 0 ;
28461 PyObject * obj1 = 0 ;
28462 char *kwnames[] = {
28463 (char *) "self",(char *) "child", NULL
28464 };
28465
28466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
28467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28471 {
28472 PyThreadState* __tstate = wxPyBeginAllowThreads();
28473 (arg1)->base_AddChild(arg2);
28474
28475 wxPyEndAllowThreads(__tstate);
28476 if (PyErr_Occurred()) SWIG_fail;
28477 }
28478 Py_INCREF(Py_None); resultobj = Py_None;
28479 return resultobj;
28480 fail:
28481 return NULL;
28482 }
28483
28484
28485 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28486 PyObject *resultobj;
28487 wxPyControl *arg1 = (wxPyControl *) 0 ;
28488 wxWindow *arg2 = (wxWindow *) 0 ;
28489 PyObject * obj0 = 0 ;
28490 PyObject * obj1 = 0 ;
28491 char *kwnames[] = {
28492 (char *) "self",(char *) "child", NULL
28493 };
28494
28495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
28496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28498 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28500 {
28501 PyThreadState* __tstate = wxPyBeginAllowThreads();
28502 (arg1)->base_RemoveChild(arg2);
28503
28504 wxPyEndAllowThreads(__tstate);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 }
28507 Py_INCREF(Py_None); resultobj = Py_None;
28508 return resultobj;
28509 fail:
28510 return NULL;
28511 }
28512
28513
28514 static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
28515 PyObject *obj;
28516 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28517 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
28518 Py_INCREF(obj);
28519 return Py_BuildValue((char *)"");
28520 }
28521 static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
28522 PyObject *resultobj;
28523 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28524 int arg2 = (int) 0 ;
28525 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28526 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28527 wxHelpEvent *result;
28528 wxPoint temp3 ;
28529 PyObject * obj0 = 0 ;
28530 PyObject * obj1 = 0 ;
28531 PyObject * obj2 = 0 ;
28532 char *kwnames[] = {
28533 (char *) "type",(char *) "winid",(char *) "pt", NULL
28534 };
28535
28536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
28537 if (obj0) {
28538 arg1 = (wxEventType) SWIG_AsInt(obj0);
28539 if (PyErr_Occurred()) SWIG_fail;
28540 }
28541 if (obj1) {
28542 arg2 = (int) SWIG_AsInt(obj1);
28543 if (PyErr_Occurred()) SWIG_fail;
28544 }
28545 if (obj2) {
28546 {
28547 arg3 = &temp3;
28548 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28549 }
28550 }
28551 {
28552 PyThreadState* __tstate = wxPyBeginAllowThreads();
28553 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
28554
28555 wxPyEndAllowThreads(__tstate);
28556 if (PyErr_Occurred()) SWIG_fail;
28557 }
28558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
28559 return resultobj;
28560 fail:
28561 return NULL;
28562 }
28563
28564
28565 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28566 PyObject *resultobj;
28567 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28568 wxPoint result;
28569 PyObject * obj0 = 0 ;
28570 char *kwnames[] = {
28571 (char *) "self", NULL
28572 };
28573
28574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
28575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28577 {
28578 PyThreadState* __tstate = wxPyBeginAllowThreads();
28579 result = ((wxHelpEvent const *)arg1)->GetPosition();
28580
28581 wxPyEndAllowThreads(__tstate);
28582 if (PyErr_Occurred()) SWIG_fail;
28583 }
28584 {
28585 wxPoint * resultptr;
28586 resultptr = new wxPoint((wxPoint &) result);
28587 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
28588 }
28589 return resultobj;
28590 fail:
28591 return NULL;
28592 }
28593
28594
28595 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28596 PyObject *resultobj;
28597 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28598 wxPoint *arg2 = 0 ;
28599 wxPoint temp2 ;
28600 PyObject * obj0 = 0 ;
28601 PyObject * obj1 = 0 ;
28602 char *kwnames[] = {
28603 (char *) "self",(char *) "pos", NULL
28604 };
28605
28606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
28607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28609 {
28610 arg2 = &temp2;
28611 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28612 }
28613 {
28614 PyThreadState* __tstate = wxPyBeginAllowThreads();
28615 (arg1)->SetPosition((wxPoint const &)*arg2);
28616
28617 wxPyEndAllowThreads(__tstate);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 Py_INCREF(Py_None); resultobj = Py_None;
28621 return resultobj;
28622 fail:
28623 return NULL;
28624 }
28625
28626
28627 static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
28628 PyObject *resultobj;
28629 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28630 wxString *result;
28631 PyObject * obj0 = 0 ;
28632 char *kwnames[] = {
28633 (char *) "self", NULL
28634 };
28635
28636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
28637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28639 {
28640 PyThreadState* __tstate = wxPyBeginAllowThreads();
28641 {
28642 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
28643 result = (wxString *) &_result_ref;
28644 }
28645
28646 wxPyEndAllowThreads(__tstate);
28647 if (PyErr_Occurred()) SWIG_fail;
28648 }
28649 {
28650 #if wxUSE_UNICODE
28651 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28652 #else
28653 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28654 #endif
28655 }
28656 return resultobj;
28657 fail:
28658 return NULL;
28659 }
28660
28661
28662 static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
28663 PyObject *resultobj;
28664 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28665 wxString *arg2 = 0 ;
28666 bool temp2 = False ;
28667 PyObject * obj0 = 0 ;
28668 PyObject * obj1 = 0 ;
28669 char *kwnames[] = {
28670 (char *) "self",(char *) "link", NULL
28671 };
28672
28673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
28674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28676 {
28677 arg2 = wxString_in_helper(obj1);
28678 if (arg2 == NULL) SWIG_fail;
28679 temp2 = True;
28680 }
28681 {
28682 PyThreadState* __tstate = wxPyBeginAllowThreads();
28683 (arg1)->SetLink((wxString const &)*arg2);
28684
28685 wxPyEndAllowThreads(__tstate);
28686 if (PyErr_Occurred()) SWIG_fail;
28687 }
28688 Py_INCREF(Py_None); resultobj = Py_None;
28689 {
28690 if (temp2)
28691 delete arg2;
28692 }
28693 return resultobj;
28694 fail:
28695 {
28696 if (temp2)
28697 delete arg2;
28698 }
28699 return NULL;
28700 }
28701
28702
28703 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
28704 PyObject *resultobj;
28705 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28706 wxString *result;
28707 PyObject * obj0 = 0 ;
28708 char *kwnames[] = {
28709 (char *) "self", NULL
28710 };
28711
28712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
28713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28715 {
28716 PyThreadState* __tstate = wxPyBeginAllowThreads();
28717 {
28718 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
28719 result = (wxString *) &_result_ref;
28720 }
28721
28722 wxPyEndAllowThreads(__tstate);
28723 if (PyErr_Occurred()) SWIG_fail;
28724 }
28725 {
28726 #if wxUSE_UNICODE
28727 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28728 #else
28729 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28730 #endif
28731 }
28732 return resultobj;
28733 fail:
28734 return NULL;
28735 }
28736
28737
28738 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
28739 PyObject *resultobj;
28740 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28741 wxString *arg2 = 0 ;
28742 bool temp2 = False ;
28743 PyObject * obj0 = 0 ;
28744 PyObject * obj1 = 0 ;
28745 char *kwnames[] = {
28746 (char *) "self",(char *) "target", NULL
28747 };
28748
28749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
28750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28752 {
28753 arg2 = wxString_in_helper(obj1);
28754 if (arg2 == NULL) SWIG_fail;
28755 temp2 = True;
28756 }
28757 {
28758 PyThreadState* __tstate = wxPyBeginAllowThreads();
28759 (arg1)->SetTarget((wxString const &)*arg2);
28760
28761 wxPyEndAllowThreads(__tstate);
28762 if (PyErr_Occurred()) SWIG_fail;
28763 }
28764 Py_INCREF(Py_None); resultobj = Py_None;
28765 {
28766 if (temp2)
28767 delete arg2;
28768 }
28769 return resultobj;
28770 fail:
28771 {
28772 if (temp2)
28773 delete arg2;
28774 }
28775 return NULL;
28776 }
28777
28778
28779 static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
28780 PyObject *obj;
28781 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28782 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
28783 Py_INCREF(obj);
28784 return Py_BuildValue((char *)"");
28785 }
28786 static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28787 PyObject *resultobj;
28788 wxWindow *arg1 = (wxWindow *) NULL ;
28789 bool arg2 = (bool) True ;
28790 wxContextHelp *result;
28791 PyObject * obj0 = 0 ;
28792 PyObject * obj1 = 0 ;
28793 char *kwnames[] = {
28794 (char *) "window",(char *) "doNow", NULL
28795 };
28796
28797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
28798 if (obj0) {
28799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28801 }
28802 if (obj1) {
28803 arg2 = (bool) SWIG_AsBool(obj1);
28804 if (PyErr_Occurred()) SWIG_fail;
28805 }
28806 {
28807 PyThreadState* __tstate = wxPyBeginAllowThreads();
28808 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
28809
28810 wxPyEndAllowThreads(__tstate);
28811 if (PyErr_Occurred()) SWIG_fail;
28812 }
28813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
28814 return resultobj;
28815 fail:
28816 return NULL;
28817 }
28818
28819
28820 static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28821 PyObject *resultobj;
28822 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28823 PyObject * obj0 = 0 ;
28824 char *kwnames[] = {
28825 (char *) "self", NULL
28826 };
28827
28828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
28829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
28830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28831 {
28832 PyThreadState* __tstate = wxPyBeginAllowThreads();
28833 delete arg1;
28834
28835 wxPyEndAllowThreads(__tstate);
28836 if (PyErr_Occurred()) SWIG_fail;
28837 }
28838 Py_INCREF(Py_None); resultobj = Py_None;
28839 return resultobj;
28840 fail:
28841 return NULL;
28842 }
28843
28844
28845 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28846 PyObject *resultobj;
28847 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28848 wxWindow *arg2 = (wxWindow *) NULL ;
28849 bool result;
28850 PyObject * obj0 = 0 ;
28851 PyObject * obj1 = 0 ;
28852 char *kwnames[] = {
28853 (char *) "self",(char *) "window", NULL
28854 };
28855
28856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
28857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
28858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28859 if (obj1) {
28860 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28862 }
28863 {
28864 PyThreadState* __tstate = wxPyBeginAllowThreads();
28865 result = (bool)(arg1)->BeginContextHelp(arg2);
28866
28867 wxPyEndAllowThreads(__tstate);
28868 if (PyErr_Occurred()) SWIG_fail;
28869 }
28870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28871 return resultobj;
28872 fail:
28873 return NULL;
28874 }
28875
28876
28877 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28878 PyObject *resultobj;
28879 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28880 bool result;
28881 PyObject * obj0 = 0 ;
28882 char *kwnames[] = {
28883 (char *) "self", NULL
28884 };
28885
28886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
28887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
28888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28889 {
28890 PyThreadState* __tstate = wxPyBeginAllowThreads();
28891 result = (bool)(arg1)->EndContextHelp();
28892
28893 wxPyEndAllowThreads(__tstate);
28894 if (PyErr_Occurred()) SWIG_fail;
28895 }
28896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28897 return resultobj;
28898 fail:
28899 return NULL;
28900 }
28901
28902
28903 static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
28904 PyObject *obj;
28905 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28906 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
28907 Py_INCREF(obj);
28908 return Py_BuildValue((char *)"");
28909 }
28910 static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
28911 PyObject *resultobj;
28912 wxWindow *arg1 = (wxWindow *) 0 ;
28913 int arg2 = (int) wxID_CONTEXT_HELP ;
28914 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28915 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28916 wxSize const &arg4_defvalue = wxDefaultSize ;
28917 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28918 long arg5 = (long) wxBU_AUTODRAW ;
28919 wxContextHelpButton *result;
28920 wxPoint temp3 ;
28921 wxSize temp4 ;
28922 PyObject * obj0 = 0 ;
28923 PyObject * obj1 = 0 ;
28924 PyObject * obj2 = 0 ;
28925 PyObject * obj3 = 0 ;
28926 PyObject * obj4 = 0 ;
28927 char *kwnames[] = {
28928 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28929 };
28930
28931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28934 if (obj1) {
28935 arg2 = (int) SWIG_AsInt(obj1);
28936 if (PyErr_Occurred()) SWIG_fail;
28937 }
28938 if (obj2) {
28939 {
28940 arg3 = &temp3;
28941 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28942 }
28943 }
28944 if (obj3) {
28945 {
28946 arg4 = &temp4;
28947 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28948 }
28949 }
28950 if (obj4) {
28951 arg5 = (long) SWIG_AsLong(obj4);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 {
28955 PyThreadState* __tstate = wxPyBeginAllowThreads();
28956 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28957
28958 wxPyEndAllowThreads(__tstate);
28959 if (PyErr_Occurred()) SWIG_fail;
28960 }
28961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
28962 return resultobj;
28963 fail:
28964 return NULL;
28965 }
28966
28967
28968 static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
28969 PyObject *obj;
28970 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28971 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
28972 Py_INCREF(obj);
28973 return Py_BuildValue((char *)"");
28974 }
28975 static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
28976 PyObject *resultobj;
28977 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28978 wxHelpProvider *result;
28979 PyObject * obj0 = 0 ;
28980 char *kwnames[] = {
28981 (char *) "helpProvider", NULL
28982 };
28983
28984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
28985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28987 {
28988 PyThreadState* __tstate = wxPyBeginAllowThreads();
28989 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
28990
28991 wxPyEndAllowThreads(__tstate);
28992 if (PyErr_Occurred()) SWIG_fail;
28993 }
28994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
28995 return resultobj;
28996 fail:
28997 return NULL;
28998 }
28999
29000
29001 static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
29002 PyObject *resultobj;
29003 wxHelpProvider *result;
29004 char *kwnames[] = {
29005 NULL
29006 };
29007
29008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
29009 {
29010 PyThreadState* __tstate = wxPyBeginAllowThreads();
29011 result = (wxHelpProvider *)wxHelpProvider::Get();
29012
29013 wxPyEndAllowThreads(__tstate);
29014 if (PyErr_Occurred()) SWIG_fail;
29015 }
29016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
29017 return resultobj;
29018 fail:
29019 return NULL;
29020 }
29021
29022
29023 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29024 PyObject *resultobj;
29025 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29026 wxWindow *arg2 = (wxWindow *) 0 ;
29027 wxString result;
29028 PyObject * obj0 = 0 ;
29029 PyObject * obj1 = 0 ;
29030 char *kwnames[] = {
29031 (char *) "self",(char *) "window", NULL
29032 };
29033
29034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
29035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29039 {
29040 PyThreadState* __tstate = wxPyBeginAllowThreads();
29041 result = (arg1)->GetHelp((wxWindow const *)arg2);
29042
29043 wxPyEndAllowThreads(__tstate);
29044 if (PyErr_Occurred()) SWIG_fail;
29045 }
29046 {
29047 #if wxUSE_UNICODE
29048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29049 #else
29050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29051 #endif
29052 }
29053 return resultobj;
29054 fail:
29055 return NULL;
29056 }
29057
29058
29059 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29060 PyObject *resultobj;
29061 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29062 wxWindow *arg2 = (wxWindow *) 0 ;
29063 bool result;
29064 PyObject * obj0 = 0 ;
29065 PyObject * obj1 = 0 ;
29066 char *kwnames[] = {
29067 (char *) "self",(char *) "window", NULL
29068 };
29069
29070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
29071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29073 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29075 {
29076 PyThreadState* __tstate = wxPyBeginAllowThreads();
29077 result = (bool)(arg1)->ShowHelp(arg2);
29078
29079 wxPyEndAllowThreads(__tstate);
29080 if (PyErr_Occurred()) SWIG_fail;
29081 }
29082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29083 return resultobj;
29084 fail:
29085 return NULL;
29086 }
29087
29088
29089 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29090 PyObject *resultobj;
29091 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29092 wxWindow *arg2 = (wxWindow *) 0 ;
29093 wxString *arg3 = 0 ;
29094 bool temp3 = False ;
29095 PyObject * obj0 = 0 ;
29096 PyObject * obj1 = 0 ;
29097 PyObject * obj2 = 0 ;
29098 char *kwnames[] = {
29099 (char *) "self",(char *) "window",(char *) "text", NULL
29100 };
29101
29102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
29103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29105 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29107 {
29108 arg3 = wxString_in_helper(obj2);
29109 if (arg3 == NULL) SWIG_fail;
29110 temp3 = True;
29111 }
29112 {
29113 PyThreadState* __tstate = wxPyBeginAllowThreads();
29114 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
29115
29116 wxPyEndAllowThreads(__tstate);
29117 if (PyErr_Occurred()) SWIG_fail;
29118 }
29119 Py_INCREF(Py_None); resultobj = Py_None;
29120 {
29121 if (temp3)
29122 delete arg3;
29123 }
29124 return resultobj;
29125 fail:
29126 {
29127 if (temp3)
29128 delete arg3;
29129 }
29130 return NULL;
29131 }
29132
29133
29134 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
29135 PyObject *resultobj;
29136 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29137 int arg2 ;
29138 wxString *arg3 = 0 ;
29139 bool temp3 = False ;
29140 PyObject * obj0 = 0 ;
29141 PyObject * obj1 = 0 ;
29142 PyObject * obj2 = 0 ;
29143 char *kwnames[] = {
29144 (char *) "self",(char *) "id",(char *) "text", NULL
29145 };
29146
29147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
29148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29150 arg2 = (int) SWIG_AsInt(obj1);
29151 if (PyErr_Occurred()) SWIG_fail;
29152 {
29153 arg3 = wxString_in_helper(obj2);
29154 if (arg3 == NULL) SWIG_fail;
29155 temp3 = True;
29156 }
29157 {
29158 PyThreadState* __tstate = wxPyBeginAllowThreads();
29159 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
29160
29161 wxPyEndAllowThreads(__tstate);
29162 if (PyErr_Occurred()) SWIG_fail;
29163 }
29164 Py_INCREF(Py_None); resultobj = Py_None;
29165 {
29166 if (temp3)
29167 delete arg3;
29168 }
29169 return resultobj;
29170 fail:
29171 {
29172 if (temp3)
29173 delete arg3;
29174 }
29175 return NULL;
29176 }
29177
29178
29179 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29180 PyObject *resultobj;
29181 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29182 wxWindow *arg2 = (wxWindow *) 0 ;
29183 PyObject * obj0 = 0 ;
29184 PyObject * obj1 = 0 ;
29185 char *kwnames[] = {
29186 (char *) "self",(char *) "window", NULL
29187 };
29188
29189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
29190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29192 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29194 {
29195 PyThreadState* __tstate = wxPyBeginAllowThreads();
29196 (arg1)->RemoveHelp(arg2);
29197
29198 wxPyEndAllowThreads(__tstate);
29199 if (PyErr_Occurred()) SWIG_fail;
29200 }
29201 Py_INCREF(Py_None); resultobj = Py_None;
29202 return resultobj;
29203 fail:
29204 return NULL;
29205 }
29206
29207
29208 static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
29209 PyObject *resultobj;
29210 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
29211 PyObject * obj0 = 0 ;
29212 char *kwnames[] = {
29213 (char *) "self", NULL
29214 };
29215
29216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
29217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
29218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29219 {
29220 PyThreadState* __tstate = wxPyBeginAllowThreads();
29221 wxHelpProvider_Destroy(arg1);
29222
29223 wxPyEndAllowThreads(__tstate);
29224 if (PyErr_Occurred()) SWIG_fail;
29225 }
29226 Py_INCREF(Py_None); resultobj = Py_None;
29227 return resultobj;
29228 fail:
29229 return NULL;
29230 }
29231
29232
29233 static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
29234 PyObject *obj;
29235 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29236 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
29237 Py_INCREF(obj);
29238 return Py_BuildValue((char *)"");
29239 }
29240 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
29241 PyObject *resultobj;
29242 wxSimpleHelpProvider *result;
29243 char *kwnames[] = {
29244 NULL
29245 };
29246
29247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
29248 {
29249 PyThreadState* __tstate = wxPyBeginAllowThreads();
29250 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
29251
29252 wxPyEndAllowThreads(__tstate);
29253 if (PyErr_Occurred()) SWIG_fail;
29254 }
29255 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
29256 return resultobj;
29257 fail:
29258 return NULL;
29259 }
29260
29261
29262 static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
29263 PyObject *obj;
29264 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29265 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
29266 Py_INCREF(obj);
29267 return Py_BuildValue((char *)"");
29268 }
29269 static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29270 PyObject *resultobj;
29271 wxBitmap *arg1 = 0 ;
29272 wxCursor const &arg2_defvalue = wxNullCursor ;
29273 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29274 wxGenericDragImage *result;
29275 PyObject * obj0 = 0 ;
29276 PyObject * obj1 = 0 ;
29277 char *kwnames[] = {
29278 (char *) "image",(char *) "cursor", NULL
29279 };
29280
29281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
29282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
29283 SWIG_POINTER_EXCEPTION | 0)) == -1)
29284 SWIG_fail;
29285 if (arg1 == NULL) {
29286 PyErr_SetString(PyExc_TypeError,"null reference");
29287 SWIG_fail;
29288 }
29289 if (obj1) {
29290 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29291 SWIG_POINTER_EXCEPTION | 0)) == -1)
29292 SWIG_fail;
29293 if (arg2 == NULL) {
29294 PyErr_SetString(PyExc_TypeError,"null reference");
29295 SWIG_fail;
29296 }
29297 }
29298 {
29299 PyThreadState* __tstate = wxPyBeginAllowThreads();
29300 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
29301
29302 wxPyEndAllowThreads(__tstate);
29303 if (PyErr_Occurred()) SWIG_fail;
29304 }
29305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29306 return resultobj;
29307 fail:
29308 return NULL;
29309 }
29310
29311
29312 static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
29313 PyObject *resultobj;
29314 wxIcon *arg1 = 0 ;
29315 wxCursor const &arg2_defvalue = wxNullCursor ;
29316 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29317 wxGenericDragImage *result;
29318 PyObject * obj0 = 0 ;
29319 PyObject * obj1 = 0 ;
29320 char *kwnames[] = {
29321 (char *) "image",(char *) "cursor", NULL
29322 };
29323
29324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
29325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
29326 SWIG_POINTER_EXCEPTION | 0)) == -1)
29327 SWIG_fail;
29328 if (arg1 == NULL) {
29329 PyErr_SetString(PyExc_TypeError,"null reference");
29330 SWIG_fail;
29331 }
29332 if (obj1) {
29333 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29334 SWIG_POINTER_EXCEPTION | 0)) == -1)
29335 SWIG_fail;
29336 if (arg2 == NULL) {
29337 PyErr_SetString(PyExc_TypeError,"null reference");
29338 SWIG_fail;
29339 }
29340 }
29341 {
29342 PyThreadState* __tstate = wxPyBeginAllowThreads();
29343 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
29344
29345 wxPyEndAllowThreads(__tstate);
29346 if (PyErr_Occurred()) SWIG_fail;
29347 }
29348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29349 return resultobj;
29350 fail:
29351 return NULL;
29352 }
29353
29354
29355 static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
29356 PyObject *resultobj;
29357 wxString *arg1 = 0 ;
29358 wxCursor const &arg2_defvalue = wxNullCursor ;
29359 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29360 wxGenericDragImage *result;
29361 bool temp1 = False ;
29362 PyObject * obj0 = 0 ;
29363 PyObject * obj1 = 0 ;
29364 char *kwnames[] = {
29365 (char *) "str",(char *) "cursor", NULL
29366 };
29367
29368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
29369 {
29370 arg1 = wxString_in_helper(obj0);
29371 if (arg1 == NULL) SWIG_fail;
29372 temp1 = True;
29373 }
29374 if (obj1) {
29375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29376 SWIG_POINTER_EXCEPTION | 0)) == -1)
29377 SWIG_fail;
29378 if (arg2 == NULL) {
29379 PyErr_SetString(PyExc_TypeError,"null reference");
29380 SWIG_fail;
29381 }
29382 }
29383 {
29384 PyThreadState* __tstate = wxPyBeginAllowThreads();
29385 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
29386
29387 wxPyEndAllowThreads(__tstate);
29388 if (PyErr_Occurred()) SWIG_fail;
29389 }
29390 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29391 {
29392 if (temp1)
29393 delete arg1;
29394 }
29395 return resultobj;
29396 fail:
29397 {
29398 if (temp1)
29399 delete arg1;
29400 }
29401 return NULL;
29402 }
29403
29404
29405 static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29406 PyObject *resultobj;
29407 wxPyTreeCtrl *arg1 = 0 ;
29408 wxTreeItemId *arg2 = 0 ;
29409 wxGenericDragImage *result;
29410 PyObject * obj0 = 0 ;
29411 PyObject * obj1 = 0 ;
29412 char *kwnames[] = {
29413 (char *) "treeCtrl",(char *) "id", NULL
29414 };
29415
29416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
29417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
29418 SWIG_POINTER_EXCEPTION | 0)) == -1)
29419 SWIG_fail;
29420 if (arg1 == NULL) {
29421 PyErr_SetString(PyExc_TypeError,"null reference");
29422 SWIG_fail;
29423 }
29424 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
29425 SWIG_POINTER_EXCEPTION | 0)) == -1)
29426 SWIG_fail;
29427 if (arg2 == NULL) {
29428 PyErr_SetString(PyExc_TypeError,"null reference");
29429 SWIG_fail;
29430 }
29431 {
29432 PyThreadState* __tstate = wxPyBeginAllowThreads();
29433 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
29434
29435 wxPyEndAllowThreads(__tstate);
29436 if (PyErr_Occurred()) SWIG_fail;
29437 }
29438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29439 return resultobj;
29440 fail:
29441 return NULL;
29442 }
29443
29444
29445 static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29446 PyObject *resultobj;
29447 wxPyListCtrl *arg1 = 0 ;
29448 long arg2 ;
29449 wxGenericDragImage *result;
29450 PyObject * obj0 = 0 ;
29451 PyObject * obj1 = 0 ;
29452 char *kwnames[] = {
29453 (char *) "listCtrl",(char *) "id", NULL
29454 };
29455
29456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
29457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
29458 SWIG_POINTER_EXCEPTION | 0)) == -1)
29459 SWIG_fail;
29460 if (arg1 == NULL) {
29461 PyErr_SetString(PyExc_TypeError,"null reference");
29462 SWIG_fail;
29463 }
29464 arg2 = (long) SWIG_AsLong(obj1);
29465 if (PyErr_Occurred()) SWIG_fail;
29466 {
29467 PyThreadState* __tstate = wxPyBeginAllowThreads();
29468 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
29469
29470 wxPyEndAllowThreads(__tstate);
29471 if (PyErr_Occurred()) SWIG_fail;
29472 }
29473 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29474 return resultobj;
29475 fail:
29476 return NULL;
29477 }
29478
29479
29480 static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29481 PyObject *resultobj;
29482 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29483 PyObject * obj0 = 0 ;
29484 char *kwnames[] = {
29485 (char *) "self", NULL
29486 };
29487
29488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
29489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29491 {
29492 PyThreadState* __tstate = wxPyBeginAllowThreads();
29493 delete arg1;
29494
29495 wxPyEndAllowThreads(__tstate);
29496 if (PyErr_Occurred()) SWIG_fail;
29497 }
29498 Py_INCREF(Py_None); resultobj = Py_None;
29499 return resultobj;
29500 fail:
29501 return NULL;
29502 }
29503
29504
29505 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
29506 PyObject *resultobj;
29507 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29508 wxBitmap *arg2 = (wxBitmap *) 0 ;
29509 PyObject * obj0 = 0 ;
29510 PyObject * obj1 = 0 ;
29511 char *kwnames[] = {
29512 (char *) "self",(char *) "bitmap", NULL
29513 };
29514
29515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
29516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
29519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29520 {
29521 PyThreadState* __tstate = wxPyBeginAllowThreads();
29522 (arg1)->SetBackingBitmap(arg2);
29523
29524 wxPyEndAllowThreads(__tstate);
29525 if (PyErr_Occurred()) SWIG_fail;
29526 }
29527 Py_INCREF(Py_None); resultobj = Py_None;
29528 return resultobj;
29529 fail:
29530 return NULL;
29531 }
29532
29533
29534 static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
29535 PyObject *resultobj;
29536 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29537 wxPoint *arg2 = 0 ;
29538 wxWindow *arg3 = (wxWindow *) 0 ;
29539 bool arg4 = (bool) False ;
29540 wxRect *arg5 = (wxRect *) NULL ;
29541 bool result;
29542 wxPoint temp2 ;
29543 PyObject * obj0 = 0 ;
29544 PyObject * obj1 = 0 ;
29545 PyObject * obj2 = 0 ;
29546 PyObject * obj3 = 0 ;
29547 PyObject * obj4 = 0 ;
29548 char *kwnames[] = {
29549 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
29550 };
29551
29552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29555 {
29556 arg2 = &temp2;
29557 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29558 }
29559 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
29560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29561 if (obj3) {
29562 arg4 = (bool) SWIG_AsBool(obj3);
29563 if (PyErr_Occurred()) SWIG_fail;
29564 }
29565 if (obj4) {
29566 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
29567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29568 }
29569 {
29570 PyThreadState* __tstate = wxPyBeginAllowThreads();
29571 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
29572
29573 wxPyEndAllowThreads(__tstate);
29574 if (PyErr_Occurred()) SWIG_fail;
29575 }
29576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29577 return resultobj;
29578 fail:
29579 return NULL;
29580 }
29581
29582
29583 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
29584 PyObject *resultobj;
29585 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29586 wxPoint *arg2 = 0 ;
29587 wxWindow *arg3 = (wxWindow *) 0 ;
29588 wxWindow *arg4 = (wxWindow *) 0 ;
29589 bool result;
29590 wxPoint temp2 ;
29591 PyObject * obj0 = 0 ;
29592 PyObject * obj1 = 0 ;
29593 PyObject * obj2 = 0 ;
29594 PyObject * obj3 = 0 ;
29595 char *kwnames[] = {
29596 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
29597 };
29598
29599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29602 {
29603 arg2 = &temp2;
29604 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29605 }
29606 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
29607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29608 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
29609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29610 {
29611 PyThreadState* __tstate = wxPyBeginAllowThreads();
29612 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
29613
29614 wxPyEndAllowThreads(__tstate);
29615 if (PyErr_Occurred()) SWIG_fail;
29616 }
29617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29618 return resultobj;
29619 fail:
29620 return NULL;
29621 }
29622
29623
29624 static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
29625 PyObject *resultobj;
29626 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29627 bool result;
29628 PyObject * obj0 = 0 ;
29629 char *kwnames[] = {
29630 (char *) "self", NULL
29631 };
29632
29633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
29634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29636 {
29637 PyThreadState* __tstate = wxPyBeginAllowThreads();
29638 result = (bool)(arg1)->EndDrag();
29639
29640 wxPyEndAllowThreads(__tstate);
29641 if (PyErr_Occurred()) SWIG_fail;
29642 }
29643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29644 return resultobj;
29645 fail:
29646 return NULL;
29647 }
29648
29649
29650 static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
29651 PyObject *resultobj;
29652 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29653 wxPoint *arg2 = 0 ;
29654 bool result;
29655 wxPoint temp2 ;
29656 PyObject * obj0 = 0 ;
29657 PyObject * obj1 = 0 ;
29658 char *kwnames[] = {
29659 (char *) "self",(char *) "pt", NULL
29660 };
29661
29662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
29663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29665 {
29666 arg2 = &temp2;
29667 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29668 }
29669 {
29670 PyThreadState* __tstate = wxPyBeginAllowThreads();
29671 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
29672
29673 wxPyEndAllowThreads(__tstate);
29674 if (PyErr_Occurred()) SWIG_fail;
29675 }
29676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29677 return resultobj;
29678 fail:
29679 return NULL;
29680 }
29681
29682
29683 static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
29684 PyObject *resultobj;
29685 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29686 bool result;
29687 PyObject * obj0 = 0 ;
29688 char *kwnames[] = {
29689 (char *) "self", NULL
29690 };
29691
29692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
29693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29695 {
29696 PyThreadState* __tstate = wxPyBeginAllowThreads();
29697 result = (bool)(arg1)->Show();
29698
29699 wxPyEndAllowThreads(__tstate);
29700 if (PyErr_Occurred()) SWIG_fail;
29701 }
29702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29703 return resultobj;
29704 fail:
29705 return NULL;
29706 }
29707
29708
29709 static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
29710 PyObject *resultobj;
29711 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29712 bool result;
29713 PyObject * obj0 = 0 ;
29714 char *kwnames[] = {
29715 (char *) "self", NULL
29716 };
29717
29718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
29719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29721 {
29722 PyThreadState* __tstate = wxPyBeginAllowThreads();
29723 result = (bool)(arg1)->Hide();
29724
29725 wxPyEndAllowThreads(__tstate);
29726 if (PyErr_Occurred()) SWIG_fail;
29727 }
29728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29729 return resultobj;
29730 fail:
29731 return NULL;
29732 }
29733
29734
29735 static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
29736 PyObject *resultobj;
29737 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29738 wxPoint *arg2 = 0 ;
29739 wxRect result;
29740 wxPoint temp2 ;
29741 PyObject * obj0 = 0 ;
29742 PyObject * obj1 = 0 ;
29743 char *kwnames[] = {
29744 (char *) "self",(char *) "pos", NULL
29745 };
29746
29747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
29748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29750 {
29751 arg2 = &temp2;
29752 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29753 }
29754 {
29755 PyThreadState* __tstate = wxPyBeginAllowThreads();
29756 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
29757
29758 wxPyEndAllowThreads(__tstate);
29759 if (PyErr_Occurred()) SWIG_fail;
29760 }
29761 {
29762 wxRect * resultptr;
29763 resultptr = new wxRect((wxRect &) result);
29764 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
29765 }
29766 return resultobj;
29767 fail:
29768 return NULL;
29769 }
29770
29771
29772 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29773 PyObject *resultobj;
29774 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29775 wxDC *arg2 = 0 ;
29776 wxPoint *arg3 = 0 ;
29777 bool result;
29778 wxPoint temp3 ;
29779 PyObject * obj0 = 0 ;
29780 PyObject * obj1 = 0 ;
29781 PyObject * obj2 = 0 ;
29782 char *kwnames[] = {
29783 (char *) "self",(char *) "dc",(char *) "pos", NULL
29784 };
29785
29786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
29787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29789 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
29790 SWIG_POINTER_EXCEPTION | 0)) == -1)
29791 SWIG_fail;
29792 if (arg2 == NULL) {
29793 PyErr_SetString(PyExc_TypeError,"null reference");
29794 SWIG_fail;
29795 }
29796 {
29797 arg3 = &temp3;
29798 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29799 }
29800 {
29801 PyThreadState* __tstate = wxPyBeginAllowThreads();
29802 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
29803
29804 wxPyEndAllowThreads(__tstate);
29805 if (PyErr_Occurred()) SWIG_fail;
29806 }
29807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29808 return resultobj;
29809 fail:
29810 return NULL;
29811 }
29812
29813
29814 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29815 PyObject *resultobj;
29816 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29817 wxDC *arg2 = 0 ;
29818 wxMemoryDC *arg3 = 0 ;
29819 wxRect *arg4 = 0 ;
29820 wxRect *arg5 = 0 ;
29821 bool result;
29822 wxRect temp4 ;
29823 wxRect temp5 ;
29824 PyObject * obj0 = 0 ;
29825 PyObject * obj1 = 0 ;
29826 PyObject * obj2 = 0 ;
29827 PyObject * obj3 = 0 ;
29828 PyObject * obj4 = 0 ;
29829 char *kwnames[] = {
29830 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
29831 };
29832
29833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29836 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
29837 SWIG_POINTER_EXCEPTION | 0)) == -1)
29838 SWIG_fail;
29839 if (arg2 == NULL) {
29840 PyErr_SetString(PyExc_TypeError,"null reference");
29841 SWIG_fail;
29842 }
29843 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
29844 SWIG_POINTER_EXCEPTION | 0)) == -1)
29845 SWIG_fail;
29846 if (arg3 == NULL) {
29847 PyErr_SetString(PyExc_TypeError,"null reference");
29848 SWIG_fail;
29849 }
29850 {
29851 arg4 = &temp4;
29852 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29853 }
29854 {
29855 arg5 = &temp5;
29856 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
29857 }
29858 {
29859 PyThreadState* __tstate = wxPyBeginAllowThreads();
29860 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
29861
29862 wxPyEndAllowThreads(__tstate);
29863 if (PyErr_Occurred()) SWIG_fail;
29864 }
29865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29866 return resultobj;
29867 fail:
29868 return NULL;
29869 }
29870
29871
29872 static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29873 PyObject *resultobj;
29874 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29875 wxPoint *arg2 = 0 ;
29876 wxPoint *arg3 = 0 ;
29877 bool arg4 ;
29878 bool arg5 ;
29879 bool result;
29880 wxPoint temp2 ;
29881 wxPoint temp3 ;
29882 PyObject * obj0 = 0 ;
29883 PyObject * obj1 = 0 ;
29884 PyObject * obj2 = 0 ;
29885 PyObject * obj3 = 0 ;
29886 PyObject * obj4 = 0 ;
29887 char *kwnames[] = {
29888 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
29889 };
29890
29891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29894 {
29895 arg2 = &temp2;
29896 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29897 }
29898 {
29899 arg3 = &temp3;
29900 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29901 }
29902 arg4 = (bool) SWIG_AsBool(obj3);
29903 if (PyErr_Occurred()) SWIG_fail;
29904 arg5 = (bool) SWIG_AsBool(obj4);
29905 if (PyErr_Occurred()) SWIG_fail;
29906 {
29907 PyThreadState* __tstate = wxPyBeginAllowThreads();
29908 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
29909
29910 wxPyEndAllowThreads(__tstate);
29911 if (PyErr_Occurred()) SWIG_fail;
29912 }
29913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29914 return resultobj;
29915 fail:
29916 return NULL;
29917 }
29918
29919
29920 static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
29921 PyObject *obj;
29922 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29923 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
29924 Py_INCREF(obj);
29925 return Py_BuildValue((char *)"");
29926 }
29927 static PyMethodDef SwigMethods[] = {
29928 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
29929 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
29930 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
29931 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
29932 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
29933 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
29934 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
29935 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
29936 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
29937 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
29938 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
29939 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
29940 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
29941 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
29942 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
29943 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
29944 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
29945 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
29946 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
29947 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
29948 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
29949 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
29950 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
29951 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
29952 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
29953 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
29954 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
29955 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
29956 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
29957 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
29958 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
29959 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
29960 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
29961 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
29962 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
29963 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
29964 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
29965 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
29966 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
29967 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
29968 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
29969 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
29970 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
29971 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
29972 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
29973 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
29974 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
29975 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29976 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29977 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
29978 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
29979 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
29980 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
29981 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
29982 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
29983 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
29984 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
29985 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
29986 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
29987 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
29988 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
29989 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
29990 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
29991 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
29992 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
29993 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
29994 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
29995 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
29996 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
29997 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
29998 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
29999 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
30000 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
30001 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
30002 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
30003 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
30004 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
30005 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
30006 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
30007 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
30008 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
30009 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
30010 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
30011 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
30012 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
30013 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
30014 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
30015 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
30016 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
30017 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
30018 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
30019 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
30020 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
30021 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
30022 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
30023 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
30024 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
30025 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
30026 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
30027 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
30028 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
30029 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
30030 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
30031 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
30032 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
30033 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
30034 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
30035 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
30036 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
30037 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
30038 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30039 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
30040 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
30041 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
30042 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
30043 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
30044 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
30045 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
30046 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
30047 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
30048 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
30049 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
30050 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
30051 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
30052 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
30053 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30054 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30055 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
30056 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
30057 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
30058 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
30059 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
30060 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
30061 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
30062 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30063 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
30064 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
30065 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
30066 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
30067 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
30068 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
30069 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30070 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30071 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
30072 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
30073 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
30074 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
30075 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
30076 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
30077 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
30078 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
30079 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
30080 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
30081 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
30082 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30083 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
30084 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
30085 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
30086 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
30087 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
30088 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
30089 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
30090 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
30091 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
30092 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
30093 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
30094 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
30095 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
30096 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
30097 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
30098 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
30099 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
30100 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
30101 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
30102 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
30103 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
30104 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
30105 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
30106 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
30107 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
30108 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
30109 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
30110 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
30111 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
30112 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
30113 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
30114 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
30115 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
30116 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
30117 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
30118 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
30119 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
30120 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
30121 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
30122 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
30123 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
30124 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
30125 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
30126 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
30127 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
30128 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
30129 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
30130 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
30131 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS },
30132 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS },
30133 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
30134 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
30135 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
30136 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
30137 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
30138 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
30139 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
30140 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
30141 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
30142 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
30143 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
30144 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
30145 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
30146 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
30147 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
30148 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
30149 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
30150 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
30151 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
30152 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
30153 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
30154 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
30155 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
30156 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
30157 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
30158 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
30159 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
30160 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
30161 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
30162 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
30163 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
30164 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
30165 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
30166 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30167 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
30168 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
30169 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
30170 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
30171 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
30172 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
30173 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
30174 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
30175 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
30176 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
30177 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
30178 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
30179 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
30180 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
30181 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
30182 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
30183 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
30184 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
30185 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
30186 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
30187 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
30188 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
30189 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
30190 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
30191 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
30192 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
30193 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
30194 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
30195 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
30196 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
30197 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
30198 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
30199 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
30200 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
30201 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
30202 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
30203 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
30204 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
30205 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
30206 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
30207 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
30208 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
30209 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
30210 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
30211 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
30212 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
30213 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
30214 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
30215 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
30216 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
30217 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
30218 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
30219 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
30220 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
30221 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
30222 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
30223 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
30224 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
30225 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
30226 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
30227 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
30228 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
30229 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
30230 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
30231 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
30232 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
30233 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
30234 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
30235 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
30236 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
30237 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
30238 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
30239 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
30240 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
30241 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
30242 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
30243 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
30244 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
30245 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
30246 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
30247 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
30248 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
30249 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
30250 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
30251 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
30252 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
30253 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
30254 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
30255 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
30256 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
30257 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
30258 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
30259 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
30260 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
30261 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
30262 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
30263 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
30264 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
30265 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
30266 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
30267 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
30268 { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS },
30269 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
30270 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
30271 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
30272 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
30273 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
30274 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
30275 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
30276 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
30277 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
30278 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
30279 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
30280 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
30281 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
30282 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
30283 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
30284 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
30285 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
30286 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
30287 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
30288 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
30289 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
30290 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
30291 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
30292 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
30293 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
30294 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
30295 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
30296 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
30297 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
30298 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
30299 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
30300 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
30301 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
30302 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
30303 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
30304 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
30305 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
30306 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
30307 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
30308 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
30309 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
30310 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
30311 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
30312 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
30313 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
30314 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
30315 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
30316 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
30317 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
30318 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
30319 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
30320 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
30321 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
30322 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
30323 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
30324 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
30325 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
30326 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
30327 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
30328 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
30329 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
30330 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
30331 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
30332 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
30333 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
30334 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
30335 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
30336 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
30337 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
30338 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
30339 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
30340 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
30341 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
30342 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
30343 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
30344 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
30345 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
30346 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
30347 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
30348 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
30349 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
30350 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
30351 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
30352 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
30353 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
30354 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
30355 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
30356 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
30357 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
30358 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
30359 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
30360 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
30361 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
30362 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
30363 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
30364 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
30365 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
30366 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
30367 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
30368 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
30369 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
30370 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30371 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30372 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
30373 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
30374 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30375 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
30376 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30377 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30378 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
30379 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
30380 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
30381 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
30382 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
30383 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
30384 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
30385 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
30386 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
30387 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
30388 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
30389 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
30390 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
30391 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
30392 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
30393 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
30394 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
30395 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30396 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30397 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
30398 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
30399 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
30400 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
30401 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
30402 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
30403 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
30404 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
30405 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
30406 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
30407 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
30408 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
30409 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30410 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30411 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
30412 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
30413 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
30414 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
30415 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
30416 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
30417 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
30418 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
30419 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
30420 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
30421 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
30422 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
30423 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
30424 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
30425 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
30426 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
30427 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
30428 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
30429 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
30430 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
30431 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
30432 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
30433 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
30434 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
30435 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
30436 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
30437 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
30438 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
30439 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
30440 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
30441 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
30442 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
30443 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
30444 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
30445 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
30446 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
30447 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
30448 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
30449 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
30450 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
30451 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
30452 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
30453 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
30454 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
30455 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
30456 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
30457 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
30458 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
30459 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
30460 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
30461 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
30462 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30463 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30464 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
30465 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30466 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
30467 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
30468 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
30469 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
30470 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
30471 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
30472 { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
30473 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
30474 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
30475 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
30476 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
30477 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
30478 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
30479 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
30480 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
30481 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
30482 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
30483 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
30484 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
30485 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
30486 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
30487 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
30488 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
30489 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
30490 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30491 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30492 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
30493 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
30494 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
30495 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
30496 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
30497 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
30498 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
30499 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS },
30500 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
30501 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
30502 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
30503 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
30504 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
30505 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
30506 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
30507 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
30508 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
30509 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
30510 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
30511 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
30512 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
30513 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
30514 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
30515 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
30516 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
30517 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
30518 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
30519 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
30520 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
30521 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
30522 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
30523 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
30524 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30525 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30526 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30527 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30528 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
30529 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
30530 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
30531 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
30532 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
30533 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
30534 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
30535 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
30536 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
30537 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
30538 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
30539 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
30540 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
30541 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
30542 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
30543 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
30544 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
30545 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
30546 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
30547 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
30548 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
30549 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
30550 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
30551 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
30552 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
30553 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
30554 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
30555 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
30556 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
30557 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
30558 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
30559 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
30560 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
30561 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
30562 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
30563 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
30564 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
30565 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
30566 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
30567 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
30568 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
30569 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
30570 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
30571 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
30572 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
30573 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
30574 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
30575 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
30576 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30577 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30578 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
30579 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
30580 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
30581 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
30582 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
30583 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
30584 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
30585 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
30586 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
30587 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
30588 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
30589 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
30590 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
30591 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
30592 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
30593 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30594 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30595 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
30596 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
30597 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
30598 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
30599 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
30600 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
30601 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
30602 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS },
30603 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30604 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30605 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
30606 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
30607 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
30608 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
30609 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
30610 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
30611 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
30612 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
30613 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
30614 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
30615 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
30616 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
30617 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
30618 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
30619 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
30620 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
30621 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
30622 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
30623 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
30624 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
30625 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
30626 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
30627 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
30628 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
30629 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
30630 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
30631 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
30632 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
30633 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
30634 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
30635 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
30636 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
30637 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
30638 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
30639 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
30640 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
30641 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
30642 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
30643 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
30644 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
30645 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
30646 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
30647 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
30648 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
30649 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
30650 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
30651 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
30652 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30653 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
30654 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
30655 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
30656 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
30657 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
30658 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
30659 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
30660 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
30661 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
30662 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
30663 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
30664 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
30665 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
30666 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
30667 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30668 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
30669 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
30670 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
30671 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
30672 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30673 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30674 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30675 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
30676 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
30677 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
30678 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30679 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
30680 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
30681 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
30682 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
30683 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
30684 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
30685 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
30686 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
30687 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
30688 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
30689 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
30690 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
30691 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
30692 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
30693 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
30694 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
30695 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
30696 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
30697 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
30698 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
30699 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
30700 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
30701 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
30702 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
30703 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
30704 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
30705 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
30706 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
30707 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
30708 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
30709 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
30710 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
30711 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
30712 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
30713 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
30714 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
30715 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
30716 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
30717 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
30718 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
30719 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS },
30720 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
30721 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
30722 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
30723 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
30724 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
30725 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
30726 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
30727 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
30728 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
30729 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
30730 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
30731 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
30732 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
30733 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
30734 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
30735 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
30736 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
30737 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
30738 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
30739 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
30740 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
30741 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
30742 { NULL, NULL }
30743 };
30744
30745
30746 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
30747
30748 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
30749 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30750 }
30751 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
30752 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
30753 }
30754 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
30755 return (void *)((wxSizer *) ((wxBoxSizer *) x));
30756 }
30757 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
30758 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
30759 }
30760 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
30761 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
30762 }
30763 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
30764 return (void *)((wxSizer *) ((wxGridSizer *) x));
30765 }
30766 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
30767 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
30768 }
30769 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
30770 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
30771 }
30772 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
30773 return (void *)((wxSizer *) ((wxPySizer *) x));
30774 }
30775 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
30776 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
30777 }
30778 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
30779 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
30780 }
30781 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
30782 return (void *)((wxEvent *) ((wxMenuEvent *) x));
30783 }
30784 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
30785 return (void *)((wxEvent *) ((wxCloseEvent *) x));
30786 }
30787 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
30788 return (void *)((wxEvent *) ((wxMouseEvent *) x));
30789 }
30790 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
30791 return (void *)((wxEvent *) ((wxEraseEvent *) x));
30792 }
30793 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
30794 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
30795 }
30796 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
30797 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
30798 }
30799 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
30800 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
30801 }
30802 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
30803 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
30804 }
30805 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
30806 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
30807 }
30808 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
30809 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30810 }
30811 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
30812 return (void *)((wxEvent *) ((wxPyEvent *) x));
30813 }
30814 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
30815 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
30816 }
30817 static void *_p_wxListEventTo_p_wxEvent(void *x) {
30818 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
30819 }
30820 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
30821 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30822 }
30823 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
30824 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
30825 }
30826 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
30827 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
30828 }
30829 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
30830 return (void *)((wxEvent *) ((wxIdleEvent *) x));
30831 }
30832 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
30833 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
30834 }
30835 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
30836 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
30837 }
30838 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
30839 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
30840 }
30841 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
30842 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
30843 }
30844 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
30845 return (void *)((wxEvent *) ((wxActivateEvent *) x));
30846 }
30847 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
30848 return (void *)((wxEvent *) ((wxSizeEvent *) x));
30849 }
30850 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
30851 return (void *)((wxEvent *) ((wxMoveEvent *) x));
30852 }
30853 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
30854 return (void *)((wxEvent *) ((wxPaintEvent *) x));
30855 }
30856 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
30857 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
30858 }
30859 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
30860 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
30861 }
30862 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
30863 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
30864 }
30865 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
30866 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
30867 }
30868 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
30869 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30870 }
30871 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
30872 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
30873 }
30874 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
30875 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
30876 }
30877 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
30878 return (void *)((wxEvent *) ((wxFocusEvent *) x));
30879 }
30880 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
30881 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
30882 }
30883 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
30884 return (void *)((wxEvent *) ((wxShowEvent *) x));
30885 }
30886 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
30887 return (void *)((wxEvent *) ((wxCommandEvent *) x));
30888 }
30889 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
30890 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
30891 }
30892 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
30893 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30894 }
30895 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
30896 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
30897 }
30898 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
30899 return (void *)((wxEvent *) ((wxKeyEvent *) x));
30900 }
30901 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
30902 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
30903 }
30904 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
30905 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
30906 }
30907 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
30908 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
30909 }
30910 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
30911 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30912 }
30913 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
30914 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
30915 }
30916 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
30917 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
30918 }
30919 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
30920 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
30921 }
30922 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
30923 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30924 }
30925 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
30926 return (void *)((wxPyListCtrl *) ((wxListView *) x));
30927 }
30928 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
30929 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30930 }
30931 static void *_p_wxListBoxTo_p_wxControl(void *x) {
30932 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
30933 }
30934 static void *_p_wxChoiceTo_p_wxControl(void *x) {
30935 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
30936 }
30937 static void *_p_wxToolBarTo_p_wxControl(void *x) {
30938 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
30939 }
30940 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
30941 return (void *)((wxControl *) ((wxStaticBitmap *) x));
30942 }
30943 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
30944 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
30945 }
30946 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
30947 return (void *)((wxControl *) ((wxSpinCtrl *) x));
30948 }
30949 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
30950 return (void *)((wxControl *) ((wxStaticBox *) x));
30951 }
30952 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
30953 return (void *)((wxControl *) ((wxPyListCtrl *) x));
30954 }
30955 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
30956 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
30957 }
30958 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
30959 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30960 }
30961 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
30962 return (void *)((wxControl *) ((wxScrollBar *) x));
30963 }
30964 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
30965 return (void *)((wxControl *) ((wxBookCtrl *) x));
30966 }
30967 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
30968 return (void *)((wxControl *) ((wxRadioButton *) x));
30969 }
30970 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
30971 return (void *)((wxControl *) ((wxToggleButton *) x));
30972 }
30973 static void *_p_wxGaugeTo_p_wxControl(void *x) {
30974 return (void *)((wxControl *) ((wxGauge *) x));
30975 }
30976 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
30977 return (void *)((wxControl *) ((wxToolBarBase *) x));
30978 }
30979 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
30980 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
30981 }
30982 static void *_p_wxButtonTo_p_wxControl(void *x) {
30983 return (void *)((wxControl *) ((wxButton *) x));
30984 }
30985 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
30986 return (void *)((wxControl *) ((wxSpinButton *) x));
30987 }
30988 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
30989 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
30990 }
30991 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
30992 return (void *)((wxControl *) ((wxControlWithItems *) x));
30993 }
30994 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
30995 return (void *)((wxControl *) ((wxRadioBox *) x));
30996 }
30997 static void *_p_wxNotebookTo_p_wxControl(void *x) {
30998 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
30999 }
31000 static void *_p_wxListbookTo_p_wxControl(void *x) {
31001 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
31002 }
31003 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
31004 return (void *)((wxControl *) ((wxCheckBox *) x));
31005 }
31006 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
31007 return (void *)((wxControl *) ((wxTextCtrl *) x));
31008 }
31009 static void *_p_wxListViewTo_p_wxControl(void *x) {
31010 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
31011 }
31012 static void *_p_wxSliderTo_p_wxControl(void *x) {
31013 return (void *)((wxControl *) ((wxSlider *) x));
31014 }
31015 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
31016 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
31017 }
31018 static void *_p_wxPyControlTo_p_wxControl(void *x) {
31019 return (void *)((wxControl *) ((wxPyControl *) x));
31020 }
31021 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
31022 return (void *)((wxControl *) ((wxStaticLine *) x));
31023 }
31024 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
31025 return (void *)((wxControl *) ((wxStaticText *) x));
31026 }
31027 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
31028 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
31029 }
31030 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
31031 return (void *)((wxChoice *) ((wxComboBox *) x));
31032 }
31033 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
31034 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
31035 }
31036 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
31037 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
31038 }
31039 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
31040 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31041 }
31042 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
31043 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
31044 }
31045 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
31046 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
31047 }
31048 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
31049 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31050 }
31051 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
31052 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
31053 }
31054 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
31055 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
31056 }
31057 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
31058 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
31059 }
31060 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
31061 return (void *)((wxEvtHandler *) ((wxValidator *) x));
31062 }
31063 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
31064 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
31065 }
31066 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
31067 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31068 }
31069 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
31070 return (void *)((wxEvtHandler *) ((wxMenu *) x));
31071 }
31072 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
31073 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
31074 }
31075 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
31076 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
31077 }
31078 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
31079 return (void *)((wxEvtHandler *) ((wxWindow *) x));
31080 }
31081 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
31082 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
31083 }
31084 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
31085 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
31086 }
31087 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
31088 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
31089 }
31090 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
31091 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
31092 }
31093 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
31094 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31095 }
31096 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
31097 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
31098 }
31099 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
31100 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
31101 }
31102 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
31103 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
31104 }
31105 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
31106 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
31107 }
31108 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
31109 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31110 }
31111 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
31112 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
31113 }
31114 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
31115 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
31116 }
31117 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
31118 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31119 }
31120 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
31121 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
31122 }
31123 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
31124 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
31125 }
31126 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
31127 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
31128 }
31129 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
31130 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31131 }
31132 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
31133 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31134 }
31135 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
31136 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31137 }
31138 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
31139 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31140 }
31141 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
31142 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
31143 }
31144 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
31145 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31146 }
31147 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
31148 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
31149 }
31150 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
31151 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
31152 }
31153 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
31154 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
31155 }
31156 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
31157 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
31158 }
31159 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
31160 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
31161 }
31162 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
31163 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
31164 }
31165 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
31166 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
31167 }
31168 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
31169 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31170 }
31171 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
31172 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
31173 }
31174 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
31175 return (void *)((wxListBox *) ((wxCheckListBox *) x));
31176 }
31177 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
31178 return (void *)((wxBookCtrl *) ((wxListbook *) x));
31179 }
31180 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
31181 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
31182 }
31183 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
31184 return (void *)((wxButton *) ((wxBitmapButton *) x));
31185 }
31186 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
31187 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
31188 }
31189 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
31190 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
31191 }
31192 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
31193 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
31194 }
31195 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
31196 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
31197 }
31198 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
31199 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
31200 }
31201 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
31202 return (void *)((wxObject *) ((wxSizerItem *) x));
31203 }
31204 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
31205 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
31206 }
31207 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
31208 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
31209 }
31210 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
31211 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
31212 }
31213 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
31214 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31215 }
31216 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
31217 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
31218 }
31219 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
31220 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
31221 }
31222 static void *_p_wxSizerTo_p_wxObject(void *x) {
31223 return (void *)((wxObject *) ((wxSizer *) x));
31224 }
31225 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
31226 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31227 }
31228 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
31229 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
31230 }
31231 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
31232 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
31233 }
31234 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
31235 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
31236 }
31237 static void *_p_wxEventTo_p_wxObject(void *x) {
31238 return (void *)((wxObject *) ((wxEvent *) x));
31239 }
31240 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
31241 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
31242 }
31243 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
31244 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
31245 }
31246 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
31247 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
31248 }
31249 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
31250 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
31251 }
31252 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
31253 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
31254 }
31255 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
31256 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31257 }
31258 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
31259 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
31260 }
31261 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
31262 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
31263 }
31264 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
31265 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
31266 }
31267 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
31268 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
31269 }
31270 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
31271 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31272 }
31273 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
31274 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
31275 }
31276 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
31277 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
31278 }
31279 static void *_p_wxControlTo_p_wxObject(void *x) {
31280 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
31281 }
31282 static void *_p_wxPyControlTo_p_wxObject(void *x) {
31283 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
31284 }
31285 static void *_p_wxGaugeTo_p_wxObject(void *x) {
31286 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
31287 }
31288 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
31289 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
31290 }
31291 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
31292 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
31293 }
31294 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
31295 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
31296 }
31297 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
31298 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
31299 }
31300 static void *_p_wxChoiceTo_p_wxObject(void *x) {
31301 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31302 }
31303 static void *_p_wxFSFileTo_p_wxObject(void *x) {
31304 return (void *)((wxObject *) ((wxFSFile *) x));
31305 }
31306 static void *_p_wxPySizerTo_p_wxObject(void *x) {
31307 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
31308 }
31309 static void *_p_wxListViewTo_p_wxObject(void *x) {
31310 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31311 }
31312 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
31313 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
31314 }
31315 static void *_p_wxNotebookTo_p_wxObject(void *x) {
31316 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31317 }
31318 static void *_p_wxPyEventTo_p_wxObject(void *x) {
31319 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
31320 }
31321 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
31322 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
31323 }
31324 static void *_p_wxListbookTo_p_wxObject(void *x) {
31325 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31326 }
31327 static void *_p_wxShowEventTo_p_wxObject(void *x) {
31328 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
31329 }
31330 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
31331 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
31332 }
31333 static void *_p_wxSliderTo_p_wxObject(void *x) {
31334 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
31335 }
31336 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
31337 return (void *)((wxObject *) ((wxMenuItem *) x));
31338 }
31339 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
31340 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
31341 }
31342 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
31343 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
31344 }
31345 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
31346 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
31347 }
31348 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
31349 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
31350 }
31351 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
31352 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
31353 }
31354 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
31355 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
31356 }
31357 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
31358 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
31359 }
31360 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
31361 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
31362 }
31363 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
31364 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
31365 }
31366 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
31367 return (void *)((wxObject *) ((wxContextHelp *) x));
31368 }
31369 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
31370 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
31371 }
31372 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
31373 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
31374 }
31375 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
31376 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
31377 }
31378 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
31379 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
31380 }
31381 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
31382 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
31383 }
31384 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
31385 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
31386 }
31387 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
31388 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
31389 }
31390 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
31391 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
31392 }
31393 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
31394 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
31395 }
31396 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
31397 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
31398 }
31399 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
31400 return (void *)((wxObject *) ((wxImageHandler *) x));
31401 }
31402 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
31403 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
31404 }
31405 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
31406 return (void *)((wxObject *) ((wxEvtHandler *) x));
31407 }
31408 static void *_p_wxListEventTo_p_wxObject(void *x) {
31409 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
31410 }
31411 static void *_p_wxListBoxTo_p_wxObject(void *x) {
31412 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31413 }
31414 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
31415 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31416 }
31417 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
31418 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
31419 }
31420 static void *_p_wxButtonTo_p_wxObject(void *x) {
31421 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
31422 }
31423 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
31424 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
31425 }
31426 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
31427 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
31428 }
31429 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
31430 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31431 }
31432 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
31433 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
31434 }
31435 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
31436 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
31437 }
31438 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
31439 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
31440 }
31441 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
31442 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
31443 }
31444 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
31445 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
31446 }
31447 static void *_p_wxListItemTo_p_wxObject(void *x) {
31448 return (void *)((wxObject *) ((wxListItem *) x));
31449 }
31450 static void *_p_wxImageTo_p_wxObject(void *x) {
31451 return (void *)((wxObject *) ((wxImage *) x));
31452 }
31453 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
31454 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
31455 }
31456 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
31457 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
31458 }
31459 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
31460 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
31461 }
31462 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
31463 return (void *)((wxObject *) ((wxGenericDragImage *) x));
31464 }
31465 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
31466 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
31467 }
31468 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
31469 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31470 }
31471 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
31472 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31473 }
31474 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
31475 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31476 }
31477 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
31478 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
31479 }
31480 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
31481 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
31482 }
31483 static void *_p_wxWindowTo_p_wxObject(void *x) {
31484 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
31485 }
31486 static void *_p_wxMenuTo_p_wxObject(void *x) {
31487 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
31488 }
31489 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
31490 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
31491 }
31492 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
31493 return (void *)((wxObject *) ((wxFileSystem *) x));
31494 }
31495 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
31496 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
31497 }
31498 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
31499 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
31500 }
31501 static void *_p_wxPyAppTo_p_wxObject(void *x) {
31502 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
31503 }
31504 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
31505 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
31506 }
31507 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
31508 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
31509 }
31510 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
31511 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
31512 }
31513 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
31514 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
31515 }
31516 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
31517 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
31518 }
31519 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
31520 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
31521 }
31522 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
31523 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
31524 }
31525 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
31526 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
31527 }
31528 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
31529 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
31530 }
31531 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
31532 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
31533 }
31534 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
31535 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31536 }
31537 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
31538 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
31539 }
31540 static void *_p_wxToolBarTo_p_wxObject(void *x) {
31541 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31542 }
31543 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
31544 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
31545 }
31546 static void *_p_wxValidatorTo_p_wxObject(void *x) {
31547 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
31548 }
31549 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
31550 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
31551 }
31552 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
31553 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
31554 }
31555 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
31556 return (void *)((wxWindow *) ((wxMenuBar *) x));
31557 }
31558 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
31559 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31560 }
31561 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
31562 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
31563 }
31564 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
31565 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
31566 }
31567 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
31568 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
31569 }
31570 static void *_p_wxControlTo_p_wxWindow(void *x) {
31571 return (void *)((wxWindow *) ((wxControl *) x));
31572 }
31573 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
31574 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
31575 }
31576 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
31577 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31578 }
31579 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
31580 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
31581 }
31582 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
31583 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
31584 }
31585 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
31586 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
31587 }
31588 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
31589 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
31590 }
31591 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
31592 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
31593 }
31594 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
31595 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
31596 }
31597 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
31598 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
31599 }
31600 static void *_p_wxListbookTo_p_wxWindow(void *x) {
31601 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31602 }
31603 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
31604 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
31605 }
31606 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
31607 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
31608 }
31609 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
31610 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
31611 }
31612 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
31613 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31614 }
31615 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
31616 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31617 }
31618 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
31619 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31620 }
31621 static void *_p_wxListViewTo_p_wxWindow(void *x) {
31622 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31623 }
31624 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
31625 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31626 }
31627 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
31628 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
31629 }
31630 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
31631 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
31632 }
31633 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
31634 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
31635 }
31636 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
31637 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
31638 }
31639 static void *_p_wxSliderTo_p_wxWindow(void *x) {
31640 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
31641 }
31642 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
31643 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
31644 }
31645 static void *_p_wxButtonTo_p_wxWindow(void *x) {
31646 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
31647 }
31648 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
31649 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
31650 }
31651 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
31652 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31653 }
31654 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
31655 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
31656 }
31657 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
31658 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31659 }
31660 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
31661 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31662 }
31663 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
31664 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
31665 }
31666 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
31667 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
31668 }
31669 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
31670 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
31671 }
31672 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
31673 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
31674 }
31675 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
31676 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
31677 }
31678 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
31679 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31680 }
31681 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
31682 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31683 }
31684 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
31685 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
31686 }
31687 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
31688 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
31689 }
31690 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
31691 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
31692 }
31693 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
31694 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
31695 }
31696 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
31697 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
31698 }
31699 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
31700 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
31701 }
31702 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
31703 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
31704 }
31705 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
31706 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
31707 }
31708 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
31709 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
31710 }
31711 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
31712 return (void *)((wxControlWithItems *) ((wxChoice *) x));
31713 }
31714 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
31715 return (void *)((wxControlWithItems *) ((wxListBox *) x));
31716 }
31717 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
31718 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
31719 }
31720 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
31721 return (void *)((wxValidator *) ((wxPyValidator *) x));
31722 }
31723 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}};
31724 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}};
31725 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}};
31726 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}};
31727 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}};
31728 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}};
31729 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}};
31730 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}};
31731 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}};
31732 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}};
31733 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}};
31734 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}};
31735 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}};
31736 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}};
31737 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}};
31738 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}};
31739 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}};
31740 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}};
31741 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}};
31742 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}};
31743 static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
31744 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}};
31745 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}};
31746 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}};
31747 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}};
31748 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}};
31749 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}};
31750 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}};
31751 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}};
31752 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}};
31753 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}};
31754 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}};
31755 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}};
31756 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}};
31757 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}};
31758 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}};
31759 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}};
31760 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}};
31761 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}};
31762 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}};
31763 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}};
31764 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}};
31765 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}};
31766 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}};
31767 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}};
31768 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}};
31769 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}};
31770 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}};
31771 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}};
31772 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}};
31773 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}};
31774 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}};
31775 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}};
31776 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}};
31777 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}};
31778 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}};
31779 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}};
31780 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}};
31781 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}};
31782 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}};
31783 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}};
31784 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}};
31785 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}};
31786 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}};
31787 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}};
31788 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}};
31789 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}};
31790 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}};
31791 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}};
31792 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}};
31793 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}};
31794 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}};
31795 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}};
31796 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}};
31797 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}};
31798 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}};
31799 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}};
31800 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}};
31801 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
31802 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}};
31803 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}};
31804 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}};
31805 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}};
31806 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}};
31807
31808 static swig_type_info *swig_types_initial[] = {
31809 _swigt__p_wxTextUrlEvent,
31810 _swigt__p_wxBookCtrlEvent,
31811 _swigt__p_wxSizer,
31812 _swigt__p_wxCheckBox,
31813 _swigt__p_wxPyTreeCtrl,
31814 _swigt__p_wxEvent,
31815 _swigt__p_wxGenericDirCtrl,
31816 _swigt__p_bool,
31817 _swigt__p_wxPyTreeItemData,
31818 _swigt__p_wxItemContainer,
31819 _swigt__p_wxDirFilterListCtrl,
31820 _swigt__p_wxPyListCtrl,
31821 _swigt__p_wxStaticLine,
31822 _swigt__p_wxControl,
31823 _swigt__p_wxPyControl,
31824 _swigt__p_wxGauge,
31825 _swigt__p_wxToolBarBase,
31826 _swigt__p_wxFont,
31827 _swigt__p_wxToggleButton,
31828 _swigt__p_wxRadioButton,
31829 _swigt__p_wxChoice,
31830 _swigt__p_wxMemoryDC,
31831 _swigt__p_wxListItemAttr,
31832 _swigt__p_void,
31833 _swigt__p_int,
31834 _swigt__p_wxSize,
31835 _swigt__p_wxDC,
31836 _swigt__p_wxListView,
31837 _swigt__p_wxIcon,
31838 _swigt__p_wxTextCtrl,
31839 _swigt__p_wxNotebook,
31840 _swigt__p_wxNotifyEvent,
31841 _swigt__p_wxArrayString,
31842 _swigt__p_wxListbook,
31843 _swigt__p_wxStaticBitmap,
31844 _swigt__p_wxSlider,
31845 _swigt__p_wxStaticBox,
31846 _swigt__p_wxArrayInt,
31847 _swigt__p_wxContextHelp,
31848 _swigt__p_long,
31849 _swigt__p_wxEvtHandler,
31850 _swigt__p_wxListEvent,
31851 _swigt__p_wxListBox,
31852 _swigt__p_wxCheckListBox,
31853 _swigt__p_wxBookCtrl,
31854 _swigt__p_wxSpinButton,
31855 _swigt__p_wxButton,
31856 _swigt__p_wxBitmapButton,
31857 _swigt__p_wxRect,
31858 _swigt__p_wxContextHelpButton,
31859 _swigt__p_wxRadioBox,
31860 _swigt__p_wxScrollBar,
31861 _swigt__p_char,
31862 _swigt__p_wxTreeItemId,
31863 _swigt__p_wxComboBox,
31864 _swigt__p_wxHelpEvent,
31865 _swigt__p_wxListItem,
31866 _swigt__p_wxNotebookSizer,
31867 _swigt__p_wxSpinEvent,
31868 _swigt__p_wxGenericDragImage,
31869 _swigt__p_wxSpinCtrl,
31870 _swigt__p_wxImageList,
31871 _swigt__p_wxHelpProvider,
31872 _swigt__p_wxTextAttr,
31873 _swigt__p_wxSimpleHelpProvider,
31874 _swigt__p_wxPoint,
31875 _swigt__p_wxListbookEvent,
31876 _swigt__p_wxNotebookEvent,
31877 _swigt__p_wxObject,
31878 _swigt__p_wxCursor,
31879 _swigt__p_wxKeyEvent,
31880 _swigt__p_wxWindow,
31881 _swigt__p_wxString,
31882 _swigt__p_wxBitmap,
31883 _swigt__p_wxTreeEvent,
31884 _swigt__p_wxMouseEvent,
31885 _swigt__p_wxCommandEvent,
31886 _swigt__p_wxStaticText,
31887 _swigt__p_wxControlWithItems,
31888 _swigt__p_wxToolBarToolBase,
31889 _swigt__p_wxColour,
31890 _swigt__p_wxToolBar,
31891 _swigt__p_wxBookCtrlSizer,
31892 _swigt__p_wxValidator,
31893 0
31894 };
31895
31896
31897 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
31898
31899 static swig_const_info swig_const_table[] = {
31900 {0}};
31901
31902 #ifdef __cplusplus
31903 }
31904 #endif
31905
31906 #ifdef __cplusplus
31907 extern "C"
31908 #endif
31909 SWIGEXPORT(void) SWIG_init(void) {
31910 static PyObject *SWIG_globals = 0;
31911 static int typeinit = 0;
31912 PyObject *m, *d;
31913 int i;
31914 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
31915 m = Py_InitModule((char *) SWIG_name, SwigMethods);
31916 d = PyModule_GetDict(m);
31917
31918 if (!typeinit) {
31919 for (i = 0; swig_types_initial[i]; i++) {
31920 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
31921 }
31922 typeinit = 1;
31923 }
31924 SWIG_InstallConstants(d,swig_const_table);
31925
31926 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
31927 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
31928 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
31929 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
31930 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
31931 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
31932 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
31933 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
31934 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
31935 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
31936 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
31937 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
31938 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
31939 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
31940 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
31941 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
31942 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
31943 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
31944 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
31945 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
31946 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
31947 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
31948 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
31949 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
31950 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
31951 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
31952 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
31953 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
31954 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
31955 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
31956 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
31957 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
31958 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
31959 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
31960 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
31961 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
31962 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
31963 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
31964 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
31965 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
31966 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
31967 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
31968 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
31969 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
31970 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
31971 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
31972 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
31973 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
31974 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
31975 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
31976 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
31977 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
31978 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
31979 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
31980 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
31981 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
31982 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
31983 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
31984 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
31985 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
31986 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
31987 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
31988 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
31989 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
31990 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
31991 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
31992 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
31993 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
31994 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
31995 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
31996 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
31997 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
31998 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
31999 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
32000 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
32001 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
32002 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
32003 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
32004 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
32005 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
32006 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
32007 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
32008 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
32009 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
32010 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
32011 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
32012 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
32013 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
32014 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
32015 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
32016 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
32017 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
32018 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
32019 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
32020 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
32021 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
32022 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
32023 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
32024 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
32025 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
32026 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
32027 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
32028 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
32029 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
32030 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
32031 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
32032 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
32033 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
32034 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
32035 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
32036 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
32037 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
32038 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
32039 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
32040 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
32041 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
32042 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
32043 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
32044 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
32045 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
32046 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
32047 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
32048 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
32049 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
32050 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
32051 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
32052 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
32053 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
32054 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
32055 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
32056 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
32057 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
32058 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
32059 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
32060 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
32061 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
32062 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
32063 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
32064 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
32065 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
32066 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
32067 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
32068 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
32069 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
32070 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
32071 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
32072 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
32073 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
32074 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
32075 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
32076 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
32077 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
32078 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
32079 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
32080 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
32081 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
32082 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
32083 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
32084 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
32085 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
32086 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
32087 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
32088 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
32089 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
32090 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
32091 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
32092 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
32093 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
32094 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
32095 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
32096 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
32097 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
32098 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
32099 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
32100 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
32101 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
32102 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
32103 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
32104 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
32105 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
32106 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
32107 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
32108 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
32109 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
32110 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
32111 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
32112 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
32113 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
32114 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
32115 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
32116 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
32117 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
32118 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
32119 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
32120 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
32121 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
32122 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
32123 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
32124 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
32125 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
32126 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
32127 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
32128 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
32129 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
32130 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
32131 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
32132 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
32133 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
32134 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
32135 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
32136 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
32137
32138 // Map renamed classes back to their common name for OOR
32139 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
32140
32141 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
32142 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
32143 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
32144 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
32145 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
32146 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
32147 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
32148 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
32149 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
32150 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
32151 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
32152 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
32153 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
32154 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
32155 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
32156 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
32157 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
32158 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
32159 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
32160 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
32161 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
32162 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
32163 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
32164 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
32165 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
32166 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
32167 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
32168 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
32169 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
32170 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
32171 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
32172 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
32173 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
32174 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
32175 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
32176 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
32177 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
32178 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
32179 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
32180 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
32181 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
32182 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
32183 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
32184 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
32185 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
32186 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
32187 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
32188 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
32189 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
32190 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
32191 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
32192 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
32193 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
32194 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
32195 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
32196 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
32197
32198 // Map renamed classes back to their common name for OOR
32199 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
32200 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
32201
32202 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
32203 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
32204 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
32205 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
32206 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
32207 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
32208 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
32209 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
32210 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
32211 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
32212
32213 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
32214
32215 }
32216