]> 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_wxPyListCtrl swig_types[10]
220 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11]
221 #define SWIGTYPE_p_wxStaticLine swig_types[12]
222 #define SWIGTYPE_p_wxControl swig_types[13]
223 #define SWIGTYPE_p_wxPyControl swig_types[14]
224 #define SWIGTYPE_p_wxGauge swig_types[15]
225 #define SWIGTYPE_p_wxToolBarBase swig_types[16]
226 #define SWIGTYPE_p_wxFont swig_types[17]
227 #define SWIGTYPE_p_wxToggleButton swig_types[18]
228 #define SWIGTYPE_p_wxRadioButton swig_types[19]
229 #define SWIGTYPE_p_wxChoice swig_types[20]
230 #define SWIGTYPE_p_wxMemoryDC swig_types[21]
231 #define SWIGTYPE_p_wxListItemAttr swig_types[22]
232 #define SWIGTYPE_p_void swig_types[23]
233 #define SWIGTYPE_p_int swig_types[24]
234 #define SWIGTYPE_p_wxSize swig_types[25]
235 #define SWIGTYPE_p_wxDC swig_types[26]
236 #define SWIGTYPE_p_wxListView swig_types[27]
237 #define SWIGTYPE_p_wxIcon swig_types[28]
238 #define SWIGTYPE_p_wxVisualAttributes swig_types[29]
239 #define SWIGTYPE_p_wxTextCtrl swig_types[30]
240 #define SWIGTYPE_p_wxNotebook swig_types[31]
241 #define SWIGTYPE_p_wxNotifyEvent swig_types[32]
242 #define SWIGTYPE_p_wxArrayString swig_types[33]
243 #define SWIGTYPE_p_wxListbook swig_types[34]
244 #define SWIGTYPE_p_wxStaticBitmap swig_types[35]
245 #define SWIGTYPE_p_wxSlider swig_types[36]
246 #define SWIGTYPE_p_wxStaticBox swig_types[37]
247 #define SWIGTYPE_p_wxArrayInt swig_types[38]
248 #define SWIGTYPE_p_wxContextHelp swig_types[39]
249 #define SWIGTYPE_p_long swig_types[40]
250 #define SWIGTYPE_p_wxEvtHandler swig_types[41]
251 #define SWIGTYPE_p_wxListEvent swig_types[42]
252 #define SWIGTYPE_p_wxCheckListBox swig_types[43]
253 #define SWIGTYPE_p_wxListBox swig_types[44]
254 #define SWIGTYPE_p_wxBookCtrl swig_types[45]
255 #define SWIGTYPE_p_wxSpinButton swig_types[46]
256 #define SWIGTYPE_p_wxButton swig_types[47]
257 #define SWIGTYPE_p_wxBitmapButton swig_types[48]
258 #define SWIGTYPE_p_wxRect swig_types[49]
259 #define SWIGTYPE_p_wxContextHelpButton swig_types[50]
260 #define SWIGTYPE_p_wxRadioBox swig_types[51]
261 #define SWIGTYPE_p_wxScrollBar swig_types[52]
262 #define SWIGTYPE_p_char swig_types[53]
263 #define SWIGTYPE_p_wxTreeItemId swig_types[54]
264 #define SWIGTYPE_p_wxComboBox swig_types[55]
265 #define SWIGTYPE_p_wxHelpEvent swig_types[56]
266 #define SWIGTYPE_p_wxListItem swig_types[57]
267 #define SWIGTYPE_p_wxNotebookSizer swig_types[58]
268 #define SWIGTYPE_p_wxSpinEvent swig_types[59]
269 #define SWIGTYPE_p_wxGenericDragImage swig_types[60]
270 #define SWIGTYPE_p_wxSpinCtrl swig_types[61]
271 #define SWIGTYPE_p_wxImageList swig_types[62]
272 #define SWIGTYPE_p_wxHelpProvider swig_types[63]
273 #define SWIGTYPE_p_wxTextAttr swig_types[64]
274 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65]
275 #define SWIGTYPE_p_wxPoint swig_types[66]
276 #define SWIGTYPE_p_wxListbookEvent swig_types[67]
277 #define SWIGTYPE_p_wxNotebookEvent swig_types[68]
278 #define SWIGTYPE_p_wxObject swig_types[69]
279 #define SWIGTYPE_p_wxCursor swig_types[70]
280 #define SWIGTYPE_p_wxKeyEvent swig_types[71]
281 #define SWIGTYPE_p_wxWindow swig_types[72]
282 #define SWIGTYPE_p_wxString swig_types[73]
283 #define SWIGTYPE_p_wxBitmap swig_types[74]
284 #define SWIGTYPE_p_wxTreeEvent swig_types[75]
285 #define SWIGTYPE_p_wxMouseEvent swig_types[76]
286 #define SWIGTYPE_p_wxCommandEvent swig_types[77]
287 #define SWIGTYPE_p_wxStaticText swig_types[78]
288 #define SWIGTYPE_p_wxControlWithItems swig_types[79]
289 #define SWIGTYPE_p_wxToolBarToolBase swig_types[80]
290 #define SWIGTYPE_p_wxColour swig_types[81]
291 #define SWIGTYPE_p_wxToolBar swig_types[82]
292 #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83]
293 #define SWIGTYPE_p_wxValidator swig_types[84]
294 static swig_type_info *swig_types[86];
295
296 /* -------- TYPES TABLE (END) -------- */
297
298
299 /*-----------------------------------------------
300 @(target):= _controls_.so
301 ------------------------------------------------*/
302 #define SWIG_init init_controls_
303
304 #define SWIG_name "_controls_"
305
306 /* Auxiliar swig macros */
307
308 #ifdef __cplusplus
309 #define SWIGSTATICINLINE(a) static inline a
310 #define SWIGSTATIC(a) static a
311 #define swig_new_array(type, size) (new type[(size)])
312 #define swig_delete_array(cptr) delete[] cptr
313 #define swig_const_cast(type,a) const_cast<type>(a)
314 #define swig_static_cast(type,a) static_cast<type>(a)
315 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
316
317 #ifdef HAVE_NUMERIC_CAST
318 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
319 #else
320 #define swig_numeric_cast(type,a) static_cast<type>(a)
321 #endif
322
323 #else /* C case */
324
325 #define SWIGSTATICINLINE(a) static a
326 #define SWIGSTATIC(a) static a
327 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
328 #define swig_delete_array(cptr) free((char*)cptr)
329 #define swig_const_cast(type,a) (type)(a)
330 #define swig_static_cast(type,a) (type)(a)
331 #define swig_reinterpret_cast(type,a) (type)(a)
332 #define swig_numeric_cast(type,a) (type)(a)
333
334 #endif /* __cplusplus */
335
336
337 #define SWIG_FromSignedChar PyInt_FromLong
338 #define SWIG_FromUnsignedChar PyInt_FromLong
339 #define SWIG_FromShort PyInt_FromLong
340 #define SWIG_FromUnsignedShort PyInt_FromLong
341 #define SWIG_FromInt PyInt_FromLong
342 #define SWIG_FromLong PyInt_FromLong
343 #define SWIG_FromFloat PyFloat_FromDouble
344 #define SWIG_FromDouble PyFloat_FromDouble
345 #define SWIG_FromFloat PyFloat_FromDouble
346 #define SWIG_FromDouble PyFloat_FromDouble
347
348
349 #include "wx/wxPython/wxPython.h"
350 #include "wx/wxPython/pyclasses.h"
351
352 static const wxString wxPyPanelNameStr(wxPanelNameStr);
353 static const wxString wxPyEmptyString(wxEmptyString);
354 static const wxString wxPyControlNameStr(wxControlNameStr);
355
356 const wxArrayString wxPyEmptyStringArray;
357
358 static const wxString wxPyButtonNameStr(wxButtonNameStr);
359
360 #include <limits.h>
361
362
363 SWIGSTATICINLINE(long)
364 SWIG_CheckLongInRange(long value, const char* type,
365 long min_value, long max_value)
366 {
367 if (!PyErr_Occurred()) {
368 if (value < min_value) {
369 PyObject *err =
370 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
371 value, type, min_value);
372
373 PyErr_SetObject(PyExc_OverflowError, err);
374 Py_DECREF(err);
375 } else if (value > max_value) {
376 PyObject *err =
377 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
378 value, type, max_value);
379 PyErr_SetObject(PyExc_OverflowError, err);
380 Py_DECREF(err);
381 }
382 }
383 return value;
384 }
385
386
387 SWIGSTATICINLINE(long)
388 SWIG_AsLong(PyObject * obj)
389 {
390 if (PyNumber_Check(obj))
391 return PyInt_AsLong(obj);
392 else {
393 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
394 obj->ob_type->tp_name);
395 PyErr_SetObject(PyExc_TypeError, errmsg);
396 Py_DECREF(errmsg);
397 return 0;
398 }
399 }
400
401
402 #if INT_MAX != LONG_MAX
403 SWIGSTATICINLINE(int)
404 SWIG_AsInt(PyObject *obj)
405 {
406 return swig_numeric_cast(int,
407 SWIG_CheckLongInRange(SWIG_AsLong(obj),
408 "int", INT_MIN, INT_MAX));
409 }
410 #else
411 #define SWIG_AsInt SWIG_AsLong
412 #endif
413
414
415 SWIGSTATICINLINE(int)
416 SWIG_CheckInt(PyObject* obj)
417 {
418 SWIG_AsInt(obj);
419 if (PyErr_Occurred()) {
420 PyErr_Clear();
421 return 0;
422 } else {
423 return 1;
424 }
425 }
426
427
428 SWIGSTATICINLINE(int)
429 SWIG_CheckLong(PyObject* obj)
430 {
431 SWIG_AsLong(obj);
432 if (PyErr_Occurred()) {
433 PyErr_Clear();
434 return 0;
435 } else {
436 return 1;
437 }
438 }
439
440 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
441
442 SWIGSTATICINLINE(bool)
443 SWIG_AsBool(PyObject *obj)
444 {
445 return PyObject_IsTrue(obj) ? true : false;
446 }
447
448
449 SWIGSTATICINLINE(int)
450 SWIG_CheckBool(PyObject* obj)
451 {
452 SWIG_AsBool(obj);
453 if (PyErr_Occurred()) {
454 PyErr_Clear();
455 return 0;
456 } else {
457 return 1;
458 }
459 }
460
461 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
462 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
463 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
464 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
465 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
466 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
467
468 #include <wx/checklst.h>
469
470
471 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
472 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
473 if (clientData) {
474 wxPyClientData* data = new wxPyClientData(clientData);
475 self->Insert(item, pos, data);
476 } else
477 self->Insert(item, pos);
478 }
479 PyObject *wxListBox_GetSelections(wxListBox *self){
480 wxArrayInt lst;
481 self->GetSelections(lst);
482 PyObject *tup = PyTuple_New(lst.GetCount());
483 for(size_t i=0; i<lst.GetCount(); i++) {
484 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
485 }
486 return tup;
487 }
488 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
489 #ifdef __WXMSW__
490 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
491 self->GetItem(item)->SetTextColour(c);
492 #endif
493 }
494 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
495 #ifdef __WXMSW__
496 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
497 self->GetItem(item)->SetBackgroundColour(c);
498 #endif
499 }
500 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
501 #ifdef __WXMSW__
502 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
503 self->GetItem(item)->SetFont(f);
504 #endif
505 }
506 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
507
508 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
509 PyObject* o2;
510 PyObject* o3;
511
512 if (!target) {
513 target = o;
514 } else if (target == Py_None) {
515 Py_DECREF(Py_None);
516 target = o;
517 } else {
518 if (!PyTuple_Check(target)) {
519 o2 = target;
520 target = PyTuple_New(1);
521 PyTuple_SetItem(target, 0, o2);
522 }
523 o3 = PyTuple_New(1);
524 PyTuple_SetItem(o3, 0, o);
525
526 o2 = target;
527 target = PySequence_Concat(o2, o3);
528 Py_DECREF(o2);
529 Py_DECREF(o3);
530 }
531 return target;
532 }
533
534
535 SWIGSTATICINLINE(unsigned long)
536 SWIG_AsUnsignedLong(PyObject * obj)
537 {
538 if (PyLong_Check(obj)) {
539 return PyLong_AsUnsignedLong(obj);
540 } else {
541 long i = SWIG_AsLong(obj);
542 if ( !PyErr_Occurred() && (i < 0)) {
543 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
544 }
545 return i;
546 }
547 }
548
549
550 SWIGSTATICINLINE(int)
551 SWIG_CheckUnsignedLong(PyObject* obj)
552 {
553 SWIG_AsUnsignedLong(obj);
554 if (PyErr_Occurred()) {
555 PyErr_Clear();
556 return 0;
557 } else {
558 return 1;
559 }
560 }
561
562 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
563 self->AppendText(text);
564 }
565 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
566 return self->GetValue().Mid(from, to - from);
567 }
568 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
569 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
570 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
571 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
572 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
573
574 #include <wx/slider.h>
575
576
577 static const wxString wxPySliderNameStr(wxSliderNameStr);
578 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
579
580 #if !wxUSE_TOGGLEBTN
581 // implement dummy items for platforms that don't have this class
582
583 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
584
585 class wxToggleButton : public wxControl
586 {
587 public:
588 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
589 const wxPoint&, const wxSize&, long,
590 const wxValidator&, const wxString&)
591 { wxPyRaiseNotImplemented(); }
592
593 wxToggleButton()
594 { wxPyRaiseNotImplemented(); }
595 };
596 #endif
597
598 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
599
600 SWIGSTATICINLINE(PyObject* )
601 SWIG_FromUnsignedLong(unsigned long value)
602 {
603 return (value > LONG_MAX) ?
604 PyLong_FromUnsignedLong(value)
605 : PyInt_FromLong(swig_numeric_cast(long,value));
606 }
607
608 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
609 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
610 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
611 if (udata) {
612 Py_INCREF(udata->m_obj);
613 return udata->m_obj;
614 } else {
615 Py_INCREF(Py_None);
616 return Py_None;
617 }
618 }
619 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
620 self->SetClientData(new wxPyUserData(clientData));
621 }
622 wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
623 wxPyUserData* udata = NULL;
624 if (clientData && clientData != Py_None)
625 udata = new wxPyUserData(clientData);
626 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
627 shortHelp, longHelp, udata);
628 }
629 wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
630 wxPyUserData* udata = NULL;
631 if (clientData && clientData != Py_None)
632 udata = new wxPyUserData(clientData);
633 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
634 shortHelp, longHelp, udata);
635 }
636 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
637 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
638 if (udata) {
639 Py_INCREF(udata->m_obj);
640 return udata->m_obj;
641 } else {
642 Py_INCREF(Py_None);
643 return Py_None;
644 }
645 }
646 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
647 self->SetToolClientData(id, new wxPyUserData(clientData));
648 }
649
650 #include <wx/listctrl.h>
651
652
653 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
654 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
655 // Python aware sorting function for wxPyListCtrl
656 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
657 int retval = 0;
658 PyObject* func = (PyObject*)funcPtr;
659 bool blocked = wxPyBeginBlockThreads();
660
661 PyObject* args = Py_BuildValue("(ii)", item1, item2);
662 PyObject* result = PyEval_CallObject(func, args);
663 Py_DECREF(args);
664 if (result) {
665 retval = PyInt_AsLong(result);
666 Py_DECREF(result);
667 }
668
669 wxPyEndBlockThreads(blocked);
670 return retval;
671 }
672
673 // C++ Version of a Python aware class
674 class wxPyListCtrl : public wxListCtrl {
675 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
676 public:
677 wxPyListCtrl() : wxListCtrl() {}
678 wxPyListCtrl(wxWindow* parent, wxWindowID id,
679 const wxPoint& pos,
680 const wxSize& size,
681 long style,
682 const wxValidator& validator,
683 const wxString& name) :
684 wxListCtrl(parent, id, pos, size, style, validator, name) {}
685
686 bool Create(wxWindow* parent, wxWindowID id,
687 const wxPoint& pos,
688 const wxSize& size,
689 long style,
690 const wxValidator& validator,
691 const wxString& name) {
692 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
693 }
694
695 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
696 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
697 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
698
699 PYPRIVATE;
700 };
701
702 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
703
704 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
705 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
706 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
707
708 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
709 wxListItem item;
710 item.SetMask( wxLIST_MASK_STATE |
711 wxLIST_MASK_TEXT |
712 wxLIST_MASK_IMAGE |
713 wxLIST_MASK_DATA |
714 wxLIST_SET_ITEM |
715 wxLIST_MASK_WIDTH |
716 wxLIST_MASK_FORMAT
717 );
718 if (self->GetColumn(col, item))
719 return new wxListItem(item);
720 else
721 return NULL;
722 }
723 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
724 wxListItem* info = new wxListItem;
725 info->m_itemId = itemId;
726 info->m_col = col;
727 info->m_mask = 0xFFFF;
728 self->GetItem(*info);
729 return info;
730 }
731 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
732 wxPoint pos;
733 self->GetItemPosition(item, pos);
734 return pos;
735 }
736 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
737 wxRect rect;
738 self->GetItemRect(item, rect, code);
739 return rect;
740 }
741 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
742 if (!PyCallable_Check(func))
743 return False;
744 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
745 }
746 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
747
748 return self;
749
750
751
752 }
753
754 #include <wx/treectrl.h>
755 #include "wx/wxPython/pytree.h"
756
757 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
758 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
759 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
760 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
761 // C++ version of Python aware wxTreeCtrl
762 class wxPyTreeCtrl : public wxTreeCtrl {
763 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
764 public:
765 wxPyTreeCtrl() : wxTreeCtrl() {}
766 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
767 const wxPoint& pos,
768 const wxSize& size,
769 long style,
770 const wxValidator& validator,
771 const wxString& name) :
772 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
773
774 bool Create(wxWindow *parent, wxWindowID id,
775 const wxPoint& pos,
776 const wxSize& size,
777 long style,
778 const wxValidator& validator,
779 const wxString& name) {
780 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
781 }
782
783
784 int OnCompareItems(const wxTreeItemId& item1,
785 const wxTreeItemId& item2) {
786 int rval = 0;
787 bool found;
788 bool blocked = wxPyBeginBlockThreads();
789 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
790 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
791 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
792 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
793 Py_DECREF(o1);
794 Py_DECREF(o2);
795 }
796 wxPyEndBlockThreads(blocked);
797 if (! found)
798 rval = wxTreeCtrl::OnCompareItems(item1, item2);
799 return rval;
800 }
801 PYPRIVATE;
802 };
803
804 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
805
806
807
808 #if UINT_MAX < LONG_MAX
809 #define SWIG_FromUnsignedInt SWIG_FromLong
810 #else
811 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
812 #endif
813
814
815 SWIGSTATICINLINE(unsigned long)
816 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
817 unsigned long max_value)
818 {
819 if (!PyErr_Occurred()) {
820 if (value > max_value) {
821 PyObject *err =
822 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
823 value, type, max_value);
824 PyErr_SetObject(PyExc_OverflowError, err);
825 Py_DECREF(err);
826 }
827 }
828 return value;
829 }
830
831
832 #if UINT_MAX != ULONG_MAX
833 SWIGSTATICINLINE(unsigned int)
834 SWIG_AsUnsignedInt(PyObject *obj)
835 {
836 return swig_numeric_cast(unsigned int,
837 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
838 "unsigned int", UINT_MAX));
839 }
840 #else
841 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
842 #endif
843
844
845 SWIGSTATICINLINE(int)
846 SWIG_CheckUnsignedInt(PyObject* obj)
847 {
848 SWIG_AsUnsignedInt(obj);
849 if (PyErr_Occurred()) {
850 PyErr_Clear();
851 return 0;
852 } else {
853 return 1;
854 }
855 }
856
857 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
858 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
859 if (data == NULL) {
860 data = new wxPyTreeItemData();
861 data->SetId(item); // set the id
862 self->SetItemData(item, data);
863 }
864 return data;
865 }
866 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
867 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
868 if (data == NULL) {
869 data = new wxPyTreeItemData();
870 data->SetId(item); // set the id
871 self->SetItemData(item, data);
872 }
873 return data->GetData();
874 }
875 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
876 data->SetId(item); // set the id
877 self->SetItemData(item, data);
878 }
879 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
880 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
881 if (data == NULL) {
882 data = new wxPyTreeItemData(obj);
883 data->SetId(item); // set the id
884 self->SetItemData(item, data);
885 } else
886 data->SetData(obj);
887 }
888 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
889 bool blocked = wxPyBeginBlockThreads();
890 PyObject* rval = PyList_New(0);
891 wxArrayTreeItemIds array;
892 size_t num, x;
893 num = self->GetSelections(array);
894 for (x=0; x < num; x++) {
895 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
896 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
897 PyList_Append(rval, item);
898 Py_DECREF(item);
899 }
900 wxPyEndBlockThreads(blocked);
901 return rval;
902 }
903 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
904 void* cookie = 0;
905 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
906 bool blocked = wxPyBeginBlockThreads();
907 PyObject* tup = PyTuple_New(2);
908 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
909 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
910 wxPyEndBlockThreads(blocked);
911 return tup;
912 }
913 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
914 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
915 bool blocked = wxPyBeginBlockThreads();
916 PyObject* tup = PyTuple_New(2);
917 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
918 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
919 wxPyEndBlockThreads(blocked);
920 return tup;
921 }
922 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
923 wxRect rect;
924 if (self->GetBoundingRect(item, rect, textOnly)) {
925 bool blocked = wxPyBeginBlockThreads();
926 wxRect* r = new wxRect(rect);
927 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
928 wxPyEndBlockThreads(blocked);
929 return val;
930 }
931 else
932 RETURN_NONE();
933 }
934 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
935 // C++ version of Python aware wxControl
936 class wxPyControl : public wxControl
937 {
938 DECLARE_DYNAMIC_CLASS(wxPyControl)
939 public:
940 wxPyControl() : wxControl() {}
941 wxPyControl(wxWindow* parent, const wxWindowID id,
942 const wxPoint& pos = wxDefaultPosition,
943 const wxSize& size = wxDefaultSize,
944 long style = 0,
945 const wxValidator& validator=wxDefaultValidator,
946 const wxString& name = wxPyControlNameStr)
947 : wxControl(parent, id, pos, size, style, validator, name) {}
948
949 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
950
951 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
952 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
953 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
954 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
955
956 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
957 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
958 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
959
960 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
961 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
962
963 DEC_PYCALLBACK__(InitDialog);
964 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
965 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
966 DEC_PYCALLBACK_BOOL_(Validate);
967
968 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
969 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
970 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
971
972 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
973 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
974
975 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
976 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
977 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
978
979 PYPRIVATE;
980 };
981
982 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
983
984 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
985 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
986 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
987 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
988
989 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
990 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
991 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
992
993 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
994 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
995
996 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
997 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
998 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
999 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1000
1001 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1002 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1003 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1004
1005 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1006 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1007
1008 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
1009 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1010 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
1011
1012
1013
1014 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1015
1016 #include <wx/generic/dragimgg.h>
1017
1018 #ifdef __cplusplus
1019 extern "C" {
1020 #endif
1021 static int _wrap_ButtonNameStr_set(PyObject *_val) {
1022 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1023 return 1;
1024 }
1025
1026
1027 static PyObject *_wrap_ButtonNameStr_get() {
1028 PyObject *pyobj;
1029
1030 {
1031 #if wxUSE_UNICODE
1032 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1033 #else
1034 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1035 #endif
1036 }
1037 return pyobj;
1038 }
1039
1040
1041 static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
1042 PyObject *resultobj;
1043 wxWindow *arg1 = (wxWindow *) 0 ;
1044 int arg2 ;
1045 wxString *arg3 = 0 ;
1046 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1047 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1048 wxSize const &arg5_defvalue = wxDefaultSize ;
1049 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1050 long arg6 = (long) 0 ;
1051 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1052 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1053 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1054 wxString *arg8 = (wxString *) &arg8_defvalue ;
1055 wxButton *result;
1056 bool temp3 = False ;
1057 wxPoint temp4 ;
1058 wxSize temp5 ;
1059 bool temp8 = False ;
1060 PyObject * obj0 = 0 ;
1061 PyObject * obj1 = 0 ;
1062 PyObject * obj2 = 0 ;
1063 PyObject * obj3 = 0 ;
1064 PyObject * obj4 = 0 ;
1065 PyObject * obj5 = 0 ;
1066 PyObject * obj6 = 0 ;
1067 PyObject * obj7 = 0 ;
1068 char *kwnames[] = {
1069 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1070 };
1071
1072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1075 arg2 = (int) SWIG_AsInt(obj1);
1076 if (PyErr_Occurred()) SWIG_fail;
1077 {
1078 arg3 = wxString_in_helper(obj2);
1079 if (arg3 == NULL) SWIG_fail;
1080 temp3 = True;
1081 }
1082 if (obj3) {
1083 {
1084 arg4 = &temp4;
1085 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1086 }
1087 }
1088 if (obj4) {
1089 {
1090 arg5 = &temp5;
1091 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1092 }
1093 }
1094 if (obj5) {
1095 arg6 = (long) SWIG_AsLong(obj5);
1096 if (PyErr_Occurred()) SWIG_fail;
1097 }
1098 if (obj6) {
1099 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1100 SWIG_POINTER_EXCEPTION | 0)) == -1)
1101 SWIG_fail;
1102 if (arg7 == NULL) {
1103 PyErr_SetString(PyExc_TypeError,"null reference");
1104 SWIG_fail;
1105 }
1106 }
1107 if (obj7) {
1108 {
1109 arg8 = wxString_in_helper(obj7);
1110 if (arg8 == NULL) SWIG_fail;
1111 temp8 = True;
1112 }
1113 }
1114 {
1115 PyThreadState* __tstate = wxPyBeginAllowThreads();
1116 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1117
1118 wxPyEndAllowThreads(__tstate);
1119 if (PyErr_Occurred()) SWIG_fail;
1120 }
1121 {
1122 resultobj = wxPyMake_wxObject(result);
1123 }
1124 {
1125 if (temp3)
1126 delete arg3;
1127 }
1128 {
1129 if (temp8)
1130 delete arg8;
1131 }
1132 return resultobj;
1133 fail:
1134 {
1135 if (temp3)
1136 delete arg3;
1137 }
1138 {
1139 if (temp8)
1140 delete arg8;
1141 }
1142 return NULL;
1143 }
1144
1145
1146 static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1147 PyObject *resultobj;
1148 wxButton *result;
1149 char *kwnames[] = {
1150 NULL
1151 };
1152
1153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1154 {
1155 PyThreadState* __tstate = wxPyBeginAllowThreads();
1156 result = (wxButton *)new wxButton();
1157
1158 wxPyEndAllowThreads(__tstate);
1159 if (PyErr_Occurred()) SWIG_fail;
1160 }
1161 {
1162 resultobj = wxPyMake_wxObject(result);
1163 }
1164 return resultobj;
1165 fail:
1166 return NULL;
1167 }
1168
1169
1170 static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1171 PyObject *resultobj;
1172 wxButton *arg1 = (wxButton *) 0 ;
1173 wxWindow *arg2 = (wxWindow *) 0 ;
1174 int arg3 ;
1175 wxString *arg4 = 0 ;
1176 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1177 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1178 wxSize const &arg6_defvalue = wxDefaultSize ;
1179 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1180 long arg7 = (long) 0 ;
1181 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1182 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1183 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1184 wxString *arg9 = (wxString *) &arg9_defvalue ;
1185 bool result;
1186 bool temp4 = False ;
1187 wxPoint temp5 ;
1188 wxSize temp6 ;
1189 bool temp9 = False ;
1190 PyObject * obj0 = 0 ;
1191 PyObject * obj1 = 0 ;
1192 PyObject * obj2 = 0 ;
1193 PyObject * obj3 = 0 ;
1194 PyObject * obj4 = 0 ;
1195 PyObject * obj5 = 0 ;
1196 PyObject * obj6 = 0 ;
1197 PyObject * obj7 = 0 ;
1198 PyObject * obj8 = 0 ;
1199 char *kwnames[] = {
1200 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1201 };
1202
1203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1208 arg3 = (int) SWIG_AsInt(obj2);
1209 if (PyErr_Occurred()) SWIG_fail;
1210 {
1211 arg4 = wxString_in_helper(obj3);
1212 if (arg4 == NULL) SWIG_fail;
1213 temp4 = True;
1214 }
1215 if (obj4) {
1216 {
1217 arg5 = &temp5;
1218 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1219 }
1220 }
1221 if (obj5) {
1222 {
1223 arg6 = &temp6;
1224 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1225 }
1226 }
1227 if (obj6) {
1228 arg7 = (long) SWIG_AsLong(obj6);
1229 if (PyErr_Occurred()) SWIG_fail;
1230 }
1231 if (obj7) {
1232 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1233 SWIG_POINTER_EXCEPTION | 0)) == -1)
1234 SWIG_fail;
1235 if (arg8 == NULL) {
1236 PyErr_SetString(PyExc_TypeError,"null reference");
1237 SWIG_fail;
1238 }
1239 }
1240 if (obj8) {
1241 {
1242 arg9 = wxString_in_helper(obj8);
1243 if (arg9 == NULL) SWIG_fail;
1244 temp9 = True;
1245 }
1246 }
1247 {
1248 PyThreadState* __tstate = wxPyBeginAllowThreads();
1249 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1250
1251 wxPyEndAllowThreads(__tstate);
1252 if (PyErr_Occurred()) SWIG_fail;
1253 }
1254 {
1255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1256 }
1257 {
1258 if (temp4)
1259 delete arg4;
1260 }
1261 {
1262 if (temp9)
1263 delete arg9;
1264 }
1265 return resultobj;
1266 fail:
1267 {
1268 if (temp4)
1269 delete arg4;
1270 }
1271 {
1272 if (temp9)
1273 delete arg9;
1274 }
1275 return NULL;
1276 }
1277
1278
1279 static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1280 PyObject *resultobj;
1281 wxButton *arg1 = (wxButton *) 0 ;
1282 PyObject * obj0 = 0 ;
1283 char *kwnames[] = {
1284 (char *) "self", NULL
1285 };
1286
1287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1290 {
1291 PyThreadState* __tstate = wxPyBeginAllowThreads();
1292 (arg1)->SetDefault();
1293
1294 wxPyEndAllowThreads(__tstate);
1295 if (PyErr_Occurred()) SWIG_fail;
1296 }
1297 Py_INCREF(Py_None); resultobj = Py_None;
1298 return resultobj;
1299 fail:
1300 return NULL;
1301 }
1302
1303
1304 static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1305 PyObject *resultobj;
1306 wxSize result;
1307 char *kwnames[] = {
1308 NULL
1309 };
1310
1311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1312 {
1313 PyThreadState* __tstate = wxPyBeginAllowThreads();
1314 result = wxButton::GetDefaultSize();
1315
1316 wxPyEndAllowThreads(__tstate);
1317 if (PyErr_Occurred()) SWIG_fail;
1318 }
1319 {
1320 wxSize * resultptr;
1321 resultptr = new wxSize((wxSize &) result);
1322 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1323 }
1324 return resultobj;
1325 fail:
1326 return NULL;
1327 }
1328
1329
1330 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1331 PyObject *resultobj;
1332 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1333 wxVisualAttributes result;
1334 PyObject * obj0 = 0 ;
1335 char *kwnames[] = {
1336 (char *) "variant", NULL
1337 };
1338
1339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1340 if (obj0) {
1341 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
1342 if (PyErr_Occurred()) SWIG_fail;
1343 }
1344 {
1345 PyThreadState* __tstate = wxPyBeginAllowThreads();
1346 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1347
1348 wxPyEndAllowThreads(__tstate);
1349 if (PyErr_Occurred()) SWIG_fail;
1350 }
1351 {
1352 wxVisualAttributes * resultptr;
1353 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1354 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1355 }
1356 return resultobj;
1357 fail:
1358 return NULL;
1359 }
1360
1361
1362 static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1363 PyObject *obj;
1364 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1365 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1366 Py_INCREF(obj);
1367 return Py_BuildValue((char *)"");
1368 }
1369 static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1370 PyObject *resultobj;
1371 wxWindow *arg1 = (wxWindow *) 0 ;
1372 int arg2 ;
1373 wxBitmap *arg3 = 0 ;
1374 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1375 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1376 wxSize const &arg5_defvalue = wxDefaultSize ;
1377 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1378 long arg6 = (long) wxBU_AUTODRAW ;
1379 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1380 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1381 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1382 wxString *arg8 = (wxString *) &arg8_defvalue ;
1383 wxBitmapButton *result;
1384 wxPoint temp4 ;
1385 wxSize temp5 ;
1386 bool temp8 = False ;
1387 PyObject * obj0 = 0 ;
1388 PyObject * obj1 = 0 ;
1389 PyObject * obj2 = 0 ;
1390 PyObject * obj3 = 0 ;
1391 PyObject * obj4 = 0 ;
1392 PyObject * obj5 = 0 ;
1393 PyObject * obj6 = 0 ;
1394 PyObject * obj7 = 0 ;
1395 char *kwnames[] = {
1396 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1397 };
1398
1399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1402 arg2 = (int) SWIG_AsInt(obj1);
1403 if (PyErr_Occurred()) SWIG_fail;
1404 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1405 SWIG_POINTER_EXCEPTION | 0)) == -1)
1406 SWIG_fail;
1407 if (arg3 == NULL) {
1408 PyErr_SetString(PyExc_TypeError,"null reference");
1409 SWIG_fail;
1410 }
1411 if (obj3) {
1412 {
1413 arg4 = &temp4;
1414 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1415 }
1416 }
1417 if (obj4) {
1418 {
1419 arg5 = &temp5;
1420 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1421 }
1422 }
1423 if (obj5) {
1424 arg6 = (long) SWIG_AsLong(obj5);
1425 if (PyErr_Occurred()) SWIG_fail;
1426 }
1427 if (obj6) {
1428 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1429 SWIG_POINTER_EXCEPTION | 0)) == -1)
1430 SWIG_fail;
1431 if (arg7 == NULL) {
1432 PyErr_SetString(PyExc_TypeError,"null reference");
1433 SWIG_fail;
1434 }
1435 }
1436 if (obj7) {
1437 {
1438 arg8 = wxString_in_helper(obj7);
1439 if (arg8 == NULL) SWIG_fail;
1440 temp8 = True;
1441 }
1442 }
1443 {
1444 PyThreadState* __tstate = wxPyBeginAllowThreads();
1445 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1446
1447 wxPyEndAllowThreads(__tstate);
1448 if (PyErr_Occurred()) SWIG_fail;
1449 }
1450 {
1451 resultobj = wxPyMake_wxObject(result);
1452 }
1453 {
1454 if (temp8)
1455 delete arg8;
1456 }
1457 return resultobj;
1458 fail:
1459 {
1460 if (temp8)
1461 delete arg8;
1462 }
1463 return NULL;
1464 }
1465
1466
1467 static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1468 PyObject *resultobj;
1469 wxBitmapButton *result;
1470 char *kwnames[] = {
1471 NULL
1472 };
1473
1474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1475 {
1476 PyThreadState* __tstate = wxPyBeginAllowThreads();
1477 result = (wxBitmapButton *)new wxBitmapButton();
1478
1479 wxPyEndAllowThreads(__tstate);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 }
1482 {
1483 resultobj = wxPyMake_wxObject(result);
1484 }
1485 return resultobj;
1486 fail:
1487 return NULL;
1488 }
1489
1490
1491 static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1492 PyObject *resultobj;
1493 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1494 wxWindow *arg2 = (wxWindow *) 0 ;
1495 int arg3 ;
1496 wxBitmap *arg4 = 0 ;
1497 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1498 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1499 wxSize const &arg6_defvalue = wxDefaultSize ;
1500 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1501 long arg7 = (long) wxBU_AUTODRAW ;
1502 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1503 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1504 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1505 wxString *arg9 = (wxString *) &arg9_defvalue ;
1506 bool result;
1507 wxPoint temp5 ;
1508 wxSize temp6 ;
1509 bool temp9 = False ;
1510 PyObject * obj0 = 0 ;
1511 PyObject * obj1 = 0 ;
1512 PyObject * obj2 = 0 ;
1513 PyObject * obj3 = 0 ;
1514 PyObject * obj4 = 0 ;
1515 PyObject * obj5 = 0 ;
1516 PyObject * obj6 = 0 ;
1517 PyObject * obj7 = 0 ;
1518 PyObject * obj8 = 0 ;
1519 char *kwnames[] = {
1520 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1521 };
1522
1523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1528 arg3 = (int) SWIG_AsInt(obj2);
1529 if (PyErr_Occurred()) SWIG_fail;
1530 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1531 SWIG_POINTER_EXCEPTION | 0)) == -1)
1532 SWIG_fail;
1533 if (arg4 == NULL) {
1534 PyErr_SetString(PyExc_TypeError,"null reference");
1535 SWIG_fail;
1536 }
1537 if (obj4) {
1538 {
1539 arg5 = &temp5;
1540 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1541 }
1542 }
1543 if (obj5) {
1544 {
1545 arg6 = &temp6;
1546 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1547 }
1548 }
1549 if (obj6) {
1550 arg7 = (long) SWIG_AsLong(obj6);
1551 if (PyErr_Occurred()) SWIG_fail;
1552 }
1553 if (obj7) {
1554 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1555 SWIG_POINTER_EXCEPTION | 0)) == -1)
1556 SWIG_fail;
1557 if (arg8 == NULL) {
1558 PyErr_SetString(PyExc_TypeError,"null reference");
1559 SWIG_fail;
1560 }
1561 }
1562 if (obj8) {
1563 {
1564 arg9 = wxString_in_helper(obj8);
1565 if (arg9 == NULL) SWIG_fail;
1566 temp9 = True;
1567 }
1568 }
1569 {
1570 PyThreadState* __tstate = wxPyBeginAllowThreads();
1571 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1572
1573 wxPyEndAllowThreads(__tstate);
1574 if (PyErr_Occurred()) SWIG_fail;
1575 }
1576 {
1577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1578 }
1579 {
1580 if (temp9)
1581 delete arg9;
1582 }
1583 return resultobj;
1584 fail:
1585 {
1586 if (temp9)
1587 delete arg9;
1588 }
1589 return NULL;
1590 }
1591
1592
1593 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1594 PyObject *resultobj;
1595 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1596 wxBitmap result;
1597 PyObject * obj0 = 0 ;
1598 char *kwnames[] = {
1599 (char *) "self", NULL
1600 };
1601
1602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1605 {
1606 PyThreadState* __tstate = wxPyBeginAllowThreads();
1607 result = (arg1)->GetBitmapLabel();
1608
1609 wxPyEndAllowThreads(__tstate);
1610 if (PyErr_Occurred()) SWIG_fail;
1611 }
1612 {
1613 wxBitmap * resultptr;
1614 resultptr = new wxBitmap((wxBitmap &) result);
1615 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1616 }
1617 return resultobj;
1618 fail:
1619 return NULL;
1620 }
1621
1622
1623 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1624 PyObject *resultobj;
1625 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1626 wxBitmap result;
1627 PyObject * obj0 = 0 ;
1628 char *kwnames[] = {
1629 (char *) "self", NULL
1630 };
1631
1632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1635 {
1636 PyThreadState* __tstate = wxPyBeginAllowThreads();
1637 result = (arg1)->GetBitmapDisabled();
1638
1639 wxPyEndAllowThreads(__tstate);
1640 if (PyErr_Occurred()) SWIG_fail;
1641 }
1642 {
1643 wxBitmap * resultptr;
1644 resultptr = new wxBitmap((wxBitmap &) result);
1645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1646 }
1647 return resultobj;
1648 fail:
1649 return NULL;
1650 }
1651
1652
1653 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1654 PyObject *resultobj;
1655 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1656 wxBitmap result;
1657 PyObject * obj0 = 0 ;
1658 char *kwnames[] = {
1659 (char *) "self", NULL
1660 };
1661
1662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1665 {
1666 PyThreadState* __tstate = wxPyBeginAllowThreads();
1667 result = (arg1)->GetBitmapFocus();
1668
1669 wxPyEndAllowThreads(__tstate);
1670 if (PyErr_Occurred()) SWIG_fail;
1671 }
1672 {
1673 wxBitmap * resultptr;
1674 resultptr = new wxBitmap((wxBitmap &) result);
1675 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1676 }
1677 return resultobj;
1678 fail:
1679 return NULL;
1680 }
1681
1682
1683 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1684 PyObject *resultobj;
1685 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1686 wxBitmap result;
1687 PyObject * obj0 = 0 ;
1688 char *kwnames[] = {
1689 (char *) "self", NULL
1690 };
1691
1692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1695 {
1696 PyThreadState* __tstate = wxPyBeginAllowThreads();
1697 result = (arg1)->GetBitmapSelected();
1698
1699 wxPyEndAllowThreads(__tstate);
1700 if (PyErr_Occurred()) SWIG_fail;
1701 }
1702 {
1703 wxBitmap * resultptr;
1704 resultptr = new wxBitmap((wxBitmap &) result);
1705 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1706 }
1707 return resultobj;
1708 fail:
1709 return NULL;
1710 }
1711
1712
1713 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1714 PyObject *resultobj;
1715 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1716 wxBitmap *arg2 = 0 ;
1717 PyObject * obj0 = 0 ;
1718 PyObject * obj1 = 0 ;
1719 char *kwnames[] = {
1720 (char *) "self",(char *) "bitmap", NULL
1721 };
1722
1723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1726 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1727 SWIG_POINTER_EXCEPTION | 0)) == -1)
1728 SWIG_fail;
1729 if (arg2 == NULL) {
1730 PyErr_SetString(PyExc_TypeError,"null reference");
1731 SWIG_fail;
1732 }
1733 {
1734 PyThreadState* __tstate = wxPyBeginAllowThreads();
1735 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1736
1737 wxPyEndAllowThreads(__tstate);
1738 if (PyErr_Occurred()) SWIG_fail;
1739 }
1740 Py_INCREF(Py_None); resultobj = Py_None;
1741 return resultobj;
1742 fail:
1743 return NULL;
1744 }
1745
1746
1747 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1748 PyObject *resultobj;
1749 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1750 wxBitmap *arg2 = 0 ;
1751 PyObject * obj0 = 0 ;
1752 PyObject * obj1 = 0 ;
1753 char *kwnames[] = {
1754 (char *) "self",(char *) "bitmap", NULL
1755 };
1756
1757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1761 SWIG_POINTER_EXCEPTION | 0)) == -1)
1762 SWIG_fail;
1763 if (arg2 == NULL) {
1764 PyErr_SetString(PyExc_TypeError,"null reference");
1765 SWIG_fail;
1766 }
1767 {
1768 PyThreadState* __tstate = wxPyBeginAllowThreads();
1769 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1770
1771 wxPyEndAllowThreads(__tstate);
1772 if (PyErr_Occurred()) SWIG_fail;
1773 }
1774 Py_INCREF(Py_None); resultobj = Py_None;
1775 return resultobj;
1776 fail:
1777 return NULL;
1778 }
1779
1780
1781 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1782 PyObject *resultobj;
1783 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1784 wxBitmap *arg2 = 0 ;
1785 PyObject * obj0 = 0 ;
1786 PyObject * obj1 = 0 ;
1787 char *kwnames[] = {
1788 (char *) "self",(char *) "bitmap", NULL
1789 };
1790
1791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1794 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1795 SWIG_POINTER_EXCEPTION | 0)) == -1)
1796 SWIG_fail;
1797 if (arg2 == NULL) {
1798 PyErr_SetString(PyExc_TypeError,"null reference");
1799 SWIG_fail;
1800 }
1801 {
1802 PyThreadState* __tstate = wxPyBeginAllowThreads();
1803 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1804
1805 wxPyEndAllowThreads(__tstate);
1806 if (PyErr_Occurred()) SWIG_fail;
1807 }
1808 Py_INCREF(Py_None); resultobj = Py_None;
1809 return resultobj;
1810 fail:
1811 return NULL;
1812 }
1813
1814
1815 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1816 PyObject *resultobj;
1817 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1818 wxBitmap *arg2 = 0 ;
1819 PyObject * obj0 = 0 ;
1820 PyObject * obj1 = 0 ;
1821 char *kwnames[] = {
1822 (char *) "self",(char *) "bitmap", NULL
1823 };
1824
1825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1828 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1829 SWIG_POINTER_EXCEPTION | 0)) == -1)
1830 SWIG_fail;
1831 if (arg2 == NULL) {
1832 PyErr_SetString(PyExc_TypeError,"null reference");
1833 SWIG_fail;
1834 }
1835 {
1836 PyThreadState* __tstate = wxPyBeginAllowThreads();
1837 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1838
1839 wxPyEndAllowThreads(__tstate);
1840 if (PyErr_Occurred()) SWIG_fail;
1841 }
1842 Py_INCREF(Py_None); resultobj = Py_None;
1843 return resultobj;
1844 fail:
1845 return NULL;
1846 }
1847
1848
1849 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1850 PyObject *resultobj;
1851 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1852 int arg2 ;
1853 int arg3 ;
1854 PyObject * obj0 = 0 ;
1855 PyObject * obj1 = 0 ;
1856 PyObject * obj2 = 0 ;
1857 char *kwnames[] = {
1858 (char *) "self",(char *) "x",(char *) "y", NULL
1859 };
1860
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1864 arg2 = (int) SWIG_AsInt(obj1);
1865 if (PyErr_Occurred()) SWIG_fail;
1866 arg3 = (int) SWIG_AsInt(obj2);
1867 if (PyErr_Occurred()) SWIG_fail;
1868 {
1869 PyThreadState* __tstate = wxPyBeginAllowThreads();
1870 (arg1)->SetMargins(arg2,arg3);
1871
1872 wxPyEndAllowThreads(__tstate);
1873 if (PyErr_Occurred()) SWIG_fail;
1874 }
1875 Py_INCREF(Py_None); resultobj = Py_None;
1876 return resultobj;
1877 fail:
1878 return NULL;
1879 }
1880
1881
1882 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1883 PyObject *resultobj;
1884 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1885 int result;
1886 PyObject * obj0 = 0 ;
1887 char *kwnames[] = {
1888 (char *) "self", NULL
1889 };
1890
1891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1894 {
1895 PyThreadState* __tstate = wxPyBeginAllowThreads();
1896 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1897
1898 wxPyEndAllowThreads(__tstate);
1899 if (PyErr_Occurred()) SWIG_fail;
1900 }
1901 resultobj = SWIG_FromInt((int)result);
1902 return resultobj;
1903 fail:
1904 return NULL;
1905 }
1906
1907
1908 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1909 PyObject *resultobj;
1910 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1911 int result;
1912 PyObject * obj0 = 0 ;
1913 char *kwnames[] = {
1914 (char *) "self", NULL
1915 };
1916
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1920 {
1921 PyThreadState* __tstate = wxPyBeginAllowThreads();
1922 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1923
1924 wxPyEndAllowThreads(__tstate);
1925 if (PyErr_Occurred()) SWIG_fail;
1926 }
1927 resultobj = SWIG_FromInt((int)result);
1928 return resultobj;
1929 fail:
1930 return NULL;
1931 }
1932
1933
1934 static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1935 PyObject *obj;
1936 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1937 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1938 Py_INCREF(obj);
1939 return Py_BuildValue((char *)"");
1940 }
1941 static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1942 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1943 return 1;
1944 }
1945
1946
1947 static PyObject *_wrap_CheckBoxNameStr_get() {
1948 PyObject *pyobj;
1949
1950 {
1951 #if wxUSE_UNICODE
1952 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1953 #else
1954 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1955 #endif
1956 }
1957 return pyobj;
1958 }
1959
1960
1961 static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1962 PyObject *resultobj;
1963 wxWindow *arg1 = (wxWindow *) 0 ;
1964 int arg2 ;
1965 wxString *arg3 = 0 ;
1966 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1967 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1968 wxSize const &arg5_defvalue = wxDefaultSize ;
1969 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1970 long arg6 = (long) 0 ;
1971 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1972 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1973 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1974 wxString *arg8 = (wxString *) &arg8_defvalue ;
1975 wxCheckBox *result;
1976 bool temp3 = False ;
1977 wxPoint temp4 ;
1978 wxSize temp5 ;
1979 bool temp8 = False ;
1980 PyObject * obj0 = 0 ;
1981 PyObject * obj1 = 0 ;
1982 PyObject * obj2 = 0 ;
1983 PyObject * obj3 = 0 ;
1984 PyObject * obj4 = 0 ;
1985 PyObject * obj5 = 0 ;
1986 PyObject * obj6 = 0 ;
1987 PyObject * obj7 = 0 ;
1988 char *kwnames[] = {
1989 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1990 };
1991
1992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1995 arg2 = (int) SWIG_AsInt(obj1);
1996 if (PyErr_Occurred()) SWIG_fail;
1997 {
1998 arg3 = wxString_in_helper(obj2);
1999 if (arg3 == NULL) SWIG_fail;
2000 temp3 = True;
2001 }
2002 if (obj3) {
2003 {
2004 arg4 = &temp4;
2005 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2006 }
2007 }
2008 if (obj4) {
2009 {
2010 arg5 = &temp5;
2011 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2012 }
2013 }
2014 if (obj5) {
2015 arg6 = (long) SWIG_AsLong(obj5);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 }
2018 if (obj6) {
2019 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2020 SWIG_POINTER_EXCEPTION | 0)) == -1)
2021 SWIG_fail;
2022 if (arg7 == NULL) {
2023 PyErr_SetString(PyExc_TypeError,"null reference");
2024 SWIG_fail;
2025 }
2026 }
2027 if (obj7) {
2028 {
2029 arg8 = wxString_in_helper(obj7);
2030 if (arg8 == NULL) SWIG_fail;
2031 temp8 = True;
2032 }
2033 }
2034 {
2035 PyThreadState* __tstate = wxPyBeginAllowThreads();
2036 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2037
2038 wxPyEndAllowThreads(__tstate);
2039 if (PyErr_Occurred()) SWIG_fail;
2040 }
2041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2042 {
2043 if (temp3)
2044 delete arg3;
2045 }
2046 {
2047 if (temp8)
2048 delete arg8;
2049 }
2050 return resultobj;
2051 fail:
2052 {
2053 if (temp3)
2054 delete arg3;
2055 }
2056 {
2057 if (temp8)
2058 delete arg8;
2059 }
2060 return NULL;
2061 }
2062
2063
2064 static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2065 PyObject *resultobj;
2066 wxCheckBox *result;
2067 char *kwnames[] = {
2068 NULL
2069 };
2070
2071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2072 {
2073 PyThreadState* __tstate = wxPyBeginAllowThreads();
2074 result = (wxCheckBox *)new wxCheckBox();
2075
2076 wxPyEndAllowThreads(__tstate);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 }
2079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2080 return resultobj;
2081 fail:
2082 return NULL;
2083 }
2084
2085
2086 static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2087 PyObject *resultobj;
2088 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2089 wxWindow *arg2 = (wxWindow *) 0 ;
2090 int arg3 ;
2091 wxString *arg4 = 0 ;
2092 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2093 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2094 wxSize const &arg6_defvalue = wxDefaultSize ;
2095 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2096 long arg7 = (long) 0 ;
2097 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2098 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2099 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2100 wxString *arg9 = (wxString *) &arg9_defvalue ;
2101 bool result;
2102 bool temp4 = False ;
2103 wxPoint temp5 ;
2104 wxSize temp6 ;
2105 bool temp9 = False ;
2106 PyObject * obj0 = 0 ;
2107 PyObject * obj1 = 0 ;
2108 PyObject * obj2 = 0 ;
2109 PyObject * obj3 = 0 ;
2110 PyObject * obj4 = 0 ;
2111 PyObject * obj5 = 0 ;
2112 PyObject * obj6 = 0 ;
2113 PyObject * obj7 = 0 ;
2114 PyObject * obj8 = 0 ;
2115 char *kwnames[] = {
2116 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2117 };
2118
2119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2124 arg3 = (int) SWIG_AsInt(obj2);
2125 if (PyErr_Occurred()) SWIG_fail;
2126 {
2127 arg4 = wxString_in_helper(obj3);
2128 if (arg4 == NULL) SWIG_fail;
2129 temp4 = True;
2130 }
2131 if (obj4) {
2132 {
2133 arg5 = &temp5;
2134 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2135 }
2136 }
2137 if (obj5) {
2138 {
2139 arg6 = &temp6;
2140 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2141 }
2142 }
2143 if (obj6) {
2144 arg7 = (long) SWIG_AsLong(obj6);
2145 if (PyErr_Occurred()) SWIG_fail;
2146 }
2147 if (obj7) {
2148 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2149 SWIG_POINTER_EXCEPTION | 0)) == -1)
2150 SWIG_fail;
2151 if (arg8 == NULL) {
2152 PyErr_SetString(PyExc_TypeError,"null reference");
2153 SWIG_fail;
2154 }
2155 }
2156 if (obj8) {
2157 {
2158 arg9 = wxString_in_helper(obj8);
2159 if (arg9 == NULL) SWIG_fail;
2160 temp9 = True;
2161 }
2162 }
2163 {
2164 PyThreadState* __tstate = wxPyBeginAllowThreads();
2165 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2166
2167 wxPyEndAllowThreads(__tstate);
2168 if (PyErr_Occurred()) SWIG_fail;
2169 }
2170 {
2171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2172 }
2173 {
2174 if (temp4)
2175 delete arg4;
2176 }
2177 {
2178 if (temp9)
2179 delete arg9;
2180 }
2181 return resultobj;
2182 fail:
2183 {
2184 if (temp4)
2185 delete arg4;
2186 }
2187 {
2188 if (temp9)
2189 delete arg9;
2190 }
2191 return NULL;
2192 }
2193
2194
2195 static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2196 PyObject *resultobj;
2197 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2198 bool result;
2199 PyObject * obj0 = 0 ;
2200 char *kwnames[] = {
2201 (char *) "self", NULL
2202 };
2203
2204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2207 {
2208 PyThreadState* __tstate = wxPyBeginAllowThreads();
2209 result = (bool)(arg1)->GetValue();
2210
2211 wxPyEndAllowThreads(__tstate);
2212 if (PyErr_Occurred()) SWIG_fail;
2213 }
2214 {
2215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2216 }
2217 return resultobj;
2218 fail:
2219 return NULL;
2220 }
2221
2222
2223 static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2224 PyObject *resultobj;
2225 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2226 bool result;
2227 PyObject * obj0 = 0 ;
2228 char *kwnames[] = {
2229 (char *) "self", NULL
2230 };
2231
2232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",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 = (bool)(arg1)->IsChecked();
2238
2239 wxPyEndAllowThreads(__tstate);
2240 if (PyErr_Occurred()) SWIG_fail;
2241 }
2242 {
2243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2244 }
2245 return resultobj;
2246 fail:
2247 return NULL;
2248 }
2249
2250
2251 static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2252 PyObject *resultobj;
2253 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2254 bool arg2 ;
2255 PyObject * obj0 = 0 ;
2256 PyObject * obj1 = 0 ;
2257 char *kwnames[] = {
2258 (char *) "self",(char *) "state", NULL
2259 };
2260
2261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2264 arg2 = (bool const) SWIG_AsBool(obj1);
2265 if (PyErr_Occurred()) SWIG_fail;
2266 {
2267 PyThreadState* __tstate = wxPyBeginAllowThreads();
2268 (arg1)->SetValue(arg2);
2269
2270 wxPyEndAllowThreads(__tstate);
2271 if (PyErr_Occurred()) SWIG_fail;
2272 }
2273 Py_INCREF(Py_None); resultobj = Py_None;
2274 return resultobj;
2275 fail:
2276 return NULL;
2277 }
2278
2279
2280 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2281 PyObject *resultobj;
2282 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2283 int result;
2284 PyObject * obj0 = 0 ;
2285 char *kwnames[] = {
2286 (char *) "self", NULL
2287 };
2288
2289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2292 {
2293 PyThreadState* __tstate = wxPyBeginAllowThreads();
2294 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2295
2296 wxPyEndAllowThreads(__tstate);
2297 if (PyErr_Occurred()) SWIG_fail;
2298 }
2299 resultobj = SWIG_FromInt((int)result);
2300 return resultobj;
2301 fail:
2302 return NULL;
2303 }
2304
2305
2306 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2307 PyObject *resultobj;
2308 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2309 int arg2 ;
2310 PyObject * obj0 = 0 ;
2311 PyObject * obj1 = 0 ;
2312 char *kwnames[] = {
2313 (char *) "self",(char *) "state", NULL
2314 };
2315
2316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2319 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2320 if (PyErr_Occurred()) SWIG_fail;
2321 {
2322 PyThreadState* __tstate = wxPyBeginAllowThreads();
2323 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2324
2325 wxPyEndAllowThreads(__tstate);
2326 if (PyErr_Occurred()) SWIG_fail;
2327 }
2328 Py_INCREF(Py_None); resultobj = Py_None;
2329 return resultobj;
2330 fail:
2331 return NULL;
2332 }
2333
2334
2335 static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2336 PyObject *resultobj;
2337 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2338 bool result;
2339 PyObject * obj0 = 0 ;
2340 char *kwnames[] = {
2341 (char *) "self", NULL
2342 };
2343
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2347 {
2348 PyThreadState* __tstate = wxPyBeginAllowThreads();
2349 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2350
2351 wxPyEndAllowThreads(__tstate);
2352 if (PyErr_Occurred()) SWIG_fail;
2353 }
2354 {
2355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2356 }
2357 return resultobj;
2358 fail:
2359 return NULL;
2360 }
2361
2362
2363 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2364 PyObject *resultobj;
2365 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2366 bool result;
2367 PyObject * obj0 = 0 ;
2368 char *kwnames[] = {
2369 (char *) "self", NULL
2370 };
2371
2372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2375 {
2376 PyThreadState* __tstate = wxPyBeginAllowThreads();
2377 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2378
2379 wxPyEndAllowThreads(__tstate);
2380 if (PyErr_Occurred()) SWIG_fail;
2381 }
2382 {
2383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2384 }
2385 return resultobj;
2386 fail:
2387 return NULL;
2388 }
2389
2390
2391 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2392 PyObject *resultobj;
2393 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2394 wxVisualAttributes result;
2395 PyObject * obj0 = 0 ;
2396 char *kwnames[] = {
2397 (char *) "variant", NULL
2398 };
2399
2400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2401 if (obj0) {
2402 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2403 if (PyErr_Occurred()) SWIG_fail;
2404 }
2405 {
2406 PyThreadState* __tstate = wxPyBeginAllowThreads();
2407 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2408
2409 wxPyEndAllowThreads(__tstate);
2410 if (PyErr_Occurred()) SWIG_fail;
2411 }
2412 {
2413 wxVisualAttributes * resultptr;
2414 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2415 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2416 }
2417 return resultobj;
2418 fail:
2419 return NULL;
2420 }
2421
2422
2423 static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2424 PyObject *obj;
2425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2426 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2427 Py_INCREF(obj);
2428 return Py_BuildValue((char *)"");
2429 }
2430 static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2431 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2432 return 1;
2433 }
2434
2435
2436 static PyObject *_wrap_ChoiceNameStr_get() {
2437 PyObject *pyobj;
2438
2439 {
2440 #if wxUSE_UNICODE
2441 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2442 #else
2443 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2444 #endif
2445 }
2446 return pyobj;
2447 }
2448
2449
2450 static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2451 PyObject *resultobj;
2452 wxWindow *arg1 = (wxWindow *) 0 ;
2453 int arg2 = (int) -1 ;
2454 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2455 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2456 wxSize const &arg4_defvalue = wxDefaultSize ;
2457 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2458 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2459 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2460 long arg6 = (long) 0 ;
2461 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2462 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2463 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2464 wxString *arg8 = (wxString *) &arg8_defvalue ;
2465 wxChoice *result;
2466 wxPoint temp3 ;
2467 wxSize temp4 ;
2468 bool temp5 = False ;
2469 bool temp8 = False ;
2470 PyObject * obj0 = 0 ;
2471 PyObject * obj1 = 0 ;
2472 PyObject * obj2 = 0 ;
2473 PyObject * obj3 = 0 ;
2474 PyObject * obj4 = 0 ;
2475 PyObject * obj5 = 0 ;
2476 PyObject * obj6 = 0 ;
2477 PyObject * obj7 = 0 ;
2478 char *kwnames[] = {
2479 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2480 };
2481
2482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2485 if (obj1) {
2486 arg2 = (int) SWIG_AsInt(obj1);
2487 if (PyErr_Occurred()) SWIG_fail;
2488 }
2489 if (obj2) {
2490 {
2491 arg3 = &temp3;
2492 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2493 }
2494 }
2495 if (obj3) {
2496 {
2497 arg4 = &temp4;
2498 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2499 }
2500 }
2501 if (obj4) {
2502 {
2503 if (! PySequence_Check(obj4)) {
2504 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2505 SWIG_fail;
2506 }
2507 arg5 = new wxArrayString;
2508 temp5 = True;
2509 int i, len=PySequence_Length(obj4);
2510 for (i=0; i<len; i++) {
2511 PyObject* item = PySequence_GetItem(obj4, i);
2512 #if wxUSE_UNICODE
2513 PyObject* str = PyObject_Unicode(item);
2514 #else
2515 PyObject* str = PyObject_Str(item);
2516 #endif
2517 if (PyErr_Occurred()) SWIG_fail;
2518 arg5->Add(Py2wxString(str));
2519 Py_DECREF(item);
2520 Py_DECREF(str);
2521 }
2522 }
2523 }
2524 if (obj5) {
2525 arg6 = (long) SWIG_AsLong(obj5);
2526 if (PyErr_Occurred()) SWIG_fail;
2527 }
2528 if (obj6) {
2529 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2530 SWIG_POINTER_EXCEPTION | 0)) == -1)
2531 SWIG_fail;
2532 if (arg7 == NULL) {
2533 PyErr_SetString(PyExc_TypeError,"null reference");
2534 SWIG_fail;
2535 }
2536 }
2537 if (obj7) {
2538 {
2539 arg8 = wxString_in_helper(obj7);
2540 if (arg8 == NULL) SWIG_fail;
2541 temp8 = True;
2542 }
2543 }
2544 {
2545 PyThreadState* __tstate = wxPyBeginAllowThreads();
2546 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2547
2548 wxPyEndAllowThreads(__tstate);
2549 if (PyErr_Occurred()) SWIG_fail;
2550 }
2551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2552 {
2553 if (temp5) delete arg5;
2554 }
2555 {
2556 if (temp8)
2557 delete arg8;
2558 }
2559 return resultobj;
2560 fail:
2561 {
2562 if (temp5) delete arg5;
2563 }
2564 {
2565 if (temp8)
2566 delete arg8;
2567 }
2568 return NULL;
2569 }
2570
2571
2572 static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2573 PyObject *resultobj;
2574 wxChoice *result;
2575 char *kwnames[] = {
2576 NULL
2577 };
2578
2579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2580 {
2581 PyThreadState* __tstate = wxPyBeginAllowThreads();
2582 result = (wxChoice *)new wxChoice();
2583
2584 wxPyEndAllowThreads(__tstate);
2585 if (PyErr_Occurred()) SWIG_fail;
2586 }
2587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2588 return resultobj;
2589 fail:
2590 return NULL;
2591 }
2592
2593
2594 static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2595 PyObject *resultobj;
2596 wxChoice *arg1 = (wxChoice *) 0 ;
2597 wxWindow *arg2 = (wxWindow *) 0 ;
2598 int arg3 = (int) -1 ;
2599 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2600 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2601 wxSize const &arg5_defvalue = wxDefaultSize ;
2602 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2603 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2604 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2605 long arg7 = (long) 0 ;
2606 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2607 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2608 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2609 wxString *arg9 = (wxString *) &arg9_defvalue ;
2610 bool result;
2611 wxPoint temp4 ;
2612 wxSize temp5 ;
2613 bool temp6 = False ;
2614 bool temp9 = False ;
2615 PyObject * obj0 = 0 ;
2616 PyObject * obj1 = 0 ;
2617 PyObject * obj2 = 0 ;
2618 PyObject * obj3 = 0 ;
2619 PyObject * obj4 = 0 ;
2620 PyObject * obj5 = 0 ;
2621 PyObject * obj6 = 0 ;
2622 PyObject * obj7 = 0 ;
2623 PyObject * obj8 = 0 ;
2624 char *kwnames[] = {
2625 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2626 };
2627
2628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2633 if (obj2) {
2634 arg3 = (int) SWIG_AsInt(obj2);
2635 if (PyErr_Occurred()) SWIG_fail;
2636 }
2637 if (obj3) {
2638 {
2639 arg4 = &temp4;
2640 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2641 }
2642 }
2643 if (obj4) {
2644 {
2645 arg5 = &temp5;
2646 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2647 }
2648 }
2649 if (obj5) {
2650 {
2651 if (! PySequence_Check(obj5)) {
2652 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2653 SWIG_fail;
2654 }
2655 arg6 = new wxArrayString;
2656 temp6 = True;
2657 int i, len=PySequence_Length(obj5);
2658 for (i=0; i<len; i++) {
2659 PyObject* item = PySequence_GetItem(obj5, i);
2660 #if wxUSE_UNICODE
2661 PyObject* str = PyObject_Unicode(item);
2662 #else
2663 PyObject* str = PyObject_Str(item);
2664 #endif
2665 if (PyErr_Occurred()) SWIG_fail;
2666 arg6->Add(Py2wxString(str));
2667 Py_DECREF(item);
2668 Py_DECREF(str);
2669 }
2670 }
2671 }
2672 if (obj6) {
2673 arg7 = (long) SWIG_AsLong(obj6);
2674 if (PyErr_Occurred()) SWIG_fail;
2675 }
2676 if (obj7) {
2677 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2678 SWIG_POINTER_EXCEPTION | 0)) == -1)
2679 SWIG_fail;
2680 if (arg8 == NULL) {
2681 PyErr_SetString(PyExc_TypeError,"null reference");
2682 SWIG_fail;
2683 }
2684 }
2685 if (obj8) {
2686 {
2687 arg9 = wxString_in_helper(obj8);
2688 if (arg9 == NULL) SWIG_fail;
2689 temp9 = True;
2690 }
2691 }
2692 {
2693 PyThreadState* __tstate = wxPyBeginAllowThreads();
2694 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2695
2696 wxPyEndAllowThreads(__tstate);
2697 if (PyErr_Occurred()) SWIG_fail;
2698 }
2699 {
2700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2701 }
2702 {
2703 if (temp6) delete arg6;
2704 }
2705 {
2706 if (temp9)
2707 delete arg9;
2708 }
2709 return resultobj;
2710 fail:
2711 {
2712 if (temp6) delete arg6;
2713 }
2714 {
2715 if (temp9)
2716 delete arg9;
2717 }
2718 return NULL;
2719 }
2720
2721
2722 static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2723 PyObject *resultobj;
2724 wxChoice *arg1 = (wxChoice *) 0 ;
2725 int arg2 ;
2726 PyObject * obj0 = 0 ;
2727 PyObject * obj1 = 0 ;
2728 char *kwnames[] = {
2729 (char *) "self",(char *) "n", NULL
2730 };
2731
2732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2735 arg2 = (int const) SWIG_AsInt(obj1);
2736 if (PyErr_Occurred()) SWIG_fail;
2737 {
2738 PyThreadState* __tstate = wxPyBeginAllowThreads();
2739 (arg1)->SetSelection(arg2);
2740
2741 wxPyEndAllowThreads(__tstate);
2742 if (PyErr_Occurred()) SWIG_fail;
2743 }
2744 Py_INCREF(Py_None); resultobj = Py_None;
2745 return resultobj;
2746 fail:
2747 return NULL;
2748 }
2749
2750
2751 static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2752 PyObject *resultobj;
2753 wxChoice *arg1 = (wxChoice *) 0 ;
2754 wxString *arg2 = 0 ;
2755 bool result;
2756 bool temp2 = False ;
2757 PyObject * obj0 = 0 ;
2758 PyObject * obj1 = 0 ;
2759 char *kwnames[] = {
2760 (char *) "self",(char *) "string", NULL
2761 };
2762
2763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2766 {
2767 arg2 = wxString_in_helper(obj1);
2768 if (arg2 == NULL) SWIG_fail;
2769 temp2 = True;
2770 }
2771 {
2772 PyThreadState* __tstate = wxPyBeginAllowThreads();
2773 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2774
2775 wxPyEndAllowThreads(__tstate);
2776 if (PyErr_Occurred()) SWIG_fail;
2777 }
2778 {
2779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2780 }
2781 {
2782 if (temp2)
2783 delete arg2;
2784 }
2785 return resultobj;
2786 fail:
2787 {
2788 if (temp2)
2789 delete arg2;
2790 }
2791 return NULL;
2792 }
2793
2794
2795 static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2796 PyObject *resultobj;
2797 wxChoice *arg1 = (wxChoice *) 0 ;
2798 int arg2 ;
2799 wxString *arg3 = 0 ;
2800 bool temp3 = False ;
2801 PyObject * obj0 = 0 ;
2802 PyObject * obj1 = 0 ;
2803 PyObject * obj2 = 0 ;
2804 char *kwnames[] = {
2805 (char *) "self",(char *) "n",(char *) "string", NULL
2806 };
2807
2808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2811 arg2 = (int) SWIG_AsInt(obj1);
2812 if (PyErr_Occurred()) SWIG_fail;
2813 {
2814 arg3 = wxString_in_helper(obj2);
2815 if (arg3 == NULL) SWIG_fail;
2816 temp3 = True;
2817 }
2818 {
2819 PyThreadState* __tstate = wxPyBeginAllowThreads();
2820 (arg1)->SetString(arg2,(wxString const &)*arg3);
2821
2822 wxPyEndAllowThreads(__tstate);
2823 if (PyErr_Occurred()) SWIG_fail;
2824 }
2825 Py_INCREF(Py_None); resultobj = Py_None;
2826 {
2827 if (temp3)
2828 delete arg3;
2829 }
2830 return resultobj;
2831 fail:
2832 {
2833 if (temp3)
2834 delete arg3;
2835 }
2836 return NULL;
2837 }
2838
2839
2840 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2841 PyObject *resultobj;
2842 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2843 wxVisualAttributes result;
2844 PyObject * obj0 = 0 ;
2845 char *kwnames[] = {
2846 (char *) "variant", NULL
2847 };
2848
2849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2850 if (obj0) {
2851 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2852 if (PyErr_Occurred()) SWIG_fail;
2853 }
2854 {
2855 PyThreadState* __tstate = wxPyBeginAllowThreads();
2856 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
2857
2858 wxPyEndAllowThreads(__tstate);
2859 if (PyErr_Occurred()) SWIG_fail;
2860 }
2861 {
2862 wxVisualAttributes * resultptr;
2863 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2864 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2865 }
2866 return resultobj;
2867 fail:
2868 return NULL;
2869 }
2870
2871
2872 static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2873 PyObject *obj;
2874 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2875 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2876 Py_INCREF(obj);
2877 return Py_BuildValue((char *)"");
2878 }
2879 static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2880 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2881 return 1;
2882 }
2883
2884
2885 static PyObject *_wrap_ComboBoxNameStr_get() {
2886 PyObject *pyobj;
2887
2888 {
2889 #if wxUSE_UNICODE
2890 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2891 #else
2892 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2893 #endif
2894 }
2895 return pyobj;
2896 }
2897
2898
2899 static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2900 PyObject *resultobj;
2901 wxWindow *arg1 = (wxWindow *) 0 ;
2902 int arg2 = (int) -1 ;
2903 wxString const &arg3_defvalue = wxPyEmptyString ;
2904 wxString *arg3 = (wxString *) &arg3_defvalue ;
2905 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2906 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2907 wxSize const &arg5_defvalue = wxDefaultSize ;
2908 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2909 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2910 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2911 long arg7 = (long) 0 ;
2912 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2913 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2914 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2915 wxString *arg9 = (wxString *) &arg9_defvalue ;
2916 wxComboBox *result;
2917 bool temp3 = False ;
2918 wxPoint temp4 ;
2919 wxSize temp5 ;
2920 bool temp6 = False ;
2921 bool temp9 = False ;
2922 PyObject * obj0 = 0 ;
2923 PyObject * obj1 = 0 ;
2924 PyObject * obj2 = 0 ;
2925 PyObject * obj3 = 0 ;
2926 PyObject * obj4 = 0 ;
2927 PyObject * obj5 = 0 ;
2928 PyObject * obj6 = 0 ;
2929 PyObject * obj7 = 0 ;
2930 PyObject * obj8 = 0 ;
2931 char *kwnames[] = {
2932 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2933 };
2934
2935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2938 if (obj1) {
2939 arg2 = (int) SWIG_AsInt(obj1);
2940 if (PyErr_Occurred()) SWIG_fail;
2941 }
2942 if (obj2) {
2943 {
2944 arg3 = wxString_in_helper(obj2);
2945 if (arg3 == NULL) SWIG_fail;
2946 temp3 = True;
2947 }
2948 }
2949 if (obj3) {
2950 {
2951 arg4 = &temp4;
2952 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2953 }
2954 }
2955 if (obj4) {
2956 {
2957 arg5 = &temp5;
2958 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2959 }
2960 }
2961 if (obj5) {
2962 {
2963 if (! PySequence_Check(obj5)) {
2964 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2965 SWIG_fail;
2966 }
2967 arg6 = new wxArrayString;
2968 temp6 = True;
2969 int i, len=PySequence_Length(obj5);
2970 for (i=0; i<len; i++) {
2971 PyObject* item = PySequence_GetItem(obj5, i);
2972 #if wxUSE_UNICODE
2973 PyObject* str = PyObject_Unicode(item);
2974 #else
2975 PyObject* str = PyObject_Str(item);
2976 #endif
2977 if (PyErr_Occurred()) SWIG_fail;
2978 arg6->Add(Py2wxString(str));
2979 Py_DECREF(item);
2980 Py_DECREF(str);
2981 }
2982 }
2983 }
2984 if (obj6) {
2985 arg7 = (long) SWIG_AsLong(obj6);
2986 if (PyErr_Occurred()) SWIG_fail;
2987 }
2988 if (obj7) {
2989 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2990 SWIG_POINTER_EXCEPTION | 0)) == -1)
2991 SWIG_fail;
2992 if (arg8 == NULL) {
2993 PyErr_SetString(PyExc_TypeError,"null reference");
2994 SWIG_fail;
2995 }
2996 }
2997 if (obj8) {
2998 {
2999 arg9 = wxString_in_helper(obj8);
3000 if (arg9 == NULL) SWIG_fail;
3001 temp9 = True;
3002 }
3003 }
3004 {
3005 PyThreadState* __tstate = wxPyBeginAllowThreads();
3006 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);
3007
3008 wxPyEndAllowThreads(__tstate);
3009 if (PyErr_Occurred()) SWIG_fail;
3010 }
3011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3012 {
3013 if (temp3)
3014 delete arg3;
3015 }
3016 {
3017 if (temp6) delete arg6;
3018 }
3019 {
3020 if (temp9)
3021 delete arg9;
3022 }
3023 return resultobj;
3024 fail:
3025 {
3026 if (temp3)
3027 delete arg3;
3028 }
3029 {
3030 if (temp6) delete arg6;
3031 }
3032 {
3033 if (temp9)
3034 delete arg9;
3035 }
3036 return NULL;
3037 }
3038
3039
3040 static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3041 PyObject *resultobj;
3042 wxComboBox *result;
3043 char *kwnames[] = {
3044 NULL
3045 };
3046
3047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3048 {
3049 PyThreadState* __tstate = wxPyBeginAllowThreads();
3050 result = (wxComboBox *)new wxComboBox();
3051
3052 wxPyEndAllowThreads(__tstate);
3053 if (PyErr_Occurred()) SWIG_fail;
3054 }
3055 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3056 return resultobj;
3057 fail:
3058 return NULL;
3059 }
3060
3061
3062 static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3063 PyObject *resultobj;
3064 wxComboBox *arg1 = (wxComboBox *) 0 ;
3065 wxWindow *arg2 = (wxWindow *) 0 ;
3066 int arg3 = (int) -1 ;
3067 wxString const &arg4_defvalue = wxPyEmptyString ;
3068 wxString *arg4 = (wxString *) &arg4_defvalue ;
3069 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3070 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3071 wxSize const &arg6_defvalue = wxDefaultSize ;
3072 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3073 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3074 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3075 long arg8 = (long) 0 ;
3076 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3077 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3078 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3079 wxString *arg10 = (wxString *) &arg10_defvalue ;
3080 bool result;
3081 bool temp4 = False ;
3082 wxPoint temp5 ;
3083 wxSize temp6 ;
3084 bool temp7 = False ;
3085 bool temp10 = False ;
3086 PyObject * obj0 = 0 ;
3087 PyObject * obj1 = 0 ;
3088 PyObject * obj2 = 0 ;
3089 PyObject * obj3 = 0 ;
3090 PyObject * obj4 = 0 ;
3091 PyObject * obj5 = 0 ;
3092 PyObject * obj6 = 0 ;
3093 PyObject * obj7 = 0 ;
3094 PyObject * obj8 = 0 ;
3095 PyObject * obj9 = 0 ;
3096 char *kwnames[] = {
3097 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3098 };
3099
3100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3103 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3105 if (obj2) {
3106 arg3 = (int) SWIG_AsInt(obj2);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 if (obj3) {
3110 {
3111 arg4 = wxString_in_helper(obj3);
3112 if (arg4 == NULL) SWIG_fail;
3113 temp4 = True;
3114 }
3115 }
3116 if (obj4) {
3117 {
3118 arg5 = &temp5;
3119 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3120 }
3121 }
3122 if (obj5) {
3123 {
3124 arg6 = &temp6;
3125 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3126 }
3127 }
3128 if (obj6) {
3129 {
3130 if (! PySequence_Check(obj6)) {
3131 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3132 SWIG_fail;
3133 }
3134 arg7 = new wxArrayString;
3135 temp7 = True;
3136 int i, len=PySequence_Length(obj6);
3137 for (i=0; i<len; i++) {
3138 PyObject* item = PySequence_GetItem(obj6, i);
3139 #if wxUSE_UNICODE
3140 PyObject* str = PyObject_Unicode(item);
3141 #else
3142 PyObject* str = PyObject_Str(item);
3143 #endif
3144 if (PyErr_Occurred()) SWIG_fail;
3145 arg7->Add(Py2wxString(str));
3146 Py_DECREF(item);
3147 Py_DECREF(str);
3148 }
3149 }
3150 }
3151 if (obj7) {
3152 arg8 = (long) SWIG_AsLong(obj7);
3153 if (PyErr_Occurred()) SWIG_fail;
3154 }
3155 if (obj8) {
3156 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3157 SWIG_POINTER_EXCEPTION | 0)) == -1)
3158 SWIG_fail;
3159 if (arg9 == NULL) {
3160 PyErr_SetString(PyExc_TypeError,"null reference");
3161 SWIG_fail;
3162 }
3163 }
3164 if (obj9) {
3165 {
3166 arg10 = wxString_in_helper(obj9);
3167 if (arg10 == NULL) SWIG_fail;
3168 temp10 = True;
3169 }
3170 }
3171 {
3172 PyThreadState* __tstate = wxPyBeginAllowThreads();
3173 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);
3174
3175 wxPyEndAllowThreads(__tstate);
3176 if (PyErr_Occurred()) SWIG_fail;
3177 }
3178 {
3179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3180 }
3181 {
3182 if (temp4)
3183 delete arg4;
3184 }
3185 {
3186 if (temp7) delete arg7;
3187 }
3188 {
3189 if (temp10)
3190 delete arg10;
3191 }
3192 return resultobj;
3193 fail:
3194 {
3195 if (temp4)
3196 delete arg4;
3197 }
3198 {
3199 if (temp7) delete arg7;
3200 }
3201 {
3202 if (temp10)
3203 delete arg10;
3204 }
3205 return NULL;
3206 }
3207
3208
3209 static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3210 PyObject *resultobj;
3211 wxComboBox *arg1 = (wxComboBox *) 0 ;
3212 wxString result;
3213 PyObject * obj0 = 0 ;
3214 char *kwnames[] = {
3215 (char *) "self", NULL
3216 };
3217
3218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3221 {
3222 PyThreadState* __tstate = wxPyBeginAllowThreads();
3223 result = ((wxComboBox const *)arg1)->GetValue();
3224
3225 wxPyEndAllowThreads(__tstate);
3226 if (PyErr_Occurred()) SWIG_fail;
3227 }
3228 {
3229 #if wxUSE_UNICODE
3230 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3231 #else
3232 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3233 #endif
3234 }
3235 return resultobj;
3236 fail:
3237 return NULL;
3238 }
3239
3240
3241 static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3242 PyObject *resultobj;
3243 wxComboBox *arg1 = (wxComboBox *) 0 ;
3244 wxString *arg2 = 0 ;
3245 bool temp2 = False ;
3246 PyObject * obj0 = 0 ;
3247 PyObject * obj1 = 0 ;
3248 char *kwnames[] = {
3249 (char *) "self",(char *) "value", NULL
3250 };
3251
3252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3255 {
3256 arg2 = wxString_in_helper(obj1);
3257 if (arg2 == NULL) SWIG_fail;
3258 temp2 = True;
3259 }
3260 {
3261 PyThreadState* __tstate = wxPyBeginAllowThreads();
3262 (arg1)->SetValue((wxString const &)*arg2);
3263
3264 wxPyEndAllowThreads(__tstate);
3265 if (PyErr_Occurred()) SWIG_fail;
3266 }
3267 Py_INCREF(Py_None); resultobj = Py_None;
3268 {
3269 if (temp2)
3270 delete arg2;
3271 }
3272 return resultobj;
3273 fail:
3274 {
3275 if (temp2)
3276 delete arg2;
3277 }
3278 return NULL;
3279 }
3280
3281
3282 static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3283 PyObject *resultobj;
3284 wxComboBox *arg1 = (wxComboBox *) 0 ;
3285 PyObject * obj0 = 0 ;
3286 char *kwnames[] = {
3287 (char *) "self", NULL
3288 };
3289
3290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3293 {
3294 PyThreadState* __tstate = wxPyBeginAllowThreads();
3295 (arg1)->Copy();
3296
3297 wxPyEndAllowThreads(__tstate);
3298 if (PyErr_Occurred()) SWIG_fail;
3299 }
3300 Py_INCREF(Py_None); resultobj = Py_None;
3301 return resultobj;
3302 fail:
3303 return NULL;
3304 }
3305
3306
3307 static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3308 PyObject *resultobj;
3309 wxComboBox *arg1 = (wxComboBox *) 0 ;
3310 PyObject * obj0 = 0 ;
3311 char *kwnames[] = {
3312 (char *) "self", NULL
3313 };
3314
3315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3318 {
3319 PyThreadState* __tstate = wxPyBeginAllowThreads();
3320 (arg1)->Cut();
3321
3322 wxPyEndAllowThreads(__tstate);
3323 if (PyErr_Occurred()) SWIG_fail;
3324 }
3325 Py_INCREF(Py_None); resultobj = Py_None;
3326 return resultobj;
3327 fail:
3328 return NULL;
3329 }
3330
3331
3332 static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3333 PyObject *resultobj;
3334 wxComboBox *arg1 = (wxComboBox *) 0 ;
3335 PyObject * obj0 = 0 ;
3336 char *kwnames[] = {
3337 (char *) "self", NULL
3338 };
3339
3340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 (arg1)->Paste();
3346
3347 wxPyEndAllowThreads(__tstate);
3348 if (PyErr_Occurred()) SWIG_fail;
3349 }
3350 Py_INCREF(Py_None); resultobj = Py_None;
3351 return resultobj;
3352 fail:
3353 return NULL;
3354 }
3355
3356
3357 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3358 PyObject *resultobj;
3359 wxComboBox *arg1 = (wxComboBox *) 0 ;
3360 long arg2 ;
3361 PyObject * obj0 = 0 ;
3362 PyObject * obj1 = 0 ;
3363 char *kwnames[] = {
3364 (char *) "self",(char *) "pos", NULL
3365 };
3366
3367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3370 arg2 = (long) SWIG_AsLong(obj1);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 {
3373 PyThreadState* __tstate = wxPyBeginAllowThreads();
3374 (arg1)->SetInsertionPoint(arg2);
3375
3376 wxPyEndAllowThreads(__tstate);
3377 if (PyErr_Occurred()) SWIG_fail;
3378 }
3379 Py_INCREF(Py_None); resultobj = Py_None;
3380 return resultobj;
3381 fail:
3382 return NULL;
3383 }
3384
3385
3386 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3387 PyObject *resultobj;
3388 wxComboBox *arg1 = (wxComboBox *) 0 ;
3389 long result;
3390 PyObject * obj0 = 0 ;
3391 char *kwnames[] = {
3392 (char *) "self", NULL
3393 };
3394
3395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3398 {
3399 PyThreadState* __tstate = wxPyBeginAllowThreads();
3400 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3401
3402 wxPyEndAllowThreads(__tstate);
3403 if (PyErr_Occurred()) SWIG_fail;
3404 }
3405 resultobj = SWIG_FromLong((long)result);
3406 return resultobj;
3407 fail:
3408 return NULL;
3409 }
3410
3411
3412 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3413 PyObject *resultobj;
3414 wxComboBox *arg1 = (wxComboBox *) 0 ;
3415 long result;
3416 PyObject * obj0 = 0 ;
3417 char *kwnames[] = {
3418 (char *) "self", NULL
3419 };
3420
3421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3424 {
3425 PyThreadState* __tstate = wxPyBeginAllowThreads();
3426 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3427
3428 wxPyEndAllowThreads(__tstate);
3429 if (PyErr_Occurred()) SWIG_fail;
3430 }
3431 resultobj = SWIG_FromLong((long)result);
3432 return resultobj;
3433 fail:
3434 return NULL;
3435 }
3436
3437
3438 static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3439 PyObject *resultobj;
3440 wxComboBox *arg1 = (wxComboBox *) 0 ;
3441 long arg2 ;
3442 long arg3 ;
3443 wxString *arg4 = 0 ;
3444 bool temp4 = False ;
3445 PyObject * obj0 = 0 ;
3446 PyObject * obj1 = 0 ;
3447 PyObject * obj2 = 0 ;
3448 PyObject * obj3 = 0 ;
3449 char *kwnames[] = {
3450 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3451 };
3452
3453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3456 arg2 = (long) SWIG_AsLong(obj1);
3457 if (PyErr_Occurred()) SWIG_fail;
3458 arg3 = (long) SWIG_AsLong(obj2);
3459 if (PyErr_Occurred()) SWIG_fail;
3460 {
3461 arg4 = wxString_in_helper(obj3);
3462 if (arg4 == NULL) SWIG_fail;
3463 temp4 = True;
3464 }
3465 {
3466 PyThreadState* __tstate = wxPyBeginAllowThreads();
3467 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3468
3469 wxPyEndAllowThreads(__tstate);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 }
3472 Py_INCREF(Py_None); resultobj = Py_None;
3473 {
3474 if (temp4)
3475 delete arg4;
3476 }
3477 return resultobj;
3478 fail:
3479 {
3480 if (temp4)
3481 delete arg4;
3482 }
3483 return NULL;
3484 }
3485
3486
3487 static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3488 PyObject *resultobj;
3489 wxComboBox *arg1 = (wxComboBox *) 0 ;
3490 int arg2 ;
3491 PyObject * obj0 = 0 ;
3492 PyObject * obj1 = 0 ;
3493 char *kwnames[] = {
3494 (char *) "self",(char *) "n", NULL
3495 };
3496
3497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3500 arg2 = (int) SWIG_AsInt(obj1);
3501 if (PyErr_Occurred()) SWIG_fail;
3502 {
3503 PyThreadState* __tstate = wxPyBeginAllowThreads();
3504 (arg1)->SetSelection(arg2);
3505
3506 wxPyEndAllowThreads(__tstate);
3507 if (PyErr_Occurred()) SWIG_fail;
3508 }
3509 Py_INCREF(Py_None); resultobj = Py_None;
3510 return resultobj;
3511 fail:
3512 return NULL;
3513 }
3514
3515
3516 static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3517 PyObject *resultobj;
3518 wxComboBox *arg1 = (wxComboBox *) 0 ;
3519 long arg2 ;
3520 long arg3 ;
3521 PyObject * obj0 = 0 ;
3522 PyObject * obj1 = 0 ;
3523 PyObject * obj2 = 0 ;
3524 char *kwnames[] = {
3525 (char *) "self",(char *) "from",(char *) "to", NULL
3526 };
3527
3528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3531 arg2 = (long) SWIG_AsLong(obj1);
3532 if (PyErr_Occurred()) SWIG_fail;
3533 arg3 = (long) SWIG_AsLong(obj2);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 {
3536 PyThreadState* __tstate = wxPyBeginAllowThreads();
3537 (arg1)->SetSelection(arg2,arg3);
3538
3539 wxPyEndAllowThreads(__tstate);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 }
3542 Py_INCREF(Py_None); resultobj = Py_None;
3543 return resultobj;
3544 fail:
3545 return NULL;
3546 }
3547
3548
3549 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3550 PyObject *resultobj;
3551 wxComboBox *arg1 = (wxComboBox *) 0 ;
3552 wxString *arg2 = 0 ;
3553 bool result;
3554 bool temp2 = False ;
3555 PyObject * obj0 = 0 ;
3556 PyObject * obj1 = 0 ;
3557 char *kwnames[] = {
3558 (char *) "self",(char *) "string", NULL
3559 };
3560
3561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3564 {
3565 arg2 = wxString_in_helper(obj1);
3566 if (arg2 == NULL) SWIG_fail;
3567 temp2 = True;
3568 }
3569 {
3570 PyThreadState* __tstate = wxPyBeginAllowThreads();
3571 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3572
3573 wxPyEndAllowThreads(__tstate);
3574 if (PyErr_Occurred()) SWIG_fail;
3575 }
3576 {
3577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3578 }
3579 {
3580 if (temp2)
3581 delete arg2;
3582 }
3583 return resultobj;
3584 fail:
3585 {
3586 if (temp2)
3587 delete arg2;
3588 }
3589 return NULL;
3590 }
3591
3592
3593 static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3594 PyObject *resultobj;
3595 wxComboBox *arg1 = (wxComboBox *) 0 ;
3596 int arg2 ;
3597 wxString *arg3 = 0 ;
3598 bool temp3 = False ;
3599 PyObject * obj0 = 0 ;
3600 PyObject * obj1 = 0 ;
3601 PyObject * obj2 = 0 ;
3602 char *kwnames[] = {
3603 (char *) "self",(char *) "n",(char *) "string", NULL
3604 };
3605
3606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3609 arg2 = (int) SWIG_AsInt(obj1);
3610 if (PyErr_Occurred()) SWIG_fail;
3611 {
3612 arg3 = wxString_in_helper(obj2);
3613 if (arg3 == NULL) SWIG_fail;
3614 temp3 = True;
3615 }
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 (arg1)->SetString(arg2,(wxString const &)*arg3);
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 Py_INCREF(Py_None); resultobj = Py_None;
3624 {
3625 if (temp3)
3626 delete arg3;
3627 }
3628 return resultobj;
3629 fail:
3630 {
3631 if (temp3)
3632 delete arg3;
3633 }
3634 return NULL;
3635 }
3636
3637
3638 static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3639 PyObject *resultobj;
3640 wxComboBox *arg1 = (wxComboBox *) 0 ;
3641 bool arg2 ;
3642 PyObject * obj0 = 0 ;
3643 PyObject * obj1 = 0 ;
3644 char *kwnames[] = {
3645 (char *) "self",(char *) "editable", NULL
3646 };
3647
3648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3651 arg2 = (bool) SWIG_AsBool(obj1);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 {
3654 PyThreadState* __tstate = wxPyBeginAllowThreads();
3655 (arg1)->SetEditable(arg2);
3656
3657 wxPyEndAllowThreads(__tstate);
3658 if (PyErr_Occurred()) SWIG_fail;
3659 }
3660 Py_INCREF(Py_None); resultobj = Py_None;
3661 return resultobj;
3662 fail:
3663 return NULL;
3664 }
3665
3666
3667 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3668 PyObject *resultobj;
3669 wxComboBox *arg1 = (wxComboBox *) 0 ;
3670 PyObject * obj0 = 0 ;
3671 char *kwnames[] = {
3672 (char *) "self", NULL
3673 };
3674
3675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3678 {
3679 PyThreadState* __tstate = wxPyBeginAllowThreads();
3680 (arg1)->SetInsertionPointEnd();
3681
3682 wxPyEndAllowThreads(__tstate);
3683 if (PyErr_Occurred()) SWIG_fail;
3684 }
3685 Py_INCREF(Py_None); resultobj = Py_None;
3686 return resultobj;
3687 fail:
3688 return NULL;
3689 }
3690
3691
3692 static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3693 PyObject *resultobj;
3694 wxComboBox *arg1 = (wxComboBox *) 0 ;
3695 long arg2 ;
3696 long arg3 ;
3697 PyObject * obj0 = 0 ;
3698 PyObject * obj1 = 0 ;
3699 PyObject * obj2 = 0 ;
3700 char *kwnames[] = {
3701 (char *) "self",(char *) "from",(char *) "to", NULL
3702 };
3703
3704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3707 arg2 = (long) SWIG_AsLong(obj1);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 arg3 = (long) SWIG_AsLong(obj2);
3710 if (PyErr_Occurred()) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 (arg1)->Remove(arg2,arg3);
3714
3715 wxPyEndAllowThreads(__tstate);
3716 if (PyErr_Occurred()) SWIG_fail;
3717 }
3718 Py_INCREF(Py_None); resultobj = Py_None;
3719 return resultobj;
3720 fail:
3721 return NULL;
3722 }
3723
3724
3725 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
3726 PyObject *resultobj;
3727 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3728 wxVisualAttributes result;
3729 PyObject * obj0 = 0 ;
3730 char *kwnames[] = {
3731 (char *) "variant", NULL
3732 };
3733
3734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3735 if (obj0) {
3736 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
3737 if (PyErr_Occurred()) SWIG_fail;
3738 }
3739 {
3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
3741 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3742
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 {
3747 wxVisualAttributes * resultptr;
3748 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3749 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3750 }
3751 return resultobj;
3752 fail:
3753 return NULL;
3754 }
3755
3756
3757 static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3758 PyObject *obj;
3759 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3760 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3761 Py_INCREF(obj);
3762 return Py_BuildValue((char *)"");
3763 }
3764 static int _wrap_GaugeNameStr_set(PyObject *_val) {
3765 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3766 return 1;
3767 }
3768
3769
3770 static PyObject *_wrap_GaugeNameStr_get() {
3771 PyObject *pyobj;
3772
3773 {
3774 #if wxUSE_UNICODE
3775 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3776 #else
3777 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3778 #endif
3779 }
3780 return pyobj;
3781 }
3782
3783
3784 static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3785 PyObject *resultobj;
3786 wxWindow *arg1 = (wxWindow *) 0 ;
3787 int arg2 ;
3788 int arg3 ;
3789 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3790 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3791 wxSize const &arg5_defvalue = wxDefaultSize ;
3792 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3793 long arg6 = (long) wxGA_HORIZONTAL ;
3794 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3795 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3796 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3797 wxString *arg8 = (wxString *) &arg8_defvalue ;
3798 wxGauge *result;
3799 wxPoint temp4 ;
3800 wxSize temp5 ;
3801 bool temp8 = False ;
3802 PyObject * obj0 = 0 ;
3803 PyObject * obj1 = 0 ;
3804 PyObject * obj2 = 0 ;
3805 PyObject * obj3 = 0 ;
3806 PyObject * obj4 = 0 ;
3807 PyObject * obj5 = 0 ;
3808 PyObject * obj6 = 0 ;
3809 PyObject * obj7 = 0 ;
3810 char *kwnames[] = {
3811 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3812 };
3813
3814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3817 arg2 = (int) SWIG_AsInt(obj1);
3818 if (PyErr_Occurred()) SWIG_fail;
3819 arg3 = (int) SWIG_AsInt(obj2);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 if (obj3) {
3822 {
3823 arg4 = &temp4;
3824 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3825 }
3826 }
3827 if (obj4) {
3828 {
3829 arg5 = &temp5;
3830 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3831 }
3832 }
3833 if (obj5) {
3834 arg6 = (long) SWIG_AsLong(obj5);
3835 if (PyErr_Occurred()) SWIG_fail;
3836 }
3837 if (obj6) {
3838 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3839 SWIG_POINTER_EXCEPTION | 0)) == -1)
3840 SWIG_fail;
3841 if (arg7 == NULL) {
3842 PyErr_SetString(PyExc_TypeError,"null reference");
3843 SWIG_fail;
3844 }
3845 }
3846 if (obj7) {
3847 {
3848 arg8 = wxString_in_helper(obj7);
3849 if (arg8 == NULL) SWIG_fail;
3850 temp8 = True;
3851 }
3852 }
3853 {
3854 PyThreadState* __tstate = wxPyBeginAllowThreads();
3855 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3856
3857 wxPyEndAllowThreads(__tstate);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 }
3860 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3861 {
3862 if (temp8)
3863 delete arg8;
3864 }
3865 return resultobj;
3866 fail:
3867 {
3868 if (temp8)
3869 delete arg8;
3870 }
3871 return NULL;
3872 }
3873
3874
3875 static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3876 PyObject *resultobj;
3877 wxGauge *result;
3878 char *kwnames[] = {
3879 NULL
3880 };
3881
3882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3883 {
3884 PyThreadState* __tstate = wxPyBeginAllowThreads();
3885 result = (wxGauge *)new wxGauge();
3886
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3891 return resultobj;
3892 fail:
3893 return NULL;
3894 }
3895
3896
3897 static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj;
3899 wxGauge *arg1 = (wxGauge *) 0 ;
3900 wxWindow *arg2 = (wxWindow *) 0 ;
3901 int arg3 ;
3902 int arg4 ;
3903 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3904 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3905 wxSize const &arg6_defvalue = wxDefaultSize ;
3906 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3907 long arg7 = (long) wxGA_HORIZONTAL ;
3908 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3909 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3910 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3911 wxString *arg9 = (wxString *) &arg9_defvalue ;
3912 bool result;
3913 wxPoint temp5 ;
3914 wxSize temp6 ;
3915 bool temp9 = False ;
3916 PyObject * obj0 = 0 ;
3917 PyObject * obj1 = 0 ;
3918 PyObject * obj2 = 0 ;
3919 PyObject * obj3 = 0 ;
3920 PyObject * obj4 = 0 ;
3921 PyObject * obj5 = 0 ;
3922 PyObject * obj6 = 0 ;
3923 PyObject * obj7 = 0 ;
3924 PyObject * obj8 = 0 ;
3925 char *kwnames[] = {
3926 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3927 };
3928
3929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3932 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3934 arg3 = (int) SWIG_AsInt(obj2);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 arg4 = (int) SWIG_AsInt(obj3);
3937 if (PyErr_Occurred()) SWIG_fail;
3938 if (obj4) {
3939 {
3940 arg5 = &temp5;
3941 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3942 }
3943 }
3944 if (obj5) {
3945 {
3946 arg6 = &temp6;
3947 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3948 }
3949 }
3950 if (obj6) {
3951 arg7 = (long) SWIG_AsLong(obj6);
3952 if (PyErr_Occurred()) SWIG_fail;
3953 }
3954 if (obj7) {
3955 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3956 SWIG_POINTER_EXCEPTION | 0)) == -1)
3957 SWIG_fail;
3958 if (arg8 == NULL) {
3959 PyErr_SetString(PyExc_TypeError,"null reference");
3960 SWIG_fail;
3961 }
3962 }
3963 if (obj8) {
3964 {
3965 arg9 = wxString_in_helper(obj8);
3966 if (arg9 == NULL) SWIG_fail;
3967 temp9 = True;
3968 }
3969 }
3970 {
3971 PyThreadState* __tstate = wxPyBeginAllowThreads();
3972 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3973
3974 wxPyEndAllowThreads(__tstate);
3975 if (PyErr_Occurred()) SWIG_fail;
3976 }
3977 {
3978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3979 }
3980 {
3981 if (temp9)
3982 delete arg9;
3983 }
3984 return resultobj;
3985 fail:
3986 {
3987 if (temp9)
3988 delete arg9;
3989 }
3990 return NULL;
3991 }
3992
3993
3994 static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3995 PyObject *resultobj;
3996 wxGauge *arg1 = (wxGauge *) 0 ;
3997 int arg2 ;
3998 PyObject * obj0 = 0 ;
3999 PyObject * obj1 = 0 ;
4000 char *kwnames[] = {
4001 (char *) "self",(char *) "range", NULL
4002 };
4003
4004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4007 arg2 = (int) SWIG_AsInt(obj1);
4008 if (PyErr_Occurred()) SWIG_fail;
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 (arg1)->SetRange(arg2);
4012
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
4016 Py_INCREF(Py_None); resultobj = Py_None;
4017 return resultobj;
4018 fail:
4019 return NULL;
4020 }
4021
4022
4023 static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
4024 PyObject *resultobj;
4025 wxGauge *arg1 = (wxGauge *) 0 ;
4026 int result;
4027 PyObject * obj0 = 0 ;
4028 char *kwnames[] = {
4029 (char *) "self", NULL
4030 };
4031
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4035 {
4036 PyThreadState* __tstate = wxPyBeginAllowThreads();
4037 result = (int)((wxGauge const *)arg1)->GetRange();
4038
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 resultobj = SWIG_FromInt((int)result);
4043 return resultobj;
4044 fail:
4045 return NULL;
4046 }
4047
4048
4049 static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4050 PyObject *resultobj;
4051 wxGauge *arg1 = (wxGauge *) 0 ;
4052 int arg2 ;
4053 PyObject * obj0 = 0 ;
4054 PyObject * obj1 = 0 ;
4055 char *kwnames[] = {
4056 (char *) "self",(char *) "pos", NULL
4057 };
4058
4059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4062 arg2 = (int) SWIG_AsInt(obj1);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 {
4065 PyThreadState* __tstate = wxPyBeginAllowThreads();
4066 (arg1)->SetValue(arg2);
4067
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 Py_INCREF(Py_None); resultobj = Py_None;
4072 return resultobj;
4073 fail:
4074 return NULL;
4075 }
4076
4077
4078 static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4079 PyObject *resultobj;
4080 wxGauge *arg1 = (wxGauge *) 0 ;
4081 int result;
4082 PyObject * obj0 = 0 ;
4083 char *kwnames[] = {
4084 (char *) "self", NULL
4085 };
4086
4087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 result = (int)((wxGauge const *)arg1)->GetValue();
4093
4094 wxPyEndAllowThreads(__tstate);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 }
4097 resultobj = SWIG_FromInt((int)result);
4098 return resultobj;
4099 fail:
4100 return NULL;
4101 }
4102
4103
4104 static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4105 PyObject *resultobj;
4106 wxGauge *arg1 = (wxGauge *) 0 ;
4107 bool result;
4108 PyObject * obj0 = 0 ;
4109 char *kwnames[] = {
4110 (char *) "self", NULL
4111 };
4112
4113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4116 {
4117 PyThreadState* __tstate = wxPyBeginAllowThreads();
4118 result = (bool)((wxGauge const *)arg1)->IsVertical();
4119
4120 wxPyEndAllowThreads(__tstate);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 {
4124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4125 }
4126 return resultobj;
4127 fail:
4128 return NULL;
4129 }
4130
4131
4132 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4133 PyObject *resultobj;
4134 wxGauge *arg1 = (wxGauge *) 0 ;
4135 int arg2 ;
4136 PyObject * obj0 = 0 ;
4137 PyObject * obj1 = 0 ;
4138 char *kwnames[] = {
4139 (char *) "self",(char *) "w", NULL
4140 };
4141
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4145 arg2 = (int) SWIG_AsInt(obj1);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 {
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 (arg1)->SetShadowWidth(arg2);
4150
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
4154 Py_INCREF(Py_None); resultobj = Py_None;
4155 return resultobj;
4156 fail:
4157 return NULL;
4158 }
4159
4160
4161 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4162 PyObject *resultobj;
4163 wxGauge *arg1 = (wxGauge *) 0 ;
4164 int result;
4165 PyObject * obj0 = 0 ;
4166 char *kwnames[] = {
4167 (char *) "self", NULL
4168 };
4169
4170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4173 {
4174 PyThreadState* __tstate = wxPyBeginAllowThreads();
4175 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4176
4177 wxPyEndAllowThreads(__tstate);
4178 if (PyErr_Occurred()) SWIG_fail;
4179 }
4180 resultobj = SWIG_FromInt((int)result);
4181 return resultobj;
4182 fail:
4183 return NULL;
4184 }
4185
4186
4187 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4188 PyObject *resultobj;
4189 wxGauge *arg1 = (wxGauge *) 0 ;
4190 int arg2 ;
4191 PyObject * obj0 = 0 ;
4192 PyObject * obj1 = 0 ;
4193 char *kwnames[] = {
4194 (char *) "self",(char *) "w", NULL
4195 };
4196
4197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4200 arg2 = (int) SWIG_AsInt(obj1);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 {
4203 PyThreadState* __tstate = wxPyBeginAllowThreads();
4204 (arg1)->SetBezelFace(arg2);
4205
4206 wxPyEndAllowThreads(__tstate);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
4209 Py_INCREF(Py_None); resultobj = Py_None;
4210 return resultobj;
4211 fail:
4212 return NULL;
4213 }
4214
4215
4216 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4217 PyObject *resultobj;
4218 wxGauge *arg1 = (wxGauge *) 0 ;
4219 int result;
4220 PyObject * obj0 = 0 ;
4221 char *kwnames[] = {
4222 (char *) "self", NULL
4223 };
4224
4225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4228 {
4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
4230 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4231
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) SWIG_fail;
4234 }
4235 resultobj = SWIG_FromInt((int)result);
4236 return resultobj;
4237 fail:
4238 return NULL;
4239 }
4240
4241
4242 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4243 PyObject *resultobj;
4244 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4245 wxVisualAttributes result;
4246 PyObject * obj0 = 0 ;
4247 char *kwnames[] = {
4248 (char *) "variant", NULL
4249 };
4250
4251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4252 if (obj0) {
4253 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4259
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 {
4264 wxVisualAttributes * resultptr;
4265 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4266 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4267 }
4268 return resultobj;
4269 fail:
4270 return NULL;
4271 }
4272
4273
4274 static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
4275 PyObject *obj;
4276 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4277 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4278 Py_INCREF(obj);
4279 return Py_BuildValue((char *)"");
4280 }
4281 static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
4282 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4283 return 1;
4284 }
4285
4286
4287 static PyObject *_wrap_StaticBitmapNameStr_get() {
4288 PyObject *pyobj;
4289
4290 {
4291 #if wxUSE_UNICODE
4292 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4293 #else
4294 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4295 #endif
4296 }
4297 return pyobj;
4298 }
4299
4300
4301 static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
4302 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4303 return 1;
4304 }
4305
4306
4307 static PyObject *_wrap_StaticBoxNameStr_get() {
4308 PyObject *pyobj;
4309
4310 {
4311 #if wxUSE_UNICODE
4312 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4313 #else
4314 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4315 #endif
4316 }
4317 return pyobj;
4318 }
4319
4320
4321 static int _wrap_StaticTextNameStr_set(PyObject *_val) {
4322 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4323 return 1;
4324 }
4325
4326
4327 static PyObject *_wrap_StaticTextNameStr_get() {
4328 PyObject *pyobj;
4329
4330 {
4331 #if wxUSE_UNICODE
4332 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4333 #else
4334 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4335 #endif
4336 }
4337 return pyobj;
4338 }
4339
4340
4341 static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj;
4343 wxWindow *arg1 = (wxWindow *) 0 ;
4344 int arg2 ;
4345 wxString *arg3 = 0 ;
4346 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4347 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4348 wxSize const &arg5_defvalue = wxDefaultSize ;
4349 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4350 long arg6 = (long) 0 ;
4351 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4352 wxString *arg7 = (wxString *) &arg7_defvalue ;
4353 wxStaticBox *result;
4354 bool temp3 = False ;
4355 wxPoint temp4 ;
4356 wxSize temp5 ;
4357 bool temp7 = False ;
4358 PyObject * obj0 = 0 ;
4359 PyObject * obj1 = 0 ;
4360 PyObject * obj2 = 0 ;
4361 PyObject * obj3 = 0 ;
4362 PyObject * obj4 = 0 ;
4363 PyObject * obj5 = 0 ;
4364 PyObject * obj6 = 0 ;
4365 char *kwnames[] = {
4366 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4367 };
4368
4369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4372 arg2 = (int) SWIG_AsInt(obj1);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 {
4375 arg3 = wxString_in_helper(obj2);
4376 if (arg3 == NULL) SWIG_fail;
4377 temp3 = True;
4378 }
4379 if (obj3) {
4380 {
4381 arg4 = &temp4;
4382 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4383 }
4384 }
4385 if (obj4) {
4386 {
4387 arg5 = &temp5;
4388 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4389 }
4390 }
4391 if (obj5) {
4392 arg6 = (long) SWIG_AsLong(obj5);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 if (obj6) {
4396 {
4397 arg7 = wxString_in_helper(obj6);
4398 if (arg7 == NULL) SWIG_fail;
4399 temp7 = True;
4400 }
4401 }
4402 {
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
4404 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4405
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 {
4410 resultobj = wxPyMake_wxObject(result);
4411 }
4412 {
4413 if (temp3)
4414 delete arg3;
4415 }
4416 {
4417 if (temp7)
4418 delete arg7;
4419 }
4420 return resultobj;
4421 fail:
4422 {
4423 if (temp3)
4424 delete arg3;
4425 }
4426 {
4427 if (temp7)
4428 delete arg7;
4429 }
4430 return NULL;
4431 }
4432
4433
4434 static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4435 PyObject *resultobj;
4436 wxStaticBox *result;
4437 char *kwnames[] = {
4438 NULL
4439 };
4440
4441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4442 {
4443 PyThreadState* __tstate = wxPyBeginAllowThreads();
4444 result = (wxStaticBox *)new wxStaticBox();
4445
4446 wxPyEndAllowThreads(__tstate);
4447 if (PyErr_Occurred()) SWIG_fail;
4448 }
4449 {
4450 resultobj = wxPyMake_wxObject(result);
4451 }
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4459 PyObject *resultobj;
4460 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4461 wxWindow *arg2 = (wxWindow *) 0 ;
4462 int arg3 ;
4463 wxString *arg4 = 0 ;
4464 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4465 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4466 wxSize const &arg6_defvalue = wxDefaultSize ;
4467 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4468 long arg7 = (long) 0 ;
4469 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4470 wxString *arg8 = (wxString *) &arg8_defvalue ;
4471 bool result;
4472 bool temp4 = False ;
4473 wxPoint temp5 ;
4474 wxSize temp6 ;
4475 bool temp8 = False ;
4476 PyObject * obj0 = 0 ;
4477 PyObject * obj1 = 0 ;
4478 PyObject * obj2 = 0 ;
4479 PyObject * obj3 = 0 ;
4480 PyObject * obj4 = 0 ;
4481 PyObject * obj5 = 0 ;
4482 PyObject * obj6 = 0 ;
4483 PyObject * obj7 = 0 ;
4484 char *kwnames[] = {
4485 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4486 };
4487
4488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4491 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4493 arg3 = (int) SWIG_AsInt(obj2);
4494 if (PyErr_Occurred()) SWIG_fail;
4495 {
4496 arg4 = wxString_in_helper(obj3);
4497 if (arg4 == NULL) SWIG_fail;
4498 temp4 = True;
4499 }
4500 if (obj4) {
4501 {
4502 arg5 = &temp5;
4503 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4504 }
4505 }
4506 if (obj5) {
4507 {
4508 arg6 = &temp6;
4509 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4510 }
4511 }
4512 if (obj6) {
4513 arg7 = (long) SWIG_AsLong(obj6);
4514 if (PyErr_Occurred()) SWIG_fail;
4515 }
4516 if (obj7) {
4517 {
4518 arg8 = wxString_in_helper(obj7);
4519 if (arg8 == NULL) SWIG_fail;
4520 temp8 = True;
4521 }
4522 }
4523 {
4524 PyThreadState* __tstate = wxPyBeginAllowThreads();
4525 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4526
4527 wxPyEndAllowThreads(__tstate);
4528 if (PyErr_Occurred()) SWIG_fail;
4529 }
4530 {
4531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4532 }
4533 {
4534 if (temp4)
4535 delete arg4;
4536 }
4537 {
4538 if (temp8)
4539 delete arg8;
4540 }
4541 return resultobj;
4542 fail:
4543 {
4544 if (temp4)
4545 delete arg4;
4546 }
4547 {
4548 if (temp8)
4549 delete arg8;
4550 }
4551 return NULL;
4552 }
4553
4554
4555 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4556 PyObject *resultobj;
4557 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4558 wxVisualAttributes result;
4559 PyObject * obj0 = 0 ;
4560 char *kwnames[] = {
4561 (char *) "variant", NULL
4562 };
4563
4564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4565 if (obj0) {
4566 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4567 if (PyErr_Occurred()) SWIG_fail;
4568 }
4569 {
4570 PyThreadState* __tstate = wxPyBeginAllowThreads();
4571 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4572
4573 wxPyEndAllowThreads(__tstate);
4574 if (PyErr_Occurred()) SWIG_fail;
4575 }
4576 {
4577 wxVisualAttributes * resultptr;
4578 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4580 }
4581 return resultobj;
4582 fail:
4583 return NULL;
4584 }
4585
4586
4587 static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4588 PyObject *obj;
4589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4590 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4591 Py_INCREF(obj);
4592 return Py_BuildValue((char *)"");
4593 }
4594 static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4595 PyObject *resultobj;
4596 wxWindow *arg1 = (wxWindow *) 0 ;
4597 int arg2 ;
4598 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4599 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4600 wxSize const &arg4_defvalue = wxDefaultSize ;
4601 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4602 long arg5 = (long) wxLI_HORIZONTAL ;
4603 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4604 wxString *arg6 = (wxString *) &arg6_defvalue ;
4605 wxStaticLine *result;
4606 wxPoint temp3 ;
4607 wxSize temp4 ;
4608 bool temp6 = False ;
4609 PyObject * obj0 = 0 ;
4610 PyObject * obj1 = 0 ;
4611 PyObject * obj2 = 0 ;
4612 PyObject * obj3 = 0 ;
4613 PyObject * obj4 = 0 ;
4614 PyObject * obj5 = 0 ;
4615 char *kwnames[] = {
4616 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4617 };
4618
4619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4622 arg2 = (int) SWIG_AsInt(obj1);
4623 if (PyErr_Occurred()) SWIG_fail;
4624 if (obj2) {
4625 {
4626 arg3 = &temp3;
4627 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4628 }
4629 }
4630 if (obj3) {
4631 {
4632 arg4 = &temp4;
4633 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4634 }
4635 }
4636 if (obj4) {
4637 arg5 = (long) SWIG_AsLong(obj4);
4638 if (PyErr_Occurred()) SWIG_fail;
4639 }
4640 if (obj5) {
4641 {
4642 arg6 = wxString_in_helper(obj5);
4643 if (arg6 == NULL) SWIG_fail;
4644 temp6 = True;
4645 }
4646 }
4647 {
4648 PyThreadState* __tstate = wxPyBeginAllowThreads();
4649 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4650
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4655 {
4656 if (temp6)
4657 delete arg6;
4658 }
4659 return resultobj;
4660 fail:
4661 {
4662 if (temp6)
4663 delete arg6;
4664 }
4665 return NULL;
4666 }
4667
4668
4669 static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4670 PyObject *resultobj;
4671 wxStaticLine *result;
4672 char *kwnames[] = {
4673 NULL
4674 };
4675
4676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4677 {
4678 PyThreadState* __tstate = wxPyBeginAllowThreads();
4679 result = (wxStaticLine *)new wxStaticLine();
4680
4681 wxPyEndAllowThreads(__tstate);
4682 if (PyErr_Occurred()) SWIG_fail;
4683 }
4684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4685 return resultobj;
4686 fail:
4687 return NULL;
4688 }
4689
4690
4691 static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4692 PyObject *resultobj;
4693 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4694 wxWindow *arg2 = (wxWindow *) 0 ;
4695 int arg3 ;
4696 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4697 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4698 wxSize const &arg5_defvalue = wxDefaultSize ;
4699 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4700 long arg6 = (long) wxLI_HORIZONTAL ;
4701 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4702 wxString *arg7 = (wxString *) &arg7_defvalue ;
4703 bool result;
4704 wxPoint temp4 ;
4705 wxSize temp5 ;
4706 bool temp7 = False ;
4707 PyObject * obj0 = 0 ;
4708 PyObject * obj1 = 0 ;
4709 PyObject * obj2 = 0 ;
4710 PyObject * obj3 = 0 ;
4711 PyObject * obj4 = 0 ;
4712 PyObject * obj5 = 0 ;
4713 PyObject * obj6 = 0 ;
4714 char *kwnames[] = {
4715 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4716 };
4717
4718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4721 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4723 arg3 = (int) SWIG_AsInt(obj2);
4724 if (PyErr_Occurred()) SWIG_fail;
4725 if (obj3) {
4726 {
4727 arg4 = &temp4;
4728 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4729 }
4730 }
4731 if (obj4) {
4732 {
4733 arg5 = &temp5;
4734 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4735 }
4736 }
4737 if (obj5) {
4738 arg6 = (long) SWIG_AsLong(obj5);
4739 if (PyErr_Occurred()) SWIG_fail;
4740 }
4741 if (obj6) {
4742 {
4743 arg7 = wxString_in_helper(obj6);
4744 if (arg7 == NULL) SWIG_fail;
4745 temp7 = True;
4746 }
4747 }
4748 {
4749 PyThreadState* __tstate = wxPyBeginAllowThreads();
4750 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4751
4752 wxPyEndAllowThreads(__tstate);
4753 if (PyErr_Occurred()) SWIG_fail;
4754 }
4755 {
4756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4757 }
4758 {
4759 if (temp7)
4760 delete arg7;
4761 }
4762 return resultobj;
4763 fail:
4764 {
4765 if (temp7)
4766 delete arg7;
4767 }
4768 return NULL;
4769 }
4770
4771
4772 static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4773 PyObject *resultobj;
4774 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4775 bool result;
4776 PyObject * obj0 = 0 ;
4777 char *kwnames[] = {
4778 (char *) "self", NULL
4779 };
4780
4781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4784 {
4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
4786 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4787
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 {
4792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4793 }
4794 return resultobj;
4795 fail:
4796 return NULL;
4797 }
4798
4799
4800 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4801 PyObject *resultobj;
4802 int result;
4803 char *kwnames[] = {
4804 NULL
4805 };
4806
4807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4808 {
4809 PyThreadState* __tstate = wxPyBeginAllowThreads();
4810 result = (int)wxStaticLine::GetDefaultSize();
4811
4812 wxPyEndAllowThreads(__tstate);
4813 if (PyErr_Occurred()) SWIG_fail;
4814 }
4815 resultobj = SWIG_FromInt((int)result);
4816 return resultobj;
4817 fail:
4818 return NULL;
4819 }
4820
4821
4822 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4823 PyObject *resultobj;
4824 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4825 wxVisualAttributes result;
4826 PyObject * obj0 = 0 ;
4827 char *kwnames[] = {
4828 (char *) "variant", NULL
4829 };
4830
4831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4832 if (obj0) {
4833 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 {
4837 PyThreadState* __tstate = wxPyBeginAllowThreads();
4838 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
4839
4840 wxPyEndAllowThreads(__tstate);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 }
4843 {
4844 wxVisualAttributes * resultptr;
4845 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4846 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4847 }
4848 return resultobj;
4849 fail:
4850 return NULL;
4851 }
4852
4853
4854 static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4855 PyObject *obj;
4856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4857 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4858 Py_INCREF(obj);
4859 return Py_BuildValue((char *)"");
4860 }
4861 static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj;
4863 wxWindow *arg1 = (wxWindow *) 0 ;
4864 int arg2 ;
4865 wxString *arg3 = 0 ;
4866 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4867 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4868 wxSize const &arg5_defvalue = wxDefaultSize ;
4869 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4870 long arg6 = (long) 0 ;
4871 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4872 wxString *arg7 = (wxString *) &arg7_defvalue ;
4873 wxStaticText *result;
4874 bool temp3 = False ;
4875 wxPoint temp4 ;
4876 wxSize temp5 ;
4877 bool temp7 = False ;
4878 PyObject * obj0 = 0 ;
4879 PyObject * obj1 = 0 ;
4880 PyObject * obj2 = 0 ;
4881 PyObject * obj3 = 0 ;
4882 PyObject * obj4 = 0 ;
4883 PyObject * obj5 = 0 ;
4884 PyObject * obj6 = 0 ;
4885 char *kwnames[] = {
4886 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4887 };
4888
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4892 arg2 = (int) SWIG_AsInt(obj1);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 {
4895 arg3 = wxString_in_helper(obj2);
4896 if (arg3 == NULL) SWIG_fail;
4897 temp3 = True;
4898 }
4899 if (obj3) {
4900 {
4901 arg4 = &temp4;
4902 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4903 }
4904 }
4905 if (obj4) {
4906 {
4907 arg5 = &temp5;
4908 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4909 }
4910 }
4911 if (obj5) {
4912 arg6 = (long) SWIG_AsLong(obj5);
4913 if (PyErr_Occurred()) SWIG_fail;
4914 }
4915 if (obj6) {
4916 {
4917 arg7 = wxString_in_helper(obj6);
4918 if (arg7 == NULL) SWIG_fail;
4919 temp7 = True;
4920 }
4921 }
4922 {
4923 PyThreadState* __tstate = wxPyBeginAllowThreads();
4924 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4925
4926 wxPyEndAllowThreads(__tstate);
4927 if (PyErr_Occurred()) SWIG_fail;
4928 }
4929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4930 {
4931 if (temp3)
4932 delete arg3;
4933 }
4934 {
4935 if (temp7)
4936 delete arg7;
4937 }
4938 return resultobj;
4939 fail:
4940 {
4941 if (temp3)
4942 delete arg3;
4943 }
4944 {
4945 if (temp7)
4946 delete arg7;
4947 }
4948 return NULL;
4949 }
4950
4951
4952 static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4953 PyObject *resultobj;
4954 wxStaticText *result;
4955 char *kwnames[] = {
4956 NULL
4957 };
4958
4959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 result = (wxStaticText *)new wxStaticText();
4963
4964 wxPyEndAllowThreads(__tstate);
4965 if (PyErr_Occurred()) SWIG_fail;
4966 }
4967 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4968 return resultobj;
4969 fail:
4970 return NULL;
4971 }
4972
4973
4974 static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4975 PyObject *resultobj;
4976 wxStaticText *arg1 = (wxStaticText *) 0 ;
4977 wxWindow *arg2 = (wxWindow *) 0 ;
4978 int arg3 ;
4979 wxString *arg4 = 0 ;
4980 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4981 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4982 wxSize const &arg6_defvalue = wxDefaultSize ;
4983 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4984 long arg7 = (long) 0 ;
4985 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4986 wxString *arg8 = (wxString *) &arg8_defvalue ;
4987 bool result;
4988 bool temp4 = False ;
4989 wxPoint temp5 ;
4990 wxSize temp6 ;
4991 bool temp8 = False ;
4992 PyObject * obj0 = 0 ;
4993 PyObject * obj1 = 0 ;
4994 PyObject * obj2 = 0 ;
4995 PyObject * obj3 = 0 ;
4996 PyObject * obj4 = 0 ;
4997 PyObject * obj5 = 0 ;
4998 PyObject * obj6 = 0 ;
4999 PyObject * obj7 = 0 ;
5000 char *kwnames[] = {
5001 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5002 };
5003
5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5007 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5009 arg3 = (int) SWIG_AsInt(obj2);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 {
5012 arg4 = wxString_in_helper(obj3);
5013 if (arg4 == NULL) SWIG_fail;
5014 temp4 = True;
5015 }
5016 if (obj4) {
5017 {
5018 arg5 = &temp5;
5019 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5020 }
5021 }
5022 if (obj5) {
5023 {
5024 arg6 = &temp6;
5025 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5026 }
5027 }
5028 if (obj6) {
5029 arg7 = (long) SWIG_AsLong(obj6);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 if (obj7) {
5033 {
5034 arg8 = wxString_in_helper(obj7);
5035 if (arg8 == NULL) SWIG_fail;
5036 temp8 = True;
5037 }
5038 }
5039 {
5040 PyThreadState* __tstate = wxPyBeginAllowThreads();
5041 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5042
5043 wxPyEndAllowThreads(__tstate);
5044 if (PyErr_Occurred()) SWIG_fail;
5045 }
5046 {
5047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5048 }
5049 {
5050 if (temp4)
5051 delete arg4;
5052 }
5053 {
5054 if (temp8)
5055 delete arg8;
5056 }
5057 return resultobj;
5058 fail:
5059 {
5060 if (temp4)
5061 delete arg4;
5062 }
5063 {
5064 if (temp8)
5065 delete arg8;
5066 }
5067 return NULL;
5068 }
5069
5070
5071 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5072 PyObject *resultobj;
5073 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5074 wxVisualAttributes result;
5075 PyObject * obj0 = 0 ;
5076 char *kwnames[] = {
5077 (char *) "variant", NULL
5078 };
5079
5080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5081 if (obj0) {
5082 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 {
5086 PyThreadState* __tstate = wxPyBeginAllowThreads();
5087 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5088
5089 wxPyEndAllowThreads(__tstate);
5090 if (PyErr_Occurred()) SWIG_fail;
5091 }
5092 {
5093 wxVisualAttributes * resultptr;
5094 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5095 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5096 }
5097 return resultobj;
5098 fail:
5099 return NULL;
5100 }
5101
5102
5103 static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
5104 PyObject *obj;
5105 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5106 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5107 Py_INCREF(obj);
5108 return Py_BuildValue((char *)"");
5109 }
5110 static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5111 PyObject *resultobj;
5112 wxWindow *arg1 = (wxWindow *) 0 ;
5113 int arg2 ;
5114 wxBitmap *arg3 = 0 ;
5115 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5116 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5117 wxSize const &arg5_defvalue = wxDefaultSize ;
5118 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5119 long arg6 = (long) 0 ;
5120 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5121 wxString *arg7 = (wxString *) &arg7_defvalue ;
5122 wxStaticBitmap *result;
5123 wxPoint temp4 ;
5124 wxSize temp5 ;
5125 bool temp7 = False ;
5126 PyObject * obj0 = 0 ;
5127 PyObject * obj1 = 0 ;
5128 PyObject * obj2 = 0 ;
5129 PyObject * obj3 = 0 ;
5130 PyObject * obj4 = 0 ;
5131 PyObject * obj5 = 0 ;
5132 PyObject * obj6 = 0 ;
5133 char *kwnames[] = {
5134 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5135 };
5136
5137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5140 arg2 = (int) SWIG_AsInt(obj1);
5141 if (PyErr_Occurred()) SWIG_fail;
5142 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5143 SWIG_POINTER_EXCEPTION | 0)) == -1)
5144 SWIG_fail;
5145 if (arg3 == NULL) {
5146 PyErr_SetString(PyExc_TypeError,"null reference");
5147 SWIG_fail;
5148 }
5149 if (obj3) {
5150 {
5151 arg4 = &temp4;
5152 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5153 }
5154 }
5155 if (obj4) {
5156 {
5157 arg5 = &temp5;
5158 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5159 }
5160 }
5161 if (obj5) {
5162 arg6 = (long) SWIG_AsLong(obj5);
5163 if (PyErr_Occurred()) SWIG_fail;
5164 }
5165 if (obj6) {
5166 {
5167 arg7 = wxString_in_helper(obj6);
5168 if (arg7 == NULL) SWIG_fail;
5169 temp7 = True;
5170 }
5171 }
5172 {
5173 PyThreadState* __tstate = wxPyBeginAllowThreads();
5174 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5175
5176 wxPyEndAllowThreads(__tstate);
5177 if (PyErr_Occurred()) SWIG_fail;
5178 }
5179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5180 {
5181 if (temp7)
5182 delete arg7;
5183 }
5184 return resultobj;
5185 fail:
5186 {
5187 if (temp7)
5188 delete arg7;
5189 }
5190 return NULL;
5191 }
5192
5193
5194 static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5195 PyObject *resultobj;
5196 wxStaticBitmap *result;
5197 char *kwnames[] = {
5198 NULL
5199 };
5200
5201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5202 {
5203 PyThreadState* __tstate = wxPyBeginAllowThreads();
5204 result = (wxStaticBitmap *)new wxStaticBitmap();
5205
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 }
5209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5210 return resultobj;
5211 fail:
5212 return NULL;
5213 }
5214
5215
5216 static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5217 PyObject *resultobj;
5218 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5219 wxWindow *arg2 = (wxWindow *) 0 ;
5220 int arg3 ;
5221 wxBitmap *arg4 = 0 ;
5222 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5223 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5224 wxSize const &arg6_defvalue = wxDefaultSize ;
5225 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5226 long arg7 = (long) 0 ;
5227 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5228 wxString *arg8 = (wxString *) &arg8_defvalue ;
5229 bool result;
5230 wxPoint temp5 ;
5231 wxSize temp6 ;
5232 bool temp8 = False ;
5233 PyObject * obj0 = 0 ;
5234 PyObject * obj1 = 0 ;
5235 PyObject * obj2 = 0 ;
5236 PyObject * obj3 = 0 ;
5237 PyObject * obj4 = 0 ;
5238 PyObject * obj5 = 0 ;
5239 PyObject * obj6 = 0 ;
5240 PyObject * obj7 = 0 ;
5241 char *kwnames[] = {
5242 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5243 };
5244
5245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5248 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5250 arg3 = (int) SWIG_AsInt(obj2);
5251 if (PyErr_Occurred()) SWIG_fail;
5252 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5253 SWIG_POINTER_EXCEPTION | 0)) == -1)
5254 SWIG_fail;
5255 if (arg4 == NULL) {
5256 PyErr_SetString(PyExc_TypeError,"null reference");
5257 SWIG_fail;
5258 }
5259 if (obj4) {
5260 {
5261 arg5 = &temp5;
5262 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5263 }
5264 }
5265 if (obj5) {
5266 {
5267 arg6 = &temp6;
5268 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5269 }
5270 }
5271 if (obj6) {
5272 arg7 = (long) SWIG_AsLong(obj6);
5273 if (PyErr_Occurred()) SWIG_fail;
5274 }
5275 if (obj7) {
5276 {
5277 arg8 = wxString_in_helper(obj7);
5278 if (arg8 == NULL) SWIG_fail;
5279 temp8 = True;
5280 }
5281 }
5282 {
5283 PyThreadState* __tstate = wxPyBeginAllowThreads();
5284 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5285
5286 wxPyEndAllowThreads(__tstate);
5287 if (PyErr_Occurred()) SWIG_fail;
5288 }
5289 {
5290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5291 }
5292 {
5293 if (temp8)
5294 delete arg8;
5295 }
5296 return resultobj;
5297 fail:
5298 {
5299 if (temp8)
5300 delete arg8;
5301 }
5302 return NULL;
5303 }
5304
5305
5306 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj;
5308 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5309 wxBitmap result;
5310 PyObject * obj0 = 0 ;
5311 char *kwnames[] = {
5312 (char *) "self", NULL
5313 };
5314
5315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5318 {
5319 PyThreadState* __tstate = wxPyBeginAllowThreads();
5320 result = (arg1)->GetBitmap();
5321
5322 wxPyEndAllowThreads(__tstate);
5323 if (PyErr_Occurred()) SWIG_fail;
5324 }
5325 {
5326 wxBitmap * resultptr;
5327 resultptr = new wxBitmap((wxBitmap &) result);
5328 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5329 }
5330 return resultobj;
5331 fail:
5332 return NULL;
5333 }
5334
5335
5336 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5337 PyObject *resultobj;
5338 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5339 wxBitmap *arg2 = 0 ;
5340 PyObject * obj0 = 0 ;
5341 PyObject * obj1 = 0 ;
5342 char *kwnames[] = {
5343 (char *) "self",(char *) "bitmap", NULL
5344 };
5345
5346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5350 SWIG_POINTER_EXCEPTION | 0)) == -1)
5351 SWIG_fail;
5352 if (arg2 == NULL) {
5353 PyErr_SetString(PyExc_TypeError,"null reference");
5354 SWIG_fail;
5355 }
5356 {
5357 PyThreadState* __tstate = wxPyBeginAllowThreads();
5358 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5359
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 Py_INCREF(Py_None); resultobj = Py_None;
5364 return resultobj;
5365 fail:
5366 return NULL;
5367 }
5368
5369
5370 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5371 PyObject *resultobj;
5372 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5373 wxIcon *arg2 = 0 ;
5374 PyObject * obj0 = 0 ;
5375 PyObject * obj1 = 0 ;
5376 char *kwnames[] = {
5377 (char *) "self",(char *) "icon", NULL
5378 };
5379
5380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5383 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5384 SWIG_POINTER_EXCEPTION | 0)) == -1)
5385 SWIG_fail;
5386 if (arg2 == NULL) {
5387 PyErr_SetString(PyExc_TypeError,"null reference");
5388 SWIG_fail;
5389 }
5390 {
5391 PyThreadState* __tstate = wxPyBeginAllowThreads();
5392 (arg1)->SetIcon((wxIcon const &)*arg2);
5393
5394 wxPyEndAllowThreads(__tstate);
5395 if (PyErr_Occurred()) SWIG_fail;
5396 }
5397 Py_INCREF(Py_None); resultobj = Py_None;
5398 return resultobj;
5399 fail:
5400 return NULL;
5401 }
5402
5403
5404 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5405 PyObject *resultobj;
5406 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5407 wxVisualAttributes result;
5408 PyObject * obj0 = 0 ;
5409 char *kwnames[] = {
5410 (char *) "variant", NULL
5411 };
5412
5413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5414 if (obj0) {
5415 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 {
5419 PyThreadState* __tstate = wxPyBeginAllowThreads();
5420 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5421
5422 wxPyEndAllowThreads(__tstate);
5423 if (PyErr_Occurred()) SWIG_fail;
5424 }
5425 {
5426 wxVisualAttributes * resultptr;
5427 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5429 }
5430 return resultobj;
5431 fail:
5432 return NULL;
5433 }
5434
5435
5436 static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
5437 PyObject *obj;
5438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5439 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5440 Py_INCREF(obj);
5441 return Py_BuildValue((char *)"");
5442 }
5443 static int _wrap_ListBoxNameStr_set(PyObject *_val) {
5444 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5445 return 1;
5446 }
5447
5448
5449 static PyObject *_wrap_ListBoxNameStr_get() {
5450 PyObject *pyobj;
5451
5452 {
5453 #if wxUSE_UNICODE
5454 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5455 #else
5456 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5457 #endif
5458 }
5459 return pyobj;
5460 }
5461
5462
5463 static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj;
5465 wxWindow *arg1 = (wxWindow *) 0 ;
5466 int arg2 ;
5467 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5468 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5469 wxSize const &arg4_defvalue = wxDefaultSize ;
5470 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5471 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5472 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5473 long arg6 = (long) 0 ;
5474 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5475 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5476 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5477 wxString *arg8 = (wxString *) &arg8_defvalue ;
5478 wxListBox *result;
5479 wxPoint temp3 ;
5480 wxSize temp4 ;
5481 bool temp5 = False ;
5482 bool temp8 = False ;
5483 PyObject * obj0 = 0 ;
5484 PyObject * obj1 = 0 ;
5485 PyObject * obj2 = 0 ;
5486 PyObject * obj3 = 0 ;
5487 PyObject * obj4 = 0 ;
5488 PyObject * obj5 = 0 ;
5489 PyObject * obj6 = 0 ;
5490 PyObject * obj7 = 0 ;
5491 char *kwnames[] = {
5492 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5493 };
5494
5495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5498 arg2 = (int) SWIG_AsInt(obj1);
5499 if (PyErr_Occurred()) SWIG_fail;
5500 if (obj2) {
5501 {
5502 arg3 = &temp3;
5503 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5504 }
5505 }
5506 if (obj3) {
5507 {
5508 arg4 = &temp4;
5509 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5510 }
5511 }
5512 if (obj4) {
5513 {
5514 if (! PySequence_Check(obj4)) {
5515 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5516 SWIG_fail;
5517 }
5518 arg5 = new wxArrayString;
5519 temp5 = True;
5520 int i, len=PySequence_Length(obj4);
5521 for (i=0; i<len; i++) {
5522 PyObject* item = PySequence_GetItem(obj4, i);
5523 #if wxUSE_UNICODE
5524 PyObject* str = PyObject_Unicode(item);
5525 #else
5526 PyObject* str = PyObject_Str(item);
5527 #endif
5528 if (PyErr_Occurred()) SWIG_fail;
5529 arg5->Add(Py2wxString(str));
5530 Py_DECREF(item);
5531 Py_DECREF(str);
5532 }
5533 }
5534 }
5535 if (obj5) {
5536 arg6 = (long) SWIG_AsLong(obj5);
5537 if (PyErr_Occurred()) SWIG_fail;
5538 }
5539 if (obj6) {
5540 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5541 SWIG_POINTER_EXCEPTION | 0)) == -1)
5542 SWIG_fail;
5543 if (arg7 == NULL) {
5544 PyErr_SetString(PyExc_TypeError,"null reference");
5545 SWIG_fail;
5546 }
5547 }
5548 if (obj7) {
5549 {
5550 arg8 = wxString_in_helper(obj7);
5551 if (arg8 == NULL) SWIG_fail;
5552 temp8 = True;
5553 }
5554 }
5555 {
5556 PyThreadState* __tstate = wxPyBeginAllowThreads();
5557 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5558
5559 wxPyEndAllowThreads(__tstate);
5560 if (PyErr_Occurred()) SWIG_fail;
5561 }
5562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5563 {
5564 if (temp5) delete arg5;
5565 }
5566 {
5567 if (temp8)
5568 delete arg8;
5569 }
5570 return resultobj;
5571 fail:
5572 {
5573 if (temp5) delete arg5;
5574 }
5575 {
5576 if (temp8)
5577 delete arg8;
5578 }
5579 return NULL;
5580 }
5581
5582
5583 static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5584 PyObject *resultobj;
5585 wxListBox *result;
5586 char *kwnames[] = {
5587 NULL
5588 };
5589
5590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5591 {
5592 PyThreadState* __tstate = wxPyBeginAllowThreads();
5593 result = (wxListBox *)new wxListBox();
5594
5595 wxPyEndAllowThreads(__tstate);
5596 if (PyErr_Occurred()) SWIG_fail;
5597 }
5598 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5599 return resultobj;
5600 fail:
5601 return NULL;
5602 }
5603
5604
5605 static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5606 PyObject *resultobj;
5607 wxListBox *arg1 = (wxListBox *) 0 ;
5608 wxWindow *arg2 = (wxWindow *) 0 ;
5609 int arg3 ;
5610 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5611 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5612 wxSize const &arg5_defvalue = wxDefaultSize ;
5613 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5614 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5615 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5616 long arg7 = (long) 0 ;
5617 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5618 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5619 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5620 wxString *arg9 = (wxString *) &arg9_defvalue ;
5621 bool result;
5622 wxPoint temp4 ;
5623 wxSize temp5 ;
5624 bool temp6 = False ;
5625 bool temp9 = False ;
5626 PyObject * obj0 = 0 ;
5627 PyObject * obj1 = 0 ;
5628 PyObject * obj2 = 0 ;
5629 PyObject * obj3 = 0 ;
5630 PyObject * obj4 = 0 ;
5631 PyObject * obj5 = 0 ;
5632 PyObject * obj6 = 0 ;
5633 PyObject * obj7 = 0 ;
5634 PyObject * obj8 = 0 ;
5635 char *kwnames[] = {
5636 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5637 };
5638
5639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5642 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5644 arg3 = (int) SWIG_AsInt(obj2);
5645 if (PyErr_Occurred()) SWIG_fail;
5646 if (obj3) {
5647 {
5648 arg4 = &temp4;
5649 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5650 }
5651 }
5652 if (obj4) {
5653 {
5654 arg5 = &temp5;
5655 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5656 }
5657 }
5658 if (obj5) {
5659 {
5660 if (! PySequence_Check(obj5)) {
5661 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5662 SWIG_fail;
5663 }
5664 arg6 = new wxArrayString;
5665 temp6 = True;
5666 int i, len=PySequence_Length(obj5);
5667 for (i=0; i<len; i++) {
5668 PyObject* item = PySequence_GetItem(obj5, i);
5669 #if wxUSE_UNICODE
5670 PyObject* str = PyObject_Unicode(item);
5671 #else
5672 PyObject* str = PyObject_Str(item);
5673 #endif
5674 if (PyErr_Occurred()) SWIG_fail;
5675 arg6->Add(Py2wxString(str));
5676 Py_DECREF(item);
5677 Py_DECREF(str);
5678 }
5679 }
5680 }
5681 if (obj6) {
5682 arg7 = (long) SWIG_AsLong(obj6);
5683 if (PyErr_Occurred()) SWIG_fail;
5684 }
5685 if (obj7) {
5686 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5687 SWIG_POINTER_EXCEPTION | 0)) == -1)
5688 SWIG_fail;
5689 if (arg8 == NULL) {
5690 PyErr_SetString(PyExc_TypeError,"null reference");
5691 SWIG_fail;
5692 }
5693 }
5694 if (obj8) {
5695 {
5696 arg9 = wxString_in_helper(obj8);
5697 if (arg9 == NULL) SWIG_fail;
5698 temp9 = True;
5699 }
5700 }
5701 {
5702 PyThreadState* __tstate = wxPyBeginAllowThreads();
5703 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5704
5705 wxPyEndAllowThreads(__tstate);
5706 if (PyErr_Occurred()) SWIG_fail;
5707 }
5708 {
5709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5710 }
5711 {
5712 if (temp6) delete arg6;
5713 }
5714 {
5715 if (temp9)
5716 delete arg9;
5717 }
5718 return resultobj;
5719 fail:
5720 {
5721 if (temp6) delete arg6;
5722 }
5723 {
5724 if (temp9)
5725 delete arg9;
5726 }
5727 return NULL;
5728 }
5729
5730
5731 static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5732 PyObject *resultobj;
5733 wxListBox *arg1 = (wxListBox *) 0 ;
5734 wxString *arg2 = 0 ;
5735 int arg3 ;
5736 PyObject *arg4 = (PyObject *) NULL ;
5737 bool temp2 = False ;
5738 PyObject * obj0 = 0 ;
5739 PyObject * obj1 = 0 ;
5740 PyObject * obj2 = 0 ;
5741 PyObject * obj3 = 0 ;
5742 char *kwnames[] = {
5743 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5744 };
5745
5746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5749 {
5750 arg2 = wxString_in_helper(obj1);
5751 if (arg2 == NULL) SWIG_fail;
5752 temp2 = True;
5753 }
5754 arg3 = (int) SWIG_AsInt(obj2);
5755 if (PyErr_Occurred()) SWIG_fail;
5756 if (obj3) {
5757 arg4 = obj3;
5758 }
5759 {
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5762
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 Py_INCREF(Py_None); resultobj = Py_None;
5767 {
5768 if (temp2)
5769 delete arg2;
5770 }
5771 return resultobj;
5772 fail:
5773 {
5774 if (temp2)
5775 delete arg2;
5776 }
5777 return NULL;
5778 }
5779
5780
5781 static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5782 PyObject *resultobj;
5783 wxListBox *arg1 = (wxListBox *) 0 ;
5784 wxArrayString *arg2 = 0 ;
5785 int arg3 ;
5786 bool temp2 = False ;
5787 PyObject * obj0 = 0 ;
5788 PyObject * obj1 = 0 ;
5789 PyObject * obj2 = 0 ;
5790 char *kwnames[] = {
5791 (char *) "self",(char *) "items",(char *) "pos", NULL
5792 };
5793
5794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5797 {
5798 if (! PySequence_Check(obj1)) {
5799 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5800 SWIG_fail;
5801 }
5802 arg2 = new wxArrayString;
5803 temp2 = True;
5804 int i, len=PySequence_Length(obj1);
5805 for (i=0; i<len; i++) {
5806 PyObject* item = PySequence_GetItem(obj1, i);
5807 #if wxUSE_UNICODE
5808 PyObject* str = PyObject_Unicode(item);
5809 #else
5810 PyObject* str = PyObject_Str(item);
5811 #endif
5812 if (PyErr_Occurred()) SWIG_fail;
5813 arg2->Add(Py2wxString(str));
5814 Py_DECREF(item);
5815 Py_DECREF(str);
5816 }
5817 }
5818 arg3 = (int) SWIG_AsInt(obj2);
5819 if (PyErr_Occurred()) SWIG_fail;
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5823
5824 wxPyEndAllowThreads(__tstate);
5825 if (PyErr_Occurred()) SWIG_fail;
5826 }
5827 Py_INCREF(Py_None); resultobj = Py_None;
5828 {
5829 if (temp2) delete arg2;
5830 }
5831 return resultobj;
5832 fail:
5833 {
5834 if (temp2) delete arg2;
5835 }
5836 return NULL;
5837 }
5838
5839
5840 static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5841 PyObject *resultobj;
5842 wxListBox *arg1 = (wxListBox *) 0 ;
5843 wxArrayString *arg2 = 0 ;
5844 bool temp2 = False ;
5845 PyObject * obj0 = 0 ;
5846 PyObject * obj1 = 0 ;
5847 char *kwnames[] = {
5848 (char *) "self",(char *) "items", NULL
5849 };
5850
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5854 {
5855 if (! PySequence_Check(obj1)) {
5856 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5857 SWIG_fail;
5858 }
5859 arg2 = new wxArrayString;
5860 temp2 = True;
5861 int i, len=PySequence_Length(obj1);
5862 for (i=0; i<len; i++) {
5863 PyObject* item = PySequence_GetItem(obj1, i);
5864 #if wxUSE_UNICODE
5865 PyObject* str = PyObject_Unicode(item);
5866 #else
5867 PyObject* str = PyObject_Str(item);
5868 #endif
5869 if (PyErr_Occurred()) SWIG_fail;
5870 arg2->Add(Py2wxString(str));
5871 Py_DECREF(item);
5872 Py_DECREF(str);
5873 }
5874 }
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 (arg1)->Set((wxArrayString const &)*arg2);
5878
5879 wxPyEndAllowThreads(__tstate);
5880 if (PyErr_Occurred()) SWIG_fail;
5881 }
5882 Py_INCREF(Py_None); resultobj = Py_None;
5883 {
5884 if (temp2) delete arg2;
5885 }
5886 return resultobj;
5887 fail:
5888 {
5889 if (temp2) delete arg2;
5890 }
5891 return NULL;
5892 }
5893
5894
5895 static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5896 PyObject *resultobj;
5897 wxListBox *arg1 = (wxListBox *) 0 ;
5898 int arg2 ;
5899 bool result;
5900 PyObject * obj0 = 0 ;
5901 PyObject * obj1 = 0 ;
5902 char *kwnames[] = {
5903 (char *) "self",(char *) "n", NULL
5904 };
5905
5906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5909 arg2 = (int) SWIG_AsInt(obj1);
5910 if (PyErr_Occurred()) SWIG_fail;
5911 {
5912 PyThreadState* __tstate = wxPyBeginAllowThreads();
5913 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5914
5915 wxPyEndAllowThreads(__tstate);
5916 if (PyErr_Occurred()) SWIG_fail;
5917 }
5918 {
5919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5920 }
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj;
5929 wxListBox *arg1 = (wxListBox *) 0 ;
5930 int arg2 ;
5931 bool arg3 = (bool) True ;
5932 PyObject * obj0 = 0 ;
5933 PyObject * obj1 = 0 ;
5934 PyObject * obj2 = 0 ;
5935 char *kwnames[] = {
5936 (char *) "self",(char *) "n",(char *) "select", NULL
5937 };
5938
5939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5942 arg2 = (int) SWIG_AsInt(obj1);
5943 if (PyErr_Occurred()) SWIG_fail;
5944 if (obj2) {
5945 arg3 = (bool) SWIG_AsBool(obj2);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 {
5949 PyThreadState* __tstate = wxPyBeginAllowThreads();
5950 (arg1)->SetSelection(arg2,arg3);
5951
5952 wxPyEndAllowThreads(__tstate);
5953 if (PyErr_Occurred()) SWIG_fail;
5954 }
5955 Py_INCREF(Py_None); resultobj = Py_None;
5956 return resultobj;
5957 fail:
5958 return NULL;
5959 }
5960
5961
5962 static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5963 PyObject *resultobj;
5964 wxListBox *arg1 = (wxListBox *) 0 ;
5965 int arg2 ;
5966 PyObject * obj0 = 0 ;
5967 PyObject * obj1 = 0 ;
5968 char *kwnames[] = {
5969 (char *) "self",(char *) "n", NULL
5970 };
5971
5972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5975 arg2 = (int) SWIG_AsInt(obj1);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 {
5978 PyThreadState* __tstate = wxPyBeginAllowThreads();
5979 (arg1)->Select(arg2);
5980
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 Py_INCREF(Py_None); resultobj = Py_None;
5985 return resultobj;
5986 fail:
5987 return NULL;
5988 }
5989
5990
5991 static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5992 PyObject *resultobj;
5993 wxListBox *arg1 = (wxListBox *) 0 ;
5994 int arg2 ;
5995 PyObject * obj0 = 0 ;
5996 PyObject * obj1 = 0 ;
5997 char *kwnames[] = {
5998 (char *) "self",(char *) "n", NULL
5999 };
6000
6001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6004 arg2 = (int) SWIG_AsInt(obj1);
6005 if (PyErr_Occurred()) SWIG_fail;
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->Deselect(arg2);
6009
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 Py_INCREF(Py_None); resultobj = Py_None;
6014 return resultobj;
6015 fail:
6016 return NULL;
6017 }
6018
6019
6020 static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
6021 PyObject *resultobj;
6022 wxListBox *arg1 = (wxListBox *) 0 ;
6023 int arg2 = (int) -1 ;
6024 PyObject * obj0 = 0 ;
6025 PyObject * obj1 = 0 ;
6026 char *kwnames[] = {
6027 (char *) "self",(char *) "itemToLeaveSelected", NULL
6028 };
6029
6030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6033 if (obj1) {
6034 arg2 = (int) SWIG_AsInt(obj1);
6035 if (PyErr_Occurred()) SWIG_fail;
6036 }
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 (arg1)->DeselectAll(arg2);
6040
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) SWIG_fail;
6043 }
6044 Py_INCREF(Py_None); resultobj = Py_None;
6045 return resultobj;
6046 fail:
6047 return NULL;
6048 }
6049
6050
6051 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6052 PyObject *resultobj;
6053 wxListBox *arg1 = (wxListBox *) 0 ;
6054 wxString *arg2 = 0 ;
6055 bool arg3 = (bool) True ;
6056 bool result;
6057 bool temp2 = False ;
6058 PyObject * obj0 = 0 ;
6059 PyObject * obj1 = 0 ;
6060 PyObject * obj2 = 0 ;
6061 char *kwnames[] = {
6062 (char *) "self",(char *) "s",(char *) "select", NULL
6063 };
6064
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6068 {
6069 arg2 = wxString_in_helper(obj1);
6070 if (arg2 == NULL) SWIG_fail;
6071 temp2 = True;
6072 }
6073 if (obj2) {
6074 arg3 = (bool) SWIG_AsBool(obj2);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 {
6078 PyThreadState* __tstate = wxPyBeginAllowThreads();
6079 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6080
6081 wxPyEndAllowThreads(__tstate);
6082 if (PyErr_Occurred()) SWIG_fail;
6083 }
6084 {
6085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6086 }
6087 {
6088 if (temp2)
6089 delete arg2;
6090 }
6091 return resultobj;
6092 fail:
6093 {
6094 if (temp2)
6095 delete arg2;
6096 }
6097 return NULL;
6098 }
6099
6100
6101 static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
6102 PyObject *resultobj;
6103 wxListBox *arg1 = (wxListBox *) 0 ;
6104 PyObject *result;
6105 PyObject * obj0 = 0 ;
6106 char *kwnames[] = {
6107 (char *) "self", NULL
6108 };
6109
6110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6113 {
6114 PyThreadState* __tstate = wxPyBeginAllowThreads();
6115 result = (PyObject *)wxListBox_GetSelections(arg1);
6116
6117 wxPyEndAllowThreads(__tstate);
6118 if (PyErr_Occurred()) SWIG_fail;
6119 }
6120 resultobj = result;
6121 return resultobj;
6122 fail:
6123 return NULL;
6124 }
6125
6126
6127 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6128 PyObject *resultobj;
6129 wxListBox *arg1 = (wxListBox *) 0 ;
6130 int arg2 ;
6131 PyObject * obj0 = 0 ;
6132 PyObject * obj1 = 0 ;
6133 char *kwnames[] = {
6134 (char *) "self",(char *) "n", NULL
6135 };
6136
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6140 arg2 = (int) SWIG_AsInt(obj1);
6141 if (PyErr_Occurred()) SWIG_fail;
6142 {
6143 PyThreadState* __tstate = wxPyBeginAllowThreads();
6144 (arg1)->SetFirstItem(arg2);
6145
6146 wxPyEndAllowThreads(__tstate);
6147 if (PyErr_Occurred()) SWIG_fail;
6148 }
6149 Py_INCREF(Py_None); resultobj = Py_None;
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj;
6158 wxListBox *arg1 = (wxListBox *) 0 ;
6159 wxString *arg2 = 0 ;
6160 bool temp2 = False ;
6161 PyObject * obj0 = 0 ;
6162 PyObject * obj1 = 0 ;
6163 char *kwnames[] = {
6164 (char *) "self",(char *) "s", NULL
6165 };
6166
6167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6170 {
6171 arg2 = wxString_in_helper(obj1);
6172 if (arg2 == NULL) SWIG_fail;
6173 temp2 = True;
6174 }
6175 {
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 (arg1)->SetFirstItem((wxString const &)*arg2);
6178
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 Py_INCREF(Py_None); resultobj = Py_None;
6183 {
6184 if (temp2)
6185 delete arg2;
6186 }
6187 return resultobj;
6188 fail:
6189 {
6190 if (temp2)
6191 delete arg2;
6192 }
6193 return NULL;
6194 }
6195
6196
6197 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6198 PyObject *resultobj;
6199 wxListBox *arg1 = (wxListBox *) 0 ;
6200 int arg2 ;
6201 PyObject * obj0 = 0 ;
6202 PyObject * obj1 = 0 ;
6203 char *kwnames[] = {
6204 (char *) "self",(char *) "n", NULL
6205 };
6206
6207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6210 arg2 = (int) SWIG_AsInt(obj1);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 (arg1)->EnsureVisible(arg2);
6215
6216 wxPyEndAllowThreads(__tstate);
6217 if (PyErr_Occurred()) SWIG_fail;
6218 }
6219 Py_INCREF(Py_None); resultobj = Py_None;
6220 return resultobj;
6221 fail:
6222 return NULL;
6223 }
6224
6225
6226 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6227 PyObject *resultobj;
6228 wxListBox *arg1 = (wxListBox *) 0 ;
6229 wxString *arg2 = 0 ;
6230 bool temp2 = False ;
6231 PyObject * obj0 = 0 ;
6232 PyObject * obj1 = 0 ;
6233 char *kwnames[] = {
6234 (char *) "self",(char *) "s", NULL
6235 };
6236
6237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6240 {
6241 arg2 = wxString_in_helper(obj1);
6242 if (arg2 == NULL) SWIG_fail;
6243 temp2 = True;
6244 }
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6248
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 Py_INCREF(Py_None); resultobj = Py_None;
6253 {
6254 if (temp2)
6255 delete arg2;
6256 }
6257 return resultobj;
6258 fail:
6259 {
6260 if (temp2)
6261 delete arg2;
6262 }
6263 return NULL;
6264 }
6265
6266
6267 static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj;
6269 wxListBox *arg1 = (wxListBox *) 0 ;
6270 bool result;
6271 PyObject * obj0 = 0 ;
6272 char *kwnames[] = {
6273 (char *) "self", NULL
6274 };
6275
6276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6279 {
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 result = (bool)((wxListBox const *)arg1)->IsSorted();
6282
6283 wxPyEndAllowThreads(__tstate);
6284 if (PyErr_Occurred()) SWIG_fail;
6285 }
6286 {
6287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6288 }
6289 return resultobj;
6290 fail:
6291 return NULL;
6292 }
6293
6294
6295 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6296 PyObject *resultobj;
6297 wxListBox *arg1 = (wxListBox *) 0 ;
6298 int arg2 ;
6299 wxColour *arg3 = 0 ;
6300 wxColour temp3 ;
6301 PyObject * obj0 = 0 ;
6302 PyObject * obj1 = 0 ;
6303 PyObject * obj2 = 0 ;
6304 char *kwnames[] = {
6305 (char *) "self",(char *) "item",(char *) "c", NULL
6306 };
6307
6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6311 arg2 = (int) SWIG_AsInt(obj1);
6312 if (PyErr_Occurred()) SWIG_fail;
6313 {
6314 arg3 = &temp3;
6315 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6316 }
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6320
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 Py_INCREF(Py_None); resultobj = Py_None;
6325 return resultobj;
6326 fail:
6327 return NULL;
6328 }
6329
6330
6331 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj;
6333 wxListBox *arg1 = (wxListBox *) 0 ;
6334 int arg2 ;
6335 wxColour *arg3 = 0 ;
6336 wxColour temp3 ;
6337 PyObject * obj0 = 0 ;
6338 PyObject * obj1 = 0 ;
6339 PyObject * obj2 = 0 ;
6340 char *kwnames[] = {
6341 (char *) "self",(char *) "item",(char *) "c", NULL
6342 };
6343
6344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6347 arg2 = (int) SWIG_AsInt(obj1);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 {
6350 arg3 = &temp3;
6351 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6352 }
6353 {
6354 PyThreadState* __tstate = wxPyBeginAllowThreads();
6355 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6356
6357 wxPyEndAllowThreads(__tstate);
6358 if (PyErr_Occurred()) SWIG_fail;
6359 }
6360 Py_INCREF(Py_None); resultobj = Py_None;
6361 return resultobj;
6362 fail:
6363 return NULL;
6364 }
6365
6366
6367 static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6368 PyObject *resultobj;
6369 wxListBox *arg1 = (wxListBox *) 0 ;
6370 int arg2 ;
6371 wxFont *arg3 = 0 ;
6372 PyObject * obj0 = 0 ;
6373 PyObject * obj1 = 0 ;
6374 PyObject * obj2 = 0 ;
6375 char *kwnames[] = {
6376 (char *) "self",(char *) "item",(char *) "f", NULL
6377 };
6378
6379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6382 arg2 = (int) SWIG_AsInt(obj1);
6383 if (PyErr_Occurred()) SWIG_fail;
6384 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6385 SWIG_POINTER_EXCEPTION | 0)) == -1)
6386 SWIG_fail;
6387 if (arg3 == NULL) {
6388 PyErr_SetString(PyExc_TypeError,"null reference");
6389 SWIG_fail;
6390 }
6391 {
6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
6393 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6394
6395 wxPyEndAllowThreads(__tstate);
6396 if (PyErr_Occurred()) SWIG_fail;
6397 }
6398 Py_INCREF(Py_None); resultobj = Py_None;
6399 return resultobj;
6400 fail:
6401 return NULL;
6402 }
6403
6404
6405 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6406 PyObject *resultobj;
6407 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6408 wxVisualAttributes result;
6409 PyObject * obj0 = 0 ;
6410 char *kwnames[] = {
6411 (char *) "variant", NULL
6412 };
6413
6414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6415 if (obj0) {
6416 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
6417 if (PyErr_Occurred()) SWIG_fail;
6418 }
6419 {
6420 PyThreadState* __tstate = wxPyBeginAllowThreads();
6421 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6422
6423 wxPyEndAllowThreads(__tstate);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 {
6427 wxVisualAttributes * resultptr;
6428 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6429 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6430 }
6431 return resultobj;
6432 fail:
6433 return NULL;
6434 }
6435
6436
6437 static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
6438 PyObject *obj;
6439 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6440 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6441 Py_INCREF(obj);
6442 return Py_BuildValue((char *)"");
6443 }
6444 static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6445 PyObject *resultobj;
6446 wxWindow *arg1 = (wxWindow *) 0 ;
6447 int arg2 ;
6448 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6449 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6450 wxSize const &arg4_defvalue = wxDefaultSize ;
6451 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6452 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6453 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6454 long arg6 = (long) 0 ;
6455 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6456 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6457 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6458 wxString *arg8 = (wxString *) &arg8_defvalue ;
6459 wxCheckListBox *result;
6460 wxPoint temp3 ;
6461 wxSize temp4 ;
6462 bool temp5 = False ;
6463 bool temp8 = False ;
6464 PyObject * obj0 = 0 ;
6465 PyObject * obj1 = 0 ;
6466 PyObject * obj2 = 0 ;
6467 PyObject * obj3 = 0 ;
6468 PyObject * obj4 = 0 ;
6469 PyObject * obj5 = 0 ;
6470 PyObject * obj6 = 0 ;
6471 PyObject * obj7 = 0 ;
6472 char *kwnames[] = {
6473 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6474 };
6475
6476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6479 arg2 = (int) SWIG_AsInt(obj1);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 if (obj2) {
6482 {
6483 arg3 = &temp3;
6484 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6485 }
6486 }
6487 if (obj3) {
6488 {
6489 arg4 = &temp4;
6490 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6491 }
6492 }
6493 if (obj4) {
6494 {
6495 if (! PySequence_Check(obj4)) {
6496 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6497 SWIG_fail;
6498 }
6499 arg5 = new wxArrayString;
6500 temp5 = True;
6501 int i, len=PySequence_Length(obj4);
6502 for (i=0; i<len; i++) {
6503 PyObject* item = PySequence_GetItem(obj4, i);
6504 #if wxUSE_UNICODE
6505 PyObject* str = PyObject_Unicode(item);
6506 #else
6507 PyObject* str = PyObject_Str(item);
6508 #endif
6509 if (PyErr_Occurred()) SWIG_fail;
6510 arg5->Add(Py2wxString(str));
6511 Py_DECREF(item);
6512 Py_DECREF(str);
6513 }
6514 }
6515 }
6516 if (obj5) {
6517 arg6 = (long) SWIG_AsLong(obj5);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 if (obj6) {
6521 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6522 SWIG_POINTER_EXCEPTION | 0)) == -1)
6523 SWIG_fail;
6524 if (arg7 == NULL) {
6525 PyErr_SetString(PyExc_TypeError,"null reference");
6526 SWIG_fail;
6527 }
6528 }
6529 if (obj7) {
6530 {
6531 arg8 = wxString_in_helper(obj7);
6532 if (arg8 == NULL) SWIG_fail;
6533 temp8 = True;
6534 }
6535 }
6536 {
6537 PyThreadState* __tstate = wxPyBeginAllowThreads();
6538 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6539
6540 wxPyEndAllowThreads(__tstate);
6541 if (PyErr_Occurred()) SWIG_fail;
6542 }
6543 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6544 {
6545 if (temp5) delete arg5;
6546 }
6547 {
6548 if (temp8)
6549 delete arg8;
6550 }
6551 return resultobj;
6552 fail:
6553 {
6554 if (temp5) delete arg5;
6555 }
6556 {
6557 if (temp8)
6558 delete arg8;
6559 }
6560 return NULL;
6561 }
6562
6563
6564 static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6565 PyObject *resultobj;
6566 wxCheckListBox *result;
6567 char *kwnames[] = {
6568 NULL
6569 };
6570
6571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 result = (wxCheckListBox *)new wxCheckListBox();
6575
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6587 PyObject *resultobj;
6588 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6589 wxWindow *arg2 = (wxWindow *) 0 ;
6590 int arg3 ;
6591 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6592 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6593 wxSize const &arg5_defvalue = wxDefaultSize ;
6594 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6595 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6596 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6597 long arg7 = (long) 0 ;
6598 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6599 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6600 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6601 wxString *arg9 = (wxString *) &arg9_defvalue ;
6602 bool result;
6603 wxPoint temp4 ;
6604 wxSize temp5 ;
6605 bool temp6 = False ;
6606 bool temp9 = False ;
6607 PyObject * obj0 = 0 ;
6608 PyObject * obj1 = 0 ;
6609 PyObject * obj2 = 0 ;
6610 PyObject * obj3 = 0 ;
6611 PyObject * obj4 = 0 ;
6612 PyObject * obj5 = 0 ;
6613 PyObject * obj6 = 0 ;
6614 PyObject * obj7 = 0 ;
6615 PyObject * obj8 = 0 ;
6616 char *kwnames[] = {
6617 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6618 };
6619
6620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6623 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6625 arg3 = (int) SWIG_AsInt(obj2);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 if (obj3) {
6628 {
6629 arg4 = &temp4;
6630 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6631 }
6632 }
6633 if (obj4) {
6634 {
6635 arg5 = &temp5;
6636 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6637 }
6638 }
6639 if (obj5) {
6640 {
6641 if (! PySequence_Check(obj5)) {
6642 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6643 SWIG_fail;
6644 }
6645 arg6 = new wxArrayString;
6646 temp6 = True;
6647 int i, len=PySequence_Length(obj5);
6648 for (i=0; i<len; i++) {
6649 PyObject* item = PySequence_GetItem(obj5, i);
6650 #if wxUSE_UNICODE
6651 PyObject* str = PyObject_Unicode(item);
6652 #else
6653 PyObject* str = PyObject_Str(item);
6654 #endif
6655 if (PyErr_Occurred()) SWIG_fail;
6656 arg6->Add(Py2wxString(str));
6657 Py_DECREF(item);
6658 Py_DECREF(str);
6659 }
6660 }
6661 }
6662 if (obj6) {
6663 arg7 = (long) SWIG_AsLong(obj6);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 if (obj7) {
6667 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6668 SWIG_POINTER_EXCEPTION | 0)) == -1)
6669 SWIG_fail;
6670 if (arg8 == NULL) {
6671 PyErr_SetString(PyExc_TypeError,"null reference");
6672 SWIG_fail;
6673 }
6674 }
6675 if (obj8) {
6676 {
6677 arg9 = wxString_in_helper(obj8);
6678 if (arg9 == NULL) SWIG_fail;
6679 temp9 = True;
6680 }
6681 }
6682 {
6683 PyThreadState* __tstate = wxPyBeginAllowThreads();
6684 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6685
6686 wxPyEndAllowThreads(__tstate);
6687 if (PyErr_Occurred()) SWIG_fail;
6688 }
6689 {
6690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6691 }
6692 {
6693 if (temp6) delete arg6;
6694 }
6695 {
6696 if (temp9)
6697 delete arg9;
6698 }
6699 return resultobj;
6700 fail:
6701 {
6702 if (temp6) delete arg6;
6703 }
6704 {
6705 if (temp9)
6706 delete arg9;
6707 }
6708 return NULL;
6709 }
6710
6711
6712 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6713 PyObject *resultobj;
6714 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6715 int arg2 ;
6716 bool result;
6717 PyObject * obj0 = 0 ;
6718 PyObject * obj1 = 0 ;
6719 char *kwnames[] = {
6720 (char *) "self",(char *) "index", NULL
6721 };
6722
6723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6726 arg2 = (int) SWIG_AsInt(obj1);
6727 if (PyErr_Occurred()) SWIG_fail;
6728 {
6729 PyThreadState* __tstate = wxPyBeginAllowThreads();
6730 result = (bool)(arg1)->IsChecked(arg2);
6731
6732 wxPyEndAllowThreads(__tstate);
6733 if (PyErr_Occurred()) SWIG_fail;
6734 }
6735 {
6736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6737 }
6738 return resultobj;
6739 fail:
6740 return NULL;
6741 }
6742
6743
6744 static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6745 PyObject *resultobj;
6746 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6747 int arg2 ;
6748 int arg3 = (int) True ;
6749 PyObject * obj0 = 0 ;
6750 PyObject * obj1 = 0 ;
6751 PyObject * obj2 = 0 ;
6752 char *kwnames[] = {
6753 (char *) "self",(char *) "index",(char *) "check", NULL
6754 };
6755
6756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6759 arg2 = (int) SWIG_AsInt(obj1);
6760 if (PyErr_Occurred()) SWIG_fail;
6761 if (obj2) {
6762 arg3 = (int) SWIG_AsInt(obj2);
6763 if (PyErr_Occurred()) SWIG_fail;
6764 }
6765 {
6766 PyThreadState* __tstate = wxPyBeginAllowThreads();
6767 (arg1)->Check(arg2,arg3);
6768
6769 wxPyEndAllowThreads(__tstate);
6770 if (PyErr_Occurred()) SWIG_fail;
6771 }
6772 Py_INCREF(Py_None); resultobj = Py_None;
6773 return resultobj;
6774 fail:
6775 return NULL;
6776 }
6777
6778
6779 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6780 PyObject *resultobj;
6781 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6782 int result;
6783 PyObject * obj0 = 0 ;
6784 char *kwnames[] = {
6785 (char *) "self", NULL
6786 };
6787
6788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
6789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6791 {
6792 PyThreadState* __tstate = wxPyBeginAllowThreads();
6793 result = (int)(arg1)->GetItemHeight();
6794
6795 wxPyEndAllowThreads(__tstate);
6796 if (PyErr_Occurred()) SWIG_fail;
6797 }
6798 resultobj = SWIG_FromInt((int)result);
6799 return resultobj;
6800 fail:
6801 return NULL;
6802 }
6803
6804
6805 static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6806 PyObject *resultobj;
6807 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6808 wxPoint *arg2 = 0 ;
6809 int result;
6810 wxPoint temp2 ;
6811 PyObject * obj0 = 0 ;
6812 PyObject * obj1 = 0 ;
6813 char *kwnames[] = {
6814 (char *) "self",(char *) "pt", NULL
6815 };
6816
6817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6820 {
6821 arg2 = &temp2;
6822 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6823 }
6824 {
6825 PyThreadState* __tstate = wxPyBeginAllowThreads();
6826 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6827
6828 wxPyEndAllowThreads(__tstate);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 }
6831 resultobj = SWIG_FromInt((int)result);
6832 return resultobj;
6833 fail:
6834 return NULL;
6835 }
6836
6837
6838 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6839 PyObject *resultobj;
6840 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6841 int arg2 ;
6842 int arg3 ;
6843 int result;
6844 PyObject * obj0 = 0 ;
6845 PyObject * obj1 = 0 ;
6846 PyObject * obj2 = 0 ;
6847 char *kwnames[] = {
6848 (char *) "self",(char *) "x",(char *) "y", NULL
6849 };
6850
6851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6854 arg2 = (int) SWIG_AsInt(obj1);
6855 if (PyErr_Occurred()) SWIG_fail;
6856 arg3 = (int) SWIG_AsInt(obj2);
6857 if (PyErr_Occurred()) SWIG_fail;
6858 {
6859 PyThreadState* __tstate = wxPyBeginAllowThreads();
6860 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6861
6862 wxPyEndAllowThreads(__tstate);
6863 if (PyErr_Occurred()) SWIG_fail;
6864 }
6865 resultobj = SWIG_FromInt((int)result);
6866 return resultobj;
6867 fail:
6868 return NULL;
6869 }
6870
6871
6872 static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6873 PyObject *obj;
6874 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6875 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6876 Py_INCREF(obj);
6877 return Py_BuildValue((char *)"");
6878 }
6879 static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6880 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6881 return 1;
6882 }
6883
6884
6885 static PyObject *_wrap_TextCtrlNameStr_get() {
6886 PyObject *pyobj;
6887
6888 {
6889 #if wxUSE_UNICODE
6890 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6891 #else
6892 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6893 #endif
6894 }
6895 return pyobj;
6896 }
6897
6898
6899 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6900 PyObject *resultobj;
6901 wxTextAttr *result;
6902
6903 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (wxTextAttr *)new wxTextAttr();
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6912 return resultobj;
6913 fail:
6914 return NULL;
6915 }
6916
6917
6918 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6919 PyObject *resultobj;
6920 wxColour *arg1 = 0 ;
6921 wxColour const &arg2_defvalue = wxNullColour ;
6922 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6923 wxFont const &arg3_defvalue = wxNullFont ;
6924 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6925 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6926 wxTextAttr *result;
6927 wxColour temp1 ;
6928 wxColour temp2 ;
6929 PyObject * obj0 = 0 ;
6930 PyObject * obj1 = 0 ;
6931 PyObject * obj2 = 0 ;
6932 PyObject * obj3 = 0 ;
6933
6934 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6935 {
6936 arg1 = &temp1;
6937 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6938 }
6939 if (obj1) {
6940 {
6941 arg2 = &temp2;
6942 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6943 }
6944 }
6945 if (obj2) {
6946 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6947 SWIG_POINTER_EXCEPTION | 0)) == -1)
6948 SWIG_fail;
6949 if (arg3 == NULL) {
6950 PyErr_SetString(PyExc_TypeError,"null reference");
6951 SWIG_fail;
6952 }
6953 }
6954 if (obj3) {
6955 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
6956 if (PyErr_Occurred()) SWIG_fail;
6957 }
6958 {
6959 PyThreadState* __tstate = wxPyBeginAllowThreads();
6960 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6961
6962 wxPyEndAllowThreads(__tstate);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 }
6965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6966 return resultobj;
6967 fail:
6968 return NULL;
6969 }
6970
6971
6972 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6973 int argc;
6974 PyObject *argv[5];
6975 int ii;
6976
6977 argc = PyObject_Length(args);
6978 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6979 argv[ii] = PyTuple_GetItem(args,ii);
6980 }
6981 if (argc == 0) {
6982 return _wrap_new_TextAttr__SWIG_0(self,args);
6983 }
6984 if ((argc >= 1) && (argc <= 4)) {
6985 int _v;
6986 {
6987 _v = wxColour_typecheck(argv[0]);
6988 }
6989 if (_v) {
6990 if (argc <= 1) {
6991 return _wrap_new_TextAttr__SWIG_1(self,args);
6992 }
6993 {
6994 _v = wxColour_typecheck(argv[1]);
6995 }
6996 if (_v) {
6997 if (argc <= 2) {
6998 return _wrap_new_TextAttr__SWIG_1(self,args);
6999 }
7000 {
7001 void *ptr;
7002 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
7003 _v = 0;
7004 PyErr_Clear();
7005 } else {
7006 _v = 1;
7007 }
7008 }
7009 if (_v) {
7010 if (argc <= 3) {
7011 return _wrap_new_TextAttr__SWIG_1(self,args);
7012 }
7013 _v = SWIG_CheckInt(argv[3]);
7014 if (_v) {
7015 return _wrap_new_TextAttr__SWIG_1(self,args);
7016 }
7017 }
7018 }
7019 }
7020 }
7021
7022 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
7023 return NULL;
7024 }
7025
7026
7027 static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7028 PyObject *resultobj;
7029 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7030 PyObject * obj0 = 0 ;
7031 char *kwnames[] = {
7032 (char *) "self", NULL
7033 };
7034
7035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7038 {
7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
7040 delete arg1;
7041
7042 wxPyEndAllowThreads(__tstate);
7043 if (PyErr_Occurred()) SWIG_fail;
7044 }
7045 Py_INCREF(Py_None); resultobj = Py_None;
7046 return resultobj;
7047 fail:
7048 return NULL;
7049 }
7050
7051
7052 static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
7053 PyObject *resultobj;
7054 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7055 PyObject * obj0 = 0 ;
7056 char *kwnames[] = {
7057 (char *) "self", NULL
7058 };
7059
7060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7063 {
7064 PyThreadState* __tstate = wxPyBeginAllowThreads();
7065 (arg1)->Init();
7066
7067 wxPyEndAllowThreads(__tstate);
7068 if (PyErr_Occurred()) SWIG_fail;
7069 }
7070 Py_INCREF(Py_None); resultobj = Py_None;
7071 return resultobj;
7072 fail:
7073 return NULL;
7074 }
7075
7076
7077 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7078 PyObject *resultobj;
7079 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7080 wxColour *arg2 = 0 ;
7081 wxColour temp2 ;
7082 PyObject * obj0 = 0 ;
7083 PyObject * obj1 = 0 ;
7084 char *kwnames[] = {
7085 (char *) "self",(char *) "colText", NULL
7086 };
7087
7088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7091 {
7092 arg2 = &temp2;
7093 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7094 }
7095 {
7096 PyThreadState* __tstate = wxPyBeginAllowThreads();
7097 (arg1)->SetTextColour((wxColour const &)*arg2);
7098
7099 wxPyEndAllowThreads(__tstate);
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 Py_INCREF(Py_None); resultobj = Py_None;
7103 return resultobj;
7104 fail:
7105 return NULL;
7106 }
7107
7108
7109 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7110 PyObject *resultobj;
7111 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7112 wxColour *arg2 = 0 ;
7113 wxColour temp2 ;
7114 PyObject * obj0 = 0 ;
7115 PyObject * obj1 = 0 ;
7116 char *kwnames[] = {
7117 (char *) "self",(char *) "colBack", NULL
7118 };
7119
7120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7123 {
7124 arg2 = &temp2;
7125 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7126 }
7127 {
7128 PyThreadState* __tstate = wxPyBeginAllowThreads();
7129 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7130
7131 wxPyEndAllowThreads(__tstate);
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 Py_INCREF(Py_None); resultobj = Py_None;
7135 return resultobj;
7136 fail:
7137 return NULL;
7138 }
7139
7140
7141 static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7142 PyObject *resultobj;
7143 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7144 wxFont *arg2 = 0 ;
7145 long arg3 = (long) wxTEXT_ATTR_FONT ;
7146 PyObject * obj0 = 0 ;
7147 PyObject * obj1 = 0 ;
7148 PyObject * obj2 = 0 ;
7149 char *kwnames[] = {
7150 (char *) "self",(char *) "font",(char *) "flags", NULL
7151 };
7152
7153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7156 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7157 SWIG_POINTER_EXCEPTION | 0)) == -1)
7158 SWIG_fail;
7159 if (arg2 == NULL) {
7160 PyErr_SetString(PyExc_TypeError,"null reference");
7161 SWIG_fail;
7162 }
7163 if (obj2) {
7164 arg3 = (long) SWIG_AsLong(obj2);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 }
7167 {
7168 PyThreadState* __tstate = wxPyBeginAllowThreads();
7169 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7170
7171 wxPyEndAllowThreads(__tstate);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 Py_INCREF(Py_None); resultobj = Py_None;
7175 return resultobj;
7176 fail:
7177 return NULL;
7178 }
7179
7180
7181 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7182 PyObject *resultobj;
7183 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7184 int arg2 ;
7185 PyObject * obj0 = 0 ;
7186 PyObject * obj1 = 0 ;
7187 char *kwnames[] = {
7188 (char *) "self",(char *) "alignment", NULL
7189 };
7190
7191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7194 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 {
7197 PyThreadState* __tstate = wxPyBeginAllowThreads();
7198 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7199
7200 wxPyEndAllowThreads(__tstate);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 Py_INCREF(Py_None); resultobj = Py_None;
7204 return resultobj;
7205 fail:
7206 return NULL;
7207 }
7208
7209
7210 static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7211 PyObject *resultobj;
7212 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7213 wxArrayInt *arg2 = 0 ;
7214 bool temp2 = False ;
7215 PyObject * obj0 = 0 ;
7216 PyObject * obj1 = 0 ;
7217 char *kwnames[] = {
7218 (char *) "self",(char *) "tabs", NULL
7219 };
7220
7221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7224 {
7225 if (! PySequence_Check(obj1)) {
7226 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7227 SWIG_fail;
7228 }
7229 arg2 = new wxArrayInt;
7230 temp2 = True;
7231 int i, len=PySequence_Length(obj1);
7232 for (i=0; i<len; i++) {
7233 PyObject* item = PySequence_GetItem(obj1, i);
7234 PyObject* number = PyNumber_Int(item);
7235 arg2->Add(PyInt_AS_LONG(number));
7236 Py_DECREF(item);
7237 Py_DECREF(number);
7238 }
7239 }
7240 {
7241 PyThreadState* __tstate = wxPyBeginAllowThreads();
7242 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7243
7244 wxPyEndAllowThreads(__tstate);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 }
7247 Py_INCREF(Py_None); resultobj = Py_None;
7248 {
7249 if (temp2) delete arg2;
7250 }
7251 return resultobj;
7252 fail:
7253 {
7254 if (temp2) delete arg2;
7255 }
7256 return NULL;
7257 }
7258
7259
7260 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7261 PyObject *resultobj;
7262 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7263 int arg2 ;
7264 int arg3 = (int) 0 ;
7265 PyObject * obj0 = 0 ;
7266 PyObject * obj1 = 0 ;
7267 PyObject * obj2 = 0 ;
7268 char *kwnames[] = {
7269 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7270 };
7271
7272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7275 arg2 = (int) SWIG_AsInt(obj1);
7276 if (PyErr_Occurred()) SWIG_fail;
7277 if (obj2) {
7278 arg3 = (int) SWIG_AsInt(obj2);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 }
7281 {
7282 PyThreadState* __tstate = wxPyBeginAllowThreads();
7283 (arg1)->SetLeftIndent(arg2,arg3);
7284
7285 wxPyEndAllowThreads(__tstate);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 Py_INCREF(Py_None); resultobj = Py_None;
7289 return resultobj;
7290 fail:
7291 return NULL;
7292 }
7293
7294
7295 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7296 PyObject *resultobj;
7297 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7298 int arg2 ;
7299 PyObject * obj0 = 0 ;
7300 PyObject * obj1 = 0 ;
7301 char *kwnames[] = {
7302 (char *) "self",(char *) "indent", NULL
7303 };
7304
7305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7308 arg2 = (int) SWIG_AsInt(obj1);
7309 if (PyErr_Occurred()) SWIG_fail;
7310 {
7311 PyThreadState* __tstate = wxPyBeginAllowThreads();
7312 (arg1)->SetRightIndent(arg2);
7313
7314 wxPyEndAllowThreads(__tstate);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 Py_INCREF(Py_None); resultobj = Py_None;
7318 return resultobj;
7319 fail:
7320 return NULL;
7321 }
7322
7323
7324 static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7325 PyObject *resultobj;
7326 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7327 long arg2 ;
7328 PyObject * obj0 = 0 ;
7329 PyObject * obj1 = 0 ;
7330 char *kwnames[] = {
7331 (char *) "self",(char *) "flags", NULL
7332 };
7333
7334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7337 arg2 = (long) SWIG_AsLong(obj1);
7338 if (PyErr_Occurred()) SWIG_fail;
7339 {
7340 PyThreadState* __tstate = wxPyBeginAllowThreads();
7341 (arg1)->SetFlags(arg2);
7342
7343 wxPyEndAllowThreads(__tstate);
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 Py_INCREF(Py_None); resultobj = Py_None;
7347 return resultobj;
7348 fail:
7349 return NULL;
7350 }
7351
7352
7353 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7354 PyObject *resultobj;
7355 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7356 bool result;
7357 PyObject * obj0 = 0 ;
7358 char *kwnames[] = {
7359 (char *) "self", NULL
7360 };
7361
7362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7365 {
7366 PyThreadState* __tstate = wxPyBeginAllowThreads();
7367 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7368
7369 wxPyEndAllowThreads(__tstate);
7370 if (PyErr_Occurred()) SWIG_fail;
7371 }
7372 {
7373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7374 }
7375 return resultobj;
7376 fail:
7377 return NULL;
7378 }
7379
7380
7381 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj;
7383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7384 bool result;
7385 PyObject * obj0 = 0 ;
7386 char *kwnames[] = {
7387 (char *) "self", NULL
7388 };
7389
7390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7393 {
7394 PyThreadState* __tstate = wxPyBeginAllowThreads();
7395 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7396
7397 wxPyEndAllowThreads(__tstate);
7398 if (PyErr_Occurred()) SWIG_fail;
7399 }
7400 {
7401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7402 }
7403 return resultobj;
7404 fail:
7405 return NULL;
7406 }
7407
7408
7409 static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7410 PyObject *resultobj;
7411 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7412 bool result;
7413 PyObject * obj0 = 0 ;
7414 char *kwnames[] = {
7415 (char *) "self", NULL
7416 };
7417
7418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7421 {
7422 PyThreadState* __tstate = wxPyBeginAllowThreads();
7423 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7424
7425 wxPyEndAllowThreads(__tstate);
7426 if (PyErr_Occurred()) SWIG_fail;
7427 }
7428 {
7429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7430 }
7431 return resultobj;
7432 fail:
7433 return NULL;
7434 }
7435
7436
7437 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7438 PyObject *resultobj;
7439 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7440 bool result;
7441 PyObject * obj0 = 0 ;
7442 char *kwnames[] = {
7443 (char *) "self", NULL
7444 };
7445
7446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7449 {
7450 PyThreadState* __tstate = wxPyBeginAllowThreads();
7451 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7452
7453 wxPyEndAllowThreads(__tstate);
7454 if (PyErr_Occurred()) SWIG_fail;
7455 }
7456 {
7457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7458 }
7459 return resultobj;
7460 fail:
7461 return NULL;
7462 }
7463
7464
7465 static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7466 PyObject *resultobj;
7467 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7468 bool result;
7469 PyObject * obj0 = 0 ;
7470 char *kwnames[] = {
7471 (char *) "self", NULL
7472 };
7473
7474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7477 {
7478 PyThreadState* __tstate = wxPyBeginAllowThreads();
7479 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7480
7481 wxPyEndAllowThreads(__tstate);
7482 if (PyErr_Occurred()) SWIG_fail;
7483 }
7484 {
7485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7486 }
7487 return resultobj;
7488 fail:
7489 return NULL;
7490 }
7491
7492
7493 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7494 PyObject *resultobj;
7495 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7496 bool result;
7497 PyObject * obj0 = 0 ;
7498 char *kwnames[] = {
7499 (char *) "self", NULL
7500 };
7501
7502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7505 {
7506 PyThreadState* __tstate = wxPyBeginAllowThreads();
7507 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7508
7509 wxPyEndAllowThreads(__tstate);
7510 if (PyErr_Occurred()) SWIG_fail;
7511 }
7512 {
7513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7514 }
7515 return resultobj;
7516 fail:
7517 return NULL;
7518 }
7519
7520
7521 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7522 PyObject *resultobj;
7523 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7524 bool result;
7525 PyObject * obj0 = 0 ;
7526 char *kwnames[] = {
7527 (char *) "self", NULL
7528 };
7529
7530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7533 {
7534 PyThreadState* __tstate = wxPyBeginAllowThreads();
7535 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7536
7537 wxPyEndAllowThreads(__tstate);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 {
7541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7542 }
7543 return resultobj;
7544 fail:
7545 return NULL;
7546 }
7547
7548
7549 static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
7550 PyObject *resultobj;
7551 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7552 long arg2 ;
7553 bool result;
7554 PyObject * obj0 = 0 ;
7555 PyObject * obj1 = 0 ;
7556 char *kwnames[] = {
7557 (char *) "self",(char *) "flag", NULL
7558 };
7559
7560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7563 arg2 = (long) SWIG_AsLong(obj1);
7564 if (PyErr_Occurred()) SWIG_fail;
7565 {
7566 PyThreadState* __tstate = wxPyBeginAllowThreads();
7567 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7568
7569 wxPyEndAllowThreads(__tstate);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 {
7573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7574 }
7575 return resultobj;
7576 fail:
7577 return NULL;
7578 }
7579
7580
7581 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7582 PyObject *resultobj;
7583 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7584 wxColour *result;
7585 PyObject * obj0 = 0 ;
7586 char *kwnames[] = {
7587 (char *) "self", NULL
7588 };
7589
7590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7593 {
7594 PyThreadState* __tstate = wxPyBeginAllowThreads();
7595 {
7596 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7597 result = (wxColour *) &_result_ref;
7598 }
7599
7600 wxPyEndAllowThreads(__tstate);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7604 return resultobj;
7605 fail:
7606 return NULL;
7607 }
7608
7609
7610 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7611 PyObject *resultobj;
7612 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7613 wxColour *result;
7614 PyObject * obj0 = 0 ;
7615 char *kwnames[] = {
7616 (char *) "self", NULL
7617 };
7618
7619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7622 {
7623 PyThreadState* __tstate = wxPyBeginAllowThreads();
7624 {
7625 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7626 result = (wxColour *) &_result_ref;
7627 }
7628
7629 wxPyEndAllowThreads(__tstate);
7630 if (PyErr_Occurred()) SWIG_fail;
7631 }
7632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7633 return resultobj;
7634 fail:
7635 return NULL;
7636 }
7637
7638
7639 static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj;
7641 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7642 wxFont *result;
7643 PyObject * obj0 = 0 ;
7644 char *kwnames[] = {
7645 (char *) "self", NULL
7646 };
7647
7648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7651 {
7652 PyThreadState* __tstate = wxPyBeginAllowThreads();
7653 {
7654 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7655 result = (wxFont *) &_result_ref;
7656 }
7657
7658 wxPyEndAllowThreads(__tstate);
7659 if (PyErr_Occurred()) SWIG_fail;
7660 }
7661 {
7662 wxFont* resultptr = new wxFont(*result);
7663 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7664 }
7665 return resultobj;
7666 fail:
7667 return NULL;
7668 }
7669
7670
7671 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7672 PyObject *resultobj;
7673 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7674 int result;
7675 PyObject * obj0 = 0 ;
7676 char *kwnames[] = {
7677 (char *) "self", NULL
7678 };
7679
7680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7683 {
7684 PyThreadState* __tstate = wxPyBeginAllowThreads();
7685 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7686
7687 wxPyEndAllowThreads(__tstate);
7688 if (PyErr_Occurred()) SWIG_fail;
7689 }
7690 resultobj = SWIG_FromInt((int)result);
7691 return resultobj;
7692 fail:
7693 return NULL;
7694 }
7695
7696
7697 static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7698 PyObject *resultobj;
7699 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7700 wxArrayInt *result;
7701 PyObject * obj0 = 0 ;
7702 char *kwnames[] = {
7703 (char *) "self", NULL
7704 };
7705
7706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7709 {
7710 PyThreadState* __tstate = wxPyBeginAllowThreads();
7711 {
7712 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7713 result = (wxArrayInt *) &_result_ref;
7714 }
7715
7716 wxPyEndAllowThreads(__tstate);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 {
7720 resultobj = PyList_New(0);
7721 size_t idx;
7722 for (idx = 0; idx < result->GetCount(); idx += 1) {
7723 PyObject* val = PyInt_FromLong( result->Item(idx) );
7724 PyList_Append(resultobj, val);
7725 Py_DECREF(val);
7726 }
7727 }
7728 return resultobj;
7729 fail:
7730 return NULL;
7731 }
7732
7733
7734 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7735 PyObject *resultobj;
7736 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7737 long result;
7738 PyObject * obj0 = 0 ;
7739 char *kwnames[] = {
7740 (char *) "self", NULL
7741 };
7742
7743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7746 {
7747 PyThreadState* __tstate = wxPyBeginAllowThreads();
7748 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7749
7750 wxPyEndAllowThreads(__tstate);
7751 if (PyErr_Occurred()) SWIG_fail;
7752 }
7753 resultobj = SWIG_FromLong((long)result);
7754 return resultobj;
7755 fail:
7756 return NULL;
7757 }
7758
7759
7760 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7761 PyObject *resultobj;
7762 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7763 long result;
7764 PyObject * obj0 = 0 ;
7765 char *kwnames[] = {
7766 (char *) "self", NULL
7767 };
7768
7769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
7770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7772 {
7773 PyThreadState* __tstate = wxPyBeginAllowThreads();
7774 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
7775
7776 wxPyEndAllowThreads(__tstate);
7777 if (PyErr_Occurred()) SWIG_fail;
7778 }
7779 resultobj = SWIG_FromLong((long)result);
7780 return resultobj;
7781 fail:
7782 return NULL;
7783 }
7784
7785
7786 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7787 PyObject *resultobj;
7788 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7789 long result;
7790 PyObject * obj0 = 0 ;
7791 char *kwnames[] = {
7792 (char *) "self", NULL
7793 };
7794
7795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7798 {
7799 PyThreadState* __tstate = wxPyBeginAllowThreads();
7800 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7801
7802 wxPyEndAllowThreads(__tstate);
7803 if (PyErr_Occurred()) SWIG_fail;
7804 }
7805 resultobj = SWIG_FromLong((long)result);
7806 return resultobj;
7807 fail:
7808 return NULL;
7809 }
7810
7811
7812 static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7813 PyObject *resultobj;
7814 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7815 long result;
7816 PyObject * obj0 = 0 ;
7817 char *kwnames[] = {
7818 (char *) "self", NULL
7819 };
7820
7821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7824 {
7825 PyThreadState* __tstate = wxPyBeginAllowThreads();
7826 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7827
7828 wxPyEndAllowThreads(__tstate);
7829 if (PyErr_Occurred()) SWIG_fail;
7830 }
7831 resultobj = SWIG_FromLong((long)result);
7832 return resultobj;
7833 fail:
7834 return NULL;
7835 }
7836
7837
7838 static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7839 PyObject *resultobj;
7840 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7841 bool result;
7842 PyObject * obj0 = 0 ;
7843 char *kwnames[] = {
7844 (char *) "self", NULL
7845 };
7846
7847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7850 {
7851 PyThreadState* __tstate = wxPyBeginAllowThreads();
7852 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7853
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 {
7858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7859 }
7860 return resultobj;
7861 fail:
7862 return NULL;
7863 }
7864
7865
7866 static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7867 PyObject *resultobj;
7868 wxTextAttr *arg1 = 0 ;
7869 wxTextAttr *arg2 = 0 ;
7870 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7871 wxTextAttr result;
7872 PyObject * obj0 = 0 ;
7873 PyObject * obj1 = 0 ;
7874 PyObject * obj2 = 0 ;
7875 char *kwnames[] = {
7876 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7877 };
7878
7879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7881 SWIG_POINTER_EXCEPTION | 0)) == -1)
7882 SWIG_fail;
7883 if (arg1 == NULL) {
7884 PyErr_SetString(PyExc_TypeError,"null reference");
7885 SWIG_fail;
7886 }
7887 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7888 SWIG_POINTER_EXCEPTION | 0)) == -1)
7889 SWIG_fail;
7890 if (arg2 == NULL) {
7891 PyErr_SetString(PyExc_TypeError,"null reference");
7892 SWIG_fail;
7893 }
7894 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7896 {
7897 PyThreadState* __tstate = wxPyBeginAllowThreads();
7898 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7899
7900 wxPyEndAllowThreads(__tstate);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 {
7904 wxTextAttr * resultptr;
7905 resultptr = new wxTextAttr((wxTextAttr &) result);
7906 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7907 }
7908 return resultobj;
7909 fail:
7910 return NULL;
7911 }
7912
7913
7914 static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7915 PyObject *obj;
7916 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7917 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7918 Py_INCREF(obj);
7919 return Py_BuildValue((char *)"");
7920 }
7921 static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7922 PyObject *resultobj;
7923 wxWindow *arg1 = (wxWindow *) 0 ;
7924 int arg2 ;
7925 wxString const &arg3_defvalue = wxPyEmptyString ;
7926 wxString *arg3 = (wxString *) &arg3_defvalue ;
7927 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7928 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7929 wxSize const &arg5_defvalue = wxDefaultSize ;
7930 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7931 long arg6 = (long) 0 ;
7932 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7933 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7934 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7935 wxString *arg8 = (wxString *) &arg8_defvalue ;
7936 wxTextCtrl *result;
7937 bool temp3 = False ;
7938 wxPoint temp4 ;
7939 wxSize temp5 ;
7940 bool temp8 = False ;
7941 PyObject * obj0 = 0 ;
7942 PyObject * obj1 = 0 ;
7943 PyObject * obj2 = 0 ;
7944 PyObject * obj3 = 0 ;
7945 PyObject * obj4 = 0 ;
7946 PyObject * obj5 = 0 ;
7947 PyObject * obj6 = 0 ;
7948 PyObject * obj7 = 0 ;
7949 char *kwnames[] = {
7950 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7951 };
7952
7953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7956 arg2 = (int) SWIG_AsInt(obj1);
7957 if (PyErr_Occurred()) SWIG_fail;
7958 if (obj2) {
7959 {
7960 arg3 = wxString_in_helper(obj2);
7961 if (arg3 == NULL) SWIG_fail;
7962 temp3 = True;
7963 }
7964 }
7965 if (obj3) {
7966 {
7967 arg4 = &temp4;
7968 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7969 }
7970 }
7971 if (obj4) {
7972 {
7973 arg5 = &temp5;
7974 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7975 }
7976 }
7977 if (obj5) {
7978 arg6 = (long) SWIG_AsLong(obj5);
7979 if (PyErr_Occurred()) SWIG_fail;
7980 }
7981 if (obj6) {
7982 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7983 SWIG_POINTER_EXCEPTION | 0)) == -1)
7984 SWIG_fail;
7985 if (arg7 == NULL) {
7986 PyErr_SetString(PyExc_TypeError,"null reference");
7987 SWIG_fail;
7988 }
7989 }
7990 if (obj7) {
7991 {
7992 arg8 = wxString_in_helper(obj7);
7993 if (arg8 == NULL) SWIG_fail;
7994 temp8 = True;
7995 }
7996 }
7997 {
7998 PyThreadState* __tstate = wxPyBeginAllowThreads();
7999 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8000
8001 wxPyEndAllowThreads(__tstate);
8002 if (PyErr_Occurred()) SWIG_fail;
8003 }
8004 {
8005 resultobj = wxPyMake_wxObject(result);
8006 }
8007 {
8008 if (temp3)
8009 delete arg3;
8010 }
8011 {
8012 if (temp8)
8013 delete arg8;
8014 }
8015 return resultobj;
8016 fail:
8017 {
8018 if (temp3)
8019 delete arg3;
8020 }
8021 {
8022 if (temp8)
8023 delete arg8;
8024 }
8025 return NULL;
8026 }
8027
8028
8029 static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
8030 PyObject *resultobj;
8031 wxTextCtrl *result;
8032 char *kwnames[] = {
8033 NULL
8034 };
8035
8036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8037 {
8038 PyThreadState* __tstate = wxPyBeginAllowThreads();
8039 result = (wxTextCtrl *)new wxTextCtrl();
8040
8041 wxPyEndAllowThreads(__tstate);
8042 if (PyErr_Occurred()) SWIG_fail;
8043 }
8044 {
8045 resultobj = wxPyMake_wxObject(result);
8046 }
8047 return resultobj;
8048 fail:
8049 return NULL;
8050 }
8051
8052
8053 static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8054 PyObject *resultobj;
8055 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8056 wxWindow *arg2 = (wxWindow *) 0 ;
8057 int arg3 ;
8058 wxString const &arg4_defvalue = wxPyEmptyString ;
8059 wxString *arg4 = (wxString *) &arg4_defvalue ;
8060 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8061 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8062 wxSize const &arg6_defvalue = wxDefaultSize ;
8063 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8064 long arg7 = (long) 0 ;
8065 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8066 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8067 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8068 wxString *arg9 = (wxString *) &arg9_defvalue ;
8069 bool result;
8070 bool temp4 = False ;
8071 wxPoint temp5 ;
8072 wxSize temp6 ;
8073 bool temp9 = False ;
8074 PyObject * obj0 = 0 ;
8075 PyObject * obj1 = 0 ;
8076 PyObject * obj2 = 0 ;
8077 PyObject * obj3 = 0 ;
8078 PyObject * obj4 = 0 ;
8079 PyObject * obj5 = 0 ;
8080 PyObject * obj6 = 0 ;
8081 PyObject * obj7 = 0 ;
8082 PyObject * obj8 = 0 ;
8083 char *kwnames[] = {
8084 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8085 };
8086
8087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8090 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8092 arg3 = (int) SWIG_AsInt(obj2);
8093 if (PyErr_Occurred()) SWIG_fail;
8094 if (obj3) {
8095 {
8096 arg4 = wxString_in_helper(obj3);
8097 if (arg4 == NULL) SWIG_fail;
8098 temp4 = True;
8099 }
8100 }
8101 if (obj4) {
8102 {
8103 arg5 = &temp5;
8104 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8105 }
8106 }
8107 if (obj5) {
8108 {
8109 arg6 = &temp6;
8110 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8111 }
8112 }
8113 if (obj6) {
8114 arg7 = (long) SWIG_AsLong(obj6);
8115 if (PyErr_Occurred()) SWIG_fail;
8116 }
8117 if (obj7) {
8118 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8119 SWIG_POINTER_EXCEPTION | 0)) == -1)
8120 SWIG_fail;
8121 if (arg8 == NULL) {
8122 PyErr_SetString(PyExc_TypeError,"null reference");
8123 SWIG_fail;
8124 }
8125 }
8126 if (obj8) {
8127 {
8128 arg9 = wxString_in_helper(obj8);
8129 if (arg9 == NULL) SWIG_fail;
8130 temp9 = True;
8131 }
8132 }
8133 {
8134 PyThreadState* __tstate = wxPyBeginAllowThreads();
8135 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8136
8137 wxPyEndAllowThreads(__tstate);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 {
8141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8142 }
8143 {
8144 if (temp4)
8145 delete arg4;
8146 }
8147 {
8148 if (temp9)
8149 delete arg9;
8150 }
8151 return resultobj;
8152 fail:
8153 {
8154 if (temp4)
8155 delete arg4;
8156 }
8157 {
8158 if (temp9)
8159 delete arg9;
8160 }
8161 return NULL;
8162 }
8163
8164
8165 static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8166 PyObject *resultobj;
8167 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8168 wxString result;
8169 PyObject * obj0 = 0 ;
8170 char *kwnames[] = {
8171 (char *) "self", NULL
8172 };
8173
8174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8177 {
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 result = ((wxTextCtrl const *)arg1)->GetValue();
8180
8181 wxPyEndAllowThreads(__tstate);
8182 if (PyErr_Occurred()) SWIG_fail;
8183 }
8184 {
8185 #if wxUSE_UNICODE
8186 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8187 #else
8188 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8189 #endif
8190 }
8191 return resultobj;
8192 fail:
8193 return NULL;
8194 }
8195
8196
8197 static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8198 PyObject *resultobj;
8199 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8200 wxString *arg2 = 0 ;
8201 bool temp2 = False ;
8202 PyObject * obj0 = 0 ;
8203 PyObject * obj1 = 0 ;
8204 char *kwnames[] = {
8205 (char *) "self",(char *) "value", NULL
8206 };
8207
8208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8211 {
8212 arg2 = wxString_in_helper(obj1);
8213 if (arg2 == NULL) SWIG_fail;
8214 temp2 = True;
8215 }
8216 {
8217 PyThreadState* __tstate = wxPyBeginAllowThreads();
8218 (arg1)->SetValue((wxString const &)*arg2);
8219
8220 wxPyEndAllowThreads(__tstate);
8221 if (PyErr_Occurred()) SWIG_fail;
8222 }
8223 Py_INCREF(Py_None); resultobj = Py_None;
8224 {
8225 if (temp2)
8226 delete arg2;
8227 }
8228 return resultobj;
8229 fail:
8230 {
8231 if (temp2)
8232 delete arg2;
8233 }
8234 return NULL;
8235 }
8236
8237
8238 static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8239 PyObject *resultobj;
8240 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8241 long arg2 ;
8242 long arg3 ;
8243 wxString result;
8244 PyObject * obj0 = 0 ;
8245 PyObject * obj1 = 0 ;
8246 PyObject * obj2 = 0 ;
8247 char *kwnames[] = {
8248 (char *) "self",(char *) "from",(char *) "to", NULL
8249 };
8250
8251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8254 arg2 = (long) SWIG_AsLong(obj1);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 arg3 = (long) SWIG_AsLong(obj2);
8257 if (PyErr_Occurred()) SWIG_fail;
8258 {
8259 PyThreadState* __tstate = wxPyBeginAllowThreads();
8260 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8261
8262 wxPyEndAllowThreads(__tstate);
8263 if (PyErr_Occurred()) SWIG_fail;
8264 }
8265 {
8266 #if wxUSE_UNICODE
8267 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8268 #else
8269 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8270 #endif
8271 }
8272 return resultobj;
8273 fail:
8274 return NULL;
8275 }
8276
8277
8278 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8279 PyObject *resultobj;
8280 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8281 long arg2 ;
8282 int result;
8283 PyObject * obj0 = 0 ;
8284 PyObject * obj1 = 0 ;
8285 char *kwnames[] = {
8286 (char *) "self",(char *) "lineNo", NULL
8287 };
8288
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8292 arg2 = (long) SWIG_AsLong(obj1);
8293 if (PyErr_Occurred()) SWIG_fail;
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 resultobj = SWIG_FromInt((int)result);
8302 return resultobj;
8303 fail:
8304 return NULL;
8305 }
8306
8307
8308 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
8309 PyObject *resultobj;
8310 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8311 long arg2 ;
8312 wxString result;
8313 PyObject * obj0 = 0 ;
8314 PyObject * obj1 = 0 ;
8315 char *kwnames[] = {
8316 (char *) "self",(char *) "lineNo", NULL
8317 };
8318
8319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8322 arg2 = (long) SWIG_AsLong(obj1);
8323 if (PyErr_Occurred()) SWIG_fail;
8324 {
8325 PyThreadState* __tstate = wxPyBeginAllowThreads();
8326 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8327
8328 wxPyEndAllowThreads(__tstate);
8329 if (PyErr_Occurred()) SWIG_fail;
8330 }
8331 {
8332 #if wxUSE_UNICODE
8333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8334 #else
8335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8336 #endif
8337 }
8338 return resultobj;
8339 fail:
8340 return NULL;
8341 }
8342
8343
8344 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
8345 PyObject *resultobj;
8346 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8347 int result;
8348 PyObject * obj0 = 0 ;
8349 char *kwnames[] = {
8350 (char *) "self", NULL
8351 };
8352
8353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8356 {
8357 PyThreadState* __tstate = wxPyBeginAllowThreads();
8358 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8359
8360 wxPyEndAllowThreads(__tstate);
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 resultobj = SWIG_FromInt((int)result);
8364 return resultobj;
8365 fail:
8366 return NULL;
8367 }
8368
8369
8370 static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
8371 PyObject *resultobj;
8372 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8373 bool result;
8374 PyObject * obj0 = 0 ;
8375 char *kwnames[] = {
8376 (char *) "self", NULL
8377 };
8378
8379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8382 {
8383 PyThreadState* __tstate = wxPyBeginAllowThreads();
8384 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8385
8386 wxPyEndAllowThreads(__tstate);
8387 if (PyErr_Occurred()) SWIG_fail;
8388 }
8389 {
8390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8391 }
8392 return resultobj;
8393 fail:
8394 return NULL;
8395 }
8396
8397
8398 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8399 PyObject *resultobj;
8400 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8401 bool result;
8402 PyObject * obj0 = 0 ;
8403 char *kwnames[] = {
8404 (char *) "self", NULL
8405 };
8406
8407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8410 {
8411 PyThreadState* __tstate = wxPyBeginAllowThreads();
8412 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8413
8414 wxPyEndAllowThreads(__tstate);
8415 if (PyErr_Occurred()) SWIG_fail;
8416 }
8417 {
8418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8419 }
8420 return resultobj;
8421 fail:
8422 return NULL;
8423 }
8424
8425
8426 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8427 PyObject *resultobj;
8428 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8429 bool result;
8430 PyObject * obj0 = 0 ;
8431 char *kwnames[] = {
8432 (char *) "self", NULL
8433 };
8434
8435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8441
8442 wxPyEndAllowThreads(__tstate);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 {
8446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8447 }
8448 return resultobj;
8449 fail:
8450 return NULL;
8451 }
8452
8453
8454 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8455 PyObject *resultobj;
8456 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8457 bool result;
8458 PyObject * obj0 = 0 ;
8459 char *kwnames[] = {
8460 (char *) "self", NULL
8461 };
8462
8463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8466 {
8467 PyThreadState* __tstate = wxPyBeginAllowThreads();
8468 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8469
8470 wxPyEndAllowThreads(__tstate);
8471 if (PyErr_Occurred()) SWIG_fail;
8472 }
8473 {
8474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8475 }
8476 return resultobj;
8477 fail:
8478 return NULL;
8479 }
8480
8481
8482 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8483 PyObject *resultobj;
8484 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8485 long *arg2 = (long *) 0 ;
8486 long *arg3 = (long *) 0 ;
8487 long temp2 ;
8488 long temp3 ;
8489 PyObject * obj0 = 0 ;
8490 char *kwnames[] = {
8491 (char *) "self", NULL
8492 };
8493
8494 arg2 = &temp2;
8495 arg3 = &temp3;
8496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8499 {
8500 PyThreadState* __tstate = wxPyBeginAllowThreads();
8501 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8502
8503 wxPyEndAllowThreads(__tstate);
8504 if (PyErr_Occurred()) SWIG_fail;
8505 }
8506 Py_INCREF(Py_None); resultobj = Py_None;
8507 {
8508 PyObject *o = PyInt_FromLong((long) (*arg2));
8509 resultobj = t_output_helper(resultobj,o);
8510 }
8511 {
8512 PyObject *o = PyInt_FromLong((long) (*arg3));
8513 resultobj = t_output_helper(resultobj,o);
8514 }
8515 return resultobj;
8516 fail:
8517 return NULL;
8518 }
8519
8520
8521 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8522 PyObject *resultobj;
8523 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8524 wxString result;
8525 PyObject * obj0 = 0 ;
8526 char *kwnames[] = {
8527 (char *) "self", NULL
8528 };
8529
8530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8533 {
8534 PyThreadState* __tstate = wxPyBeginAllowThreads();
8535 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8536
8537 wxPyEndAllowThreads(__tstate);
8538 if (PyErr_Occurred()) SWIG_fail;
8539 }
8540 {
8541 #if wxUSE_UNICODE
8542 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8543 #else
8544 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8545 #endif
8546 }
8547 return resultobj;
8548 fail:
8549 return NULL;
8550 }
8551
8552
8553 static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8554 PyObject *resultobj;
8555 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8556 PyObject * obj0 = 0 ;
8557 char *kwnames[] = {
8558 (char *) "self", NULL
8559 };
8560
8561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8564 {
8565 PyThreadState* __tstate = wxPyBeginAllowThreads();
8566 (arg1)->Clear();
8567
8568 wxPyEndAllowThreads(__tstate);
8569 if (PyErr_Occurred()) SWIG_fail;
8570 }
8571 Py_INCREF(Py_None); resultobj = Py_None;
8572 return resultobj;
8573 fail:
8574 return NULL;
8575 }
8576
8577
8578 static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8579 PyObject *resultobj;
8580 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8581 long arg2 ;
8582 long arg3 ;
8583 wxString *arg4 = 0 ;
8584 bool temp4 = False ;
8585 PyObject * obj0 = 0 ;
8586 PyObject * obj1 = 0 ;
8587 PyObject * obj2 = 0 ;
8588 PyObject * obj3 = 0 ;
8589 char *kwnames[] = {
8590 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8591 };
8592
8593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8596 arg2 = (long) SWIG_AsLong(obj1);
8597 if (PyErr_Occurred()) SWIG_fail;
8598 arg3 = (long) SWIG_AsLong(obj2);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 {
8601 arg4 = wxString_in_helper(obj3);
8602 if (arg4 == NULL) SWIG_fail;
8603 temp4 = True;
8604 }
8605 {
8606 PyThreadState* __tstate = wxPyBeginAllowThreads();
8607 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8608
8609 wxPyEndAllowThreads(__tstate);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 }
8612 Py_INCREF(Py_None); resultobj = Py_None;
8613 {
8614 if (temp4)
8615 delete arg4;
8616 }
8617 return resultobj;
8618 fail:
8619 {
8620 if (temp4)
8621 delete arg4;
8622 }
8623 return NULL;
8624 }
8625
8626
8627 static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8628 PyObject *resultobj;
8629 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8630 long arg2 ;
8631 long arg3 ;
8632 PyObject * obj0 = 0 ;
8633 PyObject * obj1 = 0 ;
8634 PyObject * obj2 = 0 ;
8635 char *kwnames[] = {
8636 (char *) "self",(char *) "from",(char *) "to", NULL
8637 };
8638
8639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8642 arg2 = (long) SWIG_AsLong(obj1);
8643 if (PyErr_Occurred()) SWIG_fail;
8644 arg3 = (long) SWIG_AsLong(obj2);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 {
8647 PyThreadState* __tstate = wxPyBeginAllowThreads();
8648 (arg1)->Remove(arg2,arg3);
8649
8650 wxPyEndAllowThreads(__tstate);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 Py_INCREF(Py_None); resultobj = Py_None;
8654 return resultobj;
8655 fail:
8656 return NULL;
8657 }
8658
8659
8660 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8661 PyObject *resultobj;
8662 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8663 wxString *arg2 = 0 ;
8664 bool result;
8665 bool temp2 = False ;
8666 PyObject * obj0 = 0 ;
8667 PyObject * obj1 = 0 ;
8668 char *kwnames[] = {
8669 (char *) "self",(char *) "file", NULL
8670 };
8671
8672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8675 {
8676 arg2 = wxString_in_helper(obj1);
8677 if (arg2 == NULL) SWIG_fail;
8678 temp2 = True;
8679 }
8680 {
8681 PyThreadState* __tstate = wxPyBeginAllowThreads();
8682 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8683
8684 wxPyEndAllowThreads(__tstate);
8685 if (PyErr_Occurred()) SWIG_fail;
8686 }
8687 {
8688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8689 }
8690 {
8691 if (temp2)
8692 delete arg2;
8693 }
8694 return resultobj;
8695 fail:
8696 {
8697 if (temp2)
8698 delete arg2;
8699 }
8700 return NULL;
8701 }
8702
8703
8704 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8705 PyObject *resultobj;
8706 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8707 wxString const &arg2_defvalue = wxPyEmptyString ;
8708 wxString *arg2 = (wxString *) &arg2_defvalue ;
8709 bool result;
8710 bool temp2 = False ;
8711 PyObject * obj0 = 0 ;
8712 PyObject * obj1 = 0 ;
8713 char *kwnames[] = {
8714 (char *) "self",(char *) "file", NULL
8715 };
8716
8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8720 if (obj1) {
8721 {
8722 arg2 = wxString_in_helper(obj1);
8723 if (arg2 == NULL) SWIG_fail;
8724 temp2 = True;
8725 }
8726 }
8727 {
8728 PyThreadState* __tstate = wxPyBeginAllowThreads();
8729 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8730
8731 wxPyEndAllowThreads(__tstate);
8732 if (PyErr_Occurred()) SWIG_fail;
8733 }
8734 {
8735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8736 }
8737 {
8738 if (temp2)
8739 delete arg2;
8740 }
8741 return resultobj;
8742 fail:
8743 {
8744 if (temp2)
8745 delete arg2;
8746 }
8747 return NULL;
8748 }
8749
8750
8751 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8752 PyObject *resultobj;
8753 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8754 PyObject * obj0 = 0 ;
8755 char *kwnames[] = {
8756 (char *) "self", NULL
8757 };
8758
8759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8762 {
8763 PyThreadState* __tstate = wxPyBeginAllowThreads();
8764 (arg1)->MarkDirty();
8765
8766 wxPyEndAllowThreads(__tstate);
8767 if (PyErr_Occurred()) SWIG_fail;
8768 }
8769 Py_INCREF(Py_None); resultobj = Py_None;
8770 return resultobj;
8771 fail:
8772 return NULL;
8773 }
8774
8775
8776 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8777 PyObject *resultobj;
8778 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8779 PyObject * obj0 = 0 ;
8780 char *kwnames[] = {
8781 (char *) "self", NULL
8782 };
8783
8784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8787 {
8788 PyThreadState* __tstate = wxPyBeginAllowThreads();
8789 (arg1)->DiscardEdits();
8790
8791 wxPyEndAllowThreads(__tstate);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 Py_INCREF(Py_None); resultobj = Py_None;
8795 return resultobj;
8796 fail:
8797 return NULL;
8798 }
8799
8800
8801 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8802 PyObject *resultobj;
8803 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8804 unsigned long arg2 ;
8805 PyObject * obj0 = 0 ;
8806 PyObject * obj1 = 0 ;
8807 char *kwnames[] = {
8808 (char *) "self",(char *) "len", NULL
8809 };
8810
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8814 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8815 if (PyErr_Occurred()) SWIG_fail;
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 (arg1)->SetMaxLength(arg2);
8819
8820 wxPyEndAllowThreads(__tstate);
8821 if (PyErr_Occurred()) SWIG_fail;
8822 }
8823 Py_INCREF(Py_None); resultobj = Py_None;
8824 return resultobj;
8825 fail:
8826 return NULL;
8827 }
8828
8829
8830 static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8831 PyObject *resultobj;
8832 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8833 wxString *arg2 = 0 ;
8834 bool temp2 = False ;
8835 PyObject * obj0 = 0 ;
8836 PyObject * obj1 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self",(char *) "text", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8844 {
8845 arg2 = wxString_in_helper(obj1);
8846 if (arg2 == NULL) SWIG_fail;
8847 temp2 = True;
8848 }
8849 {
8850 PyThreadState* __tstate = wxPyBeginAllowThreads();
8851 (arg1)->WriteText((wxString const &)*arg2);
8852
8853 wxPyEndAllowThreads(__tstate);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 }
8856 Py_INCREF(Py_None); resultobj = Py_None;
8857 {
8858 if (temp2)
8859 delete arg2;
8860 }
8861 return resultobj;
8862 fail:
8863 {
8864 if (temp2)
8865 delete arg2;
8866 }
8867 return NULL;
8868 }
8869
8870
8871 static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8872 PyObject *resultobj;
8873 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8874 wxString *arg2 = 0 ;
8875 bool temp2 = False ;
8876 PyObject * obj0 = 0 ;
8877 PyObject * obj1 = 0 ;
8878 char *kwnames[] = {
8879 (char *) "self",(char *) "text", NULL
8880 };
8881
8882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8885 {
8886 arg2 = wxString_in_helper(obj1);
8887 if (arg2 == NULL) SWIG_fail;
8888 temp2 = True;
8889 }
8890 {
8891 PyThreadState* __tstate = wxPyBeginAllowThreads();
8892 (arg1)->AppendText((wxString const &)*arg2);
8893
8894 wxPyEndAllowThreads(__tstate);
8895 if (PyErr_Occurred()) SWIG_fail;
8896 }
8897 Py_INCREF(Py_None); resultobj = Py_None;
8898 {
8899 if (temp2)
8900 delete arg2;
8901 }
8902 return resultobj;
8903 fail:
8904 {
8905 if (temp2)
8906 delete arg2;
8907 }
8908 return NULL;
8909 }
8910
8911
8912 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8913 PyObject *resultobj;
8914 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8915 wxKeyEvent *arg2 = 0 ;
8916 bool result;
8917 PyObject * obj0 = 0 ;
8918 PyObject * obj1 = 0 ;
8919 char *kwnames[] = {
8920 (char *) "self",(char *) "event", NULL
8921 };
8922
8923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8926 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8927 SWIG_POINTER_EXCEPTION | 0)) == -1)
8928 SWIG_fail;
8929 if (arg2 == NULL) {
8930 PyErr_SetString(PyExc_TypeError,"null reference");
8931 SWIG_fail;
8932 }
8933 {
8934 PyThreadState* __tstate = wxPyBeginAllowThreads();
8935 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8936
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 {
8941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8942 }
8943 return resultobj;
8944 fail:
8945 return NULL;
8946 }
8947
8948
8949 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8950 PyObject *resultobj;
8951 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8952 long arg2 ;
8953 long arg3 ;
8954 wxTextAttr *arg4 = 0 ;
8955 bool result;
8956 PyObject * obj0 = 0 ;
8957 PyObject * obj1 = 0 ;
8958 PyObject * obj2 = 0 ;
8959 PyObject * obj3 = 0 ;
8960 char *kwnames[] = {
8961 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8962 };
8963
8964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8967 arg2 = (long) SWIG_AsLong(obj1);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 arg3 = (long) SWIG_AsLong(obj2);
8970 if (PyErr_Occurred()) SWIG_fail;
8971 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8972 SWIG_POINTER_EXCEPTION | 0)) == -1)
8973 SWIG_fail;
8974 if (arg4 == NULL) {
8975 PyErr_SetString(PyExc_TypeError,"null reference");
8976 SWIG_fail;
8977 }
8978 {
8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
8980 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8981
8982 wxPyEndAllowThreads(__tstate);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 }
8985 {
8986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8987 }
8988 return resultobj;
8989 fail:
8990 return NULL;
8991 }
8992
8993
8994 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8995 PyObject *resultobj;
8996 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8997 long arg2 ;
8998 wxTextAttr *arg3 = 0 ;
8999 bool result;
9000 PyObject * obj0 = 0 ;
9001 PyObject * obj1 = 0 ;
9002 PyObject * obj2 = 0 ;
9003 char *kwnames[] = {
9004 (char *) "self",(char *) "position",(char *) "style", NULL
9005 };
9006
9007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9010 arg2 = (long) SWIG_AsLong(obj1);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9013 SWIG_POINTER_EXCEPTION | 0)) == -1)
9014 SWIG_fail;
9015 if (arg3 == NULL) {
9016 PyErr_SetString(PyExc_TypeError,"null reference");
9017 SWIG_fail;
9018 }
9019 {
9020 PyThreadState* __tstate = wxPyBeginAllowThreads();
9021 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9022
9023 wxPyEndAllowThreads(__tstate);
9024 if (PyErr_Occurred()) SWIG_fail;
9025 }
9026 {
9027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9028 }
9029 return resultobj;
9030 fail:
9031 return NULL;
9032 }
9033
9034
9035 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9036 PyObject *resultobj;
9037 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9038 wxTextAttr *arg2 = 0 ;
9039 bool result;
9040 PyObject * obj0 = 0 ;
9041 PyObject * obj1 = 0 ;
9042 char *kwnames[] = {
9043 (char *) "self",(char *) "style", NULL
9044 };
9045
9046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9049 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9050 SWIG_POINTER_EXCEPTION | 0)) == -1)
9051 SWIG_fail;
9052 if (arg2 == NULL) {
9053 PyErr_SetString(PyExc_TypeError,"null reference");
9054 SWIG_fail;
9055 }
9056 {
9057 PyThreadState* __tstate = wxPyBeginAllowThreads();
9058 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9059
9060 wxPyEndAllowThreads(__tstate);
9061 if (PyErr_Occurred()) SWIG_fail;
9062 }
9063 {
9064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9065 }
9066 return resultobj;
9067 fail:
9068 return NULL;
9069 }
9070
9071
9072 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9073 PyObject *resultobj;
9074 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9075 wxTextAttr *result;
9076 PyObject * obj0 = 0 ;
9077 char *kwnames[] = {
9078 (char *) "self", NULL
9079 };
9080
9081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 {
9087 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9088 result = (wxTextAttr *) &_result_ref;
9089 }
9090
9091 wxPyEndAllowThreads(__tstate);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 }
9094 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9095 return resultobj;
9096 fail:
9097 return NULL;
9098 }
9099
9100
9101 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9102 PyObject *resultobj;
9103 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9104 long arg2 ;
9105 long arg3 ;
9106 long result;
9107 PyObject * obj0 = 0 ;
9108 PyObject * obj1 = 0 ;
9109 PyObject * obj2 = 0 ;
9110 char *kwnames[] = {
9111 (char *) "self",(char *) "x",(char *) "y", NULL
9112 };
9113
9114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9117 arg2 = (long) SWIG_AsLong(obj1);
9118 if (PyErr_Occurred()) SWIG_fail;
9119 arg3 = (long) SWIG_AsLong(obj2);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 {
9122 PyThreadState* __tstate = wxPyBeginAllowThreads();
9123 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9124
9125 wxPyEndAllowThreads(__tstate);
9126 if (PyErr_Occurred()) SWIG_fail;
9127 }
9128 resultobj = SWIG_FromLong((long)result);
9129 return resultobj;
9130 fail:
9131 return NULL;
9132 }
9133
9134
9135 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9136 PyObject *resultobj;
9137 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9138 long arg2 ;
9139 long *arg3 = (long *) 0 ;
9140 long *arg4 = (long *) 0 ;
9141 long temp3 ;
9142 long temp4 ;
9143 PyObject * obj0 = 0 ;
9144 PyObject * obj1 = 0 ;
9145 char *kwnames[] = {
9146 (char *) "self",(char *) "pos", NULL
9147 };
9148
9149 arg3 = &temp3;
9150 arg4 = &temp4;
9151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9154 arg2 = (long) SWIG_AsLong(obj1);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 {
9157 PyThreadState* __tstate = wxPyBeginAllowThreads();
9158 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9159
9160 wxPyEndAllowThreads(__tstate);
9161 if (PyErr_Occurred()) SWIG_fail;
9162 }
9163 Py_INCREF(Py_None); resultobj = Py_None;
9164 {
9165 PyObject *o = PyInt_FromLong((long) (*arg3));
9166 resultobj = t_output_helper(resultobj,o);
9167 }
9168 {
9169 PyObject *o = PyInt_FromLong((long) (*arg4));
9170 resultobj = t_output_helper(resultobj,o);
9171 }
9172 return resultobj;
9173 fail:
9174 return NULL;
9175 }
9176
9177
9178 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9179 PyObject *resultobj;
9180 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9181 long arg2 ;
9182 PyObject * obj0 = 0 ;
9183 PyObject * obj1 = 0 ;
9184 char *kwnames[] = {
9185 (char *) "self",(char *) "pos", NULL
9186 };
9187
9188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9191 arg2 = (long) SWIG_AsLong(obj1);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 {
9194 PyThreadState* __tstate = wxPyBeginAllowThreads();
9195 (arg1)->ShowPosition(arg2);
9196
9197 wxPyEndAllowThreads(__tstate);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 }
9200 Py_INCREF(Py_None); resultobj = Py_None;
9201 return resultobj;
9202 fail:
9203 return NULL;
9204 }
9205
9206
9207 static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
9208 PyObject *resultobj;
9209 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9210 wxPoint *arg2 = 0 ;
9211 long *arg3 = (long *) 0 ;
9212 long *arg4 = (long *) 0 ;
9213 int result;
9214 wxPoint temp2 ;
9215 long temp3 ;
9216 long temp4 ;
9217 PyObject * obj0 = 0 ;
9218 PyObject * obj1 = 0 ;
9219 char *kwnames[] = {
9220 (char *) "self",(char *) "pt", NULL
9221 };
9222
9223 arg3 = &temp3;
9224 arg4 = &temp4;
9225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9228 {
9229 arg2 = &temp2;
9230 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9231 }
9232 {
9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
9234 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9235
9236 wxPyEndAllowThreads(__tstate);
9237 if (PyErr_Occurred()) SWIG_fail;
9238 }
9239 resultobj = SWIG_FromInt((int)result);
9240 {
9241 PyObject *o = PyInt_FromLong((long) (*arg3));
9242 resultobj = t_output_helper(resultobj,o);
9243 }
9244 {
9245 PyObject *o = PyInt_FromLong((long) (*arg4));
9246 resultobj = t_output_helper(resultobj,o);
9247 }
9248 return resultobj;
9249 fail:
9250 return NULL;
9251 }
9252
9253
9254 static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
9255 PyObject *resultobj;
9256 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9257 PyObject * obj0 = 0 ;
9258 char *kwnames[] = {
9259 (char *) "self", NULL
9260 };
9261
9262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9265 {
9266 PyThreadState* __tstate = wxPyBeginAllowThreads();
9267 (arg1)->Copy();
9268
9269 wxPyEndAllowThreads(__tstate);
9270 if (PyErr_Occurred()) SWIG_fail;
9271 }
9272 Py_INCREF(Py_None); resultobj = Py_None;
9273 return resultobj;
9274 fail:
9275 return NULL;
9276 }
9277
9278
9279 static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
9280 PyObject *resultobj;
9281 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9282 PyObject * obj0 = 0 ;
9283 char *kwnames[] = {
9284 (char *) "self", NULL
9285 };
9286
9287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9290 {
9291 PyThreadState* __tstate = wxPyBeginAllowThreads();
9292 (arg1)->Cut();
9293
9294 wxPyEndAllowThreads(__tstate);
9295 if (PyErr_Occurred()) SWIG_fail;
9296 }
9297 Py_INCREF(Py_None); resultobj = Py_None;
9298 return resultobj;
9299 fail:
9300 return NULL;
9301 }
9302
9303
9304 static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
9305 PyObject *resultobj;
9306 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9307 PyObject * obj0 = 0 ;
9308 char *kwnames[] = {
9309 (char *) "self", NULL
9310 };
9311
9312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 (arg1)->Paste();
9318
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 Py_INCREF(Py_None); resultobj = Py_None;
9323 return resultobj;
9324 fail:
9325 return NULL;
9326 }
9327
9328
9329 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
9330 PyObject *resultobj;
9331 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9332 bool result;
9333 PyObject * obj0 = 0 ;
9334 char *kwnames[] = {
9335 (char *) "self", NULL
9336 };
9337
9338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9344
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) SWIG_fail;
9347 }
9348 {
9349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9350 }
9351 return resultobj;
9352 fail:
9353 return NULL;
9354 }
9355
9356
9357 static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
9358 PyObject *resultobj;
9359 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9360 bool result;
9361 PyObject * obj0 = 0 ;
9362 char *kwnames[] = {
9363 (char *) "self", NULL
9364 };
9365
9366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9372
9373 wxPyEndAllowThreads(__tstate);
9374 if (PyErr_Occurred()) SWIG_fail;
9375 }
9376 {
9377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9378 }
9379 return resultobj;
9380 fail:
9381 return NULL;
9382 }
9383
9384
9385 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
9386 PyObject *resultobj;
9387 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9388 bool result;
9389 PyObject * obj0 = 0 ;
9390 char *kwnames[] = {
9391 (char *) "self", NULL
9392 };
9393
9394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 {
9405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9406 }
9407 return resultobj;
9408 fail:
9409 return NULL;
9410 }
9411
9412
9413 static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
9414 PyObject *resultobj;
9415 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9416 PyObject * obj0 = 0 ;
9417 char *kwnames[] = {
9418 (char *) "self", NULL
9419 };
9420
9421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 (arg1)->Undo();
9427
9428 wxPyEndAllowThreads(__tstate);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 }
9431 Py_INCREF(Py_None); resultobj = Py_None;
9432 return resultobj;
9433 fail:
9434 return NULL;
9435 }
9436
9437
9438 static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj;
9440 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9441 PyObject * obj0 = 0 ;
9442 char *kwnames[] = {
9443 (char *) "self", NULL
9444 };
9445
9446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9449 {
9450 PyThreadState* __tstate = wxPyBeginAllowThreads();
9451 (arg1)->Redo();
9452
9453 wxPyEndAllowThreads(__tstate);
9454 if (PyErr_Occurred()) SWIG_fail;
9455 }
9456 Py_INCREF(Py_None); resultobj = Py_None;
9457 return resultobj;
9458 fail:
9459 return NULL;
9460 }
9461
9462
9463 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
9464 PyObject *resultobj;
9465 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9466 bool result;
9467 PyObject * obj0 = 0 ;
9468 char *kwnames[] = {
9469 (char *) "self", NULL
9470 };
9471
9472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9475 {
9476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9477 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9478
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 {
9483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9484 }
9485 return resultobj;
9486 fail:
9487 return NULL;
9488 }
9489
9490
9491 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
9492 PyObject *resultobj;
9493 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9494 bool result;
9495 PyObject * obj0 = 0 ;
9496 char *kwnames[] = {
9497 (char *) "self", NULL
9498 };
9499
9500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9503 {
9504 PyThreadState* __tstate = wxPyBeginAllowThreads();
9505 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9506
9507 wxPyEndAllowThreads(__tstate);
9508 if (PyErr_Occurred()) SWIG_fail;
9509 }
9510 {
9511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9512 }
9513 return resultobj;
9514 fail:
9515 return NULL;
9516 }
9517
9518
9519 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9520 PyObject *resultobj;
9521 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9522 long arg2 ;
9523 PyObject * obj0 = 0 ;
9524 PyObject * obj1 = 0 ;
9525 char *kwnames[] = {
9526 (char *) "self",(char *) "pos", NULL
9527 };
9528
9529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9532 arg2 = (long) SWIG_AsLong(obj1);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 {
9535 PyThreadState* __tstate = wxPyBeginAllowThreads();
9536 (arg1)->SetInsertionPoint(arg2);
9537
9538 wxPyEndAllowThreads(__tstate);
9539 if (PyErr_Occurred()) SWIG_fail;
9540 }
9541 Py_INCREF(Py_None); resultobj = Py_None;
9542 return resultobj;
9543 fail:
9544 return NULL;
9545 }
9546
9547
9548 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9549 PyObject *resultobj;
9550 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9551 PyObject * obj0 = 0 ;
9552 char *kwnames[] = {
9553 (char *) "self", NULL
9554 };
9555
9556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9559 {
9560 PyThreadState* __tstate = wxPyBeginAllowThreads();
9561 (arg1)->SetInsertionPointEnd();
9562
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 Py_INCREF(Py_None); resultobj = Py_None;
9567 return resultobj;
9568 fail:
9569 return NULL;
9570 }
9571
9572
9573 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9574 PyObject *resultobj;
9575 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9576 long result;
9577 PyObject * obj0 = 0 ;
9578 char *kwnames[] = {
9579 (char *) "self", NULL
9580 };
9581
9582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9585 {
9586 PyThreadState* __tstate = wxPyBeginAllowThreads();
9587 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9588
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 resultobj = SWIG_FromLong((long)result);
9593 return resultobj;
9594 fail:
9595 return NULL;
9596 }
9597
9598
9599 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9600 PyObject *resultobj;
9601 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9602 long result;
9603 PyObject * obj0 = 0 ;
9604 char *kwnames[] = {
9605 (char *) "self", NULL
9606 };
9607
9608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9611 {
9612 PyThreadState* __tstate = wxPyBeginAllowThreads();
9613 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9614
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) SWIG_fail;
9617 }
9618 resultobj = SWIG_FromLong((long)result);
9619 return resultobj;
9620 fail:
9621 return NULL;
9622 }
9623
9624
9625 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9626 PyObject *resultobj;
9627 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9628 long arg2 ;
9629 long arg3 ;
9630 PyObject * obj0 = 0 ;
9631 PyObject * obj1 = 0 ;
9632 PyObject * obj2 = 0 ;
9633 char *kwnames[] = {
9634 (char *) "self",(char *) "from",(char *) "to", NULL
9635 };
9636
9637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9640 arg2 = (long) SWIG_AsLong(obj1);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 arg3 = (long) SWIG_AsLong(obj2);
9643 if (PyErr_Occurred()) SWIG_fail;
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 (arg1)->SetSelection(arg2,arg3);
9647
9648 wxPyEndAllowThreads(__tstate);
9649 if (PyErr_Occurred()) SWIG_fail;
9650 }
9651 Py_INCREF(Py_None); resultobj = Py_None;
9652 return resultobj;
9653 fail:
9654 return NULL;
9655 }
9656
9657
9658 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9659 PyObject *resultobj;
9660 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9661 PyObject * obj0 = 0 ;
9662 char *kwnames[] = {
9663 (char *) "self", NULL
9664 };
9665
9666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 (arg1)->SelectAll();
9672
9673 wxPyEndAllowThreads(__tstate);
9674 if (PyErr_Occurred()) SWIG_fail;
9675 }
9676 Py_INCREF(Py_None); resultobj = Py_None;
9677 return resultobj;
9678 fail:
9679 return NULL;
9680 }
9681
9682
9683 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9684 PyObject *resultobj;
9685 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9686 bool arg2 ;
9687 PyObject * obj0 = 0 ;
9688 PyObject * obj1 = 0 ;
9689 char *kwnames[] = {
9690 (char *) "self",(char *) "editable", NULL
9691 };
9692
9693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9696 arg2 = (bool) SWIG_AsBool(obj1);
9697 if (PyErr_Occurred()) SWIG_fail;
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 (arg1)->SetEditable(arg2);
9701
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 Py_INCREF(Py_None); resultobj = Py_None;
9706 return resultobj;
9707 fail:
9708 return NULL;
9709 }
9710
9711
9712 static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
9713 PyObject *resultobj;
9714 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9715 bool arg2 = (bool) True ;
9716 bool result;
9717 PyObject * obj0 = 0 ;
9718 PyObject * obj1 = 0 ;
9719 char *kwnames[] = {
9720 (char *) "self",(char *) "show", NULL
9721 };
9722
9723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail;
9724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9726 if (obj1) {
9727 arg2 = (bool) SWIG_AsBool(obj1);
9728 if (PyErr_Occurred()) SWIG_fail;
9729 }
9730 {
9731 PyThreadState* __tstate = wxPyBeginAllowThreads();
9732 result = (bool)(arg1)->ShowNativeCaret(arg2);
9733
9734 wxPyEndAllowThreads(__tstate);
9735 if (PyErr_Occurred()) SWIG_fail;
9736 }
9737 {
9738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9739 }
9740 return resultobj;
9741 fail:
9742 return NULL;
9743 }
9744
9745
9746 static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
9747 PyObject *resultobj;
9748 wxTextCtrl *arg1 = (wxTextCtrl *) 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:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail;
9756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9758 {
9759 PyThreadState* __tstate = wxPyBeginAllowThreads();
9760 result = (bool)(arg1)->HideNativeCaret();
9761
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 {
9766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9767 }
9768 return resultobj;
9769 fail:
9770 return NULL;
9771 }
9772
9773
9774 static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9775 PyObject *resultobj;
9776 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9777 wxString *arg2 = 0 ;
9778 bool temp2 = False ;
9779 PyObject * obj0 = 0 ;
9780 PyObject * obj1 = 0 ;
9781 char *kwnames[] = {
9782 (char *) "self",(char *) "text", NULL
9783 };
9784
9785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9788 {
9789 arg2 = wxString_in_helper(obj1);
9790 if (arg2 == NULL) SWIG_fail;
9791 temp2 = True;
9792 }
9793 {
9794 PyThreadState* __tstate = wxPyBeginAllowThreads();
9795 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9796
9797 wxPyEndAllowThreads(__tstate);
9798 if (PyErr_Occurred()) SWIG_fail;
9799 }
9800 Py_INCREF(Py_None); resultobj = Py_None;
9801 {
9802 if (temp2)
9803 delete arg2;
9804 }
9805 return resultobj;
9806 fail:
9807 {
9808 if (temp2)
9809 delete arg2;
9810 }
9811 return NULL;
9812 }
9813
9814
9815 static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9816 PyObject *resultobj;
9817 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9818 long arg2 ;
9819 long arg3 ;
9820 wxString result;
9821 PyObject * obj0 = 0 ;
9822 PyObject * obj1 = 0 ;
9823 PyObject * obj2 = 0 ;
9824 char *kwnames[] = {
9825 (char *) "self",(char *) "from",(char *) "to", NULL
9826 };
9827
9828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9831 arg2 = (long) SWIG_AsLong(obj1);
9832 if (PyErr_Occurred()) SWIG_fail;
9833 arg3 = (long) SWIG_AsLong(obj2);
9834 if (PyErr_Occurred()) SWIG_fail;
9835 {
9836 PyThreadState* __tstate = wxPyBeginAllowThreads();
9837 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9838
9839 wxPyEndAllowThreads(__tstate);
9840 if (PyErr_Occurred()) SWIG_fail;
9841 }
9842 {
9843 #if wxUSE_UNICODE
9844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9845 #else
9846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9847 #endif
9848 }
9849 return resultobj;
9850 fail:
9851 return NULL;
9852 }
9853
9854
9855 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
9856 PyObject *resultobj;
9857 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
9858 wxVisualAttributes result;
9859 PyObject * obj0 = 0 ;
9860 char *kwnames[] = {
9861 (char *) "variant", NULL
9862 };
9863
9864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
9865 if (obj0) {
9866 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 {
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
9872
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) SWIG_fail;
9875 }
9876 {
9877 wxVisualAttributes * resultptr;
9878 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
9879 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
9880 }
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9888 PyObject *obj;
9889 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9890 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9891 Py_INCREF(obj);
9892 return Py_BuildValue((char *)"");
9893 }
9894 static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9895 PyObject *resultobj;
9896 int arg1 ;
9897 wxMouseEvent *arg2 = 0 ;
9898 long arg3 ;
9899 long arg4 ;
9900 wxTextUrlEvent *result;
9901 PyObject * obj0 = 0 ;
9902 PyObject * obj1 = 0 ;
9903 PyObject * obj2 = 0 ;
9904 PyObject * obj3 = 0 ;
9905 char *kwnames[] = {
9906 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9907 };
9908
9909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9910 arg1 = (int) SWIG_AsInt(obj0);
9911 if (PyErr_Occurred()) SWIG_fail;
9912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9913 SWIG_POINTER_EXCEPTION | 0)) == -1)
9914 SWIG_fail;
9915 if (arg2 == NULL) {
9916 PyErr_SetString(PyExc_TypeError,"null reference");
9917 SWIG_fail;
9918 }
9919 arg3 = (long) SWIG_AsLong(obj2);
9920 if (PyErr_Occurred()) SWIG_fail;
9921 arg4 = (long) SWIG_AsLong(obj3);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 {
9924 PyThreadState* __tstate = wxPyBeginAllowThreads();
9925 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9926
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) SWIG_fail;
9929 }
9930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9931 return resultobj;
9932 fail:
9933 return NULL;
9934 }
9935
9936
9937 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj;
9939 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9940 wxMouseEvent *result;
9941 PyObject * obj0 = 0 ;
9942 char *kwnames[] = {
9943 (char *) "self", NULL
9944 };
9945
9946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9949 {
9950 PyThreadState* __tstate = wxPyBeginAllowThreads();
9951 {
9952 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9953 result = (wxMouseEvent *) &_result_ref;
9954 }
9955
9956 wxPyEndAllowThreads(__tstate);
9957 if (PyErr_Occurred()) SWIG_fail;
9958 }
9959 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9960 return resultobj;
9961 fail:
9962 return NULL;
9963 }
9964
9965
9966 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9967 PyObject *resultobj;
9968 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9969 long result;
9970 PyObject * obj0 = 0 ;
9971 char *kwnames[] = {
9972 (char *) "self", NULL
9973 };
9974
9975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9978 {
9979 PyThreadState* __tstate = wxPyBeginAllowThreads();
9980 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9981
9982 wxPyEndAllowThreads(__tstate);
9983 if (PyErr_Occurred()) SWIG_fail;
9984 }
9985 resultobj = SWIG_FromLong((long)result);
9986 return resultobj;
9987 fail:
9988 return NULL;
9989 }
9990
9991
9992 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9993 PyObject *resultobj;
9994 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9995 long result;
9996 PyObject * obj0 = 0 ;
9997 char *kwnames[] = {
9998 (char *) "self", NULL
9999 };
10000
10001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
10002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10004 {
10005 PyThreadState* __tstate = wxPyBeginAllowThreads();
10006 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
10007
10008 wxPyEndAllowThreads(__tstate);
10009 if (PyErr_Occurred()) SWIG_fail;
10010 }
10011 resultobj = SWIG_FromLong((long)result);
10012 return resultobj;
10013 fail:
10014 return NULL;
10015 }
10016
10017
10018 static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
10019 PyObject *obj;
10020 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10021 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10022 Py_INCREF(obj);
10023 return Py_BuildValue((char *)"");
10024 }
10025 static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
10026 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10027 return 1;
10028 }
10029
10030
10031 static PyObject *_wrap_ScrollBarNameStr_get() {
10032 PyObject *pyobj;
10033
10034 {
10035 #if wxUSE_UNICODE
10036 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10037 #else
10038 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10039 #endif
10040 }
10041 return pyobj;
10042 }
10043
10044
10045 static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
10046 PyObject *resultobj;
10047 wxWindow *arg1 = (wxWindow *) 0 ;
10048 int arg2 = (int) -1 ;
10049 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10050 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10051 wxSize const &arg4_defvalue = wxDefaultSize ;
10052 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10053 long arg5 = (long) wxSB_HORIZONTAL ;
10054 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10055 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10056 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10057 wxString *arg7 = (wxString *) &arg7_defvalue ;
10058 wxScrollBar *result;
10059 wxPoint temp3 ;
10060 wxSize temp4 ;
10061 bool temp7 = False ;
10062 PyObject * obj0 = 0 ;
10063 PyObject * obj1 = 0 ;
10064 PyObject * obj2 = 0 ;
10065 PyObject * obj3 = 0 ;
10066 PyObject * obj4 = 0 ;
10067 PyObject * obj5 = 0 ;
10068 PyObject * obj6 = 0 ;
10069 char *kwnames[] = {
10070 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10071 };
10072
10073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10076 if (obj1) {
10077 arg2 = (int) SWIG_AsInt(obj1);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 }
10080 if (obj2) {
10081 {
10082 arg3 = &temp3;
10083 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10084 }
10085 }
10086 if (obj3) {
10087 {
10088 arg4 = &temp4;
10089 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10090 }
10091 }
10092 if (obj4) {
10093 arg5 = (long) SWIG_AsLong(obj4);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 if (obj5) {
10097 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10098 SWIG_POINTER_EXCEPTION | 0)) == -1)
10099 SWIG_fail;
10100 if (arg6 == NULL) {
10101 PyErr_SetString(PyExc_TypeError,"null reference");
10102 SWIG_fail;
10103 }
10104 }
10105 if (obj6) {
10106 {
10107 arg7 = wxString_in_helper(obj6);
10108 if (arg7 == NULL) SWIG_fail;
10109 temp7 = True;
10110 }
10111 }
10112 {
10113 PyThreadState* __tstate = wxPyBeginAllowThreads();
10114 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10115
10116 wxPyEndAllowThreads(__tstate);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10120 {
10121 if (temp7)
10122 delete arg7;
10123 }
10124 return resultobj;
10125 fail:
10126 {
10127 if (temp7)
10128 delete arg7;
10129 }
10130 return NULL;
10131 }
10132
10133
10134 static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
10135 PyObject *resultobj;
10136 wxScrollBar *result;
10137 char *kwnames[] = {
10138 NULL
10139 };
10140
10141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10142 {
10143 PyThreadState* __tstate = wxPyBeginAllowThreads();
10144 result = (wxScrollBar *)new wxScrollBar();
10145
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10150 return resultobj;
10151 fail:
10152 return NULL;
10153 }
10154
10155
10156 static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj;
10158 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10159 wxWindow *arg2 = (wxWindow *) 0 ;
10160 int arg3 = (int) -1 ;
10161 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10162 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10163 wxSize const &arg5_defvalue = wxDefaultSize ;
10164 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10165 long arg6 = (long) wxSB_HORIZONTAL ;
10166 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10167 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10168 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10169 wxString *arg8 = (wxString *) &arg8_defvalue ;
10170 bool result;
10171 wxPoint temp4 ;
10172 wxSize temp5 ;
10173 bool temp8 = False ;
10174 PyObject * obj0 = 0 ;
10175 PyObject * obj1 = 0 ;
10176 PyObject * obj2 = 0 ;
10177 PyObject * obj3 = 0 ;
10178 PyObject * obj4 = 0 ;
10179 PyObject * obj5 = 0 ;
10180 PyObject * obj6 = 0 ;
10181 PyObject * obj7 = 0 ;
10182 char *kwnames[] = {
10183 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10184 };
10185
10186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10191 if (obj2) {
10192 arg3 = (int) SWIG_AsInt(obj2);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 }
10195 if (obj3) {
10196 {
10197 arg4 = &temp4;
10198 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10199 }
10200 }
10201 if (obj4) {
10202 {
10203 arg5 = &temp5;
10204 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10205 }
10206 }
10207 if (obj5) {
10208 arg6 = (long) SWIG_AsLong(obj5);
10209 if (PyErr_Occurred()) SWIG_fail;
10210 }
10211 if (obj6) {
10212 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10213 SWIG_POINTER_EXCEPTION | 0)) == -1)
10214 SWIG_fail;
10215 if (arg7 == NULL) {
10216 PyErr_SetString(PyExc_TypeError,"null reference");
10217 SWIG_fail;
10218 }
10219 }
10220 if (obj7) {
10221 {
10222 arg8 = wxString_in_helper(obj7);
10223 if (arg8 == NULL) SWIG_fail;
10224 temp8 = True;
10225 }
10226 }
10227 {
10228 PyThreadState* __tstate = wxPyBeginAllowThreads();
10229 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10230
10231 wxPyEndAllowThreads(__tstate);
10232 if (PyErr_Occurred()) SWIG_fail;
10233 }
10234 {
10235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10236 }
10237 {
10238 if (temp8)
10239 delete arg8;
10240 }
10241 return resultobj;
10242 fail:
10243 {
10244 if (temp8)
10245 delete arg8;
10246 }
10247 return NULL;
10248 }
10249
10250
10251 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10252 PyObject *resultobj;
10253 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10254 int result;
10255 PyObject * obj0 = 0 ;
10256 char *kwnames[] = {
10257 (char *) "self", NULL
10258 };
10259
10260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10263 {
10264 PyThreadState* __tstate = wxPyBeginAllowThreads();
10265 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10266
10267 wxPyEndAllowThreads(__tstate);
10268 if (PyErr_Occurred()) SWIG_fail;
10269 }
10270 resultobj = SWIG_FromInt((int)result);
10271 return resultobj;
10272 fail:
10273 return NULL;
10274 }
10275
10276
10277 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10278 PyObject *resultobj;
10279 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10280 int result;
10281 PyObject * obj0 = 0 ;
10282 char *kwnames[] = {
10283 (char *) "self", NULL
10284 };
10285
10286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10289 {
10290 PyThreadState* __tstate = wxPyBeginAllowThreads();
10291 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10292
10293 wxPyEndAllowThreads(__tstate);
10294 if (PyErr_Occurred()) SWIG_fail;
10295 }
10296 resultobj = SWIG_FromInt((int)result);
10297 return resultobj;
10298 fail:
10299 return NULL;
10300 }
10301
10302
10303 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10304 PyObject *resultobj;
10305 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10306 int result;
10307 PyObject * obj0 = 0 ;
10308 char *kwnames[] = {
10309 (char *) "self", NULL
10310 };
10311
10312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10315 {
10316 PyThreadState* __tstate = wxPyBeginAllowThreads();
10317 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10318
10319 wxPyEndAllowThreads(__tstate);
10320 if (PyErr_Occurred()) SWIG_fail;
10321 }
10322 resultobj = SWIG_FromInt((int)result);
10323 return resultobj;
10324 fail:
10325 return NULL;
10326 }
10327
10328
10329 static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10330 PyObject *resultobj;
10331 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10332 int result;
10333 PyObject * obj0 = 0 ;
10334 char *kwnames[] = {
10335 (char *) "self", NULL
10336 };
10337
10338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10341 {
10342 PyThreadState* __tstate = wxPyBeginAllowThreads();
10343 result = (int)((wxScrollBar const *)arg1)->GetRange();
10344
10345 wxPyEndAllowThreads(__tstate);
10346 if (PyErr_Occurred()) SWIG_fail;
10347 }
10348 resultobj = SWIG_FromInt((int)result);
10349 return resultobj;
10350 fail:
10351 return NULL;
10352 }
10353
10354
10355 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10356 PyObject *resultobj;
10357 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10358 bool result;
10359 PyObject * obj0 = 0 ;
10360 char *kwnames[] = {
10361 (char *) "self", NULL
10362 };
10363
10364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10367 {
10368 PyThreadState* __tstate = wxPyBeginAllowThreads();
10369 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10370
10371 wxPyEndAllowThreads(__tstate);
10372 if (PyErr_Occurred()) SWIG_fail;
10373 }
10374 {
10375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10376 }
10377 return resultobj;
10378 fail:
10379 return NULL;
10380 }
10381
10382
10383 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10384 PyObject *resultobj;
10385 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10386 int arg2 ;
10387 PyObject * obj0 = 0 ;
10388 PyObject * obj1 = 0 ;
10389 char *kwnames[] = {
10390 (char *) "self",(char *) "viewStart", NULL
10391 };
10392
10393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10396 arg2 = (int) SWIG_AsInt(obj1);
10397 if (PyErr_Occurred()) SWIG_fail;
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10400 (arg1)->SetThumbPosition(arg2);
10401
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 Py_INCREF(Py_None); resultobj = Py_None;
10406 return resultobj;
10407 fail:
10408 return NULL;
10409 }
10410
10411
10412 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
10413 PyObject *resultobj;
10414 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10415 int arg2 ;
10416 int arg3 ;
10417 int arg4 ;
10418 int arg5 ;
10419 bool arg6 = (bool) True ;
10420 PyObject * obj0 = 0 ;
10421 PyObject * obj1 = 0 ;
10422 PyObject * obj2 = 0 ;
10423 PyObject * obj3 = 0 ;
10424 PyObject * obj4 = 0 ;
10425 PyObject * obj5 = 0 ;
10426 char *kwnames[] = {
10427 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10428 };
10429
10430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10433 arg2 = (int) SWIG_AsInt(obj1);
10434 if (PyErr_Occurred()) SWIG_fail;
10435 arg3 = (int) SWIG_AsInt(obj2);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 arg4 = (int) SWIG_AsInt(obj3);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 arg5 = (int) SWIG_AsInt(obj4);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 if (obj5) {
10442 arg6 = (bool) SWIG_AsBool(obj5);
10443 if (PyErr_Occurred()) SWIG_fail;
10444 }
10445 {
10446 PyThreadState* __tstate = wxPyBeginAllowThreads();
10447 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10448
10449 wxPyEndAllowThreads(__tstate);
10450 if (PyErr_Occurred()) SWIG_fail;
10451 }
10452 Py_INCREF(Py_None); resultobj = Py_None;
10453 return resultobj;
10454 fail:
10455 return NULL;
10456 }
10457
10458
10459 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10460 PyObject *resultobj;
10461 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10462 wxVisualAttributes result;
10463 PyObject * obj0 = 0 ;
10464 char *kwnames[] = {
10465 (char *) "variant", NULL
10466 };
10467
10468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10469 if (obj0) {
10470 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 {
10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
10475 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10476
10477 wxPyEndAllowThreads(__tstate);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 {
10481 wxVisualAttributes * resultptr;
10482 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10483 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10484 }
10485 return resultobj;
10486 fail:
10487 return NULL;
10488 }
10489
10490
10491 static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
10492 PyObject *obj;
10493 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10494 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10495 Py_INCREF(obj);
10496 return Py_BuildValue((char *)"");
10497 }
10498 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
10499 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10500 return 1;
10501 }
10502
10503
10504 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10505 PyObject *pyobj;
10506
10507 {
10508 #if wxUSE_UNICODE
10509 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10510 #else
10511 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10512 #endif
10513 }
10514 return pyobj;
10515 }
10516
10517
10518 static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
10519 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10520 return 1;
10521 }
10522
10523
10524 static PyObject *_wrap_SpinCtrlNameStr_get() {
10525 PyObject *pyobj;
10526
10527 {
10528 #if wxUSE_UNICODE
10529 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10530 #else
10531 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10532 #endif
10533 }
10534 return pyobj;
10535 }
10536
10537
10538 static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10539 PyObject *resultobj;
10540 wxWindow *arg1 = (wxWindow *) 0 ;
10541 int arg2 = (int) -1 ;
10542 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10543 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10544 wxSize const &arg4_defvalue = wxDefaultSize ;
10545 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10546 long arg5 = (long) wxSP_HORIZONTAL ;
10547 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10548 wxString *arg6 = (wxString *) &arg6_defvalue ;
10549 wxSpinButton *result;
10550 wxPoint temp3 ;
10551 wxSize temp4 ;
10552 bool temp6 = False ;
10553 PyObject * obj0 = 0 ;
10554 PyObject * obj1 = 0 ;
10555 PyObject * obj2 = 0 ;
10556 PyObject * obj3 = 0 ;
10557 PyObject * obj4 = 0 ;
10558 PyObject * obj5 = 0 ;
10559 char *kwnames[] = {
10560 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10561 };
10562
10563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10566 if (obj1) {
10567 arg2 = (int) SWIG_AsInt(obj1);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 if (obj2) {
10571 {
10572 arg3 = &temp3;
10573 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10574 }
10575 }
10576 if (obj3) {
10577 {
10578 arg4 = &temp4;
10579 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10580 }
10581 }
10582 if (obj4) {
10583 arg5 = (long) SWIG_AsLong(obj4);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 if (obj5) {
10587 {
10588 arg6 = wxString_in_helper(obj5);
10589 if (arg6 == NULL) SWIG_fail;
10590 temp6 = True;
10591 }
10592 }
10593 {
10594 PyThreadState* __tstate = wxPyBeginAllowThreads();
10595 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10596
10597 wxPyEndAllowThreads(__tstate);
10598 if (PyErr_Occurred()) SWIG_fail;
10599 }
10600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10601 {
10602 if (temp6)
10603 delete arg6;
10604 }
10605 return resultobj;
10606 fail:
10607 {
10608 if (temp6)
10609 delete arg6;
10610 }
10611 return NULL;
10612 }
10613
10614
10615 static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj;
10617 wxSpinButton *result;
10618 char *kwnames[] = {
10619 NULL
10620 };
10621
10622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10623 {
10624 PyThreadState* __tstate = wxPyBeginAllowThreads();
10625 result = (wxSpinButton *)new wxSpinButton();
10626
10627 wxPyEndAllowThreads(__tstate);
10628 if (PyErr_Occurred()) SWIG_fail;
10629 }
10630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10631 return resultobj;
10632 fail:
10633 return NULL;
10634 }
10635
10636
10637 static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10638 PyObject *resultobj;
10639 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10640 wxWindow *arg2 = (wxWindow *) 0 ;
10641 int arg3 = (int) -1 ;
10642 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10643 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10644 wxSize const &arg5_defvalue = wxDefaultSize ;
10645 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10646 long arg6 = (long) wxSP_HORIZONTAL ;
10647 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10648 wxString *arg7 = (wxString *) &arg7_defvalue ;
10649 bool result;
10650 wxPoint temp4 ;
10651 wxSize temp5 ;
10652 bool temp7 = False ;
10653 PyObject * obj0 = 0 ;
10654 PyObject * obj1 = 0 ;
10655 PyObject * obj2 = 0 ;
10656 PyObject * obj3 = 0 ;
10657 PyObject * obj4 = 0 ;
10658 PyObject * obj5 = 0 ;
10659 PyObject * obj6 = 0 ;
10660 char *kwnames[] = {
10661 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10662 };
10663
10664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10667 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10669 if (obj2) {
10670 arg3 = (int) SWIG_AsInt(obj2);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 if (obj3) {
10674 {
10675 arg4 = &temp4;
10676 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10677 }
10678 }
10679 if (obj4) {
10680 {
10681 arg5 = &temp5;
10682 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10683 }
10684 }
10685 if (obj5) {
10686 arg6 = (long) SWIG_AsLong(obj5);
10687 if (PyErr_Occurred()) SWIG_fail;
10688 }
10689 if (obj6) {
10690 {
10691 arg7 = wxString_in_helper(obj6);
10692 if (arg7 == NULL) SWIG_fail;
10693 temp7 = True;
10694 }
10695 }
10696 {
10697 PyThreadState* __tstate = wxPyBeginAllowThreads();
10698 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10699
10700 wxPyEndAllowThreads(__tstate);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 }
10703 {
10704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10705 }
10706 {
10707 if (temp7)
10708 delete arg7;
10709 }
10710 return resultobj;
10711 fail:
10712 {
10713 if (temp7)
10714 delete arg7;
10715 }
10716 return NULL;
10717 }
10718
10719
10720 static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj;
10722 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10723 int result;
10724 PyObject * obj0 = 0 ;
10725 char *kwnames[] = {
10726 (char *) "self", NULL
10727 };
10728
10729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10732 {
10733 PyThreadState* __tstate = wxPyBeginAllowThreads();
10734 result = (int)((wxSpinButton const *)arg1)->GetValue();
10735
10736 wxPyEndAllowThreads(__tstate);
10737 if (PyErr_Occurred()) SWIG_fail;
10738 }
10739 resultobj = SWIG_FromInt((int)result);
10740 return resultobj;
10741 fail:
10742 return NULL;
10743 }
10744
10745
10746 static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10747 PyObject *resultobj;
10748 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10749 int result;
10750 PyObject * obj0 = 0 ;
10751 char *kwnames[] = {
10752 (char *) "self", NULL
10753 };
10754
10755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10758 {
10759 PyThreadState* __tstate = wxPyBeginAllowThreads();
10760 result = (int)((wxSpinButton const *)arg1)->GetMin();
10761
10762 wxPyEndAllowThreads(__tstate);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 resultobj = SWIG_FromInt((int)result);
10766 return resultobj;
10767 fail:
10768 return NULL;
10769 }
10770
10771
10772 static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10773 PyObject *resultobj;
10774 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10775 int result;
10776 PyObject * obj0 = 0 ;
10777 char *kwnames[] = {
10778 (char *) "self", NULL
10779 };
10780
10781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10784 {
10785 PyThreadState* __tstate = wxPyBeginAllowThreads();
10786 result = (int)((wxSpinButton const *)arg1)->GetMax();
10787
10788 wxPyEndAllowThreads(__tstate);
10789 if (PyErr_Occurred()) SWIG_fail;
10790 }
10791 resultobj = SWIG_FromInt((int)result);
10792 return resultobj;
10793 fail:
10794 return NULL;
10795 }
10796
10797
10798 static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10799 PyObject *resultobj;
10800 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10801 int arg2 ;
10802 PyObject * obj0 = 0 ;
10803 PyObject * obj1 = 0 ;
10804 char *kwnames[] = {
10805 (char *) "self",(char *) "val", NULL
10806 };
10807
10808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10811 arg2 = (int) SWIG_AsInt(obj1);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 (arg1)->SetValue(arg2);
10816
10817 wxPyEndAllowThreads(__tstate);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 Py_INCREF(Py_None); resultobj = Py_None;
10821 return resultobj;
10822 fail:
10823 return NULL;
10824 }
10825
10826
10827 static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10828 PyObject *resultobj;
10829 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10830 int arg2 ;
10831 PyObject * obj0 = 0 ;
10832 PyObject * obj1 = 0 ;
10833 char *kwnames[] = {
10834 (char *) "self",(char *) "minVal", NULL
10835 };
10836
10837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10840 arg2 = (int) SWIG_AsInt(obj1);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 {
10843 PyThreadState* __tstate = wxPyBeginAllowThreads();
10844 (arg1)->SetMin(arg2);
10845
10846 wxPyEndAllowThreads(__tstate);
10847 if (PyErr_Occurred()) SWIG_fail;
10848 }
10849 Py_INCREF(Py_None); resultobj = Py_None;
10850 return resultobj;
10851 fail:
10852 return NULL;
10853 }
10854
10855
10856 static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10857 PyObject *resultobj;
10858 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10859 int arg2 ;
10860 PyObject * obj0 = 0 ;
10861 PyObject * obj1 = 0 ;
10862 char *kwnames[] = {
10863 (char *) "self",(char *) "maxVal", NULL
10864 };
10865
10866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10869 arg2 = (int) SWIG_AsInt(obj1);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 {
10872 PyThreadState* __tstate = wxPyBeginAllowThreads();
10873 (arg1)->SetMax(arg2);
10874
10875 wxPyEndAllowThreads(__tstate);
10876 if (PyErr_Occurred()) SWIG_fail;
10877 }
10878 Py_INCREF(Py_None); resultobj = Py_None;
10879 return resultobj;
10880 fail:
10881 return NULL;
10882 }
10883
10884
10885 static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10886 PyObject *resultobj;
10887 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10888 int arg2 ;
10889 int arg3 ;
10890 PyObject * obj0 = 0 ;
10891 PyObject * obj1 = 0 ;
10892 PyObject * obj2 = 0 ;
10893 char *kwnames[] = {
10894 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10895 };
10896
10897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10900 arg2 = (int) SWIG_AsInt(obj1);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 arg3 = (int) SWIG_AsInt(obj2);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 {
10905 PyThreadState* __tstate = wxPyBeginAllowThreads();
10906 (arg1)->SetRange(arg2,arg3);
10907
10908 wxPyEndAllowThreads(__tstate);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 Py_INCREF(Py_None); resultobj = Py_None;
10912 return resultobj;
10913 fail:
10914 return NULL;
10915 }
10916
10917
10918 static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10919 PyObject *resultobj;
10920 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10921 bool result;
10922 PyObject * obj0 = 0 ;
10923 char *kwnames[] = {
10924 (char *) "self", NULL
10925 };
10926
10927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
10932 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10933
10934 wxPyEndAllowThreads(__tstate);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 {
10938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10939 }
10940 return resultobj;
10941 fail:
10942 return NULL;
10943 }
10944
10945
10946 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10947 PyObject *resultobj;
10948 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10949 wxVisualAttributes result;
10950 PyObject * obj0 = 0 ;
10951 char *kwnames[] = {
10952 (char *) "variant", NULL
10953 };
10954
10955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10956 if (obj0) {
10957 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 {
10961 PyThreadState* __tstate = wxPyBeginAllowThreads();
10962 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
10963
10964 wxPyEndAllowThreads(__tstate);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 {
10968 wxVisualAttributes * resultptr;
10969 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10970 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10971 }
10972 return resultobj;
10973 fail:
10974 return NULL;
10975 }
10976
10977
10978 static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10979 PyObject *obj;
10980 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10981 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10982 Py_INCREF(obj);
10983 return Py_BuildValue((char *)"");
10984 }
10985 static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10986 PyObject *resultobj;
10987 wxWindow *arg1 = (wxWindow *) 0 ;
10988 int arg2 = (int) -1 ;
10989 wxString const &arg3_defvalue = wxPyEmptyString ;
10990 wxString *arg3 = (wxString *) &arg3_defvalue ;
10991 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10992 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10993 wxSize const &arg5_defvalue = wxDefaultSize ;
10994 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10995 long arg6 = (long) wxSP_ARROW_KEYS ;
10996 int arg7 = (int) 0 ;
10997 int arg8 = (int) 100 ;
10998 int arg9 = (int) 0 ;
10999 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
11000 wxString *arg10 = (wxString *) &arg10_defvalue ;
11001 wxSpinCtrl *result;
11002 bool temp3 = False ;
11003 wxPoint temp4 ;
11004 wxSize temp5 ;
11005 bool temp10 = False ;
11006 PyObject * obj0 = 0 ;
11007 PyObject * obj1 = 0 ;
11008 PyObject * obj2 = 0 ;
11009 PyObject * obj3 = 0 ;
11010 PyObject * obj4 = 0 ;
11011 PyObject * obj5 = 0 ;
11012 PyObject * obj6 = 0 ;
11013 PyObject * obj7 = 0 ;
11014 PyObject * obj8 = 0 ;
11015 PyObject * obj9 = 0 ;
11016 char *kwnames[] = {
11017 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11023 if (obj1) {
11024 arg2 = (int) SWIG_AsInt(obj1);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 }
11027 if (obj2) {
11028 {
11029 arg3 = wxString_in_helper(obj2);
11030 if (arg3 == NULL) SWIG_fail;
11031 temp3 = True;
11032 }
11033 }
11034 if (obj3) {
11035 {
11036 arg4 = &temp4;
11037 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11038 }
11039 }
11040 if (obj4) {
11041 {
11042 arg5 = &temp5;
11043 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11044 }
11045 }
11046 if (obj5) {
11047 arg6 = (long) SWIG_AsLong(obj5);
11048 if (PyErr_Occurred()) SWIG_fail;
11049 }
11050 if (obj6) {
11051 arg7 = (int) SWIG_AsInt(obj6);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 if (obj7) {
11055 arg8 = (int) SWIG_AsInt(obj7);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 if (obj8) {
11059 arg9 = (int) SWIG_AsInt(obj8);
11060 if (PyErr_Occurred()) SWIG_fail;
11061 }
11062 if (obj9) {
11063 {
11064 arg10 = wxString_in_helper(obj9);
11065 if (arg10 == NULL) SWIG_fail;
11066 temp10 = True;
11067 }
11068 }
11069 {
11070 PyThreadState* __tstate = wxPyBeginAllowThreads();
11071 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11072
11073 wxPyEndAllowThreads(__tstate);
11074 if (PyErr_Occurred()) SWIG_fail;
11075 }
11076 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11077 {
11078 if (temp3)
11079 delete arg3;
11080 }
11081 {
11082 if (temp10)
11083 delete arg10;
11084 }
11085 return resultobj;
11086 fail:
11087 {
11088 if (temp3)
11089 delete arg3;
11090 }
11091 {
11092 if (temp10)
11093 delete arg10;
11094 }
11095 return NULL;
11096 }
11097
11098
11099 static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
11100 PyObject *resultobj;
11101 wxSpinCtrl *result;
11102 char *kwnames[] = {
11103 NULL
11104 };
11105
11106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11107 {
11108 PyThreadState* __tstate = wxPyBeginAllowThreads();
11109 result = (wxSpinCtrl *)new wxSpinCtrl();
11110
11111 wxPyEndAllowThreads(__tstate);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 }
11114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11115 return resultobj;
11116 fail:
11117 return NULL;
11118 }
11119
11120
11121 static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11122 PyObject *resultobj;
11123 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11124 wxWindow *arg2 = (wxWindow *) 0 ;
11125 int arg3 = (int) -1 ;
11126 wxString const &arg4_defvalue = wxPyEmptyString ;
11127 wxString *arg4 = (wxString *) &arg4_defvalue ;
11128 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11129 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11130 wxSize const &arg6_defvalue = wxDefaultSize ;
11131 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11132 long arg7 = (long) wxSP_ARROW_KEYS ;
11133 int arg8 = (int) 0 ;
11134 int arg9 = (int) 100 ;
11135 int arg10 = (int) 0 ;
11136 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11137 wxString *arg11 = (wxString *) &arg11_defvalue ;
11138 bool result;
11139 bool temp4 = False ;
11140 wxPoint temp5 ;
11141 wxSize temp6 ;
11142 bool temp11 = False ;
11143 PyObject * obj0 = 0 ;
11144 PyObject * obj1 = 0 ;
11145 PyObject * obj2 = 0 ;
11146 PyObject * obj3 = 0 ;
11147 PyObject * obj4 = 0 ;
11148 PyObject * obj5 = 0 ;
11149 PyObject * obj6 = 0 ;
11150 PyObject * obj7 = 0 ;
11151 PyObject * obj8 = 0 ;
11152 PyObject * obj9 = 0 ;
11153 PyObject * obj10 = 0 ;
11154 char *kwnames[] = {
11155 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11156 };
11157
11158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11161 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11163 if (obj2) {
11164 arg3 = (int) SWIG_AsInt(obj2);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 }
11167 if (obj3) {
11168 {
11169 arg4 = wxString_in_helper(obj3);
11170 if (arg4 == NULL) SWIG_fail;
11171 temp4 = True;
11172 }
11173 }
11174 if (obj4) {
11175 {
11176 arg5 = &temp5;
11177 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11178 }
11179 }
11180 if (obj5) {
11181 {
11182 arg6 = &temp6;
11183 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11184 }
11185 }
11186 if (obj6) {
11187 arg7 = (long) SWIG_AsLong(obj6);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 if (obj7) {
11191 arg8 = (int) SWIG_AsInt(obj7);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 if (obj8) {
11195 arg9 = (int) SWIG_AsInt(obj8);
11196 if (PyErr_Occurred()) SWIG_fail;
11197 }
11198 if (obj9) {
11199 arg10 = (int) SWIG_AsInt(obj9);
11200 if (PyErr_Occurred()) SWIG_fail;
11201 }
11202 if (obj10) {
11203 {
11204 arg11 = wxString_in_helper(obj10);
11205 if (arg11 == NULL) SWIG_fail;
11206 temp11 = True;
11207 }
11208 }
11209 {
11210 PyThreadState* __tstate = wxPyBeginAllowThreads();
11211 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11212
11213 wxPyEndAllowThreads(__tstate);
11214 if (PyErr_Occurred()) SWIG_fail;
11215 }
11216 {
11217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11218 }
11219 {
11220 if (temp4)
11221 delete arg4;
11222 }
11223 {
11224 if (temp11)
11225 delete arg11;
11226 }
11227 return resultobj;
11228 fail:
11229 {
11230 if (temp4)
11231 delete arg4;
11232 }
11233 {
11234 if (temp11)
11235 delete arg11;
11236 }
11237 return NULL;
11238 }
11239
11240
11241 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj;
11243 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11244 int result;
11245 PyObject * obj0 = 0 ;
11246 char *kwnames[] = {
11247 (char *) "self", NULL
11248 };
11249
11250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11253 {
11254 PyThreadState* __tstate = wxPyBeginAllowThreads();
11255 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11256
11257 wxPyEndAllowThreads(__tstate);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 }
11260 resultobj = SWIG_FromInt((int)result);
11261 return resultobj;
11262 fail:
11263 return NULL;
11264 }
11265
11266
11267 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11268 PyObject *resultobj;
11269 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11270 int arg2 ;
11271 PyObject * obj0 = 0 ;
11272 PyObject * obj1 = 0 ;
11273 char *kwnames[] = {
11274 (char *) "self",(char *) "value", NULL
11275 };
11276
11277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11280 arg2 = (int) SWIG_AsInt(obj1);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 {
11283 PyThreadState* __tstate = wxPyBeginAllowThreads();
11284 (arg1)->SetValue(arg2);
11285
11286 wxPyEndAllowThreads(__tstate);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 }
11289 Py_INCREF(Py_None); resultobj = Py_None;
11290 return resultobj;
11291 fail:
11292 return NULL;
11293 }
11294
11295
11296 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
11297 PyObject *resultobj;
11298 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11299 wxString *arg2 = 0 ;
11300 bool temp2 = False ;
11301 PyObject * obj0 = 0 ;
11302 PyObject * obj1 = 0 ;
11303 char *kwnames[] = {
11304 (char *) "self",(char *) "text", NULL
11305 };
11306
11307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11310 {
11311 arg2 = wxString_in_helper(obj1);
11312 if (arg2 == NULL) SWIG_fail;
11313 temp2 = True;
11314 }
11315 {
11316 PyThreadState* __tstate = wxPyBeginAllowThreads();
11317 (arg1)->SetValue((wxString const &)*arg2);
11318
11319 wxPyEndAllowThreads(__tstate);
11320 if (PyErr_Occurred()) SWIG_fail;
11321 }
11322 Py_INCREF(Py_None); resultobj = Py_None;
11323 {
11324 if (temp2)
11325 delete arg2;
11326 }
11327 return resultobj;
11328 fail:
11329 {
11330 if (temp2)
11331 delete arg2;
11332 }
11333 return NULL;
11334 }
11335
11336
11337 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
11338 PyObject *resultobj;
11339 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11340 int arg2 ;
11341 int arg3 ;
11342 PyObject * obj0 = 0 ;
11343 PyObject * obj1 = 0 ;
11344 PyObject * obj2 = 0 ;
11345 char *kwnames[] = {
11346 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11347 };
11348
11349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11352 arg2 = (int) SWIG_AsInt(obj1);
11353 if (PyErr_Occurred()) SWIG_fail;
11354 arg3 = (int) SWIG_AsInt(obj2);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 {
11357 PyThreadState* __tstate = wxPyBeginAllowThreads();
11358 (arg1)->SetRange(arg2,arg3);
11359
11360 wxPyEndAllowThreads(__tstate);
11361 if (PyErr_Occurred()) SWIG_fail;
11362 }
11363 Py_INCREF(Py_None); resultobj = Py_None;
11364 return resultobj;
11365 fail:
11366 return NULL;
11367 }
11368
11369
11370 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
11371 PyObject *resultobj;
11372 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11373 int result;
11374 PyObject * obj0 = 0 ;
11375 char *kwnames[] = {
11376 (char *) "self", NULL
11377 };
11378
11379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11382 {
11383 PyThreadState* __tstate = wxPyBeginAllowThreads();
11384 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11385
11386 wxPyEndAllowThreads(__tstate);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 }
11389 resultobj = SWIG_FromInt((int)result);
11390 return resultobj;
11391 fail:
11392 return NULL;
11393 }
11394
11395
11396 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
11397 PyObject *resultobj;
11398 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11399 int result;
11400 PyObject * obj0 = 0 ;
11401 char *kwnames[] = {
11402 (char *) "self", NULL
11403 };
11404
11405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11408 {
11409 PyThreadState* __tstate = wxPyBeginAllowThreads();
11410 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11411
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 resultobj = SWIG_FromInt((int)result);
11416 return resultobj;
11417 fail:
11418 return NULL;
11419 }
11420
11421
11422 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11423 PyObject *resultobj;
11424 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11425 long arg2 ;
11426 long arg3 ;
11427 PyObject * obj0 = 0 ;
11428 PyObject * obj1 = 0 ;
11429 PyObject * obj2 = 0 ;
11430 char *kwnames[] = {
11431 (char *) "self",(char *) "from",(char *) "to", NULL
11432 };
11433
11434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11437 arg2 = (long) SWIG_AsLong(obj1);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 arg3 = (long) SWIG_AsLong(obj2);
11440 if (PyErr_Occurred()) SWIG_fail;
11441 {
11442 PyThreadState* __tstate = wxPyBeginAllowThreads();
11443 (arg1)->SetSelection(arg2,arg3);
11444
11445 wxPyEndAllowThreads(__tstate);
11446 if (PyErr_Occurred()) SWIG_fail;
11447 }
11448 Py_INCREF(Py_None); resultobj = Py_None;
11449 return resultobj;
11450 fail:
11451 return NULL;
11452 }
11453
11454
11455 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
11456 PyObject *resultobj;
11457 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11458 wxVisualAttributes result;
11459 PyObject * obj0 = 0 ;
11460 char *kwnames[] = {
11461 (char *) "variant", NULL
11462 };
11463
11464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11465 if (obj0) {
11466 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
11467 if (PyErr_Occurred()) SWIG_fail;
11468 }
11469 {
11470 PyThreadState* __tstate = wxPyBeginAllowThreads();
11471 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11472
11473 wxPyEndAllowThreads(__tstate);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 }
11476 {
11477 wxVisualAttributes * resultptr;
11478 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11479 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11480 }
11481 return resultobj;
11482 fail:
11483 return NULL;
11484 }
11485
11486
11487 static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
11488 PyObject *obj;
11489 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11490 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11491 Py_INCREF(obj);
11492 return Py_BuildValue((char *)"");
11493 }
11494 static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11495 PyObject *resultobj;
11496 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11497 int arg2 = (int) 0 ;
11498 wxSpinEvent *result;
11499 PyObject * obj0 = 0 ;
11500 PyObject * obj1 = 0 ;
11501 char *kwnames[] = {
11502 (char *) "commandType",(char *) "winid", NULL
11503 };
11504
11505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11506 if (obj0) {
11507 arg1 = (wxEventType) SWIG_AsInt(obj0);
11508 if (PyErr_Occurred()) SWIG_fail;
11509 }
11510 if (obj1) {
11511 arg2 = (int) SWIG_AsInt(obj1);
11512 if (PyErr_Occurred()) SWIG_fail;
11513 }
11514 {
11515 PyThreadState* __tstate = wxPyBeginAllowThreads();
11516 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11517
11518 wxPyEndAllowThreads(__tstate);
11519 if (PyErr_Occurred()) SWIG_fail;
11520 }
11521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11522 return resultobj;
11523 fail:
11524 return NULL;
11525 }
11526
11527
11528 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11529 PyObject *resultobj;
11530 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11531 int result;
11532 PyObject * obj0 = 0 ;
11533 char *kwnames[] = {
11534 (char *) "self", NULL
11535 };
11536
11537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11540 {
11541 PyThreadState* __tstate = wxPyBeginAllowThreads();
11542 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11543
11544 wxPyEndAllowThreads(__tstate);
11545 if (PyErr_Occurred()) SWIG_fail;
11546 }
11547 resultobj = SWIG_FromInt((int)result);
11548 return resultobj;
11549 fail:
11550 return NULL;
11551 }
11552
11553
11554 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11555 PyObject *resultobj;
11556 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11557 int arg2 ;
11558 PyObject * obj0 = 0 ;
11559 PyObject * obj1 = 0 ;
11560 char *kwnames[] = {
11561 (char *) "self",(char *) "pos", NULL
11562 };
11563
11564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11567 arg2 = (int) SWIG_AsInt(obj1);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 {
11570 PyThreadState* __tstate = wxPyBeginAllowThreads();
11571 (arg1)->SetPosition(arg2);
11572
11573 wxPyEndAllowThreads(__tstate);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 Py_INCREF(Py_None); resultobj = Py_None;
11577 return resultobj;
11578 fail:
11579 return NULL;
11580 }
11581
11582
11583 static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
11584 PyObject *obj;
11585 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11586 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11587 Py_INCREF(obj);
11588 return Py_BuildValue((char *)"");
11589 }
11590 static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
11591 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11592 return 1;
11593 }
11594
11595
11596 static PyObject *_wrap_RadioBoxNameStr_get() {
11597 PyObject *pyobj;
11598
11599 {
11600 #if wxUSE_UNICODE
11601 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11602 #else
11603 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11604 #endif
11605 }
11606 return pyobj;
11607 }
11608
11609
11610 static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
11611 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11612 return 1;
11613 }
11614
11615
11616 static PyObject *_wrap_RadioButtonNameStr_get() {
11617 PyObject *pyobj;
11618
11619 {
11620 #if wxUSE_UNICODE
11621 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11622 #else
11623 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11624 #endif
11625 }
11626 return pyobj;
11627 }
11628
11629
11630 static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11631 PyObject *resultobj;
11632 wxWindow *arg1 = (wxWindow *) 0 ;
11633 int arg2 ;
11634 wxString *arg3 = 0 ;
11635 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11636 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11637 wxSize const &arg5_defvalue = wxDefaultSize ;
11638 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11639 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11640 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11641 int arg7 = (int) 0 ;
11642 long arg8 = (long) wxRA_HORIZONTAL ;
11643 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11644 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11645 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11646 wxString *arg10 = (wxString *) &arg10_defvalue ;
11647 wxRadioBox *result;
11648 bool temp3 = False ;
11649 wxPoint temp4 ;
11650 wxSize temp5 ;
11651 bool temp6 = False ;
11652 bool temp10 = False ;
11653 PyObject * obj0 = 0 ;
11654 PyObject * obj1 = 0 ;
11655 PyObject * obj2 = 0 ;
11656 PyObject * obj3 = 0 ;
11657 PyObject * obj4 = 0 ;
11658 PyObject * obj5 = 0 ;
11659 PyObject * obj6 = 0 ;
11660 PyObject * obj7 = 0 ;
11661 PyObject * obj8 = 0 ;
11662 PyObject * obj9 = 0 ;
11663 char *kwnames[] = {
11664 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11665 };
11666
11667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11670 arg2 = (int) SWIG_AsInt(obj1);
11671 if (PyErr_Occurred()) SWIG_fail;
11672 {
11673 arg3 = wxString_in_helper(obj2);
11674 if (arg3 == NULL) SWIG_fail;
11675 temp3 = True;
11676 }
11677 if (obj3) {
11678 {
11679 arg4 = &temp4;
11680 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11681 }
11682 }
11683 if (obj4) {
11684 {
11685 arg5 = &temp5;
11686 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11687 }
11688 }
11689 if (obj5) {
11690 {
11691 if (! PySequence_Check(obj5)) {
11692 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11693 SWIG_fail;
11694 }
11695 arg6 = new wxArrayString;
11696 temp6 = True;
11697 int i, len=PySequence_Length(obj5);
11698 for (i=0; i<len; i++) {
11699 PyObject* item = PySequence_GetItem(obj5, i);
11700 #if wxUSE_UNICODE
11701 PyObject* str = PyObject_Unicode(item);
11702 #else
11703 PyObject* str = PyObject_Str(item);
11704 #endif
11705 if (PyErr_Occurred()) SWIG_fail;
11706 arg6->Add(Py2wxString(str));
11707 Py_DECREF(item);
11708 Py_DECREF(str);
11709 }
11710 }
11711 }
11712 if (obj6) {
11713 arg7 = (int) SWIG_AsInt(obj6);
11714 if (PyErr_Occurred()) SWIG_fail;
11715 }
11716 if (obj7) {
11717 arg8 = (long) SWIG_AsLong(obj7);
11718 if (PyErr_Occurred()) SWIG_fail;
11719 }
11720 if (obj8) {
11721 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11722 SWIG_POINTER_EXCEPTION | 0)) == -1)
11723 SWIG_fail;
11724 if (arg9 == NULL) {
11725 PyErr_SetString(PyExc_TypeError,"null reference");
11726 SWIG_fail;
11727 }
11728 }
11729 if (obj9) {
11730 {
11731 arg10 = wxString_in_helper(obj9);
11732 if (arg10 == NULL) SWIG_fail;
11733 temp10 = True;
11734 }
11735 }
11736 {
11737 PyThreadState* __tstate = wxPyBeginAllowThreads();
11738 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);
11739
11740 wxPyEndAllowThreads(__tstate);
11741 if (PyErr_Occurred()) SWIG_fail;
11742 }
11743 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11744 {
11745 if (temp3)
11746 delete arg3;
11747 }
11748 {
11749 if (temp6) delete arg6;
11750 }
11751 {
11752 if (temp10)
11753 delete arg10;
11754 }
11755 return resultobj;
11756 fail:
11757 {
11758 if (temp3)
11759 delete arg3;
11760 }
11761 {
11762 if (temp6) delete arg6;
11763 }
11764 {
11765 if (temp10)
11766 delete arg10;
11767 }
11768 return NULL;
11769 }
11770
11771
11772 static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11773 PyObject *resultobj;
11774 wxRadioBox *result;
11775 char *kwnames[] = {
11776 NULL
11777 };
11778
11779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 result = (wxRadioBox *)new wxRadioBox();
11783
11784 wxPyEndAllowThreads(__tstate);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11788 return resultobj;
11789 fail:
11790 return NULL;
11791 }
11792
11793
11794 static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11795 PyObject *resultobj;
11796 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11797 wxWindow *arg2 = (wxWindow *) 0 ;
11798 int arg3 ;
11799 wxString *arg4 = 0 ;
11800 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11801 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11802 wxSize const &arg6_defvalue = wxDefaultSize ;
11803 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11804 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11805 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11806 int arg8 = (int) 0 ;
11807 long arg9 = (long) wxRA_HORIZONTAL ;
11808 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11809 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11810 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11811 wxString *arg11 = (wxString *) &arg11_defvalue ;
11812 bool result;
11813 bool temp4 = False ;
11814 wxPoint temp5 ;
11815 wxSize temp6 ;
11816 bool temp7 = False ;
11817 bool temp11 = False ;
11818 PyObject * obj0 = 0 ;
11819 PyObject * obj1 = 0 ;
11820 PyObject * obj2 = 0 ;
11821 PyObject * obj3 = 0 ;
11822 PyObject * obj4 = 0 ;
11823 PyObject * obj5 = 0 ;
11824 PyObject * obj6 = 0 ;
11825 PyObject * obj7 = 0 ;
11826 PyObject * obj8 = 0 ;
11827 PyObject * obj9 = 0 ;
11828 PyObject * obj10 = 0 ;
11829 char *kwnames[] = {
11830 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11831 };
11832
11833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11836 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11838 arg3 = (int) SWIG_AsInt(obj2);
11839 if (PyErr_Occurred()) SWIG_fail;
11840 {
11841 arg4 = wxString_in_helper(obj3);
11842 if (arg4 == NULL) SWIG_fail;
11843 temp4 = True;
11844 }
11845 if (obj4) {
11846 {
11847 arg5 = &temp5;
11848 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11849 }
11850 }
11851 if (obj5) {
11852 {
11853 arg6 = &temp6;
11854 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11855 }
11856 }
11857 if (obj6) {
11858 {
11859 if (! PySequence_Check(obj6)) {
11860 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11861 SWIG_fail;
11862 }
11863 arg7 = new wxArrayString;
11864 temp7 = True;
11865 int i, len=PySequence_Length(obj6);
11866 for (i=0; i<len; i++) {
11867 PyObject* item = PySequence_GetItem(obj6, i);
11868 #if wxUSE_UNICODE
11869 PyObject* str = PyObject_Unicode(item);
11870 #else
11871 PyObject* str = PyObject_Str(item);
11872 #endif
11873 if (PyErr_Occurred()) SWIG_fail;
11874 arg7->Add(Py2wxString(str));
11875 Py_DECREF(item);
11876 Py_DECREF(str);
11877 }
11878 }
11879 }
11880 if (obj7) {
11881 arg8 = (int) SWIG_AsInt(obj7);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 }
11884 if (obj8) {
11885 arg9 = (long) SWIG_AsLong(obj8);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 if (obj9) {
11889 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11890 SWIG_POINTER_EXCEPTION | 0)) == -1)
11891 SWIG_fail;
11892 if (arg10 == NULL) {
11893 PyErr_SetString(PyExc_TypeError,"null reference");
11894 SWIG_fail;
11895 }
11896 }
11897 if (obj10) {
11898 {
11899 arg11 = wxString_in_helper(obj10);
11900 if (arg11 == NULL) SWIG_fail;
11901 temp11 = True;
11902 }
11903 }
11904 {
11905 PyThreadState* __tstate = wxPyBeginAllowThreads();
11906 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);
11907
11908 wxPyEndAllowThreads(__tstate);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 {
11912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11913 }
11914 {
11915 if (temp4)
11916 delete arg4;
11917 }
11918 {
11919 if (temp7) delete arg7;
11920 }
11921 {
11922 if (temp11)
11923 delete arg11;
11924 }
11925 return resultobj;
11926 fail:
11927 {
11928 if (temp4)
11929 delete arg4;
11930 }
11931 {
11932 if (temp7) delete arg7;
11933 }
11934 {
11935 if (temp11)
11936 delete arg11;
11937 }
11938 return NULL;
11939 }
11940
11941
11942 static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11943 PyObject *resultobj;
11944 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11945 int arg2 ;
11946 PyObject * obj0 = 0 ;
11947 PyObject * obj1 = 0 ;
11948 char *kwnames[] = {
11949 (char *) "self",(char *) "n", NULL
11950 };
11951
11952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11955 arg2 = (int) SWIG_AsInt(obj1);
11956 if (PyErr_Occurred()) SWIG_fail;
11957 {
11958 PyThreadState* __tstate = wxPyBeginAllowThreads();
11959 (arg1)->SetSelection(arg2);
11960
11961 wxPyEndAllowThreads(__tstate);
11962 if (PyErr_Occurred()) SWIG_fail;
11963 }
11964 Py_INCREF(Py_None); resultobj = Py_None;
11965 return resultobj;
11966 fail:
11967 return NULL;
11968 }
11969
11970
11971 static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11972 PyObject *resultobj;
11973 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11974 int result;
11975 PyObject * obj0 = 0 ;
11976 char *kwnames[] = {
11977 (char *) "self", NULL
11978 };
11979
11980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11983 {
11984 PyThreadState* __tstate = wxPyBeginAllowThreads();
11985 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11986
11987 wxPyEndAllowThreads(__tstate);
11988 if (PyErr_Occurred()) SWIG_fail;
11989 }
11990 resultobj = SWIG_FromInt((int)result);
11991 return resultobj;
11992 fail:
11993 return NULL;
11994 }
11995
11996
11997 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11998 PyObject *resultobj;
11999 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12000 wxString result;
12001 PyObject * obj0 = 0 ;
12002 char *kwnames[] = {
12003 (char *) "self", NULL
12004 };
12005
12006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12012
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 {
12017 #if wxUSE_UNICODE
12018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12019 #else
12020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12021 #endif
12022 }
12023 return resultobj;
12024 fail:
12025 return NULL;
12026 }
12027
12028
12029 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12030 PyObject *resultobj;
12031 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12032 wxString *arg2 = 0 ;
12033 bool result;
12034 bool temp2 = False ;
12035 PyObject * obj0 = 0 ;
12036 PyObject * obj1 = 0 ;
12037 char *kwnames[] = {
12038 (char *) "self",(char *) "s", NULL
12039 };
12040
12041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12044 {
12045 arg2 = wxString_in_helper(obj1);
12046 if (arg2 == NULL) SWIG_fail;
12047 temp2 = True;
12048 }
12049 {
12050 PyThreadState* __tstate = wxPyBeginAllowThreads();
12051 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12052
12053 wxPyEndAllowThreads(__tstate);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 {
12057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12058 }
12059 {
12060 if (temp2)
12061 delete arg2;
12062 }
12063 return resultobj;
12064 fail:
12065 {
12066 if (temp2)
12067 delete arg2;
12068 }
12069 return NULL;
12070 }
12071
12072
12073 static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12074 PyObject *resultobj;
12075 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12076 int result;
12077 PyObject * obj0 = 0 ;
12078 char *kwnames[] = {
12079 (char *) "self", NULL
12080 };
12081
12082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12085 {
12086 PyThreadState* __tstate = wxPyBeginAllowThreads();
12087 result = (int)((wxRadioBox const *)arg1)->GetCount();
12088
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 resultobj = SWIG_FromInt((int)result);
12093 return resultobj;
12094 fail:
12095 return NULL;
12096 }
12097
12098
12099 static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
12100 PyObject *resultobj;
12101 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12102 wxString *arg2 = 0 ;
12103 int result;
12104 bool temp2 = False ;
12105 PyObject * obj0 = 0 ;
12106 PyObject * obj1 = 0 ;
12107 char *kwnames[] = {
12108 (char *) "self",(char *) "s", NULL
12109 };
12110
12111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12114 {
12115 arg2 = wxString_in_helper(obj1);
12116 if (arg2 == NULL) SWIG_fail;
12117 temp2 = True;
12118 }
12119 {
12120 PyThreadState* __tstate = wxPyBeginAllowThreads();
12121 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12122
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 resultobj = SWIG_FromInt((int)result);
12127 {
12128 if (temp2)
12129 delete arg2;
12130 }
12131 return resultobj;
12132 fail:
12133 {
12134 if (temp2)
12135 delete arg2;
12136 }
12137 return NULL;
12138 }
12139
12140
12141 static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12142 PyObject *resultobj;
12143 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12144 int arg2 ;
12145 wxString result;
12146 PyObject * obj0 = 0 ;
12147 PyObject * obj1 = 0 ;
12148 char *kwnames[] = {
12149 (char *) "self",(char *) "n", NULL
12150 };
12151
12152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12155 arg2 = (int) SWIG_AsInt(obj1);
12156 if (PyErr_Occurred()) SWIG_fail;
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12160
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 {
12165 #if wxUSE_UNICODE
12166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12167 #else
12168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12169 #endif
12170 }
12171 return resultobj;
12172 fail:
12173 return NULL;
12174 }
12175
12176
12177 static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12178 PyObject *resultobj;
12179 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12180 int arg2 ;
12181 wxString *arg3 = 0 ;
12182 bool temp3 = False ;
12183 PyObject * obj0 = 0 ;
12184 PyObject * obj1 = 0 ;
12185 PyObject * obj2 = 0 ;
12186 char *kwnames[] = {
12187 (char *) "self",(char *) "n",(char *) "label", NULL
12188 };
12189
12190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12193 arg2 = (int) SWIG_AsInt(obj1);
12194 if (PyErr_Occurred()) SWIG_fail;
12195 {
12196 arg3 = wxString_in_helper(obj2);
12197 if (arg3 == NULL) SWIG_fail;
12198 temp3 = True;
12199 }
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 (arg1)->SetString(arg2,(wxString const &)*arg3);
12203
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 Py_INCREF(Py_None); resultobj = Py_None;
12208 {
12209 if (temp3)
12210 delete arg3;
12211 }
12212 return resultobj;
12213 fail:
12214 {
12215 if (temp3)
12216 delete arg3;
12217 }
12218 return NULL;
12219 }
12220
12221
12222 static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12223 PyObject *resultobj;
12224 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12225 int arg2 ;
12226 bool arg3 = (bool) True ;
12227 PyObject * obj0 = 0 ;
12228 PyObject * obj1 = 0 ;
12229 PyObject * obj2 = 0 ;
12230 char *kwnames[] = {
12231 (char *) "self",(char *) "n",(char *) "enable", NULL
12232 };
12233
12234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12237 arg2 = (int) SWIG_AsInt(obj1);
12238 if (PyErr_Occurred()) SWIG_fail;
12239 if (obj2) {
12240 arg3 = (bool) SWIG_AsBool(obj2);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 {
12244 PyThreadState* __tstate = wxPyBeginAllowThreads();
12245 (arg1)->Enable(arg2,arg3);
12246
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 Py_INCREF(Py_None); resultobj = Py_None;
12251 return resultobj;
12252 fail:
12253 return NULL;
12254 }
12255
12256
12257 static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12258 PyObject *resultobj;
12259 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12260 int arg2 ;
12261 bool arg3 = (bool) True ;
12262 PyObject * obj0 = 0 ;
12263 PyObject * obj1 = 0 ;
12264 PyObject * obj2 = 0 ;
12265 char *kwnames[] = {
12266 (char *) "self",(char *) "n",(char *) "show", NULL
12267 };
12268
12269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12272 arg2 = (int) SWIG_AsInt(obj1);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 if (obj2) {
12275 arg3 = (bool) SWIG_AsBool(obj2);
12276 if (PyErr_Occurred()) SWIG_fail;
12277 }
12278 {
12279 PyThreadState* __tstate = wxPyBeginAllowThreads();
12280 (arg1)->Show(arg2,arg3);
12281
12282 wxPyEndAllowThreads(__tstate);
12283 if (PyErr_Occurred()) SWIG_fail;
12284 }
12285 Py_INCREF(Py_None); resultobj = Py_None;
12286 return resultobj;
12287 fail:
12288 return NULL;
12289 }
12290
12291
12292 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12293 PyObject *resultobj;
12294 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12295 int result;
12296 PyObject * obj0 = 0 ;
12297 char *kwnames[] = {
12298 (char *) "self", NULL
12299 };
12300
12301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12304 {
12305 PyThreadState* __tstate = wxPyBeginAllowThreads();
12306 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12307
12308 wxPyEndAllowThreads(__tstate);
12309 if (PyErr_Occurred()) SWIG_fail;
12310 }
12311 resultobj = SWIG_FromInt((int)result);
12312 return resultobj;
12313 fail:
12314 return NULL;
12315 }
12316
12317
12318 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12319 PyObject *resultobj;
12320 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12321 int result;
12322 PyObject * obj0 = 0 ;
12323 char *kwnames[] = {
12324 (char *) "self", NULL
12325 };
12326
12327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12330 {
12331 PyThreadState* __tstate = wxPyBeginAllowThreads();
12332 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12333
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
12337 resultobj = SWIG_FromInt((int)result);
12338 return resultobj;
12339 fail:
12340 return NULL;
12341 }
12342
12343
12344 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12345 PyObject *resultobj;
12346 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12347 int arg2 ;
12348 int arg3 ;
12349 long arg4 ;
12350 int result;
12351 PyObject * obj0 = 0 ;
12352 PyObject * obj1 = 0 ;
12353 PyObject * obj2 = 0 ;
12354 PyObject * obj3 = 0 ;
12355 char *kwnames[] = {
12356 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12357 };
12358
12359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12362 arg2 = (int) SWIG_AsInt(obj1);
12363 if (PyErr_Occurred()) SWIG_fail;
12364 arg3 = (wxDirection) SWIG_AsInt(obj2);
12365 if (PyErr_Occurred()) SWIG_fail;
12366 arg4 = (long) SWIG_AsLong(obj3);
12367 if (PyErr_Occurred()) SWIG_fail;
12368 {
12369 PyThreadState* __tstate = wxPyBeginAllowThreads();
12370 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12371
12372 wxPyEndAllowThreads(__tstate);
12373 if (PyErr_Occurred()) SWIG_fail;
12374 }
12375 resultobj = SWIG_FromInt((int)result);
12376 return resultobj;
12377 fail:
12378 return NULL;
12379 }
12380
12381
12382 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12383 PyObject *resultobj;
12384 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12385 wxVisualAttributes result;
12386 PyObject * obj0 = 0 ;
12387 char *kwnames[] = {
12388 (char *) "variant", NULL
12389 };
12390
12391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12392 if (obj0) {
12393 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 {
12397 PyThreadState* __tstate = wxPyBeginAllowThreads();
12398 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12399
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 {
12404 wxVisualAttributes * resultptr;
12405 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12406 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12407 }
12408 return resultobj;
12409 fail:
12410 return NULL;
12411 }
12412
12413
12414 static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
12415 PyObject *obj;
12416 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12417 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12418 Py_INCREF(obj);
12419 return Py_BuildValue((char *)"");
12420 }
12421 static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12422 PyObject *resultobj;
12423 wxWindow *arg1 = (wxWindow *) 0 ;
12424 int arg2 ;
12425 wxString *arg3 = 0 ;
12426 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12427 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12428 wxSize const &arg5_defvalue = wxDefaultSize ;
12429 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12430 long arg6 = (long) 0 ;
12431 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12432 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12433 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12434 wxString *arg8 = (wxString *) &arg8_defvalue ;
12435 wxRadioButton *result;
12436 bool temp3 = False ;
12437 wxPoint temp4 ;
12438 wxSize temp5 ;
12439 bool temp8 = False ;
12440 PyObject * obj0 = 0 ;
12441 PyObject * obj1 = 0 ;
12442 PyObject * obj2 = 0 ;
12443 PyObject * obj3 = 0 ;
12444 PyObject * obj4 = 0 ;
12445 PyObject * obj5 = 0 ;
12446 PyObject * obj6 = 0 ;
12447 PyObject * obj7 = 0 ;
12448 char *kwnames[] = {
12449 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12450 };
12451
12452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12455 arg2 = (int) SWIG_AsInt(obj1);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 {
12458 arg3 = wxString_in_helper(obj2);
12459 if (arg3 == NULL) SWIG_fail;
12460 temp3 = True;
12461 }
12462 if (obj3) {
12463 {
12464 arg4 = &temp4;
12465 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12466 }
12467 }
12468 if (obj4) {
12469 {
12470 arg5 = &temp5;
12471 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12472 }
12473 }
12474 if (obj5) {
12475 arg6 = (long) SWIG_AsLong(obj5);
12476 if (PyErr_Occurred()) SWIG_fail;
12477 }
12478 if (obj6) {
12479 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12480 SWIG_POINTER_EXCEPTION | 0)) == -1)
12481 SWIG_fail;
12482 if (arg7 == NULL) {
12483 PyErr_SetString(PyExc_TypeError,"null reference");
12484 SWIG_fail;
12485 }
12486 }
12487 if (obj7) {
12488 {
12489 arg8 = wxString_in_helper(obj7);
12490 if (arg8 == NULL) SWIG_fail;
12491 temp8 = True;
12492 }
12493 }
12494 {
12495 PyThreadState* __tstate = wxPyBeginAllowThreads();
12496 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12497
12498 wxPyEndAllowThreads(__tstate);
12499 if (PyErr_Occurred()) SWIG_fail;
12500 }
12501 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12502 {
12503 if (temp3)
12504 delete arg3;
12505 }
12506 {
12507 if (temp8)
12508 delete arg8;
12509 }
12510 return resultobj;
12511 fail:
12512 {
12513 if (temp3)
12514 delete arg3;
12515 }
12516 {
12517 if (temp8)
12518 delete arg8;
12519 }
12520 return NULL;
12521 }
12522
12523
12524 static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12525 PyObject *resultobj;
12526 wxRadioButton *result;
12527 char *kwnames[] = {
12528 NULL
12529 };
12530
12531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12532 {
12533 PyThreadState* __tstate = wxPyBeginAllowThreads();
12534 result = (wxRadioButton *)new wxRadioButton();
12535
12536 wxPyEndAllowThreads(__tstate);
12537 if (PyErr_Occurred()) SWIG_fail;
12538 }
12539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12540 return resultobj;
12541 fail:
12542 return NULL;
12543 }
12544
12545
12546 static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12547 PyObject *resultobj;
12548 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12549 wxWindow *arg2 = (wxWindow *) 0 ;
12550 int arg3 ;
12551 wxString *arg4 = 0 ;
12552 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12553 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12554 wxSize const &arg6_defvalue = wxDefaultSize ;
12555 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12556 long arg7 = (long) 0 ;
12557 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12558 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12559 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12560 wxString *arg9 = (wxString *) &arg9_defvalue ;
12561 bool result;
12562 bool temp4 = False ;
12563 wxPoint temp5 ;
12564 wxSize temp6 ;
12565 bool temp9 = False ;
12566 PyObject * obj0 = 0 ;
12567 PyObject * obj1 = 0 ;
12568 PyObject * obj2 = 0 ;
12569 PyObject * obj3 = 0 ;
12570 PyObject * obj4 = 0 ;
12571 PyObject * obj5 = 0 ;
12572 PyObject * obj6 = 0 ;
12573 PyObject * obj7 = 0 ;
12574 PyObject * obj8 = 0 ;
12575 char *kwnames[] = {
12576 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12577 };
12578
12579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12582 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12584 arg3 = (int) SWIG_AsInt(obj2);
12585 if (PyErr_Occurred()) SWIG_fail;
12586 {
12587 arg4 = wxString_in_helper(obj3);
12588 if (arg4 == NULL) SWIG_fail;
12589 temp4 = True;
12590 }
12591 if (obj4) {
12592 {
12593 arg5 = &temp5;
12594 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12595 }
12596 }
12597 if (obj5) {
12598 {
12599 arg6 = &temp6;
12600 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12601 }
12602 }
12603 if (obj6) {
12604 arg7 = (long) SWIG_AsLong(obj6);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 if (obj7) {
12608 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12609 SWIG_POINTER_EXCEPTION | 0)) == -1)
12610 SWIG_fail;
12611 if (arg8 == NULL) {
12612 PyErr_SetString(PyExc_TypeError,"null reference");
12613 SWIG_fail;
12614 }
12615 }
12616 if (obj8) {
12617 {
12618 arg9 = wxString_in_helper(obj8);
12619 if (arg9 == NULL) SWIG_fail;
12620 temp9 = True;
12621 }
12622 }
12623 {
12624 PyThreadState* __tstate = wxPyBeginAllowThreads();
12625 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12626
12627 wxPyEndAllowThreads(__tstate);
12628 if (PyErr_Occurred()) SWIG_fail;
12629 }
12630 {
12631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12632 }
12633 {
12634 if (temp4)
12635 delete arg4;
12636 }
12637 {
12638 if (temp9)
12639 delete arg9;
12640 }
12641 return resultobj;
12642 fail:
12643 {
12644 if (temp4)
12645 delete arg4;
12646 }
12647 {
12648 if (temp9)
12649 delete arg9;
12650 }
12651 return NULL;
12652 }
12653
12654
12655 static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12656 PyObject *resultobj;
12657 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12658 bool result;
12659 PyObject * obj0 = 0 ;
12660 char *kwnames[] = {
12661 (char *) "self", NULL
12662 };
12663
12664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 result = (bool)(arg1)->GetValue();
12670
12671 wxPyEndAllowThreads(__tstate);
12672 if (PyErr_Occurred()) SWIG_fail;
12673 }
12674 {
12675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12676 }
12677 return resultobj;
12678 fail:
12679 return NULL;
12680 }
12681
12682
12683 static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12684 PyObject *resultobj;
12685 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12686 bool arg2 ;
12687 PyObject * obj0 = 0 ;
12688 PyObject * obj1 = 0 ;
12689 char *kwnames[] = {
12690 (char *) "self",(char *) "value", NULL
12691 };
12692
12693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12696 arg2 = (bool) SWIG_AsBool(obj1);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 {
12699 PyThreadState* __tstate = wxPyBeginAllowThreads();
12700 (arg1)->SetValue(arg2);
12701
12702 wxPyEndAllowThreads(__tstate);
12703 if (PyErr_Occurred()) SWIG_fail;
12704 }
12705 Py_INCREF(Py_None); resultobj = Py_None;
12706 return resultobj;
12707 fail:
12708 return NULL;
12709 }
12710
12711
12712 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12713 PyObject *resultobj;
12714 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12715 wxVisualAttributes result;
12716 PyObject * obj0 = 0 ;
12717 char *kwnames[] = {
12718 (char *) "variant", NULL
12719 };
12720
12721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12722 if (obj0) {
12723 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12724 if (PyErr_Occurred()) SWIG_fail;
12725 }
12726 {
12727 PyThreadState* __tstate = wxPyBeginAllowThreads();
12728 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12729
12730 wxPyEndAllowThreads(__tstate);
12731 if (PyErr_Occurred()) SWIG_fail;
12732 }
12733 {
12734 wxVisualAttributes * resultptr;
12735 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12736 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12737 }
12738 return resultobj;
12739 fail:
12740 return NULL;
12741 }
12742
12743
12744 static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
12745 PyObject *obj;
12746 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12747 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12748 Py_INCREF(obj);
12749 return Py_BuildValue((char *)"");
12750 }
12751 static int _wrap_SliderNameStr_set(PyObject *_val) {
12752 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12753 return 1;
12754 }
12755
12756
12757 static PyObject *_wrap_SliderNameStr_get() {
12758 PyObject *pyobj;
12759
12760 {
12761 #if wxUSE_UNICODE
12762 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12763 #else
12764 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12765 #endif
12766 }
12767 return pyobj;
12768 }
12769
12770
12771 static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
12772 PyObject *resultobj;
12773 wxWindow *arg1 = (wxWindow *) 0 ;
12774 int arg2 ;
12775 int arg3 ;
12776 int arg4 ;
12777 int arg5 ;
12778 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12779 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12780 wxSize const &arg7_defvalue = wxDefaultSize ;
12781 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12782 long arg8 = (long) wxSL_HORIZONTAL ;
12783 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12784 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12785 wxString const &arg10_defvalue = wxPySliderNameStr ;
12786 wxString *arg10 = (wxString *) &arg10_defvalue ;
12787 wxSlider *result;
12788 wxPoint temp6 ;
12789 wxSize temp7 ;
12790 bool temp10 = False ;
12791 PyObject * obj0 = 0 ;
12792 PyObject * obj1 = 0 ;
12793 PyObject * obj2 = 0 ;
12794 PyObject * obj3 = 0 ;
12795 PyObject * obj4 = 0 ;
12796 PyObject * obj5 = 0 ;
12797 PyObject * obj6 = 0 ;
12798 PyObject * obj7 = 0 ;
12799 PyObject * obj8 = 0 ;
12800 PyObject * obj9 = 0 ;
12801 char *kwnames[] = {
12802 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12803 };
12804
12805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12808 arg2 = (int) SWIG_AsInt(obj1);
12809 if (PyErr_Occurred()) SWIG_fail;
12810 arg3 = (int) SWIG_AsInt(obj2);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 arg4 = (int) SWIG_AsInt(obj3);
12813 if (PyErr_Occurred()) SWIG_fail;
12814 arg5 = (int) SWIG_AsInt(obj4);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 if (obj5) {
12817 {
12818 arg6 = &temp6;
12819 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12820 }
12821 }
12822 if (obj6) {
12823 {
12824 arg7 = &temp7;
12825 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12826 }
12827 }
12828 if (obj7) {
12829 arg8 = (long) SWIG_AsLong(obj7);
12830 if (PyErr_Occurred()) SWIG_fail;
12831 }
12832 if (obj8) {
12833 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12834 SWIG_POINTER_EXCEPTION | 0)) == -1)
12835 SWIG_fail;
12836 if (arg9 == NULL) {
12837 PyErr_SetString(PyExc_TypeError,"null reference");
12838 SWIG_fail;
12839 }
12840 }
12841 if (obj9) {
12842 {
12843 arg10 = wxString_in_helper(obj9);
12844 if (arg10 == NULL) SWIG_fail;
12845 temp10 = True;
12846 }
12847 }
12848 {
12849 PyThreadState* __tstate = wxPyBeginAllowThreads();
12850 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12851
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12856 {
12857 if (temp10)
12858 delete arg10;
12859 }
12860 return resultobj;
12861 fail:
12862 {
12863 if (temp10)
12864 delete arg10;
12865 }
12866 return NULL;
12867 }
12868
12869
12870 static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
12871 PyObject *resultobj;
12872 wxSlider *result;
12873 char *kwnames[] = {
12874 NULL
12875 };
12876
12877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12878 {
12879 PyThreadState* __tstate = wxPyBeginAllowThreads();
12880 result = (wxSlider *)new wxSlider();
12881
12882 wxPyEndAllowThreads(__tstate);
12883 if (PyErr_Occurred()) SWIG_fail;
12884 }
12885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12886 return resultobj;
12887 fail:
12888 return NULL;
12889 }
12890
12891
12892 static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12893 PyObject *resultobj;
12894 wxSlider *arg1 = (wxSlider *) 0 ;
12895 wxWindow *arg2 = (wxWindow *) 0 ;
12896 int arg3 ;
12897 int arg4 ;
12898 int arg5 ;
12899 int arg6 ;
12900 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12901 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12902 wxSize const &arg8_defvalue = wxDefaultSize ;
12903 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12904 long arg9 = (long) wxSL_HORIZONTAL ;
12905 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12906 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12907 wxString const &arg11_defvalue = wxPySliderNameStr ;
12908 wxString *arg11 = (wxString *) &arg11_defvalue ;
12909 bool result;
12910 wxPoint temp7 ;
12911 wxSize temp8 ;
12912 bool temp11 = False ;
12913 PyObject * obj0 = 0 ;
12914 PyObject * obj1 = 0 ;
12915 PyObject * obj2 = 0 ;
12916 PyObject * obj3 = 0 ;
12917 PyObject * obj4 = 0 ;
12918 PyObject * obj5 = 0 ;
12919 PyObject * obj6 = 0 ;
12920 PyObject * obj7 = 0 ;
12921 PyObject * obj8 = 0 ;
12922 PyObject * obj9 = 0 ;
12923 PyObject * obj10 = 0 ;
12924 char *kwnames[] = {
12925 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12926 };
12927
12928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12931 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12933 arg3 = (int) SWIG_AsInt(obj2);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 arg4 = (int) SWIG_AsInt(obj3);
12936 if (PyErr_Occurred()) SWIG_fail;
12937 arg5 = (int) SWIG_AsInt(obj4);
12938 if (PyErr_Occurred()) SWIG_fail;
12939 arg6 = (int) SWIG_AsInt(obj5);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 if (obj6) {
12942 {
12943 arg7 = &temp7;
12944 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12945 }
12946 }
12947 if (obj7) {
12948 {
12949 arg8 = &temp8;
12950 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12951 }
12952 }
12953 if (obj8) {
12954 arg9 = (long) SWIG_AsLong(obj8);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 if (obj9) {
12958 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12959 SWIG_POINTER_EXCEPTION | 0)) == -1)
12960 SWIG_fail;
12961 if (arg10 == NULL) {
12962 PyErr_SetString(PyExc_TypeError,"null reference");
12963 SWIG_fail;
12964 }
12965 }
12966 if (obj10) {
12967 {
12968 arg11 = wxString_in_helper(obj10);
12969 if (arg11 == NULL) SWIG_fail;
12970 temp11 = True;
12971 }
12972 }
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12976
12977 wxPyEndAllowThreads(__tstate);
12978 if (PyErr_Occurred()) SWIG_fail;
12979 }
12980 {
12981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12982 }
12983 {
12984 if (temp11)
12985 delete arg11;
12986 }
12987 return resultobj;
12988 fail:
12989 {
12990 if (temp11)
12991 delete arg11;
12992 }
12993 return NULL;
12994 }
12995
12996
12997 static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12998 PyObject *resultobj;
12999 wxSlider *arg1 = (wxSlider *) 0 ;
13000 int result;
13001 PyObject * obj0 = 0 ;
13002 char *kwnames[] = {
13003 (char *) "self", NULL
13004 };
13005
13006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13009 {
13010 PyThreadState* __tstate = wxPyBeginAllowThreads();
13011 result = (int)((wxSlider const *)arg1)->GetValue();
13012
13013 wxPyEndAllowThreads(__tstate);
13014 if (PyErr_Occurred()) SWIG_fail;
13015 }
13016 resultobj = SWIG_FromInt((int)result);
13017 return resultobj;
13018 fail:
13019 return NULL;
13020 }
13021
13022
13023 static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13024 PyObject *resultobj;
13025 wxSlider *arg1 = (wxSlider *) 0 ;
13026 int arg2 ;
13027 PyObject * obj0 = 0 ;
13028 PyObject * obj1 = 0 ;
13029 char *kwnames[] = {
13030 (char *) "self",(char *) "value", NULL
13031 };
13032
13033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13036 arg2 = (int) SWIG_AsInt(obj1);
13037 if (PyErr_Occurred()) SWIG_fail;
13038 {
13039 PyThreadState* __tstate = wxPyBeginAllowThreads();
13040 (arg1)->SetValue(arg2);
13041
13042 wxPyEndAllowThreads(__tstate);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 Py_INCREF(Py_None); resultobj = Py_None;
13046 return resultobj;
13047 fail:
13048 return NULL;
13049 }
13050
13051
13052 static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
13053 PyObject *resultobj;
13054 wxSlider *arg1 = (wxSlider *) 0 ;
13055 int arg2 ;
13056 int arg3 ;
13057 PyObject * obj0 = 0 ;
13058 PyObject * obj1 = 0 ;
13059 PyObject * obj2 = 0 ;
13060 char *kwnames[] = {
13061 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13062 };
13063
13064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13067 arg2 = (int) SWIG_AsInt(obj1);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 arg3 = (int) SWIG_AsInt(obj2);
13070 if (PyErr_Occurred()) SWIG_fail;
13071 {
13072 PyThreadState* __tstate = wxPyBeginAllowThreads();
13073 (arg1)->SetRange(arg2,arg3);
13074
13075 wxPyEndAllowThreads(__tstate);
13076 if (PyErr_Occurred()) SWIG_fail;
13077 }
13078 Py_INCREF(Py_None); resultobj = Py_None;
13079 return resultobj;
13080 fail:
13081 return NULL;
13082 }
13083
13084
13085 static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
13086 PyObject *resultobj;
13087 wxSlider *arg1 = (wxSlider *) 0 ;
13088 int result;
13089 PyObject * obj0 = 0 ;
13090 char *kwnames[] = {
13091 (char *) "self", NULL
13092 };
13093
13094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 result = (int)((wxSlider const *)arg1)->GetMin();
13100
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = SWIG_FromInt((int)result);
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj;
13113 wxSlider *arg1 = (wxSlider *) 0 ;
13114 int result;
13115 PyObject * obj0 = 0 ;
13116 char *kwnames[] = {
13117 (char *) "self", NULL
13118 };
13119
13120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13123 {
13124 PyThreadState* __tstate = wxPyBeginAllowThreads();
13125 result = (int)((wxSlider const *)arg1)->GetMax();
13126
13127 wxPyEndAllowThreads(__tstate);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 resultobj = SWIG_FromInt((int)result);
13131 return resultobj;
13132 fail:
13133 return NULL;
13134 }
13135
13136
13137 static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
13138 PyObject *resultobj;
13139 wxSlider *arg1 = (wxSlider *) 0 ;
13140 int arg2 ;
13141 PyObject * obj0 = 0 ;
13142 PyObject * obj1 = 0 ;
13143 char *kwnames[] = {
13144 (char *) "self",(char *) "minValue", NULL
13145 };
13146
13147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13150 arg2 = (int) SWIG_AsInt(obj1);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 {
13153 PyThreadState* __tstate = wxPyBeginAllowThreads();
13154 (arg1)->SetMin(arg2);
13155
13156 wxPyEndAllowThreads(__tstate);
13157 if (PyErr_Occurred()) SWIG_fail;
13158 }
13159 Py_INCREF(Py_None); resultobj = Py_None;
13160 return resultobj;
13161 fail:
13162 return NULL;
13163 }
13164
13165
13166 static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13167 PyObject *resultobj;
13168 wxSlider *arg1 = (wxSlider *) 0 ;
13169 int arg2 ;
13170 PyObject * obj0 = 0 ;
13171 PyObject * obj1 = 0 ;
13172 char *kwnames[] = {
13173 (char *) "self",(char *) "maxValue", NULL
13174 };
13175
13176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13179 arg2 = (int) SWIG_AsInt(obj1);
13180 if (PyErr_Occurred()) SWIG_fail;
13181 {
13182 PyThreadState* __tstate = wxPyBeginAllowThreads();
13183 (arg1)->SetMax(arg2);
13184
13185 wxPyEndAllowThreads(__tstate);
13186 if (PyErr_Occurred()) SWIG_fail;
13187 }
13188 Py_INCREF(Py_None); resultobj = Py_None;
13189 return resultobj;
13190 fail:
13191 return NULL;
13192 }
13193
13194
13195 static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13196 PyObject *resultobj;
13197 wxSlider *arg1 = (wxSlider *) 0 ;
13198 int arg2 ;
13199 PyObject * obj0 = 0 ;
13200 PyObject * obj1 = 0 ;
13201 char *kwnames[] = {
13202 (char *) "self",(char *) "lineSize", NULL
13203 };
13204
13205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13208 arg2 = (int) SWIG_AsInt(obj1);
13209 if (PyErr_Occurred()) SWIG_fail;
13210 {
13211 PyThreadState* __tstate = wxPyBeginAllowThreads();
13212 (arg1)->SetLineSize(arg2);
13213
13214 wxPyEndAllowThreads(__tstate);
13215 if (PyErr_Occurred()) SWIG_fail;
13216 }
13217 Py_INCREF(Py_None); resultobj = Py_None;
13218 return resultobj;
13219 fail:
13220 return NULL;
13221 }
13222
13223
13224 static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13225 PyObject *resultobj;
13226 wxSlider *arg1 = (wxSlider *) 0 ;
13227 int arg2 ;
13228 PyObject * obj0 = 0 ;
13229 PyObject * obj1 = 0 ;
13230 char *kwnames[] = {
13231 (char *) "self",(char *) "pageSize", NULL
13232 };
13233
13234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13237 arg2 = (int) SWIG_AsInt(obj1);
13238 if (PyErr_Occurred()) SWIG_fail;
13239 {
13240 PyThreadState* __tstate = wxPyBeginAllowThreads();
13241 (arg1)->SetPageSize(arg2);
13242
13243 wxPyEndAllowThreads(__tstate);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 Py_INCREF(Py_None); resultobj = Py_None;
13247 return resultobj;
13248 fail:
13249 return NULL;
13250 }
13251
13252
13253 static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13254 PyObject *resultobj;
13255 wxSlider *arg1 = (wxSlider *) 0 ;
13256 int result;
13257 PyObject * obj0 = 0 ;
13258 char *kwnames[] = {
13259 (char *) "self", NULL
13260 };
13261
13262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13265 {
13266 PyThreadState* __tstate = wxPyBeginAllowThreads();
13267 result = (int)((wxSlider const *)arg1)->GetLineSize();
13268
13269 wxPyEndAllowThreads(__tstate);
13270 if (PyErr_Occurred()) SWIG_fail;
13271 }
13272 resultobj = SWIG_FromInt((int)result);
13273 return resultobj;
13274 fail:
13275 return NULL;
13276 }
13277
13278
13279 static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13280 PyObject *resultobj;
13281 wxSlider *arg1 = (wxSlider *) 0 ;
13282 int result;
13283 PyObject * obj0 = 0 ;
13284 char *kwnames[] = {
13285 (char *) "self", NULL
13286 };
13287
13288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 result = (int)((wxSlider const *)arg1)->GetPageSize();
13294
13295 wxPyEndAllowThreads(__tstate);
13296 if (PyErr_Occurred()) SWIG_fail;
13297 }
13298 resultobj = SWIG_FromInt((int)result);
13299 return resultobj;
13300 fail:
13301 return NULL;
13302 }
13303
13304
13305 static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13306 PyObject *resultobj;
13307 wxSlider *arg1 = (wxSlider *) 0 ;
13308 int arg2 ;
13309 PyObject * obj0 = 0 ;
13310 PyObject * obj1 = 0 ;
13311 char *kwnames[] = {
13312 (char *) "self",(char *) "lenPixels", NULL
13313 };
13314
13315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13318 arg2 = (int) SWIG_AsInt(obj1);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 {
13321 PyThreadState* __tstate = wxPyBeginAllowThreads();
13322 (arg1)->SetThumbLength(arg2);
13323
13324 wxPyEndAllowThreads(__tstate);
13325 if (PyErr_Occurred()) SWIG_fail;
13326 }
13327 Py_INCREF(Py_None); resultobj = Py_None;
13328 return resultobj;
13329 fail:
13330 return NULL;
13331 }
13332
13333
13334 static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13335 PyObject *resultobj;
13336 wxSlider *arg1 = (wxSlider *) 0 ;
13337 int result;
13338 PyObject * obj0 = 0 ;
13339 char *kwnames[] = {
13340 (char *) "self", NULL
13341 };
13342
13343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13349
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 resultobj = SWIG_FromInt((int)result);
13354 return resultobj;
13355 fail:
13356 return NULL;
13357 }
13358
13359
13360 static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13361 PyObject *resultobj;
13362 wxSlider *arg1 = (wxSlider *) 0 ;
13363 int arg2 ;
13364 int arg3 = (int) 1 ;
13365 PyObject * obj0 = 0 ;
13366 PyObject * obj1 = 0 ;
13367 PyObject * obj2 = 0 ;
13368 char *kwnames[] = {
13369 (char *) "self",(char *) "n",(char *) "pos", NULL
13370 };
13371
13372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13375 arg2 = (int) SWIG_AsInt(obj1);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 if (obj2) {
13378 arg3 = (int) SWIG_AsInt(obj2);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 {
13382 PyThreadState* __tstate = wxPyBeginAllowThreads();
13383 (arg1)->SetTickFreq(arg2,arg3);
13384
13385 wxPyEndAllowThreads(__tstate);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 Py_INCREF(Py_None); resultobj = Py_None;
13389 return resultobj;
13390 fail:
13391 return NULL;
13392 }
13393
13394
13395 static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13396 PyObject *resultobj;
13397 wxSlider *arg1 = (wxSlider *) 0 ;
13398 int result;
13399 PyObject * obj0 = 0 ;
13400 char *kwnames[] = {
13401 (char *) "self", NULL
13402 };
13403
13404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13407 {
13408 PyThreadState* __tstate = wxPyBeginAllowThreads();
13409 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13410
13411 wxPyEndAllowThreads(__tstate);
13412 if (PyErr_Occurred()) SWIG_fail;
13413 }
13414 resultobj = SWIG_FromInt((int)result);
13415 return resultobj;
13416 fail:
13417 return NULL;
13418 }
13419
13420
13421 static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
13422 PyObject *resultobj;
13423 wxSlider *arg1 = (wxSlider *) 0 ;
13424 PyObject * obj0 = 0 ;
13425 char *kwnames[] = {
13426 (char *) "self", NULL
13427 };
13428
13429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13432 {
13433 PyThreadState* __tstate = wxPyBeginAllowThreads();
13434 (arg1)->ClearTicks();
13435
13436 wxPyEndAllowThreads(__tstate);
13437 if (PyErr_Occurred()) SWIG_fail;
13438 }
13439 Py_INCREF(Py_None); resultobj = Py_None;
13440 return resultobj;
13441 fail:
13442 return NULL;
13443 }
13444
13445
13446 static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
13447 PyObject *resultobj;
13448 wxSlider *arg1 = (wxSlider *) 0 ;
13449 int arg2 ;
13450 PyObject * obj0 = 0 ;
13451 PyObject * obj1 = 0 ;
13452 char *kwnames[] = {
13453 (char *) "self",(char *) "tickPos", NULL
13454 };
13455
13456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13459 arg2 = (int) SWIG_AsInt(obj1);
13460 if (PyErr_Occurred()) SWIG_fail;
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 (arg1)->SetTick(arg2);
13464
13465 wxPyEndAllowThreads(__tstate);
13466 if (PyErr_Occurred()) SWIG_fail;
13467 }
13468 Py_INCREF(Py_None); resultobj = Py_None;
13469 return resultobj;
13470 fail:
13471 return NULL;
13472 }
13473
13474
13475 static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
13476 PyObject *resultobj;
13477 wxSlider *arg1 = (wxSlider *) 0 ;
13478 PyObject * obj0 = 0 ;
13479 char *kwnames[] = {
13480 (char *) "self", NULL
13481 };
13482
13483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13486 {
13487 PyThreadState* __tstate = wxPyBeginAllowThreads();
13488 (arg1)->ClearSel();
13489
13490 wxPyEndAllowThreads(__tstate);
13491 if (PyErr_Occurred()) SWIG_fail;
13492 }
13493 Py_INCREF(Py_None); resultobj = Py_None;
13494 return resultobj;
13495 fail:
13496 return NULL;
13497 }
13498
13499
13500 static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj;
13502 wxSlider *arg1 = (wxSlider *) 0 ;
13503 int result;
13504 PyObject * obj0 = 0 ;
13505 char *kwnames[] = {
13506 (char *) "self", NULL
13507 };
13508
13509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13512 {
13513 PyThreadState* __tstate = wxPyBeginAllowThreads();
13514 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13515
13516 wxPyEndAllowThreads(__tstate);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 }
13519 resultobj = SWIG_FromInt((int)result);
13520 return resultobj;
13521 fail:
13522 return NULL;
13523 }
13524
13525
13526 static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
13527 PyObject *resultobj;
13528 wxSlider *arg1 = (wxSlider *) 0 ;
13529 int result;
13530 PyObject * obj0 = 0 ;
13531 char *kwnames[] = {
13532 (char *) "self", NULL
13533 };
13534
13535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13538 {
13539 PyThreadState* __tstate = wxPyBeginAllowThreads();
13540 result = (int)((wxSlider const *)arg1)->GetSelStart();
13541
13542 wxPyEndAllowThreads(__tstate);
13543 if (PyErr_Occurred()) SWIG_fail;
13544 }
13545 resultobj = SWIG_FromInt((int)result);
13546 return resultobj;
13547 fail:
13548 return NULL;
13549 }
13550
13551
13552 static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13553 PyObject *resultobj;
13554 wxSlider *arg1 = (wxSlider *) 0 ;
13555 int arg2 ;
13556 int arg3 ;
13557 PyObject * obj0 = 0 ;
13558 PyObject * obj1 = 0 ;
13559 PyObject * obj2 = 0 ;
13560 char *kwnames[] = {
13561 (char *) "self",(char *) "min",(char *) "max", NULL
13562 };
13563
13564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13567 arg2 = (int) SWIG_AsInt(obj1);
13568 if (PyErr_Occurred()) SWIG_fail;
13569 arg3 = (int) SWIG_AsInt(obj2);
13570 if (PyErr_Occurred()) SWIG_fail;
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 (arg1)->SetSelection(arg2,arg3);
13574
13575 wxPyEndAllowThreads(__tstate);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 }
13578 Py_INCREF(Py_None); resultobj = Py_None;
13579 return resultobj;
13580 fail:
13581 return NULL;
13582 }
13583
13584
13585 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13586 PyObject *resultobj;
13587 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13588 wxVisualAttributes result;
13589 PyObject * obj0 = 0 ;
13590 char *kwnames[] = {
13591 (char *) "variant", NULL
13592 };
13593
13594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13595 if (obj0) {
13596 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13597 if (PyErr_Occurred()) SWIG_fail;
13598 }
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13602
13603 wxPyEndAllowThreads(__tstate);
13604 if (PyErr_Occurred()) SWIG_fail;
13605 }
13606 {
13607 wxVisualAttributes * resultptr;
13608 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13609 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13610 }
13611 return resultobj;
13612 fail:
13613 return NULL;
13614 }
13615
13616
13617 static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
13618 PyObject *obj;
13619 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13620 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13621 Py_INCREF(obj);
13622 return Py_BuildValue((char *)"");
13623 }
13624 static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
13625 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13626 return 1;
13627 }
13628
13629
13630 static PyObject *_wrap_ToggleButtonNameStr_get() {
13631 PyObject *pyobj;
13632
13633 {
13634 #if wxUSE_UNICODE
13635 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13636 #else
13637 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13638 #endif
13639 }
13640 return pyobj;
13641 }
13642
13643
13644 static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13645 PyObject *resultobj;
13646 wxWindow *arg1 = (wxWindow *) 0 ;
13647 int arg2 ;
13648 wxString *arg3 = 0 ;
13649 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13650 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13651 wxSize const &arg5_defvalue = wxDefaultSize ;
13652 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13653 long arg6 = (long) 0 ;
13654 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13655 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13656 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13657 wxString *arg8 = (wxString *) &arg8_defvalue ;
13658 wxToggleButton *result;
13659 bool temp3 = False ;
13660 wxPoint temp4 ;
13661 wxSize temp5 ;
13662 bool temp8 = False ;
13663 PyObject * obj0 = 0 ;
13664 PyObject * obj1 = 0 ;
13665 PyObject * obj2 = 0 ;
13666 PyObject * obj3 = 0 ;
13667 PyObject * obj4 = 0 ;
13668 PyObject * obj5 = 0 ;
13669 PyObject * obj6 = 0 ;
13670 PyObject * obj7 = 0 ;
13671 char *kwnames[] = {
13672 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13673 };
13674
13675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13678 arg2 = (int) SWIG_AsInt(obj1);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 {
13681 arg3 = wxString_in_helper(obj2);
13682 if (arg3 == NULL) SWIG_fail;
13683 temp3 = True;
13684 }
13685 if (obj3) {
13686 {
13687 arg4 = &temp4;
13688 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13689 }
13690 }
13691 if (obj4) {
13692 {
13693 arg5 = &temp5;
13694 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13695 }
13696 }
13697 if (obj5) {
13698 arg6 = (long) SWIG_AsLong(obj5);
13699 if (PyErr_Occurred()) SWIG_fail;
13700 }
13701 if (obj6) {
13702 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13703 SWIG_POINTER_EXCEPTION | 0)) == -1)
13704 SWIG_fail;
13705 if (arg7 == NULL) {
13706 PyErr_SetString(PyExc_TypeError,"null reference");
13707 SWIG_fail;
13708 }
13709 }
13710 if (obj7) {
13711 {
13712 arg8 = wxString_in_helper(obj7);
13713 if (arg8 == NULL) SWIG_fail;
13714 temp8 = True;
13715 }
13716 }
13717 {
13718 PyThreadState* __tstate = wxPyBeginAllowThreads();
13719 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13720
13721 wxPyEndAllowThreads(__tstate);
13722 if (PyErr_Occurred()) SWIG_fail;
13723 }
13724 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13725 {
13726 if (temp3)
13727 delete arg3;
13728 }
13729 {
13730 if (temp8)
13731 delete arg8;
13732 }
13733 return resultobj;
13734 fail:
13735 {
13736 if (temp3)
13737 delete arg3;
13738 }
13739 {
13740 if (temp8)
13741 delete arg8;
13742 }
13743 return NULL;
13744 }
13745
13746
13747 static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13748 PyObject *resultobj;
13749 wxToggleButton *result;
13750 char *kwnames[] = {
13751 NULL
13752 };
13753
13754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
13755 {
13756 PyThreadState* __tstate = wxPyBeginAllowThreads();
13757 result = (wxToggleButton *)new wxToggleButton();
13758
13759 wxPyEndAllowThreads(__tstate);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 }
13762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13763 return resultobj;
13764 fail:
13765 return NULL;
13766 }
13767
13768
13769 static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13770 PyObject *resultobj;
13771 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13772 wxWindow *arg2 = (wxWindow *) 0 ;
13773 int arg3 ;
13774 wxString *arg4 = 0 ;
13775 wxPoint const &arg5_defvalue = wxDefaultPosition ;
13776 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
13777 wxSize const &arg6_defvalue = wxDefaultSize ;
13778 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
13779 long arg7 = (long) 0 ;
13780 wxValidator const &arg8_defvalue = wxDefaultValidator ;
13781 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
13782 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
13783 wxString *arg9 = (wxString *) &arg9_defvalue ;
13784 bool result;
13785 bool temp4 = False ;
13786 wxPoint temp5 ;
13787 wxSize temp6 ;
13788 bool temp9 = False ;
13789 PyObject * obj0 = 0 ;
13790 PyObject * obj1 = 0 ;
13791 PyObject * obj2 = 0 ;
13792 PyObject * obj3 = 0 ;
13793 PyObject * obj4 = 0 ;
13794 PyObject * obj5 = 0 ;
13795 PyObject * obj6 = 0 ;
13796 PyObject * obj7 = 0 ;
13797 PyObject * obj8 = 0 ;
13798 char *kwnames[] = {
13799 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13800 };
13801
13802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
13803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13805 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13807 arg3 = (int) SWIG_AsInt(obj2);
13808 if (PyErr_Occurred()) SWIG_fail;
13809 {
13810 arg4 = wxString_in_helper(obj3);
13811 if (arg4 == NULL) SWIG_fail;
13812 temp4 = True;
13813 }
13814 if (obj4) {
13815 {
13816 arg5 = &temp5;
13817 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13818 }
13819 }
13820 if (obj5) {
13821 {
13822 arg6 = &temp6;
13823 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13824 }
13825 }
13826 if (obj6) {
13827 arg7 = (long) SWIG_AsLong(obj6);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 }
13830 if (obj7) {
13831 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13832 SWIG_POINTER_EXCEPTION | 0)) == -1)
13833 SWIG_fail;
13834 if (arg8 == NULL) {
13835 PyErr_SetString(PyExc_TypeError,"null reference");
13836 SWIG_fail;
13837 }
13838 }
13839 if (obj8) {
13840 {
13841 arg9 = wxString_in_helper(obj8);
13842 if (arg9 == NULL) SWIG_fail;
13843 temp9 = True;
13844 }
13845 }
13846 {
13847 PyThreadState* __tstate = wxPyBeginAllowThreads();
13848 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13849
13850 wxPyEndAllowThreads(__tstate);
13851 if (PyErr_Occurred()) SWIG_fail;
13852 }
13853 {
13854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13855 }
13856 {
13857 if (temp4)
13858 delete arg4;
13859 }
13860 {
13861 if (temp9)
13862 delete arg9;
13863 }
13864 return resultobj;
13865 fail:
13866 {
13867 if (temp4)
13868 delete arg4;
13869 }
13870 {
13871 if (temp9)
13872 delete arg9;
13873 }
13874 return NULL;
13875 }
13876
13877
13878 static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13879 PyObject *resultobj;
13880 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13881 bool arg2 ;
13882 PyObject * obj0 = 0 ;
13883 PyObject * obj1 = 0 ;
13884 char *kwnames[] = {
13885 (char *) "self",(char *) "value", NULL
13886 };
13887
13888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13891 arg2 = (bool) SWIG_AsBool(obj1);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 {
13894 PyThreadState* __tstate = wxPyBeginAllowThreads();
13895 (arg1)->SetValue(arg2);
13896
13897 wxPyEndAllowThreads(__tstate);
13898 if (PyErr_Occurred()) SWIG_fail;
13899 }
13900 Py_INCREF(Py_None); resultobj = Py_None;
13901 return resultobj;
13902 fail:
13903 return NULL;
13904 }
13905
13906
13907 static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13908 PyObject *resultobj;
13909 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13910 bool result;
13911 PyObject * obj0 = 0 ;
13912 char *kwnames[] = {
13913 (char *) "self", NULL
13914 };
13915
13916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
13917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13919 {
13920 PyThreadState* __tstate = wxPyBeginAllowThreads();
13921 result = (bool)((wxToggleButton const *)arg1)->GetValue();
13922
13923 wxPyEndAllowThreads(__tstate);
13924 if (PyErr_Occurred()) SWIG_fail;
13925 }
13926 {
13927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13928 }
13929 return resultobj;
13930 fail:
13931 return NULL;
13932 }
13933
13934
13935 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
13936 PyObject *resultobj;
13937 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13938 wxString *arg2 = 0 ;
13939 bool temp2 = False ;
13940 PyObject * obj0 = 0 ;
13941 PyObject * obj1 = 0 ;
13942 char *kwnames[] = {
13943 (char *) "self",(char *) "label", NULL
13944 };
13945
13946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
13947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13949 {
13950 arg2 = wxString_in_helper(obj1);
13951 if (arg2 == NULL) SWIG_fail;
13952 temp2 = True;
13953 }
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 (arg1)->SetLabel((wxString const &)*arg2);
13957
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 Py_INCREF(Py_None); resultobj = Py_None;
13962 {
13963 if (temp2)
13964 delete arg2;
13965 }
13966 return resultobj;
13967 fail:
13968 {
13969 if (temp2)
13970 delete arg2;
13971 }
13972 return NULL;
13973 }
13974
13975
13976 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13977 PyObject *resultobj;
13978 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13979 wxVisualAttributes result;
13980 PyObject * obj0 = 0 ;
13981 char *kwnames[] = {
13982 (char *) "variant", NULL
13983 };
13984
13985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13986 if (obj0) {
13987 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13988 if (PyErr_Occurred()) SWIG_fail;
13989 }
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
13993
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 {
13998 wxVisualAttributes * resultptr;
13999 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14000 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14001 }
14002 return resultobj;
14003 fail:
14004 return NULL;
14005 }
14006
14007
14008 static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
14009 PyObject *obj;
14010 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14011 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14012 Py_INCREF(obj);
14013 return Py_BuildValue((char *)"");
14014 }
14015 static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
14016 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14017 return 1;
14018 }
14019
14020
14021 static PyObject *_wrap_NOTEBOOK_NAME_get() {
14022 PyObject *pyobj;
14023
14024 {
14025 #if wxUSE_UNICODE
14026 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14027 #else
14028 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14029 #endif
14030 }
14031 return pyobj;
14032 }
14033
14034
14035 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14036 PyObject *resultobj;
14037 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14038 size_t result;
14039 PyObject * obj0 = 0 ;
14040 char *kwnames[] = {
14041 (char *) "self", NULL
14042 };
14043
14044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
14045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14047 {
14048 PyThreadState* __tstate = wxPyBeginAllowThreads();
14049 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
14050
14051 wxPyEndAllowThreads(__tstate);
14052 if (PyErr_Occurred()) SWIG_fail;
14053 }
14054 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14055 return resultobj;
14056 fail:
14057 return NULL;
14058 }
14059
14060
14061 static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14062 PyObject *resultobj;
14063 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14064 size_t arg2 ;
14065 wxWindow *result;
14066 PyObject * obj0 = 0 ;
14067 PyObject * obj1 = 0 ;
14068 char *kwnames[] = {
14069 (char *) "self",(char *) "n", NULL
14070 };
14071
14072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
14073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14075 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14076 if (PyErr_Occurred()) SWIG_fail;
14077 {
14078 PyThreadState* __tstate = wxPyBeginAllowThreads();
14079 result = (wxWindow *)(arg1)->GetPage(arg2);
14080
14081 wxPyEndAllowThreads(__tstate);
14082 if (PyErr_Occurred()) SWIG_fail;
14083 }
14084 {
14085 resultobj = wxPyMake_wxObject(result);
14086 }
14087 return resultobj;
14088 fail:
14089 return NULL;
14090 }
14091
14092
14093 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14094 PyObject *resultobj;
14095 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14096 int result;
14097 PyObject * obj0 = 0 ;
14098 char *kwnames[] = {
14099 (char *) "self", NULL
14100 };
14101
14102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14105 {
14106 PyThreadState* __tstate = wxPyBeginAllowThreads();
14107 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14108
14109 wxPyEndAllowThreads(__tstate);
14110 if (PyErr_Occurred()) SWIG_fail;
14111 }
14112 resultobj = SWIG_FromInt((int)result);
14113 return resultobj;
14114 fail:
14115 return NULL;
14116 }
14117
14118
14119 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14120 PyObject *resultobj;
14121 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14122 size_t arg2 ;
14123 wxString *arg3 = 0 ;
14124 bool result;
14125 bool temp3 = False ;
14126 PyObject * obj0 = 0 ;
14127 PyObject * obj1 = 0 ;
14128 PyObject * obj2 = 0 ;
14129 char *kwnames[] = {
14130 (char *) "self",(char *) "n",(char *) "strText", NULL
14131 };
14132
14133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14136 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14137 if (PyErr_Occurred()) SWIG_fail;
14138 {
14139 arg3 = wxString_in_helper(obj2);
14140 if (arg3 == NULL) SWIG_fail;
14141 temp3 = True;
14142 }
14143 {
14144 PyThreadState* __tstate = wxPyBeginAllowThreads();
14145 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14146
14147 wxPyEndAllowThreads(__tstate);
14148 if (PyErr_Occurred()) SWIG_fail;
14149 }
14150 {
14151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14152 }
14153 {
14154 if (temp3)
14155 delete arg3;
14156 }
14157 return resultobj;
14158 fail:
14159 {
14160 if (temp3)
14161 delete arg3;
14162 }
14163 return NULL;
14164 }
14165
14166
14167 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14168 PyObject *resultobj;
14169 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14170 size_t arg2 ;
14171 wxString result;
14172 PyObject * obj0 = 0 ;
14173 PyObject * obj1 = 0 ;
14174 char *kwnames[] = {
14175 (char *) "self",(char *) "n", NULL
14176 };
14177
14178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14181 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14182 if (PyErr_Occurred()) SWIG_fail;
14183 {
14184 PyThreadState* __tstate = wxPyBeginAllowThreads();
14185 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14186
14187 wxPyEndAllowThreads(__tstate);
14188 if (PyErr_Occurred()) SWIG_fail;
14189 }
14190 {
14191 #if wxUSE_UNICODE
14192 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14193 #else
14194 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14195 #endif
14196 }
14197 return resultobj;
14198 fail:
14199 return NULL;
14200 }
14201
14202
14203 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14204 PyObject *resultobj;
14205 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14206 wxImageList *arg2 = (wxImageList *) 0 ;
14207 PyObject * obj0 = 0 ;
14208 PyObject * obj1 = 0 ;
14209 char *kwnames[] = {
14210 (char *) "self",(char *) "imageList", NULL
14211 };
14212
14213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14216 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14218 {
14219 PyThreadState* __tstate = wxPyBeginAllowThreads();
14220 (arg1)->SetImageList(arg2);
14221
14222 wxPyEndAllowThreads(__tstate);
14223 if (PyErr_Occurred()) SWIG_fail;
14224 }
14225 Py_INCREF(Py_None); resultobj = Py_None;
14226 return resultobj;
14227 fail:
14228 return NULL;
14229 }
14230
14231
14232 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14233 PyObject *resultobj;
14234 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14235 wxImageList *arg2 = (wxImageList *) 0 ;
14236 PyObject * obj0 = 0 ;
14237 PyObject * obj1 = 0 ;
14238 char *kwnames[] = {
14239 (char *) "self",(char *) "imageList", NULL
14240 };
14241
14242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14245 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14246 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14247 {
14248 PyThreadState* __tstate = wxPyBeginAllowThreads();
14249 (arg1)->AssignImageList(arg2);
14250
14251 wxPyEndAllowThreads(__tstate);
14252 if (PyErr_Occurred()) SWIG_fail;
14253 }
14254 Py_INCREF(Py_None); resultobj = Py_None;
14255 return resultobj;
14256 fail:
14257 return NULL;
14258 }
14259
14260
14261 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14262 PyObject *resultobj;
14263 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14264 wxImageList *result;
14265 PyObject * obj0 = 0 ;
14266 char *kwnames[] = {
14267 (char *) "self", NULL
14268 };
14269
14270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14273 {
14274 PyThreadState* __tstate = wxPyBeginAllowThreads();
14275 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14276
14277 wxPyEndAllowThreads(__tstate);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 }
14280 {
14281 resultobj = wxPyMake_wxObject(result);
14282 }
14283 return resultobj;
14284 fail:
14285 return NULL;
14286 }
14287
14288
14289 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj;
14291 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14292 size_t arg2 ;
14293 int result;
14294 PyObject * obj0 = 0 ;
14295 PyObject * obj1 = 0 ;
14296 char *kwnames[] = {
14297 (char *) "self",(char *) "n", NULL
14298 };
14299
14300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14303 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14304 if (PyErr_Occurred()) SWIG_fail;
14305 {
14306 PyThreadState* __tstate = wxPyBeginAllowThreads();
14307 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14308
14309 wxPyEndAllowThreads(__tstate);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 }
14312 resultobj = SWIG_FromInt((int)result);
14313 return resultobj;
14314 fail:
14315 return NULL;
14316 }
14317
14318
14319 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14320 PyObject *resultobj;
14321 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14322 size_t arg2 ;
14323 int arg3 ;
14324 bool result;
14325 PyObject * obj0 = 0 ;
14326 PyObject * obj1 = 0 ;
14327 PyObject * obj2 = 0 ;
14328 char *kwnames[] = {
14329 (char *) "self",(char *) "n",(char *) "imageId", NULL
14330 };
14331
14332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14335 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14336 if (PyErr_Occurred()) SWIG_fail;
14337 arg3 = (int) SWIG_AsInt(obj2);
14338 if (PyErr_Occurred()) SWIG_fail;
14339 {
14340 PyThreadState* __tstate = wxPyBeginAllowThreads();
14341 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14342
14343 wxPyEndAllowThreads(__tstate);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 }
14346 {
14347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14348 }
14349 return resultobj;
14350 fail:
14351 return NULL;
14352 }
14353
14354
14355 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14356 PyObject *resultobj;
14357 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14358 wxSize *arg2 = 0 ;
14359 wxSize temp2 ;
14360 PyObject * obj0 = 0 ;
14361 PyObject * obj1 = 0 ;
14362 char *kwnames[] = {
14363 (char *) "self",(char *) "size", NULL
14364 };
14365
14366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14369 {
14370 arg2 = &temp2;
14371 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14372 }
14373 {
14374 PyThreadState* __tstate = wxPyBeginAllowThreads();
14375 (arg1)->SetPageSize((wxSize const &)*arg2);
14376
14377 wxPyEndAllowThreads(__tstate);
14378 if (PyErr_Occurred()) SWIG_fail;
14379 }
14380 Py_INCREF(Py_None); resultobj = Py_None;
14381 return resultobj;
14382 fail:
14383 return NULL;
14384 }
14385
14386
14387 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14388 PyObject *resultobj;
14389 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14390 wxSize *arg2 = 0 ;
14391 wxSize result;
14392 wxSize temp2 ;
14393 PyObject * obj0 = 0 ;
14394 PyObject * obj1 = 0 ;
14395 char *kwnames[] = {
14396 (char *) "self",(char *) "sizePage", NULL
14397 };
14398
14399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14402 {
14403 arg2 = &temp2;
14404 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14405 }
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14409
14410 wxPyEndAllowThreads(__tstate);
14411 if (PyErr_Occurred()) SWIG_fail;
14412 }
14413 {
14414 wxSize * resultptr;
14415 resultptr = new wxSize((wxSize &) result);
14416 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14417 }
14418 return resultobj;
14419 fail:
14420 return NULL;
14421 }
14422
14423
14424 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14425 PyObject *resultobj;
14426 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14427 size_t arg2 ;
14428 bool result;
14429 PyObject * obj0 = 0 ;
14430 PyObject * obj1 = 0 ;
14431 char *kwnames[] = {
14432 (char *) "self",(char *) "n", NULL
14433 };
14434
14435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14438 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14439 if (PyErr_Occurred()) SWIG_fail;
14440 {
14441 PyThreadState* __tstate = wxPyBeginAllowThreads();
14442 result = (bool)(arg1)->DeletePage(arg2);
14443
14444 wxPyEndAllowThreads(__tstate);
14445 if (PyErr_Occurred()) SWIG_fail;
14446 }
14447 {
14448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14449 }
14450 return resultobj;
14451 fail:
14452 return NULL;
14453 }
14454
14455
14456 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14457 PyObject *resultobj;
14458 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14459 size_t arg2 ;
14460 bool result;
14461 PyObject * obj0 = 0 ;
14462 PyObject * obj1 = 0 ;
14463 char *kwnames[] = {
14464 (char *) "self",(char *) "n", NULL
14465 };
14466
14467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14470 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 {
14473 PyThreadState* __tstate = wxPyBeginAllowThreads();
14474 result = (bool)(arg1)->RemovePage(arg2);
14475
14476 wxPyEndAllowThreads(__tstate);
14477 if (PyErr_Occurred()) SWIG_fail;
14478 }
14479 {
14480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14481 }
14482 return resultobj;
14483 fail:
14484 return NULL;
14485 }
14486
14487
14488 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
14489 PyObject *resultobj;
14490 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14491 bool result;
14492 PyObject * obj0 = 0 ;
14493 char *kwnames[] = {
14494 (char *) "self", NULL
14495 };
14496
14497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14500 {
14501 PyThreadState* __tstate = wxPyBeginAllowThreads();
14502 result = (bool)(arg1)->DeleteAllPages();
14503
14504 wxPyEndAllowThreads(__tstate);
14505 if (PyErr_Occurred()) SWIG_fail;
14506 }
14507 {
14508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14509 }
14510 return resultobj;
14511 fail:
14512 return NULL;
14513 }
14514
14515
14516 static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14517 PyObject *resultobj;
14518 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14519 wxWindow *arg2 = (wxWindow *) 0 ;
14520 wxString *arg3 = 0 ;
14521 bool arg4 = (bool) False ;
14522 int arg5 = (int) -1 ;
14523 bool result;
14524 bool temp3 = False ;
14525 PyObject * obj0 = 0 ;
14526 PyObject * obj1 = 0 ;
14527 PyObject * obj2 = 0 ;
14528 PyObject * obj3 = 0 ;
14529 PyObject * obj4 = 0 ;
14530 char *kwnames[] = {
14531 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14532 };
14533
14534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14537 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14539 {
14540 arg3 = wxString_in_helper(obj2);
14541 if (arg3 == NULL) SWIG_fail;
14542 temp3 = True;
14543 }
14544 if (obj3) {
14545 arg4 = (bool) SWIG_AsBool(obj3);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 }
14548 if (obj4) {
14549 arg5 = (int) SWIG_AsInt(obj4);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 {
14553 PyThreadState* __tstate = wxPyBeginAllowThreads();
14554 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14555
14556 wxPyEndAllowThreads(__tstate);
14557 if (PyErr_Occurred()) SWIG_fail;
14558 }
14559 {
14560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14561 }
14562 {
14563 if (temp3)
14564 delete arg3;
14565 }
14566 return resultobj;
14567 fail:
14568 {
14569 if (temp3)
14570 delete arg3;
14571 }
14572 return NULL;
14573 }
14574
14575
14576 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14577 PyObject *resultobj;
14578 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14579 size_t arg2 ;
14580 wxWindow *arg3 = (wxWindow *) 0 ;
14581 wxString *arg4 = 0 ;
14582 bool arg5 = (bool) False ;
14583 int arg6 = (int) -1 ;
14584 bool result;
14585 bool temp4 = False ;
14586 PyObject * obj0 = 0 ;
14587 PyObject * obj1 = 0 ;
14588 PyObject * obj2 = 0 ;
14589 PyObject * obj3 = 0 ;
14590 PyObject * obj4 = 0 ;
14591 PyObject * obj5 = 0 ;
14592 char *kwnames[] = {
14593 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14594 };
14595
14596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14599 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14600 if (PyErr_Occurred()) SWIG_fail;
14601 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14603 {
14604 arg4 = wxString_in_helper(obj3);
14605 if (arg4 == NULL) SWIG_fail;
14606 temp4 = True;
14607 }
14608 if (obj4) {
14609 arg5 = (bool) SWIG_AsBool(obj4);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 }
14612 if (obj5) {
14613 arg6 = (int) SWIG_AsInt(obj5);
14614 if (PyErr_Occurred()) SWIG_fail;
14615 }
14616 {
14617 PyThreadState* __tstate = wxPyBeginAllowThreads();
14618 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14619
14620 wxPyEndAllowThreads(__tstate);
14621 if (PyErr_Occurred()) SWIG_fail;
14622 }
14623 {
14624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14625 }
14626 {
14627 if (temp4)
14628 delete arg4;
14629 }
14630 return resultobj;
14631 fail:
14632 {
14633 if (temp4)
14634 delete arg4;
14635 }
14636 return NULL;
14637 }
14638
14639
14640 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14641 PyObject *resultobj;
14642 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14643 size_t arg2 ;
14644 int result;
14645 PyObject * obj0 = 0 ;
14646 PyObject * obj1 = 0 ;
14647 char *kwnames[] = {
14648 (char *) "self",(char *) "n", NULL
14649 };
14650
14651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14654 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = (int)(arg1)->SetSelection(arg2);
14659
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
14663 resultobj = SWIG_FromInt((int)result);
14664 return resultobj;
14665 fail:
14666 return NULL;
14667 }
14668
14669
14670 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14671 PyObject *resultobj;
14672 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14673 bool arg2 = (bool) True ;
14674 PyObject * obj0 = 0 ;
14675 PyObject * obj1 = 0 ;
14676 char *kwnames[] = {
14677 (char *) "self",(char *) "forward", NULL
14678 };
14679
14680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14683 if (obj1) {
14684 arg2 = (bool) SWIG_AsBool(obj1);
14685 if (PyErr_Occurred()) SWIG_fail;
14686 }
14687 {
14688 PyThreadState* __tstate = wxPyBeginAllowThreads();
14689 (arg1)->AdvanceSelection(arg2);
14690
14691 wxPyEndAllowThreads(__tstate);
14692 if (PyErr_Occurred()) SWIG_fail;
14693 }
14694 Py_INCREF(Py_None); resultobj = Py_None;
14695 return resultobj;
14696 fail:
14697 return NULL;
14698 }
14699
14700
14701 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
14702 PyObject *resultobj;
14703 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14704 wxVisualAttributes result;
14705 PyObject * obj0 = 0 ;
14706 char *kwnames[] = {
14707 (char *) "variant", NULL
14708 };
14709
14710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14711 if (obj0) {
14712 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
14713 if (PyErr_Occurred()) SWIG_fail;
14714 }
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14718
14719 wxPyEndAllowThreads(__tstate);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 }
14722 {
14723 wxVisualAttributes * resultptr;
14724 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14725 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14726 }
14727 return resultobj;
14728 fail:
14729 return NULL;
14730 }
14731
14732
14733 static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
14734 PyObject *obj;
14735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14736 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
14737 Py_INCREF(obj);
14738 return Py_BuildValue((char *)"");
14739 }
14740 static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14741 PyObject *resultobj;
14742 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14743 int arg2 = (int) 0 ;
14744 int arg3 = (int) -1 ;
14745 int arg4 = (int) -1 ;
14746 wxBookCtrlEvent *result;
14747 PyObject * obj0 = 0 ;
14748 PyObject * obj1 = 0 ;
14749 PyObject * obj2 = 0 ;
14750 PyObject * obj3 = 0 ;
14751 char *kwnames[] = {
14752 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14753 };
14754
14755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14756 if (obj0) {
14757 arg1 = (wxEventType) SWIG_AsInt(obj0);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 }
14760 if (obj1) {
14761 arg2 = (int) SWIG_AsInt(obj1);
14762 if (PyErr_Occurred()) SWIG_fail;
14763 }
14764 if (obj2) {
14765 arg3 = (int) SWIG_AsInt(obj2);
14766 if (PyErr_Occurred()) SWIG_fail;
14767 }
14768 if (obj3) {
14769 arg4 = (int) SWIG_AsInt(obj3);
14770 if (PyErr_Occurred()) SWIG_fail;
14771 }
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
14775
14776 wxPyEndAllowThreads(__tstate);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 }
14779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
14780 return resultobj;
14781 fail:
14782 return NULL;
14783 }
14784
14785
14786 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14787 PyObject *resultobj;
14788 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14789 int result;
14790 PyObject * obj0 = 0 ;
14791 char *kwnames[] = {
14792 (char *) "self", NULL
14793 };
14794
14795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
14796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14798 {
14799 PyThreadState* __tstate = wxPyBeginAllowThreads();
14800 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
14801
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 resultobj = SWIG_FromInt((int)result);
14806 return resultobj;
14807 fail:
14808 return NULL;
14809 }
14810
14811
14812 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14813 PyObject *resultobj;
14814 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14815 int arg2 ;
14816 PyObject * obj0 = 0 ;
14817 PyObject * obj1 = 0 ;
14818 char *kwnames[] = {
14819 (char *) "self",(char *) "nSel", NULL
14820 };
14821
14822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14825 arg2 = (int) SWIG_AsInt(obj1);
14826 if (PyErr_Occurred()) SWIG_fail;
14827 {
14828 PyThreadState* __tstate = wxPyBeginAllowThreads();
14829 (arg1)->SetSelection(arg2);
14830
14831 wxPyEndAllowThreads(__tstate);
14832 if (PyErr_Occurred()) SWIG_fail;
14833 }
14834 Py_INCREF(Py_None); resultobj = Py_None;
14835 return resultobj;
14836 fail:
14837 return NULL;
14838 }
14839
14840
14841 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14842 PyObject *resultobj;
14843 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14844 int result;
14845 PyObject * obj0 = 0 ;
14846 char *kwnames[] = {
14847 (char *) "self", NULL
14848 };
14849
14850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
14851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14853 {
14854 PyThreadState* __tstate = wxPyBeginAllowThreads();
14855 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
14856
14857 wxPyEndAllowThreads(__tstate);
14858 if (PyErr_Occurred()) SWIG_fail;
14859 }
14860 resultobj = SWIG_FromInt((int)result);
14861 return resultobj;
14862 fail:
14863 return NULL;
14864 }
14865
14866
14867 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14868 PyObject *resultobj;
14869 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14870 int arg2 ;
14871 PyObject * obj0 = 0 ;
14872 PyObject * obj1 = 0 ;
14873 char *kwnames[] = {
14874 (char *) "self",(char *) "nOldSel", NULL
14875 };
14876
14877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
14878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14880 arg2 = (int) SWIG_AsInt(obj1);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 {
14883 PyThreadState* __tstate = wxPyBeginAllowThreads();
14884 (arg1)->SetOldSelection(arg2);
14885
14886 wxPyEndAllowThreads(__tstate);
14887 if (PyErr_Occurred()) SWIG_fail;
14888 }
14889 Py_INCREF(Py_None); resultobj = Py_None;
14890 return resultobj;
14891 fail:
14892 return NULL;
14893 }
14894
14895
14896 static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
14897 PyObject *obj;
14898 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14899 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
14900 Py_INCREF(obj);
14901 return Py_BuildValue((char *)"");
14902 }
14903 static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj;
14905 wxWindow *arg1 = (wxWindow *) 0 ;
14906 int arg2 = (int) -1 ;
14907 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14908 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14909 wxSize const &arg4_defvalue = wxDefaultSize ;
14910 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14911 long arg5 = (long) 0 ;
14912 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
14913 wxString *arg6 = (wxString *) &arg6_defvalue ;
14914 wxNotebook *result;
14915 wxPoint temp3 ;
14916 wxSize temp4 ;
14917 bool temp6 = False ;
14918 PyObject * obj0 = 0 ;
14919 PyObject * obj1 = 0 ;
14920 PyObject * obj2 = 0 ;
14921 PyObject * obj3 = 0 ;
14922 PyObject * obj4 = 0 ;
14923 PyObject * obj5 = 0 ;
14924 char *kwnames[] = {
14925 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14926 };
14927
14928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14931 if (obj1) {
14932 arg2 = (int) SWIG_AsInt(obj1);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
14935 if (obj2) {
14936 {
14937 arg3 = &temp3;
14938 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14939 }
14940 }
14941 if (obj3) {
14942 {
14943 arg4 = &temp4;
14944 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14945 }
14946 }
14947 if (obj4) {
14948 arg5 = (long) SWIG_AsLong(obj4);
14949 if (PyErr_Occurred()) SWIG_fail;
14950 }
14951 if (obj5) {
14952 {
14953 arg6 = wxString_in_helper(obj5);
14954 if (arg6 == NULL) SWIG_fail;
14955 temp6 = True;
14956 }
14957 }
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14961
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 {
14966 resultobj = wxPyMake_wxObject(result);
14967 }
14968 {
14969 if (temp6)
14970 delete arg6;
14971 }
14972 return resultobj;
14973 fail:
14974 {
14975 if (temp6)
14976 delete arg6;
14977 }
14978 return NULL;
14979 }
14980
14981
14982 static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14983 PyObject *resultobj;
14984 wxNotebook *result;
14985 char *kwnames[] = {
14986 NULL
14987 };
14988
14989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
14990 {
14991 PyThreadState* __tstate = wxPyBeginAllowThreads();
14992 result = (wxNotebook *)new wxNotebook();
14993
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 {
14998 resultobj = wxPyMake_wxObject(result);
14999 }
15000 return resultobj;
15001 fail:
15002 return NULL;
15003 }
15004
15005
15006 static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
15007 PyObject *resultobj;
15008 wxNotebook *arg1 = (wxNotebook *) 0 ;
15009 wxWindow *arg2 = (wxWindow *) 0 ;
15010 int arg3 ;
15011 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15012 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15013 wxSize const &arg5_defvalue = wxDefaultSize ;
15014 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15015 long arg6 = (long) 0 ;
15016 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15017 wxString *arg7 = (wxString *) &arg7_defvalue ;
15018 bool result;
15019 wxPoint temp4 ;
15020 wxSize temp5 ;
15021 bool temp7 = False ;
15022 PyObject * obj0 = 0 ;
15023 PyObject * obj1 = 0 ;
15024 PyObject * obj2 = 0 ;
15025 PyObject * obj3 = 0 ;
15026 PyObject * obj4 = 0 ;
15027 PyObject * obj5 = 0 ;
15028 PyObject * obj6 = 0 ;
15029 char *kwnames[] = {
15030 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15031 };
15032
15033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15036 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15038 arg3 = (int) SWIG_AsInt(obj2);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 if (obj3) {
15041 {
15042 arg4 = &temp4;
15043 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15044 }
15045 }
15046 if (obj4) {
15047 {
15048 arg5 = &temp5;
15049 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15050 }
15051 }
15052 if (obj5) {
15053 arg6 = (long) SWIG_AsLong(obj5);
15054 if (PyErr_Occurred()) SWIG_fail;
15055 }
15056 if (obj6) {
15057 {
15058 arg7 = wxString_in_helper(obj6);
15059 if (arg7 == NULL) SWIG_fail;
15060 temp7 = True;
15061 }
15062 }
15063 {
15064 PyThreadState* __tstate = wxPyBeginAllowThreads();
15065 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15066
15067 wxPyEndAllowThreads(__tstate);
15068 if (PyErr_Occurred()) SWIG_fail;
15069 }
15070 {
15071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15072 }
15073 {
15074 if (temp7)
15075 delete arg7;
15076 }
15077 return resultobj;
15078 fail:
15079 {
15080 if (temp7)
15081 delete arg7;
15082 }
15083 return NULL;
15084 }
15085
15086
15087 static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15088 PyObject *resultobj;
15089 wxNotebook *arg1 = (wxNotebook *) 0 ;
15090 int result;
15091 PyObject * obj0 = 0 ;
15092 char *kwnames[] = {
15093 (char *) "self", NULL
15094 };
15095
15096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15099 {
15100 PyThreadState* __tstate = wxPyBeginAllowThreads();
15101 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15102
15103 wxPyEndAllowThreads(__tstate);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 }
15106 resultobj = SWIG_FromInt((int)result);
15107 return resultobj;
15108 fail:
15109 return NULL;
15110 }
15111
15112
15113 static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
15114 PyObject *resultobj;
15115 wxNotebook *arg1 = (wxNotebook *) 0 ;
15116 wxSize *arg2 = 0 ;
15117 wxSize temp2 ;
15118 PyObject * obj0 = 0 ;
15119 PyObject * obj1 = 0 ;
15120 char *kwnames[] = {
15121 (char *) "self",(char *) "padding", NULL
15122 };
15123
15124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15127 {
15128 arg2 = &temp2;
15129 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15130 }
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
15133 (arg1)->SetPadding((wxSize const &)*arg2);
15134
15135 wxPyEndAllowThreads(__tstate);
15136 if (PyErr_Occurred()) SWIG_fail;
15137 }
15138 Py_INCREF(Py_None); resultobj = Py_None;
15139 return resultobj;
15140 fail:
15141 return NULL;
15142 }
15143
15144
15145 static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15146 PyObject *resultobj;
15147 wxNotebook *arg1 = (wxNotebook *) 0 ;
15148 wxSize *arg2 = 0 ;
15149 wxSize temp2 ;
15150 PyObject * obj0 = 0 ;
15151 PyObject * obj1 = 0 ;
15152 char *kwnames[] = {
15153 (char *) "self",(char *) "sz", NULL
15154 };
15155
15156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15159 {
15160 arg2 = &temp2;
15161 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15162 }
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 (arg1)->SetTabSize((wxSize const &)*arg2);
15166
15167 wxPyEndAllowThreads(__tstate);
15168 if (PyErr_Occurred()) SWIG_fail;
15169 }
15170 Py_INCREF(Py_None); resultobj = Py_None;
15171 return resultobj;
15172 fail:
15173 return NULL;
15174 }
15175
15176
15177 static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
15178 PyObject *resultobj;
15179 wxNotebook *arg1 = (wxNotebook *) 0 ;
15180 wxPoint *arg2 = 0 ;
15181 long *arg3 = (long *) 0 ;
15182 int result;
15183 wxPoint temp2 ;
15184 long temp3 ;
15185 PyObject * obj0 = 0 ;
15186 PyObject * obj1 = 0 ;
15187 char *kwnames[] = {
15188 (char *) "self",(char *) "pt", NULL
15189 };
15190
15191 arg3 = &temp3;
15192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15195 {
15196 arg2 = &temp2;
15197 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15198 }
15199 {
15200 PyThreadState* __tstate = wxPyBeginAllowThreads();
15201 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15202
15203 wxPyEndAllowThreads(__tstate);
15204 if (PyErr_Occurred()) SWIG_fail;
15205 }
15206 resultobj = SWIG_FromInt((int)result);
15207 {
15208 PyObject *o = PyInt_FromLong((long) (*arg3));
15209 resultobj = t_output_helper(resultobj,o);
15210 }
15211 return resultobj;
15212 fail:
15213 return NULL;
15214 }
15215
15216
15217 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
15218 PyObject *resultobj;
15219 wxNotebook *arg1 = (wxNotebook *) 0 ;
15220 wxSize *arg2 = 0 ;
15221 wxSize result;
15222 wxSize temp2 ;
15223 PyObject * obj0 = 0 ;
15224 PyObject * obj1 = 0 ;
15225 char *kwnames[] = {
15226 (char *) "self",(char *) "sizePage", NULL
15227 };
15228
15229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15232 {
15233 arg2 = &temp2;
15234 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15235 }
15236 {
15237 PyThreadState* __tstate = wxPyBeginAllowThreads();
15238 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15239
15240 wxPyEndAllowThreads(__tstate);
15241 if (PyErr_Occurred()) SWIG_fail;
15242 }
15243 {
15244 wxSize * resultptr;
15245 resultptr = new wxSize((wxSize &) result);
15246 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15247 }
15248 return resultobj;
15249 fail:
15250 return NULL;
15251 }
15252
15253
15254 static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
15255 PyObject *resultobj;
15256 wxNotebook *arg1 = (wxNotebook *) 0 ;
15257 wxWindow *arg2 = (wxWindow *) 0 ;
15258 wxColour *arg3 = 0 ;
15259 wxColour temp3 ;
15260 PyObject * obj0 = 0 ;
15261 PyObject * obj1 = 0 ;
15262 PyObject * obj2 = 0 ;
15263 char *kwnames[] = {
15264 (char *) "self",(char *) "window",(char *) "colour", NULL
15265 };
15266
15267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
15268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15270 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15272 {
15273 arg3 = &temp3;
15274 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15275 }
15276 {
15277 PyThreadState* __tstate = wxPyBeginAllowThreads();
15278 (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3);
15279
15280 wxPyEndAllowThreads(__tstate);
15281 if (PyErr_Occurred()) SWIG_fail;
15282 }
15283 Py_INCREF(Py_None); resultobj = Py_None;
15284 return resultobj;
15285 fail:
15286 return NULL;
15287 }
15288
15289
15290 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
15291 PyObject *resultobj;
15292 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15293 wxVisualAttributes result;
15294 PyObject * obj0 = 0 ;
15295 char *kwnames[] = {
15296 (char *) "variant", NULL
15297 };
15298
15299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15300 if (obj0) {
15301 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
15302 if (PyErr_Occurred()) SWIG_fail;
15303 }
15304 {
15305 PyThreadState* __tstate = wxPyBeginAllowThreads();
15306 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15307
15308 wxPyEndAllowThreads(__tstate);
15309 if (PyErr_Occurred()) SWIG_fail;
15310 }
15311 {
15312 wxVisualAttributes * resultptr;
15313 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15314 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15315 }
15316 return resultobj;
15317 fail:
15318 return NULL;
15319 }
15320
15321
15322 static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
15323 PyObject *obj;
15324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15325 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15326 Py_INCREF(obj);
15327 return Py_BuildValue((char *)"");
15328 }
15329 static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15330 PyObject *resultobj;
15331 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15332 int arg2 = (int) 0 ;
15333 int arg3 = (int) -1 ;
15334 int arg4 = (int) -1 ;
15335 wxNotebookEvent *result;
15336 PyObject * obj0 = 0 ;
15337 PyObject * obj1 = 0 ;
15338 PyObject * obj2 = 0 ;
15339 PyObject * obj3 = 0 ;
15340 char *kwnames[] = {
15341 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15342 };
15343
15344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15345 if (obj0) {
15346 arg1 = (wxEventType) SWIG_AsInt(obj0);
15347 if (PyErr_Occurred()) SWIG_fail;
15348 }
15349 if (obj1) {
15350 arg2 = (int) SWIG_AsInt(obj1);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 if (obj2) {
15354 arg3 = (int) SWIG_AsInt(obj2);
15355 if (PyErr_Occurred()) SWIG_fail;
15356 }
15357 if (obj3) {
15358 arg4 = (int) SWIG_AsInt(obj3);
15359 if (PyErr_Occurred()) SWIG_fail;
15360 }
15361 {
15362 PyThreadState* __tstate = wxPyBeginAllowThreads();
15363 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15364
15365 wxPyEndAllowThreads(__tstate);
15366 if (PyErr_Occurred()) SWIG_fail;
15367 }
15368 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15369 return resultobj;
15370 fail:
15371 return NULL;
15372 }
15373
15374
15375 static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
15376 PyObject *obj;
15377 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15378 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15379 Py_INCREF(obj);
15380 return Py_BuildValue((char *)"");
15381 }
15382 static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15383 PyObject *resultobj;
15384 wxWindow *arg1 = (wxWindow *) 0 ;
15385 int arg2 = (int) -1 ;
15386 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15387 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15388 wxSize const &arg4_defvalue = wxDefaultSize ;
15389 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15390 long arg5 = (long) 0 ;
15391 wxString const &arg6_defvalue = wxPyEmptyString ;
15392 wxString *arg6 = (wxString *) &arg6_defvalue ;
15393 wxListbook *result;
15394 wxPoint temp3 ;
15395 wxSize temp4 ;
15396 bool temp6 = False ;
15397 PyObject * obj0 = 0 ;
15398 PyObject * obj1 = 0 ;
15399 PyObject * obj2 = 0 ;
15400 PyObject * obj3 = 0 ;
15401 PyObject * obj4 = 0 ;
15402 PyObject * obj5 = 0 ;
15403 char *kwnames[] = {
15404 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15405 };
15406
15407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15410 if (obj1) {
15411 arg2 = (int) SWIG_AsInt(obj1);
15412 if (PyErr_Occurred()) SWIG_fail;
15413 }
15414 if (obj2) {
15415 {
15416 arg3 = &temp3;
15417 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15418 }
15419 }
15420 if (obj3) {
15421 {
15422 arg4 = &temp4;
15423 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15424 }
15425 }
15426 if (obj4) {
15427 arg5 = (long) SWIG_AsLong(obj4);
15428 if (PyErr_Occurred()) SWIG_fail;
15429 }
15430 if (obj5) {
15431 {
15432 arg6 = wxString_in_helper(obj5);
15433 if (arg6 == NULL) SWIG_fail;
15434 temp6 = True;
15435 }
15436 }
15437 {
15438 PyThreadState* __tstate = wxPyBeginAllowThreads();
15439 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15440
15441 wxPyEndAllowThreads(__tstate);
15442 if (PyErr_Occurred()) SWIG_fail;
15443 }
15444 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15445 {
15446 if (temp6)
15447 delete arg6;
15448 }
15449 return resultobj;
15450 fail:
15451 {
15452 if (temp6)
15453 delete arg6;
15454 }
15455 return NULL;
15456 }
15457
15458
15459 static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15460 PyObject *resultobj;
15461 wxListbook *result;
15462 char *kwnames[] = {
15463 NULL
15464 };
15465
15466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15467 {
15468 PyThreadState* __tstate = wxPyBeginAllowThreads();
15469 result = (wxListbook *)new wxListbook();
15470
15471 wxPyEndAllowThreads(__tstate);
15472 if (PyErr_Occurred()) SWIG_fail;
15473 }
15474 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15475 return resultobj;
15476 fail:
15477 return NULL;
15478 }
15479
15480
15481 static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
15482 PyObject *resultobj;
15483 wxListbook *arg1 = (wxListbook *) 0 ;
15484 wxWindow *arg2 = (wxWindow *) 0 ;
15485 int arg3 ;
15486 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15487 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15488 wxSize const &arg5_defvalue = wxDefaultSize ;
15489 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15490 long arg6 = (long) 0 ;
15491 wxString const &arg7_defvalue = wxPyEmptyString ;
15492 wxString *arg7 = (wxString *) &arg7_defvalue ;
15493 bool result;
15494 wxPoint temp4 ;
15495 wxSize temp5 ;
15496 bool temp7 = False ;
15497 PyObject * obj0 = 0 ;
15498 PyObject * obj1 = 0 ;
15499 PyObject * obj2 = 0 ;
15500 PyObject * obj3 = 0 ;
15501 PyObject * obj4 = 0 ;
15502 PyObject * obj5 = 0 ;
15503 PyObject * obj6 = 0 ;
15504 char *kwnames[] = {
15505 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15506 };
15507
15508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15511 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15513 arg3 = (int) SWIG_AsInt(obj2);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 if (obj3) {
15516 {
15517 arg4 = &temp4;
15518 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15519 }
15520 }
15521 if (obj4) {
15522 {
15523 arg5 = &temp5;
15524 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15525 }
15526 }
15527 if (obj5) {
15528 arg6 = (long) SWIG_AsLong(obj5);
15529 if (PyErr_Occurred()) SWIG_fail;
15530 }
15531 if (obj6) {
15532 {
15533 arg7 = wxString_in_helper(obj6);
15534 if (arg7 == NULL) SWIG_fail;
15535 temp7 = True;
15536 }
15537 }
15538 {
15539 PyThreadState* __tstate = wxPyBeginAllowThreads();
15540 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15541
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 {
15546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15547 }
15548 {
15549 if (temp7)
15550 delete arg7;
15551 }
15552 return resultobj;
15553 fail:
15554 {
15555 if (temp7)
15556 delete arg7;
15557 }
15558 return NULL;
15559 }
15560
15561
15562 static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
15563 PyObject *resultobj;
15564 wxListbook *arg1 = (wxListbook *) 0 ;
15565 bool result;
15566 PyObject * obj0 = 0 ;
15567 char *kwnames[] = {
15568 (char *) "self", NULL
15569 };
15570
15571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15574 {
15575 PyThreadState* __tstate = wxPyBeginAllowThreads();
15576 result = (bool)((wxListbook const *)arg1)->IsVertical();
15577
15578 wxPyEndAllowThreads(__tstate);
15579 if (PyErr_Occurred()) SWIG_fail;
15580 }
15581 {
15582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15583 }
15584 return resultobj;
15585 fail:
15586 return NULL;
15587 }
15588
15589
15590 static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
15591 PyObject *obj;
15592 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15593 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15594 Py_INCREF(obj);
15595 return Py_BuildValue((char *)"");
15596 }
15597 static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15598 PyObject *resultobj;
15599 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15600 int arg2 = (int) 0 ;
15601 int arg3 = (int) -1 ;
15602 int arg4 = (int) -1 ;
15603 wxListbookEvent *result;
15604 PyObject * obj0 = 0 ;
15605 PyObject * obj1 = 0 ;
15606 PyObject * obj2 = 0 ;
15607 PyObject * obj3 = 0 ;
15608 char *kwnames[] = {
15609 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15610 };
15611
15612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15613 if (obj0) {
15614 arg1 = (wxEventType) SWIG_AsInt(obj0);
15615 if (PyErr_Occurred()) SWIG_fail;
15616 }
15617 if (obj1) {
15618 arg2 = (int) SWIG_AsInt(obj1);
15619 if (PyErr_Occurred()) SWIG_fail;
15620 }
15621 if (obj2) {
15622 arg3 = (int) SWIG_AsInt(obj2);
15623 if (PyErr_Occurred()) SWIG_fail;
15624 }
15625 if (obj3) {
15626 arg4 = (int) SWIG_AsInt(obj3);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
15629 {
15630 PyThreadState* __tstate = wxPyBeginAllowThreads();
15631 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15632
15633 wxPyEndAllowThreads(__tstate);
15634 if (PyErr_Occurred()) SWIG_fail;
15635 }
15636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15637 return resultobj;
15638 fail:
15639 return NULL;
15640 }
15641
15642
15643 static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
15644 PyObject *obj;
15645 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15646 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15647 Py_INCREF(obj);
15648 return Py_BuildValue((char *)"");
15649 }
15650 static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15651 PyObject *resultobj;
15652 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15653 wxBookCtrlSizer *result;
15654 PyObject * obj0 = 0 ;
15655 char *kwnames[] = {
15656 (char *) "nb", NULL
15657 };
15658
15659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15662 {
15663 PyThreadState* __tstate = wxPyBeginAllowThreads();
15664 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15665
15666 wxPyEndAllowThreads(__tstate);
15667 if (PyErr_Occurred()) SWIG_fail;
15668 }
15669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15670 return resultobj;
15671 fail:
15672 return NULL;
15673 }
15674
15675
15676 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15677 PyObject *resultobj;
15678 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15679 PyObject * obj0 = 0 ;
15680 char *kwnames[] = {
15681 (char *) "self", NULL
15682 };
15683
15684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15687 {
15688 PyThreadState* __tstate = wxPyBeginAllowThreads();
15689 (arg1)->RecalcSizes();
15690
15691 wxPyEndAllowThreads(__tstate);
15692 if (PyErr_Occurred()) SWIG_fail;
15693 }
15694 Py_INCREF(Py_None); resultobj = Py_None;
15695 return resultobj;
15696 fail:
15697 return NULL;
15698 }
15699
15700
15701 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15702 PyObject *resultobj;
15703 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15704 wxSize result;
15705 PyObject * obj0 = 0 ;
15706 char *kwnames[] = {
15707 (char *) "self", NULL
15708 };
15709
15710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
15711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15713 {
15714 PyThreadState* __tstate = wxPyBeginAllowThreads();
15715 result = (arg1)->CalcMin();
15716
15717 wxPyEndAllowThreads(__tstate);
15718 if (PyErr_Occurred()) SWIG_fail;
15719 }
15720 {
15721 wxSize * resultptr;
15722 resultptr = new wxSize((wxSize &) result);
15723 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15724 }
15725 return resultobj;
15726 fail:
15727 return NULL;
15728 }
15729
15730
15731 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15732 PyObject *resultobj;
15733 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15734 wxBookCtrl *result;
15735 PyObject * obj0 = 0 ;
15736 char *kwnames[] = {
15737 (char *) "self", NULL
15738 };
15739
15740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
15741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15743 {
15744 PyThreadState* __tstate = wxPyBeginAllowThreads();
15745 result = (wxBookCtrl *)(arg1)->GetControl();
15746
15747 wxPyEndAllowThreads(__tstate);
15748 if (PyErr_Occurred()) SWIG_fail;
15749 }
15750 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
15751 return resultobj;
15752 fail:
15753 return NULL;
15754 }
15755
15756
15757 static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
15758 PyObject *obj;
15759 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15760 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
15761 Py_INCREF(obj);
15762 return Py_BuildValue((char *)"");
15763 }
15764 static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15765 PyObject *resultobj;
15766 wxNotebook *arg1 = (wxNotebook *) 0 ;
15767 wxNotebookSizer *result;
15768 PyObject * obj0 = 0 ;
15769 char *kwnames[] = {
15770 (char *) "nb", NULL
15771 };
15772
15773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
15774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15776 {
15777 PyThreadState* __tstate = wxPyBeginAllowThreads();
15778 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
15779
15780 wxPyEndAllowThreads(__tstate);
15781 if (PyErr_Occurred()) SWIG_fail;
15782 }
15783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
15784 return resultobj;
15785 fail:
15786 return NULL;
15787 }
15788
15789
15790 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15791 PyObject *resultobj;
15792 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15793 PyObject * obj0 = 0 ;
15794 char *kwnames[] = {
15795 (char *) "self", NULL
15796 };
15797
15798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15801 {
15802 PyThreadState* __tstate = wxPyBeginAllowThreads();
15803 (arg1)->RecalcSizes();
15804
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 Py_INCREF(Py_None); resultobj = Py_None;
15809 return resultobj;
15810 fail:
15811 return NULL;
15812 }
15813
15814
15815 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj;
15817 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15818 wxSize result;
15819 PyObject * obj0 = 0 ;
15820 char *kwnames[] = {
15821 (char *) "self", NULL
15822 };
15823
15824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
15825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15827 {
15828 PyThreadState* __tstate = wxPyBeginAllowThreads();
15829 result = (arg1)->CalcMin();
15830
15831 wxPyEndAllowThreads(__tstate);
15832 if (PyErr_Occurred()) SWIG_fail;
15833 }
15834 {
15835 wxSize * resultptr;
15836 resultptr = new wxSize((wxSize &) result);
15837 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15838 }
15839 return resultobj;
15840 fail:
15841 return NULL;
15842 }
15843
15844
15845 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
15846 PyObject *resultobj;
15847 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15848 wxNotebook *result;
15849 PyObject * obj0 = 0 ;
15850 char *kwnames[] = {
15851 (char *) "self", NULL
15852 };
15853
15854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
15855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15857 {
15858 PyThreadState* __tstate = wxPyBeginAllowThreads();
15859 result = (wxNotebook *)(arg1)->GetNotebook();
15860
15861 wxPyEndAllowThreads(__tstate);
15862 if (PyErr_Occurred()) SWIG_fail;
15863 }
15864 {
15865 resultobj = wxPyMake_wxObject(result);
15866 }
15867 return resultobj;
15868 fail:
15869 return NULL;
15870 }
15871
15872
15873 static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
15874 PyObject *obj;
15875 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15876 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
15877 Py_INCREF(obj);
15878 return Py_BuildValue((char *)"");
15879 }
15880 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
15881 PyObject *resultobj;
15882 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15883 int result;
15884 PyObject * obj0 = 0 ;
15885 char *kwnames[] = {
15886 (char *) "self", NULL
15887 };
15888
15889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
15890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15892 {
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = (int)(arg1)->GetId();
15895
15896 wxPyEndAllowThreads(__tstate);
15897 if (PyErr_Occurred()) SWIG_fail;
15898 }
15899 resultobj = SWIG_FromInt((int)result);
15900 return resultobj;
15901 fail:
15902 return NULL;
15903 }
15904
15905
15906 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15907 PyObject *resultobj;
15908 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15909 wxControl *result;
15910 PyObject * obj0 = 0 ;
15911 char *kwnames[] = {
15912 (char *) "self", NULL
15913 };
15914
15915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
15916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15918 {
15919 PyThreadState* __tstate = wxPyBeginAllowThreads();
15920 result = (wxControl *)(arg1)->GetControl();
15921
15922 wxPyEndAllowThreads(__tstate);
15923 if (PyErr_Occurred()) SWIG_fail;
15924 }
15925 {
15926 resultobj = wxPyMake_wxObject(result);
15927 }
15928 return resultobj;
15929 fail:
15930 return NULL;
15931 }
15932
15933
15934 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
15935 PyObject *resultobj;
15936 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15937 wxToolBarBase *result;
15938 PyObject * obj0 = 0 ;
15939 char *kwnames[] = {
15940 (char *) "self", NULL
15941 };
15942
15943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
15944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15946 {
15947 PyThreadState* __tstate = wxPyBeginAllowThreads();
15948 result = (wxToolBarBase *)(arg1)->GetToolBar();
15949
15950 wxPyEndAllowThreads(__tstate);
15951 if (PyErr_Occurred()) SWIG_fail;
15952 }
15953 {
15954 resultobj = wxPyMake_wxObject(result);
15955 }
15956 return resultobj;
15957 fail:
15958 return NULL;
15959 }
15960
15961
15962 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
15963 PyObject *resultobj;
15964 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15965 int result;
15966 PyObject * obj0 = 0 ;
15967 char *kwnames[] = {
15968 (char *) "self", NULL
15969 };
15970
15971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
15972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15974 {
15975 PyThreadState* __tstate = wxPyBeginAllowThreads();
15976 result = (int)(arg1)->IsButton();
15977
15978 wxPyEndAllowThreads(__tstate);
15979 if (PyErr_Occurred()) SWIG_fail;
15980 }
15981 resultobj = SWIG_FromInt((int)result);
15982 return resultobj;
15983 fail:
15984 return NULL;
15985 }
15986
15987
15988 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15989 PyObject *resultobj;
15990 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15991 int result;
15992 PyObject * obj0 = 0 ;
15993 char *kwnames[] = {
15994 (char *) "self", NULL
15995 };
15996
15997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
15998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16000 {
16001 PyThreadState* __tstate = wxPyBeginAllowThreads();
16002 result = (int)(arg1)->IsControl();
16003
16004 wxPyEndAllowThreads(__tstate);
16005 if (PyErr_Occurred()) SWIG_fail;
16006 }
16007 resultobj = SWIG_FromInt((int)result);
16008 return resultobj;
16009 fail:
16010 return NULL;
16011 }
16012
16013
16014 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16015 PyObject *resultobj;
16016 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16017 int result;
16018 PyObject * obj0 = 0 ;
16019 char *kwnames[] = {
16020 (char *) "self", NULL
16021 };
16022
16023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16026 {
16027 PyThreadState* __tstate = wxPyBeginAllowThreads();
16028 result = (int)(arg1)->IsSeparator();
16029
16030 wxPyEndAllowThreads(__tstate);
16031 if (PyErr_Occurred()) SWIG_fail;
16032 }
16033 resultobj = SWIG_FromInt((int)result);
16034 return resultobj;
16035 fail:
16036 return NULL;
16037 }
16038
16039
16040 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16041 PyObject *resultobj;
16042 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16043 int result;
16044 PyObject * obj0 = 0 ;
16045 char *kwnames[] = {
16046 (char *) "self", NULL
16047 };
16048
16049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16052 {
16053 PyThreadState* __tstate = wxPyBeginAllowThreads();
16054 result = (int)(arg1)->GetStyle();
16055
16056 wxPyEndAllowThreads(__tstate);
16057 if (PyErr_Occurred()) SWIG_fail;
16058 }
16059 resultobj = SWIG_FromInt((int)result);
16060 return resultobj;
16061 fail:
16062 return NULL;
16063 }
16064
16065
16066 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
16067 PyObject *resultobj;
16068 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16069 int result;
16070 PyObject * obj0 = 0 ;
16071 char *kwnames[] = {
16072 (char *) "self", NULL
16073 };
16074
16075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16078 {
16079 PyThreadState* __tstate = wxPyBeginAllowThreads();
16080 result = (int)(arg1)->GetKind();
16081
16082 wxPyEndAllowThreads(__tstate);
16083 if (PyErr_Occurred()) SWIG_fail;
16084 }
16085 resultobj = SWIG_FromInt((int)result);
16086 return resultobj;
16087 fail:
16088 return NULL;
16089 }
16090
16091
16092 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
16093 PyObject *resultobj;
16094 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16095 bool result;
16096 PyObject * obj0 = 0 ;
16097 char *kwnames[] = {
16098 (char *) "self", NULL
16099 };
16100
16101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16104 {
16105 PyThreadState* __tstate = wxPyBeginAllowThreads();
16106 result = (bool)(arg1)->IsEnabled();
16107
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 {
16112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16113 }
16114 return resultobj;
16115 fail:
16116 return NULL;
16117 }
16118
16119
16120 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
16121 PyObject *resultobj;
16122 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16123 bool result;
16124 PyObject * obj0 = 0 ;
16125 char *kwnames[] = {
16126 (char *) "self", NULL
16127 };
16128
16129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16132 {
16133 PyThreadState* __tstate = wxPyBeginAllowThreads();
16134 result = (bool)(arg1)->IsToggled();
16135
16136 wxPyEndAllowThreads(__tstate);
16137 if (PyErr_Occurred()) SWIG_fail;
16138 }
16139 {
16140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16141 }
16142 return resultobj;
16143 fail:
16144 return NULL;
16145 }
16146
16147
16148 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
16149 PyObject *resultobj;
16150 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16151 bool result;
16152 PyObject * obj0 = 0 ;
16153 char *kwnames[] = {
16154 (char *) "self", NULL
16155 };
16156
16157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 result = (bool)(arg1)->CanBeToggled();
16163
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 {
16168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16169 }
16170 return resultobj;
16171 fail:
16172 return NULL;
16173 }
16174
16175
16176 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16177 PyObject *resultobj;
16178 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16179 wxBitmap *result;
16180 PyObject * obj0 = 0 ;
16181 char *kwnames[] = {
16182 (char *) "self", NULL
16183 };
16184
16185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16188 {
16189 PyThreadState* __tstate = wxPyBeginAllowThreads();
16190 {
16191 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16192 result = (wxBitmap *) &_result_ref;
16193 }
16194
16195 wxPyEndAllowThreads(__tstate);
16196 if (PyErr_Occurred()) SWIG_fail;
16197 }
16198 {
16199 wxBitmap* resultptr = new wxBitmap(*result);
16200 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16201 }
16202 return resultobj;
16203 fail:
16204 return NULL;
16205 }
16206
16207
16208 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16209 PyObject *resultobj;
16210 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16211 wxBitmap *result;
16212 PyObject * obj0 = 0 ;
16213 char *kwnames[] = {
16214 (char *) "self", NULL
16215 };
16216
16217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16220 {
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 {
16223 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16224 result = (wxBitmap *) &_result_ref;
16225 }
16226
16227 wxPyEndAllowThreads(__tstate);
16228 if (PyErr_Occurred()) SWIG_fail;
16229 }
16230 {
16231 wxBitmap* resultptr = new wxBitmap(*result);
16232 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16233 }
16234 return resultobj;
16235 fail:
16236 return NULL;
16237 }
16238
16239
16240 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16241 PyObject *resultobj;
16242 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16243 wxBitmap result;
16244 PyObject * obj0 = 0 ;
16245 char *kwnames[] = {
16246 (char *) "self", NULL
16247 };
16248
16249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16252 {
16253 PyThreadState* __tstate = wxPyBeginAllowThreads();
16254 result = (arg1)->GetBitmap();
16255
16256 wxPyEndAllowThreads(__tstate);
16257 if (PyErr_Occurred()) SWIG_fail;
16258 }
16259 {
16260 wxBitmap * resultptr;
16261 resultptr = new wxBitmap((wxBitmap &) result);
16262 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16263 }
16264 return resultobj;
16265 fail:
16266 return NULL;
16267 }
16268
16269
16270 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16271 PyObject *resultobj;
16272 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16273 wxString result;
16274 PyObject * obj0 = 0 ;
16275 char *kwnames[] = {
16276 (char *) "self", NULL
16277 };
16278
16279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = (arg1)->GetLabel();
16285
16286 wxPyEndAllowThreads(__tstate);
16287 if (PyErr_Occurred()) SWIG_fail;
16288 }
16289 {
16290 #if wxUSE_UNICODE
16291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16292 #else
16293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16294 #endif
16295 }
16296 return resultobj;
16297 fail:
16298 return NULL;
16299 }
16300
16301
16302 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16303 PyObject *resultobj;
16304 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16305 wxString result;
16306 PyObject * obj0 = 0 ;
16307 char *kwnames[] = {
16308 (char *) "self", NULL
16309 };
16310
16311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16314 {
16315 PyThreadState* __tstate = wxPyBeginAllowThreads();
16316 result = (arg1)->GetShortHelp();
16317
16318 wxPyEndAllowThreads(__tstate);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
16321 {
16322 #if wxUSE_UNICODE
16323 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16324 #else
16325 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16326 #endif
16327 }
16328 return resultobj;
16329 fail:
16330 return NULL;
16331 }
16332
16333
16334 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16335 PyObject *resultobj;
16336 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16337 wxString result;
16338 PyObject * obj0 = 0 ;
16339 char *kwnames[] = {
16340 (char *) "self", NULL
16341 };
16342
16343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16346 {
16347 PyThreadState* __tstate = wxPyBeginAllowThreads();
16348 result = (arg1)->GetLongHelp();
16349
16350 wxPyEndAllowThreads(__tstate);
16351 if (PyErr_Occurred()) SWIG_fail;
16352 }
16353 {
16354 #if wxUSE_UNICODE
16355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16356 #else
16357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16358 #endif
16359 }
16360 return resultobj;
16361 fail:
16362 return NULL;
16363 }
16364
16365
16366 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
16367 PyObject *resultobj;
16368 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16369 bool arg2 ;
16370 bool result;
16371 PyObject * obj0 = 0 ;
16372 PyObject * obj1 = 0 ;
16373 char *kwnames[] = {
16374 (char *) "self",(char *) "enable", NULL
16375 };
16376
16377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16380 arg2 = (bool) SWIG_AsBool(obj1);
16381 if (PyErr_Occurred()) SWIG_fail;
16382 {
16383 PyThreadState* __tstate = wxPyBeginAllowThreads();
16384 result = (bool)(arg1)->Enable(arg2);
16385
16386 wxPyEndAllowThreads(__tstate);
16387 if (PyErr_Occurred()) SWIG_fail;
16388 }
16389 {
16390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16391 }
16392 return resultobj;
16393 fail:
16394 return NULL;
16395 }
16396
16397
16398 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16399 PyObject *resultobj;
16400 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16401 PyObject * obj0 = 0 ;
16402 char *kwnames[] = {
16403 (char *) "self", NULL
16404 };
16405
16406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16409 {
16410 PyThreadState* __tstate = wxPyBeginAllowThreads();
16411 (arg1)->Toggle();
16412
16413 wxPyEndAllowThreads(__tstate);
16414 if (PyErr_Occurred()) SWIG_fail;
16415 }
16416 Py_INCREF(Py_None); resultobj = Py_None;
16417 return resultobj;
16418 fail:
16419 return NULL;
16420 }
16421
16422
16423 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16424 PyObject *resultobj;
16425 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16426 bool arg2 ;
16427 bool result;
16428 PyObject * obj0 = 0 ;
16429 PyObject * obj1 = 0 ;
16430 char *kwnames[] = {
16431 (char *) "self",(char *) "toggle", NULL
16432 };
16433
16434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16437 arg2 = (bool) SWIG_AsBool(obj1);
16438 if (PyErr_Occurred()) SWIG_fail;
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 result = (bool)(arg1)->SetToggle(arg2);
16442
16443 wxPyEndAllowThreads(__tstate);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
16446 {
16447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16448 }
16449 return resultobj;
16450 fail:
16451 return NULL;
16452 }
16453
16454
16455 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16456 PyObject *resultobj;
16457 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16458 wxString *arg2 = 0 ;
16459 bool result;
16460 bool temp2 = False ;
16461 PyObject * obj0 = 0 ;
16462 PyObject * obj1 = 0 ;
16463 char *kwnames[] = {
16464 (char *) "self",(char *) "help", NULL
16465 };
16466
16467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16470 {
16471 arg2 = wxString_in_helper(obj1);
16472 if (arg2 == NULL) SWIG_fail;
16473 temp2 = True;
16474 }
16475 {
16476 PyThreadState* __tstate = wxPyBeginAllowThreads();
16477 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
16478
16479 wxPyEndAllowThreads(__tstate);
16480 if (PyErr_Occurred()) SWIG_fail;
16481 }
16482 {
16483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16484 }
16485 {
16486 if (temp2)
16487 delete arg2;
16488 }
16489 return resultobj;
16490 fail:
16491 {
16492 if (temp2)
16493 delete arg2;
16494 }
16495 return NULL;
16496 }
16497
16498
16499 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16500 PyObject *resultobj;
16501 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16502 wxString *arg2 = 0 ;
16503 bool result;
16504 bool temp2 = False ;
16505 PyObject * obj0 = 0 ;
16506 PyObject * obj1 = 0 ;
16507 char *kwnames[] = {
16508 (char *) "self",(char *) "help", NULL
16509 };
16510
16511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16514 {
16515 arg2 = wxString_in_helper(obj1);
16516 if (arg2 == NULL) SWIG_fail;
16517 temp2 = True;
16518 }
16519 {
16520 PyThreadState* __tstate = wxPyBeginAllowThreads();
16521 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16522
16523 wxPyEndAllowThreads(__tstate);
16524 if (PyErr_Occurred()) SWIG_fail;
16525 }
16526 {
16527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16528 }
16529 {
16530 if (temp2)
16531 delete arg2;
16532 }
16533 return resultobj;
16534 fail:
16535 {
16536 if (temp2)
16537 delete arg2;
16538 }
16539 return NULL;
16540 }
16541
16542
16543 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16544 PyObject *resultobj;
16545 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16546 wxBitmap *arg2 = 0 ;
16547 PyObject * obj0 = 0 ;
16548 PyObject * obj1 = 0 ;
16549 char *kwnames[] = {
16550 (char *) "self",(char *) "bmp", NULL
16551 };
16552
16553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16557 SWIG_POINTER_EXCEPTION | 0)) == -1)
16558 SWIG_fail;
16559 if (arg2 == NULL) {
16560 PyErr_SetString(PyExc_TypeError,"null reference");
16561 SWIG_fail;
16562 }
16563 {
16564 PyThreadState* __tstate = wxPyBeginAllowThreads();
16565 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16566
16567 wxPyEndAllowThreads(__tstate);
16568 if (PyErr_Occurred()) SWIG_fail;
16569 }
16570 Py_INCREF(Py_None); resultobj = Py_None;
16571 return resultobj;
16572 fail:
16573 return NULL;
16574 }
16575
16576
16577 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16578 PyObject *resultobj;
16579 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16580 wxBitmap *arg2 = 0 ;
16581 PyObject * obj0 = 0 ;
16582 PyObject * obj1 = 0 ;
16583 char *kwnames[] = {
16584 (char *) "self",(char *) "bmp", NULL
16585 };
16586
16587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16590 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16591 SWIG_POINTER_EXCEPTION | 0)) == -1)
16592 SWIG_fail;
16593 if (arg2 == NULL) {
16594 PyErr_SetString(PyExc_TypeError,"null reference");
16595 SWIG_fail;
16596 }
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16600
16601 wxPyEndAllowThreads(__tstate);
16602 if (PyErr_Occurred()) SWIG_fail;
16603 }
16604 Py_INCREF(Py_None); resultobj = Py_None;
16605 return resultobj;
16606 fail:
16607 return NULL;
16608 }
16609
16610
16611 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16612 PyObject *resultobj;
16613 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16614 wxString *arg2 = 0 ;
16615 bool temp2 = False ;
16616 PyObject * obj0 = 0 ;
16617 PyObject * obj1 = 0 ;
16618 char *kwnames[] = {
16619 (char *) "self",(char *) "label", NULL
16620 };
16621
16622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16625 {
16626 arg2 = wxString_in_helper(obj1);
16627 if (arg2 == NULL) SWIG_fail;
16628 temp2 = True;
16629 }
16630 {
16631 PyThreadState* __tstate = wxPyBeginAllowThreads();
16632 (arg1)->SetLabel((wxString const &)*arg2);
16633
16634 wxPyEndAllowThreads(__tstate);
16635 if (PyErr_Occurred()) SWIG_fail;
16636 }
16637 Py_INCREF(Py_None); resultobj = Py_None;
16638 {
16639 if (temp2)
16640 delete arg2;
16641 }
16642 return resultobj;
16643 fail:
16644 {
16645 if (temp2)
16646 delete arg2;
16647 }
16648 return NULL;
16649 }
16650
16651
16652 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
16653 PyObject *resultobj;
16654 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16655 PyObject * obj0 = 0 ;
16656 char *kwnames[] = {
16657 (char *) "self", NULL
16658 };
16659
16660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16663 {
16664 PyThreadState* __tstate = wxPyBeginAllowThreads();
16665 (arg1)->Detach();
16666
16667 wxPyEndAllowThreads(__tstate);
16668 if (PyErr_Occurred()) SWIG_fail;
16669 }
16670 Py_INCREF(Py_None); resultobj = Py_None;
16671 return resultobj;
16672 fail:
16673 return NULL;
16674 }
16675
16676
16677 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
16678 PyObject *resultobj;
16679 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16680 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16681 PyObject * obj0 = 0 ;
16682 PyObject * obj1 = 0 ;
16683 char *kwnames[] = {
16684 (char *) "self",(char *) "tbar", NULL
16685 };
16686
16687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16690 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16692 {
16693 PyThreadState* __tstate = wxPyBeginAllowThreads();
16694 (arg1)->Attach(arg2);
16695
16696 wxPyEndAllowThreads(__tstate);
16697 if (PyErr_Occurred()) SWIG_fail;
16698 }
16699 Py_INCREF(Py_None); resultobj = Py_None;
16700 return resultobj;
16701 fail:
16702 return NULL;
16703 }
16704
16705
16706 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16707 PyObject *resultobj;
16708 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16709 PyObject *result;
16710 PyObject * obj0 = 0 ;
16711 char *kwnames[] = {
16712 (char *) "self", NULL
16713 };
16714
16715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
16716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16718 {
16719 PyThreadState* __tstate = wxPyBeginAllowThreads();
16720 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
16721
16722 wxPyEndAllowThreads(__tstate);
16723 if (PyErr_Occurred()) SWIG_fail;
16724 }
16725 resultobj = result;
16726 return resultobj;
16727 fail:
16728 return NULL;
16729 }
16730
16731
16732 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16733 PyObject *resultobj;
16734 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16735 PyObject *arg2 = (PyObject *) 0 ;
16736 PyObject * obj0 = 0 ;
16737 PyObject * obj1 = 0 ;
16738 char *kwnames[] = {
16739 (char *) "self",(char *) "clientData", NULL
16740 };
16741
16742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
16743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16745 arg2 = obj1;
16746 {
16747 PyThreadState* __tstate = wxPyBeginAllowThreads();
16748 wxToolBarToolBase_SetClientData(arg1,arg2);
16749
16750 wxPyEndAllowThreads(__tstate);
16751 if (PyErr_Occurred()) SWIG_fail;
16752 }
16753 Py_INCREF(Py_None); resultobj = Py_None;
16754 return resultobj;
16755 fail:
16756 return NULL;
16757 }
16758
16759
16760 static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
16761 PyObject *obj;
16762 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16763 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
16764 Py_INCREF(obj);
16765 return Py_BuildValue((char *)"");
16766 }
16767 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16768 PyObject *resultobj;
16769 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16770 int arg2 ;
16771 wxString *arg3 = 0 ;
16772 wxBitmap *arg4 = 0 ;
16773 wxBitmap const &arg5_defvalue = wxNullBitmap ;
16774 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
16775 int arg6 = (int) wxITEM_NORMAL ;
16776 wxString const &arg7_defvalue = wxPyEmptyString ;
16777 wxString *arg7 = (wxString *) &arg7_defvalue ;
16778 wxString const &arg8_defvalue = wxPyEmptyString ;
16779 wxString *arg8 = (wxString *) &arg8_defvalue ;
16780 PyObject *arg9 = (PyObject *) NULL ;
16781 wxToolBarToolBase *result;
16782 bool temp3 = False ;
16783 bool temp7 = False ;
16784 bool temp8 = False ;
16785 PyObject * obj0 = 0 ;
16786 PyObject * obj1 = 0 ;
16787 PyObject * obj2 = 0 ;
16788 PyObject * obj3 = 0 ;
16789 PyObject * obj4 = 0 ;
16790 PyObject * obj5 = 0 ;
16791 PyObject * obj6 = 0 ;
16792 PyObject * obj7 = 0 ;
16793 PyObject * obj8 = 0 ;
16794 char *kwnames[] = {
16795 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16796 };
16797
16798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
16799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16801 arg2 = (int) SWIG_AsInt(obj1);
16802 if (PyErr_Occurred()) SWIG_fail;
16803 {
16804 arg3 = wxString_in_helper(obj2);
16805 if (arg3 == NULL) SWIG_fail;
16806 temp3 = True;
16807 }
16808 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16809 SWIG_POINTER_EXCEPTION | 0)) == -1)
16810 SWIG_fail;
16811 if (arg4 == NULL) {
16812 PyErr_SetString(PyExc_TypeError,"null reference");
16813 SWIG_fail;
16814 }
16815 if (obj4) {
16816 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16817 SWIG_POINTER_EXCEPTION | 0)) == -1)
16818 SWIG_fail;
16819 if (arg5 == NULL) {
16820 PyErr_SetString(PyExc_TypeError,"null reference");
16821 SWIG_fail;
16822 }
16823 }
16824 if (obj5) {
16825 arg6 = (wxItemKind) SWIG_AsInt(obj5);
16826 if (PyErr_Occurred()) SWIG_fail;
16827 }
16828 if (obj6) {
16829 {
16830 arg7 = wxString_in_helper(obj6);
16831 if (arg7 == NULL) SWIG_fail;
16832 temp7 = True;
16833 }
16834 }
16835 if (obj7) {
16836 {
16837 arg8 = wxString_in_helper(obj7);
16838 if (arg8 == NULL) SWIG_fail;
16839 temp8 = True;
16840 }
16841 }
16842 if (obj8) {
16843 arg9 = obj8;
16844 }
16845 {
16846 PyThreadState* __tstate = wxPyBeginAllowThreads();
16847 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
16848
16849 wxPyEndAllowThreads(__tstate);
16850 if (PyErr_Occurred()) SWIG_fail;
16851 }
16852 {
16853 resultobj = wxPyMake_wxObject(result);
16854 }
16855 {
16856 if (temp3)
16857 delete arg3;
16858 }
16859 {
16860 if (temp7)
16861 delete arg7;
16862 }
16863 {
16864 if (temp8)
16865 delete arg8;
16866 }
16867 return resultobj;
16868 fail:
16869 {
16870 if (temp3)
16871 delete arg3;
16872 }
16873 {
16874 if (temp7)
16875 delete arg7;
16876 }
16877 {
16878 if (temp8)
16879 delete arg8;
16880 }
16881 return NULL;
16882 }
16883
16884
16885 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16886 PyObject *resultobj;
16887 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16888 size_t arg2 ;
16889 int arg3 ;
16890 wxString *arg4 = 0 ;
16891 wxBitmap *arg5 = 0 ;
16892 wxBitmap const &arg6_defvalue = wxNullBitmap ;
16893 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
16894 int arg7 = (int) wxITEM_NORMAL ;
16895 wxString const &arg8_defvalue = wxPyEmptyString ;
16896 wxString *arg8 = (wxString *) &arg8_defvalue ;
16897 wxString const &arg9_defvalue = wxPyEmptyString ;
16898 wxString *arg9 = (wxString *) &arg9_defvalue ;
16899 PyObject *arg10 = (PyObject *) NULL ;
16900 wxToolBarToolBase *result;
16901 bool temp4 = False ;
16902 bool temp8 = False ;
16903 bool temp9 = False ;
16904 PyObject * obj0 = 0 ;
16905 PyObject * obj1 = 0 ;
16906 PyObject * obj2 = 0 ;
16907 PyObject * obj3 = 0 ;
16908 PyObject * obj4 = 0 ;
16909 PyObject * obj5 = 0 ;
16910 PyObject * obj6 = 0 ;
16911 PyObject * obj7 = 0 ;
16912 PyObject * obj8 = 0 ;
16913 PyObject * obj9 = 0 ;
16914 char *kwnames[] = {
16915 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16916 };
16917
16918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
16919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16921 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16922 if (PyErr_Occurred()) SWIG_fail;
16923 arg3 = (int) SWIG_AsInt(obj2);
16924 if (PyErr_Occurred()) SWIG_fail;
16925 {
16926 arg4 = wxString_in_helper(obj3);
16927 if (arg4 == NULL) SWIG_fail;
16928 temp4 = True;
16929 }
16930 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16931 SWIG_POINTER_EXCEPTION | 0)) == -1)
16932 SWIG_fail;
16933 if (arg5 == NULL) {
16934 PyErr_SetString(PyExc_TypeError,"null reference");
16935 SWIG_fail;
16936 }
16937 if (obj5) {
16938 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
16939 SWIG_POINTER_EXCEPTION | 0)) == -1)
16940 SWIG_fail;
16941 if (arg6 == NULL) {
16942 PyErr_SetString(PyExc_TypeError,"null reference");
16943 SWIG_fail;
16944 }
16945 }
16946 if (obj6) {
16947 arg7 = (wxItemKind) SWIG_AsInt(obj6);
16948 if (PyErr_Occurred()) SWIG_fail;
16949 }
16950 if (obj7) {
16951 {
16952 arg8 = wxString_in_helper(obj7);
16953 if (arg8 == NULL) SWIG_fail;
16954 temp8 = True;
16955 }
16956 }
16957 if (obj8) {
16958 {
16959 arg9 = wxString_in_helper(obj8);
16960 if (arg9 == NULL) SWIG_fail;
16961 temp9 = True;
16962 }
16963 }
16964 if (obj9) {
16965 arg10 = obj9;
16966 }
16967 {
16968 PyThreadState* __tstate = wxPyBeginAllowThreads();
16969 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);
16970
16971 wxPyEndAllowThreads(__tstate);
16972 if (PyErr_Occurred()) SWIG_fail;
16973 }
16974 {
16975 resultobj = wxPyMake_wxObject(result);
16976 }
16977 {
16978 if (temp4)
16979 delete arg4;
16980 }
16981 {
16982 if (temp8)
16983 delete arg8;
16984 }
16985 {
16986 if (temp9)
16987 delete arg9;
16988 }
16989 return resultobj;
16990 fail:
16991 {
16992 if (temp4)
16993 delete arg4;
16994 }
16995 {
16996 if (temp8)
16997 delete arg8;
16998 }
16999 {
17000 if (temp9)
17001 delete arg9;
17002 }
17003 return NULL;
17004 }
17005
17006
17007 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17008 PyObject *resultobj;
17009 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17010 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17011 wxToolBarToolBase *result;
17012 PyObject * obj0 = 0 ;
17013 PyObject * obj1 = 0 ;
17014 char *kwnames[] = {
17015 (char *) "self",(char *) "tool", NULL
17016 };
17017
17018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17021 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17023 {
17024 PyThreadState* __tstate = wxPyBeginAllowThreads();
17025 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17026
17027 wxPyEndAllowThreads(__tstate);
17028 if (PyErr_Occurred()) SWIG_fail;
17029 }
17030 {
17031 resultobj = wxPyMake_wxObject(result);
17032 }
17033 return resultobj;
17034 fail:
17035 return NULL;
17036 }
17037
17038
17039 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17040 PyObject *resultobj;
17041 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17042 size_t arg2 ;
17043 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17044 wxToolBarToolBase *result;
17045 PyObject * obj0 = 0 ;
17046 PyObject * obj1 = 0 ;
17047 PyObject * obj2 = 0 ;
17048 char *kwnames[] = {
17049 (char *) "self",(char *) "pos",(char *) "tool", NULL
17050 };
17051
17052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17055 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17056 if (PyErr_Occurred()) SWIG_fail;
17057 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17059 {
17060 PyThreadState* __tstate = wxPyBeginAllowThreads();
17061 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17062
17063 wxPyEndAllowThreads(__tstate);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 {
17067 resultobj = wxPyMake_wxObject(result);
17068 }
17069 return resultobj;
17070 fail:
17071 return NULL;
17072 }
17073
17074
17075 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17076 PyObject *resultobj;
17077 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17078 wxControl *arg2 = (wxControl *) 0 ;
17079 wxToolBarToolBase *result;
17080 PyObject * obj0 = 0 ;
17081 PyObject * obj1 = 0 ;
17082 char *kwnames[] = {
17083 (char *) "self",(char *) "control", NULL
17084 };
17085
17086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17089 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17091 {
17092 PyThreadState* __tstate = wxPyBeginAllowThreads();
17093 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17094
17095 wxPyEndAllowThreads(__tstate);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 {
17099 resultobj = wxPyMake_wxObject(result);
17100 }
17101 return resultobj;
17102 fail:
17103 return NULL;
17104 }
17105
17106
17107 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17108 PyObject *resultobj;
17109 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17110 size_t arg2 ;
17111 wxControl *arg3 = (wxControl *) 0 ;
17112 wxToolBarToolBase *result;
17113 PyObject * obj0 = 0 ;
17114 PyObject * obj1 = 0 ;
17115 PyObject * obj2 = 0 ;
17116 char *kwnames[] = {
17117 (char *) "self",(char *) "pos",(char *) "control", NULL
17118 };
17119
17120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17123 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17127 {
17128 PyThreadState* __tstate = wxPyBeginAllowThreads();
17129 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17130
17131 wxPyEndAllowThreads(__tstate);
17132 if (PyErr_Occurred()) SWIG_fail;
17133 }
17134 {
17135 resultobj = wxPyMake_wxObject(result);
17136 }
17137 return resultobj;
17138 fail:
17139 return NULL;
17140 }
17141
17142
17143 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17144 PyObject *resultobj;
17145 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17146 int arg2 ;
17147 wxControl *result;
17148 PyObject * obj0 = 0 ;
17149 PyObject * obj1 = 0 ;
17150 char *kwnames[] = {
17151 (char *) "self",(char *) "id", NULL
17152 };
17153
17154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17157 arg2 = (int) SWIG_AsInt(obj1);
17158 if (PyErr_Occurred()) SWIG_fail;
17159 {
17160 PyThreadState* __tstate = wxPyBeginAllowThreads();
17161 result = (wxControl *)(arg1)->FindControl(arg2);
17162
17163 wxPyEndAllowThreads(__tstate);
17164 if (PyErr_Occurred()) SWIG_fail;
17165 }
17166 {
17167 resultobj = wxPyMake_wxObject(result);
17168 }
17169 return resultobj;
17170 fail:
17171 return NULL;
17172 }
17173
17174
17175 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17176 PyObject *resultobj;
17177 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17178 wxToolBarToolBase *result;
17179 PyObject * obj0 = 0 ;
17180 char *kwnames[] = {
17181 (char *) "self", NULL
17182 };
17183
17184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17187 {
17188 PyThreadState* __tstate = wxPyBeginAllowThreads();
17189 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17190
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 {
17195 resultobj = wxPyMake_wxObject(result);
17196 }
17197 return resultobj;
17198 fail:
17199 return NULL;
17200 }
17201
17202
17203 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17204 PyObject *resultobj;
17205 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17206 size_t arg2 ;
17207 wxToolBarToolBase *result;
17208 PyObject * obj0 = 0 ;
17209 PyObject * obj1 = 0 ;
17210 char *kwnames[] = {
17211 (char *) "self",(char *) "pos", NULL
17212 };
17213
17214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17217 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17218 if (PyErr_Occurred()) SWIG_fail;
17219 {
17220 PyThreadState* __tstate = wxPyBeginAllowThreads();
17221 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17222
17223 wxPyEndAllowThreads(__tstate);
17224 if (PyErr_Occurred()) SWIG_fail;
17225 }
17226 {
17227 resultobj = wxPyMake_wxObject(result);
17228 }
17229 return resultobj;
17230 fail:
17231 return NULL;
17232 }
17233
17234
17235 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17236 PyObject *resultobj;
17237 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17238 int arg2 ;
17239 wxToolBarToolBase *result;
17240 PyObject * obj0 = 0 ;
17241 PyObject * obj1 = 0 ;
17242 char *kwnames[] = {
17243 (char *) "self",(char *) "id", NULL
17244 };
17245
17246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17249 arg2 = (int) SWIG_AsInt(obj1);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 {
17252 PyThreadState* __tstate = wxPyBeginAllowThreads();
17253 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17254
17255 wxPyEndAllowThreads(__tstate);
17256 if (PyErr_Occurred()) SWIG_fail;
17257 }
17258 {
17259 resultobj = wxPyMake_wxObject(result);
17260 }
17261 return resultobj;
17262 fail:
17263 return NULL;
17264 }
17265
17266
17267 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17268 PyObject *resultobj;
17269 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17270 size_t arg2 ;
17271 bool result;
17272 PyObject * obj0 = 0 ;
17273 PyObject * obj1 = 0 ;
17274 char *kwnames[] = {
17275 (char *) "self",(char *) "pos", NULL
17276 };
17277
17278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17281 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 {
17284 PyThreadState* __tstate = wxPyBeginAllowThreads();
17285 result = (bool)(arg1)->DeleteToolByPos(arg2);
17286
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 {
17291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17292 }
17293 return resultobj;
17294 fail:
17295 return NULL;
17296 }
17297
17298
17299 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17300 PyObject *resultobj;
17301 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17302 int arg2 ;
17303 bool result;
17304 PyObject * obj0 = 0 ;
17305 PyObject * obj1 = 0 ;
17306 char *kwnames[] = {
17307 (char *) "self",(char *) "id", NULL
17308 };
17309
17310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17313 arg2 = (int) SWIG_AsInt(obj1);
17314 if (PyErr_Occurred()) SWIG_fail;
17315 {
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 result = (bool)(arg1)->DeleteTool(arg2);
17318
17319 wxPyEndAllowThreads(__tstate);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 {
17323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17324 }
17325 return resultobj;
17326 fail:
17327 return NULL;
17328 }
17329
17330
17331 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
17332 PyObject *resultobj;
17333 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17334 PyObject * obj0 = 0 ;
17335 char *kwnames[] = {
17336 (char *) "self", NULL
17337 };
17338
17339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17342 {
17343 PyThreadState* __tstate = wxPyBeginAllowThreads();
17344 (arg1)->ClearTools();
17345
17346 wxPyEndAllowThreads(__tstate);
17347 if (PyErr_Occurred()) SWIG_fail;
17348 }
17349 Py_INCREF(Py_None); resultobj = Py_None;
17350 return resultobj;
17351 fail:
17352 return NULL;
17353 }
17354
17355
17356 static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
17357 PyObject *resultobj;
17358 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17359 bool result;
17360 PyObject * obj0 = 0 ;
17361 char *kwnames[] = {
17362 (char *) "self", NULL
17363 };
17364
17365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17368 {
17369 PyThreadState* __tstate = wxPyBeginAllowThreads();
17370 result = (bool)(arg1)->Realize();
17371
17372 wxPyEndAllowThreads(__tstate);
17373 if (PyErr_Occurred()) SWIG_fail;
17374 }
17375 {
17376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17377 }
17378 return resultobj;
17379 fail:
17380 return NULL;
17381 }
17382
17383
17384 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17385 PyObject *resultobj;
17386 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17387 int arg2 ;
17388 bool arg3 ;
17389 PyObject * obj0 = 0 ;
17390 PyObject * obj1 = 0 ;
17391 PyObject * obj2 = 0 ;
17392 char *kwnames[] = {
17393 (char *) "self",(char *) "id",(char *) "enable", NULL
17394 };
17395
17396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17399 arg2 = (int) SWIG_AsInt(obj1);
17400 if (PyErr_Occurred()) SWIG_fail;
17401 arg3 = (bool) SWIG_AsBool(obj2);
17402 if (PyErr_Occurred()) SWIG_fail;
17403 {
17404 PyThreadState* __tstate = wxPyBeginAllowThreads();
17405 (arg1)->EnableTool(arg2,arg3);
17406
17407 wxPyEndAllowThreads(__tstate);
17408 if (PyErr_Occurred()) SWIG_fail;
17409 }
17410 Py_INCREF(Py_None); resultobj = Py_None;
17411 return resultobj;
17412 fail:
17413 return NULL;
17414 }
17415
17416
17417 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17418 PyObject *resultobj;
17419 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17420 int arg2 ;
17421 bool arg3 ;
17422 PyObject * obj0 = 0 ;
17423 PyObject * obj1 = 0 ;
17424 PyObject * obj2 = 0 ;
17425 char *kwnames[] = {
17426 (char *) "self",(char *) "id",(char *) "toggle", NULL
17427 };
17428
17429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17432 arg2 = (int) SWIG_AsInt(obj1);
17433 if (PyErr_Occurred()) SWIG_fail;
17434 arg3 = (bool) SWIG_AsBool(obj2);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 {
17437 PyThreadState* __tstate = wxPyBeginAllowThreads();
17438 (arg1)->ToggleTool(arg2,arg3);
17439
17440 wxPyEndAllowThreads(__tstate);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
17443 Py_INCREF(Py_None); resultobj = Py_None;
17444 return resultobj;
17445 fail:
17446 return NULL;
17447 }
17448
17449
17450 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
17451 PyObject *resultobj;
17452 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17453 int arg2 ;
17454 bool arg3 ;
17455 PyObject * obj0 = 0 ;
17456 PyObject * obj1 = 0 ;
17457 PyObject * obj2 = 0 ;
17458 char *kwnames[] = {
17459 (char *) "self",(char *) "id",(char *) "toggle", NULL
17460 };
17461
17462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17465 arg2 = (int) SWIG_AsInt(obj1);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 arg3 = (bool) SWIG_AsBool(obj2);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 {
17470 PyThreadState* __tstate = wxPyBeginAllowThreads();
17471 (arg1)->SetToggle(arg2,arg3);
17472
17473 wxPyEndAllowThreads(__tstate);
17474 if (PyErr_Occurred()) SWIG_fail;
17475 }
17476 Py_INCREF(Py_None); resultobj = Py_None;
17477 return resultobj;
17478 fail:
17479 return NULL;
17480 }
17481
17482
17483 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17484 PyObject *resultobj;
17485 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17486 int arg2 ;
17487 PyObject *result;
17488 PyObject * obj0 = 0 ;
17489 PyObject * obj1 = 0 ;
17490 char *kwnames[] = {
17491 (char *) "self",(char *) "id", NULL
17492 };
17493
17494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17497 arg2 = (int) SWIG_AsInt(obj1);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17502
17503 wxPyEndAllowThreads(__tstate);
17504 if (PyErr_Occurred()) SWIG_fail;
17505 }
17506 resultobj = result;
17507 return resultobj;
17508 fail:
17509 return NULL;
17510 }
17511
17512
17513 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17514 PyObject *resultobj;
17515 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17516 int arg2 ;
17517 PyObject *arg3 = (PyObject *) 0 ;
17518 PyObject * obj0 = 0 ;
17519 PyObject * obj1 = 0 ;
17520 PyObject * obj2 = 0 ;
17521 char *kwnames[] = {
17522 (char *) "self",(char *) "id",(char *) "clientData", NULL
17523 };
17524
17525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17528 arg2 = (int) SWIG_AsInt(obj1);
17529 if (PyErr_Occurred()) SWIG_fail;
17530 arg3 = obj2;
17531 {
17532 PyThreadState* __tstate = wxPyBeginAllowThreads();
17533 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17534
17535 wxPyEndAllowThreads(__tstate);
17536 if (PyErr_Occurred()) SWIG_fail;
17537 }
17538 Py_INCREF(Py_None); resultobj = Py_None;
17539 return resultobj;
17540 fail:
17541 return NULL;
17542 }
17543
17544
17545 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17546 PyObject *resultobj;
17547 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17548 int arg2 ;
17549 int result;
17550 PyObject * obj0 = 0 ;
17551 PyObject * obj1 = 0 ;
17552 char *kwnames[] = {
17553 (char *) "self",(char *) "id", NULL
17554 };
17555
17556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17559 arg2 = (int) SWIG_AsInt(obj1);
17560 if (PyErr_Occurred()) SWIG_fail;
17561 {
17562 PyThreadState* __tstate = wxPyBeginAllowThreads();
17563 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17564
17565 wxPyEndAllowThreads(__tstate);
17566 if (PyErr_Occurred()) SWIG_fail;
17567 }
17568 resultobj = SWIG_FromInt((int)result);
17569 return resultobj;
17570 fail:
17571 return NULL;
17572 }
17573
17574
17575 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
17576 PyObject *resultobj;
17577 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17578 int arg2 ;
17579 bool result;
17580 PyObject * obj0 = 0 ;
17581 PyObject * obj1 = 0 ;
17582 char *kwnames[] = {
17583 (char *) "self",(char *) "id", NULL
17584 };
17585
17586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17589 arg2 = (int) SWIG_AsInt(obj1);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 result = (bool)(arg1)->GetToolState(arg2);
17594
17595 wxPyEndAllowThreads(__tstate);
17596 if (PyErr_Occurred()) SWIG_fail;
17597 }
17598 {
17599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17600 }
17601 return resultobj;
17602 fail:
17603 return NULL;
17604 }
17605
17606
17607 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17608 PyObject *resultobj;
17609 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17610 int arg2 ;
17611 bool result;
17612 PyObject * obj0 = 0 ;
17613 PyObject * obj1 = 0 ;
17614 char *kwnames[] = {
17615 (char *) "self",(char *) "id", NULL
17616 };
17617
17618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17621 arg2 = (int) SWIG_AsInt(obj1);
17622 if (PyErr_Occurred()) SWIG_fail;
17623 {
17624 PyThreadState* __tstate = wxPyBeginAllowThreads();
17625 result = (bool)(arg1)->GetToolEnabled(arg2);
17626
17627 wxPyEndAllowThreads(__tstate);
17628 if (PyErr_Occurred()) SWIG_fail;
17629 }
17630 {
17631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17632 }
17633 return resultobj;
17634 fail:
17635 return NULL;
17636 }
17637
17638
17639 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17640 PyObject *resultobj;
17641 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17642 int arg2 ;
17643 wxString *arg3 = 0 ;
17644 bool temp3 = False ;
17645 PyObject * obj0 = 0 ;
17646 PyObject * obj1 = 0 ;
17647 PyObject * obj2 = 0 ;
17648 char *kwnames[] = {
17649 (char *) "self",(char *) "id",(char *) "helpString", NULL
17650 };
17651
17652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17655 arg2 = (int) SWIG_AsInt(obj1);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 {
17658 arg3 = wxString_in_helper(obj2);
17659 if (arg3 == NULL) SWIG_fail;
17660 temp3 = True;
17661 }
17662 {
17663 PyThreadState* __tstate = wxPyBeginAllowThreads();
17664 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17665
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 Py_INCREF(Py_None); resultobj = Py_None;
17670 {
17671 if (temp3)
17672 delete arg3;
17673 }
17674 return resultobj;
17675 fail:
17676 {
17677 if (temp3)
17678 delete arg3;
17679 }
17680 return NULL;
17681 }
17682
17683
17684 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17685 PyObject *resultobj;
17686 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17687 int arg2 ;
17688 wxString result;
17689 PyObject * obj0 = 0 ;
17690 PyObject * obj1 = 0 ;
17691 char *kwnames[] = {
17692 (char *) "self",(char *) "id", NULL
17693 };
17694
17695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17698 arg2 = (int) SWIG_AsInt(obj1);
17699 if (PyErr_Occurred()) SWIG_fail;
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 result = (arg1)->GetToolShortHelp(arg2);
17703
17704 wxPyEndAllowThreads(__tstate);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 }
17707 {
17708 #if wxUSE_UNICODE
17709 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17710 #else
17711 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17712 #endif
17713 }
17714 return resultobj;
17715 fail:
17716 return NULL;
17717 }
17718
17719
17720 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17721 PyObject *resultobj;
17722 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17723 int arg2 ;
17724 wxString *arg3 = 0 ;
17725 bool temp3 = False ;
17726 PyObject * obj0 = 0 ;
17727 PyObject * obj1 = 0 ;
17728 PyObject * obj2 = 0 ;
17729 char *kwnames[] = {
17730 (char *) "self",(char *) "id",(char *) "helpString", NULL
17731 };
17732
17733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17736 arg2 = (int) SWIG_AsInt(obj1);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 {
17739 arg3 = wxString_in_helper(obj2);
17740 if (arg3 == NULL) SWIG_fail;
17741 temp3 = True;
17742 }
17743 {
17744 PyThreadState* __tstate = wxPyBeginAllowThreads();
17745 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
17746
17747 wxPyEndAllowThreads(__tstate);
17748 if (PyErr_Occurred()) SWIG_fail;
17749 }
17750 Py_INCREF(Py_None); resultobj = Py_None;
17751 {
17752 if (temp3)
17753 delete arg3;
17754 }
17755 return resultobj;
17756 fail:
17757 {
17758 if (temp3)
17759 delete arg3;
17760 }
17761 return NULL;
17762 }
17763
17764
17765 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17766 PyObject *resultobj;
17767 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17768 int arg2 ;
17769 wxString result;
17770 PyObject * obj0 = 0 ;
17771 PyObject * obj1 = 0 ;
17772 char *kwnames[] = {
17773 (char *) "self",(char *) "id", NULL
17774 };
17775
17776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
17777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17779 arg2 = (int) SWIG_AsInt(obj1);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 {
17782 PyThreadState* __tstate = wxPyBeginAllowThreads();
17783 result = (arg1)->GetToolLongHelp(arg2);
17784
17785 wxPyEndAllowThreads(__tstate);
17786 if (PyErr_Occurred()) SWIG_fail;
17787 }
17788 {
17789 #if wxUSE_UNICODE
17790 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17791 #else
17792 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17793 #endif
17794 }
17795 return resultobj;
17796 fail:
17797 return NULL;
17798 }
17799
17800
17801 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
17802 PyObject *resultobj;
17803 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17804 int arg2 ;
17805 int arg3 ;
17806 PyObject * obj0 = 0 ;
17807 PyObject * obj1 = 0 ;
17808 PyObject * obj2 = 0 ;
17809 char *kwnames[] = {
17810 (char *) "self",(char *) "x",(char *) "y", NULL
17811 };
17812
17813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
17814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17816 arg2 = (int) SWIG_AsInt(obj1);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 arg3 = (int) SWIG_AsInt(obj2);
17819 if (PyErr_Occurred()) SWIG_fail;
17820 {
17821 PyThreadState* __tstate = wxPyBeginAllowThreads();
17822 (arg1)->SetMargins(arg2,arg3);
17823
17824 wxPyEndAllowThreads(__tstate);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 }
17827 Py_INCREF(Py_None); resultobj = Py_None;
17828 return resultobj;
17829 fail:
17830 return NULL;
17831 }
17832
17833
17834 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17835 PyObject *resultobj;
17836 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17837 wxSize *arg2 = 0 ;
17838 wxSize temp2 ;
17839 PyObject * obj0 = 0 ;
17840 PyObject * obj1 = 0 ;
17841 char *kwnames[] = {
17842 (char *) "self",(char *) "size", NULL
17843 };
17844
17845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
17846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17848 {
17849 arg2 = &temp2;
17850 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17851 }
17852 {
17853 PyThreadState* __tstate = wxPyBeginAllowThreads();
17854 (arg1)->SetMargins((wxSize const &)*arg2);
17855
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 Py_INCREF(Py_None); resultobj = Py_None;
17860 return resultobj;
17861 fail:
17862 return NULL;
17863 }
17864
17865
17866 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17867 PyObject *resultobj;
17868 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17869 int arg2 ;
17870 PyObject * obj0 = 0 ;
17871 PyObject * obj1 = 0 ;
17872 char *kwnames[] = {
17873 (char *) "self",(char *) "packing", NULL
17874 };
17875
17876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
17877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17879 arg2 = (int) SWIG_AsInt(obj1);
17880 if (PyErr_Occurred()) SWIG_fail;
17881 {
17882 PyThreadState* __tstate = wxPyBeginAllowThreads();
17883 (arg1)->SetToolPacking(arg2);
17884
17885 wxPyEndAllowThreads(__tstate);
17886 if (PyErr_Occurred()) SWIG_fail;
17887 }
17888 Py_INCREF(Py_None); resultobj = Py_None;
17889 return resultobj;
17890 fail:
17891 return NULL;
17892 }
17893
17894
17895 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17896 PyObject *resultobj;
17897 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17898 int arg2 ;
17899 PyObject * obj0 = 0 ;
17900 PyObject * obj1 = 0 ;
17901 char *kwnames[] = {
17902 (char *) "self",(char *) "separation", NULL
17903 };
17904
17905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
17906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17908 arg2 = (int) SWIG_AsInt(obj1);
17909 if (PyErr_Occurred()) SWIG_fail;
17910 {
17911 PyThreadState* __tstate = wxPyBeginAllowThreads();
17912 (arg1)->SetToolSeparation(arg2);
17913
17914 wxPyEndAllowThreads(__tstate);
17915 if (PyErr_Occurred()) SWIG_fail;
17916 }
17917 Py_INCREF(Py_None); resultobj = Py_None;
17918 return resultobj;
17919 fail:
17920 return NULL;
17921 }
17922
17923
17924 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17925 PyObject *resultobj;
17926 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17927 wxSize result;
17928 PyObject * obj0 = 0 ;
17929 char *kwnames[] = {
17930 (char *) "self", NULL
17931 };
17932
17933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
17934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17936 {
17937 PyThreadState* __tstate = wxPyBeginAllowThreads();
17938 result = (arg1)->GetToolMargins();
17939
17940 wxPyEndAllowThreads(__tstate);
17941 if (PyErr_Occurred()) SWIG_fail;
17942 }
17943 {
17944 wxSize * resultptr;
17945 resultptr = new wxSize((wxSize &) result);
17946 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17947 }
17948 return resultobj;
17949 fail:
17950 return NULL;
17951 }
17952
17953
17954 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17955 PyObject *resultobj;
17956 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17957 wxSize result;
17958 PyObject * obj0 = 0 ;
17959 char *kwnames[] = {
17960 (char *) "self", NULL
17961 };
17962
17963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
17964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17966 {
17967 PyThreadState* __tstate = wxPyBeginAllowThreads();
17968 result = (arg1)->GetMargins();
17969
17970 wxPyEndAllowThreads(__tstate);
17971 if (PyErr_Occurred()) SWIG_fail;
17972 }
17973 {
17974 wxSize * resultptr;
17975 resultptr = new wxSize((wxSize &) result);
17976 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17977 }
17978 return resultobj;
17979 fail:
17980 return NULL;
17981 }
17982
17983
17984 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17985 PyObject *resultobj;
17986 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17987 int result;
17988 PyObject * obj0 = 0 ;
17989 char *kwnames[] = {
17990 (char *) "self", NULL
17991 };
17992
17993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
17994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17996 {
17997 PyThreadState* __tstate = wxPyBeginAllowThreads();
17998 result = (int)(arg1)->GetToolPacking();
17999
18000 wxPyEndAllowThreads(__tstate);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 }
18003 resultobj = SWIG_FromInt((int)result);
18004 return resultobj;
18005 fail:
18006 return NULL;
18007 }
18008
18009
18010 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
18011 PyObject *resultobj;
18012 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18013 int result;
18014 PyObject * obj0 = 0 ;
18015 char *kwnames[] = {
18016 (char *) "self", NULL
18017 };
18018
18019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18022 {
18023 PyThreadState* __tstate = wxPyBeginAllowThreads();
18024 result = (int)(arg1)->GetToolSeparation();
18025
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 resultobj = SWIG_FromInt((int)result);
18030 return resultobj;
18031 fail:
18032 return NULL;
18033 }
18034
18035
18036 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj;
18038 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18039 int arg2 ;
18040 PyObject * obj0 = 0 ;
18041 PyObject * obj1 = 0 ;
18042 char *kwnames[] = {
18043 (char *) "self",(char *) "nRows", NULL
18044 };
18045
18046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18049 arg2 = (int) SWIG_AsInt(obj1);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 {
18052 PyThreadState* __tstate = wxPyBeginAllowThreads();
18053 (arg1)->SetRows(arg2);
18054
18055 wxPyEndAllowThreads(__tstate);
18056 if (PyErr_Occurred()) SWIG_fail;
18057 }
18058 Py_INCREF(Py_None); resultobj = Py_None;
18059 return resultobj;
18060 fail:
18061 return NULL;
18062 }
18063
18064
18065 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
18066 PyObject *resultobj;
18067 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18068 int arg2 ;
18069 int arg3 ;
18070 PyObject * obj0 = 0 ;
18071 PyObject * obj1 = 0 ;
18072 PyObject * obj2 = 0 ;
18073 char *kwnames[] = {
18074 (char *) "self",(char *) "rows",(char *) "cols", NULL
18075 };
18076
18077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18080 arg2 = (int) SWIG_AsInt(obj1);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 arg3 = (int) SWIG_AsInt(obj2);
18083 if (PyErr_Occurred()) SWIG_fail;
18084 {
18085 PyThreadState* __tstate = wxPyBeginAllowThreads();
18086 (arg1)->SetMaxRowsCols(arg2,arg3);
18087
18088 wxPyEndAllowThreads(__tstate);
18089 if (PyErr_Occurred()) SWIG_fail;
18090 }
18091 Py_INCREF(Py_None); resultobj = Py_None;
18092 return resultobj;
18093 fail:
18094 return NULL;
18095 }
18096
18097
18098 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
18099 PyObject *resultobj;
18100 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18101 int result;
18102 PyObject * obj0 = 0 ;
18103 char *kwnames[] = {
18104 (char *) "self", NULL
18105 };
18106
18107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18110 {
18111 PyThreadState* __tstate = wxPyBeginAllowThreads();
18112 result = (int)(arg1)->GetMaxRows();
18113
18114 wxPyEndAllowThreads(__tstate);
18115 if (PyErr_Occurred()) SWIG_fail;
18116 }
18117 resultobj = SWIG_FromInt((int)result);
18118 return resultobj;
18119 fail:
18120 return NULL;
18121 }
18122
18123
18124 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
18125 PyObject *resultobj;
18126 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18127 int result;
18128 PyObject * obj0 = 0 ;
18129 char *kwnames[] = {
18130 (char *) "self", NULL
18131 };
18132
18133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18136 {
18137 PyThreadState* __tstate = wxPyBeginAllowThreads();
18138 result = (int)(arg1)->GetMaxCols();
18139
18140 wxPyEndAllowThreads(__tstate);
18141 if (PyErr_Occurred()) SWIG_fail;
18142 }
18143 resultobj = SWIG_FromInt((int)result);
18144 return resultobj;
18145 fail:
18146 return NULL;
18147 }
18148
18149
18150 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18151 PyObject *resultobj;
18152 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18153 wxSize *arg2 = 0 ;
18154 wxSize temp2 ;
18155 PyObject * obj0 = 0 ;
18156 PyObject * obj1 = 0 ;
18157 char *kwnames[] = {
18158 (char *) "self",(char *) "size", NULL
18159 };
18160
18161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18164 {
18165 arg2 = &temp2;
18166 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18167 }
18168 {
18169 PyThreadState* __tstate = wxPyBeginAllowThreads();
18170 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18171
18172 wxPyEndAllowThreads(__tstate);
18173 if (PyErr_Occurred()) SWIG_fail;
18174 }
18175 Py_INCREF(Py_None); resultobj = Py_None;
18176 return resultobj;
18177 fail:
18178 return NULL;
18179 }
18180
18181
18182 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18183 PyObject *resultobj;
18184 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18185 wxSize result;
18186 PyObject * obj0 = 0 ;
18187 char *kwnames[] = {
18188 (char *) "self", NULL
18189 };
18190
18191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18194 {
18195 PyThreadState* __tstate = wxPyBeginAllowThreads();
18196 result = (arg1)->GetToolBitmapSize();
18197
18198 wxPyEndAllowThreads(__tstate);
18199 if (PyErr_Occurred()) SWIG_fail;
18200 }
18201 {
18202 wxSize * resultptr;
18203 resultptr = new wxSize((wxSize &) result);
18204 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18205 }
18206 return resultobj;
18207 fail:
18208 return NULL;
18209 }
18210
18211
18212 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18213 PyObject *resultobj;
18214 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18215 wxSize result;
18216 PyObject * obj0 = 0 ;
18217 char *kwnames[] = {
18218 (char *) "self", NULL
18219 };
18220
18221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18224 {
18225 PyThreadState* __tstate = wxPyBeginAllowThreads();
18226 result = (arg1)->GetToolSize();
18227
18228 wxPyEndAllowThreads(__tstate);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
18231 {
18232 wxSize * resultptr;
18233 resultptr = new wxSize((wxSize &) result);
18234 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18235 }
18236 return resultobj;
18237 fail:
18238 return NULL;
18239 }
18240
18241
18242 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18243 PyObject *resultobj;
18244 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18245 int arg2 ;
18246 int arg3 ;
18247 wxToolBarToolBase *result;
18248 PyObject * obj0 = 0 ;
18249 PyObject * obj1 = 0 ;
18250 PyObject * obj2 = 0 ;
18251 char *kwnames[] = {
18252 (char *) "self",(char *) "x",(char *) "y", NULL
18253 };
18254
18255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18258 arg2 = (int) SWIG_AsInt(obj1);
18259 if (PyErr_Occurred()) SWIG_fail;
18260 arg3 = (int) SWIG_AsInt(obj2);
18261 if (PyErr_Occurred()) SWIG_fail;
18262 {
18263 PyThreadState* __tstate = wxPyBeginAllowThreads();
18264 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18265
18266 wxPyEndAllowThreads(__tstate);
18267 if (PyErr_Occurred()) SWIG_fail;
18268 }
18269 {
18270 resultobj = wxPyMake_wxObject(result);
18271 }
18272 return resultobj;
18273 fail:
18274 return NULL;
18275 }
18276
18277
18278 static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
18279 PyObject *resultobj;
18280 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18281 int arg2 ;
18282 wxToolBarToolBase *result;
18283 PyObject * obj0 = 0 ;
18284 PyObject * obj1 = 0 ;
18285 char *kwnames[] = {
18286 (char *) "self",(char *) "toolid", NULL
18287 };
18288
18289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18292 arg2 = (int) SWIG_AsInt(obj1);
18293 if (PyErr_Occurred()) SWIG_fail;
18294 {
18295 PyThreadState* __tstate = wxPyBeginAllowThreads();
18296 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18297
18298 wxPyEndAllowThreads(__tstate);
18299 if (PyErr_Occurred()) SWIG_fail;
18300 }
18301 {
18302 resultobj = wxPyMake_wxObject(result);
18303 }
18304 return resultobj;
18305 fail:
18306 return NULL;
18307 }
18308
18309
18310 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
18311 PyObject *resultobj;
18312 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18313 bool result;
18314 PyObject * obj0 = 0 ;
18315 char *kwnames[] = {
18316 (char *) "self", NULL
18317 };
18318
18319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18322 {
18323 PyThreadState* __tstate = wxPyBeginAllowThreads();
18324 result = (bool)(arg1)->IsVertical();
18325
18326 wxPyEndAllowThreads(__tstate);
18327 if (PyErr_Occurred()) SWIG_fail;
18328 }
18329 {
18330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18331 }
18332 return resultobj;
18333 fail:
18334 return NULL;
18335 }
18336
18337
18338 static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
18339 PyObject *obj;
18340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18341 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18342 Py_INCREF(obj);
18343 return Py_BuildValue((char *)"");
18344 }
18345 static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18346 PyObject *resultobj;
18347 wxWindow *arg1 = (wxWindow *) 0 ;
18348 int arg2 ;
18349 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18350 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18351 wxSize const &arg4_defvalue = wxDefaultSize ;
18352 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18353 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18354 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18355 wxString *arg6 = (wxString *) &arg6_defvalue ;
18356 wxToolBar *result;
18357 wxPoint temp3 ;
18358 wxSize temp4 ;
18359 bool temp6 = False ;
18360 PyObject * obj0 = 0 ;
18361 PyObject * obj1 = 0 ;
18362 PyObject * obj2 = 0 ;
18363 PyObject * obj3 = 0 ;
18364 PyObject * obj4 = 0 ;
18365 PyObject * obj5 = 0 ;
18366 char *kwnames[] = {
18367 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18368 };
18369
18370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18373 arg2 = (int) SWIG_AsInt(obj1);
18374 if (PyErr_Occurred()) SWIG_fail;
18375 if (obj2) {
18376 {
18377 arg3 = &temp3;
18378 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18379 }
18380 }
18381 if (obj3) {
18382 {
18383 arg4 = &temp4;
18384 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18385 }
18386 }
18387 if (obj4) {
18388 arg5 = (long) SWIG_AsLong(obj4);
18389 if (PyErr_Occurred()) SWIG_fail;
18390 }
18391 if (obj5) {
18392 {
18393 arg6 = wxString_in_helper(obj5);
18394 if (arg6 == NULL) SWIG_fail;
18395 temp6 = True;
18396 }
18397 }
18398 {
18399 PyThreadState* __tstate = wxPyBeginAllowThreads();
18400 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18401
18402 wxPyEndAllowThreads(__tstate);
18403 if (PyErr_Occurred()) SWIG_fail;
18404 }
18405 {
18406 resultobj = wxPyMake_wxObject(result);
18407 }
18408 {
18409 if (temp6)
18410 delete arg6;
18411 }
18412 return resultobj;
18413 fail:
18414 {
18415 if (temp6)
18416 delete arg6;
18417 }
18418 return NULL;
18419 }
18420
18421
18422 static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18423 PyObject *resultobj;
18424 wxToolBar *result;
18425 char *kwnames[] = {
18426 NULL
18427 };
18428
18429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18430 {
18431 PyThreadState* __tstate = wxPyBeginAllowThreads();
18432 result = (wxToolBar *)new wxToolBar();
18433
18434 wxPyEndAllowThreads(__tstate);
18435 if (PyErr_Occurred()) SWIG_fail;
18436 }
18437 {
18438 resultobj = wxPyMake_wxObject(result);
18439 }
18440 return resultobj;
18441 fail:
18442 return NULL;
18443 }
18444
18445
18446 static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
18447 PyObject *resultobj;
18448 wxToolBar *arg1 = (wxToolBar *) 0 ;
18449 wxWindow *arg2 = (wxWindow *) 0 ;
18450 int arg3 ;
18451 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18452 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18453 wxSize const &arg5_defvalue = wxDefaultSize ;
18454 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18455 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18456 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18457 wxString *arg7 = (wxString *) &arg7_defvalue ;
18458 bool result;
18459 wxPoint temp4 ;
18460 wxSize temp5 ;
18461 bool temp7 = False ;
18462 PyObject * obj0 = 0 ;
18463 PyObject * obj1 = 0 ;
18464 PyObject * obj2 = 0 ;
18465 PyObject * obj3 = 0 ;
18466 PyObject * obj4 = 0 ;
18467 PyObject * obj5 = 0 ;
18468 PyObject * obj6 = 0 ;
18469 char *kwnames[] = {
18470 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18471 };
18472
18473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18476 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18478 arg3 = (int) SWIG_AsInt(obj2);
18479 if (PyErr_Occurred()) SWIG_fail;
18480 if (obj3) {
18481 {
18482 arg4 = &temp4;
18483 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18484 }
18485 }
18486 if (obj4) {
18487 {
18488 arg5 = &temp5;
18489 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18490 }
18491 }
18492 if (obj5) {
18493 arg6 = (long) SWIG_AsLong(obj5);
18494 if (PyErr_Occurred()) SWIG_fail;
18495 }
18496 if (obj6) {
18497 {
18498 arg7 = wxString_in_helper(obj6);
18499 if (arg7 == NULL) SWIG_fail;
18500 temp7 = True;
18501 }
18502 }
18503 {
18504 PyThreadState* __tstate = wxPyBeginAllowThreads();
18505 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18506
18507 wxPyEndAllowThreads(__tstate);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 }
18510 {
18511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18512 }
18513 {
18514 if (temp7)
18515 delete arg7;
18516 }
18517 return resultobj;
18518 fail:
18519 {
18520 if (temp7)
18521 delete arg7;
18522 }
18523 return NULL;
18524 }
18525
18526
18527 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18528 PyObject *resultobj;
18529 wxToolBar *arg1 = (wxToolBar *) 0 ;
18530 int arg2 ;
18531 int arg3 ;
18532 wxToolBarToolBase *result;
18533 PyObject * obj0 = 0 ;
18534 PyObject * obj1 = 0 ;
18535 PyObject * obj2 = 0 ;
18536 char *kwnames[] = {
18537 (char *) "self",(char *) "x",(char *) "y", NULL
18538 };
18539
18540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18543 arg2 = (int) SWIG_AsInt(obj1);
18544 if (PyErr_Occurred()) SWIG_fail;
18545 arg3 = (int) SWIG_AsInt(obj2);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 {
18548 PyThreadState* __tstate = wxPyBeginAllowThreads();
18549 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18550
18551 wxPyEndAllowThreads(__tstate);
18552 if (PyErr_Occurred()) SWIG_fail;
18553 }
18554 {
18555 resultobj = wxPyMake_wxObject(result);
18556 }
18557 return resultobj;
18558 fail:
18559 return NULL;
18560 }
18561
18562
18563 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18564 PyObject *resultobj;
18565 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18566 wxVisualAttributes result;
18567 PyObject * obj0 = 0 ;
18568 char *kwnames[] = {
18569 (char *) "variant", NULL
18570 };
18571
18572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18573 if (obj0) {
18574 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
18575 if (PyErr_Occurred()) SWIG_fail;
18576 }
18577 {
18578 PyThreadState* __tstate = wxPyBeginAllowThreads();
18579 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18580
18581 wxPyEndAllowThreads(__tstate);
18582 if (PyErr_Occurred()) SWIG_fail;
18583 }
18584 {
18585 wxVisualAttributes * resultptr;
18586 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18587 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18588 }
18589 return resultobj;
18590 fail:
18591 return NULL;
18592 }
18593
18594
18595 static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
18596 PyObject *obj;
18597 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18598 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18599 Py_INCREF(obj);
18600 return Py_BuildValue((char *)"");
18601 }
18602 static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
18603 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18604 return 1;
18605 }
18606
18607
18608 static PyObject *_wrap_ListCtrlNameStr_get() {
18609 PyObject *pyobj;
18610
18611 {
18612 #if wxUSE_UNICODE
18613 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18614 #else
18615 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18616 #endif
18617 }
18618 return pyobj;
18619 }
18620
18621
18622 static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
18623 PyObject *resultobj;
18624 wxColour const &arg1_defvalue = wxNullColour ;
18625 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18626 wxColour const &arg2_defvalue = wxNullColour ;
18627 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18628 wxFont const &arg3_defvalue = wxNullFont ;
18629 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18630 wxListItemAttr *result;
18631 wxColour temp1 ;
18632 wxColour temp2 ;
18633 PyObject * obj0 = 0 ;
18634 PyObject * obj1 = 0 ;
18635 PyObject * obj2 = 0 ;
18636 char *kwnames[] = {
18637 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18638 };
18639
18640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18641 if (obj0) {
18642 {
18643 arg1 = &temp1;
18644 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18645 }
18646 }
18647 if (obj1) {
18648 {
18649 arg2 = &temp2;
18650 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18651 }
18652 }
18653 if (obj2) {
18654 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18655 SWIG_POINTER_EXCEPTION | 0)) == -1)
18656 SWIG_fail;
18657 if (arg3 == NULL) {
18658 PyErr_SetString(PyExc_TypeError,"null reference");
18659 SWIG_fail;
18660 }
18661 }
18662 {
18663 PyThreadState* __tstate = wxPyBeginAllowThreads();
18664 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18665
18666 wxPyEndAllowThreads(__tstate);
18667 if (PyErr_Occurred()) SWIG_fail;
18668 }
18669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18670 return resultobj;
18671 fail:
18672 return NULL;
18673 }
18674
18675
18676 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18677 PyObject *resultobj;
18678 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18679 wxColour *arg2 = 0 ;
18680 wxColour temp2 ;
18681 PyObject * obj0 = 0 ;
18682 PyObject * obj1 = 0 ;
18683 char *kwnames[] = {
18684 (char *) "self",(char *) "colText", NULL
18685 };
18686
18687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18690 {
18691 arg2 = &temp2;
18692 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18693 }
18694 {
18695 PyThreadState* __tstate = wxPyBeginAllowThreads();
18696 (arg1)->SetTextColour((wxColour const &)*arg2);
18697
18698 wxPyEndAllowThreads(__tstate);
18699 if (PyErr_Occurred()) SWIG_fail;
18700 }
18701 Py_INCREF(Py_None); resultobj = Py_None;
18702 return resultobj;
18703 fail:
18704 return NULL;
18705 }
18706
18707
18708 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18709 PyObject *resultobj;
18710 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18711 wxColour *arg2 = 0 ;
18712 wxColour temp2 ;
18713 PyObject * obj0 = 0 ;
18714 PyObject * obj1 = 0 ;
18715 char *kwnames[] = {
18716 (char *) "self",(char *) "colBack", NULL
18717 };
18718
18719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18722 {
18723 arg2 = &temp2;
18724 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18725 }
18726 {
18727 PyThreadState* __tstate = wxPyBeginAllowThreads();
18728 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18729
18730 wxPyEndAllowThreads(__tstate);
18731 if (PyErr_Occurred()) SWIG_fail;
18732 }
18733 Py_INCREF(Py_None); resultobj = Py_None;
18734 return resultobj;
18735 fail:
18736 return NULL;
18737 }
18738
18739
18740 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18741 PyObject *resultobj;
18742 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18743 wxFont *arg2 = 0 ;
18744 PyObject * obj0 = 0 ;
18745 PyObject * obj1 = 0 ;
18746 char *kwnames[] = {
18747 (char *) "self",(char *) "font", NULL
18748 };
18749
18750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
18751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18753 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18754 SWIG_POINTER_EXCEPTION | 0)) == -1)
18755 SWIG_fail;
18756 if (arg2 == NULL) {
18757 PyErr_SetString(PyExc_TypeError,"null reference");
18758 SWIG_fail;
18759 }
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
18762 (arg1)->SetFont((wxFont const &)*arg2);
18763
18764 wxPyEndAllowThreads(__tstate);
18765 if (PyErr_Occurred()) SWIG_fail;
18766 }
18767 Py_INCREF(Py_None); resultobj = Py_None;
18768 return resultobj;
18769 fail:
18770 return NULL;
18771 }
18772
18773
18774 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18775 PyObject *resultobj;
18776 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18777 bool result;
18778 PyObject * obj0 = 0 ;
18779 char *kwnames[] = {
18780 (char *) "self", NULL
18781 };
18782
18783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
18784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18786 {
18787 PyThreadState* __tstate = wxPyBeginAllowThreads();
18788 result = (bool)(arg1)->HasTextColour();
18789
18790 wxPyEndAllowThreads(__tstate);
18791 if (PyErr_Occurred()) SWIG_fail;
18792 }
18793 {
18794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18795 }
18796 return resultobj;
18797 fail:
18798 return NULL;
18799 }
18800
18801
18802 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18803 PyObject *resultobj;
18804 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18805 bool result;
18806 PyObject * obj0 = 0 ;
18807 char *kwnames[] = {
18808 (char *) "self", NULL
18809 };
18810
18811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
18812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18814 {
18815 PyThreadState* __tstate = wxPyBeginAllowThreads();
18816 result = (bool)(arg1)->HasBackgroundColour();
18817
18818 wxPyEndAllowThreads(__tstate);
18819 if (PyErr_Occurred()) SWIG_fail;
18820 }
18821 {
18822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18823 }
18824 return resultobj;
18825 fail:
18826 return NULL;
18827 }
18828
18829
18830 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18831 PyObject *resultobj;
18832 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18833 bool result;
18834 PyObject * obj0 = 0 ;
18835 char *kwnames[] = {
18836 (char *) "self", NULL
18837 };
18838
18839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
18840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18842 {
18843 PyThreadState* __tstate = wxPyBeginAllowThreads();
18844 result = (bool)(arg1)->HasFont();
18845
18846 wxPyEndAllowThreads(__tstate);
18847 if (PyErr_Occurred()) SWIG_fail;
18848 }
18849 {
18850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18851 }
18852 return resultobj;
18853 fail:
18854 return NULL;
18855 }
18856
18857
18858 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18859 PyObject *resultobj;
18860 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18861 wxColour result;
18862 PyObject * obj0 = 0 ;
18863 char *kwnames[] = {
18864 (char *) "self", NULL
18865 };
18866
18867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
18868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18870 {
18871 PyThreadState* __tstate = wxPyBeginAllowThreads();
18872 result = (arg1)->GetTextColour();
18873
18874 wxPyEndAllowThreads(__tstate);
18875 if (PyErr_Occurred()) SWIG_fail;
18876 }
18877 {
18878 wxColour * resultptr;
18879 resultptr = new wxColour((wxColour &) result);
18880 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18881 }
18882 return resultobj;
18883 fail:
18884 return NULL;
18885 }
18886
18887
18888 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18889 PyObject *resultobj;
18890 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18891 wxColour result;
18892 PyObject * obj0 = 0 ;
18893 char *kwnames[] = {
18894 (char *) "self", NULL
18895 };
18896
18897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
18898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18900 {
18901 PyThreadState* __tstate = wxPyBeginAllowThreads();
18902 result = (arg1)->GetBackgroundColour();
18903
18904 wxPyEndAllowThreads(__tstate);
18905 if (PyErr_Occurred()) SWIG_fail;
18906 }
18907 {
18908 wxColour * resultptr;
18909 resultptr = new wxColour((wxColour &) result);
18910 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18911 }
18912 return resultobj;
18913 fail:
18914 return NULL;
18915 }
18916
18917
18918 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18919 PyObject *resultobj;
18920 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18921 wxFont result;
18922 PyObject * obj0 = 0 ;
18923 char *kwnames[] = {
18924 (char *) "self", NULL
18925 };
18926
18927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
18928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18930 {
18931 PyThreadState* __tstate = wxPyBeginAllowThreads();
18932 result = (arg1)->GetFont();
18933
18934 wxPyEndAllowThreads(__tstate);
18935 if (PyErr_Occurred()) SWIG_fail;
18936 }
18937 {
18938 wxFont * resultptr;
18939 resultptr = new wxFont((wxFont &) result);
18940 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18941 }
18942 return resultobj;
18943 fail:
18944 return NULL;
18945 }
18946
18947
18948 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
18949 PyObject *resultobj;
18950 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18951 PyObject * obj0 = 0 ;
18952 char *kwnames[] = {
18953 (char *) "self", NULL
18954 };
18955
18956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
18957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18959 {
18960 PyThreadState* __tstate = wxPyBeginAllowThreads();
18961 wxListItemAttr_Destroy(arg1);
18962
18963 wxPyEndAllowThreads(__tstate);
18964 if (PyErr_Occurred()) SWIG_fail;
18965 }
18966 Py_INCREF(Py_None); resultobj = Py_None;
18967 return resultobj;
18968 fail:
18969 return NULL;
18970 }
18971
18972
18973 static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
18974 PyObject *obj;
18975 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18976 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
18977 Py_INCREF(obj);
18978 return Py_BuildValue((char *)"");
18979 }
18980 static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18981 PyObject *resultobj;
18982 wxListItem *result;
18983 char *kwnames[] = {
18984 NULL
18985 };
18986
18987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
18988 {
18989 PyThreadState* __tstate = wxPyBeginAllowThreads();
18990 result = (wxListItem *)new wxListItem();
18991
18992 wxPyEndAllowThreads(__tstate);
18993 if (PyErr_Occurred()) SWIG_fail;
18994 }
18995 {
18996 resultobj = wxPyMake_wxObject(result);
18997 }
18998 return resultobj;
18999 fail:
19000 return NULL;
19001 }
19002
19003
19004 static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
19005 PyObject *resultobj;
19006 wxListItem *arg1 = (wxListItem *) 0 ;
19007 PyObject * obj0 = 0 ;
19008 char *kwnames[] = {
19009 (char *) "self", NULL
19010 };
19011
19012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19015 {
19016 PyThreadState* __tstate = wxPyBeginAllowThreads();
19017 delete arg1;
19018
19019 wxPyEndAllowThreads(__tstate);
19020 if (PyErr_Occurred()) SWIG_fail;
19021 }
19022 Py_INCREF(Py_None); resultobj = Py_None;
19023 return resultobj;
19024 fail:
19025 return NULL;
19026 }
19027
19028
19029 static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
19030 PyObject *resultobj;
19031 wxListItem *arg1 = (wxListItem *) 0 ;
19032 PyObject * obj0 = 0 ;
19033 char *kwnames[] = {
19034 (char *) "self", NULL
19035 };
19036
19037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19040 {
19041 PyThreadState* __tstate = wxPyBeginAllowThreads();
19042 (arg1)->Clear();
19043
19044 wxPyEndAllowThreads(__tstate);
19045 if (PyErr_Occurred()) SWIG_fail;
19046 }
19047 Py_INCREF(Py_None); resultobj = Py_None;
19048 return resultobj;
19049 fail:
19050 return NULL;
19051 }
19052
19053
19054 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19055 PyObject *resultobj;
19056 wxListItem *arg1 = (wxListItem *) 0 ;
19057 PyObject * obj0 = 0 ;
19058 char *kwnames[] = {
19059 (char *) "self", NULL
19060 };
19061
19062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19065 {
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 (arg1)->ClearAttributes();
19068
19069 wxPyEndAllowThreads(__tstate);
19070 if (PyErr_Occurred()) SWIG_fail;
19071 }
19072 Py_INCREF(Py_None); resultobj = Py_None;
19073 return resultobj;
19074 fail:
19075 return NULL;
19076 }
19077
19078
19079 static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19080 PyObject *resultobj;
19081 wxListItem *arg1 = (wxListItem *) 0 ;
19082 long arg2 ;
19083 PyObject * obj0 = 0 ;
19084 PyObject * obj1 = 0 ;
19085 char *kwnames[] = {
19086 (char *) "self",(char *) "mask", NULL
19087 };
19088
19089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
19090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19092 arg2 = (long) SWIG_AsLong(obj1);
19093 if (PyErr_Occurred()) SWIG_fail;
19094 {
19095 PyThreadState* __tstate = wxPyBeginAllowThreads();
19096 (arg1)->SetMask(arg2);
19097
19098 wxPyEndAllowThreads(__tstate);
19099 if (PyErr_Occurred()) SWIG_fail;
19100 }
19101 Py_INCREF(Py_None); resultobj = Py_None;
19102 return resultobj;
19103 fail:
19104 return NULL;
19105 }
19106
19107
19108 static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
19109 PyObject *resultobj;
19110 wxListItem *arg1 = (wxListItem *) 0 ;
19111 long arg2 ;
19112 PyObject * obj0 = 0 ;
19113 PyObject * obj1 = 0 ;
19114 char *kwnames[] = {
19115 (char *) "self",(char *) "id", NULL
19116 };
19117
19118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
19119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19121 arg2 = (long) SWIG_AsLong(obj1);
19122 if (PyErr_Occurred()) SWIG_fail;
19123 {
19124 PyThreadState* __tstate = wxPyBeginAllowThreads();
19125 (arg1)->SetId(arg2);
19126
19127 wxPyEndAllowThreads(__tstate);
19128 if (PyErr_Occurred()) SWIG_fail;
19129 }
19130 Py_INCREF(Py_None); resultobj = Py_None;
19131 return resultobj;
19132 fail:
19133 return NULL;
19134 }
19135
19136
19137 static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19138 PyObject *resultobj;
19139 wxListItem *arg1 = (wxListItem *) 0 ;
19140 int arg2 ;
19141 PyObject * obj0 = 0 ;
19142 PyObject * obj1 = 0 ;
19143 char *kwnames[] = {
19144 (char *) "self",(char *) "col", NULL
19145 };
19146
19147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19150 arg2 = (int) SWIG_AsInt(obj1);
19151 if (PyErr_Occurred()) SWIG_fail;
19152 {
19153 PyThreadState* __tstate = wxPyBeginAllowThreads();
19154 (arg1)->SetColumn(arg2);
19155
19156 wxPyEndAllowThreads(__tstate);
19157 if (PyErr_Occurred()) SWIG_fail;
19158 }
19159 Py_INCREF(Py_None); resultobj = Py_None;
19160 return resultobj;
19161 fail:
19162 return NULL;
19163 }
19164
19165
19166 static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19167 PyObject *resultobj;
19168 wxListItem *arg1 = (wxListItem *) 0 ;
19169 long arg2 ;
19170 PyObject * obj0 = 0 ;
19171 PyObject * obj1 = 0 ;
19172 char *kwnames[] = {
19173 (char *) "self",(char *) "state", NULL
19174 };
19175
19176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19179 arg2 = (long) SWIG_AsLong(obj1);
19180 if (PyErr_Occurred()) SWIG_fail;
19181 {
19182 PyThreadState* __tstate = wxPyBeginAllowThreads();
19183 (arg1)->SetState(arg2);
19184
19185 wxPyEndAllowThreads(__tstate);
19186 if (PyErr_Occurred()) SWIG_fail;
19187 }
19188 Py_INCREF(Py_None); resultobj = Py_None;
19189 return resultobj;
19190 fail:
19191 return NULL;
19192 }
19193
19194
19195 static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19196 PyObject *resultobj;
19197 wxListItem *arg1 = (wxListItem *) 0 ;
19198 long arg2 ;
19199 PyObject * obj0 = 0 ;
19200 PyObject * obj1 = 0 ;
19201 char *kwnames[] = {
19202 (char *) "self",(char *) "stateMask", NULL
19203 };
19204
19205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19208 arg2 = (long) SWIG_AsLong(obj1);
19209 if (PyErr_Occurred()) SWIG_fail;
19210 {
19211 PyThreadState* __tstate = wxPyBeginAllowThreads();
19212 (arg1)->SetStateMask(arg2);
19213
19214 wxPyEndAllowThreads(__tstate);
19215 if (PyErr_Occurred()) SWIG_fail;
19216 }
19217 Py_INCREF(Py_None); resultobj = Py_None;
19218 return resultobj;
19219 fail:
19220 return NULL;
19221 }
19222
19223
19224 static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19225 PyObject *resultobj;
19226 wxListItem *arg1 = (wxListItem *) 0 ;
19227 wxString *arg2 = 0 ;
19228 bool temp2 = False ;
19229 PyObject * obj0 = 0 ;
19230 PyObject * obj1 = 0 ;
19231 char *kwnames[] = {
19232 (char *) "self",(char *) "text", NULL
19233 };
19234
19235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19238 {
19239 arg2 = wxString_in_helper(obj1);
19240 if (arg2 == NULL) SWIG_fail;
19241 temp2 = True;
19242 }
19243 {
19244 PyThreadState* __tstate = wxPyBeginAllowThreads();
19245 (arg1)->SetText((wxString const &)*arg2);
19246
19247 wxPyEndAllowThreads(__tstate);
19248 if (PyErr_Occurred()) SWIG_fail;
19249 }
19250 Py_INCREF(Py_None); resultobj = Py_None;
19251 {
19252 if (temp2)
19253 delete arg2;
19254 }
19255 return resultobj;
19256 fail:
19257 {
19258 if (temp2)
19259 delete arg2;
19260 }
19261 return NULL;
19262 }
19263
19264
19265 static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19266 PyObject *resultobj;
19267 wxListItem *arg1 = (wxListItem *) 0 ;
19268 int arg2 ;
19269 PyObject * obj0 = 0 ;
19270 PyObject * obj1 = 0 ;
19271 char *kwnames[] = {
19272 (char *) "self",(char *) "image", NULL
19273 };
19274
19275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19278 arg2 = (int) SWIG_AsInt(obj1);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 {
19281 PyThreadState* __tstate = wxPyBeginAllowThreads();
19282 (arg1)->SetImage(arg2);
19283
19284 wxPyEndAllowThreads(__tstate);
19285 if (PyErr_Occurred()) SWIG_fail;
19286 }
19287 Py_INCREF(Py_None); resultobj = Py_None;
19288 return resultobj;
19289 fail:
19290 return NULL;
19291 }
19292
19293
19294 static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19295 PyObject *resultobj;
19296 wxListItem *arg1 = (wxListItem *) 0 ;
19297 long arg2 ;
19298 PyObject * obj0 = 0 ;
19299 PyObject * obj1 = 0 ;
19300 char *kwnames[] = {
19301 (char *) "self",(char *) "data", NULL
19302 };
19303
19304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19307 arg2 = (long) SWIG_AsLong(obj1);
19308 if (PyErr_Occurred()) SWIG_fail;
19309 {
19310 PyThreadState* __tstate = wxPyBeginAllowThreads();
19311 (arg1)->SetData(arg2);
19312
19313 wxPyEndAllowThreads(__tstate);
19314 if (PyErr_Occurred()) SWIG_fail;
19315 }
19316 Py_INCREF(Py_None); resultobj = Py_None;
19317 return resultobj;
19318 fail:
19319 return NULL;
19320 }
19321
19322
19323 static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19324 PyObject *resultobj;
19325 wxListItem *arg1 = (wxListItem *) 0 ;
19326 int arg2 ;
19327 PyObject * obj0 = 0 ;
19328 PyObject * obj1 = 0 ;
19329 char *kwnames[] = {
19330 (char *) "self",(char *) "width", NULL
19331 };
19332
19333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19336 arg2 = (int) SWIG_AsInt(obj1);
19337 if (PyErr_Occurred()) SWIG_fail;
19338 {
19339 PyThreadState* __tstate = wxPyBeginAllowThreads();
19340 (arg1)->SetWidth(arg2);
19341
19342 wxPyEndAllowThreads(__tstate);
19343 if (PyErr_Occurred()) SWIG_fail;
19344 }
19345 Py_INCREF(Py_None); resultobj = Py_None;
19346 return resultobj;
19347 fail:
19348 return NULL;
19349 }
19350
19351
19352 static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19353 PyObject *resultobj;
19354 wxListItem *arg1 = (wxListItem *) 0 ;
19355 int arg2 ;
19356 PyObject * obj0 = 0 ;
19357 PyObject * obj1 = 0 ;
19358 char *kwnames[] = {
19359 (char *) "self",(char *) "align", NULL
19360 };
19361
19362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19365 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
19366 if (PyErr_Occurred()) SWIG_fail;
19367 {
19368 PyThreadState* __tstate = wxPyBeginAllowThreads();
19369 (arg1)->SetAlign((wxListColumnFormat )arg2);
19370
19371 wxPyEndAllowThreads(__tstate);
19372 if (PyErr_Occurred()) SWIG_fail;
19373 }
19374 Py_INCREF(Py_None); resultobj = Py_None;
19375 return resultobj;
19376 fail:
19377 return NULL;
19378 }
19379
19380
19381 static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19382 PyObject *resultobj;
19383 wxListItem *arg1 = (wxListItem *) 0 ;
19384 wxColour *arg2 = 0 ;
19385 wxColour temp2 ;
19386 PyObject * obj0 = 0 ;
19387 PyObject * obj1 = 0 ;
19388 char *kwnames[] = {
19389 (char *) "self",(char *) "colText", NULL
19390 };
19391
19392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19395 {
19396 arg2 = &temp2;
19397 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19398 }
19399 {
19400 PyThreadState* __tstate = wxPyBeginAllowThreads();
19401 (arg1)->SetTextColour((wxColour const &)*arg2);
19402
19403 wxPyEndAllowThreads(__tstate);
19404 if (PyErr_Occurred()) SWIG_fail;
19405 }
19406 Py_INCREF(Py_None); resultobj = Py_None;
19407 return resultobj;
19408 fail:
19409 return NULL;
19410 }
19411
19412
19413 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19414 PyObject *resultobj;
19415 wxListItem *arg1 = (wxListItem *) 0 ;
19416 wxColour *arg2 = 0 ;
19417 wxColour temp2 ;
19418 PyObject * obj0 = 0 ;
19419 PyObject * obj1 = 0 ;
19420 char *kwnames[] = {
19421 (char *) "self",(char *) "colBack", NULL
19422 };
19423
19424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19427 {
19428 arg2 = &temp2;
19429 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19430 }
19431 {
19432 PyThreadState* __tstate = wxPyBeginAllowThreads();
19433 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19434
19435 wxPyEndAllowThreads(__tstate);
19436 if (PyErr_Occurred()) SWIG_fail;
19437 }
19438 Py_INCREF(Py_None); resultobj = Py_None;
19439 return resultobj;
19440 fail:
19441 return NULL;
19442 }
19443
19444
19445 static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19446 PyObject *resultobj;
19447 wxListItem *arg1 = (wxListItem *) 0 ;
19448 wxFont *arg2 = 0 ;
19449 PyObject * obj0 = 0 ;
19450 PyObject * obj1 = 0 ;
19451 char *kwnames[] = {
19452 (char *) "self",(char *) "font", NULL
19453 };
19454
19455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19458 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19459 SWIG_POINTER_EXCEPTION | 0)) == -1)
19460 SWIG_fail;
19461 if (arg2 == NULL) {
19462 PyErr_SetString(PyExc_TypeError,"null reference");
19463 SWIG_fail;
19464 }
19465 {
19466 PyThreadState* __tstate = wxPyBeginAllowThreads();
19467 (arg1)->SetFont((wxFont const &)*arg2);
19468
19469 wxPyEndAllowThreads(__tstate);
19470 if (PyErr_Occurred()) SWIG_fail;
19471 }
19472 Py_INCREF(Py_None); resultobj = Py_None;
19473 return resultobj;
19474 fail:
19475 return NULL;
19476 }
19477
19478
19479 static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19480 PyObject *resultobj;
19481 wxListItem *arg1 = (wxListItem *) 0 ;
19482 long result;
19483 PyObject * obj0 = 0 ;
19484 char *kwnames[] = {
19485 (char *) "self", NULL
19486 };
19487
19488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19491 {
19492 PyThreadState* __tstate = wxPyBeginAllowThreads();
19493 result = (long)(arg1)->GetMask();
19494
19495 wxPyEndAllowThreads(__tstate);
19496 if (PyErr_Occurred()) SWIG_fail;
19497 }
19498 resultobj = SWIG_FromLong((long)result);
19499 return resultobj;
19500 fail:
19501 return NULL;
19502 }
19503
19504
19505 static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
19506 PyObject *resultobj;
19507 wxListItem *arg1 = (wxListItem *) 0 ;
19508 long result;
19509 PyObject * obj0 = 0 ;
19510 char *kwnames[] = {
19511 (char *) "self", NULL
19512 };
19513
19514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19517 {
19518 PyThreadState* __tstate = wxPyBeginAllowThreads();
19519 result = (long)(arg1)->GetId();
19520
19521 wxPyEndAllowThreads(__tstate);
19522 if (PyErr_Occurred()) SWIG_fail;
19523 }
19524 resultobj = SWIG_FromLong((long)result);
19525 return resultobj;
19526 fail:
19527 return NULL;
19528 }
19529
19530
19531 static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19532 PyObject *resultobj;
19533 wxListItem *arg1 = (wxListItem *) 0 ;
19534 int result;
19535 PyObject * obj0 = 0 ;
19536 char *kwnames[] = {
19537 (char *) "self", NULL
19538 };
19539
19540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19543 {
19544 PyThreadState* __tstate = wxPyBeginAllowThreads();
19545 result = (int)(arg1)->GetColumn();
19546
19547 wxPyEndAllowThreads(__tstate);
19548 if (PyErr_Occurred()) SWIG_fail;
19549 }
19550 resultobj = SWIG_FromInt((int)result);
19551 return resultobj;
19552 fail:
19553 return NULL;
19554 }
19555
19556
19557 static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19558 PyObject *resultobj;
19559 wxListItem *arg1 = (wxListItem *) 0 ;
19560 long result;
19561 PyObject * obj0 = 0 ;
19562 char *kwnames[] = {
19563 (char *) "self", NULL
19564 };
19565
19566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19569 {
19570 PyThreadState* __tstate = wxPyBeginAllowThreads();
19571 result = (long)(arg1)->GetState();
19572
19573 wxPyEndAllowThreads(__tstate);
19574 if (PyErr_Occurred()) SWIG_fail;
19575 }
19576 resultobj = SWIG_FromLong((long)result);
19577 return resultobj;
19578 fail:
19579 return NULL;
19580 }
19581
19582
19583 static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19584 PyObject *resultobj;
19585 wxListItem *arg1 = (wxListItem *) 0 ;
19586 wxString *result;
19587 PyObject * obj0 = 0 ;
19588 char *kwnames[] = {
19589 (char *) "self", NULL
19590 };
19591
19592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19595 {
19596 PyThreadState* __tstate = wxPyBeginAllowThreads();
19597 {
19598 wxString const &_result_ref = (arg1)->GetText();
19599 result = (wxString *) &_result_ref;
19600 }
19601
19602 wxPyEndAllowThreads(__tstate);
19603 if (PyErr_Occurred()) SWIG_fail;
19604 }
19605 {
19606 #if wxUSE_UNICODE
19607 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19608 #else
19609 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19610 #endif
19611 }
19612 return resultobj;
19613 fail:
19614 return NULL;
19615 }
19616
19617
19618 static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19619 PyObject *resultobj;
19620 wxListItem *arg1 = (wxListItem *) 0 ;
19621 int result;
19622 PyObject * obj0 = 0 ;
19623 char *kwnames[] = {
19624 (char *) "self", NULL
19625 };
19626
19627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19630 {
19631 PyThreadState* __tstate = wxPyBeginAllowThreads();
19632 result = (int)(arg1)->GetImage();
19633
19634 wxPyEndAllowThreads(__tstate);
19635 if (PyErr_Occurred()) SWIG_fail;
19636 }
19637 resultobj = SWIG_FromInt((int)result);
19638 return resultobj;
19639 fail:
19640 return NULL;
19641 }
19642
19643
19644 static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19645 PyObject *resultobj;
19646 wxListItem *arg1 = (wxListItem *) 0 ;
19647 long result;
19648 PyObject * obj0 = 0 ;
19649 char *kwnames[] = {
19650 (char *) "self", NULL
19651 };
19652
19653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19656 {
19657 PyThreadState* __tstate = wxPyBeginAllowThreads();
19658 result = (long)(arg1)->GetData();
19659
19660 wxPyEndAllowThreads(__tstate);
19661 if (PyErr_Occurred()) SWIG_fail;
19662 }
19663 resultobj = SWIG_FromLong((long)result);
19664 return resultobj;
19665 fail:
19666 return NULL;
19667 }
19668
19669
19670 static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19671 PyObject *resultobj;
19672 wxListItem *arg1 = (wxListItem *) 0 ;
19673 int result;
19674 PyObject * obj0 = 0 ;
19675 char *kwnames[] = {
19676 (char *) "self", NULL
19677 };
19678
19679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19682 {
19683 PyThreadState* __tstate = wxPyBeginAllowThreads();
19684 result = (int)(arg1)->GetWidth();
19685
19686 wxPyEndAllowThreads(__tstate);
19687 if (PyErr_Occurred()) SWIG_fail;
19688 }
19689 resultobj = SWIG_FromInt((int)result);
19690 return resultobj;
19691 fail:
19692 return NULL;
19693 }
19694
19695
19696 static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19697 PyObject *resultobj;
19698 wxListItem *arg1 = (wxListItem *) 0 ;
19699 int result;
19700 PyObject * obj0 = 0 ;
19701 char *kwnames[] = {
19702 (char *) "self", NULL
19703 };
19704
19705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
19706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19708 {
19709 PyThreadState* __tstate = wxPyBeginAllowThreads();
19710 result = (int)(arg1)->GetAlign();
19711
19712 wxPyEndAllowThreads(__tstate);
19713 if (PyErr_Occurred()) SWIG_fail;
19714 }
19715 resultobj = SWIG_FromInt((int)result);
19716 return resultobj;
19717 fail:
19718 return NULL;
19719 }
19720
19721
19722 static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19723 PyObject *resultobj;
19724 wxListItem *arg1 = (wxListItem *) 0 ;
19725 wxListItemAttr *result;
19726 PyObject * obj0 = 0 ;
19727 char *kwnames[] = {
19728 (char *) "self", NULL
19729 };
19730
19731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
19732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19734 {
19735 PyThreadState* __tstate = wxPyBeginAllowThreads();
19736 result = (wxListItemAttr *)(arg1)->GetAttributes();
19737
19738 wxPyEndAllowThreads(__tstate);
19739 if (PyErr_Occurred()) SWIG_fail;
19740 }
19741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
19742 return resultobj;
19743 fail:
19744 return NULL;
19745 }
19746
19747
19748 static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19749 PyObject *resultobj;
19750 wxListItem *arg1 = (wxListItem *) 0 ;
19751 bool result;
19752 PyObject * obj0 = 0 ;
19753 char *kwnames[] = {
19754 (char *) "self", NULL
19755 };
19756
19757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
19758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19760 {
19761 PyThreadState* __tstate = wxPyBeginAllowThreads();
19762 result = (bool)(arg1)->HasAttributes();
19763
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 {
19768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19769 }
19770 return resultobj;
19771 fail:
19772 return NULL;
19773 }
19774
19775
19776 static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19777 PyObject *resultobj;
19778 wxListItem *arg1 = (wxListItem *) 0 ;
19779 wxColour result;
19780 PyObject * obj0 = 0 ;
19781 char *kwnames[] = {
19782 (char *) "self", NULL
19783 };
19784
19785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
19786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19788 {
19789 PyThreadState* __tstate = wxPyBeginAllowThreads();
19790 result = ((wxListItem const *)arg1)->GetTextColour();
19791
19792 wxPyEndAllowThreads(__tstate);
19793 if (PyErr_Occurred()) SWIG_fail;
19794 }
19795 {
19796 wxColour * resultptr;
19797 resultptr = new wxColour((wxColour &) result);
19798 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19799 }
19800 return resultobj;
19801 fail:
19802 return NULL;
19803 }
19804
19805
19806 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19807 PyObject *resultobj;
19808 wxListItem *arg1 = (wxListItem *) 0 ;
19809 wxColour result;
19810 PyObject * obj0 = 0 ;
19811 char *kwnames[] = {
19812 (char *) "self", NULL
19813 };
19814
19815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
19816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19818 {
19819 PyThreadState* __tstate = wxPyBeginAllowThreads();
19820 result = ((wxListItem const *)arg1)->GetBackgroundColour();
19821
19822 wxPyEndAllowThreads(__tstate);
19823 if (PyErr_Occurred()) SWIG_fail;
19824 }
19825 {
19826 wxColour * resultptr;
19827 resultptr = new wxColour((wxColour &) result);
19828 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19829 }
19830 return resultobj;
19831 fail:
19832 return NULL;
19833 }
19834
19835
19836 static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19837 PyObject *resultobj;
19838 wxListItem *arg1 = (wxListItem *) 0 ;
19839 wxFont result;
19840 PyObject * obj0 = 0 ;
19841 char *kwnames[] = {
19842 (char *) "self", NULL
19843 };
19844
19845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
19846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19848 {
19849 PyThreadState* __tstate = wxPyBeginAllowThreads();
19850 result = ((wxListItem const *)arg1)->GetFont();
19851
19852 wxPyEndAllowThreads(__tstate);
19853 if (PyErr_Occurred()) SWIG_fail;
19854 }
19855 {
19856 wxFont * resultptr;
19857 resultptr = new wxFont((wxFont &) result);
19858 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19859 }
19860 return resultobj;
19861 fail:
19862 return NULL;
19863 }
19864
19865
19866 static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19867 PyObject *resultobj;
19868 wxListItem *arg1 = (wxListItem *) 0 ;
19869 long arg2 ;
19870 PyObject * obj0 = 0 ;
19871 PyObject * obj1 = 0 ;
19872 char *kwnames[] = {
19873 (char *) "self",(char *) "m_mask", NULL
19874 };
19875
19876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
19877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19879 arg2 = (long) SWIG_AsLong(obj1);
19880 if (PyErr_Occurred()) SWIG_fail;
19881 if (arg1) (arg1)->m_mask = arg2;
19882
19883 Py_INCREF(Py_None); resultobj = Py_None;
19884 return resultobj;
19885 fail:
19886 return NULL;
19887 }
19888
19889
19890 static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19891 PyObject *resultobj;
19892 wxListItem *arg1 = (wxListItem *) 0 ;
19893 long result;
19894 PyObject * obj0 = 0 ;
19895 char *kwnames[] = {
19896 (char *) "self", NULL
19897 };
19898
19899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
19900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19902 result = (long) ((arg1)->m_mask);
19903
19904 resultobj = SWIG_FromLong((long)result);
19905 return resultobj;
19906 fail:
19907 return NULL;
19908 }
19909
19910
19911 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19912 PyObject *resultobj;
19913 wxListItem *arg1 = (wxListItem *) 0 ;
19914 long arg2 ;
19915 PyObject * obj0 = 0 ;
19916 PyObject * obj1 = 0 ;
19917 char *kwnames[] = {
19918 (char *) "self",(char *) "m_itemId", NULL
19919 };
19920
19921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
19922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19924 arg2 = (long) SWIG_AsLong(obj1);
19925 if (PyErr_Occurred()) SWIG_fail;
19926 if (arg1) (arg1)->m_itemId = arg2;
19927
19928 Py_INCREF(Py_None); resultobj = Py_None;
19929 return resultobj;
19930 fail:
19931 return NULL;
19932 }
19933
19934
19935 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19936 PyObject *resultobj;
19937 wxListItem *arg1 = (wxListItem *) 0 ;
19938 long result;
19939 PyObject * obj0 = 0 ;
19940 char *kwnames[] = {
19941 (char *) "self", NULL
19942 };
19943
19944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
19945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19947 result = (long) ((arg1)->m_itemId);
19948
19949 resultobj = SWIG_FromLong((long)result);
19950 return resultobj;
19951 fail:
19952 return NULL;
19953 }
19954
19955
19956 static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19957 PyObject *resultobj;
19958 wxListItem *arg1 = (wxListItem *) 0 ;
19959 int arg2 ;
19960 PyObject * obj0 = 0 ;
19961 PyObject * obj1 = 0 ;
19962 char *kwnames[] = {
19963 (char *) "self",(char *) "m_col", NULL
19964 };
19965
19966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19969 arg2 = (int) SWIG_AsInt(obj1);
19970 if (PyErr_Occurred()) SWIG_fail;
19971 if (arg1) (arg1)->m_col = arg2;
19972
19973 Py_INCREF(Py_None); resultobj = Py_None;
19974 return resultobj;
19975 fail:
19976 return NULL;
19977 }
19978
19979
19980 static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19981 PyObject *resultobj;
19982 wxListItem *arg1 = (wxListItem *) 0 ;
19983 int result;
19984 PyObject * obj0 = 0 ;
19985 char *kwnames[] = {
19986 (char *) "self", NULL
19987 };
19988
19989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
19990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19992 result = (int) ((arg1)->m_col);
19993
19994 resultobj = SWIG_FromInt((int)result);
19995 return resultobj;
19996 fail:
19997 return NULL;
19998 }
19999
20000
20001 static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20002 PyObject *resultobj;
20003 wxListItem *arg1 = (wxListItem *) 0 ;
20004 long arg2 ;
20005 PyObject * obj0 = 0 ;
20006 PyObject * obj1 = 0 ;
20007 char *kwnames[] = {
20008 (char *) "self",(char *) "m_state", NULL
20009 };
20010
20011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20014 arg2 = (long) SWIG_AsLong(obj1);
20015 if (PyErr_Occurred()) SWIG_fail;
20016 if (arg1) (arg1)->m_state = arg2;
20017
20018 Py_INCREF(Py_None); resultobj = Py_None;
20019 return resultobj;
20020 fail:
20021 return NULL;
20022 }
20023
20024
20025 static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20026 PyObject *resultobj;
20027 wxListItem *arg1 = (wxListItem *) 0 ;
20028 long result;
20029 PyObject * obj0 = 0 ;
20030 char *kwnames[] = {
20031 (char *) "self", NULL
20032 };
20033
20034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20037 result = (long) ((arg1)->m_state);
20038
20039 resultobj = SWIG_FromLong((long)result);
20040 return resultobj;
20041 fail:
20042 return NULL;
20043 }
20044
20045
20046 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20047 PyObject *resultobj;
20048 wxListItem *arg1 = (wxListItem *) 0 ;
20049 long arg2 ;
20050 PyObject * obj0 = 0 ;
20051 PyObject * obj1 = 0 ;
20052 char *kwnames[] = {
20053 (char *) "self",(char *) "m_stateMask", NULL
20054 };
20055
20056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20059 arg2 = (long) SWIG_AsLong(obj1);
20060 if (PyErr_Occurred()) SWIG_fail;
20061 if (arg1) (arg1)->m_stateMask = arg2;
20062
20063 Py_INCREF(Py_None); resultobj = Py_None;
20064 return resultobj;
20065 fail:
20066 return NULL;
20067 }
20068
20069
20070 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20071 PyObject *resultobj;
20072 wxListItem *arg1 = (wxListItem *) 0 ;
20073 long result;
20074 PyObject * obj0 = 0 ;
20075 char *kwnames[] = {
20076 (char *) "self", NULL
20077 };
20078
20079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20082 result = (long) ((arg1)->m_stateMask);
20083
20084 resultobj = SWIG_FromLong((long)result);
20085 return resultobj;
20086 fail:
20087 return NULL;
20088 }
20089
20090
20091 static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20092 PyObject *resultobj;
20093 wxListItem *arg1 = (wxListItem *) 0 ;
20094 wxString *arg2 = (wxString *) 0 ;
20095 bool temp2 = False ;
20096 PyObject * obj0 = 0 ;
20097 PyObject * obj1 = 0 ;
20098 char *kwnames[] = {
20099 (char *) "self",(char *) "m_text", NULL
20100 };
20101
20102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20105 {
20106 arg2 = wxString_in_helper(obj1);
20107 if (arg2 == NULL) SWIG_fail;
20108 temp2 = True;
20109 }
20110 if (arg1) (arg1)->m_text = *arg2;
20111
20112 Py_INCREF(Py_None); resultobj = Py_None;
20113 {
20114 if (temp2)
20115 delete arg2;
20116 }
20117 return resultobj;
20118 fail:
20119 {
20120 if (temp2)
20121 delete arg2;
20122 }
20123 return NULL;
20124 }
20125
20126
20127 static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20128 PyObject *resultobj;
20129 wxListItem *arg1 = (wxListItem *) 0 ;
20130 wxString *result;
20131 PyObject * obj0 = 0 ;
20132 char *kwnames[] = {
20133 (char *) "self", NULL
20134 };
20135
20136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20139 result = (wxString *)& ((arg1)->m_text);
20140
20141 {
20142 #if wxUSE_UNICODE
20143 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20144 #else
20145 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20146 #endif
20147 }
20148 return resultobj;
20149 fail:
20150 return NULL;
20151 }
20152
20153
20154 static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20155 PyObject *resultobj;
20156 wxListItem *arg1 = (wxListItem *) 0 ;
20157 int arg2 ;
20158 PyObject * obj0 = 0 ;
20159 PyObject * obj1 = 0 ;
20160 char *kwnames[] = {
20161 (char *) "self",(char *) "m_image", NULL
20162 };
20163
20164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20167 arg2 = (int) SWIG_AsInt(obj1);
20168 if (PyErr_Occurred()) SWIG_fail;
20169 if (arg1) (arg1)->m_image = arg2;
20170
20171 Py_INCREF(Py_None); resultobj = Py_None;
20172 return resultobj;
20173 fail:
20174 return NULL;
20175 }
20176
20177
20178 static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20179 PyObject *resultobj;
20180 wxListItem *arg1 = (wxListItem *) 0 ;
20181 int result;
20182 PyObject * obj0 = 0 ;
20183 char *kwnames[] = {
20184 (char *) "self", NULL
20185 };
20186
20187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20190 result = (int) ((arg1)->m_image);
20191
20192 resultobj = SWIG_FromInt((int)result);
20193 return resultobj;
20194 fail:
20195 return NULL;
20196 }
20197
20198
20199 static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20200 PyObject *resultobj;
20201 wxListItem *arg1 = (wxListItem *) 0 ;
20202 long arg2 ;
20203 PyObject * obj0 = 0 ;
20204 PyObject * obj1 = 0 ;
20205 char *kwnames[] = {
20206 (char *) "self",(char *) "m_data", NULL
20207 };
20208
20209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20212 arg2 = (long) SWIG_AsLong(obj1);
20213 if (PyErr_Occurred()) SWIG_fail;
20214 if (arg1) (arg1)->m_data = arg2;
20215
20216 Py_INCREF(Py_None); resultobj = Py_None;
20217 return resultobj;
20218 fail:
20219 return NULL;
20220 }
20221
20222
20223 static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20224 PyObject *resultobj;
20225 wxListItem *arg1 = (wxListItem *) 0 ;
20226 long result;
20227 PyObject * obj0 = 0 ;
20228 char *kwnames[] = {
20229 (char *) "self", NULL
20230 };
20231
20232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20235 result = (long) ((arg1)->m_data);
20236
20237 resultobj = SWIG_FromLong((long)result);
20238 return resultobj;
20239 fail:
20240 return NULL;
20241 }
20242
20243
20244 static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20245 PyObject *resultobj;
20246 wxListItem *arg1 = (wxListItem *) 0 ;
20247 int arg2 ;
20248 PyObject * obj0 = 0 ;
20249 PyObject * obj1 = 0 ;
20250 char *kwnames[] = {
20251 (char *) "self",(char *) "m_format", NULL
20252 };
20253
20254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20257 arg2 = (int) SWIG_AsInt(obj1);
20258 if (PyErr_Occurred()) SWIG_fail;
20259 if (arg1) (arg1)->m_format = arg2;
20260
20261 Py_INCREF(Py_None); resultobj = Py_None;
20262 return resultobj;
20263 fail:
20264 return NULL;
20265 }
20266
20267
20268 static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20269 PyObject *resultobj;
20270 wxListItem *arg1 = (wxListItem *) 0 ;
20271 int result;
20272 PyObject * obj0 = 0 ;
20273 char *kwnames[] = {
20274 (char *) "self", NULL
20275 };
20276
20277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20280 result = (int) ((arg1)->m_format);
20281
20282 resultobj = SWIG_FromInt((int)result);
20283 return resultobj;
20284 fail:
20285 return NULL;
20286 }
20287
20288
20289 static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20290 PyObject *resultobj;
20291 wxListItem *arg1 = (wxListItem *) 0 ;
20292 int arg2 ;
20293 PyObject * obj0 = 0 ;
20294 PyObject * obj1 = 0 ;
20295 char *kwnames[] = {
20296 (char *) "self",(char *) "m_width", NULL
20297 };
20298
20299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20302 arg2 = (int) SWIG_AsInt(obj1);
20303 if (PyErr_Occurred()) SWIG_fail;
20304 if (arg1) (arg1)->m_width = arg2;
20305
20306 Py_INCREF(Py_None); resultobj = Py_None;
20307 return resultobj;
20308 fail:
20309 return NULL;
20310 }
20311
20312
20313 static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20314 PyObject *resultobj;
20315 wxListItem *arg1 = (wxListItem *) 0 ;
20316 int result;
20317 PyObject * obj0 = 0 ;
20318 char *kwnames[] = {
20319 (char *) "self", NULL
20320 };
20321
20322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20325 result = (int) ((arg1)->m_width);
20326
20327 resultobj = SWIG_FromInt((int)result);
20328 return resultobj;
20329 fail:
20330 return NULL;
20331 }
20332
20333
20334 static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
20335 PyObject *obj;
20336 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20337 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20338 Py_INCREF(obj);
20339 return Py_BuildValue((char *)"");
20340 }
20341 static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20342 PyObject *resultobj;
20343 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20344 int arg2 = (int) 0 ;
20345 wxListEvent *result;
20346 PyObject * obj0 = 0 ;
20347 PyObject * obj1 = 0 ;
20348 char *kwnames[] = {
20349 (char *) "commandType",(char *) "id", NULL
20350 };
20351
20352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20353 if (obj0) {
20354 arg1 = (wxEventType) SWIG_AsInt(obj0);
20355 if (PyErr_Occurred()) SWIG_fail;
20356 }
20357 if (obj1) {
20358 arg2 = (int) SWIG_AsInt(obj1);
20359 if (PyErr_Occurred()) SWIG_fail;
20360 }
20361 {
20362 PyThreadState* __tstate = wxPyBeginAllowThreads();
20363 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20364
20365 wxPyEndAllowThreads(__tstate);
20366 if (PyErr_Occurred()) SWIG_fail;
20367 }
20368 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20369 return resultobj;
20370 fail:
20371 return NULL;
20372 }
20373
20374
20375 static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20376 PyObject *resultobj;
20377 wxListEvent *arg1 = (wxListEvent *) 0 ;
20378 int arg2 ;
20379 PyObject * obj0 = 0 ;
20380 PyObject * obj1 = 0 ;
20381 char *kwnames[] = {
20382 (char *) "self",(char *) "m_code", NULL
20383 };
20384
20385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20388 arg2 = (int) SWIG_AsInt(obj1);
20389 if (PyErr_Occurred()) SWIG_fail;
20390 if (arg1) (arg1)->m_code = arg2;
20391
20392 Py_INCREF(Py_None); resultobj = Py_None;
20393 return resultobj;
20394 fail:
20395 return NULL;
20396 }
20397
20398
20399 static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20400 PyObject *resultobj;
20401 wxListEvent *arg1 = (wxListEvent *) 0 ;
20402 int result;
20403 PyObject * obj0 = 0 ;
20404 char *kwnames[] = {
20405 (char *) "self", NULL
20406 };
20407
20408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20411 result = (int) ((arg1)->m_code);
20412
20413 resultobj = SWIG_FromInt((int)result);
20414 return resultobj;
20415 fail:
20416 return NULL;
20417 }
20418
20419
20420 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20421 PyObject *resultobj;
20422 wxListEvent *arg1 = (wxListEvent *) 0 ;
20423 long arg2 ;
20424 PyObject * obj0 = 0 ;
20425 PyObject * obj1 = 0 ;
20426 char *kwnames[] = {
20427 (char *) "self",(char *) "m_oldItemIndex", NULL
20428 };
20429
20430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20433 arg2 = (long) SWIG_AsLong(obj1);
20434 if (PyErr_Occurred()) SWIG_fail;
20435 if (arg1) (arg1)->m_oldItemIndex = arg2;
20436
20437 Py_INCREF(Py_None); resultobj = Py_None;
20438 return resultobj;
20439 fail:
20440 return NULL;
20441 }
20442
20443
20444 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20445 PyObject *resultobj;
20446 wxListEvent *arg1 = (wxListEvent *) 0 ;
20447 long result;
20448 PyObject * obj0 = 0 ;
20449 char *kwnames[] = {
20450 (char *) "self", NULL
20451 };
20452
20453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20456 result = (long) ((arg1)->m_oldItemIndex);
20457
20458 resultobj = SWIG_FromLong((long)result);
20459 return resultobj;
20460 fail:
20461 return NULL;
20462 }
20463
20464
20465 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20466 PyObject *resultobj;
20467 wxListEvent *arg1 = (wxListEvent *) 0 ;
20468 long arg2 ;
20469 PyObject * obj0 = 0 ;
20470 PyObject * obj1 = 0 ;
20471 char *kwnames[] = {
20472 (char *) "self",(char *) "m_itemIndex", NULL
20473 };
20474
20475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20478 arg2 = (long) SWIG_AsLong(obj1);
20479 if (PyErr_Occurred()) SWIG_fail;
20480 if (arg1) (arg1)->m_itemIndex = arg2;
20481
20482 Py_INCREF(Py_None); resultobj = Py_None;
20483 return resultobj;
20484 fail:
20485 return NULL;
20486 }
20487
20488
20489 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20490 PyObject *resultobj;
20491 wxListEvent *arg1 = (wxListEvent *) 0 ;
20492 long result;
20493 PyObject * obj0 = 0 ;
20494 char *kwnames[] = {
20495 (char *) "self", NULL
20496 };
20497
20498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20501 result = (long) ((arg1)->m_itemIndex);
20502
20503 resultobj = SWIG_FromLong((long)result);
20504 return resultobj;
20505 fail:
20506 return NULL;
20507 }
20508
20509
20510 static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20511 PyObject *resultobj;
20512 wxListEvent *arg1 = (wxListEvent *) 0 ;
20513 int arg2 ;
20514 PyObject * obj0 = 0 ;
20515 PyObject * obj1 = 0 ;
20516 char *kwnames[] = {
20517 (char *) "self",(char *) "m_col", NULL
20518 };
20519
20520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20523 arg2 = (int) SWIG_AsInt(obj1);
20524 if (PyErr_Occurred()) SWIG_fail;
20525 if (arg1) (arg1)->m_col = arg2;
20526
20527 Py_INCREF(Py_None); resultobj = Py_None;
20528 return resultobj;
20529 fail:
20530 return NULL;
20531 }
20532
20533
20534 static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20535 PyObject *resultobj;
20536 wxListEvent *arg1 = (wxListEvent *) 0 ;
20537 int result;
20538 PyObject * obj0 = 0 ;
20539 char *kwnames[] = {
20540 (char *) "self", NULL
20541 };
20542
20543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20546 result = (int) ((arg1)->m_col);
20547
20548 resultobj = SWIG_FromInt((int)result);
20549 return resultobj;
20550 fail:
20551 return NULL;
20552 }
20553
20554
20555 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20556 PyObject *resultobj;
20557 wxListEvent *arg1 = (wxListEvent *) 0 ;
20558 wxPoint *arg2 = (wxPoint *) 0 ;
20559 PyObject * obj0 = 0 ;
20560 PyObject * obj1 = 0 ;
20561 char *kwnames[] = {
20562 (char *) "self",(char *) "m_pointDrag", NULL
20563 };
20564
20565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20568 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20570 if (arg1) (arg1)->m_pointDrag = *arg2;
20571
20572 Py_INCREF(Py_None); resultobj = Py_None;
20573 return resultobj;
20574 fail:
20575 return NULL;
20576 }
20577
20578
20579 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20580 PyObject *resultobj;
20581 wxListEvent *arg1 = (wxListEvent *) 0 ;
20582 wxPoint *result;
20583 PyObject * obj0 = 0 ;
20584 char *kwnames[] = {
20585 (char *) "self", NULL
20586 };
20587
20588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20591 result = (wxPoint *)& ((arg1)->m_pointDrag);
20592
20593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20594 return resultobj;
20595 fail:
20596 return NULL;
20597 }
20598
20599
20600 static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20601 PyObject *resultobj;
20602 wxListEvent *arg1 = (wxListEvent *) 0 ;
20603 wxListItem *result;
20604 PyObject * obj0 = 0 ;
20605 char *kwnames[] = {
20606 (char *) "self", NULL
20607 };
20608
20609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20612 result = (wxListItem *)& ((arg1)->m_item);
20613
20614 {
20615 resultobj = wxPyMake_wxObject(result);
20616 }
20617 return resultobj;
20618 fail:
20619 return NULL;
20620 }
20621
20622
20623 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20624 PyObject *resultobj;
20625 wxListEvent *arg1 = (wxListEvent *) 0 ;
20626 int result;
20627 PyObject * obj0 = 0 ;
20628 char *kwnames[] = {
20629 (char *) "self", NULL
20630 };
20631
20632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20635 {
20636 PyThreadState* __tstate = wxPyBeginAllowThreads();
20637 result = (int)(arg1)->GetKeyCode();
20638
20639 wxPyEndAllowThreads(__tstate);
20640 if (PyErr_Occurred()) SWIG_fail;
20641 }
20642 resultobj = SWIG_FromInt((int)result);
20643 return resultobj;
20644 fail:
20645 return NULL;
20646 }
20647
20648
20649 static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
20650 PyObject *resultobj;
20651 wxListEvent *arg1 = (wxListEvent *) 0 ;
20652 long result;
20653 PyObject * obj0 = 0 ;
20654 char *kwnames[] = {
20655 (char *) "self", NULL
20656 };
20657
20658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20661 {
20662 PyThreadState* __tstate = wxPyBeginAllowThreads();
20663 result = (long)(arg1)->GetIndex();
20664
20665 wxPyEndAllowThreads(__tstate);
20666 if (PyErr_Occurred()) SWIG_fail;
20667 }
20668 resultobj = SWIG_FromLong((long)result);
20669 return resultobj;
20670 fail:
20671 return NULL;
20672 }
20673
20674
20675 static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20676 PyObject *resultobj;
20677 wxListEvent *arg1 = (wxListEvent *) 0 ;
20678 int result;
20679 PyObject * obj0 = 0 ;
20680 char *kwnames[] = {
20681 (char *) "self", NULL
20682 };
20683
20684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20687 {
20688 PyThreadState* __tstate = wxPyBeginAllowThreads();
20689 result = (int)(arg1)->GetColumn();
20690
20691 wxPyEndAllowThreads(__tstate);
20692 if (PyErr_Occurred()) SWIG_fail;
20693 }
20694 resultobj = SWIG_FromInt((int)result);
20695 return resultobj;
20696 fail:
20697 return NULL;
20698 }
20699
20700
20701 static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
20702 PyObject *resultobj;
20703 wxListEvent *arg1 = (wxListEvent *) 0 ;
20704 wxPoint result;
20705 PyObject * obj0 = 0 ;
20706 char *kwnames[] = {
20707 (char *) "self", NULL
20708 };
20709
20710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
20711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20713 {
20714 PyThreadState* __tstate = wxPyBeginAllowThreads();
20715 result = (arg1)->GetPoint();
20716
20717 wxPyEndAllowThreads(__tstate);
20718 if (PyErr_Occurred()) SWIG_fail;
20719 }
20720 {
20721 wxPoint * resultptr;
20722 resultptr = new wxPoint((wxPoint &) result);
20723 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20724 }
20725 return resultobj;
20726 fail:
20727 return NULL;
20728 }
20729
20730
20731 static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20732 PyObject *resultobj;
20733 wxListEvent *arg1 = (wxListEvent *) 0 ;
20734 wxString *result;
20735 PyObject * obj0 = 0 ;
20736 char *kwnames[] = {
20737 (char *) "self", NULL
20738 };
20739
20740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
20741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20743 {
20744 PyThreadState* __tstate = wxPyBeginAllowThreads();
20745 {
20746 wxString const &_result_ref = (arg1)->GetLabel();
20747 result = (wxString *) &_result_ref;
20748 }
20749
20750 wxPyEndAllowThreads(__tstate);
20751 if (PyErr_Occurred()) SWIG_fail;
20752 }
20753 {
20754 #if wxUSE_UNICODE
20755 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20756 #else
20757 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20758 #endif
20759 }
20760 return resultobj;
20761 fail:
20762 return NULL;
20763 }
20764
20765
20766 static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
20767 PyObject *resultobj;
20768 wxListEvent *arg1 = (wxListEvent *) 0 ;
20769 wxString *result;
20770 PyObject * obj0 = 0 ;
20771 char *kwnames[] = {
20772 (char *) "self", NULL
20773 };
20774
20775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
20776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20778 {
20779 PyThreadState* __tstate = wxPyBeginAllowThreads();
20780 {
20781 wxString const &_result_ref = (arg1)->GetText();
20782 result = (wxString *) &_result_ref;
20783 }
20784
20785 wxPyEndAllowThreads(__tstate);
20786 if (PyErr_Occurred()) SWIG_fail;
20787 }
20788 {
20789 #if wxUSE_UNICODE
20790 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20791 #else
20792 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20793 #endif
20794 }
20795 return resultobj;
20796 fail:
20797 return NULL;
20798 }
20799
20800
20801 static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20802 PyObject *resultobj;
20803 wxListEvent *arg1 = (wxListEvent *) 0 ;
20804 int result;
20805 PyObject * obj0 = 0 ;
20806 char *kwnames[] = {
20807 (char *) "self", NULL
20808 };
20809
20810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
20811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20813 {
20814 PyThreadState* __tstate = wxPyBeginAllowThreads();
20815 result = (int)(arg1)->GetImage();
20816
20817 wxPyEndAllowThreads(__tstate);
20818 if (PyErr_Occurred()) SWIG_fail;
20819 }
20820 resultobj = SWIG_FromInt((int)result);
20821 return resultobj;
20822 fail:
20823 return NULL;
20824 }
20825
20826
20827 static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
20828 PyObject *resultobj;
20829 wxListEvent *arg1 = (wxListEvent *) 0 ;
20830 long result;
20831 PyObject * obj0 = 0 ;
20832 char *kwnames[] = {
20833 (char *) "self", NULL
20834 };
20835
20836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
20837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20839 {
20840 PyThreadState* __tstate = wxPyBeginAllowThreads();
20841 result = (long)(arg1)->GetData();
20842
20843 wxPyEndAllowThreads(__tstate);
20844 if (PyErr_Occurred()) SWIG_fail;
20845 }
20846 resultobj = SWIG_FromLong((long)result);
20847 return resultobj;
20848 fail:
20849 return NULL;
20850 }
20851
20852
20853 static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
20854 PyObject *resultobj;
20855 wxListEvent *arg1 = (wxListEvent *) 0 ;
20856 long result;
20857 PyObject * obj0 = 0 ;
20858 char *kwnames[] = {
20859 (char *) "self", NULL
20860 };
20861
20862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
20863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20865 {
20866 PyThreadState* __tstate = wxPyBeginAllowThreads();
20867 result = (long)(arg1)->GetMask();
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_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20880 PyObject *resultobj;
20881 wxListEvent *arg1 = (wxListEvent *) 0 ;
20882 wxListItem *result;
20883 PyObject * obj0 = 0 ;
20884 char *kwnames[] = {
20885 (char *) "self", NULL
20886 };
20887
20888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
20889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20891 {
20892 PyThreadState* __tstate = wxPyBeginAllowThreads();
20893 {
20894 wxListItem const &_result_ref = (arg1)->GetItem();
20895 result = (wxListItem *) &_result_ref;
20896 }
20897
20898 wxPyEndAllowThreads(__tstate);
20899 if (PyErr_Occurred()) SWIG_fail;
20900 }
20901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
20902 return resultobj;
20903 fail:
20904 return NULL;
20905 }
20906
20907
20908 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
20909 PyObject *resultobj;
20910 wxListEvent *arg1 = (wxListEvent *) 0 ;
20911 long result;
20912 PyObject * obj0 = 0 ;
20913 char *kwnames[] = {
20914 (char *) "self", NULL
20915 };
20916
20917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
20918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20920 {
20921 PyThreadState* __tstate = wxPyBeginAllowThreads();
20922 result = (long)(arg1)->GetCacheFrom();
20923
20924 wxPyEndAllowThreads(__tstate);
20925 if (PyErr_Occurred()) SWIG_fail;
20926 }
20927 resultobj = SWIG_FromLong((long)result);
20928 return resultobj;
20929 fail:
20930 return NULL;
20931 }
20932
20933
20934 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20935 PyObject *resultobj;
20936 wxListEvent *arg1 = (wxListEvent *) 0 ;
20937 long result;
20938 PyObject * obj0 = 0 ;
20939 char *kwnames[] = {
20940 (char *) "self", NULL
20941 };
20942
20943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
20944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20946 {
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
20948 result = (long)(arg1)->GetCacheTo();
20949
20950 wxPyEndAllowThreads(__tstate);
20951 if (PyErr_Occurred()) SWIG_fail;
20952 }
20953 resultobj = SWIG_FromLong((long)result);
20954 return resultobj;
20955 fail:
20956 return NULL;
20957 }
20958
20959
20960 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
20961 PyObject *resultobj;
20962 wxListEvent *arg1 = (wxListEvent *) 0 ;
20963 bool result;
20964 PyObject * obj0 = 0 ;
20965 char *kwnames[] = {
20966 (char *) "self", NULL
20967 };
20968
20969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
20970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20972 {
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
20975
20976 wxPyEndAllowThreads(__tstate);
20977 if (PyErr_Occurred()) SWIG_fail;
20978 }
20979 {
20980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20981 }
20982 return resultobj;
20983 fail:
20984 return NULL;
20985 }
20986
20987
20988 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
20989 PyObject *resultobj;
20990 wxListEvent *arg1 = (wxListEvent *) 0 ;
20991 bool arg2 ;
20992 PyObject * obj0 = 0 ;
20993 PyObject * obj1 = 0 ;
20994 char *kwnames[] = {
20995 (char *) "self",(char *) "editCancelled", NULL
20996 };
20997
20998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
20999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21001 arg2 = (bool) SWIG_AsBool(obj1);
21002 if (PyErr_Occurred()) SWIG_fail;
21003 {
21004 PyThreadState* __tstate = wxPyBeginAllowThreads();
21005 (arg1)->SetEditCanceled(arg2);
21006
21007 wxPyEndAllowThreads(__tstate);
21008 if (PyErr_Occurred()) SWIG_fail;
21009 }
21010 Py_INCREF(Py_None); resultobj = Py_None;
21011 return resultobj;
21012 fail:
21013 return NULL;
21014 }
21015
21016
21017 static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
21018 PyObject *obj;
21019 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21020 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21021 Py_INCREF(obj);
21022 return Py_BuildValue((char *)"");
21023 }
21024 static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
21025 PyObject *resultobj;
21026 wxWindow *arg1 = (wxWindow *) 0 ;
21027 int arg2 = (int) -1 ;
21028 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21029 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21030 wxSize const &arg4_defvalue = wxDefaultSize ;
21031 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21032 long arg5 = (long) wxLC_ICON ;
21033 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21034 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21035 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21036 wxString *arg7 = (wxString *) &arg7_defvalue ;
21037 wxPyListCtrl *result;
21038 wxPoint temp3 ;
21039 wxSize temp4 ;
21040 bool temp7 = False ;
21041 PyObject * obj0 = 0 ;
21042 PyObject * obj1 = 0 ;
21043 PyObject * obj2 = 0 ;
21044 PyObject * obj3 = 0 ;
21045 PyObject * obj4 = 0 ;
21046 PyObject * obj5 = 0 ;
21047 PyObject * obj6 = 0 ;
21048 char *kwnames[] = {
21049 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21050 };
21051
21052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21055 if (obj1) {
21056 arg2 = (int) SWIG_AsInt(obj1);
21057 if (PyErr_Occurred()) SWIG_fail;
21058 }
21059 if (obj2) {
21060 {
21061 arg3 = &temp3;
21062 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21063 }
21064 }
21065 if (obj3) {
21066 {
21067 arg4 = &temp4;
21068 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21069 }
21070 }
21071 if (obj4) {
21072 arg5 = (long) SWIG_AsLong(obj4);
21073 if (PyErr_Occurred()) SWIG_fail;
21074 }
21075 if (obj5) {
21076 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21077 SWIG_POINTER_EXCEPTION | 0)) == -1)
21078 SWIG_fail;
21079 if (arg6 == NULL) {
21080 PyErr_SetString(PyExc_TypeError,"null reference");
21081 SWIG_fail;
21082 }
21083 }
21084 if (obj6) {
21085 {
21086 arg7 = wxString_in_helper(obj6);
21087 if (arg7 == NULL) SWIG_fail;
21088 temp7 = True;
21089 }
21090 }
21091 {
21092 PyThreadState* __tstate = wxPyBeginAllowThreads();
21093 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21094
21095 wxPyEndAllowThreads(__tstate);
21096 if (PyErr_Occurred()) SWIG_fail;
21097 }
21098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21099 {
21100 if (temp7)
21101 delete arg7;
21102 }
21103 return resultobj;
21104 fail:
21105 {
21106 if (temp7)
21107 delete arg7;
21108 }
21109 return NULL;
21110 }
21111
21112
21113 static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
21114 PyObject *resultobj;
21115 wxPyListCtrl *result;
21116 char *kwnames[] = {
21117 NULL
21118 };
21119
21120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21121 {
21122 PyThreadState* __tstate = wxPyBeginAllowThreads();
21123 result = (wxPyListCtrl *)new wxPyListCtrl();
21124
21125 wxPyEndAllowThreads(__tstate);
21126 if (PyErr_Occurred()) SWIG_fail;
21127 }
21128 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21129 return resultobj;
21130 fail:
21131 return NULL;
21132 }
21133
21134
21135 static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
21136 PyObject *resultobj;
21137 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21138 wxWindow *arg2 = (wxWindow *) 0 ;
21139 int arg3 = (int) -1 ;
21140 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21141 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21142 wxSize const &arg5_defvalue = wxDefaultSize ;
21143 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21144 long arg6 = (long) wxLC_ICON ;
21145 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21146 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21147 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21148 wxString *arg8 = (wxString *) &arg8_defvalue ;
21149 bool result;
21150 wxPoint temp4 ;
21151 wxSize temp5 ;
21152 bool temp8 = False ;
21153 PyObject * obj0 = 0 ;
21154 PyObject * obj1 = 0 ;
21155 PyObject * obj2 = 0 ;
21156 PyObject * obj3 = 0 ;
21157 PyObject * obj4 = 0 ;
21158 PyObject * obj5 = 0 ;
21159 PyObject * obj6 = 0 ;
21160 PyObject * obj7 = 0 ;
21161 char *kwnames[] = {
21162 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21163 };
21164
21165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21168 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21170 if (obj2) {
21171 arg3 = (int) SWIG_AsInt(obj2);
21172 if (PyErr_Occurred()) SWIG_fail;
21173 }
21174 if (obj3) {
21175 {
21176 arg4 = &temp4;
21177 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21178 }
21179 }
21180 if (obj4) {
21181 {
21182 arg5 = &temp5;
21183 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21184 }
21185 }
21186 if (obj5) {
21187 arg6 = (long) SWIG_AsLong(obj5);
21188 if (PyErr_Occurred()) SWIG_fail;
21189 }
21190 if (obj6) {
21191 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21192 SWIG_POINTER_EXCEPTION | 0)) == -1)
21193 SWIG_fail;
21194 if (arg7 == NULL) {
21195 PyErr_SetString(PyExc_TypeError,"null reference");
21196 SWIG_fail;
21197 }
21198 }
21199 if (obj7) {
21200 {
21201 arg8 = wxString_in_helper(obj7);
21202 if (arg8 == NULL) SWIG_fail;
21203 temp8 = True;
21204 }
21205 }
21206 {
21207 PyThreadState* __tstate = wxPyBeginAllowThreads();
21208 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21209
21210 wxPyEndAllowThreads(__tstate);
21211 if (PyErr_Occurred()) SWIG_fail;
21212 }
21213 {
21214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21215 }
21216 {
21217 if (temp8)
21218 delete arg8;
21219 }
21220 return resultobj;
21221 fail:
21222 {
21223 if (temp8)
21224 delete arg8;
21225 }
21226 return NULL;
21227 }
21228
21229
21230 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
21231 PyObject *resultobj;
21232 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21233 PyObject *arg2 = (PyObject *) 0 ;
21234 PyObject *arg3 = (PyObject *) 0 ;
21235 PyObject * obj0 = 0 ;
21236 PyObject * obj1 = 0 ;
21237 PyObject * obj2 = 0 ;
21238 char *kwnames[] = {
21239 (char *) "self",(char *) "self",(char *) "_class", NULL
21240 };
21241
21242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21245 arg2 = obj1;
21246 arg3 = obj2;
21247 {
21248 PyThreadState* __tstate = wxPyBeginAllowThreads();
21249 (arg1)->_setCallbackInfo(arg2,arg3);
21250
21251 wxPyEndAllowThreads(__tstate);
21252 if (PyErr_Occurred()) SWIG_fail;
21253 }
21254 Py_INCREF(Py_None); resultobj = Py_None;
21255 return resultobj;
21256 fail:
21257 return NULL;
21258 }
21259
21260
21261 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21262 PyObject *resultobj;
21263 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21264 wxColour *arg2 = 0 ;
21265 bool result;
21266 wxColour temp2 ;
21267 PyObject * obj0 = 0 ;
21268 PyObject * obj1 = 0 ;
21269 char *kwnames[] = {
21270 (char *) "self",(char *) "col", NULL
21271 };
21272
21273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21276 {
21277 arg2 = &temp2;
21278 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21279 }
21280 {
21281 PyThreadState* __tstate = wxPyBeginAllowThreads();
21282 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21283
21284 wxPyEndAllowThreads(__tstate);
21285 if (PyErr_Occurred()) SWIG_fail;
21286 }
21287 {
21288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21289 }
21290 return resultobj;
21291 fail:
21292 return NULL;
21293 }
21294
21295
21296 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21297 PyObject *resultobj;
21298 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21299 wxColour *arg2 = 0 ;
21300 bool result;
21301 wxColour temp2 ;
21302 PyObject * obj0 = 0 ;
21303 PyObject * obj1 = 0 ;
21304 char *kwnames[] = {
21305 (char *) "self",(char *) "col", NULL
21306 };
21307
21308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21311 {
21312 arg2 = &temp2;
21313 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21314 }
21315 {
21316 PyThreadState* __tstate = wxPyBeginAllowThreads();
21317 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21318
21319 wxPyEndAllowThreads(__tstate);
21320 if (PyErr_Occurred()) SWIG_fail;
21321 }
21322 {
21323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21324 }
21325 return resultobj;
21326 fail:
21327 return NULL;
21328 }
21329
21330
21331 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21332 PyObject *resultobj;
21333 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21334 int arg2 ;
21335 wxListItem *result;
21336 PyObject * obj0 = 0 ;
21337 PyObject * obj1 = 0 ;
21338 char *kwnames[] = {
21339 (char *) "self",(char *) "col", NULL
21340 };
21341
21342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21345 arg2 = (int) SWIG_AsInt(obj1);
21346 if (PyErr_Occurred()) SWIG_fail;
21347 {
21348 PyThreadState* __tstate = wxPyBeginAllowThreads();
21349 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21350
21351 wxPyEndAllowThreads(__tstate);
21352 if (PyErr_Occurred()) SWIG_fail;
21353 }
21354 {
21355 resultobj = wxPyMake_wxObject(result);
21356 }
21357 return resultobj;
21358 fail:
21359 return NULL;
21360 }
21361
21362
21363 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21364 PyObject *resultobj;
21365 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21366 int arg2 ;
21367 wxListItem *arg3 = 0 ;
21368 bool result;
21369 PyObject * obj0 = 0 ;
21370 PyObject * obj1 = 0 ;
21371 PyObject * obj2 = 0 ;
21372 char *kwnames[] = {
21373 (char *) "self",(char *) "col",(char *) "item", NULL
21374 };
21375
21376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21379 arg2 = (int) SWIG_AsInt(obj1);
21380 if (PyErr_Occurred()) SWIG_fail;
21381 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21382 SWIG_POINTER_EXCEPTION | 0)) == -1)
21383 SWIG_fail;
21384 if (arg3 == NULL) {
21385 PyErr_SetString(PyExc_TypeError,"null reference");
21386 SWIG_fail;
21387 }
21388 {
21389 PyThreadState* __tstate = wxPyBeginAllowThreads();
21390 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21391
21392 wxPyEndAllowThreads(__tstate);
21393 if (PyErr_Occurred()) SWIG_fail;
21394 }
21395 {
21396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21397 }
21398 return resultobj;
21399 fail:
21400 return NULL;
21401 }
21402
21403
21404 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21405 PyObject *resultobj;
21406 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21407 int arg2 ;
21408 int result;
21409 PyObject * obj0 = 0 ;
21410 PyObject * obj1 = 0 ;
21411 char *kwnames[] = {
21412 (char *) "self",(char *) "col", NULL
21413 };
21414
21415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21418 arg2 = (int) SWIG_AsInt(obj1);
21419 if (PyErr_Occurred()) SWIG_fail;
21420 {
21421 PyThreadState* __tstate = wxPyBeginAllowThreads();
21422 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21423
21424 wxPyEndAllowThreads(__tstate);
21425 if (PyErr_Occurred()) SWIG_fail;
21426 }
21427 resultobj = SWIG_FromInt((int)result);
21428 return resultobj;
21429 fail:
21430 return NULL;
21431 }
21432
21433
21434 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21435 PyObject *resultobj;
21436 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21437 int arg2 ;
21438 int arg3 ;
21439 bool result;
21440 PyObject * obj0 = 0 ;
21441 PyObject * obj1 = 0 ;
21442 PyObject * obj2 = 0 ;
21443 char *kwnames[] = {
21444 (char *) "self",(char *) "col",(char *) "width", NULL
21445 };
21446
21447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21450 arg2 = (int) SWIG_AsInt(obj1);
21451 if (PyErr_Occurred()) SWIG_fail;
21452 arg3 = (int) SWIG_AsInt(obj2);
21453 if (PyErr_Occurred()) SWIG_fail;
21454 {
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21457
21458 wxPyEndAllowThreads(__tstate);
21459 if (PyErr_Occurred()) SWIG_fail;
21460 }
21461 {
21462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21463 }
21464 return resultobj;
21465 fail:
21466 return NULL;
21467 }
21468
21469
21470 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
21471 PyObject *resultobj;
21472 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21473 int result;
21474 PyObject * obj0 = 0 ;
21475 char *kwnames[] = {
21476 (char *) "self", NULL
21477 };
21478
21479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21482 {
21483 PyThreadState* __tstate = wxPyBeginAllowThreads();
21484 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21485
21486 wxPyEndAllowThreads(__tstate);
21487 if (PyErr_Occurred()) SWIG_fail;
21488 }
21489 resultobj = SWIG_FromInt((int)result);
21490 return resultobj;
21491 fail:
21492 return NULL;
21493 }
21494
21495
21496 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21497 PyObject *resultobj;
21498 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21499 wxRect result;
21500 PyObject * obj0 = 0 ;
21501 char *kwnames[] = {
21502 (char *) "self", NULL
21503 };
21504
21505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21508 {
21509 PyThreadState* __tstate = wxPyBeginAllowThreads();
21510 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21511
21512 wxPyEndAllowThreads(__tstate);
21513 if (PyErr_Occurred()) SWIG_fail;
21514 }
21515 {
21516 wxRect * resultptr;
21517 resultptr = new wxRect((wxRect &) result);
21518 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21519 }
21520 return resultobj;
21521 fail:
21522 return NULL;
21523 }
21524
21525
21526 static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
21527 PyObject *resultobj;
21528 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21529 wxTextCtrl *result;
21530 PyObject * obj0 = 0 ;
21531 char *kwnames[] = {
21532 (char *) "self", NULL
21533 };
21534
21535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail;
21536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21538 {
21539 PyThreadState* __tstate = wxPyBeginAllowThreads();
21540 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
21541
21542 wxPyEndAllowThreads(__tstate);
21543 if (PyErr_Occurred()) SWIG_fail;
21544 }
21545 {
21546 resultobj = wxPyMake_wxObject(result);
21547 }
21548 return resultobj;
21549 fail:
21550 return NULL;
21551 }
21552
21553
21554 static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21555 PyObject *resultobj;
21556 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21557 long arg2 ;
21558 int arg3 = (int) 0 ;
21559 wxListItem *result;
21560 PyObject * obj0 = 0 ;
21561 PyObject * obj1 = 0 ;
21562 PyObject * obj2 = 0 ;
21563 char *kwnames[] = {
21564 (char *) "self",(char *) "itemId",(char *) "col", NULL
21565 };
21566
21567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21570 arg2 = (long) SWIG_AsLong(obj1);
21571 if (PyErr_Occurred()) SWIG_fail;
21572 if (obj2) {
21573 arg3 = (int) SWIG_AsInt(obj2);
21574 if (PyErr_Occurred()) SWIG_fail;
21575 }
21576 {
21577 PyThreadState* __tstate = wxPyBeginAllowThreads();
21578 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21579
21580 wxPyEndAllowThreads(__tstate);
21581 if (PyErr_Occurred()) SWIG_fail;
21582 }
21583 {
21584 resultobj = wxPyMake_wxObject(result);
21585 }
21586 return resultobj;
21587 fail:
21588 return NULL;
21589 }
21590
21591
21592 static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21593 PyObject *resultobj;
21594 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21595 wxListItem *arg2 = 0 ;
21596 bool result;
21597 PyObject * obj0 = 0 ;
21598 PyObject * obj1 = 0 ;
21599 char *kwnames[] = {
21600 (char *) "self",(char *) "info", NULL
21601 };
21602
21603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21606 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21607 SWIG_POINTER_EXCEPTION | 0)) == -1)
21608 SWIG_fail;
21609 if (arg2 == NULL) {
21610 PyErr_SetString(PyExc_TypeError,"null reference");
21611 SWIG_fail;
21612 }
21613 {
21614 PyThreadState* __tstate = wxPyBeginAllowThreads();
21615 result = (bool)(arg1)->SetItem(*arg2);
21616
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 {
21621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21622 }
21623 return resultobj;
21624 fail:
21625 return NULL;
21626 }
21627
21628
21629 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21630 PyObject *resultobj;
21631 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21632 long arg2 ;
21633 int arg3 ;
21634 wxString *arg4 = 0 ;
21635 int arg5 = (int) -1 ;
21636 long result;
21637 bool temp4 = False ;
21638 PyObject * obj0 = 0 ;
21639 PyObject * obj1 = 0 ;
21640 PyObject * obj2 = 0 ;
21641 PyObject * obj3 = 0 ;
21642 PyObject * obj4 = 0 ;
21643 char *kwnames[] = {
21644 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21645 };
21646
21647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21650 arg2 = (long) SWIG_AsLong(obj1);
21651 if (PyErr_Occurred()) SWIG_fail;
21652 arg3 = (int) SWIG_AsInt(obj2);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 {
21655 arg4 = wxString_in_helper(obj3);
21656 if (arg4 == NULL) SWIG_fail;
21657 temp4 = True;
21658 }
21659 if (obj4) {
21660 arg5 = (int) SWIG_AsInt(obj4);
21661 if (PyErr_Occurred()) SWIG_fail;
21662 }
21663 {
21664 PyThreadState* __tstate = wxPyBeginAllowThreads();
21665 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21666
21667 wxPyEndAllowThreads(__tstate);
21668 if (PyErr_Occurred()) SWIG_fail;
21669 }
21670 resultobj = SWIG_FromLong((long)result);
21671 {
21672 if (temp4)
21673 delete arg4;
21674 }
21675 return resultobj;
21676 fail:
21677 {
21678 if (temp4)
21679 delete arg4;
21680 }
21681 return NULL;
21682 }
21683
21684
21685 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21686 PyObject *resultobj;
21687 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21688 long arg2 ;
21689 long arg3 ;
21690 int result;
21691 PyObject * obj0 = 0 ;
21692 PyObject * obj1 = 0 ;
21693 PyObject * obj2 = 0 ;
21694 char *kwnames[] = {
21695 (char *) "self",(char *) "item",(char *) "stateMask", NULL
21696 };
21697
21698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
21699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21701 arg2 = (long) SWIG_AsLong(obj1);
21702 if (PyErr_Occurred()) SWIG_fail;
21703 arg3 = (long) SWIG_AsLong(obj2);
21704 if (PyErr_Occurred()) SWIG_fail;
21705 {
21706 PyThreadState* __tstate = wxPyBeginAllowThreads();
21707 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
21708
21709 wxPyEndAllowThreads(__tstate);
21710 if (PyErr_Occurred()) SWIG_fail;
21711 }
21712 resultobj = SWIG_FromInt((int)result);
21713 return resultobj;
21714 fail:
21715 return NULL;
21716 }
21717
21718
21719 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21720 PyObject *resultobj;
21721 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21722 long arg2 ;
21723 long arg3 ;
21724 long arg4 ;
21725 bool result;
21726 PyObject * obj0 = 0 ;
21727 PyObject * obj1 = 0 ;
21728 PyObject * obj2 = 0 ;
21729 PyObject * obj3 = 0 ;
21730 char *kwnames[] = {
21731 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
21732 };
21733
21734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21737 arg2 = (long) SWIG_AsLong(obj1);
21738 if (PyErr_Occurred()) SWIG_fail;
21739 arg3 = (long) SWIG_AsLong(obj2);
21740 if (PyErr_Occurred()) SWIG_fail;
21741 arg4 = (long) SWIG_AsLong(obj3);
21742 if (PyErr_Occurred()) SWIG_fail;
21743 {
21744 PyThreadState* __tstate = wxPyBeginAllowThreads();
21745 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
21746
21747 wxPyEndAllowThreads(__tstate);
21748 if (PyErr_Occurred()) SWIG_fail;
21749 }
21750 {
21751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21752 }
21753 return resultobj;
21754 fail:
21755 return NULL;
21756 }
21757
21758
21759 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
21760 PyObject *resultobj;
21761 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21762 long arg2 ;
21763 int arg3 ;
21764 int arg4 ;
21765 bool result;
21766 PyObject * obj0 = 0 ;
21767 PyObject * obj1 = 0 ;
21768 PyObject * obj2 = 0 ;
21769 PyObject * obj3 = 0 ;
21770 char *kwnames[] = {
21771 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
21772 };
21773
21774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21777 arg2 = (long) SWIG_AsLong(obj1);
21778 if (PyErr_Occurred()) SWIG_fail;
21779 arg3 = (int) SWIG_AsInt(obj2);
21780 if (PyErr_Occurred()) SWIG_fail;
21781 arg4 = (int) SWIG_AsInt(obj3);
21782 if (PyErr_Occurred()) SWIG_fail;
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
21786
21787 wxPyEndAllowThreads(__tstate);
21788 if (PyErr_Occurred()) SWIG_fail;
21789 }
21790 {
21791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21792 }
21793 return resultobj;
21794 fail:
21795 return NULL;
21796 }
21797
21798
21799 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21800 PyObject *resultobj;
21801 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21802 long arg2 ;
21803 wxString result;
21804 PyObject * obj0 = 0 ;
21805 PyObject * obj1 = 0 ;
21806 char *kwnames[] = {
21807 (char *) "self",(char *) "item", NULL
21808 };
21809
21810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
21811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21813 arg2 = (long) SWIG_AsLong(obj1);
21814 if (PyErr_Occurred()) SWIG_fail;
21815 {
21816 PyThreadState* __tstate = wxPyBeginAllowThreads();
21817 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
21818
21819 wxPyEndAllowThreads(__tstate);
21820 if (PyErr_Occurred()) SWIG_fail;
21821 }
21822 {
21823 #if wxUSE_UNICODE
21824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21825 #else
21826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21827 #endif
21828 }
21829 return resultobj;
21830 fail:
21831 return NULL;
21832 }
21833
21834
21835 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21836 PyObject *resultobj;
21837 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21838 long arg2 ;
21839 wxString *arg3 = 0 ;
21840 bool temp3 = False ;
21841 PyObject * obj0 = 0 ;
21842 PyObject * obj1 = 0 ;
21843 PyObject * obj2 = 0 ;
21844 char *kwnames[] = {
21845 (char *) "self",(char *) "item",(char *) "str", NULL
21846 };
21847
21848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
21849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21851 arg2 = (long) SWIG_AsLong(obj1);
21852 if (PyErr_Occurred()) SWIG_fail;
21853 {
21854 arg3 = wxString_in_helper(obj2);
21855 if (arg3 == NULL) SWIG_fail;
21856 temp3 = True;
21857 }
21858 {
21859 PyThreadState* __tstate = wxPyBeginAllowThreads();
21860 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
21861
21862 wxPyEndAllowThreads(__tstate);
21863 if (PyErr_Occurred()) SWIG_fail;
21864 }
21865 Py_INCREF(Py_None); resultobj = Py_None;
21866 {
21867 if (temp3)
21868 delete arg3;
21869 }
21870 return resultobj;
21871 fail:
21872 {
21873 if (temp3)
21874 delete arg3;
21875 }
21876 return NULL;
21877 }
21878
21879
21880 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21881 PyObject *resultobj;
21882 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21883 long arg2 ;
21884 long result;
21885 PyObject * obj0 = 0 ;
21886 PyObject * obj1 = 0 ;
21887 char *kwnames[] = {
21888 (char *) "self",(char *) "item", NULL
21889 };
21890
21891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
21892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21894 arg2 = (long) SWIG_AsLong(obj1);
21895 if (PyErr_Occurred()) SWIG_fail;
21896 {
21897 PyThreadState* __tstate = wxPyBeginAllowThreads();
21898 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
21899
21900 wxPyEndAllowThreads(__tstate);
21901 if (PyErr_Occurred()) SWIG_fail;
21902 }
21903 resultobj = SWIG_FromLong((long)result);
21904 return resultobj;
21905 fail:
21906 return NULL;
21907 }
21908
21909
21910 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21911 PyObject *resultobj;
21912 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21913 long arg2 ;
21914 long arg3 ;
21915 bool result;
21916 PyObject * obj0 = 0 ;
21917 PyObject * obj1 = 0 ;
21918 PyObject * obj2 = 0 ;
21919 char *kwnames[] = {
21920 (char *) "self",(char *) "item",(char *) "data", NULL
21921 };
21922
21923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21926 arg2 = (long) SWIG_AsLong(obj1);
21927 if (PyErr_Occurred()) SWIG_fail;
21928 arg3 = (long) SWIG_AsLong(obj2);
21929 if (PyErr_Occurred()) SWIG_fail;
21930 {
21931 PyThreadState* __tstate = wxPyBeginAllowThreads();
21932 result = (bool)(arg1)->SetItemData(arg2,arg3);
21933
21934 wxPyEndAllowThreads(__tstate);
21935 if (PyErr_Occurred()) SWIG_fail;
21936 }
21937 {
21938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21939 }
21940 return resultobj;
21941 fail:
21942 return NULL;
21943 }
21944
21945
21946 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21947 PyObject *resultobj;
21948 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21949 long arg2 ;
21950 wxPoint result;
21951 PyObject * obj0 = 0 ;
21952 PyObject * obj1 = 0 ;
21953 char *kwnames[] = {
21954 (char *) "self",(char *) "item", NULL
21955 };
21956
21957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
21958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21960 arg2 = (long) SWIG_AsLong(obj1);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
21965
21966 wxPyEndAllowThreads(__tstate);
21967 if (PyErr_Occurred()) SWIG_fail;
21968 }
21969 {
21970 wxPoint * resultptr;
21971 resultptr = new wxPoint((wxPoint &) result);
21972 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21973 }
21974 return resultobj;
21975 fail:
21976 return NULL;
21977 }
21978
21979
21980 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21981 PyObject *resultobj;
21982 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21983 long arg2 ;
21984 int arg3 = (int) wxLIST_RECT_BOUNDS ;
21985 wxRect result;
21986 PyObject * obj0 = 0 ;
21987 PyObject * obj1 = 0 ;
21988 PyObject * obj2 = 0 ;
21989 char *kwnames[] = {
21990 (char *) "self",(char *) "item",(char *) "code", NULL
21991 };
21992
21993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
21994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21996 arg2 = (long) SWIG_AsLong(obj1);
21997 if (PyErr_Occurred()) SWIG_fail;
21998 if (obj2) {
21999 arg3 = (int) SWIG_AsInt(obj2);
22000 if (PyErr_Occurred()) SWIG_fail;
22001 }
22002 {
22003 PyThreadState* __tstate = wxPyBeginAllowThreads();
22004 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22005
22006 wxPyEndAllowThreads(__tstate);
22007 if (PyErr_Occurred()) SWIG_fail;
22008 }
22009 {
22010 wxRect * resultptr;
22011 resultptr = new wxRect((wxRect &) result);
22012 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22013 }
22014 return resultobj;
22015 fail:
22016 return NULL;
22017 }
22018
22019
22020 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
22021 PyObject *resultobj;
22022 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22023 long arg2 ;
22024 wxPoint *arg3 = 0 ;
22025 bool result;
22026 wxPoint temp3 ;
22027 PyObject * obj0 = 0 ;
22028 PyObject * obj1 = 0 ;
22029 PyObject * obj2 = 0 ;
22030 char *kwnames[] = {
22031 (char *) "self",(char *) "item",(char *) "pos", NULL
22032 };
22033
22034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22037 arg2 = (long) SWIG_AsLong(obj1);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 {
22040 arg3 = &temp3;
22041 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22042 }
22043 {
22044 PyThreadState* __tstate = wxPyBeginAllowThreads();
22045 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22046
22047 wxPyEndAllowThreads(__tstate);
22048 if (PyErr_Occurred()) SWIG_fail;
22049 }
22050 {
22051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22052 }
22053 return resultobj;
22054 fail:
22055 return NULL;
22056 }
22057
22058
22059 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22060 PyObject *resultobj;
22061 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22062 int result;
22063 PyObject * obj0 = 0 ;
22064 char *kwnames[] = {
22065 (char *) "self", NULL
22066 };
22067
22068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22071 {
22072 PyThreadState* __tstate = wxPyBeginAllowThreads();
22073 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22074
22075 wxPyEndAllowThreads(__tstate);
22076 if (PyErr_Occurred()) SWIG_fail;
22077 }
22078 resultobj = SWIG_FromInt((int)result);
22079 return resultobj;
22080 fail:
22081 return NULL;
22082 }
22083
22084
22085 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22086 PyObject *resultobj;
22087 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22088 int result;
22089 PyObject * obj0 = 0 ;
22090 char *kwnames[] = {
22091 (char *) "self", NULL
22092 };
22093
22094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22100
22101 wxPyEndAllowThreads(__tstate);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 }
22104 resultobj = SWIG_FromInt((int)result);
22105 return resultobj;
22106 fail:
22107 return NULL;
22108 }
22109
22110
22111 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
22112 PyObject *resultobj;
22113 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22114 wxSize result;
22115 PyObject * obj0 = 0 ;
22116 char *kwnames[] = {
22117 (char *) "self", NULL
22118 };
22119
22120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22123 {
22124 PyThreadState* __tstate = wxPyBeginAllowThreads();
22125 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22126
22127 wxPyEndAllowThreads(__tstate);
22128 if (PyErr_Occurred()) SWIG_fail;
22129 }
22130 {
22131 wxSize * resultptr;
22132 resultptr = new wxSize((wxSize &) result);
22133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22134 }
22135 return resultobj;
22136 fail:
22137 return NULL;
22138 }
22139
22140
22141 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22142 PyObject *resultobj;
22143 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22144 int result;
22145 PyObject * obj0 = 0 ;
22146 char *kwnames[] = {
22147 (char *) "self", NULL
22148 };
22149
22150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22153 {
22154 PyThreadState* __tstate = wxPyBeginAllowThreads();
22155 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22156
22157 wxPyEndAllowThreads(__tstate);
22158 if (PyErr_Occurred()) SWIG_fail;
22159 }
22160 resultobj = SWIG_FromInt((int)result);
22161 return resultobj;
22162 fail:
22163 return NULL;
22164 }
22165
22166
22167 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22168 PyObject *resultobj;
22169 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22170 wxColour result;
22171 PyObject * obj0 = 0 ;
22172 char *kwnames[] = {
22173 (char *) "self", NULL
22174 };
22175
22176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22179 {
22180 PyThreadState* __tstate = wxPyBeginAllowThreads();
22181 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22182
22183 wxPyEndAllowThreads(__tstate);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 {
22187 wxColour * resultptr;
22188 resultptr = new wxColour((wxColour &) result);
22189 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22190 }
22191 return resultobj;
22192 fail:
22193 return NULL;
22194 }
22195
22196
22197 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22198 PyObject *resultobj;
22199 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22200 wxColour *arg2 = 0 ;
22201 wxColour temp2 ;
22202 PyObject * obj0 = 0 ;
22203 PyObject * obj1 = 0 ;
22204 char *kwnames[] = {
22205 (char *) "self",(char *) "col", NULL
22206 };
22207
22208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22211 {
22212 arg2 = &temp2;
22213 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22214 }
22215 {
22216 PyThreadState* __tstate = wxPyBeginAllowThreads();
22217 (arg1)->SetTextColour((wxColour const &)*arg2);
22218
22219 wxPyEndAllowThreads(__tstate);
22220 if (PyErr_Occurred()) SWIG_fail;
22221 }
22222 Py_INCREF(Py_None); resultobj = Py_None;
22223 return resultobj;
22224 fail:
22225 return NULL;
22226 }
22227
22228
22229 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22230 PyObject *resultobj;
22231 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22232 long result;
22233 PyObject * obj0 = 0 ;
22234 char *kwnames[] = {
22235 (char *) "self", NULL
22236 };
22237
22238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22241 {
22242 PyThreadState* __tstate = wxPyBeginAllowThreads();
22243 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22244
22245 wxPyEndAllowThreads(__tstate);
22246 if (PyErr_Occurred()) SWIG_fail;
22247 }
22248 resultobj = SWIG_FromLong((long)result);
22249 return resultobj;
22250 fail:
22251 return NULL;
22252 }
22253
22254
22255 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22256 PyObject *resultobj;
22257 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22258 long arg2 ;
22259 bool arg3 = (bool) True ;
22260 PyObject * obj0 = 0 ;
22261 PyObject * obj1 = 0 ;
22262 PyObject * obj2 = 0 ;
22263 char *kwnames[] = {
22264 (char *) "self",(char *) "style",(char *) "add", NULL
22265 };
22266
22267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22270 arg2 = (long) SWIG_AsLong(obj1);
22271 if (PyErr_Occurred()) SWIG_fail;
22272 if (obj2) {
22273 arg3 = (bool) SWIG_AsBool(obj2);
22274 if (PyErr_Occurred()) SWIG_fail;
22275 }
22276 {
22277 PyThreadState* __tstate = wxPyBeginAllowThreads();
22278 (arg1)->SetSingleStyle(arg2,arg3);
22279
22280 wxPyEndAllowThreads(__tstate);
22281 if (PyErr_Occurred()) SWIG_fail;
22282 }
22283 Py_INCREF(Py_None); resultobj = Py_None;
22284 return resultobj;
22285 fail:
22286 return NULL;
22287 }
22288
22289
22290 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22291 PyObject *resultobj;
22292 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22293 long arg2 ;
22294 PyObject * obj0 = 0 ;
22295 PyObject * obj1 = 0 ;
22296 char *kwnames[] = {
22297 (char *) "self",(char *) "style", NULL
22298 };
22299
22300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22303 arg2 = (long) SWIG_AsLong(obj1);
22304 if (PyErr_Occurred()) SWIG_fail;
22305 {
22306 PyThreadState* __tstate = wxPyBeginAllowThreads();
22307 (arg1)->SetWindowStyleFlag(arg2);
22308
22309 wxPyEndAllowThreads(__tstate);
22310 if (PyErr_Occurred()) SWIG_fail;
22311 }
22312 Py_INCREF(Py_None); resultobj = Py_None;
22313 return resultobj;
22314 fail:
22315 return NULL;
22316 }
22317
22318
22319 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22320 PyObject *resultobj;
22321 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22322 long arg2 ;
22323 int arg3 = (int) wxLIST_NEXT_ALL ;
22324 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22325 long result;
22326 PyObject * obj0 = 0 ;
22327 PyObject * obj1 = 0 ;
22328 PyObject * obj2 = 0 ;
22329 PyObject * obj3 = 0 ;
22330 char *kwnames[] = {
22331 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22332 };
22333
22334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22337 arg2 = (long) SWIG_AsLong(obj1);
22338 if (PyErr_Occurred()) SWIG_fail;
22339 if (obj2) {
22340 arg3 = (int) SWIG_AsInt(obj2);
22341 if (PyErr_Occurred()) SWIG_fail;
22342 }
22343 if (obj3) {
22344 arg4 = (int) SWIG_AsInt(obj3);
22345 if (PyErr_Occurred()) SWIG_fail;
22346 }
22347 {
22348 PyThreadState* __tstate = wxPyBeginAllowThreads();
22349 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22350
22351 wxPyEndAllowThreads(__tstate);
22352 if (PyErr_Occurred()) SWIG_fail;
22353 }
22354 resultobj = SWIG_FromLong((long)result);
22355 return resultobj;
22356 fail:
22357 return NULL;
22358 }
22359
22360
22361 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22362 PyObject *resultobj;
22363 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22364 int arg2 ;
22365 wxImageList *result;
22366 PyObject * obj0 = 0 ;
22367 PyObject * obj1 = 0 ;
22368 char *kwnames[] = {
22369 (char *) "self",(char *) "which", NULL
22370 };
22371
22372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22375 arg2 = (int) SWIG_AsInt(obj1);
22376 if (PyErr_Occurred()) SWIG_fail;
22377 {
22378 PyThreadState* __tstate = wxPyBeginAllowThreads();
22379 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22380
22381 wxPyEndAllowThreads(__tstate);
22382 if (PyErr_Occurred()) SWIG_fail;
22383 }
22384 {
22385 resultobj = wxPyMake_wxObject(result);
22386 }
22387 return resultobj;
22388 fail:
22389 return NULL;
22390 }
22391
22392
22393 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22394 PyObject *resultobj;
22395 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22396 wxImageList *arg2 = (wxImageList *) 0 ;
22397 int arg3 ;
22398 PyObject * obj0 = 0 ;
22399 PyObject * obj1 = 0 ;
22400 PyObject * obj2 = 0 ;
22401 char *kwnames[] = {
22402 (char *) "self",(char *) "imageList",(char *) "which", NULL
22403 };
22404
22405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22408 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22410 arg3 = (int) SWIG_AsInt(obj2);
22411 if (PyErr_Occurred()) SWIG_fail;
22412 {
22413 PyThreadState* __tstate = wxPyBeginAllowThreads();
22414 (arg1)->SetImageList(arg2,arg3);
22415
22416 wxPyEndAllowThreads(__tstate);
22417 if (PyErr_Occurred()) SWIG_fail;
22418 }
22419 Py_INCREF(Py_None); resultobj = Py_None;
22420 return resultobj;
22421 fail:
22422 return NULL;
22423 }
22424
22425
22426 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22427 PyObject *resultobj;
22428 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22429 wxImageList *arg2 = (wxImageList *) 0 ;
22430 int arg3 ;
22431 PyObject * obj0 = 0 ;
22432 PyObject * obj1 = 0 ;
22433 PyObject * obj2 = 0 ;
22434 char *kwnames[] = {
22435 (char *) "self",(char *) "imageList",(char *) "which", NULL
22436 };
22437
22438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22441 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22442 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22443 arg3 = (int) SWIG_AsInt(obj2);
22444 if (PyErr_Occurred()) SWIG_fail;
22445 {
22446 PyThreadState* __tstate = wxPyBeginAllowThreads();
22447 (arg1)->AssignImageList(arg2,arg3);
22448
22449 wxPyEndAllowThreads(__tstate);
22450 if (PyErr_Occurred()) SWIG_fail;
22451 }
22452 Py_INCREF(Py_None); resultobj = Py_None;
22453 return resultobj;
22454 fail:
22455 return NULL;
22456 }
22457
22458
22459 static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) {
22460 PyObject *resultobj;
22461 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22462 bool result;
22463 PyObject * obj0 = 0 ;
22464 char *kwnames[] = {
22465 (char *) "self", NULL
22466 };
22467
22468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22471 {
22472 PyThreadState* __tstate = wxPyBeginAllowThreads();
22473 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22474
22475 wxPyEndAllowThreads(__tstate);
22476 if (PyErr_Occurred()) SWIG_fail;
22477 }
22478 {
22479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22480 }
22481 return resultobj;
22482 fail:
22483 return NULL;
22484 }
22485
22486
22487 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
22488 PyObject *resultobj;
22489 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22490 bool result;
22491 PyObject * obj0 = 0 ;
22492 char *kwnames[] = {
22493 (char *) "self", NULL
22494 };
22495
22496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22499 {
22500 PyThreadState* __tstate = wxPyBeginAllowThreads();
22501 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22502
22503 wxPyEndAllowThreads(__tstate);
22504 if (PyErr_Occurred()) SWIG_fail;
22505 }
22506 {
22507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22508 }
22509 return resultobj;
22510 fail:
22511 return NULL;
22512 }
22513
22514
22515 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22516 PyObject *resultobj;
22517 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22518 long arg2 ;
22519 PyObject * obj0 = 0 ;
22520 PyObject * obj1 = 0 ;
22521 char *kwnames[] = {
22522 (char *) "self",(char *) "item", NULL
22523 };
22524
22525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22528 arg2 = (long) SWIG_AsLong(obj1);
22529 if (PyErr_Occurred()) SWIG_fail;
22530 {
22531 PyThreadState* __tstate = wxPyBeginAllowThreads();
22532 (arg1)->RefreshItem(arg2);
22533
22534 wxPyEndAllowThreads(__tstate);
22535 if (PyErr_Occurred()) SWIG_fail;
22536 }
22537 Py_INCREF(Py_None); resultobj = Py_None;
22538 return resultobj;
22539 fail:
22540 return NULL;
22541 }
22542
22543
22544 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22545 PyObject *resultobj;
22546 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22547 long arg2 ;
22548 long arg3 ;
22549 PyObject * obj0 = 0 ;
22550 PyObject * obj1 = 0 ;
22551 PyObject * obj2 = 0 ;
22552 char *kwnames[] = {
22553 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22554 };
22555
22556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22559 arg2 = (long) SWIG_AsLong(obj1);
22560 if (PyErr_Occurred()) SWIG_fail;
22561 arg3 = (long) SWIG_AsLong(obj2);
22562 if (PyErr_Occurred()) SWIG_fail;
22563 {
22564 PyThreadState* __tstate = wxPyBeginAllowThreads();
22565 (arg1)->RefreshItems(arg2,arg3);
22566
22567 wxPyEndAllowThreads(__tstate);
22568 if (PyErr_Occurred()) SWIG_fail;
22569 }
22570 Py_INCREF(Py_None); resultobj = Py_None;
22571 return resultobj;
22572 fail:
22573 return NULL;
22574 }
22575
22576
22577 static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
22578 PyObject *resultobj;
22579 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22580 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22581 bool result;
22582 PyObject * obj0 = 0 ;
22583 PyObject * obj1 = 0 ;
22584 char *kwnames[] = {
22585 (char *) "self",(char *) "flag", NULL
22586 };
22587
22588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22591 if (obj1) {
22592 arg2 = (int) SWIG_AsInt(obj1);
22593 if (PyErr_Occurred()) SWIG_fail;
22594 }
22595 {
22596 PyThreadState* __tstate = wxPyBeginAllowThreads();
22597 result = (bool)(arg1)->Arrange(arg2);
22598
22599 wxPyEndAllowThreads(__tstate);
22600 if (PyErr_Occurred()) SWIG_fail;
22601 }
22602 {
22603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22604 }
22605 return resultobj;
22606 fail:
22607 return NULL;
22608 }
22609
22610
22611 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22612 PyObject *resultobj;
22613 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22614 long arg2 ;
22615 bool result;
22616 PyObject * obj0 = 0 ;
22617 PyObject * obj1 = 0 ;
22618 char *kwnames[] = {
22619 (char *) "self",(char *) "item", NULL
22620 };
22621
22622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22625 arg2 = (long) SWIG_AsLong(obj1);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 {
22628 PyThreadState* __tstate = wxPyBeginAllowThreads();
22629 result = (bool)(arg1)->DeleteItem(arg2);
22630
22631 wxPyEndAllowThreads(__tstate);
22632 if (PyErr_Occurred()) SWIG_fail;
22633 }
22634 {
22635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22636 }
22637 return resultobj;
22638 fail:
22639 return NULL;
22640 }
22641
22642
22643 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22644 PyObject *resultobj;
22645 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22646 bool result;
22647 PyObject * obj0 = 0 ;
22648 char *kwnames[] = {
22649 (char *) "self", NULL
22650 };
22651
22652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22655 {
22656 PyThreadState* __tstate = wxPyBeginAllowThreads();
22657 result = (bool)(arg1)->DeleteAllItems();
22658
22659 wxPyEndAllowThreads(__tstate);
22660 if (PyErr_Occurred()) SWIG_fail;
22661 }
22662 {
22663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22664 }
22665 return resultobj;
22666 fail:
22667 return NULL;
22668 }
22669
22670
22671 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22672 PyObject *resultobj;
22673 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22674 int arg2 ;
22675 bool result;
22676 PyObject * obj0 = 0 ;
22677 PyObject * obj1 = 0 ;
22678 char *kwnames[] = {
22679 (char *) "self",(char *) "col", NULL
22680 };
22681
22682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22685 arg2 = (int) SWIG_AsInt(obj1);
22686 if (PyErr_Occurred()) SWIG_fail;
22687 {
22688 PyThreadState* __tstate = wxPyBeginAllowThreads();
22689 result = (bool)(arg1)->DeleteColumn(arg2);
22690
22691 wxPyEndAllowThreads(__tstate);
22692 if (PyErr_Occurred()) SWIG_fail;
22693 }
22694 {
22695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22696 }
22697 return resultobj;
22698 fail:
22699 return NULL;
22700 }
22701
22702
22703 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
22704 PyObject *resultobj;
22705 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22706 bool result;
22707 PyObject * obj0 = 0 ;
22708 char *kwnames[] = {
22709 (char *) "self", NULL
22710 };
22711
22712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
22713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22715 {
22716 PyThreadState* __tstate = wxPyBeginAllowThreads();
22717 result = (bool)(arg1)->DeleteAllColumns();
22718
22719 wxPyEndAllowThreads(__tstate);
22720 if (PyErr_Occurred()) SWIG_fail;
22721 }
22722 {
22723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22724 }
22725 return resultobj;
22726 fail:
22727 return NULL;
22728 }
22729
22730
22731 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
22732 PyObject *resultobj;
22733 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22734 PyObject * obj0 = 0 ;
22735 char *kwnames[] = {
22736 (char *) "self", NULL
22737 };
22738
22739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
22740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22742 {
22743 PyThreadState* __tstate = wxPyBeginAllowThreads();
22744 (arg1)->ClearAll();
22745
22746 wxPyEndAllowThreads(__tstate);
22747 if (PyErr_Occurred()) SWIG_fail;
22748 }
22749 Py_INCREF(Py_None); resultobj = Py_None;
22750 return resultobj;
22751 fail:
22752 return NULL;
22753 }
22754
22755
22756 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
22757 PyObject *resultobj;
22758 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22759 long arg2 ;
22760 wxTextCtrl *result;
22761 PyObject * obj0 = 0 ;
22762 PyObject * obj1 = 0 ;
22763 char *kwnames[] = {
22764 (char *) "self",(char *) "item", NULL
22765 };
22766
22767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
22768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22770 arg2 = (long) SWIG_AsLong(obj1);
22771 if (PyErr_Occurred()) SWIG_fail;
22772 {
22773 PyThreadState* __tstate = wxPyBeginAllowThreads();
22774 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
22775
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 {
22780 resultobj = wxPyMake_wxObject(result);
22781 }
22782 return resultobj;
22783 fail:
22784 return NULL;
22785 }
22786
22787
22788 static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
22789 PyObject *resultobj;
22790 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22791 bool arg2 ;
22792 bool result;
22793 PyObject * obj0 = 0 ;
22794 PyObject * obj1 = 0 ;
22795 char *kwnames[] = {
22796 (char *) "self",(char *) "cancel", NULL
22797 };
22798
22799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail;
22800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22802 arg2 = (bool) SWIG_AsBool(obj1);
22803 if (PyErr_Occurred()) SWIG_fail;
22804 {
22805 PyThreadState* __tstate = wxPyBeginAllowThreads();
22806 result = (bool)(arg1)->EndEditLabel(arg2);
22807
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 {
22812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22813 }
22814 return resultobj;
22815 fail:
22816 return NULL;
22817 }
22818
22819
22820 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
22821 PyObject *resultobj;
22822 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22823 long arg2 ;
22824 bool result;
22825 PyObject * obj0 = 0 ;
22826 PyObject * obj1 = 0 ;
22827 char *kwnames[] = {
22828 (char *) "self",(char *) "item", NULL
22829 };
22830
22831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
22832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22834 arg2 = (long) SWIG_AsLong(obj1);
22835 if (PyErr_Occurred()) SWIG_fail;
22836 {
22837 PyThreadState* __tstate = wxPyBeginAllowThreads();
22838 result = (bool)(arg1)->EnsureVisible(arg2);
22839
22840 wxPyEndAllowThreads(__tstate);
22841 if (PyErr_Occurred()) SWIG_fail;
22842 }
22843 {
22844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22845 }
22846 return resultobj;
22847 fail:
22848 return NULL;
22849 }
22850
22851
22852 static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22853 PyObject *resultobj;
22854 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22855 long arg2 ;
22856 wxString *arg3 = 0 ;
22857 bool arg4 = (bool) False ;
22858 long result;
22859 bool temp3 = False ;
22860 PyObject * obj0 = 0 ;
22861 PyObject * obj1 = 0 ;
22862 PyObject * obj2 = 0 ;
22863 PyObject * obj3 = 0 ;
22864 char *kwnames[] = {
22865 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
22866 };
22867
22868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22871 arg2 = (long) SWIG_AsLong(obj1);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 {
22874 arg3 = wxString_in_helper(obj2);
22875 if (arg3 == NULL) SWIG_fail;
22876 temp3 = True;
22877 }
22878 if (obj3) {
22879 arg4 = (bool) SWIG_AsBool(obj3);
22880 if (PyErr_Occurred()) SWIG_fail;
22881 }
22882 {
22883 PyThreadState* __tstate = wxPyBeginAllowThreads();
22884 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
22885
22886 wxPyEndAllowThreads(__tstate);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 }
22889 resultobj = SWIG_FromLong((long)result);
22890 {
22891 if (temp3)
22892 delete arg3;
22893 }
22894 return resultobj;
22895 fail:
22896 {
22897 if (temp3)
22898 delete arg3;
22899 }
22900 return NULL;
22901 }
22902
22903
22904 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
22905 PyObject *resultobj;
22906 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22907 long arg2 ;
22908 long arg3 ;
22909 long result;
22910 PyObject * obj0 = 0 ;
22911 PyObject * obj1 = 0 ;
22912 PyObject * obj2 = 0 ;
22913 char *kwnames[] = {
22914 (char *) "self",(char *) "start",(char *) "data", NULL
22915 };
22916
22917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22920 arg2 = (long) SWIG_AsLong(obj1);
22921 if (PyErr_Occurred()) SWIG_fail;
22922 arg3 = (long) SWIG_AsLong(obj2);
22923 if (PyErr_Occurred()) SWIG_fail;
22924 {
22925 PyThreadState* __tstate = wxPyBeginAllowThreads();
22926 result = (long)(arg1)->FindItem(arg2,arg3);
22927
22928 wxPyEndAllowThreads(__tstate);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 }
22931 resultobj = SWIG_FromLong((long)result);
22932 return resultobj;
22933 fail:
22934 return NULL;
22935 }
22936
22937
22938 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
22939 PyObject *resultobj;
22940 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22941 long arg2 ;
22942 wxPoint *arg3 = 0 ;
22943 int arg4 ;
22944 long result;
22945 wxPoint temp3 ;
22946 PyObject * obj0 = 0 ;
22947 PyObject * obj1 = 0 ;
22948 PyObject * obj2 = 0 ;
22949 PyObject * obj3 = 0 ;
22950 char *kwnames[] = {
22951 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
22952 };
22953
22954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22957 arg2 = (long) SWIG_AsLong(obj1);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 {
22960 arg3 = &temp3;
22961 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22962 }
22963 arg4 = (int) SWIG_AsInt(obj3);
22964 if (PyErr_Occurred()) SWIG_fail;
22965 {
22966 PyThreadState* __tstate = wxPyBeginAllowThreads();
22967 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
22968
22969 wxPyEndAllowThreads(__tstate);
22970 if (PyErr_Occurred()) SWIG_fail;
22971 }
22972 resultobj = SWIG_FromLong((long)result);
22973 return resultobj;
22974 fail:
22975 return NULL;
22976 }
22977
22978
22979 static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
22980 PyObject *resultobj;
22981 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22982 wxPoint *arg2 = 0 ;
22983 int *arg3 = 0 ;
22984 long result;
22985 wxPoint temp2 ;
22986 int temp3 ;
22987 PyObject * obj0 = 0 ;
22988 PyObject * obj1 = 0 ;
22989 char *kwnames[] = {
22990 (char *) "self",(char *) "point", NULL
22991 };
22992
22993 arg3 = &temp3;
22994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
22995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22997 {
22998 arg2 = &temp2;
22999 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23000 }
23001 {
23002 PyThreadState* __tstate = wxPyBeginAllowThreads();
23003 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23004
23005 wxPyEndAllowThreads(__tstate);
23006 if (PyErr_Occurred()) SWIG_fail;
23007 }
23008 resultobj = SWIG_FromLong((long)result);
23009 {
23010 PyObject *o = PyInt_FromLong((long) (*arg3));
23011 resultobj = t_output_helper(resultobj,o);
23012 }
23013 return resultobj;
23014 fail:
23015 return NULL;
23016 }
23017
23018
23019 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23020 PyObject *resultobj;
23021 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23022 wxListItem *arg2 = 0 ;
23023 long result;
23024 PyObject * obj0 = 0 ;
23025 PyObject * obj1 = 0 ;
23026 char *kwnames[] = {
23027 (char *) "self",(char *) "info", NULL
23028 };
23029
23030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23033 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23034 SWIG_POINTER_EXCEPTION | 0)) == -1)
23035 SWIG_fail;
23036 if (arg2 == NULL) {
23037 PyErr_SetString(PyExc_TypeError,"null reference");
23038 SWIG_fail;
23039 }
23040 {
23041 PyThreadState* __tstate = wxPyBeginAllowThreads();
23042 result = (long)(arg1)->InsertItem(*arg2);
23043
23044 wxPyEndAllowThreads(__tstate);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 }
23047 resultobj = SWIG_FromLong((long)result);
23048 return resultobj;
23049 fail:
23050 return NULL;
23051 }
23052
23053
23054 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23055 PyObject *resultobj;
23056 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23057 long arg2 ;
23058 wxString *arg3 = 0 ;
23059 long result;
23060 bool temp3 = False ;
23061 PyObject * obj0 = 0 ;
23062 PyObject * obj1 = 0 ;
23063 PyObject * obj2 = 0 ;
23064 char *kwnames[] = {
23065 (char *) "self",(char *) "index",(char *) "label", NULL
23066 };
23067
23068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23071 arg2 = (long) SWIG_AsLong(obj1);
23072 if (PyErr_Occurred()) SWIG_fail;
23073 {
23074 arg3 = wxString_in_helper(obj2);
23075 if (arg3 == NULL) SWIG_fail;
23076 temp3 = True;
23077 }
23078 {
23079 PyThreadState* __tstate = wxPyBeginAllowThreads();
23080 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23081
23082 wxPyEndAllowThreads(__tstate);
23083 if (PyErr_Occurred()) SWIG_fail;
23084 }
23085 resultobj = SWIG_FromLong((long)result);
23086 {
23087 if (temp3)
23088 delete arg3;
23089 }
23090 return resultobj;
23091 fail:
23092 {
23093 if (temp3)
23094 delete arg3;
23095 }
23096 return NULL;
23097 }
23098
23099
23100 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23101 PyObject *resultobj;
23102 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23103 long arg2 ;
23104 int arg3 ;
23105 long result;
23106 PyObject * obj0 = 0 ;
23107 PyObject * obj1 = 0 ;
23108 PyObject * obj2 = 0 ;
23109 char *kwnames[] = {
23110 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23111 };
23112
23113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23116 arg2 = (long) SWIG_AsLong(obj1);
23117 if (PyErr_Occurred()) SWIG_fail;
23118 arg3 = (int) SWIG_AsInt(obj2);
23119 if (PyErr_Occurred()) SWIG_fail;
23120 {
23121 PyThreadState* __tstate = wxPyBeginAllowThreads();
23122 result = (long)(arg1)->InsertItem(arg2,arg3);
23123
23124 wxPyEndAllowThreads(__tstate);
23125 if (PyErr_Occurred()) SWIG_fail;
23126 }
23127 resultobj = SWIG_FromLong((long)result);
23128 return resultobj;
23129 fail:
23130 return NULL;
23131 }
23132
23133
23134 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23135 PyObject *resultobj;
23136 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23137 long arg2 ;
23138 wxString *arg3 = 0 ;
23139 int arg4 ;
23140 long result;
23141 bool temp3 = False ;
23142 PyObject * obj0 = 0 ;
23143 PyObject * obj1 = 0 ;
23144 PyObject * obj2 = 0 ;
23145 PyObject * obj3 = 0 ;
23146 char *kwnames[] = {
23147 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23148 };
23149
23150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23153 arg2 = (long) SWIG_AsLong(obj1);
23154 if (PyErr_Occurred()) SWIG_fail;
23155 {
23156 arg3 = wxString_in_helper(obj2);
23157 if (arg3 == NULL) SWIG_fail;
23158 temp3 = True;
23159 }
23160 arg4 = (int) SWIG_AsInt(obj3);
23161 if (PyErr_Occurred()) SWIG_fail;
23162 {
23163 PyThreadState* __tstate = wxPyBeginAllowThreads();
23164 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23165
23166 wxPyEndAllowThreads(__tstate);
23167 if (PyErr_Occurred()) SWIG_fail;
23168 }
23169 resultobj = SWIG_FromLong((long)result);
23170 {
23171 if (temp3)
23172 delete arg3;
23173 }
23174 return resultobj;
23175 fail:
23176 {
23177 if (temp3)
23178 delete arg3;
23179 }
23180 return NULL;
23181 }
23182
23183
23184 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23185 PyObject *resultobj;
23186 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23187 long arg2 ;
23188 wxListItem *arg3 = 0 ;
23189 long result;
23190 PyObject * obj0 = 0 ;
23191 PyObject * obj1 = 0 ;
23192 PyObject * obj2 = 0 ;
23193 char *kwnames[] = {
23194 (char *) "self",(char *) "col",(char *) "info", NULL
23195 };
23196
23197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23200 arg2 = (long) SWIG_AsLong(obj1);
23201 if (PyErr_Occurred()) SWIG_fail;
23202 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23203 SWIG_POINTER_EXCEPTION | 0)) == -1)
23204 SWIG_fail;
23205 if (arg3 == NULL) {
23206 PyErr_SetString(PyExc_TypeError,"null reference");
23207 SWIG_fail;
23208 }
23209 {
23210 PyThreadState* __tstate = wxPyBeginAllowThreads();
23211 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23212
23213 wxPyEndAllowThreads(__tstate);
23214 if (PyErr_Occurred()) SWIG_fail;
23215 }
23216 resultobj = SWIG_FromLong((long)result);
23217 return resultobj;
23218 fail:
23219 return NULL;
23220 }
23221
23222
23223 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
23224 PyObject *resultobj;
23225 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23226 long arg2 ;
23227 wxString *arg3 = 0 ;
23228 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23229 int arg5 = (int) -1 ;
23230 long result;
23231 bool temp3 = False ;
23232 PyObject * obj0 = 0 ;
23233 PyObject * obj1 = 0 ;
23234 PyObject * obj2 = 0 ;
23235 PyObject * obj3 = 0 ;
23236 PyObject * obj4 = 0 ;
23237 char *kwnames[] = {
23238 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23239 };
23240
23241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23244 arg2 = (long) SWIG_AsLong(obj1);
23245 if (PyErr_Occurred()) SWIG_fail;
23246 {
23247 arg3 = wxString_in_helper(obj2);
23248 if (arg3 == NULL) SWIG_fail;
23249 temp3 = True;
23250 }
23251 if (obj3) {
23252 arg4 = (int) SWIG_AsInt(obj3);
23253 if (PyErr_Occurred()) SWIG_fail;
23254 }
23255 if (obj4) {
23256 arg5 = (int) SWIG_AsInt(obj4);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 {
23260 PyThreadState* __tstate = wxPyBeginAllowThreads();
23261 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23262
23263 wxPyEndAllowThreads(__tstate);
23264 if (PyErr_Occurred()) SWIG_fail;
23265 }
23266 resultobj = SWIG_FromLong((long)result);
23267 {
23268 if (temp3)
23269 delete arg3;
23270 }
23271 return resultobj;
23272 fail:
23273 {
23274 if (temp3)
23275 delete arg3;
23276 }
23277 return NULL;
23278 }
23279
23280
23281 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23282 PyObject *resultobj;
23283 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23284 long arg2 ;
23285 PyObject * obj0 = 0 ;
23286 PyObject * obj1 = 0 ;
23287 char *kwnames[] = {
23288 (char *) "self",(char *) "count", NULL
23289 };
23290
23291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23294 arg2 = (long) SWIG_AsLong(obj1);
23295 if (PyErr_Occurred()) SWIG_fail;
23296 {
23297 PyThreadState* __tstate = wxPyBeginAllowThreads();
23298 (arg1)->SetItemCount(arg2);
23299
23300 wxPyEndAllowThreads(__tstate);
23301 if (PyErr_Occurred()) SWIG_fail;
23302 }
23303 Py_INCREF(Py_None); resultobj = Py_None;
23304 return resultobj;
23305 fail:
23306 return NULL;
23307 }
23308
23309
23310 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
23311 PyObject *resultobj;
23312 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23313 int arg2 ;
23314 int arg3 ;
23315 bool result;
23316 PyObject * obj0 = 0 ;
23317 PyObject * obj1 = 0 ;
23318 PyObject * obj2 = 0 ;
23319 char *kwnames[] = {
23320 (char *) "self",(char *) "dx",(char *) "dy", NULL
23321 };
23322
23323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23326 arg2 = (int) SWIG_AsInt(obj1);
23327 if (PyErr_Occurred()) SWIG_fail;
23328 arg3 = (int) SWIG_AsInt(obj2);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 {
23331 PyThreadState* __tstate = wxPyBeginAllowThreads();
23332 result = (bool)(arg1)->ScrollList(arg2,arg3);
23333
23334 wxPyEndAllowThreads(__tstate);
23335 if (PyErr_Occurred()) SWIG_fail;
23336 }
23337 {
23338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23339 }
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23347 PyObject *resultobj;
23348 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23349 long arg2 ;
23350 wxColour *arg3 = 0 ;
23351 wxColour temp3 ;
23352 PyObject * obj0 = 0 ;
23353 PyObject * obj1 = 0 ;
23354 PyObject * obj2 = 0 ;
23355 char *kwnames[] = {
23356 (char *) "self",(char *) "item",(char *) "col", NULL
23357 };
23358
23359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23362 arg2 = (long) SWIG_AsLong(obj1);
23363 if (PyErr_Occurred()) SWIG_fail;
23364 {
23365 arg3 = &temp3;
23366 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23367 }
23368 {
23369 PyThreadState* __tstate = wxPyBeginAllowThreads();
23370 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23371
23372 wxPyEndAllowThreads(__tstate);
23373 if (PyErr_Occurred()) SWIG_fail;
23374 }
23375 Py_INCREF(Py_None); resultobj = Py_None;
23376 return resultobj;
23377 fail:
23378 return NULL;
23379 }
23380
23381
23382 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23383 PyObject *resultobj;
23384 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23385 long arg2 ;
23386 wxColour result;
23387 PyObject * obj0 = 0 ;
23388 PyObject * obj1 = 0 ;
23389 char *kwnames[] = {
23390 (char *) "self",(char *) "item", NULL
23391 };
23392
23393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23396 arg2 = (long) SWIG_AsLong(obj1);
23397 if (PyErr_Occurred()) SWIG_fail;
23398 {
23399 PyThreadState* __tstate = wxPyBeginAllowThreads();
23400 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23401
23402 wxPyEndAllowThreads(__tstate);
23403 if (PyErr_Occurred()) SWIG_fail;
23404 }
23405 {
23406 wxColour * resultptr;
23407 resultptr = new wxColour((wxColour &) result);
23408 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23409 }
23410 return resultobj;
23411 fail:
23412 return NULL;
23413 }
23414
23415
23416 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23417 PyObject *resultobj;
23418 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23419 long arg2 ;
23420 wxColour *arg3 = 0 ;
23421 wxColour temp3 ;
23422 PyObject * obj0 = 0 ;
23423 PyObject * obj1 = 0 ;
23424 PyObject * obj2 = 0 ;
23425 char *kwnames[] = {
23426 (char *) "self",(char *) "item",(char *) "col", NULL
23427 };
23428
23429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23432 arg2 = (long) SWIG_AsLong(obj1);
23433 if (PyErr_Occurred()) SWIG_fail;
23434 {
23435 arg3 = &temp3;
23436 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23437 }
23438 {
23439 PyThreadState* __tstate = wxPyBeginAllowThreads();
23440 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23441
23442 wxPyEndAllowThreads(__tstate);
23443 if (PyErr_Occurred()) SWIG_fail;
23444 }
23445 Py_INCREF(Py_None); resultobj = Py_None;
23446 return resultobj;
23447 fail:
23448 return NULL;
23449 }
23450
23451
23452 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23453 PyObject *resultobj;
23454 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23455 long arg2 ;
23456 wxColour result;
23457 PyObject * obj0 = 0 ;
23458 PyObject * obj1 = 0 ;
23459 char *kwnames[] = {
23460 (char *) "self",(char *) "item", NULL
23461 };
23462
23463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23466 arg2 = (long) SWIG_AsLong(obj1);
23467 if (PyErr_Occurred()) SWIG_fail;
23468 {
23469 PyThreadState* __tstate = wxPyBeginAllowThreads();
23470 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23471
23472 wxPyEndAllowThreads(__tstate);
23473 if (PyErr_Occurred()) SWIG_fail;
23474 }
23475 {
23476 wxColour * resultptr;
23477 resultptr = new wxColour((wxColour &) result);
23478 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23479 }
23480 return resultobj;
23481 fail:
23482 return NULL;
23483 }
23484
23485
23486 static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
23487 PyObject *resultobj;
23488 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23489 PyObject *arg2 = (PyObject *) 0 ;
23490 bool result;
23491 PyObject * obj0 = 0 ;
23492 PyObject * obj1 = 0 ;
23493 char *kwnames[] = {
23494 (char *) "self",(char *) "func", NULL
23495 };
23496
23497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23500 arg2 = obj1;
23501 {
23502 PyThreadState* __tstate = wxPyBeginAllowThreads();
23503 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23504
23505 wxPyEndAllowThreads(__tstate);
23506 if (PyErr_Occurred()) SWIG_fail;
23507 }
23508 {
23509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23510 }
23511 return resultobj;
23512 fail:
23513 return NULL;
23514 }
23515
23516
23517 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
23518 PyObject *resultobj;
23519 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23520 wxWindow *result;
23521 PyObject * obj0 = 0 ;
23522 char *kwnames[] = {
23523 (char *) "self", NULL
23524 };
23525
23526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23529 {
23530 PyThreadState* __tstate = wxPyBeginAllowThreads();
23531 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23532
23533 wxPyEndAllowThreads(__tstate);
23534 if (PyErr_Occurred()) SWIG_fail;
23535 }
23536 {
23537 resultobj = wxPyMake_wxObject(result);
23538 }
23539 return resultobj;
23540 fail:
23541 return NULL;
23542 }
23543
23544
23545 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
23546 PyObject *resultobj;
23547 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23548 wxVisualAttributes result;
23549 PyObject * obj0 = 0 ;
23550 char *kwnames[] = {
23551 (char *) "variant", NULL
23552 };
23553
23554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23555 if (obj0) {
23556 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
23557 if (PyErr_Occurred()) SWIG_fail;
23558 }
23559 {
23560 PyThreadState* __tstate = wxPyBeginAllowThreads();
23561 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23562
23563 wxPyEndAllowThreads(__tstate);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 }
23566 {
23567 wxVisualAttributes * resultptr;
23568 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23569 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23570 }
23571 return resultobj;
23572 fail:
23573 return NULL;
23574 }
23575
23576
23577 static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
23578 PyObject *obj;
23579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23580 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23581 Py_INCREF(obj);
23582 return Py_BuildValue((char *)"");
23583 }
23584 static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23585 PyObject *resultobj;
23586 wxWindow *arg1 = (wxWindow *) 0 ;
23587 int arg2 = (int) -1 ;
23588 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23589 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23590 wxSize const &arg4_defvalue = wxDefaultSize ;
23591 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23592 long arg5 = (long) wxLC_REPORT ;
23593 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23594 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23595 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23596 wxString *arg7 = (wxString *) &arg7_defvalue ;
23597 wxListView *result;
23598 wxPoint temp3 ;
23599 wxSize temp4 ;
23600 bool temp7 = False ;
23601 PyObject * obj0 = 0 ;
23602 PyObject * obj1 = 0 ;
23603 PyObject * obj2 = 0 ;
23604 PyObject * obj3 = 0 ;
23605 PyObject * obj4 = 0 ;
23606 PyObject * obj5 = 0 ;
23607 PyObject * obj6 = 0 ;
23608 char *kwnames[] = {
23609 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23610 };
23611
23612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23615 if (obj1) {
23616 arg2 = (int) SWIG_AsInt(obj1);
23617 if (PyErr_Occurred()) SWIG_fail;
23618 }
23619 if (obj2) {
23620 {
23621 arg3 = &temp3;
23622 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23623 }
23624 }
23625 if (obj3) {
23626 {
23627 arg4 = &temp4;
23628 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23629 }
23630 }
23631 if (obj4) {
23632 arg5 = (long) SWIG_AsLong(obj4);
23633 if (PyErr_Occurred()) SWIG_fail;
23634 }
23635 if (obj5) {
23636 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23637 SWIG_POINTER_EXCEPTION | 0)) == -1)
23638 SWIG_fail;
23639 if (arg6 == NULL) {
23640 PyErr_SetString(PyExc_TypeError,"null reference");
23641 SWIG_fail;
23642 }
23643 }
23644 if (obj6) {
23645 {
23646 arg7 = wxString_in_helper(obj6);
23647 if (arg7 == NULL) SWIG_fail;
23648 temp7 = True;
23649 }
23650 }
23651 {
23652 PyThreadState* __tstate = wxPyBeginAllowThreads();
23653 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23654
23655 wxPyEndAllowThreads(__tstate);
23656 if (PyErr_Occurred()) SWIG_fail;
23657 }
23658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23659 {
23660 if (temp7)
23661 delete arg7;
23662 }
23663 return resultobj;
23664 fail:
23665 {
23666 if (temp7)
23667 delete arg7;
23668 }
23669 return NULL;
23670 }
23671
23672
23673 static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23674 PyObject *resultobj;
23675 wxListView *result;
23676 char *kwnames[] = {
23677 NULL
23678 };
23679
23680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23681 {
23682 PyThreadState* __tstate = wxPyBeginAllowThreads();
23683 result = (wxListView *)new wxListView();
23684
23685 wxPyEndAllowThreads(__tstate);
23686 if (PyErr_Occurred()) SWIG_fail;
23687 }
23688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23689 return resultobj;
23690 fail:
23691 return NULL;
23692 }
23693
23694
23695 static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23696 PyObject *resultobj;
23697 wxListView *arg1 = (wxListView *) 0 ;
23698 wxWindow *arg2 = (wxWindow *) 0 ;
23699 int arg3 = (int) -1 ;
23700 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23701 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23702 wxSize const &arg5_defvalue = wxDefaultSize ;
23703 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23704 long arg6 = (long) wxLC_REPORT ;
23705 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23706 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23707 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
23708 wxString *arg8 = (wxString *) &arg8_defvalue ;
23709 bool result;
23710 wxPoint temp4 ;
23711 wxSize temp5 ;
23712 bool temp8 = False ;
23713 PyObject * obj0 = 0 ;
23714 PyObject * obj1 = 0 ;
23715 PyObject * obj2 = 0 ;
23716 PyObject * obj3 = 0 ;
23717 PyObject * obj4 = 0 ;
23718 PyObject * obj5 = 0 ;
23719 PyObject * obj6 = 0 ;
23720 PyObject * obj7 = 0 ;
23721 char *kwnames[] = {
23722 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23723 };
23724
23725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23728 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23730 if (obj2) {
23731 arg3 = (int) SWIG_AsInt(obj2);
23732 if (PyErr_Occurred()) SWIG_fail;
23733 }
23734 if (obj3) {
23735 {
23736 arg4 = &temp4;
23737 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23738 }
23739 }
23740 if (obj4) {
23741 {
23742 arg5 = &temp5;
23743 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23744 }
23745 }
23746 if (obj5) {
23747 arg6 = (long) SWIG_AsLong(obj5);
23748 if (PyErr_Occurred()) SWIG_fail;
23749 }
23750 if (obj6) {
23751 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23752 SWIG_POINTER_EXCEPTION | 0)) == -1)
23753 SWIG_fail;
23754 if (arg7 == NULL) {
23755 PyErr_SetString(PyExc_TypeError,"null reference");
23756 SWIG_fail;
23757 }
23758 }
23759 if (obj7) {
23760 {
23761 arg8 = wxString_in_helper(obj7);
23762 if (arg8 == NULL) SWIG_fail;
23763 temp8 = True;
23764 }
23765 }
23766 {
23767 PyThreadState* __tstate = wxPyBeginAllowThreads();
23768 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23769
23770 wxPyEndAllowThreads(__tstate);
23771 if (PyErr_Occurred()) SWIG_fail;
23772 }
23773 {
23774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23775 }
23776 {
23777 if (temp8)
23778 delete arg8;
23779 }
23780 return resultobj;
23781 fail:
23782 {
23783 if (temp8)
23784 delete arg8;
23785 }
23786 return NULL;
23787 }
23788
23789
23790 static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
23791 PyObject *resultobj;
23792 wxListView *arg1 = (wxListView *) 0 ;
23793 long arg2 ;
23794 bool arg3 = (bool) True ;
23795 PyObject * obj0 = 0 ;
23796 PyObject * obj1 = 0 ;
23797 PyObject * obj2 = 0 ;
23798 char *kwnames[] = {
23799 (char *) "self",(char *) "n",(char *) "on", NULL
23800 };
23801
23802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
23803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23805 arg2 = (long) SWIG_AsLong(obj1);
23806 if (PyErr_Occurred()) SWIG_fail;
23807 if (obj2) {
23808 arg3 = (bool) SWIG_AsBool(obj2);
23809 if (PyErr_Occurred()) SWIG_fail;
23810 }
23811 {
23812 PyThreadState* __tstate = wxPyBeginAllowThreads();
23813 (arg1)->Select(arg2,arg3);
23814
23815 wxPyEndAllowThreads(__tstate);
23816 if (PyErr_Occurred()) SWIG_fail;
23817 }
23818 Py_INCREF(Py_None); resultobj = Py_None;
23819 return resultobj;
23820 fail:
23821 return NULL;
23822 }
23823
23824
23825 static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
23826 PyObject *resultobj;
23827 wxListView *arg1 = (wxListView *) 0 ;
23828 long arg2 ;
23829 PyObject * obj0 = 0 ;
23830 PyObject * obj1 = 0 ;
23831 char *kwnames[] = {
23832 (char *) "self",(char *) "index", NULL
23833 };
23834
23835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
23836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23838 arg2 = (long) SWIG_AsLong(obj1);
23839 if (PyErr_Occurred()) SWIG_fail;
23840 {
23841 PyThreadState* __tstate = wxPyBeginAllowThreads();
23842 (arg1)->Focus(arg2);
23843
23844 wxPyEndAllowThreads(__tstate);
23845 if (PyErr_Occurred()) SWIG_fail;
23846 }
23847 Py_INCREF(Py_None); resultobj = Py_None;
23848 return resultobj;
23849 fail:
23850 return NULL;
23851 }
23852
23853
23854 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23855 PyObject *resultobj;
23856 wxListView *arg1 = (wxListView *) 0 ;
23857 long result;
23858 PyObject * obj0 = 0 ;
23859 char *kwnames[] = {
23860 (char *) "self", NULL
23861 };
23862
23863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
23864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23866 {
23867 PyThreadState* __tstate = wxPyBeginAllowThreads();
23868 result = (long)((wxListView const *)arg1)->GetFocusedItem();
23869
23870 wxPyEndAllowThreads(__tstate);
23871 if (PyErr_Occurred()) SWIG_fail;
23872 }
23873 resultobj = SWIG_FromLong((long)result);
23874 return resultobj;
23875 fail:
23876 return NULL;
23877 }
23878
23879
23880 static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23881 PyObject *resultobj;
23882 wxListView *arg1 = (wxListView *) 0 ;
23883 long arg2 ;
23884 long result;
23885 PyObject * obj0 = 0 ;
23886 PyObject * obj1 = 0 ;
23887 char *kwnames[] = {
23888 (char *) "self",(char *) "item", NULL
23889 };
23890
23891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
23892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23894 arg2 = (long) SWIG_AsLong(obj1);
23895 if (PyErr_Occurred()) SWIG_fail;
23896 {
23897 PyThreadState* __tstate = wxPyBeginAllowThreads();
23898 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
23899
23900 wxPyEndAllowThreads(__tstate);
23901 if (PyErr_Occurred()) SWIG_fail;
23902 }
23903 resultobj = SWIG_FromLong((long)result);
23904 return resultobj;
23905 fail:
23906 return NULL;
23907 }
23908
23909
23910 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23911 PyObject *resultobj;
23912 wxListView *arg1 = (wxListView *) 0 ;
23913 long result;
23914 PyObject * obj0 = 0 ;
23915 char *kwnames[] = {
23916 (char *) "self", NULL
23917 };
23918
23919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
23920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23922 {
23923 PyThreadState* __tstate = wxPyBeginAllowThreads();
23924 result = (long)((wxListView const *)arg1)->GetFirstSelected();
23925
23926 wxPyEndAllowThreads(__tstate);
23927 if (PyErr_Occurred()) SWIG_fail;
23928 }
23929 resultobj = SWIG_FromLong((long)result);
23930 return resultobj;
23931 fail:
23932 return NULL;
23933 }
23934
23935
23936 static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23937 PyObject *resultobj;
23938 wxListView *arg1 = (wxListView *) 0 ;
23939 long arg2 ;
23940 bool result;
23941 PyObject * obj0 = 0 ;
23942 PyObject * obj1 = 0 ;
23943 char *kwnames[] = {
23944 (char *) "self",(char *) "index", NULL
23945 };
23946
23947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
23948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23950 arg2 = (long) SWIG_AsLong(obj1);
23951 if (PyErr_Occurred()) SWIG_fail;
23952 {
23953 PyThreadState* __tstate = wxPyBeginAllowThreads();
23954 result = (bool)(arg1)->IsSelected(arg2);
23955
23956 wxPyEndAllowThreads(__tstate);
23957 if (PyErr_Occurred()) SWIG_fail;
23958 }
23959 {
23960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23961 }
23962 return resultobj;
23963 fail:
23964 return NULL;
23965 }
23966
23967
23968 static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23969 PyObject *resultobj;
23970 wxListView *arg1 = (wxListView *) 0 ;
23971 int arg2 ;
23972 int arg3 ;
23973 PyObject * obj0 = 0 ;
23974 PyObject * obj1 = 0 ;
23975 PyObject * obj2 = 0 ;
23976 char *kwnames[] = {
23977 (char *) "self",(char *) "col",(char *) "image", NULL
23978 };
23979
23980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
23981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23983 arg2 = (int) SWIG_AsInt(obj1);
23984 if (PyErr_Occurred()) SWIG_fail;
23985 arg3 = (int) SWIG_AsInt(obj2);
23986 if (PyErr_Occurred()) SWIG_fail;
23987 {
23988 PyThreadState* __tstate = wxPyBeginAllowThreads();
23989 (arg1)->SetColumnImage(arg2,arg3);
23990
23991 wxPyEndAllowThreads(__tstate);
23992 if (PyErr_Occurred()) SWIG_fail;
23993 }
23994 Py_INCREF(Py_None); resultobj = Py_None;
23995 return resultobj;
23996 fail:
23997 return NULL;
23998 }
23999
24000
24001 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24002 PyObject *resultobj;
24003 wxListView *arg1 = (wxListView *) 0 ;
24004 int arg2 ;
24005 PyObject * obj0 = 0 ;
24006 PyObject * obj1 = 0 ;
24007 char *kwnames[] = {
24008 (char *) "self",(char *) "col", NULL
24009 };
24010
24011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24014 arg2 = (int) SWIG_AsInt(obj1);
24015 if (PyErr_Occurred()) SWIG_fail;
24016 {
24017 PyThreadState* __tstate = wxPyBeginAllowThreads();
24018 (arg1)->ClearColumnImage(arg2);
24019
24020 wxPyEndAllowThreads(__tstate);
24021 if (PyErr_Occurred()) SWIG_fail;
24022 }
24023 Py_INCREF(Py_None); resultobj = Py_None;
24024 return resultobj;
24025 fail:
24026 return NULL;
24027 }
24028
24029
24030 static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
24031 PyObject *obj;
24032 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24033 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24034 Py_INCREF(obj);
24035 return Py_BuildValue((char *)"");
24036 }
24037 static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
24038 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24039 return 1;
24040 }
24041
24042
24043 static PyObject *_wrap_TreeCtrlNameStr_get() {
24044 PyObject *pyobj;
24045
24046 {
24047 #if wxUSE_UNICODE
24048 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24049 #else
24050 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24051 #endif
24052 }
24053 return pyobj;
24054 }
24055
24056
24057 static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
24058 PyObject *resultobj;
24059 wxTreeItemId *result;
24060 char *kwnames[] = {
24061 NULL
24062 };
24063
24064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24065 {
24066 PyThreadState* __tstate = wxPyBeginAllowThreads();
24067 result = (wxTreeItemId *)new wxTreeItemId();
24068
24069 wxPyEndAllowThreads(__tstate);
24070 if (PyErr_Occurred()) SWIG_fail;
24071 }
24072 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24073 return resultobj;
24074 fail:
24075 return NULL;
24076 }
24077
24078
24079 static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
24080 PyObject *resultobj;
24081 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24082 PyObject * obj0 = 0 ;
24083 char *kwnames[] = {
24084 (char *) "self", NULL
24085 };
24086
24087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24090 {
24091 PyThreadState* __tstate = wxPyBeginAllowThreads();
24092 delete arg1;
24093
24094 wxPyEndAllowThreads(__tstate);
24095 if (PyErr_Occurred()) SWIG_fail;
24096 }
24097 Py_INCREF(Py_None); resultobj = Py_None;
24098 return resultobj;
24099 fail:
24100 return NULL;
24101 }
24102
24103
24104 static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
24105 PyObject *resultobj;
24106 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24107 bool result;
24108 PyObject * obj0 = 0 ;
24109 char *kwnames[] = {
24110 (char *) "self", NULL
24111 };
24112
24113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24116 {
24117 PyThreadState* __tstate = wxPyBeginAllowThreads();
24118 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24119
24120 wxPyEndAllowThreads(__tstate);
24121 if (PyErr_Occurred()) SWIG_fail;
24122 }
24123 {
24124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24125 }
24126 return resultobj;
24127 fail:
24128 return NULL;
24129 }
24130
24131
24132 static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
24133 PyObject *resultobj;
24134 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24135 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24136 bool result;
24137 PyObject * obj0 = 0 ;
24138 PyObject * obj1 = 0 ;
24139 char *kwnames[] = {
24140 (char *) "self",(char *) "other", NULL
24141 };
24142
24143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24146 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24148 {
24149 PyThreadState* __tstate = wxPyBeginAllowThreads();
24150 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24151
24152 wxPyEndAllowThreads(__tstate);
24153 if (PyErr_Occurred()) SWIG_fail;
24154 }
24155 {
24156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24157 }
24158 return resultobj;
24159 fail:
24160 return NULL;
24161 }
24162
24163
24164 static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
24165 PyObject *resultobj;
24166 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24167 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24168 bool result;
24169 PyObject * obj0 = 0 ;
24170 PyObject * obj1 = 0 ;
24171 char *kwnames[] = {
24172 (char *) "self",(char *) "other", NULL
24173 };
24174
24175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24178 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24183
24184 wxPyEndAllowThreads(__tstate);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 }
24187 {
24188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24189 }
24190 return resultobj;
24191 fail:
24192 return NULL;
24193 }
24194
24195
24196 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
24197 PyObject *resultobj;
24198 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24199 void *arg2 = (void *) 0 ;
24200 PyObject * obj0 = 0 ;
24201 PyObject * obj1 = 0 ;
24202 char *kwnames[] = {
24203 (char *) "self",(char *) "m_pItem", NULL
24204 };
24205
24206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24209 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24210 if (arg1) (arg1)->m_pItem = arg2;
24211
24212 Py_INCREF(Py_None); resultobj = Py_None;
24213 return resultobj;
24214 fail:
24215 return NULL;
24216 }
24217
24218
24219 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
24220 PyObject *resultobj;
24221 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24222 void *result;
24223 PyObject * obj0 = 0 ;
24224 char *kwnames[] = {
24225 (char *) "self", NULL
24226 };
24227
24228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24231 result = (void *) ((arg1)->m_pItem);
24232
24233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24234 return resultobj;
24235 fail:
24236 return NULL;
24237 }
24238
24239
24240 static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
24241 PyObject *obj;
24242 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24243 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24244 Py_INCREF(obj);
24245 return Py_BuildValue((char *)"");
24246 }
24247 static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24248 PyObject *resultobj;
24249 PyObject *arg1 = (PyObject *) NULL ;
24250 wxPyTreeItemData *result;
24251 PyObject * obj0 = 0 ;
24252 char *kwnames[] = {
24253 (char *) "obj", NULL
24254 };
24255
24256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24257 if (obj0) {
24258 arg1 = obj0;
24259 }
24260 {
24261 PyThreadState* __tstate = wxPyBeginAllowThreads();
24262 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24263
24264 wxPyEndAllowThreads(__tstate);
24265 if (PyErr_Occurred()) SWIG_fail;
24266 }
24267 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24268 return resultobj;
24269 fail:
24270 return NULL;
24271 }
24272
24273
24274 static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24275 PyObject *resultobj;
24276 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24277 PyObject *result;
24278 PyObject * obj0 = 0 ;
24279 char *kwnames[] = {
24280 (char *) "self", NULL
24281 };
24282
24283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24286 {
24287 PyThreadState* __tstate = wxPyBeginAllowThreads();
24288 result = (PyObject *)(arg1)->GetData();
24289
24290 wxPyEndAllowThreads(__tstate);
24291 if (PyErr_Occurred()) SWIG_fail;
24292 }
24293 resultobj = result;
24294 return resultobj;
24295 fail:
24296 return NULL;
24297 }
24298
24299
24300 static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24301 PyObject *resultobj;
24302 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24303 PyObject *arg2 = (PyObject *) 0 ;
24304 PyObject * obj0 = 0 ;
24305 PyObject * obj1 = 0 ;
24306 char *kwnames[] = {
24307 (char *) "self",(char *) "obj", NULL
24308 };
24309
24310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24313 arg2 = obj1;
24314 {
24315 PyThreadState* __tstate = wxPyBeginAllowThreads();
24316 (arg1)->SetData(arg2);
24317
24318 wxPyEndAllowThreads(__tstate);
24319 if (PyErr_Occurred()) SWIG_fail;
24320 }
24321 Py_INCREF(Py_None); resultobj = Py_None;
24322 return resultobj;
24323 fail:
24324 return NULL;
24325 }
24326
24327
24328 static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24329 PyObject *resultobj;
24330 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24331 wxTreeItemId *result;
24332 PyObject * obj0 = 0 ;
24333 char *kwnames[] = {
24334 (char *) "self", NULL
24335 };
24336
24337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24340 {
24341 PyThreadState* __tstate = wxPyBeginAllowThreads();
24342 {
24343 wxTreeItemId const &_result_ref = (arg1)->GetId();
24344 result = (wxTreeItemId *) &_result_ref;
24345 }
24346
24347 wxPyEndAllowThreads(__tstate);
24348 if (PyErr_Occurred()) SWIG_fail;
24349 }
24350 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24351 return resultobj;
24352 fail:
24353 return NULL;
24354 }
24355
24356
24357 static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24358 PyObject *resultobj;
24359 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24360 wxTreeItemId *arg2 = 0 ;
24361 PyObject * obj0 = 0 ;
24362 PyObject * obj1 = 0 ;
24363 char *kwnames[] = {
24364 (char *) "self",(char *) "id", NULL
24365 };
24366
24367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24371 SWIG_POINTER_EXCEPTION | 0)) == -1)
24372 SWIG_fail;
24373 if (arg2 == NULL) {
24374 PyErr_SetString(PyExc_TypeError,"null reference");
24375 SWIG_fail;
24376 }
24377 {
24378 PyThreadState* __tstate = wxPyBeginAllowThreads();
24379 (arg1)->SetId((wxTreeItemId const &)*arg2);
24380
24381 wxPyEndAllowThreads(__tstate);
24382 if (PyErr_Occurred()) SWIG_fail;
24383 }
24384 Py_INCREF(Py_None); resultobj = Py_None;
24385 return resultobj;
24386 fail:
24387 return NULL;
24388 }
24389
24390
24391 static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
24392 PyObject *resultobj;
24393 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24394 PyObject * obj0 = 0 ;
24395 char *kwnames[] = {
24396 (char *) "self", NULL
24397 };
24398
24399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24402 {
24403 PyThreadState* __tstate = wxPyBeginAllowThreads();
24404 wxPyTreeItemData_Destroy(arg1);
24405
24406 wxPyEndAllowThreads(__tstate);
24407 if (PyErr_Occurred()) SWIG_fail;
24408 }
24409 Py_INCREF(Py_None); resultobj = Py_None;
24410 return resultobj;
24411 fail:
24412 return NULL;
24413 }
24414
24415
24416 static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
24417 PyObject *obj;
24418 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24419 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24420 Py_INCREF(obj);
24421 return Py_BuildValue((char *)"");
24422 }
24423 static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24424 PyObject *resultobj;
24425 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24426 int arg2 = (int) 0 ;
24427 wxTreeEvent *result;
24428 PyObject * obj0 = 0 ;
24429 PyObject * obj1 = 0 ;
24430 char *kwnames[] = {
24431 (char *) "commandType",(char *) "id", NULL
24432 };
24433
24434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24435 if (obj0) {
24436 arg1 = (wxEventType) SWIG_AsInt(obj0);
24437 if (PyErr_Occurred()) SWIG_fail;
24438 }
24439 if (obj1) {
24440 arg2 = (int) SWIG_AsInt(obj1);
24441 if (PyErr_Occurred()) SWIG_fail;
24442 }
24443 {
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24446
24447 wxPyEndAllowThreads(__tstate);
24448 if (PyErr_Occurred()) SWIG_fail;
24449 }
24450 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24451 return resultobj;
24452 fail:
24453 return NULL;
24454 }
24455
24456
24457 static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24458 PyObject *resultobj;
24459 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24460 wxTreeItemId result;
24461 PyObject * obj0 = 0 ;
24462 char *kwnames[] = {
24463 (char *) "self", NULL
24464 };
24465
24466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24469 {
24470 PyThreadState* __tstate = wxPyBeginAllowThreads();
24471 result = ((wxTreeEvent const *)arg1)->GetItem();
24472
24473 wxPyEndAllowThreads(__tstate);
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 {
24477 wxTreeItemId * resultptr;
24478 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24479 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24480 }
24481 return resultobj;
24482 fail:
24483 return NULL;
24484 }
24485
24486
24487 static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24488 PyObject *resultobj;
24489 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24490 wxTreeItemId *arg2 = 0 ;
24491 PyObject * obj0 = 0 ;
24492 PyObject * obj1 = 0 ;
24493 char *kwnames[] = {
24494 (char *) "self",(char *) "item", NULL
24495 };
24496
24497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24500 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24501 SWIG_POINTER_EXCEPTION | 0)) == -1)
24502 SWIG_fail;
24503 if (arg2 == NULL) {
24504 PyErr_SetString(PyExc_TypeError,"null reference");
24505 SWIG_fail;
24506 }
24507 {
24508 PyThreadState* __tstate = wxPyBeginAllowThreads();
24509 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24510
24511 wxPyEndAllowThreads(__tstate);
24512 if (PyErr_Occurred()) SWIG_fail;
24513 }
24514 Py_INCREF(Py_None); resultobj = Py_None;
24515 return resultobj;
24516 fail:
24517 return NULL;
24518 }
24519
24520
24521 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24522 PyObject *resultobj;
24523 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24524 wxTreeItemId result;
24525 PyObject * obj0 = 0 ;
24526 char *kwnames[] = {
24527 (char *) "self", NULL
24528 };
24529
24530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24533 {
24534 PyThreadState* __tstate = wxPyBeginAllowThreads();
24535 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24536
24537 wxPyEndAllowThreads(__tstate);
24538 if (PyErr_Occurred()) SWIG_fail;
24539 }
24540 {
24541 wxTreeItemId * resultptr;
24542 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24543 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24544 }
24545 return resultobj;
24546 fail:
24547 return NULL;
24548 }
24549
24550
24551 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24552 PyObject *resultobj;
24553 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24554 wxTreeItemId *arg2 = 0 ;
24555 PyObject * obj0 = 0 ;
24556 PyObject * obj1 = 0 ;
24557 char *kwnames[] = {
24558 (char *) "self",(char *) "item", NULL
24559 };
24560
24561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24565 SWIG_POINTER_EXCEPTION | 0)) == -1)
24566 SWIG_fail;
24567 if (arg2 == NULL) {
24568 PyErr_SetString(PyExc_TypeError,"null reference");
24569 SWIG_fail;
24570 }
24571 {
24572 PyThreadState* __tstate = wxPyBeginAllowThreads();
24573 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24574
24575 wxPyEndAllowThreads(__tstate);
24576 if (PyErr_Occurred()) SWIG_fail;
24577 }
24578 Py_INCREF(Py_None); resultobj = Py_None;
24579 return resultobj;
24580 fail:
24581 return NULL;
24582 }
24583
24584
24585 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24586 PyObject *resultobj;
24587 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24588 wxPoint result;
24589 PyObject * obj0 = 0 ;
24590 char *kwnames[] = {
24591 (char *) "self", NULL
24592 };
24593
24594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24597 {
24598 PyThreadState* __tstate = wxPyBeginAllowThreads();
24599 result = ((wxTreeEvent const *)arg1)->GetPoint();
24600
24601 wxPyEndAllowThreads(__tstate);
24602 if (PyErr_Occurred()) SWIG_fail;
24603 }
24604 {
24605 wxPoint * resultptr;
24606 resultptr = new wxPoint((wxPoint &) result);
24607 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24608 }
24609 return resultobj;
24610 fail:
24611 return NULL;
24612 }
24613
24614
24615 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24616 PyObject *resultobj;
24617 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24618 wxPoint *arg2 = 0 ;
24619 wxPoint temp2 ;
24620 PyObject * obj0 = 0 ;
24621 PyObject * obj1 = 0 ;
24622 char *kwnames[] = {
24623 (char *) "self",(char *) "pt", NULL
24624 };
24625
24626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24629 {
24630 arg2 = &temp2;
24631 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24632 }
24633 {
24634 PyThreadState* __tstate = wxPyBeginAllowThreads();
24635 (arg1)->SetPoint((wxPoint const &)*arg2);
24636
24637 wxPyEndAllowThreads(__tstate);
24638 if (PyErr_Occurred()) SWIG_fail;
24639 }
24640 Py_INCREF(Py_None); resultobj = Py_None;
24641 return resultobj;
24642 fail:
24643 return NULL;
24644 }
24645
24646
24647 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24648 PyObject *resultobj;
24649 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24650 wxKeyEvent *result;
24651 PyObject * obj0 = 0 ;
24652 char *kwnames[] = {
24653 (char *) "self", NULL
24654 };
24655
24656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24659 {
24660 PyThreadState* __tstate = wxPyBeginAllowThreads();
24661 {
24662 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24663 result = (wxKeyEvent *) &_result_ref;
24664 }
24665
24666 wxPyEndAllowThreads(__tstate);
24667 if (PyErr_Occurred()) SWIG_fail;
24668 }
24669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24670 return resultobj;
24671 fail:
24672 return NULL;
24673 }
24674
24675
24676 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
24677 PyObject *resultobj;
24678 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24679 int result;
24680 PyObject * obj0 = 0 ;
24681 char *kwnames[] = {
24682 (char *) "self", NULL
24683 };
24684
24685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24688 {
24689 PyThreadState* __tstate = wxPyBeginAllowThreads();
24690 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
24691
24692 wxPyEndAllowThreads(__tstate);
24693 if (PyErr_Occurred()) SWIG_fail;
24694 }
24695 resultobj = SWIG_FromInt((int)result);
24696 return resultobj;
24697 fail:
24698 return NULL;
24699 }
24700
24701
24702 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24703 PyObject *resultobj;
24704 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24705 wxKeyEvent *arg2 = 0 ;
24706 PyObject * obj0 = 0 ;
24707 PyObject * obj1 = 0 ;
24708 char *kwnames[] = {
24709 (char *) "self",(char *) "evt", NULL
24710 };
24711
24712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
24713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
24716 SWIG_POINTER_EXCEPTION | 0)) == -1)
24717 SWIG_fail;
24718 if (arg2 == NULL) {
24719 PyErr_SetString(PyExc_TypeError,"null reference");
24720 SWIG_fail;
24721 }
24722 {
24723 PyThreadState* __tstate = wxPyBeginAllowThreads();
24724 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
24725
24726 wxPyEndAllowThreads(__tstate);
24727 if (PyErr_Occurred()) SWIG_fail;
24728 }
24729 Py_INCREF(Py_None); resultobj = Py_None;
24730 return resultobj;
24731 fail:
24732 return NULL;
24733 }
24734
24735
24736 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24737 PyObject *resultobj;
24738 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24739 wxString *result;
24740 PyObject * obj0 = 0 ;
24741 char *kwnames[] = {
24742 (char *) "self", NULL
24743 };
24744
24745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
24746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24748 {
24749 PyThreadState* __tstate = wxPyBeginAllowThreads();
24750 {
24751 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
24752 result = (wxString *) &_result_ref;
24753 }
24754
24755 wxPyEndAllowThreads(__tstate);
24756 if (PyErr_Occurred()) SWIG_fail;
24757 }
24758 {
24759 #if wxUSE_UNICODE
24760 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24761 #else
24762 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24763 #endif
24764 }
24765 return resultobj;
24766 fail:
24767 return NULL;
24768 }
24769
24770
24771 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24772 PyObject *resultobj;
24773 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24774 wxString *arg2 = 0 ;
24775 bool temp2 = False ;
24776 PyObject * obj0 = 0 ;
24777 PyObject * obj1 = 0 ;
24778 char *kwnames[] = {
24779 (char *) "self",(char *) "label", NULL
24780 };
24781
24782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
24783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24785 {
24786 arg2 = wxString_in_helper(obj1);
24787 if (arg2 == NULL) SWIG_fail;
24788 temp2 = True;
24789 }
24790 {
24791 PyThreadState* __tstate = wxPyBeginAllowThreads();
24792 (arg1)->SetLabel((wxString const &)*arg2);
24793
24794 wxPyEndAllowThreads(__tstate);
24795 if (PyErr_Occurred()) SWIG_fail;
24796 }
24797 Py_INCREF(Py_None); resultobj = Py_None;
24798 {
24799 if (temp2)
24800 delete arg2;
24801 }
24802 return resultobj;
24803 fail:
24804 {
24805 if (temp2)
24806 delete arg2;
24807 }
24808 return NULL;
24809 }
24810
24811
24812 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
24813 PyObject *resultobj;
24814 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24815 bool result;
24816 PyObject * obj0 = 0 ;
24817 char *kwnames[] = {
24818 (char *) "self", NULL
24819 };
24820
24821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
24822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24824 {
24825 PyThreadState* __tstate = wxPyBeginAllowThreads();
24826 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
24827
24828 wxPyEndAllowThreads(__tstate);
24829 if (PyErr_Occurred()) SWIG_fail;
24830 }
24831 {
24832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24833 }
24834 return resultobj;
24835 fail:
24836 return NULL;
24837 }
24838
24839
24840 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
24841 PyObject *resultobj;
24842 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24843 bool arg2 ;
24844 PyObject * obj0 = 0 ;
24845 PyObject * obj1 = 0 ;
24846 char *kwnames[] = {
24847 (char *) "self",(char *) "editCancelled", NULL
24848 };
24849
24850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
24851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24853 arg2 = (bool) SWIG_AsBool(obj1);
24854 if (PyErr_Occurred()) SWIG_fail;
24855 {
24856 PyThreadState* __tstate = wxPyBeginAllowThreads();
24857 (arg1)->SetEditCanceled(arg2);
24858
24859 wxPyEndAllowThreads(__tstate);
24860 if (PyErr_Occurred()) SWIG_fail;
24861 }
24862 Py_INCREF(Py_None); resultobj = Py_None;
24863 return resultobj;
24864 fail:
24865 return NULL;
24866 }
24867
24868
24869 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
24870 PyObject *resultobj;
24871 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24872 wxString *arg2 = 0 ;
24873 bool temp2 = False ;
24874 PyObject * obj0 = 0 ;
24875 PyObject * obj1 = 0 ;
24876 char *kwnames[] = {
24877 (char *) "self",(char *) "toolTip", NULL
24878 };
24879
24880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
24881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24883 {
24884 arg2 = wxString_in_helper(obj1);
24885 if (arg2 == NULL) SWIG_fail;
24886 temp2 = True;
24887 }
24888 {
24889 PyThreadState* __tstate = wxPyBeginAllowThreads();
24890 (arg1)->SetToolTip((wxString const &)*arg2);
24891
24892 wxPyEndAllowThreads(__tstate);
24893 if (PyErr_Occurred()) SWIG_fail;
24894 }
24895 Py_INCREF(Py_None); resultobj = Py_None;
24896 {
24897 if (temp2)
24898 delete arg2;
24899 }
24900 return resultobj;
24901 fail:
24902 {
24903 if (temp2)
24904 delete arg2;
24905 }
24906 return NULL;
24907 }
24908
24909
24910 static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
24911 PyObject *obj;
24912 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24913 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
24914 Py_INCREF(obj);
24915 return Py_BuildValue((char *)"");
24916 }
24917 static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24918 PyObject *resultobj;
24919 wxWindow *arg1 = (wxWindow *) 0 ;
24920 int arg2 = (int) -1 ;
24921 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24922 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24923 wxSize const &arg4_defvalue = wxDefaultSize ;
24924 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24925 long arg5 = (long) wxTR_DEFAULT_STYLE ;
24926 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24927 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24928 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
24929 wxString *arg7 = (wxString *) &arg7_defvalue ;
24930 wxPyTreeCtrl *result;
24931 wxPoint temp3 ;
24932 wxSize temp4 ;
24933 bool temp7 = False ;
24934 PyObject * obj0 = 0 ;
24935 PyObject * obj1 = 0 ;
24936 PyObject * obj2 = 0 ;
24937 PyObject * obj3 = 0 ;
24938 PyObject * obj4 = 0 ;
24939 PyObject * obj5 = 0 ;
24940 PyObject * obj6 = 0 ;
24941 char *kwnames[] = {
24942 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24943 };
24944
24945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24948 if (obj1) {
24949 arg2 = (int) SWIG_AsInt(obj1);
24950 if (PyErr_Occurred()) SWIG_fail;
24951 }
24952 if (obj2) {
24953 {
24954 arg3 = &temp3;
24955 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24956 }
24957 }
24958 if (obj3) {
24959 {
24960 arg4 = &temp4;
24961 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24962 }
24963 }
24964 if (obj4) {
24965 arg5 = (long) SWIG_AsLong(obj4);
24966 if (PyErr_Occurred()) SWIG_fail;
24967 }
24968 if (obj5) {
24969 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24970 SWIG_POINTER_EXCEPTION | 0)) == -1)
24971 SWIG_fail;
24972 if (arg6 == NULL) {
24973 PyErr_SetString(PyExc_TypeError,"null reference");
24974 SWIG_fail;
24975 }
24976 }
24977 if (obj6) {
24978 {
24979 arg7 = wxString_in_helper(obj6);
24980 if (arg7 == NULL) SWIG_fail;
24981 temp7 = True;
24982 }
24983 }
24984 {
24985 PyThreadState* __tstate = wxPyBeginAllowThreads();
24986 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24987
24988 wxPyEndAllowThreads(__tstate);
24989 if (PyErr_Occurred()) SWIG_fail;
24990 }
24991 {
24992 resultobj = wxPyMake_wxObject(result);
24993 }
24994 {
24995 if (temp7)
24996 delete arg7;
24997 }
24998 return resultobj;
24999 fail:
25000 {
25001 if (temp7)
25002 delete arg7;
25003 }
25004 return NULL;
25005 }
25006
25007
25008 static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
25009 PyObject *resultobj;
25010 wxPyTreeCtrl *result;
25011 char *kwnames[] = {
25012 NULL
25013 };
25014
25015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25016 {
25017 PyThreadState* __tstate = wxPyBeginAllowThreads();
25018 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25019
25020 wxPyEndAllowThreads(__tstate);
25021 if (PyErr_Occurred()) SWIG_fail;
25022 }
25023 {
25024 resultobj = wxPyMake_wxObject(result);
25025 }
25026 return resultobj;
25027 fail:
25028 return NULL;
25029 }
25030
25031
25032 static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
25033 PyObject *resultobj;
25034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25035 wxWindow *arg2 = (wxWindow *) 0 ;
25036 int arg3 = (int) -1 ;
25037 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25038 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25039 wxSize const &arg5_defvalue = wxDefaultSize ;
25040 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25041 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25042 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25043 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25044 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25045 wxString *arg8 = (wxString *) &arg8_defvalue ;
25046 bool result;
25047 wxPoint temp4 ;
25048 wxSize temp5 ;
25049 bool temp8 = False ;
25050 PyObject * obj0 = 0 ;
25051 PyObject * obj1 = 0 ;
25052 PyObject * obj2 = 0 ;
25053 PyObject * obj3 = 0 ;
25054 PyObject * obj4 = 0 ;
25055 PyObject * obj5 = 0 ;
25056 PyObject * obj6 = 0 ;
25057 PyObject * obj7 = 0 ;
25058 char *kwnames[] = {
25059 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25060 };
25061
25062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25065 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25067 if (obj2) {
25068 arg3 = (int) SWIG_AsInt(obj2);
25069 if (PyErr_Occurred()) SWIG_fail;
25070 }
25071 if (obj3) {
25072 {
25073 arg4 = &temp4;
25074 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25075 }
25076 }
25077 if (obj4) {
25078 {
25079 arg5 = &temp5;
25080 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25081 }
25082 }
25083 if (obj5) {
25084 arg6 = (long) SWIG_AsLong(obj5);
25085 if (PyErr_Occurred()) SWIG_fail;
25086 }
25087 if (obj6) {
25088 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25089 SWIG_POINTER_EXCEPTION | 0)) == -1)
25090 SWIG_fail;
25091 if (arg7 == NULL) {
25092 PyErr_SetString(PyExc_TypeError,"null reference");
25093 SWIG_fail;
25094 }
25095 }
25096 if (obj7) {
25097 {
25098 arg8 = wxString_in_helper(obj7);
25099 if (arg8 == NULL) SWIG_fail;
25100 temp8 = True;
25101 }
25102 }
25103 {
25104 PyThreadState* __tstate = wxPyBeginAllowThreads();
25105 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25106
25107 wxPyEndAllowThreads(__tstate);
25108 if (PyErr_Occurred()) SWIG_fail;
25109 }
25110 {
25111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25112 }
25113 {
25114 if (temp8)
25115 delete arg8;
25116 }
25117 return resultobj;
25118 fail:
25119 {
25120 if (temp8)
25121 delete arg8;
25122 }
25123 return NULL;
25124 }
25125
25126
25127 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25128 PyObject *resultobj;
25129 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25130 PyObject *arg2 = (PyObject *) 0 ;
25131 PyObject *arg3 = (PyObject *) 0 ;
25132 PyObject * obj0 = 0 ;
25133 PyObject * obj1 = 0 ;
25134 PyObject * obj2 = 0 ;
25135 char *kwnames[] = {
25136 (char *) "self",(char *) "self",(char *) "_class", NULL
25137 };
25138
25139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25142 arg2 = obj1;
25143 arg3 = obj2;
25144 {
25145 PyThreadState* __tstate = wxPyBeginAllowThreads();
25146 (arg1)->_setCallbackInfo(arg2,arg3);
25147
25148 wxPyEndAllowThreads(__tstate);
25149 if (PyErr_Occurred()) SWIG_fail;
25150 }
25151 Py_INCREF(Py_None); resultobj = Py_None;
25152 return resultobj;
25153 fail:
25154 return NULL;
25155 }
25156
25157
25158 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
25159 PyObject *resultobj;
25160 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25161 size_t result;
25162 PyObject * obj0 = 0 ;
25163 char *kwnames[] = {
25164 (char *) "self", NULL
25165 };
25166
25167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25170 {
25171 PyThreadState* __tstate = wxPyBeginAllowThreads();
25172 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25173
25174 wxPyEndAllowThreads(__tstate);
25175 if (PyErr_Occurred()) SWIG_fail;
25176 }
25177 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25178 return resultobj;
25179 fail:
25180 return NULL;
25181 }
25182
25183
25184 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25185 PyObject *resultobj;
25186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25187 unsigned int result;
25188 PyObject * obj0 = 0 ;
25189 char *kwnames[] = {
25190 (char *) "self", NULL
25191 };
25192
25193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25196 {
25197 PyThreadState* __tstate = wxPyBeginAllowThreads();
25198 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25199
25200 wxPyEndAllowThreads(__tstate);
25201 if (PyErr_Occurred()) SWIG_fail;
25202 }
25203 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25204 return resultobj;
25205 fail:
25206 return NULL;
25207 }
25208
25209
25210 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25211 PyObject *resultobj;
25212 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25213 unsigned int arg2 ;
25214 PyObject * obj0 = 0 ;
25215 PyObject * obj1 = 0 ;
25216 char *kwnames[] = {
25217 (char *) "self",(char *) "indent", NULL
25218 };
25219
25220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25223 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25224 if (PyErr_Occurred()) SWIG_fail;
25225 {
25226 PyThreadState* __tstate = wxPyBeginAllowThreads();
25227 (arg1)->SetIndent(arg2);
25228
25229 wxPyEndAllowThreads(__tstate);
25230 if (PyErr_Occurred()) SWIG_fail;
25231 }
25232 Py_INCREF(Py_None); resultobj = Py_None;
25233 return resultobj;
25234 fail:
25235 return NULL;
25236 }
25237
25238
25239 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25240 PyObject *resultobj;
25241 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25242 unsigned int result;
25243 PyObject * obj0 = 0 ;
25244 char *kwnames[] = {
25245 (char *) "self", NULL
25246 };
25247
25248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25251 {
25252 PyThreadState* __tstate = wxPyBeginAllowThreads();
25253 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25254
25255 wxPyEndAllowThreads(__tstate);
25256 if (PyErr_Occurred()) SWIG_fail;
25257 }
25258 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25259 return resultobj;
25260 fail:
25261 return NULL;
25262 }
25263
25264
25265 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25266 PyObject *resultobj;
25267 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25268 unsigned int arg2 ;
25269 PyObject * obj0 = 0 ;
25270 PyObject * obj1 = 0 ;
25271 char *kwnames[] = {
25272 (char *) "self",(char *) "spacing", NULL
25273 };
25274
25275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25278 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25279 if (PyErr_Occurred()) SWIG_fail;
25280 {
25281 PyThreadState* __tstate = wxPyBeginAllowThreads();
25282 (arg1)->SetSpacing(arg2);
25283
25284 wxPyEndAllowThreads(__tstate);
25285 if (PyErr_Occurred()) SWIG_fail;
25286 }
25287 Py_INCREF(Py_None); resultobj = Py_None;
25288 return resultobj;
25289 fail:
25290 return NULL;
25291 }
25292
25293
25294 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25295 PyObject *resultobj;
25296 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25297 wxImageList *result;
25298 PyObject * obj0 = 0 ;
25299 char *kwnames[] = {
25300 (char *) "self", NULL
25301 };
25302
25303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25306 {
25307 PyThreadState* __tstate = wxPyBeginAllowThreads();
25308 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25309
25310 wxPyEndAllowThreads(__tstate);
25311 if (PyErr_Occurred()) SWIG_fail;
25312 }
25313 {
25314 resultobj = wxPyMake_wxObject(result);
25315 }
25316 return resultobj;
25317 fail:
25318 return NULL;
25319 }
25320
25321
25322 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25323 PyObject *resultobj;
25324 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25325 wxImageList *result;
25326 PyObject * obj0 = 0 ;
25327 char *kwnames[] = {
25328 (char *) "self", NULL
25329 };
25330
25331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",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 = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25337
25338 wxPyEndAllowThreads(__tstate);
25339 if (PyErr_Occurred()) SWIG_fail;
25340 }
25341 {
25342 resultobj = wxPyMake_wxObject(result);
25343 }
25344 return resultobj;
25345 fail:
25346 return NULL;
25347 }
25348
25349
25350 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25351 PyObject *resultobj;
25352 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25353 wxImageList *arg2 = (wxImageList *) 0 ;
25354 PyObject * obj0 = 0 ;
25355 PyObject * obj1 = 0 ;
25356 char *kwnames[] = {
25357 (char *) "self",(char *) "imageList", NULL
25358 };
25359
25360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25365 {
25366 PyThreadState* __tstate = wxPyBeginAllowThreads();
25367 (arg1)->SetImageList(arg2);
25368
25369 wxPyEndAllowThreads(__tstate);
25370 if (PyErr_Occurred()) SWIG_fail;
25371 }
25372 Py_INCREF(Py_None); resultobj = Py_None;
25373 return resultobj;
25374 fail:
25375 return NULL;
25376 }
25377
25378
25379 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25380 PyObject *resultobj;
25381 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25382 wxImageList *arg2 = (wxImageList *) 0 ;
25383 PyObject * obj0 = 0 ;
25384 PyObject * obj1 = 0 ;
25385 char *kwnames[] = {
25386 (char *) "self",(char *) "imageList", NULL
25387 };
25388
25389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25392 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25394 {
25395 PyThreadState* __tstate = wxPyBeginAllowThreads();
25396 (arg1)->SetStateImageList(arg2);
25397
25398 wxPyEndAllowThreads(__tstate);
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 Py_INCREF(Py_None); resultobj = Py_None;
25402 return resultobj;
25403 fail:
25404 return NULL;
25405 }
25406
25407
25408 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25409 PyObject *resultobj;
25410 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25411 wxImageList *arg2 = (wxImageList *) 0 ;
25412 PyObject * obj0 = 0 ;
25413 PyObject * obj1 = 0 ;
25414 char *kwnames[] = {
25415 (char *) "self",(char *) "imageList", NULL
25416 };
25417
25418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25422 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25423 {
25424 PyThreadState* __tstate = wxPyBeginAllowThreads();
25425 (arg1)->AssignImageList(arg2);
25426
25427 wxPyEndAllowThreads(__tstate);
25428 if (PyErr_Occurred()) SWIG_fail;
25429 }
25430 Py_INCREF(Py_None); resultobj = Py_None;
25431 return resultobj;
25432 fail:
25433 return NULL;
25434 }
25435
25436
25437 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25438 PyObject *resultobj;
25439 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25440 wxImageList *arg2 = (wxImageList *) 0 ;
25441 PyObject * obj0 = 0 ;
25442 PyObject * obj1 = 0 ;
25443 char *kwnames[] = {
25444 (char *) "self",(char *) "imageList", NULL
25445 };
25446
25447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25450 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25451 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25452 {
25453 PyThreadState* __tstate = wxPyBeginAllowThreads();
25454 (arg1)->AssignStateImageList(arg2);
25455
25456 wxPyEndAllowThreads(__tstate);
25457 if (PyErr_Occurred()) SWIG_fail;
25458 }
25459 Py_INCREF(Py_None); resultobj = Py_None;
25460 return resultobj;
25461 fail:
25462 return NULL;
25463 }
25464
25465
25466 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25467 PyObject *resultobj;
25468 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25469 wxTreeItemId *arg2 = 0 ;
25470 wxString result;
25471 PyObject * obj0 = 0 ;
25472 PyObject * obj1 = 0 ;
25473 char *kwnames[] = {
25474 (char *) "self",(char *) "item", NULL
25475 };
25476
25477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25480 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25481 SWIG_POINTER_EXCEPTION | 0)) == -1)
25482 SWIG_fail;
25483 if (arg2 == NULL) {
25484 PyErr_SetString(PyExc_TypeError,"null reference");
25485 SWIG_fail;
25486 }
25487 {
25488 PyThreadState* __tstate = wxPyBeginAllowThreads();
25489 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25490
25491 wxPyEndAllowThreads(__tstate);
25492 if (PyErr_Occurred()) SWIG_fail;
25493 }
25494 {
25495 #if wxUSE_UNICODE
25496 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25497 #else
25498 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25499 #endif
25500 }
25501 return resultobj;
25502 fail:
25503 return NULL;
25504 }
25505
25506
25507 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25508 PyObject *resultobj;
25509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25510 wxTreeItemId *arg2 = 0 ;
25511 int arg3 = (int) wxTreeItemIcon_Normal ;
25512 int result;
25513 PyObject * obj0 = 0 ;
25514 PyObject * obj1 = 0 ;
25515 PyObject * obj2 = 0 ;
25516 char *kwnames[] = {
25517 (char *) "self",(char *) "item",(char *) "which", NULL
25518 };
25519
25520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25523 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25524 SWIG_POINTER_EXCEPTION | 0)) == -1)
25525 SWIG_fail;
25526 if (arg2 == NULL) {
25527 PyErr_SetString(PyExc_TypeError,"null reference");
25528 SWIG_fail;
25529 }
25530 if (obj2) {
25531 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
25532 if (PyErr_Occurred()) SWIG_fail;
25533 }
25534 {
25535 PyThreadState* __tstate = wxPyBeginAllowThreads();
25536 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25537
25538 wxPyEndAllowThreads(__tstate);
25539 if (PyErr_Occurred()) SWIG_fail;
25540 }
25541 resultobj = SWIG_FromInt((int)result);
25542 return resultobj;
25543 fail:
25544 return NULL;
25545 }
25546
25547
25548 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25549 PyObject *resultobj;
25550 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25551 wxTreeItemId *arg2 = 0 ;
25552 wxPyTreeItemData *result;
25553 PyObject * obj0 = 0 ;
25554 PyObject * obj1 = 0 ;
25555 char *kwnames[] = {
25556 (char *) "self",(char *) "item", NULL
25557 };
25558
25559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25562 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25563 SWIG_POINTER_EXCEPTION | 0)) == -1)
25564 SWIG_fail;
25565 if (arg2 == NULL) {
25566 PyErr_SetString(PyExc_TypeError,"null reference");
25567 SWIG_fail;
25568 }
25569 {
25570 PyThreadState* __tstate = wxPyBeginAllowThreads();
25571 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25572
25573 wxPyEndAllowThreads(__tstate);
25574 if (PyErr_Occurred()) SWIG_fail;
25575 }
25576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25577 return resultobj;
25578 fail:
25579 return NULL;
25580 }
25581
25582
25583 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25584 PyObject *resultobj;
25585 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25586 wxTreeItemId *arg2 = 0 ;
25587 PyObject *result;
25588 PyObject * obj0 = 0 ;
25589 PyObject * obj1 = 0 ;
25590 char *kwnames[] = {
25591 (char *) "self",(char *) "item", NULL
25592 };
25593
25594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25597 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25598 SWIG_POINTER_EXCEPTION | 0)) == -1)
25599 SWIG_fail;
25600 if (arg2 == NULL) {
25601 PyErr_SetString(PyExc_TypeError,"null reference");
25602 SWIG_fail;
25603 }
25604 {
25605 PyThreadState* __tstate = wxPyBeginAllowThreads();
25606 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25607
25608 wxPyEndAllowThreads(__tstate);
25609 if (PyErr_Occurred()) SWIG_fail;
25610 }
25611 resultobj = result;
25612 return resultobj;
25613 fail:
25614 return NULL;
25615 }
25616
25617
25618 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25619 PyObject *resultobj;
25620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25621 wxTreeItemId *arg2 = 0 ;
25622 wxColour result;
25623 PyObject * obj0 = 0 ;
25624 PyObject * obj1 = 0 ;
25625 char *kwnames[] = {
25626 (char *) "self",(char *) "item", NULL
25627 };
25628
25629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25632 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25633 SWIG_POINTER_EXCEPTION | 0)) == -1)
25634 SWIG_fail;
25635 if (arg2 == NULL) {
25636 PyErr_SetString(PyExc_TypeError,"null reference");
25637 SWIG_fail;
25638 }
25639 {
25640 PyThreadState* __tstate = wxPyBeginAllowThreads();
25641 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25642
25643 wxPyEndAllowThreads(__tstate);
25644 if (PyErr_Occurred()) SWIG_fail;
25645 }
25646 {
25647 wxColour * resultptr;
25648 resultptr = new wxColour((wxColour &) result);
25649 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25650 }
25651 return resultobj;
25652 fail:
25653 return NULL;
25654 }
25655
25656
25657 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25658 PyObject *resultobj;
25659 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25660 wxTreeItemId *arg2 = 0 ;
25661 wxColour result;
25662 PyObject * obj0 = 0 ;
25663 PyObject * obj1 = 0 ;
25664 char *kwnames[] = {
25665 (char *) "self",(char *) "item", NULL
25666 };
25667
25668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25671 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25672 SWIG_POINTER_EXCEPTION | 0)) == -1)
25673 SWIG_fail;
25674 if (arg2 == NULL) {
25675 PyErr_SetString(PyExc_TypeError,"null reference");
25676 SWIG_fail;
25677 }
25678 {
25679 PyThreadState* __tstate = wxPyBeginAllowThreads();
25680 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25681
25682 wxPyEndAllowThreads(__tstate);
25683 if (PyErr_Occurred()) SWIG_fail;
25684 }
25685 {
25686 wxColour * resultptr;
25687 resultptr = new wxColour((wxColour &) result);
25688 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25689 }
25690 return resultobj;
25691 fail:
25692 return NULL;
25693 }
25694
25695
25696 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25697 PyObject *resultobj;
25698 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25699 wxTreeItemId *arg2 = 0 ;
25700 wxFont result;
25701 PyObject * obj0 = 0 ;
25702 PyObject * obj1 = 0 ;
25703 char *kwnames[] = {
25704 (char *) "self",(char *) "item", NULL
25705 };
25706
25707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
25708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25710 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25711 SWIG_POINTER_EXCEPTION | 0)) == -1)
25712 SWIG_fail;
25713 if (arg2 == NULL) {
25714 PyErr_SetString(PyExc_TypeError,"null reference");
25715 SWIG_fail;
25716 }
25717 {
25718 PyThreadState* __tstate = wxPyBeginAllowThreads();
25719 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
25720
25721 wxPyEndAllowThreads(__tstate);
25722 if (PyErr_Occurred()) SWIG_fail;
25723 }
25724 {
25725 wxFont * resultptr;
25726 resultptr = new wxFont((wxFont &) result);
25727 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
25728 }
25729 return resultobj;
25730 fail:
25731 return NULL;
25732 }
25733
25734
25735 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25736 PyObject *resultobj;
25737 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25738 wxTreeItemId *arg2 = 0 ;
25739 wxString *arg3 = 0 ;
25740 bool temp3 = False ;
25741 PyObject * obj0 = 0 ;
25742 PyObject * obj1 = 0 ;
25743 PyObject * obj2 = 0 ;
25744 char *kwnames[] = {
25745 (char *) "self",(char *) "item",(char *) "text", NULL
25746 };
25747
25748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
25749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25751 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25752 SWIG_POINTER_EXCEPTION | 0)) == -1)
25753 SWIG_fail;
25754 if (arg2 == NULL) {
25755 PyErr_SetString(PyExc_TypeError,"null reference");
25756 SWIG_fail;
25757 }
25758 {
25759 arg3 = wxString_in_helper(obj2);
25760 if (arg3 == NULL) SWIG_fail;
25761 temp3 = True;
25762 }
25763 {
25764 PyThreadState* __tstate = wxPyBeginAllowThreads();
25765 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
25766
25767 wxPyEndAllowThreads(__tstate);
25768 if (PyErr_Occurred()) SWIG_fail;
25769 }
25770 Py_INCREF(Py_None); resultobj = Py_None;
25771 {
25772 if (temp3)
25773 delete arg3;
25774 }
25775 return resultobj;
25776 fail:
25777 {
25778 if (temp3)
25779 delete arg3;
25780 }
25781 return NULL;
25782 }
25783
25784
25785 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25786 PyObject *resultobj;
25787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25788 wxTreeItemId *arg2 = 0 ;
25789 int arg3 ;
25790 int arg4 = (int) wxTreeItemIcon_Normal ;
25791 PyObject * obj0 = 0 ;
25792 PyObject * obj1 = 0 ;
25793 PyObject * obj2 = 0 ;
25794 PyObject * obj3 = 0 ;
25795 char *kwnames[] = {
25796 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
25797 };
25798
25799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25802 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25803 SWIG_POINTER_EXCEPTION | 0)) == -1)
25804 SWIG_fail;
25805 if (arg2 == NULL) {
25806 PyErr_SetString(PyExc_TypeError,"null reference");
25807 SWIG_fail;
25808 }
25809 arg3 = (int) SWIG_AsInt(obj2);
25810 if (PyErr_Occurred()) SWIG_fail;
25811 if (obj3) {
25812 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
25813 if (PyErr_Occurred()) SWIG_fail;
25814 }
25815 {
25816 PyThreadState* __tstate = wxPyBeginAllowThreads();
25817 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
25818
25819 wxPyEndAllowThreads(__tstate);
25820 if (PyErr_Occurred()) SWIG_fail;
25821 }
25822 Py_INCREF(Py_None); resultobj = Py_None;
25823 return resultobj;
25824 fail:
25825 return NULL;
25826 }
25827
25828
25829 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25830 PyObject *resultobj;
25831 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25832 wxTreeItemId *arg2 = 0 ;
25833 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
25834 PyObject * obj0 = 0 ;
25835 PyObject * obj1 = 0 ;
25836 PyObject * obj2 = 0 ;
25837 char *kwnames[] = {
25838 (char *) "self",(char *) "item",(char *) "data", NULL
25839 };
25840
25841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25844 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25845 SWIG_POINTER_EXCEPTION | 0)) == -1)
25846 SWIG_fail;
25847 if (arg2 == NULL) {
25848 PyErr_SetString(PyExc_TypeError,"null reference");
25849 SWIG_fail;
25850 }
25851 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
25852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25853 {
25854 PyThreadState* __tstate = wxPyBeginAllowThreads();
25855 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
25856
25857 wxPyEndAllowThreads(__tstate);
25858 if (PyErr_Occurred()) SWIG_fail;
25859 }
25860 Py_INCREF(Py_None); resultobj = Py_None;
25861 return resultobj;
25862 fail:
25863 return NULL;
25864 }
25865
25866
25867 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25868 PyObject *resultobj;
25869 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25870 wxTreeItemId *arg2 = 0 ;
25871 PyObject *arg3 = (PyObject *) 0 ;
25872 PyObject * obj0 = 0 ;
25873 PyObject * obj1 = 0 ;
25874 PyObject * obj2 = 0 ;
25875 char *kwnames[] = {
25876 (char *) "self",(char *) "item",(char *) "obj", NULL
25877 };
25878
25879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25882 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25883 SWIG_POINTER_EXCEPTION | 0)) == -1)
25884 SWIG_fail;
25885 if (arg2 == NULL) {
25886 PyErr_SetString(PyExc_TypeError,"null reference");
25887 SWIG_fail;
25888 }
25889 arg3 = obj2;
25890 {
25891 PyThreadState* __tstate = wxPyBeginAllowThreads();
25892 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
25893
25894 wxPyEndAllowThreads(__tstate);
25895 if (PyErr_Occurred()) SWIG_fail;
25896 }
25897 Py_INCREF(Py_None); resultobj = Py_None;
25898 return resultobj;
25899 fail:
25900 return NULL;
25901 }
25902
25903
25904 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25905 PyObject *resultobj;
25906 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25907 wxTreeItemId *arg2 = 0 ;
25908 bool arg3 = (bool) True ;
25909 PyObject * obj0 = 0 ;
25910 PyObject * obj1 = 0 ;
25911 PyObject * obj2 = 0 ;
25912 char *kwnames[] = {
25913 (char *) "self",(char *) "item",(char *) "has", NULL
25914 };
25915
25916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
25917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25919 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25920 SWIG_POINTER_EXCEPTION | 0)) == -1)
25921 SWIG_fail;
25922 if (arg2 == NULL) {
25923 PyErr_SetString(PyExc_TypeError,"null reference");
25924 SWIG_fail;
25925 }
25926 if (obj2) {
25927 arg3 = (bool) SWIG_AsBool(obj2);
25928 if (PyErr_Occurred()) SWIG_fail;
25929 }
25930 {
25931 PyThreadState* __tstate = wxPyBeginAllowThreads();
25932 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
25933
25934 wxPyEndAllowThreads(__tstate);
25935 if (PyErr_Occurred()) SWIG_fail;
25936 }
25937 Py_INCREF(Py_None); resultobj = Py_None;
25938 return resultobj;
25939 fail:
25940 return NULL;
25941 }
25942
25943
25944 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
25945 PyObject *resultobj;
25946 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25947 wxTreeItemId *arg2 = 0 ;
25948 bool arg3 = (bool) True ;
25949 PyObject * obj0 = 0 ;
25950 PyObject * obj1 = 0 ;
25951 PyObject * obj2 = 0 ;
25952 char *kwnames[] = {
25953 (char *) "self",(char *) "item",(char *) "bold", NULL
25954 };
25955
25956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
25957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25959 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25960 SWIG_POINTER_EXCEPTION | 0)) == -1)
25961 SWIG_fail;
25962 if (arg2 == NULL) {
25963 PyErr_SetString(PyExc_TypeError,"null reference");
25964 SWIG_fail;
25965 }
25966 if (obj2) {
25967 arg3 = (bool) SWIG_AsBool(obj2);
25968 if (PyErr_Occurred()) SWIG_fail;
25969 }
25970 {
25971 PyThreadState* __tstate = wxPyBeginAllowThreads();
25972 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
25973
25974 wxPyEndAllowThreads(__tstate);
25975 if (PyErr_Occurred()) SWIG_fail;
25976 }
25977 Py_INCREF(Py_None); resultobj = Py_None;
25978 return resultobj;
25979 fail:
25980 return NULL;
25981 }
25982
25983
25984 static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
25985 PyObject *resultobj;
25986 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25987 wxTreeItemId *arg2 = 0 ;
25988 bool arg3 = (bool) True ;
25989 PyObject * obj0 = 0 ;
25990 PyObject * obj1 = 0 ;
25991 PyObject * obj2 = 0 ;
25992 char *kwnames[] = {
25993 (char *) "self",(char *) "item",(char *) "highlight", NULL
25994 };
25995
25996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
25997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25999 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26000 SWIG_POINTER_EXCEPTION | 0)) == -1)
26001 SWIG_fail;
26002 if (arg2 == NULL) {
26003 PyErr_SetString(PyExc_TypeError,"null reference");
26004 SWIG_fail;
26005 }
26006 if (obj2) {
26007 arg3 = (bool) SWIG_AsBool(obj2);
26008 if (PyErr_Occurred()) SWIG_fail;
26009 }
26010 {
26011 PyThreadState* __tstate = wxPyBeginAllowThreads();
26012 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
26013
26014 wxPyEndAllowThreads(__tstate);
26015 if (PyErr_Occurred()) SWIG_fail;
26016 }
26017 Py_INCREF(Py_None); resultobj = Py_None;
26018 return resultobj;
26019 fail:
26020 return NULL;
26021 }
26022
26023
26024 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26025 PyObject *resultobj;
26026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26027 wxTreeItemId *arg2 = 0 ;
26028 wxColour *arg3 = 0 ;
26029 wxColour temp3 ;
26030 PyObject * obj0 = 0 ;
26031 PyObject * obj1 = 0 ;
26032 PyObject * obj2 = 0 ;
26033 char *kwnames[] = {
26034 (char *) "self",(char *) "item",(char *) "col", NULL
26035 };
26036
26037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26040 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26041 SWIG_POINTER_EXCEPTION | 0)) == -1)
26042 SWIG_fail;
26043 if (arg2 == NULL) {
26044 PyErr_SetString(PyExc_TypeError,"null reference");
26045 SWIG_fail;
26046 }
26047 {
26048 arg3 = &temp3;
26049 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26050 }
26051 {
26052 PyThreadState* __tstate = wxPyBeginAllowThreads();
26053 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26054
26055 wxPyEndAllowThreads(__tstate);
26056 if (PyErr_Occurred()) SWIG_fail;
26057 }
26058 Py_INCREF(Py_None); resultobj = Py_None;
26059 return resultobj;
26060 fail:
26061 return NULL;
26062 }
26063
26064
26065 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26066 PyObject *resultobj;
26067 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26068 wxTreeItemId *arg2 = 0 ;
26069 wxColour *arg3 = 0 ;
26070 wxColour temp3 ;
26071 PyObject * obj0 = 0 ;
26072 PyObject * obj1 = 0 ;
26073 PyObject * obj2 = 0 ;
26074 char *kwnames[] = {
26075 (char *) "self",(char *) "item",(char *) "col", NULL
26076 };
26077
26078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26082 SWIG_POINTER_EXCEPTION | 0)) == -1)
26083 SWIG_fail;
26084 if (arg2 == NULL) {
26085 PyErr_SetString(PyExc_TypeError,"null reference");
26086 SWIG_fail;
26087 }
26088 {
26089 arg3 = &temp3;
26090 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26091 }
26092 {
26093 PyThreadState* __tstate = wxPyBeginAllowThreads();
26094 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26095
26096 wxPyEndAllowThreads(__tstate);
26097 if (PyErr_Occurred()) SWIG_fail;
26098 }
26099 Py_INCREF(Py_None); resultobj = Py_None;
26100 return resultobj;
26101 fail:
26102 return NULL;
26103 }
26104
26105
26106 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26107 PyObject *resultobj;
26108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26109 wxTreeItemId *arg2 = 0 ;
26110 wxFont *arg3 = 0 ;
26111 PyObject * obj0 = 0 ;
26112 PyObject * obj1 = 0 ;
26113 PyObject * obj2 = 0 ;
26114 char *kwnames[] = {
26115 (char *) "self",(char *) "item",(char *) "font", NULL
26116 };
26117
26118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26122 SWIG_POINTER_EXCEPTION | 0)) == -1)
26123 SWIG_fail;
26124 if (arg2 == NULL) {
26125 PyErr_SetString(PyExc_TypeError,"null reference");
26126 SWIG_fail;
26127 }
26128 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26129 SWIG_POINTER_EXCEPTION | 0)) == -1)
26130 SWIG_fail;
26131 if (arg3 == NULL) {
26132 PyErr_SetString(PyExc_TypeError,"null reference");
26133 SWIG_fail;
26134 }
26135 {
26136 PyThreadState* __tstate = wxPyBeginAllowThreads();
26137 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26138
26139 wxPyEndAllowThreads(__tstate);
26140 if (PyErr_Occurred()) SWIG_fail;
26141 }
26142 Py_INCREF(Py_None); resultobj = Py_None;
26143 return resultobj;
26144 fail:
26145 return NULL;
26146 }
26147
26148
26149 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26150 PyObject *resultobj;
26151 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26152 wxTreeItemId *arg2 = 0 ;
26153 bool result;
26154 PyObject * obj0 = 0 ;
26155 PyObject * obj1 = 0 ;
26156 char *kwnames[] = {
26157 (char *) "self",(char *) "item", NULL
26158 };
26159
26160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26164 SWIG_POINTER_EXCEPTION | 0)) == -1)
26165 SWIG_fail;
26166 if (arg2 == NULL) {
26167 PyErr_SetString(PyExc_TypeError,"null reference");
26168 SWIG_fail;
26169 }
26170 {
26171 PyThreadState* __tstate = wxPyBeginAllowThreads();
26172 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26173
26174 wxPyEndAllowThreads(__tstate);
26175 if (PyErr_Occurred()) SWIG_fail;
26176 }
26177 {
26178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26179 }
26180 return resultobj;
26181 fail:
26182 return NULL;
26183 }
26184
26185
26186 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26187 PyObject *resultobj;
26188 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26189 wxTreeItemId *arg2 = 0 ;
26190 bool result;
26191 PyObject * obj0 = 0 ;
26192 PyObject * obj1 = 0 ;
26193 char *kwnames[] = {
26194 (char *) "self",(char *) "item", NULL
26195 };
26196
26197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26200 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26201 SWIG_POINTER_EXCEPTION | 0)) == -1)
26202 SWIG_fail;
26203 if (arg2 == NULL) {
26204 PyErr_SetString(PyExc_TypeError,"null reference");
26205 SWIG_fail;
26206 }
26207 {
26208 PyThreadState* __tstate = wxPyBeginAllowThreads();
26209 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26210
26211 wxPyEndAllowThreads(__tstate);
26212 if (PyErr_Occurred()) SWIG_fail;
26213 }
26214 {
26215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26216 }
26217 return resultobj;
26218 fail:
26219 return NULL;
26220 }
26221
26222
26223 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
26224 PyObject *resultobj;
26225 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26226 wxTreeItemId *arg2 = 0 ;
26227 bool result;
26228 PyObject * obj0 = 0 ;
26229 PyObject * obj1 = 0 ;
26230 char *kwnames[] = {
26231 (char *) "self",(char *) "item", NULL
26232 };
26233
26234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26237 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26238 SWIG_POINTER_EXCEPTION | 0)) == -1)
26239 SWIG_fail;
26240 if (arg2 == NULL) {
26241 PyErr_SetString(PyExc_TypeError,"null reference");
26242 SWIG_fail;
26243 }
26244 {
26245 PyThreadState* __tstate = wxPyBeginAllowThreads();
26246 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26247
26248 wxPyEndAllowThreads(__tstate);
26249 if (PyErr_Occurred()) SWIG_fail;
26250 }
26251 {
26252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26253 }
26254 return resultobj;
26255 fail:
26256 return NULL;
26257 }
26258
26259
26260 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
26261 PyObject *resultobj;
26262 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26263 wxTreeItemId *arg2 = 0 ;
26264 bool result;
26265 PyObject * obj0 = 0 ;
26266 PyObject * obj1 = 0 ;
26267 char *kwnames[] = {
26268 (char *) "self",(char *) "item", NULL
26269 };
26270
26271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26275 SWIG_POINTER_EXCEPTION | 0)) == -1)
26276 SWIG_fail;
26277 if (arg2 == NULL) {
26278 PyErr_SetString(PyExc_TypeError,"null reference");
26279 SWIG_fail;
26280 }
26281 {
26282 PyThreadState* __tstate = wxPyBeginAllowThreads();
26283 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26284
26285 wxPyEndAllowThreads(__tstate);
26286 if (PyErr_Occurred()) SWIG_fail;
26287 }
26288 {
26289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26290 }
26291 return resultobj;
26292 fail:
26293 return NULL;
26294 }
26295
26296
26297 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
26298 PyObject *resultobj;
26299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26300 wxTreeItemId *arg2 = 0 ;
26301 bool result;
26302 PyObject * obj0 = 0 ;
26303 PyObject * obj1 = 0 ;
26304 char *kwnames[] = {
26305 (char *) "self",(char *) "item", NULL
26306 };
26307
26308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26312 SWIG_POINTER_EXCEPTION | 0)) == -1)
26313 SWIG_fail;
26314 if (arg2 == NULL) {
26315 PyErr_SetString(PyExc_TypeError,"null reference");
26316 SWIG_fail;
26317 }
26318 {
26319 PyThreadState* __tstate = wxPyBeginAllowThreads();
26320 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26321
26322 wxPyEndAllowThreads(__tstate);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 {
26326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26327 }
26328 return resultobj;
26329 fail:
26330 return NULL;
26331 }
26332
26333
26334 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
26335 PyObject *resultobj;
26336 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26337 wxTreeItemId *arg2 = 0 ;
26338 bool arg3 = (bool) True ;
26339 size_t result;
26340 PyObject * obj0 = 0 ;
26341 PyObject * obj1 = 0 ;
26342 PyObject * obj2 = 0 ;
26343 char *kwnames[] = {
26344 (char *) "self",(char *) "item",(char *) "recursively", NULL
26345 };
26346
26347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26350 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26351 SWIG_POINTER_EXCEPTION | 0)) == -1)
26352 SWIG_fail;
26353 if (arg2 == NULL) {
26354 PyErr_SetString(PyExc_TypeError,"null reference");
26355 SWIG_fail;
26356 }
26357 if (obj2) {
26358 arg3 = (bool) SWIG_AsBool(obj2);
26359 if (PyErr_Occurred()) SWIG_fail;
26360 }
26361 {
26362 PyThreadState* __tstate = wxPyBeginAllowThreads();
26363 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26364
26365 wxPyEndAllowThreads(__tstate);
26366 if (PyErr_Occurred()) SWIG_fail;
26367 }
26368 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
26369 return resultobj;
26370 fail:
26371 return NULL;
26372 }
26373
26374
26375 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26376 PyObject *resultobj;
26377 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26378 wxTreeItemId result;
26379 PyObject * obj0 = 0 ;
26380 char *kwnames[] = {
26381 (char *) "self", NULL
26382 };
26383
26384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26387 {
26388 PyThreadState* __tstate = wxPyBeginAllowThreads();
26389 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26390
26391 wxPyEndAllowThreads(__tstate);
26392 if (PyErr_Occurred()) SWIG_fail;
26393 }
26394 {
26395 wxTreeItemId * resultptr;
26396 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26397 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26398 }
26399 return resultobj;
26400 fail:
26401 return NULL;
26402 }
26403
26404
26405 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26406 PyObject *resultobj;
26407 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26408 wxTreeItemId result;
26409 PyObject * obj0 = 0 ;
26410 char *kwnames[] = {
26411 (char *) "self", NULL
26412 };
26413
26414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26417 {
26418 PyThreadState* __tstate = wxPyBeginAllowThreads();
26419 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26420
26421 wxPyEndAllowThreads(__tstate);
26422 if (PyErr_Occurred()) SWIG_fail;
26423 }
26424 {
26425 wxTreeItemId * resultptr;
26426 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26427 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26428 }
26429 return resultobj;
26430 fail:
26431 return NULL;
26432 }
26433
26434
26435 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
26436 PyObject *resultobj;
26437 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26438 PyObject *result;
26439 PyObject * obj0 = 0 ;
26440 char *kwnames[] = {
26441 (char *) "self", NULL
26442 };
26443
26444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26447 {
26448 PyThreadState* __tstate = wxPyBeginAllowThreads();
26449 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26450
26451 wxPyEndAllowThreads(__tstate);
26452 if (PyErr_Occurred()) SWIG_fail;
26453 }
26454 resultobj = result;
26455 return resultobj;
26456 fail:
26457 return NULL;
26458 }
26459
26460
26461 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
26462 PyObject *resultobj;
26463 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26464 wxTreeItemId *arg2 = 0 ;
26465 wxTreeItemId result;
26466 PyObject * obj0 = 0 ;
26467 PyObject * obj1 = 0 ;
26468 char *kwnames[] = {
26469 (char *) "self",(char *) "item", NULL
26470 };
26471
26472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26475 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26476 SWIG_POINTER_EXCEPTION | 0)) == -1)
26477 SWIG_fail;
26478 if (arg2 == NULL) {
26479 PyErr_SetString(PyExc_TypeError,"null reference");
26480 SWIG_fail;
26481 }
26482 {
26483 PyThreadState* __tstate = wxPyBeginAllowThreads();
26484 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26485
26486 wxPyEndAllowThreads(__tstate);
26487 if (PyErr_Occurred()) SWIG_fail;
26488 }
26489 {
26490 wxTreeItemId * resultptr;
26491 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26492 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26493 }
26494 return resultobj;
26495 fail:
26496 return NULL;
26497 }
26498
26499
26500 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26501 PyObject *resultobj;
26502 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26503 wxTreeItemId *arg2 = 0 ;
26504 PyObject *result;
26505 PyObject * obj0 = 0 ;
26506 PyObject * obj1 = 0 ;
26507 char *kwnames[] = {
26508 (char *) "self",(char *) "item", NULL
26509 };
26510
26511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26515 SWIG_POINTER_EXCEPTION | 0)) == -1)
26516 SWIG_fail;
26517 if (arg2 == NULL) {
26518 PyErr_SetString(PyExc_TypeError,"null reference");
26519 SWIG_fail;
26520 }
26521 {
26522 PyThreadState* __tstate = wxPyBeginAllowThreads();
26523 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26524
26525 wxPyEndAllowThreads(__tstate);
26526 if (PyErr_Occurred()) SWIG_fail;
26527 }
26528 resultobj = result;
26529 return resultobj;
26530 fail:
26531 return NULL;
26532 }
26533
26534
26535 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26536 PyObject *resultobj;
26537 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26538 wxTreeItemId *arg2 = 0 ;
26539 void *arg3 = (void *) 0 ;
26540 PyObject *result;
26541 PyObject * obj0 = 0 ;
26542 PyObject * obj1 = 0 ;
26543 PyObject * obj2 = 0 ;
26544 char *kwnames[] = {
26545 (char *) "self",(char *) "item",(char *) "cookie", NULL
26546 };
26547
26548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26551 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26552 SWIG_POINTER_EXCEPTION | 0)) == -1)
26553 SWIG_fail;
26554 if (arg2 == NULL) {
26555 PyErr_SetString(PyExc_TypeError,"null reference");
26556 SWIG_fail;
26557 }
26558 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26559 {
26560 PyThreadState* __tstate = wxPyBeginAllowThreads();
26561 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26562
26563 wxPyEndAllowThreads(__tstate);
26564 if (PyErr_Occurred()) SWIG_fail;
26565 }
26566 resultobj = result;
26567 return resultobj;
26568 fail:
26569 return NULL;
26570 }
26571
26572
26573 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26574 PyObject *resultobj;
26575 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26576 wxTreeItemId *arg2 = 0 ;
26577 wxTreeItemId result;
26578 PyObject * obj0 = 0 ;
26579 PyObject * obj1 = 0 ;
26580 char *kwnames[] = {
26581 (char *) "self",(char *) "item", NULL
26582 };
26583
26584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
26585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26587 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26588 SWIG_POINTER_EXCEPTION | 0)) == -1)
26589 SWIG_fail;
26590 if (arg2 == NULL) {
26591 PyErr_SetString(PyExc_TypeError,"null reference");
26592 SWIG_fail;
26593 }
26594 {
26595 PyThreadState* __tstate = wxPyBeginAllowThreads();
26596 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26597
26598 wxPyEndAllowThreads(__tstate);
26599 if (PyErr_Occurred()) SWIG_fail;
26600 }
26601 {
26602 wxTreeItemId * resultptr;
26603 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26604 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26605 }
26606 return resultobj;
26607 fail:
26608 return NULL;
26609 }
26610
26611
26612 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26613 PyObject *resultobj;
26614 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26615 wxTreeItemId *arg2 = 0 ;
26616 wxTreeItemId result;
26617 PyObject * obj0 = 0 ;
26618 PyObject * obj1 = 0 ;
26619 char *kwnames[] = {
26620 (char *) "self",(char *) "item", NULL
26621 };
26622
26623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26626 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26627 SWIG_POINTER_EXCEPTION | 0)) == -1)
26628 SWIG_fail;
26629 if (arg2 == NULL) {
26630 PyErr_SetString(PyExc_TypeError,"null reference");
26631 SWIG_fail;
26632 }
26633 {
26634 PyThreadState* __tstate = wxPyBeginAllowThreads();
26635 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26636
26637 wxPyEndAllowThreads(__tstate);
26638 if (PyErr_Occurred()) SWIG_fail;
26639 }
26640 {
26641 wxTreeItemId * resultptr;
26642 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26643 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26644 }
26645 return resultobj;
26646 fail:
26647 return NULL;
26648 }
26649
26650
26651 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26652 PyObject *resultobj;
26653 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26654 wxTreeItemId *arg2 = 0 ;
26655 wxTreeItemId result;
26656 PyObject * obj0 = 0 ;
26657 PyObject * obj1 = 0 ;
26658 char *kwnames[] = {
26659 (char *) "self",(char *) "item", NULL
26660 };
26661
26662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26665 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26666 SWIG_POINTER_EXCEPTION | 0)) == -1)
26667 SWIG_fail;
26668 if (arg2 == NULL) {
26669 PyErr_SetString(PyExc_TypeError,"null reference");
26670 SWIG_fail;
26671 }
26672 {
26673 PyThreadState* __tstate = wxPyBeginAllowThreads();
26674 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26675
26676 wxPyEndAllowThreads(__tstate);
26677 if (PyErr_Occurred()) SWIG_fail;
26678 }
26679 {
26680 wxTreeItemId * resultptr;
26681 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26682 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26683 }
26684 return resultobj;
26685 fail:
26686 return NULL;
26687 }
26688
26689
26690 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26691 PyObject *resultobj;
26692 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26693 wxTreeItemId result;
26694 PyObject * obj0 = 0 ;
26695 char *kwnames[] = {
26696 (char *) "self", NULL
26697 };
26698
26699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
26700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26702 {
26703 PyThreadState* __tstate = wxPyBeginAllowThreads();
26704 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
26705
26706 wxPyEndAllowThreads(__tstate);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
26709 {
26710 wxTreeItemId * resultptr;
26711 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26712 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26713 }
26714 return resultobj;
26715 fail:
26716 return NULL;
26717 }
26718
26719
26720 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26721 PyObject *resultobj;
26722 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26723 wxTreeItemId *arg2 = 0 ;
26724 wxTreeItemId result;
26725 PyObject * obj0 = 0 ;
26726 PyObject * obj1 = 0 ;
26727 char *kwnames[] = {
26728 (char *) "self",(char *) "item", NULL
26729 };
26730
26731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
26732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26734 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26735 SWIG_POINTER_EXCEPTION | 0)) == -1)
26736 SWIG_fail;
26737 if (arg2 == NULL) {
26738 PyErr_SetString(PyExc_TypeError,"null reference");
26739 SWIG_fail;
26740 }
26741 {
26742 PyThreadState* __tstate = wxPyBeginAllowThreads();
26743 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
26744
26745 wxPyEndAllowThreads(__tstate);
26746 if (PyErr_Occurred()) SWIG_fail;
26747 }
26748 {
26749 wxTreeItemId * resultptr;
26750 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26751 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26752 }
26753 return resultobj;
26754 fail:
26755 return NULL;
26756 }
26757
26758
26759 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26760 PyObject *resultobj;
26761 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26762 wxTreeItemId *arg2 = 0 ;
26763 wxTreeItemId result;
26764 PyObject * obj0 = 0 ;
26765 PyObject * obj1 = 0 ;
26766 char *kwnames[] = {
26767 (char *) "self",(char *) "item", NULL
26768 };
26769
26770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
26771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26773 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26774 SWIG_POINTER_EXCEPTION | 0)) == -1)
26775 SWIG_fail;
26776 if (arg2 == NULL) {
26777 PyErr_SetString(PyExc_TypeError,"null reference");
26778 SWIG_fail;
26779 }
26780 {
26781 PyThreadState* __tstate = wxPyBeginAllowThreads();
26782 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
26783
26784 wxPyEndAllowThreads(__tstate);
26785 if (PyErr_Occurred()) SWIG_fail;
26786 }
26787 {
26788 wxTreeItemId * resultptr;
26789 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26790 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26791 }
26792 return resultobj;
26793 fail:
26794 return NULL;
26795 }
26796
26797
26798 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
26799 PyObject *resultobj;
26800 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26801 wxString *arg2 = 0 ;
26802 int arg3 = (int) -1 ;
26803 int arg4 = (int) -1 ;
26804 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
26805 wxTreeItemId result;
26806 bool temp2 = False ;
26807 PyObject * obj0 = 0 ;
26808 PyObject * obj1 = 0 ;
26809 PyObject * obj2 = 0 ;
26810 PyObject * obj3 = 0 ;
26811 PyObject * obj4 = 0 ;
26812 char *kwnames[] = {
26813 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26814 };
26815
26816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26819 {
26820 arg2 = wxString_in_helper(obj1);
26821 if (arg2 == NULL) SWIG_fail;
26822 temp2 = True;
26823 }
26824 if (obj2) {
26825 arg3 = (int) SWIG_AsInt(obj2);
26826 if (PyErr_Occurred()) SWIG_fail;
26827 }
26828 if (obj3) {
26829 arg4 = (int) SWIG_AsInt(obj3);
26830 if (PyErr_Occurred()) SWIG_fail;
26831 }
26832 if (obj4) {
26833 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
26834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26835 }
26836 {
26837 PyThreadState* __tstate = wxPyBeginAllowThreads();
26838 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
26839
26840 wxPyEndAllowThreads(__tstate);
26841 if (PyErr_Occurred()) SWIG_fail;
26842 }
26843 {
26844 wxTreeItemId * resultptr;
26845 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26846 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26847 }
26848 {
26849 if (temp2)
26850 delete arg2;
26851 }
26852 return resultobj;
26853 fail:
26854 {
26855 if (temp2)
26856 delete arg2;
26857 }
26858 return NULL;
26859 }
26860
26861
26862 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26863 PyObject *resultobj;
26864 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26865 wxTreeItemId *arg2 = 0 ;
26866 wxString *arg3 = 0 ;
26867 int arg4 = (int) -1 ;
26868 int arg5 = (int) -1 ;
26869 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26870 wxTreeItemId result;
26871 bool temp3 = False ;
26872 PyObject * obj0 = 0 ;
26873 PyObject * obj1 = 0 ;
26874 PyObject * obj2 = 0 ;
26875 PyObject * obj3 = 0 ;
26876 PyObject * obj4 = 0 ;
26877 PyObject * obj5 = 0 ;
26878 char *kwnames[] = {
26879 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26880 };
26881
26882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26885 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26886 SWIG_POINTER_EXCEPTION | 0)) == -1)
26887 SWIG_fail;
26888 if (arg2 == NULL) {
26889 PyErr_SetString(PyExc_TypeError,"null reference");
26890 SWIG_fail;
26891 }
26892 {
26893 arg3 = wxString_in_helper(obj2);
26894 if (arg3 == NULL) SWIG_fail;
26895 temp3 = True;
26896 }
26897 if (obj3) {
26898 arg4 = (int) SWIG_AsInt(obj3);
26899 if (PyErr_Occurred()) SWIG_fail;
26900 }
26901 if (obj4) {
26902 arg5 = (int) SWIG_AsInt(obj4);
26903 if (PyErr_Occurred()) SWIG_fail;
26904 }
26905 if (obj5) {
26906 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26908 }
26909 {
26910 PyThreadState* __tstate = wxPyBeginAllowThreads();
26911 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26912
26913 wxPyEndAllowThreads(__tstate);
26914 if (PyErr_Occurred()) SWIG_fail;
26915 }
26916 {
26917 wxTreeItemId * resultptr;
26918 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26919 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26920 }
26921 {
26922 if (temp3)
26923 delete arg3;
26924 }
26925 return resultobj;
26926 fail:
26927 {
26928 if (temp3)
26929 delete arg3;
26930 }
26931 return NULL;
26932 }
26933
26934
26935 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26936 PyObject *resultobj;
26937 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26938 wxTreeItemId *arg2 = 0 ;
26939 wxTreeItemId *arg3 = 0 ;
26940 wxString *arg4 = 0 ;
26941 int arg5 = (int) -1 ;
26942 int arg6 = (int) -1 ;
26943 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26944 wxTreeItemId result;
26945 bool temp4 = False ;
26946 PyObject * obj0 = 0 ;
26947 PyObject * obj1 = 0 ;
26948 PyObject * obj2 = 0 ;
26949 PyObject * obj3 = 0 ;
26950 PyObject * obj4 = 0 ;
26951 PyObject * obj5 = 0 ;
26952 PyObject * obj6 = 0 ;
26953 char *kwnames[] = {
26954 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26955 };
26956
26957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26960 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26961 SWIG_POINTER_EXCEPTION | 0)) == -1)
26962 SWIG_fail;
26963 if (arg2 == NULL) {
26964 PyErr_SetString(PyExc_TypeError,"null reference");
26965 SWIG_fail;
26966 }
26967 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
26968 SWIG_POINTER_EXCEPTION | 0)) == -1)
26969 SWIG_fail;
26970 if (arg3 == NULL) {
26971 PyErr_SetString(PyExc_TypeError,"null reference");
26972 SWIG_fail;
26973 }
26974 {
26975 arg4 = wxString_in_helper(obj3);
26976 if (arg4 == NULL) SWIG_fail;
26977 temp4 = True;
26978 }
26979 if (obj4) {
26980 arg5 = (int) SWIG_AsInt(obj4);
26981 if (PyErr_Occurred()) SWIG_fail;
26982 }
26983 if (obj5) {
26984 arg6 = (int) SWIG_AsInt(obj5);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 if (obj6) {
26988 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26990 }
26991 {
26992 PyThreadState* __tstate = wxPyBeginAllowThreads();
26993 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26994
26995 wxPyEndAllowThreads(__tstate);
26996 if (PyErr_Occurred()) SWIG_fail;
26997 }
26998 {
26999 wxTreeItemId * resultptr;
27000 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27001 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27002 }
27003 {
27004 if (temp4)
27005 delete arg4;
27006 }
27007 return resultobj;
27008 fail:
27009 {
27010 if (temp4)
27011 delete arg4;
27012 }
27013 return NULL;
27014 }
27015
27016
27017 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
27018 PyObject *resultobj;
27019 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27020 wxTreeItemId *arg2 = 0 ;
27021 size_t arg3 ;
27022 wxString *arg4 = 0 ;
27023 int arg5 = (int) -1 ;
27024 int arg6 = (int) -1 ;
27025 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27026 wxTreeItemId result;
27027 bool temp4 = False ;
27028 PyObject * obj0 = 0 ;
27029 PyObject * obj1 = 0 ;
27030 PyObject * obj2 = 0 ;
27031 PyObject * obj3 = 0 ;
27032 PyObject * obj4 = 0 ;
27033 PyObject * obj5 = 0 ;
27034 PyObject * obj6 = 0 ;
27035 char *kwnames[] = {
27036 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27037 };
27038
27039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27042 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27043 SWIG_POINTER_EXCEPTION | 0)) == -1)
27044 SWIG_fail;
27045 if (arg2 == NULL) {
27046 PyErr_SetString(PyExc_TypeError,"null reference");
27047 SWIG_fail;
27048 }
27049 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
27050 if (PyErr_Occurred()) SWIG_fail;
27051 {
27052 arg4 = wxString_in_helper(obj3);
27053 if (arg4 == NULL) SWIG_fail;
27054 temp4 = True;
27055 }
27056 if (obj4) {
27057 arg5 = (int) SWIG_AsInt(obj4);
27058 if (PyErr_Occurred()) SWIG_fail;
27059 }
27060 if (obj5) {
27061 arg6 = (int) SWIG_AsInt(obj5);
27062 if (PyErr_Occurred()) SWIG_fail;
27063 }
27064 if (obj6) {
27065 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27067 }
27068 {
27069 PyThreadState* __tstate = wxPyBeginAllowThreads();
27070 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27071
27072 wxPyEndAllowThreads(__tstate);
27073 if (PyErr_Occurred()) SWIG_fail;
27074 }
27075 {
27076 wxTreeItemId * resultptr;
27077 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27078 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27079 }
27080 {
27081 if (temp4)
27082 delete arg4;
27083 }
27084 return resultobj;
27085 fail:
27086 {
27087 if (temp4)
27088 delete arg4;
27089 }
27090 return NULL;
27091 }
27092
27093
27094 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27095 PyObject *resultobj;
27096 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27097 wxTreeItemId *arg2 = 0 ;
27098 wxString *arg3 = 0 ;
27099 int arg4 = (int) -1 ;
27100 int arg5 = (int) -1 ;
27101 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27102 wxTreeItemId result;
27103 bool temp3 = False ;
27104 PyObject * obj0 = 0 ;
27105 PyObject * obj1 = 0 ;
27106 PyObject * obj2 = 0 ;
27107 PyObject * obj3 = 0 ;
27108 PyObject * obj4 = 0 ;
27109 PyObject * obj5 = 0 ;
27110 char *kwnames[] = {
27111 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27112 };
27113
27114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27118 SWIG_POINTER_EXCEPTION | 0)) == -1)
27119 SWIG_fail;
27120 if (arg2 == NULL) {
27121 PyErr_SetString(PyExc_TypeError,"null reference");
27122 SWIG_fail;
27123 }
27124 {
27125 arg3 = wxString_in_helper(obj2);
27126 if (arg3 == NULL) SWIG_fail;
27127 temp3 = True;
27128 }
27129 if (obj3) {
27130 arg4 = (int) SWIG_AsInt(obj3);
27131 if (PyErr_Occurred()) SWIG_fail;
27132 }
27133 if (obj4) {
27134 arg5 = (int) SWIG_AsInt(obj4);
27135 if (PyErr_Occurred()) SWIG_fail;
27136 }
27137 if (obj5) {
27138 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27140 }
27141 {
27142 PyThreadState* __tstate = wxPyBeginAllowThreads();
27143 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27144
27145 wxPyEndAllowThreads(__tstate);
27146 if (PyErr_Occurred()) SWIG_fail;
27147 }
27148 {
27149 wxTreeItemId * resultptr;
27150 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27151 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27152 }
27153 {
27154 if (temp3)
27155 delete arg3;
27156 }
27157 return resultobj;
27158 fail:
27159 {
27160 if (temp3)
27161 delete arg3;
27162 }
27163 return NULL;
27164 }
27165
27166
27167 static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
27168 PyObject *resultobj;
27169 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27170 wxTreeItemId *arg2 = 0 ;
27171 PyObject * obj0 = 0 ;
27172 PyObject * obj1 = 0 ;
27173 char *kwnames[] = {
27174 (char *) "self",(char *) "item", NULL
27175 };
27176
27177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27180 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27181 SWIG_POINTER_EXCEPTION | 0)) == -1)
27182 SWIG_fail;
27183 if (arg2 == NULL) {
27184 PyErr_SetString(PyExc_TypeError,"null reference");
27185 SWIG_fail;
27186 }
27187 {
27188 PyThreadState* __tstate = wxPyBeginAllowThreads();
27189 (arg1)->Delete((wxTreeItemId const &)*arg2);
27190
27191 wxPyEndAllowThreads(__tstate);
27192 if (PyErr_Occurred()) SWIG_fail;
27193 }
27194 Py_INCREF(Py_None); resultobj = Py_None;
27195 return resultobj;
27196 fail:
27197 return NULL;
27198 }
27199
27200
27201 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27202 PyObject *resultobj;
27203 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27204 wxTreeItemId *arg2 = 0 ;
27205 PyObject * obj0 = 0 ;
27206 PyObject * obj1 = 0 ;
27207 char *kwnames[] = {
27208 (char *) "self",(char *) "item", NULL
27209 };
27210
27211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27214 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27215 SWIG_POINTER_EXCEPTION | 0)) == -1)
27216 SWIG_fail;
27217 if (arg2 == NULL) {
27218 PyErr_SetString(PyExc_TypeError,"null reference");
27219 SWIG_fail;
27220 }
27221 {
27222 PyThreadState* __tstate = wxPyBeginAllowThreads();
27223 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27224
27225 wxPyEndAllowThreads(__tstate);
27226 if (PyErr_Occurred()) SWIG_fail;
27227 }
27228 Py_INCREF(Py_None); resultobj = Py_None;
27229 return resultobj;
27230 fail:
27231 return NULL;
27232 }
27233
27234
27235 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
27236 PyObject *resultobj;
27237 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27238 PyObject * obj0 = 0 ;
27239 char *kwnames[] = {
27240 (char *) "self", NULL
27241 };
27242
27243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27246 {
27247 PyThreadState* __tstate = wxPyBeginAllowThreads();
27248 (arg1)->DeleteAllItems();
27249
27250 wxPyEndAllowThreads(__tstate);
27251 if (PyErr_Occurred()) SWIG_fail;
27252 }
27253 Py_INCREF(Py_None); resultobj = Py_None;
27254 return resultobj;
27255 fail:
27256 return NULL;
27257 }
27258
27259
27260 static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
27261 PyObject *resultobj;
27262 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27263 wxTreeItemId *arg2 = 0 ;
27264 PyObject * obj0 = 0 ;
27265 PyObject * obj1 = 0 ;
27266 char *kwnames[] = {
27267 (char *) "self",(char *) "item", NULL
27268 };
27269
27270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27274 SWIG_POINTER_EXCEPTION | 0)) == -1)
27275 SWIG_fail;
27276 if (arg2 == NULL) {
27277 PyErr_SetString(PyExc_TypeError,"null reference");
27278 SWIG_fail;
27279 }
27280 {
27281 PyThreadState* __tstate = wxPyBeginAllowThreads();
27282 (arg1)->Expand((wxTreeItemId const &)*arg2);
27283
27284 wxPyEndAllowThreads(__tstate);
27285 if (PyErr_Occurred()) SWIG_fail;
27286 }
27287 Py_INCREF(Py_None); resultobj = Py_None;
27288 return resultobj;
27289 fail:
27290 return NULL;
27291 }
27292
27293
27294 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
27295 PyObject *resultobj;
27296 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27297 wxTreeItemId *arg2 = 0 ;
27298 PyObject * obj0 = 0 ;
27299 PyObject * obj1 = 0 ;
27300 char *kwnames[] = {
27301 (char *) "self",(char *) "item", NULL
27302 };
27303
27304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27308 SWIG_POINTER_EXCEPTION | 0)) == -1)
27309 SWIG_fail;
27310 if (arg2 == NULL) {
27311 PyErr_SetString(PyExc_TypeError,"null reference");
27312 SWIG_fail;
27313 }
27314 {
27315 PyThreadState* __tstate = wxPyBeginAllowThreads();
27316 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27317
27318 wxPyEndAllowThreads(__tstate);
27319 if (PyErr_Occurred()) SWIG_fail;
27320 }
27321 Py_INCREF(Py_None); resultobj = Py_None;
27322 return resultobj;
27323 fail:
27324 return NULL;
27325 }
27326
27327
27328 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
27329 PyObject *resultobj;
27330 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27331 wxTreeItemId *arg2 = 0 ;
27332 PyObject * obj0 = 0 ;
27333 PyObject * obj1 = 0 ;
27334 char *kwnames[] = {
27335 (char *) "self",(char *) "item", NULL
27336 };
27337
27338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27341 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27342 SWIG_POINTER_EXCEPTION | 0)) == -1)
27343 SWIG_fail;
27344 if (arg2 == NULL) {
27345 PyErr_SetString(PyExc_TypeError,"null reference");
27346 SWIG_fail;
27347 }
27348 {
27349 PyThreadState* __tstate = wxPyBeginAllowThreads();
27350 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27351
27352 wxPyEndAllowThreads(__tstate);
27353 if (PyErr_Occurred()) SWIG_fail;
27354 }
27355 Py_INCREF(Py_None); resultobj = Py_None;
27356 return resultobj;
27357 fail:
27358 return NULL;
27359 }
27360
27361
27362 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
27363 PyObject *resultobj;
27364 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27365 wxTreeItemId *arg2 = 0 ;
27366 PyObject * obj0 = 0 ;
27367 PyObject * obj1 = 0 ;
27368 char *kwnames[] = {
27369 (char *) "self",(char *) "item", NULL
27370 };
27371
27372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27376 SWIG_POINTER_EXCEPTION | 0)) == -1)
27377 SWIG_fail;
27378 if (arg2 == NULL) {
27379 PyErr_SetString(PyExc_TypeError,"null reference");
27380 SWIG_fail;
27381 }
27382 {
27383 PyThreadState* __tstate = wxPyBeginAllowThreads();
27384 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27385
27386 wxPyEndAllowThreads(__tstate);
27387 if (PyErr_Occurred()) SWIG_fail;
27388 }
27389 Py_INCREF(Py_None); resultobj = Py_None;
27390 return resultobj;
27391 fail:
27392 return NULL;
27393 }
27394
27395
27396 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
27397 PyObject *resultobj;
27398 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27399 PyObject * obj0 = 0 ;
27400 char *kwnames[] = {
27401 (char *) "self", NULL
27402 };
27403
27404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27407 {
27408 PyThreadState* __tstate = wxPyBeginAllowThreads();
27409 (arg1)->Unselect();
27410
27411 wxPyEndAllowThreads(__tstate);
27412 if (PyErr_Occurred()) SWIG_fail;
27413 }
27414 Py_INCREF(Py_None); resultobj = Py_None;
27415 return resultobj;
27416 fail:
27417 return NULL;
27418 }
27419
27420
27421 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27422 PyObject *resultobj;
27423 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27424 wxTreeItemId *arg2 = 0 ;
27425 PyObject * obj0 = 0 ;
27426 PyObject * obj1 = 0 ;
27427 char *kwnames[] = {
27428 (char *) "self",(char *) "item", NULL
27429 };
27430
27431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27435 SWIG_POINTER_EXCEPTION | 0)) == -1)
27436 SWIG_fail;
27437 if (arg2 == NULL) {
27438 PyErr_SetString(PyExc_TypeError,"null reference");
27439 SWIG_fail;
27440 }
27441 {
27442 PyThreadState* __tstate = wxPyBeginAllowThreads();
27443 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27444
27445 wxPyEndAllowThreads(__tstate);
27446 if (PyErr_Occurred()) SWIG_fail;
27447 }
27448 Py_INCREF(Py_None); resultobj = Py_None;
27449 return resultobj;
27450 fail:
27451 return NULL;
27452 }
27453
27454
27455 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
27456 PyObject *resultobj;
27457 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27458 PyObject * obj0 = 0 ;
27459 char *kwnames[] = {
27460 (char *) "self", NULL
27461 };
27462
27463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27466 {
27467 PyThreadState* __tstate = wxPyBeginAllowThreads();
27468 (arg1)->UnselectAll();
27469
27470 wxPyEndAllowThreads(__tstate);
27471 if (PyErr_Occurred()) SWIG_fail;
27472 }
27473 Py_INCREF(Py_None); resultobj = Py_None;
27474 return resultobj;
27475 fail:
27476 return NULL;
27477 }
27478
27479
27480 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27481 PyObject *resultobj;
27482 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27483 wxTreeItemId *arg2 = 0 ;
27484 bool arg3 = (bool) True ;
27485 PyObject * obj0 = 0 ;
27486 PyObject * obj1 = 0 ;
27487 PyObject * obj2 = 0 ;
27488 char *kwnames[] = {
27489 (char *) "self",(char *) "item",(char *) "select", NULL
27490 };
27491
27492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27495 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27496 SWIG_POINTER_EXCEPTION | 0)) == -1)
27497 SWIG_fail;
27498 if (arg2 == NULL) {
27499 PyErr_SetString(PyExc_TypeError,"null reference");
27500 SWIG_fail;
27501 }
27502 if (obj2) {
27503 arg3 = (bool) SWIG_AsBool(obj2);
27504 if (PyErr_Occurred()) SWIG_fail;
27505 }
27506 {
27507 PyThreadState* __tstate = wxPyBeginAllowThreads();
27508 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27509
27510 wxPyEndAllowThreads(__tstate);
27511 if (PyErr_Occurred()) SWIG_fail;
27512 }
27513 Py_INCREF(Py_None); resultobj = Py_None;
27514 return resultobj;
27515 fail:
27516 return NULL;
27517 }
27518
27519
27520 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27521 PyObject *resultobj;
27522 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27523 wxTreeItemId *arg2 = 0 ;
27524 PyObject * obj0 = 0 ;
27525 PyObject * obj1 = 0 ;
27526 char *kwnames[] = {
27527 (char *) "self",(char *) "item", NULL
27528 };
27529
27530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27533 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27534 SWIG_POINTER_EXCEPTION | 0)) == -1)
27535 SWIG_fail;
27536 if (arg2 == NULL) {
27537 PyErr_SetString(PyExc_TypeError,"null reference");
27538 SWIG_fail;
27539 }
27540 {
27541 PyThreadState* __tstate = wxPyBeginAllowThreads();
27542 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27543
27544 wxPyEndAllowThreads(__tstate);
27545 if (PyErr_Occurred()) SWIG_fail;
27546 }
27547 Py_INCREF(Py_None); resultobj = Py_None;
27548 return resultobj;
27549 fail:
27550 return NULL;
27551 }
27552
27553
27554 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
27555 PyObject *resultobj;
27556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27557 wxTreeItemId *arg2 = 0 ;
27558 PyObject * obj0 = 0 ;
27559 PyObject * obj1 = 0 ;
27560 char *kwnames[] = {
27561 (char *) "self",(char *) "item", NULL
27562 };
27563
27564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27568 SWIG_POINTER_EXCEPTION | 0)) == -1)
27569 SWIG_fail;
27570 if (arg2 == NULL) {
27571 PyErr_SetString(PyExc_TypeError,"null reference");
27572 SWIG_fail;
27573 }
27574 {
27575 PyThreadState* __tstate = wxPyBeginAllowThreads();
27576 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27577
27578 wxPyEndAllowThreads(__tstate);
27579 if (PyErr_Occurred()) SWIG_fail;
27580 }
27581 Py_INCREF(Py_None); resultobj = Py_None;
27582 return resultobj;
27583 fail:
27584 return NULL;
27585 }
27586
27587
27588 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
27589 PyObject *resultobj;
27590 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27591 wxTreeItemId *arg2 = 0 ;
27592 PyObject * obj0 = 0 ;
27593 PyObject * obj1 = 0 ;
27594 char *kwnames[] = {
27595 (char *) "self",(char *) "item", NULL
27596 };
27597
27598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27602 SWIG_POINTER_EXCEPTION | 0)) == -1)
27603 SWIG_fail;
27604 if (arg2 == NULL) {
27605 PyErr_SetString(PyExc_TypeError,"null reference");
27606 SWIG_fail;
27607 }
27608 {
27609 PyThreadState* __tstate = wxPyBeginAllowThreads();
27610 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27611
27612 wxPyEndAllowThreads(__tstate);
27613 if (PyErr_Occurred()) SWIG_fail;
27614 }
27615 Py_INCREF(Py_None); resultobj = Py_None;
27616 return resultobj;
27617 fail:
27618 return NULL;
27619 }
27620
27621
27622 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
27623 PyObject *resultobj;
27624 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27625 wxTreeItemId *arg2 = 0 ;
27626 PyObject * obj0 = 0 ;
27627 PyObject * obj1 = 0 ;
27628 char *kwnames[] = {
27629 (char *) "self",(char *) "item", NULL
27630 };
27631
27632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27636 SWIG_POINTER_EXCEPTION | 0)) == -1)
27637 SWIG_fail;
27638 if (arg2 == NULL) {
27639 PyErr_SetString(PyExc_TypeError,"null reference");
27640 SWIG_fail;
27641 }
27642 {
27643 PyThreadState* __tstate = wxPyBeginAllowThreads();
27644 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27645
27646 wxPyEndAllowThreads(__tstate);
27647 if (PyErr_Occurred()) SWIG_fail;
27648 }
27649 Py_INCREF(Py_None); resultobj = Py_None;
27650 return resultobj;
27651 fail:
27652 return NULL;
27653 }
27654
27655
27656 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27657 PyObject *resultobj;
27658 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27659 wxTextCtrl *result;
27660 PyObject * obj0 = 0 ;
27661 char *kwnames[] = {
27662 (char *) "self", NULL
27663 };
27664
27665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27668 {
27669 PyThreadState* __tstate = wxPyBeginAllowThreads();
27670 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27671
27672 wxPyEndAllowThreads(__tstate);
27673 if (PyErr_Occurred()) SWIG_fail;
27674 }
27675 {
27676 resultobj = wxPyMake_wxObject(result);
27677 }
27678 return resultobj;
27679 fail:
27680 return NULL;
27681 }
27682
27683
27684 static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
27685 PyObject *resultobj;
27686 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27687 wxTreeItemId *arg2 = 0 ;
27688 bool arg3 = (bool) False ;
27689 PyObject * obj0 = 0 ;
27690 PyObject * obj1 = 0 ;
27691 PyObject * obj2 = 0 ;
27692 char *kwnames[] = {
27693 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
27694 };
27695
27696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
27697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27699 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27700 SWIG_POINTER_EXCEPTION | 0)) == -1)
27701 SWIG_fail;
27702 if (arg2 == NULL) {
27703 PyErr_SetString(PyExc_TypeError,"null reference");
27704 SWIG_fail;
27705 }
27706 if (obj2) {
27707 arg3 = (bool) SWIG_AsBool(obj2);
27708 if (PyErr_Occurred()) SWIG_fail;
27709 }
27710 {
27711 PyThreadState* __tstate = wxPyBeginAllowThreads();
27712 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
27713
27714 wxPyEndAllowThreads(__tstate);
27715 if (PyErr_Occurred()) SWIG_fail;
27716 }
27717 Py_INCREF(Py_None); resultobj = Py_None;
27718 return resultobj;
27719 fail:
27720 return NULL;
27721 }
27722
27723
27724 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27725 PyObject *resultobj;
27726 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27727 wxTreeItemId *arg2 = 0 ;
27728 PyObject * obj0 = 0 ;
27729 PyObject * obj1 = 0 ;
27730 char *kwnames[] = {
27731 (char *) "self",(char *) "item", NULL
27732 };
27733
27734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
27735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27737 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27738 SWIG_POINTER_EXCEPTION | 0)) == -1)
27739 SWIG_fail;
27740 if (arg2 == NULL) {
27741 PyErr_SetString(PyExc_TypeError,"null reference");
27742 SWIG_fail;
27743 }
27744 {
27745 PyThreadState* __tstate = wxPyBeginAllowThreads();
27746 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
27747
27748 wxPyEndAllowThreads(__tstate);
27749 if (PyErr_Occurred()) SWIG_fail;
27750 }
27751 Py_INCREF(Py_None); resultobj = Py_None;
27752 return resultobj;
27753 fail:
27754 return NULL;
27755 }
27756
27757
27758 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
27759 PyObject *resultobj;
27760 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27761 wxPoint *arg2 = 0 ;
27762 int *arg3 = 0 ;
27763 wxTreeItemId result;
27764 wxPoint temp2 ;
27765 int temp3 ;
27766 PyObject * obj0 = 0 ;
27767 PyObject * obj1 = 0 ;
27768 char *kwnames[] = {
27769 (char *) "self",(char *) "point", NULL
27770 };
27771
27772 arg3 = &temp3;
27773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
27774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27776 {
27777 arg2 = &temp2;
27778 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27779 }
27780 {
27781 PyThreadState* __tstate = wxPyBeginAllowThreads();
27782 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
27783
27784 wxPyEndAllowThreads(__tstate);
27785 if (PyErr_Occurred()) SWIG_fail;
27786 }
27787 {
27788 wxTreeItemId * resultptr;
27789 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27790 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27791 }
27792 {
27793 PyObject *o = PyInt_FromLong((long) (*arg3));
27794 resultobj = t_output_helper(resultobj,o);
27795 }
27796 return resultobj;
27797 fail:
27798 return NULL;
27799 }
27800
27801
27802 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
27803 PyObject *resultobj;
27804 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27805 wxTreeItemId *arg2 = 0 ;
27806 bool arg3 = (bool) False ;
27807 PyObject *result;
27808 PyObject * obj0 = 0 ;
27809 PyObject * obj1 = 0 ;
27810 PyObject * obj2 = 0 ;
27811 char *kwnames[] = {
27812 (char *) "self",(char *) "item",(char *) "textOnly", NULL
27813 };
27814
27815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
27816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27818 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27819 SWIG_POINTER_EXCEPTION | 0)) == -1)
27820 SWIG_fail;
27821 if (arg2 == NULL) {
27822 PyErr_SetString(PyExc_TypeError,"null reference");
27823 SWIG_fail;
27824 }
27825 if (obj2) {
27826 arg3 = (bool) SWIG_AsBool(obj2);
27827 if (PyErr_Occurred()) SWIG_fail;
27828 }
27829 {
27830 PyThreadState* __tstate = wxPyBeginAllowThreads();
27831 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
27832
27833 wxPyEndAllowThreads(__tstate);
27834 if (PyErr_Occurred()) SWIG_fail;
27835 }
27836 resultobj = result;
27837 return resultobj;
27838 fail:
27839 return NULL;
27840 }
27841
27842
27843 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
27844 PyObject *resultobj;
27845 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
27846 wxVisualAttributes result;
27847 PyObject * obj0 = 0 ;
27848 char *kwnames[] = {
27849 (char *) "variant", NULL
27850 };
27851
27852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
27853 if (obj0) {
27854 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
27855 if (PyErr_Occurred()) SWIG_fail;
27856 }
27857 {
27858 PyThreadState* __tstate = wxPyBeginAllowThreads();
27859 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
27860
27861 wxPyEndAllowThreads(__tstate);
27862 if (PyErr_Occurred()) SWIG_fail;
27863 }
27864 {
27865 wxVisualAttributes * resultptr;
27866 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
27867 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
27868 }
27869 return resultobj;
27870 fail:
27871 return NULL;
27872 }
27873
27874
27875 static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
27876 PyObject *obj;
27877 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27878 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
27879 Py_INCREF(obj);
27880 return Py_BuildValue((char *)"");
27881 }
27882 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
27883 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
27884 return 1;
27885 }
27886
27887
27888 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
27889 PyObject *pyobj;
27890
27891 {
27892 #if wxUSE_UNICODE
27893 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27894 #else
27895 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27896 #endif
27897 }
27898 return pyobj;
27899 }
27900
27901
27902 static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27903 PyObject *resultobj;
27904 wxWindow *arg1 = (wxWindow *) 0 ;
27905 int arg2 = (int) (int)-1 ;
27906 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
27907 wxString *arg3 = (wxString *) &arg3_defvalue ;
27908 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27909 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27910 wxSize const &arg5_defvalue = wxDefaultSize ;
27911 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27912 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27913 wxString const &arg7_defvalue = wxPyEmptyString ;
27914 wxString *arg7 = (wxString *) &arg7_defvalue ;
27915 int arg8 = (int) 0 ;
27916 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
27917 wxString *arg9 = (wxString *) &arg9_defvalue ;
27918 wxGenericDirCtrl *result;
27919 bool temp3 = False ;
27920 wxPoint temp4 ;
27921 wxSize temp5 ;
27922 bool temp7 = False ;
27923 bool temp9 = False ;
27924 PyObject * obj0 = 0 ;
27925 PyObject * obj1 = 0 ;
27926 PyObject * obj2 = 0 ;
27927 PyObject * obj3 = 0 ;
27928 PyObject * obj4 = 0 ;
27929 PyObject * obj5 = 0 ;
27930 PyObject * obj6 = 0 ;
27931 PyObject * obj7 = 0 ;
27932 PyObject * obj8 = 0 ;
27933 char *kwnames[] = {
27934 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27935 };
27936
27937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
27938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27940 if (obj1) {
27941 arg2 = (int const) SWIG_AsInt(obj1);
27942 if (PyErr_Occurred()) SWIG_fail;
27943 }
27944 if (obj2) {
27945 {
27946 arg3 = wxString_in_helper(obj2);
27947 if (arg3 == NULL) SWIG_fail;
27948 temp3 = True;
27949 }
27950 }
27951 if (obj3) {
27952 {
27953 arg4 = &temp4;
27954 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27955 }
27956 }
27957 if (obj4) {
27958 {
27959 arg5 = &temp5;
27960 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27961 }
27962 }
27963 if (obj5) {
27964 arg6 = (long) SWIG_AsLong(obj5);
27965 if (PyErr_Occurred()) SWIG_fail;
27966 }
27967 if (obj6) {
27968 {
27969 arg7 = wxString_in_helper(obj6);
27970 if (arg7 == NULL) SWIG_fail;
27971 temp7 = True;
27972 }
27973 }
27974 if (obj7) {
27975 arg8 = (int) SWIG_AsInt(obj7);
27976 if (PyErr_Occurred()) SWIG_fail;
27977 }
27978 if (obj8) {
27979 {
27980 arg9 = wxString_in_helper(obj8);
27981 if (arg9 == NULL) SWIG_fail;
27982 temp9 = True;
27983 }
27984 }
27985 {
27986 PyThreadState* __tstate = wxPyBeginAllowThreads();
27987 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
27988
27989 wxPyEndAllowThreads(__tstate);
27990 if (PyErr_Occurred()) SWIG_fail;
27991 }
27992 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27993 {
27994 if (temp3)
27995 delete arg3;
27996 }
27997 {
27998 if (temp7)
27999 delete arg7;
28000 }
28001 {
28002 if (temp9)
28003 delete arg9;
28004 }
28005 return resultobj;
28006 fail:
28007 {
28008 if (temp3)
28009 delete arg3;
28010 }
28011 {
28012 if (temp7)
28013 delete arg7;
28014 }
28015 {
28016 if (temp9)
28017 delete arg9;
28018 }
28019 return NULL;
28020 }
28021
28022
28023 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28024 PyObject *resultobj;
28025 wxGenericDirCtrl *result;
28026 char *kwnames[] = {
28027 NULL
28028 };
28029
28030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
28031 {
28032 PyThreadState* __tstate = wxPyBeginAllowThreads();
28033 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
28034
28035 wxPyEndAllowThreads(__tstate);
28036 if (PyErr_Occurred()) SWIG_fail;
28037 }
28038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28039 return resultobj;
28040 fail:
28041 return NULL;
28042 }
28043
28044
28045 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
28046 PyObject *resultobj;
28047 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28048 wxWindow *arg2 = (wxWindow *) 0 ;
28049 int arg3 = (int) (int)-1 ;
28050 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28051 wxString *arg4 = (wxString *) &arg4_defvalue ;
28052 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28053 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28054 wxSize const &arg6_defvalue = wxDefaultSize ;
28055 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28056 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28057 wxString const &arg8_defvalue = wxPyEmptyString ;
28058 wxString *arg8 = (wxString *) &arg8_defvalue ;
28059 int arg9 = (int) 0 ;
28060 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28061 wxString *arg10 = (wxString *) &arg10_defvalue ;
28062 bool result;
28063 bool temp4 = False ;
28064 wxPoint temp5 ;
28065 wxSize temp6 ;
28066 bool temp8 = False ;
28067 bool temp10 = False ;
28068 PyObject * obj0 = 0 ;
28069 PyObject * obj1 = 0 ;
28070 PyObject * obj2 = 0 ;
28071 PyObject * obj3 = 0 ;
28072 PyObject * obj4 = 0 ;
28073 PyObject * obj5 = 0 ;
28074 PyObject * obj6 = 0 ;
28075 PyObject * obj7 = 0 ;
28076 PyObject * obj8 = 0 ;
28077 PyObject * obj9 = 0 ;
28078 char *kwnames[] = {
28079 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28080 };
28081
28082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28085 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28087 if (obj2) {
28088 arg3 = (int const) SWIG_AsInt(obj2);
28089 if (PyErr_Occurred()) SWIG_fail;
28090 }
28091 if (obj3) {
28092 {
28093 arg4 = wxString_in_helper(obj3);
28094 if (arg4 == NULL) SWIG_fail;
28095 temp4 = True;
28096 }
28097 }
28098 if (obj4) {
28099 {
28100 arg5 = &temp5;
28101 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28102 }
28103 }
28104 if (obj5) {
28105 {
28106 arg6 = &temp6;
28107 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28108 }
28109 }
28110 if (obj6) {
28111 arg7 = (long) SWIG_AsLong(obj6);
28112 if (PyErr_Occurred()) SWIG_fail;
28113 }
28114 if (obj7) {
28115 {
28116 arg8 = wxString_in_helper(obj7);
28117 if (arg8 == NULL) SWIG_fail;
28118 temp8 = True;
28119 }
28120 }
28121 if (obj8) {
28122 arg9 = (int) SWIG_AsInt(obj8);
28123 if (PyErr_Occurred()) SWIG_fail;
28124 }
28125 if (obj9) {
28126 {
28127 arg10 = wxString_in_helper(obj9);
28128 if (arg10 == NULL) SWIG_fail;
28129 temp10 = True;
28130 }
28131 }
28132 {
28133 PyThreadState* __tstate = wxPyBeginAllowThreads();
28134 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28135
28136 wxPyEndAllowThreads(__tstate);
28137 if (PyErr_Occurred()) SWIG_fail;
28138 }
28139 {
28140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28141 }
28142 {
28143 if (temp4)
28144 delete arg4;
28145 }
28146 {
28147 if (temp8)
28148 delete arg8;
28149 }
28150 {
28151 if (temp10)
28152 delete arg10;
28153 }
28154 return resultobj;
28155 fail:
28156 {
28157 if (temp4)
28158 delete arg4;
28159 }
28160 {
28161 if (temp8)
28162 delete arg8;
28163 }
28164 {
28165 if (temp10)
28166 delete arg10;
28167 }
28168 return NULL;
28169 }
28170
28171
28172 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28173 PyObject *resultobj;
28174 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28175 wxString *arg2 = 0 ;
28176 bool result;
28177 bool temp2 = False ;
28178 PyObject * obj0 = 0 ;
28179 PyObject * obj1 = 0 ;
28180 char *kwnames[] = {
28181 (char *) "self",(char *) "path", NULL
28182 };
28183
28184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28187 {
28188 arg2 = wxString_in_helper(obj1);
28189 if (arg2 == NULL) SWIG_fail;
28190 temp2 = True;
28191 }
28192 {
28193 PyThreadState* __tstate = wxPyBeginAllowThreads();
28194 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28195
28196 wxPyEndAllowThreads(__tstate);
28197 if (PyErr_Occurred()) SWIG_fail;
28198 }
28199 {
28200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28201 }
28202 {
28203 if (temp2)
28204 delete arg2;
28205 }
28206 return resultobj;
28207 fail:
28208 {
28209 if (temp2)
28210 delete arg2;
28211 }
28212 return NULL;
28213 }
28214
28215
28216 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28217 PyObject *resultobj;
28218 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28219 wxString result;
28220 PyObject * obj0 = 0 ;
28221 char *kwnames[] = {
28222 (char *) "self", NULL
28223 };
28224
28225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28228 {
28229 PyThreadState* __tstate = wxPyBeginAllowThreads();
28230 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28231
28232 wxPyEndAllowThreads(__tstate);
28233 if (PyErr_Occurred()) SWIG_fail;
28234 }
28235 {
28236 #if wxUSE_UNICODE
28237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28238 #else
28239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28240 #endif
28241 }
28242 return resultobj;
28243 fail:
28244 return NULL;
28245 }
28246
28247
28248 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28249 PyObject *resultobj;
28250 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28251 wxString *arg2 = 0 ;
28252 bool temp2 = False ;
28253 PyObject * obj0 = 0 ;
28254 PyObject * obj1 = 0 ;
28255 char *kwnames[] = {
28256 (char *) "self",(char *) "path", NULL
28257 };
28258
28259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28262 {
28263 arg2 = wxString_in_helper(obj1);
28264 if (arg2 == NULL) SWIG_fail;
28265 temp2 = True;
28266 }
28267 {
28268 PyThreadState* __tstate = wxPyBeginAllowThreads();
28269 (arg1)->SetDefaultPath((wxString const &)*arg2);
28270
28271 wxPyEndAllowThreads(__tstate);
28272 if (PyErr_Occurred()) SWIG_fail;
28273 }
28274 Py_INCREF(Py_None); resultobj = Py_None;
28275 {
28276 if (temp2)
28277 delete arg2;
28278 }
28279 return resultobj;
28280 fail:
28281 {
28282 if (temp2)
28283 delete arg2;
28284 }
28285 return NULL;
28286 }
28287
28288
28289 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28290 PyObject *resultobj;
28291 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28292 wxString result;
28293 PyObject * obj0 = 0 ;
28294 char *kwnames[] = {
28295 (char *) "self", NULL
28296 };
28297
28298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28301 {
28302 PyThreadState* __tstate = wxPyBeginAllowThreads();
28303 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28304
28305 wxPyEndAllowThreads(__tstate);
28306 if (PyErr_Occurred()) SWIG_fail;
28307 }
28308 {
28309 #if wxUSE_UNICODE
28310 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28311 #else
28312 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28313 #endif
28314 }
28315 return resultobj;
28316 fail:
28317 return NULL;
28318 }
28319
28320
28321 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
28322 PyObject *resultobj;
28323 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28324 wxString result;
28325 PyObject * obj0 = 0 ;
28326 char *kwnames[] = {
28327 (char *) "self", NULL
28328 };
28329
28330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28333 {
28334 PyThreadState* __tstate = wxPyBeginAllowThreads();
28335 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28336
28337 wxPyEndAllowThreads(__tstate);
28338 if (PyErr_Occurred()) SWIG_fail;
28339 }
28340 {
28341 #if wxUSE_UNICODE
28342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28343 #else
28344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28345 #endif
28346 }
28347 return resultobj;
28348 fail:
28349 return NULL;
28350 }
28351
28352
28353 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28354 PyObject *resultobj;
28355 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28356 wxString *arg2 = 0 ;
28357 bool temp2 = False ;
28358 PyObject * obj0 = 0 ;
28359 PyObject * obj1 = 0 ;
28360 char *kwnames[] = {
28361 (char *) "self",(char *) "path", NULL
28362 };
28363
28364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28367 {
28368 arg2 = wxString_in_helper(obj1);
28369 if (arg2 == NULL) SWIG_fail;
28370 temp2 = True;
28371 }
28372 {
28373 PyThreadState* __tstate = wxPyBeginAllowThreads();
28374 (arg1)->SetPath((wxString const &)*arg2);
28375
28376 wxPyEndAllowThreads(__tstate);
28377 if (PyErr_Occurred()) SWIG_fail;
28378 }
28379 Py_INCREF(Py_None); resultobj = Py_None;
28380 {
28381 if (temp2)
28382 delete arg2;
28383 }
28384 return resultobj;
28385 fail:
28386 {
28387 if (temp2)
28388 delete arg2;
28389 }
28390 return NULL;
28391 }
28392
28393
28394 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28395 PyObject *resultobj;
28396 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28397 bool arg2 ;
28398 PyObject * obj0 = 0 ;
28399 PyObject * obj1 = 0 ;
28400 char *kwnames[] = {
28401 (char *) "self",(char *) "show", NULL
28402 };
28403
28404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28407 arg2 = (bool) SWIG_AsBool(obj1);
28408 if (PyErr_Occurred()) SWIG_fail;
28409 {
28410 PyThreadState* __tstate = wxPyBeginAllowThreads();
28411 (arg1)->ShowHidden(arg2);
28412
28413 wxPyEndAllowThreads(__tstate);
28414 if (PyErr_Occurred()) SWIG_fail;
28415 }
28416 Py_INCREF(Py_None); resultobj = Py_None;
28417 return resultobj;
28418 fail:
28419 return NULL;
28420 }
28421
28422
28423 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28424 PyObject *resultobj;
28425 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28426 bool result;
28427 PyObject * obj0 = 0 ;
28428 char *kwnames[] = {
28429 (char *) "self", NULL
28430 };
28431
28432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28435 {
28436 PyThreadState* __tstate = wxPyBeginAllowThreads();
28437 result = (bool)(arg1)->GetShowHidden();
28438
28439 wxPyEndAllowThreads(__tstate);
28440 if (PyErr_Occurred()) SWIG_fail;
28441 }
28442 {
28443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28444 }
28445 return resultobj;
28446 fail:
28447 return NULL;
28448 }
28449
28450
28451 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28452 PyObject *resultobj;
28453 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28454 wxString result;
28455 PyObject * obj0 = 0 ;
28456 char *kwnames[] = {
28457 (char *) "self", NULL
28458 };
28459
28460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28463 {
28464 PyThreadState* __tstate = wxPyBeginAllowThreads();
28465 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28466
28467 wxPyEndAllowThreads(__tstate);
28468 if (PyErr_Occurred()) SWIG_fail;
28469 }
28470 {
28471 #if wxUSE_UNICODE
28472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28473 #else
28474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28475 #endif
28476 }
28477 return resultobj;
28478 fail:
28479 return NULL;
28480 }
28481
28482
28483 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28484 PyObject *resultobj;
28485 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28486 wxString *arg2 = 0 ;
28487 bool temp2 = False ;
28488 PyObject * obj0 = 0 ;
28489 PyObject * obj1 = 0 ;
28490 char *kwnames[] = {
28491 (char *) "self",(char *) "filter", NULL
28492 };
28493
28494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28497 {
28498 arg2 = wxString_in_helper(obj1);
28499 if (arg2 == NULL) SWIG_fail;
28500 temp2 = True;
28501 }
28502 {
28503 PyThreadState* __tstate = wxPyBeginAllowThreads();
28504 (arg1)->SetFilter((wxString const &)*arg2);
28505
28506 wxPyEndAllowThreads(__tstate);
28507 if (PyErr_Occurred()) SWIG_fail;
28508 }
28509 Py_INCREF(Py_None); resultobj = Py_None;
28510 {
28511 if (temp2)
28512 delete arg2;
28513 }
28514 return resultobj;
28515 fail:
28516 {
28517 if (temp2)
28518 delete arg2;
28519 }
28520 return NULL;
28521 }
28522
28523
28524 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28525 PyObject *resultobj;
28526 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28527 int result;
28528 PyObject * obj0 = 0 ;
28529 char *kwnames[] = {
28530 (char *) "self", NULL
28531 };
28532
28533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28536 {
28537 PyThreadState* __tstate = wxPyBeginAllowThreads();
28538 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28539
28540 wxPyEndAllowThreads(__tstate);
28541 if (PyErr_Occurred()) SWIG_fail;
28542 }
28543 resultobj = SWIG_FromInt((int)result);
28544 return resultobj;
28545 fail:
28546 return NULL;
28547 }
28548
28549
28550 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28551 PyObject *resultobj;
28552 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28553 int arg2 ;
28554 PyObject * obj0 = 0 ;
28555 PyObject * obj1 = 0 ;
28556 char *kwnames[] = {
28557 (char *) "self",(char *) "n", NULL
28558 };
28559
28560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28563 arg2 = (int) SWIG_AsInt(obj1);
28564 if (PyErr_Occurred()) SWIG_fail;
28565 {
28566 PyThreadState* __tstate = wxPyBeginAllowThreads();
28567 (arg1)->SetFilterIndex(arg2);
28568
28569 wxPyEndAllowThreads(__tstate);
28570 if (PyErr_Occurred()) SWIG_fail;
28571 }
28572 Py_INCREF(Py_None); resultobj = Py_None;
28573 return resultobj;
28574 fail:
28575 return NULL;
28576 }
28577
28578
28579 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
28580 PyObject *resultobj;
28581 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28582 wxTreeItemId result;
28583 PyObject * obj0 = 0 ;
28584 char *kwnames[] = {
28585 (char *) "self", NULL
28586 };
28587
28588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28591 {
28592 PyThreadState* __tstate = wxPyBeginAllowThreads();
28593 result = (arg1)->GetRootId();
28594
28595 wxPyEndAllowThreads(__tstate);
28596 if (PyErr_Occurred()) SWIG_fail;
28597 }
28598 {
28599 wxTreeItemId * resultptr;
28600 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28601 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28602 }
28603 return resultobj;
28604 fail:
28605 return NULL;
28606 }
28607
28608
28609 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28610 PyObject *resultobj;
28611 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28612 wxPyTreeCtrl *result;
28613 PyObject * obj0 = 0 ;
28614 char *kwnames[] = {
28615 (char *) "self", NULL
28616 };
28617
28618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
28619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28621 {
28622 PyThreadState* __tstate = wxPyBeginAllowThreads();
28623 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
28624
28625 wxPyEndAllowThreads(__tstate);
28626 if (PyErr_Occurred()) SWIG_fail;
28627 }
28628 {
28629 resultobj = wxPyMake_wxObject(result);
28630 }
28631 return resultobj;
28632 fail:
28633 return NULL;
28634 }
28635
28636
28637 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28638 PyObject *resultobj;
28639 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28640 wxDirFilterListCtrl *result;
28641 PyObject * obj0 = 0 ;
28642 char *kwnames[] = {
28643 (char *) "self", NULL
28644 };
28645
28646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
28647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28649 {
28650 PyThreadState* __tstate = wxPyBeginAllowThreads();
28651 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
28652
28653 wxPyEndAllowThreads(__tstate);
28654 if (PyErr_Occurred()) SWIG_fail;
28655 }
28656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
28657 return resultobj;
28658 fail:
28659 return NULL;
28660 }
28661
28662
28663 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28664 PyObject *resultobj;
28665 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28666 wxTreeItemId arg2 ;
28667 wxString *arg3 = 0 ;
28668 bool *arg4 = 0 ;
28669 wxTreeItemId result;
28670 wxTreeItemId *argp2 ;
28671 bool temp3 = False ;
28672 bool temp4 ;
28673 PyObject * obj0 = 0 ;
28674 PyObject * obj1 = 0 ;
28675 PyObject * obj2 = 0 ;
28676 char *kwnames[] = {
28677 (char *) "self",(char *) "parentId",(char *) "path", NULL
28678 };
28679
28680 arg4 = &temp4;
28681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
28682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28684 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
28685 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
28686 arg2 = *argp2;
28687 {
28688 arg3 = wxString_in_helper(obj2);
28689 if (arg3 == NULL) SWIG_fail;
28690 temp3 = True;
28691 }
28692 {
28693 PyThreadState* __tstate = wxPyBeginAllowThreads();
28694 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
28695
28696 wxPyEndAllowThreads(__tstate);
28697 if (PyErr_Occurred()) SWIG_fail;
28698 }
28699 {
28700 wxTreeItemId * resultptr;
28701 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28702 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28703 }
28704 {
28705 PyObject *o = PyInt_FromLong((long) (*arg4));
28706 resultobj = t_output_helper(resultobj,o);
28707 }
28708 {
28709 if (temp3)
28710 delete arg3;
28711 }
28712 return resultobj;
28713 fail:
28714 {
28715 if (temp3)
28716 delete arg3;
28717 }
28718 return NULL;
28719 }
28720
28721
28722 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
28723 PyObject *resultobj;
28724 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28725 PyObject * obj0 = 0 ;
28726 char *kwnames[] = {
28727 (char *) "self", NULL
28728 };
28729
28730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
28731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28733 {
28734 PyThreadState* __tstate = wxPyBeginAllowThreads();
28735 (arg1)->DoResize();
28736
28737 wxPyEndAllowThreads(__tstate);
28738 if (PyErr_Occurred()) SWIG_fail;
28739 }
28740 Py_INCREF(Py_None); resultobj = Py_None;
28741 return resultobj;
28742 fail:
28743 return NULL;
28744 }
28745
28746
28747 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
28748 PyObject *resultobj;
28749 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28750 PyObject * obj0 = 0 ;
28751 char *kwnames[] = {
28752 (char *) "self", NULL
28753 };
28754
28755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
28756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28758 {
28759 PyThreadState* __tstate = wxPyBeginAllowThreads();
28760 (arg1)->ReCreateTree();
28761
28762 wxPyEndAllowThreads(__tstate);
28763 if (PyErr_Occurred()) SWIG_fail;
28764 }
28765 Py_INCREF(Py_None); resultobj = Py_None;
28766 return resultobj;
28767 fail:
28768 return NULL;
28769 }
28770
28771
28772 static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
28773 PyObject *obj;
28774 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28775 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
28776 Py_INCREF(obj);
28777 return Py_BuildValue((char *)"");
28778 }
28779 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28780 PyObject *resultobj;
28781 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28782 int arg2 = (int) (int)-1 ;
28783 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28784 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28785 wxSize const &arg4_defvalue = wxDefaultSize ;
28786 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28787 long arg5 = (long) 0 ;
28788 wxDirFilterListCtrl *result;
28789 wxPoint temp3 ;
28790 wxSize temp4 ;
28791 PyObject * obj0 = 0 ;
28792 PyObject * obj1 = 0 ;
28793 PyObject * obj2 = 0 ;
28794 PyObject * obj3 = 0 ;
28795 PyObject * obj4 = 0 ;
28796 char *kwnames[] = {
28797 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28798 };
28799
28800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28803 if (obj1) {
28804 arg2 = (int const) SWIG_AsInt(obj1);
28805 if (PyErr_Occurred()) SWIG_fail;
28806 }
28807 if (obj2) {
28808 {
28809 arg3 = &temp3;
28810 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28811 }
28812 }
28813 if (obj3) {
28814 {
28815 arg4 = &temp4;
28816 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28817 }
28818 }
28819 if (obj4) {
28820 arg5 = (long) SWIG_AsLong(obj4);
28821 if (PyErr_Occurred()) SWIG_fail;
28822 }
28823 {
28824 PyThreadState* __tstate = wxPyBeginAllowThreads();
28825 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28826
28827 wxPyEndAllowThreads(__tstate);
28828 if (PyErr_Occurred()) SWIG_fail;
28829 }
28830 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28831 return resultobj;
28832 fail:
28833 return NULL;
28834 }
28835
28836
28837 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28838 PyObject *resultobj;
28839 wxDirFilterListCtrl *result;
28840 char *kwnames[] = {
28841 NULL
28842 };
28843
28844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
28845 {
28846 PyThreadState* __tstate = wxPyBeginAllowThreads();
28847 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
28848
28849 wxPyEndAllowThreads(__tstate);
28850 if (PyErr_Occurred()) SWIG_fail;
28851 }
28852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28853 return resultobj;
28854 fail:
28855 return NULL;
28856 }
28857
28858
28859 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
28860 PyObject *resultobj;
28861 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28862 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
28863 int arg3 = (int) (int)-1 ;
28864 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28865 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28866 wxSize const &arg5_defvalue = wxDefaultSize ;
28867 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28868 long arg6 = (long) 0 ;
28869 bool result;
28870 wxPoint temp4 ;
28871 wxSize temp5 ;
28872 PyObject * obj0 = 0 ;
28873 PyObject * obj1 = 0 ;
28874 PyObject * obj2 = 0 ;
28875 PyObject * obj3 = 0 ;
28876 PyObject * obj4 = 0 ;
28877 PyObject * obj5 = 0 ;
28878 char *kwnames[] = {
28879 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28880 };
28881
28882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28885 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
28886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28887 if (obj2) {
28888 arg3 = (int const) SWIG_AsInt(obj2);
28889 if (PyErr_Occurred()) SWIG_fail;
28890 }
28891 if (obj3) {
28892 {
28893 arg4 = &temp4;
28894 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28895 }
28896 }
28897 if (obj4) {
28898 {
28899 arg5 = &temp5;
28900 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28901 }
28902 }
28903 if (obj5) {
28904 arg6 = (long) SWIG_AsLong(obj5);
28905 if (PyErr_Occurred()) SWIG_fail;
28906 }
28907 {
28908 PyThreadState* __tstate = wxPyBeginAllowThreads();
28909 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
28910
28911 wxPyEndAllowThreads(__tstate);
28912 if (PyErr_Occurred()) SWIG_fail;
28913 }
28914 {
28915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28916 }
28917 return resultobj;
28918 fail:
28919 return NULL;
28920 }
28921
28922
28923 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
28924 PyObject *resultobj;
28925 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28926 wxString *arg2 = 0 ;
28927 int arg3 ;
28928 bool temp2 = False ;
28929 PyObject * obj0 = 0 ;
28930 PyObject * obj1 = 0 ;
28931 PyObject * obj2 = 0 ;
28932 char *kwnames[] = {
28933 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
28934 };
28935
28936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
28937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28939 {
28940 arg2 = wxString_in_helper(obj1);
28941 if (arg2 == NULL) SWIG_fail;
28942 temp2 = True;
28943 }
28944 arg3 = (int) SWIG_AsInt(obj2);
28945 if (PyErr_Occurred()) SWIG_fail;
28946 {
28947 PyThreadState* __tstate = wxPyBeginAllowThreads();
28948 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
28949
28950 wxPyEndAllowThreads(__tstate);
28951 if (PyErr_Occurred()) SWIG_fail;
28952 }
28953 Py_INCREF(Py_None); resultobj = Py_None;
28954 {
28955 if (temp2)
28956 delete arg2;
28957 }
28958 return resultobj;
28959 fail:
28960 {
28961 if (temp2)
28962 delete arg2;
28963 }
28964 return NULL;
28965 }
28966
28967
28968 static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
28969 PyObject *obj;
28970 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28971 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
28972 Py_INCREF(obj);
28973 return Py_BuildValue((char *)"");
28974 }
28975 static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28976 PyObject *resultobj;
28977 wxWindow *arg1 = (wxWindow *) 0 ;
28978 int arg2 ;
28979 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28980 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28981 wxSize const &arg4_defvalue = wxDefaultSize ;
28982 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28983 long arg5 = (long) 0 ;
28984 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28985 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28986 wxString const &arg7_defvalue = wxPyControlNameStr ;
28987 wxString *arg7 = (wxString *) &arg7_defvalue ;
28988 wxPyControl *result;
28989 wxPoint temp3 ;
28990 wxSize temp4 ;
28991 bool temp7 = False ;
28992 PyObject * obj0 = 0 ;
28993 PyObject * obj1 = 0 ;
28994 PyObject * obj2 = 0 ;
28995 PyObject * obj3 = 0 ;
28996 PyObject * obj4 = 0 ;
28997 PyObject * obj5 = 0 ;
28998 PyObject * obj6 = 0 ;
28999 char *kwnames[] = {
29000 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29001 };
29002
29003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
29004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29006 arg2 = (int const) SWIG_AsInt(obj1);
29007 if (PyErr_Occurred()) SWIG_fail;
29008 if (obj2) {
29009 {
29010 arg3 = &temp3;
29011 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29012 }
29013 }
29014 if (obj3) {
29015 {
29016 arg4 = &temp4;
29017 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29018 }
29019 }
29020 if (obj4) {
29021 arg5 = (long) SWIG_AsLong(obj4);
29022 if (PyErr_Occurred()) SWIG_fail;
29023 }
29024 if (obj5) {
29025 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
29026 SWIG_POINTER_EXCEPTION | 0)) == -1)
29027 SWIG_fail;
29028 if (arg6 == NULL) {
29029 PyErr_SetString(PyExc_TypeError,"null reference");
29030 SWIG_fail;
29031 }
29032 }
29033 if (obj6) {
29034 {
29035 arg7 = wxString_in_helper(obj6);
29036 if (arg7 == NULL) SWIG_fail;
29037 temp7 = True;
29038 }
29039 }
29040 {
29041 PyThreadState* __tstate = wxPyBeginAllowThreads();
29042 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29043
29044 wxPyEndAllowThreads(__tstate);
29045 if (PyErr_Occurred()) SWIG_fail;
29046 }
29047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29048 {
29049 if (temp7)
29050 delete arg7;
29051 }
29052 return resultobj;
29053 fail:
29054 {
29055 if (temp7)
29056 delete arg7;
29057 }
29058 return NULL;
29059 }
29060
29061
29062 static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
29063 PyObject *resultobj;
29064 wxPyControl *result;
29065 char *kwnames[] = {
29066 NULL
29067 };
29068
29069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29070 {
29071 PyThreadState* __tstate = wxPyBeginAllowThreads();
29072 result = (wxPyControl *)new wxPyControl();
29073
29074 wxPyEndAllowThreads(__tstate);
29075 if (PyErr_Occurred()) SWIG_fail;
29076 }
29077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29078 return resultobj;
29079 fail:
29080 return NULL;
29081 }
29082
29083
29084 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
29085 PyObject *resultobj;
29086 wxPyControl *arg1 = (wxPyControl *) 0 ;
29087 PyObject *arg2 = (PyObject *) 0 ;
29088 PyObject *arg3 = (PyObject *) 0 ;
29089 PyObject * obj0 = 0 ;
29090 PyObject * obj1 = 0 ;
29091 PyObject * obj2 = 0 ;
29092 char *kwnames[] = {
29093 (char *) "self",(char *) "self",(char *) "_class", NULL
29094 };
29095
29096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29099 arg2 = obj1;
29100 arg3 = obj2;
29101 {
29102 PyThreadState* __tstate = wxPyBeginAllowThreads();
29103 (arg1)->_setCallbackInfo(arg2,arg3);
29104
29105 wxPyEndAllowThreads(__tstate);
29106 if (PyErr_Occurred()) SWIG_fail;
29107 }
29108 Py_INCREF(Py_None); resultobj = Py_None;
29109 return resultobj;
29110 fail:
29111 return NULL;
29112 }
29113
29114
29115 static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29116 PyObject *resultobj;
29117 wxPyControl *arg1 = (wxPyControl *) 0 ;
29118 wxSize *arg2 = 0 ;
29119 wxSize temp2 ;
29120 PyObject * obj0 = 0 ;
29121 PyObject * obj1 = 0 ;
29122 char *kwnames[] = {
29123 (char *) "self",(char *) "size", NULL
29124 };
29125
29126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29129 {
29130 arg2 = &temp2;
29131 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29132 }
29133 {
29134 PyThreadState* __tstate = wxPyBeginAllowThreads();
29135 (arg1)->SetBestSize((wxSize const &)*arg2);
29136
29137 wxPyEndAllowThreads(__tstate);
29138 if (PyErr_Occurred()) SWIG_fail;
29139 }
29140 Py_INCREF(Py_None); resultobj = Py_None;
29141 return resultobj;
29142 fail:
29143 return NULL;
29144 }
29145
29146
29147 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29148 PyObject *resultobj;
29149 wxPyControl *arg1 = (wxPyControl *) 0 ;
29150 int arg2 ;
29151 int arg3 ;
29152 int arg4 ;
29153 int arg5 ;
29154 PyObject * obj0 = 0 ;
29155 PyObject * obj1 = 0 ;
29156 PyObject * obj2 = 0 ;
29157 PyObject * obj3 = 0 ;
29158 PyObject * obj4 = 0 ;
29159 char *kwnames[] = {
29160 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29161 };
29162
29163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29166 arg2 = (int) SWIG_AsInt(obj1);
29167 if (PyErr_Occurred()) SWIG_fail;
29168 arg3 = (int) SWIG_AsInt(obj2);
29169 if (PyErr_Occurred()) SWIG_fail;
29170 arg4 = (int) SWIG_AsInt(obj3);
29171 if (PyErr_Occurred()) SWIG_fail;
29172 arg5 = (int) SWIG_AsInt(obj4);
29173 if (PyErr_Occurred()) SWIG_fail;
29174 {
29175 PyThreadState* __tstate = wxPyBeginAllowThreads();
29176 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29177
29178 wxPyEndAllowThreads(__tstate);
29179 if (PyErr_Occurred()) SWIG_fail;
29180 }
29181 Py_INCREF(Py_None); resultobj = Py_None;
29182 return resultobj;
29183 fail:
29184 return NULL;
29185 }
29186
29187
29188 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29189 PyObject *resultobj;
29190 wxPyControl *arg1 = (wxPyControl *) 0 ;
29191 int arg2 ;
29192 int arg3 ;
29193 int arg4 ;
29194 int arg5 ;
29195 int arg6 = (int) wxSIZE_AUTO ;
29196 PyObject * obj0 = 0 ;
29197 PyObject * obj1 = 0 ;
29198 PyObject * obj2 = 0 ;
29199 PyObject * obj3 = 0 ;
29200 PyObject * obj4 = 0 ;
29201 PyObject * obj5 = 0 ;
29202 char *kwnames[] = {
29203 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29204 };
29205
29206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29209 arg2 = (int) SWIG_AsInt(obj1);
29210 if (PyErr_Occurred()) SWIG_fail;
29211 arg3 = (int) SWIG_AsInt(obj2);
29212 if (PyErr_Occurred()) SWIG_fail;
29213 arg4 = (int) SWIG_AsInt(obj3);
29214 if (PyErr_Occurred()) SWIG_fail;
29215 arg5 = (int) SWIG_AsInt(obj4);
29216 if (PyErr_Occurred()) SWIG_fail;
29217 if (obj5) {
29218 arg6 = (int) SWIG_AsInt(obj5);
29219 if (PyErr_Occurred()) SWIG_fail;
29220 }
29221 {
29222 PyThreadState* __tstate = wxPyBeginAllowThreads();
29223 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29224
29225 wxPyEndAllowThreads(__tstate);
29226 if (PyErr_Occurred()) SWIG_fail;
29227 }
29228 Py_INCREF(Py_None); resultobj = Py_None;
29229 return resultobj;
29230 fail:
29231 return NULL;
29232 }
29233
29234
29235 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29236 PyObject *resultobj;
29237 wxPyControl *arg1 = (wxPyControl *) 0 ;
29238 int arg2 ;
29239 int arg3 ;
29240 PyObject * obj0 = 0 ;
29241 PyObject * obj1 = 0 ;
29242 PyObject * obj2 = 0 ;
29243 char *kwnames[] = {
29244 (char *) "self",(char *) "width",(char *) "height", NULL
29245 };
29246
29247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29250 arg2 = (int) SWIG_AsInt(obj1);
29251 if (PyErr_Occurred()) SWIG_fail;
29252 arg3 = (int) SWIG_AsInt(obj2);
29253 if (PyErr_Occurred()) SWIG_fail;
29254 {
29255 PyThreadState* __tstate = wxPyBeginAllowThreads();
29256 (arg1)->base_DoSetClientSize(arg2,arg3);
29257
29258 wxPyEndAllowThreads(__tstate);
29259 if (PyErr_Occurred()) SWIG_fail;
29260 }
29261 Py_INCREF(Py_None); resultobj = Py_None;
29262 return resultobj;
29263 fail:
29264 return NULL;
29265 }
29266
29267
29268 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29269 PyObject *resultobj;
29270 wxPyControl *arg1 = (wxPyControl *) 0 ;
29271 int arg2 ;
29272 int arg3 ;
29273 PyObject * obj0 = 0 ;
29274 PyObject * obj1 = 0 ;
29275 PyObject * obj2 = 0 ;
29276 char *kwnames[] = {
29277 (char *) "self",(char *) "x",(char *) "y", NULL
29278 };
29279
29280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29283 arg2 = (int) SWIG_AsInt(obj1);
29284 if (PyErr_Occurred()) SWIG_fail;
29285 arg3 = (int) SWIG_AsInt(obj2);
29286 if (PyErr_Occurred()) SWIG_fail;
29287 {
29288 PyThreadState* __tstate = wxPyBeginAllowThreads();
29289 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29290
29291 wxPyEndAllowThreads(__tstate);
29292 if (PyErr_Occurred()) SWIG_fail;
29293 }
29294 Py_INCREF(Py_None); resultobj = Py_None;
29295 return resultobj;
29296 fail:
29297 return NULL;
29298 }
29299
29300
29301 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29302 PyObject *resultobj;
29303 wxPyControl *arg1 = (wxPyControl *) 0 ;
29304 int *arg2 = (int *) 0 ;
29305 int *arg3 = (int *) 0 ;
29306 int temp2 ;
29307 int temp3 ;
29308 PyObject * obj0 = 0 ;
29309 char *kwnames[] = {
29310 (char *) "self", NULL
29311 };
29312
29313 arg2 = &temp2;
29314 arg3 = &temp3;
29315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29318 {
29319 PyThreadState* __tstate = wxPyBeginAllowThreads();
29320 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29321
29322 wxPyEndAllowThreads(__tstate);
29323 if (PyErr_Occurred()) SWIG_fail;
29324 }
29325 Py_INCREF(Py_None); resultobj = Py_None;
29326 {
29327 PyObject *o = PyInt_FromLong((long) (*arg2));
29328 resultobj = t_output_helper(resultobj,o);
29329 }
29330 {
29331 PyObject *o = PyInt_FromLong((long) (*arg3));
29332 resultobj = t_output_helper(resultobj,o);
29333 }
29334 return resultobj;
29335 fail:
29336 return NULL;
29337 }
29338
29339
29340 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29341 PyObject *resultobj;
29342 wxPyControl *arg1 = (wxPyControl *) 0 ;
29343 int *arg2 = (int *) 0 ;
29344 int *arg3 = (int *) 0 ;
29345 int temp2 ;
29346 int temp3 ;
29347 PyObject * obj0 = 0 ;
29348 char *kwnames[] = {
29349 (char *) "self", NULL
29350 };
29351
29352 arg2 = &temp2;
29353 arg3 = &temp3;
29354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29357 {
29358 PyThreadState* __tstate = wxPyBeginAllowThreads();
29359 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29360
29361 wxPyEndAllowThreads(__tstate);
29362 if (PyErr_Occurred()) SWIG_fail;
29363 }
29364 Py_INCREF(Py_None); resultobj = Py_None;
29365 {
29366 PyObject *o = PyInt_FromLong((long) (*arg2));
29367 resultobj = t_output_helper(resultobj,o);
29368 }
29369 {
29370 PyObject *o = PyInt_FromLong((long) (*arg3));
29371 resultobj = t_output_helper(resultobj,o);
29372 }
29373 return resultobj;
29374 fail:
29375 return NULL;
29376 }
29377
29378
29379 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29380 PyObject *resultobj;
29381 wxPyControl *arg1 = (wxPyControl *) 0 ;
29382 int *arg2 = (int *) 0 ;
29383 int *arg3 = (int *) 0 ;
29384 int temp2 ;
29385 int temp3 ;
29386 PyObject * obj0 = 0 ;
29387 char *kwnames[] = {
29388 (char *) "self", NULL
29389 };
29390
29391 arg2 = &temp2;
29392 arg3 = &temp3;
29393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29396 {
29397 PyThreadState* __tstate = wxPyBeginAllowThreads();
29398 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29399
29400 wxPyEndAllowThreads(__tstate);
29401 if (PyErr_Occurred()) SWIG_fail;
29402 }
29403 Py_INCREF(Py_None); resultobj = Py_None;
29404 {
29405 PyObject *o = PyInt_FromLong((long) (*arg2));
29406 resultobj = t_output_helper(resultobj,o);
29407 }
29408 {
29409 PyObject *o = PyInt_FromLong((long) (*arg3));
29410 resultobj = t_output_helper(resultobj,o);
29411 }
29412 return resultobj;
29413 fail:
29414 return NULL;
29415 }
29416
29417
29418 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29419 PyObject *resultobj;
29420 wxPyControl *arg1 = (wxPyControl *) 0 ;
29421 wxSize result;
29422 PyObject * obj0 = 0 ;
29423 char *kwnames[] = {
29424 (char *) "self", NULL
29425 };
29426
29427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29430 {
29431 PyThreadState* __tstate = wxPyBeginAllowThreads();
29432 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29433
29434 wxPyEndAllowThreads(__tstate);
29435 if (PyErr_Occurred()) SWIG_fail;
29436 }
29437 {
29438 wxSize * resultptr;
29439 resultptr = new wxSize((wxSize &) result);
29440 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29441 }
29442 return resultobj;
29443 fail:
29444 return NULL;
29445 }
29446
29447
29448 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29449 PyObject *resultobj;
29450 wxPyControl *arg1 = (wxPyControl *) 0 ;
29451 wxSize result;
29452 PyObject * obj0 = 0 ;
29453 char *kwnames[] = {
29454 (char *) "self", NULL
29455 };
29456
29457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29460 {
29461 PyThreadState* __tstate = wxPyBeginAllowThreads();
29462 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29463
29464 wxPyEndAllowThreads(__tstate);
29465 if (PyErr_Occurred()) SWIG_fail;
29466 }
29467 {
29468 wxSize * resultptr;
29469 resultptr = new wxSize((wxSize &) result);
29470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29471 }
29472 return resultobj;
29473 fail:
29474 return NULL;
29475 }
29476
29477
29478 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
29479 PyObject *resultobj;
29480 wxPyControl *arg1 = (wxPyControl *) 0 ;
29481 PyObject * obj0 = 0 ;
29482 char *kwnames[] = {
29483 (char *) "self", NULL
29484 };
29485
29486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29489 {
29490 PyThreadState* __tstate = wxPyBeginAllowThreads();
29491 (arg1)->base_InitDialog();
29492
29493 wxPyEndAllowThreads(__tstate);
29494 if (PyErr_Occurred()) SWIG_fail;
29495 }
29496 Py_INCREF(Py_None); resultobj = Py_None;
29497 return resultobj;
29498 fail:
29499 return NULL;
29500 }
29501
29502
29503 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29504 PyObject *resultobj;
29505 wxPyControl *arg1 = (wxPyControl *) 0 ;
29506 bool result;
29507 PyObject * obj0 = 0 ;
29508 char *kwnames[] = {
29509 (char *) "self", NULL
29510 };
29511
29512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29515 {
29516 PyThreadState* __tstate = wxPyBeginAllowThreads();
29517 result = (bool)(arg1)->base_TransferDataToWindow();
29518
29519 wxPyEndAllowThreads(__tstate);
29520 if (PyErr_Occurred()) SWIG_fail;
29521 }
29522 {
29523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29524 }
29525 return resultobj;
29526 fail:
29527 return NULL;
29528 }
29529
29530
29531 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29532 PyObject *resultobj;
29533 wxPyControl *arg1 = (wxPyControl *) 0 ;
29534 bool result;
29535 PyObject * obj0 = 0 ;
29536 char *kwnames[] = {
29537 (char *) "self", NULL
29538 };
29539
29540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29543 {
29544 PyThreadState* __tstate = wxPyBeginAllowThreads();
29545 result = (bool)(arg1)->base_TransferDataFromWindow();
29546
29547 wxPyEndAllowThreads(__tstate);
29548 if (PyErr_Occurred()) SWIG_fail;
29549 }
29550 {
29551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29552 }
29553 return resultobj;
29554 fail:
29555 return NULL;
29556 }
29557
29558
29559 static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
29560 PyObject *resultobj;
29561 wxPyControl *arg1 = (wxPyControl *) 0 ;
29562 bool result;
29563 PyObject * obj0 = 0 ;
29564 char *kwnames[] = {
29565 (char *) "self", NULL
29566 };
29567
29568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29571 {
29572 PyThreadState* __tstate = wxPyBeginAllowThreads();
29573 result = (bool)(arg1)->base_Validate();
29574
29575 wxPyEndAllowThreads(__tstate);
29576 if (PyErr_Occurred()) SWIG_fail;
29577 }
29578 {
29579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29580 }
29581 return resultobj;
29582 fail:
29583 return NULL;
29584 }
29585
29586
29587 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
29588 PyObject *resultobj;
29589 wxPyControl *arg1 = (wxPyControl *) 0 ;
29590 bool result;
29591 PyObject * obj0 = 0 ;
29592 char *kwnames[] = {
29593 (char *) "self", NULL
29594 };
29595
29596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29599 {
29600 PyThreadState* __tstate = wxPyBeginAllowThreads();
29601 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29602
29603 wxPyEndAllowThreads(__tstate);
29604 if (PyErr_Occurred()) SWIG_fail;
29605 }
29606 {
29607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29608 }
29609 return resultobj;
29610 fail:
29611 return NULL;
29612 }
29613
29614
29615 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
29616 PyObject *resultobj;
29617 wxPyControl *arg1 = (wxPyControl *) 0 ;
29618 bool result;
29619 PyObject * obj0 = 0 ;
29620 char *kwnames[] = {
29621 (char *) "self", NULL
29622 };
29623
29624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
29625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29627 {
29628 PyThreadState* __tstate = wxPyBeginAllowThreads();
29629 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
29630
29631 wxPyEndAllowThreads(__tstate);
29632 if (PyErr_Occurred()) SWIG_fail;
29633 }
29634 {
29635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29636 }
29637 return resultobj;
29638 fail:
29639 return NULL;
29640 }
29641
29642
29643 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29644 PyObject *resultobj;
29645 wxPyControl *arg1 = (wxPyControl *) 0 ;
29646 wxSize result;
29647 PyObject * obj0 = 0 ;
29648 char *kwnames[] = {
29649 (char *) "self", NULL
29650 };
29651
29652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
29653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29655 {
29656 PyThreadState* __tstate = wxPyBeginAllowThreads();
29657 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
29658
29659 wxPyEndAllowThreads(__tstate);
29660 if (PyErr_Occurred()) SWIG_fail;
29661 }
29662 {
29663 wxSize * resultptr;
29664 resultptr = new wxSize((wxSize &) result);
29665 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29666 }
29667 return resultobj;
29668 fail:
29669 return NULL;
29670 }
29671
29672
29673 static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29674 PyObject *resultobj;
29675 wxPyControl *arg1 = (wxPyControl *) 0 ;
29676 wxWindow *arg2 = (wxWindow *) 0 ;
29677 PyObject * obj0 = 0 ;
29678 PyObject * obj1 = 0 ;
29679 char *kwnames[] = {
29680 (char *) "self",(char *) "child", NULL
29681 };
29682
29683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
29684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29686 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29688 {
29689 PyThreadState* __tstate = wxPyBeginAllowThreads();
29690 (arg1)->base_AddChild(arg2);
29691
29692 wxPyEndAllowThreads(__tstate);
29693 if (PyErr_Occurred()) SWIG_fail;
29694 }
29695 Py_INCREF(Py_None); resultobj = Py_None;
29696 return resultobj;
29697 fail:
29698 return NULL;
29699 }
29700
29701
29702 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29703 PyObject *resultobj;
29704 wxPyControl *arg1 = (wxPyControl *) 0 ;
29705 wxWindow *arg2 = (wxWindow *) 0 ;
29706 PyObject * obj0 = 0 ;
29707 PyObject * obj1 = 0 ;
29708 char *kwnames[] = {
29709 (char *) "self",(char *) "child", NULL
29710 };
29711
29712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
29713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29717 {
29718 PyThreadState* __tstate = wxPyBeginAllowThreads();
29719 (arg1)->base_RemoveChild(arg2);
29720
29721 wxPyEndAllowThreads(__tstate);
29722 if (PyErr_Occurred()) SWIG_fail;
29723 }
29724 Py_INCREF(Py_None); resultobj = Py_None;
29725 return resultobj;
29726 fail:
29727 return NULL;
29728 }
29729
29730
29731 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
29732 PyObject *resultobj;
29733 wxPyControl *arg1 = (wxPyControl *) 0 ;
29734 bool result;
29735 PyObject * obj0 = 0 ;
29736 char *kwnames[] = {
29737 (char *) "self", NULL
29738 };
29739
29740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
29741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29743 {
29744 PyThreadState* __tstate = wxPyBeginAllowThreads();
29745 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
29746
29747 wxPyEndAllowThreads(__tstate);
29748 if (PyErr_Occurred()) SWIG_fail;
29749 }
29750 {
29751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29752 }
29753 return resultobj;
29754 fail:
29755 return NULL;
29756 }
29757
29758
29759 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
29760 PyObject *resultobj;
29761 wxPyControl *arg1 = (wxPyControl *) 0 ;
29762 wxColour *arg2 = 0 ;
29763 wxColour temp2 ;
29764 PyObject * obj0 = 0 ;
29765 PyObject * obj1 = 0 ;
29766 char *kwnames[] = {
29767 (char *) "self",(char *) "c", NULL
29768 };
29769
29770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
29771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29773 {
29774 arg2 = &temp2;
29775 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29776 }
29777 {
29778 PyThreadState* __tstate = wxPyBeginAllowThreads();
29779 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
29780
29781 wxPyEndAllowThreads(__tstate);
29782 if (PyErr_Occurred()) SWIG_fail;
29783 }
29784 Py_INCREF(Py_None); resultobj = Py_None;
29785 return resultobj;
29786 fail:
29787 return NULL;
29788 }
29789
29790
29791 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
29792 PyObject *resultobj;
29793 wxPyControl *arg1 = (wxPyControl *) 0 ;
29794 wxVisualAttributes result;
29795 PyObject * obj0 = 0 ;
29796 char *kwnames[] = {
29797 (char *) "self", NULL
29798 };
29799
29800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
29801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29803 {
29804 PyThreadState* __tstate = wxPyBeginAllowThreads();
29805 result = (arg1)->base_GetDefaultAttributes();
29806
29807 wxPyEndAllowThreads(__tstate);
29808 if (PyErr_Occurred()) SWIG_fail;
29809 }
29810 {
29811 wxVisualAttributes * resultptr;
29812 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
29813 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
29814 }
29815 return resultobj;
29816 fail:
29817 return NULL;
29818 }
29819
29820
29821 static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
29822 PyObject *obj;
29823 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29824 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
29825 Py_INCREF(obj);
29826 return Py_BuildValue((char *)"");
29827 }
29828 static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
29829 PyObject *resultobj;
29830 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29831 int arg2 = (int) 0 ;
29832 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29833 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29834 wxHelpEvent *result;
29835 wxPoint temp3 ;
29836 PyObject * obj0 = 0 ;
29837 PyObject * obj1 = 0 ;
29838 PyObject * obj2 = 0 ;
29839 char *kwnames[] = {
29840 (char *) "type",(char *) "winid",(char *) "pt", NULL
29841 };
29842
29843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
29844 if (obj0) {
29845 arg1 = (wxEventType) SWIG_AsInt(obj0);
29846 if (PyErr_Occurred()) SWIG_fail;
29847 }
29848 if (obj1) {
29849 arg2 = (int) SWIG_AsInt(obj1);
29850 if (PyErr_Occurred()) SWIG_fail;
29851 }
29852 if (obj2) {
29853 {
29854 arg3 = &temp3;
29855 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29856 }
29857 }
29858 {
29859 PyThreadState* __tstate = wxPyBeginAllowThreads();
29860 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
29861
29862 wxPyEndAllowThreads(__tstate);
29863 if (PyErr_Occurred()) SWIG_fail;
29864 }
29865 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
29866 return resultobj;
29867 fail:
29868 return NULL;
29869 }
29870
29871
29872 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29873 PyObject *resultobj;
29874 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29875 wxPoint result;
29876 PyObject * obj0 = 0 ;
29877 char *kwnames[] = {
29878 (char *) "self", NULL
29879 };
29880
29881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
29882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29884 {
29885 PyThreadState* __tstate = wxPyBeginAllowThreads();
29886 result = ((wxHelpEvent const *)arg1)->GetPosition();
29887
29888 wxPyEndAllowThreads(__tstate);
29889 if (PyErr_Occurred()) SWIG_fail;
29890 }
29891 {
29892 wxPoint * resultptr;
29893 resultptr = new wxPoint((wxPoint &) result);
29894 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
29895 }
29896 return resultobj;
29897 fail:
29898 return NULL;
29899 }
29900
29901
29902 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29903 PyObject *resultobj;
29904 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29905 wxPoint *arg2 = 0 ;
29906 wxPoint temp2 ;
29907 PyObject * obj0 = 0 ;
29908 PyObject * obj1 = 0 ;
29909 char *kwnames[] = {
29910 (char *) "self",(char *) "pos", NULL
29911 };
29912
29913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
29914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29916 {
29917 arg2 = &temp2;
29918 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29919 }
29920 {
29921 PyThreadState* __tstate = wxPyBeginAllowThreads();
29922 (arg1)->SetPosition((wxPoint const &)*arg2);
29923
29924 wxPyEndAllowThreads(__tstate);
29925 if (PyErr_Occurred()) SWIG_fail;
29926 }
29927 Py_INCREF(Py_None); resultobj = Py_None;
29928 return resultobj;
29929 fail:
29930 return NULL;
29931 }
29932
29933
29934 static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29935 PyObject *resultobj;
29936 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29937 wxString *result;
29938 PyObject * obj0 = 0 ;
29939 char *kwnames[] = {
29940 (char *) "self", NULL
29941 };
29942
29943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
29944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29946 {
29947 PyThreadState* __tstate = wxPyBeginAllowThreads();
29948 {
29949 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
29950 result = (wxString *) &_result_ref;
29951 }
29952
29953 wxPyEndAllowThreads(__tstate);
29954 if (PyErr_Occurred()) SWIG_fail;
29955 }
29956 {
29957 #if wxUSE_UNICODE
29958 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29959 #else
29960 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29961 #endif
29962 }
29963 return resultobj;
29964 fail:
29965 return NULL;
29966 }
29967
29968
29969 static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29970 PyObject *resultobj;
29971 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29972 wxString *arg2 = 0 ;
29973 bool temp2 = False ;
29974 PyObject * obj0 = 0 ;
29975 PyObject * obj1 = 0 ;
29976 char *kwnames[] = {
29977 (char *) "self",(char *) "link", NULL
29978 };
29979
29980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
29981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29983 {
29984 arg2 = wxString_in_helper(obj1);
29985 if (arg2 == NULL) SWIG_fail;
29986 temp2 = True;
29987 }
29988 {
29989 PyThreadState* __tstate = wxPyBeginAllowThreads();
29990 (arg1)->SetLink((wxString const &)*arg2);
29991
29992 wxPyEndAllowThreads(__tstate);
29993 if (PyErr_Occurred()) SWIG_fail;
29994 }
29995 Py_INCREF(Py_None); resultobj = Py_None;
29996 {
29997 if (temp2)
29998 delete arg2;
29999 }
30000 return resultobj;
30001 fail:
30002 {
30003 if (temp2)
30004 delete arg2;
30005 }
30006 return NULL;
30007 }
30008
30009
30010 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
30011 PyObject *resultobj;
30012 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30013 wxString *result;
30014 PyObject * obj0 = 0 ;
30015 char *kwnames[] = {
30016 (char *) "self", NULL
30017 };
30018
30019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
30020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30022 {
30023 PyThreadState* __tstate = wxPyBeginAllowThreads();
30024 {
30025 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
30026 result = (wxString *) &_result_ref;
30027 }
30028
30029 wxPyEndAllowThreads(__tstate);
30030 if (PyErr_Occurred()) SWIG_fail;
30031 }
30032 {
30033 #if wxUSE_UNICODE
30034 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30035 #else
30036 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30037 #endif
30038 }
30039 return resultobj;
30040 fail:
30041 return NULL;
30042 }
30043
30044
30045 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
30046 PyObject *resultobj;
30047 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30048 wxString *arg2 = 0 ;
30049 bool temp2 = False ;
30050 PyObject * obj0 = 0 ;
30051 PyObject * obj1 = 0 ;
30052 char *kwnames[] = {
30053 (char *) "self",(char *) "target", NULL
30054 };
30055
30056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
30057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30059 {
30060 arg2 = wxString_in_helper(obj1);
30061 if (arg2 == NULL) SWIG_fail;
30062 temp2 = True;
30063 }
30064 {
30065 PyThreadState* __tstate = wxPyBeginAllowThreads();
30066 (arg1)->SetTarget((wxString const &)*arg2);
30067
30068 wxPyEndAllowThreads(__tstate);
30069 if (PyErr_Occurred()) SWIG_fail;
30070 }
30071 Py_INCREF(Py_None); resultobj = Py_None;
30072 {
30073 if (temp2)
30074 delete arg2;
30075 }
30076 return resultobj;
30077 fail:
30078 {
30079 if (temp2)
30080 delete arg2;
30081 }
30082 return NULL;
30083 }
30084
30085
30086 static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
30087 PyObject *obj;
30088 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30089 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30090 Py_INCREF(obj);
30091 return Py_BuildValue((char *)"");
30092 }
30093 static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30094 PyObject *resultobj;
30095 wxWindow *arg1 = (wxWindow *) NULL ;
30096 bool arg2 = (bool) True ;
30097 wxContextHelp *result;
30098 PyObject * obj0 = 0 ;
30099 PyObject * obj1 = 0 ;
30100 char *kwnames[] = {
30101 (char *) "window",(char *) "doNow", NULL
30102 };
30103
30104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30105 if (obj0) {
30106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30108 }
30109 if (obj1) {
30110 arg2 = (bool) SWIG_AsBool(obj1);
30111 if (PyErr_Occurred()) SWIG_fail;
30112 }
30113 {
30114 PyThreadState* __tstate = wxPyBeginAllowThreads();
30115 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30116
30117 wxPyEndAllowThreads(__tstate);
30118 if (PyErr_Occurred()) SWIG_fail;
30119 }
30120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30121 return resultobj;
30122 fail:
30123 return NULL;
30124 }
30125
30126
30127 static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30128 PyObject *resultobj;
30129 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30130 PyObject * obj0 = 0 ;
30131 char *kwnames[] = {
30132 (char *) "self", NULL
30133 };
30134
30135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30138 {
30139 PyThreadState* __tstate = wxPyBeginAllowThreads();
30140 delete arg1;
30141
30142 wxPyEndAllowThreads(__tstate);
30143 if (PyErr_Occurred()) SWIG_fail;
30144 }
30145 Py_INCREF(Py_None); resultobj = Py_None;
30146 return resultobj;
30147 fail:
30148 return NULL;
30149 }
30150
30151
30152 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30153 PyObject *resultobj;
30154 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30155 wxWindow *arg2 = (wxWindow *) NULL ;
30156 bool result;
30157 PyObject * obj0 = 0 ;
30158 PyObject * obj1 = 0 ;
30159 char *kwnames[] = {
30160 (char *) "self",(char *) "window", NULL
30161 };
30162
30163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30166 if (obj1) {
30167 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30169 }
30170 {
30171 PyThreadState* __tstate = wxPyBeginAllowThreads();
30172 result = (bool)(arg1)->BeginContextHelp(arg2);
30173
30174 wxPyEndAllowThreads(__tstate);
30175 if (PyErr_Occurred()) SWIG_fail;
30176 }
30177 {
30178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30179 }
30180 return resultobj;
30181 fail:
30182 return NULL;
30183 }
30184
30185
30186 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30187 PyObject *resultobj;
30188 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30189 bool result;
30190 PyObject * obj0 = 0 ;
30191 char *kwnames[] = {
30192 (char *) "self", NULL
30193 };
30194
30195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30198 {
30199 PyThreadState* __tstate = wxPyBeginAllowThreads();
30200 result = (bool)(arg1)->EndContextHelp();
30201
30202 wxPyEndAllowThreads(__tstate);
30203 if (PyErr_Occurred()) SWIG_fail;
30204 }
30205 {
30206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30207 }
30208 return resultobj;
30209 fail:
30210 return NULL;
30211 }
30212
30213
30214 static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
30215 PyObject *obj;
30216 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30217 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30218 Py_INCREF(obj);
30219 return Py_BuildValue((char *)"");
30220 }
30221 static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
30222 PyObject *resultobj;
30223 wxWindow *arg1 = (wxWindow *) 0 ;
30224 int arg2 = (int) wxID_CONTEXT_HELP ;
30225 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30226 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30227 wxSize const &arg4_defvalue = wxDefaultSize ;
30228 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30229 long arg5 = (long) wxBU_AUTODRAW ;
30230 wxContextHelpButton *result;
30231 wxPoint temp3 ;
30232 wxSize temp4 ;
30233 PyObject * obj0 = 0 ;
30234 PyObject * obj1 = 0 ;
30235 PyObject * obj2 = 0 ;
30236 PyObject * obj3 = 0 ;
30237 PyObject * obj4 = 0 ;
30238 char *kwnames[] = {
30239 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30240 };
30241
30242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30245 if (obj1) {
30246 arg2 = (int) SWIG_AsInt(obj1);
30247 if (PyErr_Occurred()) SWIG_fail;
30248 }
30249 if (obj2) {
30250 {
30251 arg3 = &temp3;
30252 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30253 }
30254 }
30255 if (obj3) {
30256 {
30257 arg4 = &temp4;
30258 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30259 }
30260 }
30261 if (obj4) {
30262 arg5 = (long) SWIG_AsLong(obj4);
30263 if (PyErr_Occurred()) SWIG_fail;
30264 }
30265 {
30266 PyThreadState* __tstate = wxPyBeginAllowThreads();
30267 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30268
30269 wxPyEndAllowThreads(__tstate);
30270 if (PyErr_Occurred()) SWIG_fail;
30271 }
30272 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30273 return resultobj;
30274 fail:
30275 return NULL;
30276 }
30277
30278
30279 static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
30280 PyObject *obj;
30281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30282 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30283 Py_INCREF(obj);
30284 return Py_BuildValue((char *)"");
30285 }
30286 static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
30287 PyObject *resultobj;
30288 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30289 wxHelpProvider *result;
30290 PyObject * obj0 = 0 ;
30291 char *kwnames[] = {
30292 (char *) "helpProvider", NULL
30293 };
30294
30295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30298 {
30299 PyThreadState* __tstate = wxPyBeginAllowThreads();
30300 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30301
30302 wxPyEndAllowThreads(__tstate);
30303 if (PyErr_Occurred()) SWIG_fail;
30304 }
30305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30306 return resultobj;
30307 fail:
30308 return NULL;
30309 }
30310
30311
30312 static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
30313 PyObject *resultobj;
30314 wxHelpProvider *result;
30315 char *kwnames[] = {
30316 NULL
30317 };
30318
30319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30320 {
30321 PyThreadState* __tstate = wxPyBeginAllowThreads();
30322 result = (wxHelpProvider *)wxHelpProvider::Get();
30323
30324 wxPyEndAllowThreads(__tstate);
30325 if (PyErr_Occurred()) SWIG_fail;
30326 }
30327 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30328 return resultobj;
30329 fail:
30330 return NULL;
30331 }
30332
30333
30334 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30335 PyObject *resultobj;
30336 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30337 wxWindow *arg2 = (wxWindow *) 0 ;
30338 wxString result;
30339 PyObject * obj0 = 0 ;
30340 PyObject * obj1 = 0 ;
30341 char *kwnames[] = {
30342 (char *) "self",(char *) "window", NULL
30343 };
30344
30345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30350 {
30351 PyThreadState* __tstate = wxPyBeginAllowThreads();
30352 result = (arg1)->GetHelp((wxWindow const *)arg2);
30353
30354 wxPyEndAllowThreads(__tstate);
30355 if (PyErr_Occurred()) SWIG_fail;
30356 }
30357 {
30358 #if wxUSE_UNICODE
30359 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30360 #else
30361 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30362 #endif
30363 }
30364 return resultobj;
30365 fail:
30366 return NULL;
30367 }
30368
30369
30370 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30371 PyObject *resultobj;
30372 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30373 wxWindow *arg2 = (wxWindow *) 0 ;
30374 bool result;
30375 PyObject * obj0 = 0 ;
30376 PyObject * obj1 = 0 ;
30377 char *kwnames[] = {
30378 (char *) "self",(char *) "window", NULL
30379 };
30380
30381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30384 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30386 {
30387 PyThreadState* __tstate = wxPyBeginAllowThreads();
30388 result = (bool)(arg1)->ShowHelp(arg2);
30389
30390 wxPyEndAllowThreads(__tstate);
30391 if (PyErr_Occurred()) SWIG_fail;
30392 }
30393 {
30394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30395 }
30396 return resultobj;
30397 fail:
30398 return NULL;
30399 }
30400
30401
30402 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30403 PyObject *resultobj;
30404 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30405 wxWindow *arg2 = (wxWindow *) 0 ;
30406 wxString *arg3 = 0 ;
30407 bool temp3 = False ;
30408 PyObject * obj0 = 0 ;
30409 PyObject * obj1 = 0 ;
30410 PyObject * obj2 = 0 ;
30411 char *kwnames[] = {
30412 (char *) "self",(char *) "window",(char *) "text", NULL
30413 };
30414
30415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30418 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30420 {
30421 arg3 = wxString_in_helper(obj2);
30422 if (arg3 == NULL) SWIG_fail;
30423 temp3 = True;
30424 }
30425 {
30426 PyThreadState* __tstate = wxPyBeginAllowThreads();
30427 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30428
30429 wxPyEndAllowThreads(__tstate);
30430 if (PyErr_Occurred()) SWIG_fail;
30431 }
30432 Py_INCREF(Py_None); resultobj = Py_None;
30433 {
30434 if (temp3)
30435 delete arg3;
30436 }
30437 return resultobj;
30438 fail:
30439 {
30440 if (temp3)
30441 delete arg3;
30442 }
30443 return NULL;
30444 }
30445
30446
30447 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
30448 PyObject *resultobj;
30449 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30450 int arg2 ;
30451 wxString *arg3 = 0 ;
30452 bool temp3 = False ;
30453 PyObject * obj0 = 0 ;
30454 PyObject * obj1 = 0 ;
30455 PyObject * obj2 = 0 ;
30456 char *kwnames[] = {
30457 (char *) "self",(char *) "id",(char *) "text", NULL
30458 };
30459
30460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30463 arg2 = (int) SWIG_AsInt(obj1);
30464 if (PyErr_Occurred()) SWIG_fail;
30465 {
30466 arg3 = wxString_in_helper(obj2);
30467 if (arg3 == NULL) SWIG_fail;
30468 temp3 = True;
30469 }
30470 {
30471 PyThreadState* __tstate = wxPyBeginAllowThreads();
30472 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30473
30474 wxPyEndAllowThreads(__tstate);
30475 if (PyErr_Occurred()) SWIG_fail;
30476 }
30477 Py_INCREF(Py_None); resultobj = Py_None;
30478 {
30479 if (temp3)
30480 delete arg3;
30481 }
30482 return resultobj;
30483 fail:
30484 {
30485 if (temp3)
30486 delete arg3;
30487 }
30488 return NULL;
30489 }
30490
30491
30492 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30493 PyObject *resultobj;
30494 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30495 wxWindow *arg2 = (wxWindow *) 0 ;
30496 PyObject * obj0 = 0 ;
30497 PyObject * obj1 = 0 ;
30498 char *kwnames[] = {
30499 (char *) "self",(char *) "window", NULL
30500 };
30501
30502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30507 {
30508 PyThreadState* __tstate = wxPyBeginAllowThreads();
30509 (arg1)->RemoveHelp(arg2);
30510
30511 wxPyEndAllowThreads(__tstate);
30512 if (PyErr_Occurred()) SWIG_fail;
30513 }
30514 Py_INCREF(Py_None); resultobj = Py_None;
30515 return resultobj;
30516 fail:
30517 return NULL;
30518 }
30519
30520
30521 static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
30522 PyObject *resultobj;
30523 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30524 PyObject * obj0 = 0 ;
30525 char *kwnames[] = {
30526 (char *) "self", NULL
30527 };
30528
30529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30532 {
30533 PyThreadState* __tstate = wxPyBeginAllowThreads();
30534 wxHelpProvider_Destroy(arg1);
30535
30536 wxPyEndAllowThreads(__tstate);
30537 if (PyErr_Occurred()) SWIG_fail;
30538 }
30539 Py_INCREF(Py_None); resultobj = Py_None;
30540 return resultobj;
30541 fail:
30542 return NULL;
30543 }
30544
30545
30546 static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
30547 PyObject *obj;
30548 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30549 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30550 Py_INCREF(obj);
30551 return Py_BuildValue((char *)"");
30552 }
30553 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
30554 PyObject *resultobj;
30555 wxSimpleHelpProvider *result;
30556 char *kwnames[] = {
30557 NULL
30558 };
30559
30560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30561 {
30562 PyThreadState* __tstate = wxPyBeginAllowThreads();
30563 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30564
30565 wxPyEndAllowThreads(__tstate);
30566 if (PyErr_Occurred()) SWIG_fail;
30567 }
30568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30569 return resultobj;
30570 fail:
30571 return NULL;
30572 }
30573
30574
30575 static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
30576 PyObject *obj;
30577 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30578 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30579 Py_INCREF(obj);
30580 return Py_BuildValue((char *)"");
30581 }
30582 static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30583 PyObject *resultobj;
30584 wxBitmap *arg1 = 0 ;
30585 wxCursor const &arg2_defvalue = wxNullCursor ;
30586 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30587 wxGenericDragImage *result;
30588 PyObject * obj0 = 0 ;
30589 PyObject * obj1 = 0 ;
30590 char *kwnames[] = {
30591 (char *) "image",(char *) "cursor", NULL
30592 };
30593
30594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30596 SWIG_POINTER_EXCEPTION | 0)) == -1)
30597 SWIG_fail;
30598 if (arg1 == NULL) {
30599 PyErr_SetString(PyExc_TypeError,"null reference");
30600 SWIG_fail;
30601 }
30602 if (obj1) {
30603 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30604 SWIG_POINTER_EXCEPTION | 0)) == -1)
30605 SWIG_fail;
30606 if (arg2 == NULL) {
30607 PyErr_SetString(PyExc_TypeError,"null reference");
30608 SWIG_fail;
30609 }
30610 }
30611 {
30612 PyThreadState* __tstate = wxPyBeginAllowThreads();
30613 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30614
30615 wxPyEndAllowThreads(__tstate);
30616 if (PyErr_Occurred()) SWIG_fail;
30617 }
30618 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30619 return resultobj;
30620 fail:
30621 return NULL;
30622 }
30623
30624
30625 static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
30626 PyObject *resultobj;
30627 wxIcon *arg1 = 0 ;
30628 wxCursor const &arg2_defvalue = wxNullCursor ;
30629 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30630 wxGenericDragImage *result;
30631 PyObject * obj0 = 0 ;
30632 PyObject * obj1 = 0 ;
30633 char *kwnames[] = {
30634 (char *) "image",(char *) "cursor", NULL
30635 };
30636
30637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
30638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
30639 SWIG_POINTER_EXCEPTION | 0)) == -1)
30640 SWIG_fail;
30641 if (arg1 == NULL) {
30642 PyErr_SetString(PyExc_TypeError,"null reference");
30643 SWIG_fail;
30644 }
30645 if (obj1) {
30646 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30647 SWIG_POINTER_EXCEPTION | 0)) == -1)
30648 SWIG_fail;
30649 if (arg2 == NULL) {
30650 PyErr_SetString(PyExc_TypeError,"null reference");
30651 SWIG_fail;
30652 }
30653 }
30654 {
30655 PyThreadState* __tstate = wxPyBeginAllowThreads();
30656 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
30657
30658 wxPyEndAllowThreads(__tstate);
30659 if (PyErr_Occurred()) SWIG_fail;
30660 }
30661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30662 return resultobj;
30663 fail:
30664 return NULL;
30665 }
30666
30667
30668 static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
30669 PyObject *resultobj;
30670 wxString *arg1 = 0 ;
30671 wxCursor const &arg2_defvalue = wxNullCursor ;
30672 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30673 wxGenericDragImage *result;
30674 bool temp1 = False ;
30675 PyObject * obj0 = 0 ;
30676 PyObject * obj1 = 0 ;
30677 char *kwnames[] = {
30678 (char *) "str",(char *) "cursor", NULL
30679 };
30680
30681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
30682 {
30683 arg1 = wxString_in_helper(obj0);
30684 if (arg1 == NULL) SWIG_fail;
30685 temp1 = True;
30686 }
30687 if (obj1) {
30688 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30689 SWIG_POINTER_EXCEPTION | 0)) == -1)
30690 SWIG_fail;
30691 if (arg2 == NULL) {
30692 PyErr_SetString(PyExc_TypeError,"null reference");
30693 SWIG_fail;
30694 }
30695 }
30696 {
30697 PyThreadState* __tstate = wxPyBeginAllowThreads();
30698 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
30699
30700 wxPyEndAllowThreads(__tstate);
30701 if (PyErr_Occurred()) SWIG_fail;
30702 }
30703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30704 {
30705 if (temp1)
30706 delete arg1;
30707 }
30708 return resultobj;
30709 fail:
30710 {
30711 if (temp1)
30712 delete arg1;
30713 }
30714 return NULL;
30715 }
30716
30717
30718 static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30719 PyObject *resultobj;
30720 wxPyTreeCtrl *arg1 = 0 ;
30721 wxTreeItemId *arg2 = 0 ;
30722 wxGenericDragImage *result;
30723 PyObject * obj0 = 0 ;
30724 PyObject * obj1 = 0 ;
30725 char *kwnames[] = {
30726 (char *) "treeCtrl",(char *) "id", NULL
30727 };
30728
30729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
30730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
30731 SWIG_POINTER_EXCEPTION | 0)) == -1)
30732 SWIG_fail;
30733 if (arg1 == NULL) {
30734 PyErr_SetString(PyExc_TypeError,"null reference");
30735 SWIG_fail;
30736 }
30737 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
30738 SWIG_POINTER_EXCEPTION | 0)) == -1)
30739 SWIG_fail;
30740 if (arg2 == NULL) {
30741 PyErr_SetString(PyExc_TypeError,"null reference");
30742 SWIG_fail;
30743 }
30744 {
30745 PyThreadState* __tstate = wxPyBeginAllowThreads();
30746 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
30747
30748 wxPyEndAllowThreads(__tstate);
30749 if (PyErr_Occurred()) SWIG_fail;
30750 }
30751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30752 return resultobj;
30753 fail:
30754 return NULL;
30755 }
30756
30757
30758 static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30759 PyObject *resultobj;
30760 wxPyListCtrl *arg1 = 0 ;
30761 long arg2 ;
30762 wxGenericDragImage *result;
30763 PyObject * obj0 = 0 ;
30764 PyObject * obj1 = 0 ;
30765 char *kwnames[] = {
30766 (char *) "listCtrl",(char *) "id", NULL
30767 };
30768
30769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
30770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
30771 SWIG_POINTER_EXCEPTION | 0)) == -1)
30772 SWIG_fail;
30773 if (arg1 == NULL) {
30774 PyErr_SetString(PyExc_TypeError,"null reference");
30775 SWIG_fail;
30776 }
30777 arg2 = (long) SWIG_AsLong(obj1);
30778 if (PyErr_Occurred()) SWIG_fail;
30779 {
30780 PyThreadState* __tstate = wxPyBeginAllowThreads();
30781 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
30782
30783 wxPyEndAllowThreads(__tstate);
30784 if (PyErr_Occurred()) SWIG_fail;
30785 }
30786 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30787 return resultobj;
30788 fail:
30789 return NULL;
30790 }
30791
30792
30793 static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30794 PyObject *resultobj;
30795 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30796 PyObject * obj0 = 0 ;
30797 char *kwnames[] = {
30798 (char *) "self", NULL
30799 };
30800
30801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
30802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30804 {
30805 PyThreadState* __tstate = wxPyBeginAllowThreads();
30806 delete arg1;
30807
30808 wxPyEndAllowThreads(__tstate);
30809 if (PyErr_Occurred()) SWIG_fail;
30810 }
30811 Py_INCREF(Py_None); resultobj = Py_None;
30812 return resultobj;
30813 fail:
30814 return NULL;
30815 }
30816
30817
30818 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
30819 PyObject *resultobj;
30820 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30821 wxBitmap *arg2 = (wxBitmap *) 0 ;
30822 PyObject * obj0 = 0 ;
30823 PyObject * obj1 = 0 ;
30824 char *kwnames[] = {
30825 (char *) "self",(char *) "bitmap", NULL
30826 };
30827
30828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
30829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30831 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
30832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30833 {
30834 PyThreadState* __tstate = wxPyBeginAllowThreads();
30835 (arg1)->SetBackingBitmap(arg2);
30836
30837 wxPyEndAllowThreads(__tstate);
30838 if (PyErr_Occurred()) SWIG_fail;
30839 }
30840 Py_INCREF(Py_None); resultobj = Py_None;
30841 return resultobj;
30842 fail:
30843 return NULL;
30844 }
30845
30846
30847 static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30848 PyObject *resultobj;
30849 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30850 wxPoint *arg2 = 0 ;
30851 wxWindow *arg3 = (wxWindow *) 0 ;
30852 bool arg4 = (bool) False ;
30853 wxRect *arg5 = (wxRect *) NULL ;
30854 bool result;
30855 wxPoint temp2 ;
30856 PyObject * obj0 = 0 ;
30857 PyObject * obj1 = 0 ;
30858 PyObject * obj2 = 0 ;
30859 PyObject * obj3 = 0 ;
30860 PyObject * obj4 = 0 ;
30861 char *kwnames[] = {
30862 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
30863 };
30864
30865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30868 {
30869 arg2 = &temp2;
30870 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30871 }
30872 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30874 if (obj3) {
30875 arg4 = (bool) SWIG_AsBool(obj3);
30876 if (PyErr_Occurred()) SWIG_fail;
30877 }
30878 if (obj4) {
30879 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
30880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30881 }
30882 {
30883 PyThreadState* __tstate = wxPyBeginAllowThreads();
30884 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
30885
30886 wxPyEndAllowThreads(__tstate);
30887 if (PyErr_Occurred()) SWIG_fail;
30888 }
30889 {
30890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30891 }
30892 return resultobj;
30893 fail:
30894 return NULL;
30895 }
30896
30897
30898 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
30899 PyObject *resultobj;
30900 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30901 wxPoint *arg2 = 0 ;
30902 wxWindow *arg3 = (wxWindow *) 0 ;
30903 wxWindow *arg4 = (wxWindow *) 0 ;
30904 bool result;
30905 wxPoint temp2 ;
30906 PyObject * obj0 = 0 ;
30907 PyObject * obj1 = 0 ;
30908 PyObject * obj2 = 0 ;
30909 PyObject * obj3 = 0 ;
30910 char *kwnames[] = {
30911 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
30912 };
30913
30914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30917 {
30918 arg2 = &temp2;
30919 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30920 }
30921 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30923 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
30924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30925 {
30926 PyThreadState* __tstate = wxPyBeginAllowThreads();
30927 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
30928
30929 wxPyEndAllowThreads(__tstate);
30930 if (PyErr_Occurred()) SWIG_fail;
30931 }
30932 {
30933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30934 }
30935 return resultobj;
30936 fail:
30937 return NULL;
30938 }
30939
30940
30941 static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30942 PyObject *resultobj;
30943 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30944 bool result;
30945 PyObject * obj0 = 0 ;
30946 char *kwnames[] = {
30947 (char *) "self", NULL
30948 };
30949
30950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
30951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30953 {
30954 PyThreadState* __tstate = wxPyBeginAllowThreads();
30955 result = (bool)(arg1)->EndDrag();
30956
30957 wxPyEndAllowThreads(__tstate);
30958 if (PyErr_Occurred()) SWIG_fail;
30959 }
30960 {
30961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30962 }
30963 return resultobj;
30964 fail:
30965 return NULL;
30966 }
30967
30968
30969 static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
30970 PyObject *resultobj;
30971 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30972 wxPoint *arg2 = 0 ;
30973 bool result;
30974 wxPoint temp2 ;
30975 PyObject * obj0 = 0 ;
30976 PyObject * obj1 = 0 ;
30977 char *kwnames[] = {
30978 (char *) "self",(char *) "pt", NULL
30979 };
30980
30981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
30982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30984 {
30985 arg2 = &temp2;
30986 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30987 }
30988 {
30989 PyThreadState* __tstate = wxPyBeginAllowThreads();
30990 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
30991
30992 wxPyEndAllowThreads(__tstate);
30993 if (PyErr_Occurred()) SWIG_fail;
30994 }
30995 {
30996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30997 }
30998 return resultobj;
30999 fail:
31000 return NULL;
31001 }
31002
31003
31004 static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
31005 PyObject *resultobj;
31006 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31007 bool result;
31008 PyObject * obj0 = 0 ;
31009 char *kwnames[] = {
31010 (char *) "self", NULL
31011 };
31012
31013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
31014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31016 {
31017 PyThreadState* __tstate = wxPyBeginAllowThreads();
31018 result = (bool)(arg1)->Show();
31019
31020 wxPyEndAllowThreads(__tstate);
31021 if (PyErr_Occurred()) SWIG_fail;
31022 }
31023 {
31024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31025 }
31026 return resultobj;
31027 fail:
31028 return NULL;
31029 }
31030
31031
31032 static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
31033 PyObject *resultobj;
31034 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31035 bool result;
31036 PyObject * obj0 = 0 ;
31037 char *kwnames[] = {
31038 (char *) "self", NULL
31039 };
31040
31041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
31042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31044 {
31045 PyThreadState* __tstate = wxPyBeginAllowThreads();
31046 result = (bool)(arg1)->Hide();
31047
31048 wxPyEndAllowThreads(__tstate);
31049 if (PyErr_Occurred()) SWIG_fail;
31050 }
31051 {
31052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31053 }
31054 return resultobj;
31055 fail:
31056 return NULL;
31057 }
31058
31059
31060 static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
31061 PyObject *resultobj;
31062 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31063 wxPoint *arg2 = 0 ;
31064 wxRect result;
31065 wxPoint temp2 ;
31066 PyObject * obj0 = 0 ;
31067 PyObject * obj1 = 0 ;
31068 char *kwnames[] = {
31069 (char *) "self",(char *) "pos", NULL
31070 };
31071
31072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31075 {
31076 arg2 = &temp2;
31077 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31078 }
31079 {
31080 PyThreadState* __tstate = wxPyBeginAllowThreads();
31081 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31082
31083 wxPyEndAllowThreads(__tstate);
31084 if (PyErr_Occurred()) SWIG_fail;
31085 }
31086 {
31087 wxRect * resultptr;
31088 resultptr = new wxRect((wxRect &) result);
31089 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31090 }
31091 return resultobj;
31092 fail:
31093 return NULL;
31094 }
31095
31096
31097 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
31098 PyObject *resultobj;
31099 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31100 wxDC *arg2 = 0 ;
31101 wxPoint *arg3 = 0 ;
31102 bool result;
31103 wxPoint temp3 ;
31104 PyObject * obj0 = 0 ;
31105 PyObject * obj1 = 0 ;
31106 PyObject * obj2 = 0 ;
31107 char *kwnames[] = {
31108 (char *) "self",(char *) "dc",(char *) "pos", NULL
31109 };
31110
31111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31114 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31115 SWIG_POINTER_EXCEPTION | 0)) == -1)
31116 SWIG_fail;
31117 if (arg2 == NULL) {
31118 PyErr_SetString(PyExc_TypeError,"null reference");
31119 SWIG_fail;
31120 }
31121 {
31122 arg3 = &temp3;
31123 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31124 }
31125 {
31126 PyThreadState* __tstate = wxPyBeginAllowThreads();
31127 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31128
31129 wxPyEndAllowThreads(__tstate);
31130 if (PyErr_Occurred()) SWIG_fail;
31131 }
31132 {
31133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31134 }
31135 return resultobj;
31136 fail:
31137 return NULL;
31138 }
31139
31140
31141 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
31142 PyObject *resultobj;
31143 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31144 wxDC *arg2 = 0 ;
31145 wxMemoryDC *arg3 = 0 ;
31146 wxRect *arg4 = 0 ;
31147 wxRect *arg5 = 0 ;
31148 bool result;
31149 wxRect temp4 ;
31150 wxRect temp5 ;
31151 PyObject * obj0 = 0 ;
31152 PyObject * obj1 = 0 ;
31153 PyObject * obj2 = 0 ;
31154 PyObject * obj3 = 0 ;
31155 PyObject * obj4 = 0 ;
31156 char *kwnames[] = {
31157 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31158 };
31159
31160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31164 SWIG_POINTER_EXCEPTION | 0)) == -1)
31165 SWIG_fail;
31166 if (arg2 == NULL) {
31167 PyErr_SetString(PyExc_TypeError,"null reference");
31168 SWIG_fail;
31169 }
31170 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31171 SWIG_POINTER_EXCEPTION | 0)) == -1)
31172 SWIG_fail;
31173 if (arg3 == NULL) {
31174 PyErr_SetString(PyExc_TypeError,"null reference");
31175 SWIG_fail;
31176 }
31177 {
31178 arg4 = &temp4;
31179 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31180 }
31181 {
31182 arg5 = &temp5;
31183 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31184 }
31185 {
31186 PyThreadState* __tstate = wxPyBeginAllowThreads();
31187 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31188
31189 wxPyEndAllowThreads(__tstate);
31190 if (PyErr_Occurred()) SWIG_fail;
31191 }
31192 {
31193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31194 }
31195 return resultobj;
31196 fail:
31197 return NULL;
31198 }
31199
31200
31201 static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
31202 PyObject *resultobj;
31203 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31204 wxPoint *arg2 = 0 ;
31205 wxPoint *arg3 = 0 ;
31206 bool arg4 ;
31207 bool arg5 ;
31208 bool result;
31209 wxPoint temp2 ;
31210 wxPoint temp3 ;
31211 PyObject * obj0 = 0 ;
31212 PyObject * obj1 = 0 ;
31213 PyObject * obj2 = 0 ;
31214 PyObject * obj3 = 0 ;
31215 PyObject * obj4 = 0 ;
31216 char *kwnames[] = {
31217 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31218 };
31219
31220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31223 {
31224 arg2 = &temp2;
31225 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31226 }
31227 {
31228 arg3 = &temp3;
31229 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31230 }
31231 arg4 = (bool) SWIG_AsBool(obj3);
31232 if (PyErr_Occurred()) SWIG_fail;
31233 arg5 = (bool) SWIG_AsBool(obj4);
31234 if (PyErr_Occurred()) SWIG_fail;
31235 {
31236 PyThreadState* __tstate = wxPyBeginAllowThreads();
31237 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31238
31239 wxPyEndAllowThreads(__tstate);
31240 if (PyErr_Occurred()) SWIG_fail;
31241 }
31242 {
31243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31244 }
31245 return resultobj;
31246 fail:
31247 return NULL;
31248 }
31249
31250
31251 static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
31252 PyObject *obj;
31253 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31254 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31255 Py_INCREF(obj);
31256 return Py_BuildValue((char *)"");
31257 }
31258 static PyMethodDef SwigMethods[] = {
31259 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
31260 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
31261 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
31262 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
31263 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
31264 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31265 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
31266 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
31267 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
31268 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
31269 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
31270 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
31271 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
31272 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
31273 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
31274 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
31275 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
31276 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
31277 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
31278 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
31279 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
31280 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
31281 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
31282 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
31283 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
31284 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31285 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31286 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31287 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
31288 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
31289 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
31290 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
31291 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31292 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
31293 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
31294 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
31295 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
31296 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
31297 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31298 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
31299 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31300 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
31301 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
31302 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
31303 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
31304 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31305 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31306 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
31307 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
31308 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
31309 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31310 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31311 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31312 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
31313 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31314 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
31315 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31316 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS },
31317 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
31318 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31319 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
31320 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31321 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
31322 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
31323 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
31324 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
31325 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
31326 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
31327 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
31328 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
31329 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
31330 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31331 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31332 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
31333 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
31334 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31335 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
31336 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
31337 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
31338 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
31339 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31340 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
31341 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
31342 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
31343 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
31344 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
31345 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
31346 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31347 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
31348 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
31349 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
31350 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
31351 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31352 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
31353 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
31354 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
31355 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
31356 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31357 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
31358 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
31359 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31360 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
31361 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
31362 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
31363 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
31364 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
31365 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
31366 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
31367 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
31368 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31369 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
31370 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
31371 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
31372 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31373 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
31374 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
31375 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
31376 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31377 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
31378 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
31379 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
31380 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31381 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31382 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31383 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
31384 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
31385 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
31386 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
31387 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31388 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
31389 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
31390 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
31391 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
31392 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
31393 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
31394 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
31395 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
31396 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31397 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31398 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31399 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
31400 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
31401 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31402 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
31403 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
31404 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31405 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31406 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31407 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
31408 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
31409 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
31410 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
31411 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
31412 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31413 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31414 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31415 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
31416 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
31417 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31418 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS },
31419 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
31420 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
31421 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
31422 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
31423 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
31424 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
31425 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
31426 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31427 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31428 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31429 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
31430 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
31431 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
31432 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
31433 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
31434 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
31435 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
31436 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
31437 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31438 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31439 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
31440 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
31441 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
31442 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
31443 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
31444 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
31445 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
31446 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
31447 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
31448 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
31449 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
31450 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
31451 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
31452 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31453 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31454 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
31455 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
31456 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
31457 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31458 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
31459 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
31460 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
31461 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
31462 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
31463 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
31464 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
31465 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
31466 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
31467 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
31468 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31469 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31470 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31471 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31472 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31473 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
31474 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
31475 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS },
31476 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS },
31477 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
31478 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
31479 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31480 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
31481 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
31482 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
31483 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
31484 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
31485 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
31486 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
31487 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
31488 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
31489 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31490 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
31491 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31492 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
31493 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
31494 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31495 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
31496 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31497 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
31498 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
31499 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
31500 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
31501 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31502 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
31503 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
31504 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31505 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
31506 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
31507 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
31508 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
31509 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31510 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
31511 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
31512 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
31513 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31514 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31515 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31516 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
31517 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
31518 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
31519 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
31520 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31521 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31522 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
31523 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
31524 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31525 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31526 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
31527 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
31528 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
31529 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
31530 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31531 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
31532 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31533 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31534 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
31535 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
31536 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
31537 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
31538 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
31539 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
31540 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31541 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31542 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31543 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31544 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
31545 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
31546 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
31547 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
31548 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31549 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31550 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31551 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
31552 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
31553 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
31554 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
31555 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
31556 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
31557 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
31558 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
31559 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
31560 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
31561 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
31562 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
31563 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31564 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
31565 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31566 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
31567 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
31568 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
31569 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
31570 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
31571 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
31572 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
31573 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
31574 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
31575 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
31576 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31577 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
31578 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
31579 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
31580 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
31581 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31582 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31583 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
31584 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31585 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
31586 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
31587 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
31588 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31589 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
31590 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
31591 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31592 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31593 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31594 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
31595 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
31596 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31597 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31598 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
31599 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
31600 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
31601 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
31602 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
31603 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31604 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
31605 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31606 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
31607 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
31608 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
31609 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
31610 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
31611 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
31612 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
31613 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
31614 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
31615 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
31616 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31617 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
31618 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
31619 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
31620 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31621 { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS },
31622 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31623 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
31624 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
31625 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
31626 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
31627 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
31628 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
31629 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
31630 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
31631 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
31632 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
31633 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
31634 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31635 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31636 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
31637 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
31638 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
31639 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31640 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31641 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
31642 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
31643 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
31644 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
31645 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
31646 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
31647 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
31648 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
31649 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
31650 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
31651 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
31652 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
31653 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
31654 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31655 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31656 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31657 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
31658 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
31659 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
31660 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
31661 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
31662 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31663 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
31664 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
31665 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31666 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31667 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
31668 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
31669 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
31670 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
31671 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
31672 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
31673 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
31674 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
31675 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
31676 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
31677 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
31678 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
31679 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
31680 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
31681 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
31682 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
31683 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
31684 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
31685 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
31686 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
31687 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
31688 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
31689 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31690 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
31691 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
31692 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
31693 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
31694 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
31695 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31696 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31697 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31698 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31699 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
31700 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
31701 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
31702 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31703 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
31704 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
31705 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
31706 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31707 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
31708 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
31709 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
31710 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
31711 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31712 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31713 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
31714 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31715 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
31716 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
31717 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
31718 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
31719 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
31720 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
31721 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31722 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31723 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
31724 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
31725 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31726 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31727 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31728 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31729 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31730 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31731 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31732 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31733 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31734 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
31735 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
31736 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
31737 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
31738 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
31739 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
31740 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
31741 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
31742 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
31743 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
31744 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
31745 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
31746 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
31747 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
31748 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
31749 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
31750 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31751 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31752 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
31753 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
31754 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
31755 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
31756 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
31757 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
31758 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
31759 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
31760 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
31761 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
31762 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
31763 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
31764 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31765 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31766 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
31767 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
31768 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
31769 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
31770 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
31771 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
31772 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
31773 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
31774 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
31775 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
31776 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
31777 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
31778 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
31779 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
31780 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
31781 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
31782 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
31783 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
31784 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
31785 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
31786 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
31787 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
31788 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
31789 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
31790 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
31791 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
31792 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
31793 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
31794 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
31795 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
31796 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
31797 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
31798 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
31799 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
31800 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31801 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
31802 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
31803 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31804 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31805 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
31806 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
31807 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
31808 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
31809 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31810 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
31811 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
31812 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31813 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31814 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
31815 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
31816 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
31817 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31818 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31819 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
31820 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31821 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
31822 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
31823 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31824 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31825 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
31826 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
31827 { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
31828 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
31829 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
31830 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
31831 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
31832 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
31833 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31834 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31835 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31836 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31837 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31838 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
31839 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
31840 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
31841 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
31842 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31843 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31844 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
31845 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31846 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31847 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
31848 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
31849 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
31850 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31851 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31852 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31853 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31854 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS },
31855 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
31856 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
31857 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
31858 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
31859 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
31860 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31861 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
31862 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
31863 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
31864 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31865 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
31866 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31867 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
31868 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
31869 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
31870 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31871 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31872 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
31873 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
31874 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
31875 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
31876 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
31877 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
31878 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
31879 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31880 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31881 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31882 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31883 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
31884 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
31885 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31886 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
31887 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
31888 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
31889 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
31890 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
31891 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
31892 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
31893 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
31894 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
31895 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
31896 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
31897 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
31898 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
31899 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31900 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31901 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
31902 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
31903 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
31904 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
31905 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
31906 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
31907 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
31908 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
31909 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
31910 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
31911 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
31912 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
31913 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
31914 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
31915 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31916 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
31917 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
31918 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
31919 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31920 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
31921 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31922 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31923 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31924 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31925 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
31926 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31927 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31928 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
31929 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
31930 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
31931 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31932 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31933 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31934 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
31935 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
31936 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
31937 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
31938 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
31939 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31940 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
31941 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31942 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
31943 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31944 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
31945 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31946 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
31947 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31948 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
31949 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31950 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31951 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
31952 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31953 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31954 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31955 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
31956 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31957 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
31958 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS },
31959 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31960 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31961 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31962 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
31963 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31964 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
31965 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
31966 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
31967 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
31968 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
31969 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31970 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
31971 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
31972 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
31973 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
31974 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
31975 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
31976 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
31977 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
31978 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
31979 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
31980 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
31981 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
31982 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31983 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
31984 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
31985 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
31986 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
31987 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31988 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
31989 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
31990 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
31991 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
31992 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
31993 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
31994 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
31995 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
31996 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
31997 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31998 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
31999 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
32000 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
32001 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
32002 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
32003 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
32004 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
32005 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
32006 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
32007 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
32008 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
32009 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
32010 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
32011 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
32012 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
32013 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
32014 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
32015 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
32016 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
32017 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
32018 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
32019 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
32020 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
32021 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
32022 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
32023 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
32024 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
32025 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
32026 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
32027 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
32028 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
32029 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
32030 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
32031 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
32032 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
32033 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
32034 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
32035 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS },
32036 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
32037 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS },
32038 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
32039 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
32040 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
32041 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
32042 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
32043 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
32044 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
32045 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
32046 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
32047 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
32048 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
32049 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
32050 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
32051 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
32052 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
32053 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
32054 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
32055 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
32056 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
32057 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS },
32058 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
32059 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
32060 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
32061 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
32062 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
32063 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
32064 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
32065 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
32066 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
32067 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
32068 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
32069 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
32070 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
32071 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
32072 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
32073 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
32074 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
32075 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
32076 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
32077 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
32078 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
32079 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
32080 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
32081 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS },
32082 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
32083 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
32084 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
32085 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
32086 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
32087 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
32088 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
32089 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
32090 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
32091 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
32092 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
32093 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
32094 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
32095 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
32096 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
32097 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
32098 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
32099 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
32100 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
32101 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
32102 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
32103 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
32104 { NULL, NULL }
32105 };
32106
32107
32108 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32109
32110 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
32111 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32112 }
32113 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
32114 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
32115 }
32116 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32117 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32118 }
32119 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32120 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32121 }
32122 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32123 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32124 }
32125 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32126 return (void *)((wxSizer *) ((wxGridSizer *) x));
32127 }
32128 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32129 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32130 }
32131 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32132 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32133 }
32134 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32135 return (void *)((wxSizer *) ((wxPySizer *) x));
32136 }
32137 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32138 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32139 }
32140 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32141 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32142 }
32143 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32144 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32145 }
32146 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32147 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32148 }
32149 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32150 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32151 }
32152 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32153 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32154 }
32155 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32156 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32157 }
32158 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32159 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32160 }
32161 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32162 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32163 }
32164 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32165 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32166 }
32167 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32168 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32169 }
32170 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
32171 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32172 }
32173 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32174 return (void *)((wxEvent *) ((wxPyEvent *) x));
32175 }
32176 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32177 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32178 }
32179 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32180 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32181 }
32182 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32183 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32184 }
32185 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32186 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32187 }
32188 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32189 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32190 }
32191 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32192 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32193 }
32194 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32195 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32196 }
32197 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32198 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32199 }
32200 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32201 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32202 }
32203 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32204 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32205 }
32206 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32207 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32208 }
32209 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32210 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32211 }
32212 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32213 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32214 }
32215 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32216 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32217 }
32218 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32219 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32220 }
32221 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32222 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32223 }
32224 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32225 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32226 }
32227 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32228 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32229 }
32230 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32231 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32232 }
32233 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32234 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32235 }
32236 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32237 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32238 }
32239 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32240 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32241 }
32242 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32243 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32244 }
32245 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32246 return (void *)((wxEvent *) ((wxShowEvent *) x));
32247 }
32248 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32249 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32250 }
32251 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32252 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32253 }
32254 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32255 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32256 }
32257 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32258 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32259 }
32260 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32261 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32262 }
32263 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32264 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32265 }
32266 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32267 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32268 }
32269 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32270 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32271 }
32272 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32273 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32274 }
32275 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32276 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32277 }
32278 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32279 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32280 }
32281 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32282 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32283 }
32284 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32285 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32286 }
32287 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32288 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32289 }
32290 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
32291 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32292 }
32293 static void *_p_wxListBoxTo_p_wxControl(void *x) {
32294 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
32295 }
32296 static void *_p_wxChoiceTo_p_wxControl(void *x) {
32297 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
32298 }
32299 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32300 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32301 }
32302 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
32303 return (void *)((wxControl *) ((wxStaticBitmap *) x));
32304 }
32305 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32306 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32307 }
32308 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
32309 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32310 }
32311 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32312 return (void *)((wxControl *) ((wxStaticBox *) x));
32313 }
32314 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32315 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32316 }
32317 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32318 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32319 }
32320 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32321 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32322 }
32323 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32324 return (void *)((wxControl *) ((wxScrollBar *) x));
32325 }
32326 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32327 return (void *)((wxControl *) ((wxBookCtrl *) x));
32328 }
32329 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32330 return (void *)((wxControl *) ((wxRadioButton *) x));
32331 }
32332 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32333 return (void *)((wxControl *) ((wxToggleButton *) x));
32334 }
32335 static void *_p_wxGaugeTo_p_wxControl(void *x) {
32336 return (void *)((wxControl *) ((wxGauge *) x));
32337 }
32338 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32339 return (void *)((wxControl *) ((wxToolBarBase *) x));
32340 }
32341 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32342 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32343 }
32344 static void *_p_wxButtonTo_p_wxControl(void *x) {
32345 return (void *)((wxControl *) ((wxButton *) x));
32346 }
32347 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32348 return (void *)((wxControl *) ((wxSpinButton *) x));
32349 }
32350 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32351 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32352 }
32353 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32354 return (void *)((wxControl *) ((wxControlWithItems *) x));
32355 }
32356 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32357 return (void *)((wxControl *) ((wxRadioBox *) x));
32358 }
32359 static void *_p_wxNotebookTo_p_wxControl(void *x) {
32360 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32361 }
32362 static void *_p_wxListbookTo_p_wxControl(void *x) {
32363 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32364 }
32365 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32366 return (void *)((wxControl *) ((wxCheckBox *) x));
32367 }
32368 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32369 return (void *)((wxControl *) ((wxTextCtrl *) x));
32370 }
32371 static void *_p_wxListViewTo_p_wxControl(void *x) {
32372 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32373 }
32374 static void *_p_wxSliderTo_p_wxControl(void *x) {
32375 return (void *)((wxControl *) ((wxSlider *) x));
32376 }
32377 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32378 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32379 }
32380 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32381 return (void *)((wxControl *) ((wxPyControl *) x));
32382 }
32383 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32384 return (void *)((wxControl *) ((wxStaticLine *) x));
32385 }
32386 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32387 return (void *)((wxControl *) ((wxStaticText *) x));
32388 }
32389 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32390 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32391 }
32392 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
32393 return (void *)((wxChoice *) ((wxComboBox *) x));
32394 }
32395 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32396 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32397 }
32398 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32399 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32400 }
32401 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32402 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32403 }
32404 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32405 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32406 }
32407 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32408 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32409 }
32410 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32411 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32412 }
32413 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32414 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32415 }
32416 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32417 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32418 }
32419 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32420 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32421 }
32422 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32423 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32424 }
32425 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32426 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32427 }
32428 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32429 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32430 }
32431 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32432 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32433 }
32434 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32435 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32436 }
32437 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32438 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32439 }
32440 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32441 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32442 }
32443 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32444 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32445 }
32446 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32447 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32448 }
32449 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32450 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32451 }
32452 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32453 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32454 }
32455 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32456 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32457 }
32458 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32459 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32460 }
32461 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32462 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32463 }
32464 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32465 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32466 }
32467 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32468 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32469 }
32470 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32471 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32472 }
32473 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32474 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32475 }
32476 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32477 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32478 }
32479 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32480 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32481 }
32482 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32483 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32484 }
32485 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32486 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32487 }
32488 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32489 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32490 }
32491 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32492 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32493 }
32494 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32495 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32496 }
32497 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32498 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32499 }
32500 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32501 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32502 }
32503 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32504 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32505 }
32506 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32507 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32508 }
32509 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32510 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32511 }
32512 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32513 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32514 }
32515 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32516 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32517 }
32518 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32519 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32520 }
32521 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32522 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32523 }
32524 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32525 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32526 }
32527 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32528 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32529 }
32530 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32531 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32532 }
32533 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32534 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32535 }
32536 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32537 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32538 }
32539 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32540 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32541 }
32542 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32543 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32544 }
32545 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32546 return (void *)((wxButton *) ((wxBitmapButton *) x));
32547 }
32548 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32549 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32550 }
32551 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32552 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32553 }
32554 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32555 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32556 }
32557 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32558 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32559 }
32560 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32561 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32562 }
32563 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32564 return (void *)((wxObject *) ((wxSizerItem *) x));
32565 }
32566 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32567 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32568 }
32569 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32570 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32571 }
32572 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32573 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32574 }
32575 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32576 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32577 }
32578 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32579 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32580 }
32581 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32582 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32583 }
32584 static void *_p_wxSizerTo_p_wxObject(void *x) {
32585 return (void *)((wxObject *) ((wxSizer *) x));
32586 }
32587 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32588 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32589 }
32590 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32591 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32592 }
32593 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32594 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32595 }
32596 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32597 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32598 }
32599 static void *_p_wxEventTo_p_wxObject(void *x) {
32600 return (void *)((wxObject *) ((wxEvent *) x));
32601 }
32602 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32603 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32604 }
32605 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32606 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32607 }
32608 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32609 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32610 }
32611 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
32612 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32613 }
32614 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
32615 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32616 }
32617 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
32618 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32619 }
32620 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32621 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32622 }
32623 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32624 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32625 }
32626 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32627 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32628 }
32629 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32630 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32631 }
32632 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32633 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32634 }
32635 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32636 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32637 }
32638 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
32639 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
32640 }
32641 static void *_p_wxControlTo_p_wxObject(void *x) {
32642 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32643 }
32644 static void *_p_wxPyControlTo_p_wxObject(void *x) {
32645 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
32646 }
32647 static void *_p_wxGaugeTo_p_wxObject(void *x) {
32648 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
32649 }
32650 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
32651 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
32652 }
32653 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
32654 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
32655 }
32656 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
32657 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32658 }
32659 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32660 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32661 }
32662 static void *_p_wxChoiceTo_p_wxObject(void *x) {
32663 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32664 }
32665 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32666 return (void *)((wxObject *) ((wxFSFile *) x));
32667 }
32668 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32669 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32670 }
32671 static void *_p_wxListViewTo_p_wxObject(void *x) {
32672 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32673 }
32674 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
32675 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32676 }
32677 static void *_p_wxNotebookTo_p_wxObject(void *x) {
32678 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32679 }
32680 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32681 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32682 }
32683 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32684 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32685 }
32686 static void *_p_wxListbookTo_p_wxObject(void *x) {
32687 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32688 }
32689 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32690 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32691 }
32692 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
32693 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32694 }
32695 static void *_p_wxSliderTo_p_wxObject(void *x) {
32696 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
32697 }
32698 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32699 return (void *)((wxObject *) ((wxMenuItem *) x));
32700 }
32701 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32702 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32703 }
32704 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32705 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32706 }
32707 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32708 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32709 }
32710 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32711 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32712 }
32713 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32714 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32715 }
32716 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32717 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32718 }
32719 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32720 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32721 }
32722 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32723 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32724 }
32725 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
32726 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
32727 }
32728 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
32729 return (void *)((wxObject *) ((wxContextHelp *) x));
32730 }
32731 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32732 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32733 }
32734 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32735 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32736 }
32737 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32738 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32739 }
32740 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32741 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32742 }
32743 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32744 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32745 }
32746 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32747 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32748 }
32749 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32750 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32751 }
32752 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32753 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32754 }
32755 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32756 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32757 }
32758 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32759 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32760 }
32761 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32762 return (void *)((wxObject *) ((wxImageHandler *) x));
32763 }
32764 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32765 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32766 }
32767 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32768 return (void *)((wxObject *) ((wxEvtHandler *) x));
32769 }
32770 static void *_p_wxListEventTo_p_wxObject(void *x) {
32771 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32772 }
32773 static void *_p_wxListBoxTo_p_wxObject(void *x) {
32774 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32775 }
32776 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
32777 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32778 }
32779 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
32780 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32781 }
32782 static void *_p_wxButtonTo_p_wxObject(void *x) {
32783 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
32784 }
32785 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
32786 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32787 }
32788 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
32789 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
32790 }
32791 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
32792 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32793 }
32794 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32795 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32796 }
32797 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
32798 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
32799 }
32800 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
32801 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
32802 }
32803 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
32804 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32805 }
32806 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
32807 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
32808 }
32809 static void *_p_wxListItemTo_p_wxObject(void *x) {
32810 return (void *)((wxObject *) ((wxListItem *) x));
32811 }
32812 static void *_p_wxImageTo_p_wxObject(void *x) {
32813 return (void *)((wxObject *) ((wxImage *) x));
32814 }
32815 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
32816 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
32817 }
32818 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32819 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32820 }
32821 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
32822 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32823 }
32824 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
32825 return (void *)((wxObject *) ((wxGenericDragImage *) x));
32826 }
32827 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
32828 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32829 }
32830 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
32831 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32832 }
32833 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
32834 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32835 }
32836 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32837 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32838 }
32839 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32840 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32841 }
32842 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32843 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32844 }
32845 static void *_p_wxWindowTo_p_wxObject(void *x) {
32846 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32847 }
32848 static void *_p_wxMenuTo_p_wxObject(void *x) {
32849 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32850 }
32851 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32852 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32853 }
32854 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32855 return (void *)((wxObject *) ((wxFileSystem *) x));
32856 }
32857 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32858 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32859 }
32860 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32861 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32862 }
32863 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32864 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32865 }
32866 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32867 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32868 }
32869 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32870 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32871 }
32872 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32873 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32874 }
32875 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
32876 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32877 }
32878 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32879 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32880 }
32881 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32882 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32883 }
32884 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
32885 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
32886 }
32887 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32888 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32889 }
32890 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32891 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32892 }
32893 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32894 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32895 }
32896 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32897 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32898 }
32899 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
32900 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
32901 }
32902 static void *_p_wxToolBarTo_p_wxObject(void *x) {
32903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32904 }
32905 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32906 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32907 }
32908 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32909 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32910 }
32911 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
32912 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
32913 }
32914 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
32915 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
32916 }
32917 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32918 return (void *)((wxWindow *) ((wxMenuBar *) x));
32919 }
32920 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
32921 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32922 }
32923 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
32924 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
32925 }
32926 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
32927 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
32928 }
32929 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
32930 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
32931 }
32932 static void *_p_wxControlTo_p_wxWindow(void *x) {
32933 return (void *)((wxWindow *) ((wxControl *) x));
32934 }
32935 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
32936 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
32937 }
32938 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
32939 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32940 }
32941 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
32942 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
32943 }
32944 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
32945 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32946 }
32947 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
32948 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
32949 }
32950 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
32951 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
32952 }
32953 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32954 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32955 }
32956 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
32957 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
32958 }
32959 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
32960 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
32961 }
32962 static void *_p_wxListbookTo_p_wxWindow(void *x) {
32963 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32964 }
32965 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
32966 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
32967 }
32968 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
32969 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
32970 }
32971 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
32972 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
32973 }
32974 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
32975 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32976 }
32977 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
32978 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32979 }
32980 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
32981 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32982 }
32983 static void *_p_wxListViewTo_p_wxWindow(void *x) {
32984 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32985 }
32986 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
32987 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32988 }
32989 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
32990 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
32991 }
32992 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
32993 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
32994 }
32995 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
32996 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
32997 }
32998 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
32999 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
33000 }
33001 static void *_p_wxSliderTo_p_wxWindow(void *x) {
33002 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
33003 }
33004 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
33005 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
33006 }
33007 static void *_p_wxButtonTo_p_wxWindow(void *x) {
33008 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
33009 }
33010 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
33011 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
33012 }
33013 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
33014 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33015 }
33016 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
33017 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
33018 }
33019 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
33020 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33021 }
33022 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
33023 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
33024 }
33025 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
33026 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
33027 }
33028 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
33029 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
33030 }
33031 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
33032 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
33033 }
33034 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
33035 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
33036 }
33037 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
33038 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
33039 }
33040 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
33041 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33042 }
33043 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
33044 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33045 }
33046 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
33047 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
33048 }
33049 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
33050 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
33051 }
33052 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
33053 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
33054 }
33055 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
33056 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
33057 }
33058 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
33059 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
33060 }
33061 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
33062 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
33063 }
33064 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
33065 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
33066 }
33067 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
33068 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
33069 }
33070 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
33071 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
33072 }
33073 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33074 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33075 }
33076 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33077 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33078 }
33079 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33080 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33081 }
33082 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33083 return (void *)((wxValidator *) ((wxPyValidator *) x));
33084 }
33085 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}};
33086 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}};
33087 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}};
33088 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}};
33089 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}};
33090 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}};
33091 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}};
33092 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}};
33093 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}};
33094 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}};
33095 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}};
33096 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}};
33097 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}};
33098 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}};
33099 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}};
33100 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}};
33101 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}};
33102 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}};
33103 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}};
33104 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}};
33105 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}};
33106 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}};
33107 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}};
33108 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}};
33109 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}};
33110 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}};
33111 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}};
33112 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}};
33113 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}};
33114 static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33115 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}};
33116 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}};
33117 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}};
33118 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}};
33119 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}};
33120 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}};
33121 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}};
33122 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}};
33123 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}};
33124 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}};
33125 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}};
33126 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}};
33127 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}};
33128 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}};
33129 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}};
33130 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}};
33131 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}};
33132 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}};
33133 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}};
33134 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}};
33135 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}};
33136 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}};
33137 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}};
33138 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}};
33139 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}};
33140 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}};
33141 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}};
33142 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}};
33143 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}};
33144 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}};
33145 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}};
33146 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}};
33147 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}};
33148 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}};
33149 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}};
33150 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}};
33151 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}};
33152 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}};
33153 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}};
33154 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}};
33155 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}};
33156 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}};
33157 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}};
33158 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}};
33159 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}};
33160 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}};
33161 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}};
33162 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}};
33163 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}};
33164 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}};
33165 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}};
33166 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}};
33167 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}};
33168 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}};
33169 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}};
33170
33171 static swig_type_info *swig_types_initial[] = {
33172 _swigt__p_wxTextUrlEvent,
33173 _swigt__p_wxBookCtrlEvent,
33174 _swigt__p_wxSizer,
33175 _swigt__p_wxCheckBox,
33176 _swigt__p_wxPyTreeCtrl,
33177 _swigt__p_wxEvent,
33178 _swigt__p_wxGenericDirCtrl,
33179 _swigt__p_bool,
33180 _swigt__p_wxPyTreeItemData,
33181 _swigt__p_wxItemContainer,
33182 _swigt__p_wxPyListCtrl,
33183 _swigt__p_wxDirFilterListCtrl,
33184 _swigt__p_wxStaticLine,
33185 _swigt__p_wxControl,
33186 _swigt__p_wxPyControl,
33187 _swigt__p_wxGauge,
33188 _swigt__p_wxToolBarBase,
33189 _swigt__p_wxFont,
33190 _swigt__p_wxToggleButton,
33191 _swigt__p_wxRadioButton,
33192 _swigt__p_wxChoice,
33193 _swigt__p_wxMemoryDC,
33194 _swigt__p_wxListItemAttr,
33195 _swigt__p_void,
33196 _swigt__p_int,
33197 _swigt__p_wxSize,
33198 _swigt__p_wxDC,
33199 _swigt__p_wxListView,
33200 _swigt__p_wxIcon,
33201 _swigt__p_wxVisualAttributes,
33202 _swigt__p_wxTextCtrl,
33203 _swigt__p_wxNotebook,
33204 _swigt__p_wxNotifyEvent,
33205 _swigt__p_wxArrayString,
33206 _swigt__p_wxListbook,
33207 _swigt__p_wxStaticBitmap,
33208 _swigt__p_wxSlider,
33209 _swigt__p_wxStaticBox,
33210 _swigt__p_wxArrayInt,
33211 _swigt__p_wxContextHelp,
33212 _swigt__p_long,
33213 _swigt__p_wxEvtHandler,
33214 _swigt__p_wxListEvent,
33215 _swigt__p_wxCheckListBox,
33216 _swigt__p_wxListBox,
33217 _swigt__p_wxBookCtrl,
33218 _swigt__p_wxSpinButton,
33219 _swigt__p_wxButton,
33220 _swigt__p_wxBitmapButton,
33221 _swigt__p_wxRect,
33222 _swigt__p_wxContextHelpButton,
33223 _swigt__p_wxRadioBox,
33224 _swigt__p_wxScrollBar,
33225 _swigt__p_char,
33226 _swigt__p_wxTreeItemId,
33227 _swigt__p_wxComboBox,
33228 _swigt__p_wxHelpEvent,
33229 _swigt__p_wxListItem,
33230 _swigt__p_wxNotebookSizer,
33231 _swigt__p_wxSpinEvent,
33232 _swigt__p_wxGenericDragImage,
33233 _swigt__p_wxSpinCtrl,
33234 _swigt__p_wxImageList,
33235 _swigt__p_wxHelpProvider,
33236 _swigt__p_wxTextAttr,
33237 _swigt__p_wxSimpleHelpProvider,
33238 _swigt__p_wxPoint,
33239 _swigt__p_wxListbookEvent,
33240 _swigt__p_wxNotebookEvent,
33241 _swigt__p_wxObject,
33242 _swigt__p_wxCursor,
33243 _swigt__p_wxKeyEvent,
33244 _swigt__p_wxWindow,
33245 _swigt__p_wxString,
33246 _swigt__p_wxBitmap,
33247 _swigt__p_wxTreeEvent,
33248 _swigt__p_wxMouseEvent,
33249 _swigt__p_wxCommandEvent,
33250 _swigt__p_wxStaticText,
33251 _swigt__p_wxControlWithItems,
33252 _swigt__p_wxToolBarToolBase,
33253 _swigt__p_wxColour,
33254 _swigt__p_wxToolBar,
33255 _swigt__p_wxBookCtrlSizer,
33256 _swigt__p_wxValidator,
33257 0
33258 };
33259
33260
33261 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33262
33263 static swig_const_info swig_const_table[] = {
33264 {0}};
33265
33266 #ifdef __cplusplus
33267 }
33268 #endif
33269
33270 #ifdef __cplusplus
33271 extern "C"
33272 #endif
33273 SWIGEXPORT(void) SWIG_init(void) {
33274 static PyObject *SWIG_globals = 0;
33275 static int typeinit = 0;
33276 PyObject *m, *d;
33277 int i;
33278 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33279 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33280 d = PyModule_GetDict(m);
33281
33282 if (!typeinit) {
33283 for (i = 0; swig_types_initial[i]; i++) {
33284 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33285 }
33286 typeinit = 1;
33287 }
33288 SWIG_InstallConstants(d,swig_const_table);
33289
33290 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33291 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33292 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
33293 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
33294 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
33295 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
33296 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
33297 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
33298 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33299 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
33300 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
33301 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
33302 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
33303 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
33304 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
33305 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
33306 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
33307 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
33308 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
33309 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
33310 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
33311 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
33312 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
33313 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
33314 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
33315 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33316 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33317 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
33318 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
33319 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
33320 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
33321 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
33322 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
33323 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
33324 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
33325 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
33326 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
33327 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
33328 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
33329 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
33330 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
33331 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
33332 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
33333 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
33334 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
33335 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
33336 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
33337 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
33338 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
33339 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
33340 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33341 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
33342 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33343 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
33344 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
33345 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
33346 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
33347 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
33348 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
33349 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
33350 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
33351 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
33352 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
33353 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
33354 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
33355 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
33356 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
33357 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
33358 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33359 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33360 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33361 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33362 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33363 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33364 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33365 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
33366 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
33367 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
33368 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
33369 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33370 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33371 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33372 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33373 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33374 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33375 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33376 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
33377 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
33378 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
33379 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
33380 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
33381 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
33382 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
33383 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
33384 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
33385 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
33386 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33387 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33388 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
33389 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
33390 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
33391 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
33392 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
33393 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
33394 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33395 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33396 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
33397 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
33398 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
33399 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
33400 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
33401 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
33402 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
33403 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
33404 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
33405 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
33406 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
33407 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
33408 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
33409 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
33410 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33411 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
33412 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
33413 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
33414 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
33415 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
33416 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
33417 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
33418 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
33419 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
33420 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
33421 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
33422 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
33423 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
33424 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
33425 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
33426 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
33427 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
33428 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
33429 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
33430 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
33431 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
33432 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
33433 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
33434 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
33435 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
33436 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
33437 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
33438 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
33439 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
33440 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
33441 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
33442 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
33443 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
33444 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
33445 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
33446 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
33447 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
33448 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
33449 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
33450 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
33451 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
33452 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
33453 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
33454 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
33455 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
33456 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
33457 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
33458 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
33459 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
33460 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
33461 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
33462 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
33463 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
33464 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
33465 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
33466 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
33467 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
33468 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
33469 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
33470 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
33471 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
33472 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
33473 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
33474 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
33475 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
33476 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
33477 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
33478 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
33479 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33480 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33481 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33482 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33483 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33484 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33485 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33486 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33487 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33488 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33489 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33490 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33491 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33492 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33493 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33494 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33495 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33496 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33497 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33498 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33499 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33500 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33501
33502 // Map renamed classes back to their common name for OOR
33503 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33504
33505 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33506 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
33507 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
33508 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
33509 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
33510 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
33511 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
33512 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
33513 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33514 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
33515 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
33516 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
33517 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
33518 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
33519 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
33520 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
33521 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
33522 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
33523 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
33524 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
33525 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
33526 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
33527 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
33528 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
33529 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
33530 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
33531 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
33532 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
33533 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
33534 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
33535 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
33536 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
33537 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
33538 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
33539 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
33540 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
33541 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33542 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33543 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33544 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33545 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33546 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33547 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33548 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33549 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33550 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33551 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33552 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33553 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33554 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33555 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33556 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33557 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33558 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33559 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33560 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33561
33562 // Map renamed classes back to their common name for OOR
33563 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33564 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33565
33566 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33567 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
33568 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
33569 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
33570 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
33571 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
33572 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
33573 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
33574 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33575 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33576
33577 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33578
33579 }
33580