]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
ActiveX events should be sent to the window, not it's parent.
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxTextUrlEvent swig_types[0]
210 #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1]
211 #define SWIGTYPE_p_wxSizer swig_types[2]
212 #define SWIGTYPE_p_wxCheckBox swig_types[3]
213 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4]
214 #define SWIGTYPE_p_wxEvent swig_types[5]
215 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6]
216 #define SWIGTYPE_p_bool swig_types[7]
217 #define SWIGTYPE_p_wxPyTreeItemData swig_types[8]
218 #define SWIGTYPE_p_wxItemContainer swig_types[9]
219 #define SWIGTYPE_p_wxPyListCtrl swig_types[10]
220 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11]
221 #define SWIGTYPE_p_wxStaticLine swig_types[12]
222 #define SWIGTYPE_p_wxControl swig_types[13]
223 #define SWIGTYPE_p_wxPyControl swig_types[14]
224 #define SWIGTYPE_p_wxGauge swig_types[15]
225 #define SWIGTYPE_p_wxToolBarBase swig_types[16]
226 #define SWIGTYPE_p_wxFont swig_types[17]
227 #define SWIGTYPE_p_wxToggleButton swig_types[18]
228 #define SWIGTYPE_p_wxRadioButton swig_types[19]
229 #define SWIGTYPE_p_wxChoice swig_types[20]
230 #define SWIGTYPE_p_wxMemoryDC swig_types[21]
231 #define SWIGTYPE_p_wxListItemAttr swig_types[22]
232 #define SWIGTYPE_p_void swig_types[23]
233 #define SWIGTYPE_p_int swig_types[24]
234 #define SWIGTYPE_p_wxSize swig_types[25]
235 #define SWIGTYPE_p_wxDC swig_types[26]
236 #define SWIGTYPE_p_wxListView swig_types[27]
237 #define SWIGTYPE_p_wxIcon swig_types[28]
238 #define SWIGTYPE_p_wxVisualAttributes swig_types[29]
239 #define SWIGTYPE_p_wxTextCtrl swig_types[30]
240 #define SWIGTYPE_p_wxNotebook swig_types[31]
241 #define SWIGTYPE_p_wxNotifyEvent swig_types[32]
242 #define SWIGTYPE_p_wxArrayString swig_types[33]
243 #define SWIGTYPE_p_wxListbook swig_types[34]
244 #define SWIGTYPE_p_wxStaticBitmap swig_types[35]
245 #define SWIGTYPE_p_wxSlider swig_types[36]
246 #define SWIGTYPE_p_wxStaticBox swig_types[37]
247 #define SWIGTYPE_p_wxArrayInt swig_types[38]
248 #define SWIGTYPE_p_wxContextHelp swig_types[39]
249 #define SWIGTYPE_p_long swig_types[40]
250 #define SWIGTYPE_p_wxEvtHandler swig_types[41]
251 #define SWIGTYPE_p_wxListEvent swig_types[42]
252 #define SWIGTYPE_p_wxCheckListBox swig_types[43]
253 #define SWIGTYPE_p_wxListBox swig_types[44]
254 #define SWIGTYPE_p_wxBookCtrl swig_types[45]
255 #define SWIGTYPE_p_wxSpinButton swig_types[46]
256 #define SWIGTYPE_p_wxButton swig_types[47]
257 #define SWIGTYPE_p_wxBitmapButton swig_types[48]
258 #define SWIGTYPE_p_wxRect swig_types[49]
259 #define SWIGTYPE_p_wxContextHelpButton swig_types[50]
260 #define SWIGTYPE_p_wxRadioBox swig_types[51]
261 #define SWIGTYPE_p_wxScrollBar swig_types[52]
262 #define SWIGTYPE_p_char swig_types[53]
263 #define SWIGTYPE_p_wxTreeItemId swig_types[54]
264 #define SWIGTYPE_p_wxComboBox swig_types[55]
265 #define SWIGTYPE_p_wxHelpEvent swig_types[56]
266 #define SWIGTYPE_p_wxListItem swig_types[57]
267 #define SWIGTYPE_p_wxNotebookSizer swig_types[58]
268 #define SWIGTYPE_p_wxSpinEvent swig_types[59]
269 #define SWIGTYPE_p_wxGenericDragImage swig_types[60]
270 #define SWIGTYPE_p_wxSpinCtrl swig_types[61]
271 #define SWIGTYPE_p_wxImageList swig_types[62]
272 #define SWIGTYPE_p_wxHelpProvider swig_types[63]
273 #define SWIGTYPE_p_wxTextAttr swig_types[64]
274 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65]
275 #define SWIGTYPE_p_wxPoint swig_types[66]
276 #define SWIGTYPE_p_wxListbookEvent swig_types[67]
277 #define SWIGTYPE_p_wxNotebookEvent swig_types[68]
278 #define SWIGTYPE_p_wxObject swig_types[69]
279 #define SWIGTYPE_p_wxCursor swig_types[70]
280 #define SWIGTYPE_p_wxKeyEvent swig_types[71]
281 #define SWIGTYPE_p_wxWindow swig_types[72]
282 #define SWIGTYPE_p_wxString swig_types[73]
283 #define SWIGTYPE_p_wxBitmap swig_types[74]
284 #define SWIGTYPE_p_wxTreeEvent swig_types[75]
285 #define SWIGTYPE_p_wxMouseEvent swig_types[76]
286 #define SWIGTYPE_p_wxCommandEvent swig_types[77]
287 #define SWIGTYPE_p_wxStaticText swig_types[78]
288 #define SWIGTYPE_p_wxControlWithItems swig_types[79]
289 #define SWIGTYPE_p_wxToolBarToolBase swig_types[80]
290 #define SWIGTYPE_p_wxColour swig_types[81]
291 #define SWIGTYPE_p_wxToolBar swig_types[82]
292 #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83]
293 #define SWIGTYPE_p_wxValidator swig_types[84]
294 static swig_type_info *swig_types[86];
295
296 /* -------- TYPES TABLE (END) -------- */
297
298
299 /*-----------------------------------------------
300 @(target):= _controls_.so
301 ------------------------------------------------*/
302 #define SWIG_init init_controls_
303
304 #define SWIG_name "_controls_"
305
306 /* Auxiliar swig macros */
307
308 #ifdef __cplusplus
309 #define SWIGSTATICINLINE(a) static inline a
310 #define SWIGSTATIC(a) static a
311 #define swig_new_array(type, size) (new type[(size)])
312 #define swig_delete_array(cptr) delete[] cptr
313 #define swig_const_cast(type,a) const_cast<type>(a)
314 #define swig_static_cast(type,a) static_cast<type>(a)
315 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
316
317 #ifdef HAVE_NUMERIC_CAST
318 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
319 #else
320 #define swig_numeric_cast(type,a) static_cast<type>(a)
321 #endif
322
323 #else /* C case */
324
325 #define SWIGSTATICINLINE(a) static a
326 #define SWIGSTATIC(a) static a
327 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
328 #define swig_delete_array(cptr) free((char*)cptr)
329 #define swig_const_cast(type,a) (type)(a)
330 #define swig_static_cast(type,a) (type)(a)
331 #define swig_reinterpret_cast(type,a) (type)(a)
332 #define swig_numeric_cast(type,a) (type)(a)
333
334 #endif /* __cplusplus */
335
336
337 #define SWIG_FromSignedChar PyInt_FromLong
338 #define SWIG_FromUnsignedChar PyInt_FromLong
339 #define SWIG_FromShort PyInt_FromLong
340 #define SWIG_FromUnsignedShort PyInt_FromLong
341 #define SWIG_FromInt PyInt_FromLong
342 #define SWIG_FromLong PyInt_FromLong
343 #define SWIG_FromFloat PyFloat_FromDouble
344 #define SWIG_FromDouble PyFloat_FromDouble
345 #define SWIG_FromFloat PyFloat_FromDouble
346 #define SWIG_FromDouble PyFloat_FromDouble
347
348
349 #include "wx/wxPython/wxPython.h"
350 #include "wx/wxPython/pyclasses.h"
351
352 static const wxString wxPyPanelNameStr(wxPanelNameStr);
353 static const wxString wxPyEmptyString(wxEmptyString);
354 static const wxString wxPyControlNameStr(wxControlNameStr);
355
356 const wxArrayString wxPyEmptyStringArray;
357
358 static const wxString wxPyButtonNameStr(wxButtonNameStr);
359
360 #include <limits.h>
361
362
363 SWIGSTATICINLINE(long)
364 SWIG_CheckLongInRange(long value, const char* type,
365 long min_value, long max_value)
366 {
367 if (!PyErr_Occurred()) {
368 if (value < min_value) {
369 PyObject *err =
370 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
371 value, type, min_value);
372
373 PyErr_SetObject(PyExc_OverflowError, err);
374 Py_DECREF(err);
375 } else if (value > max_value) {
376 PyObject *err =
377 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
378 value, type, max_value);
379 PyErr_SetObject(PyExc_OverflowError, err);
380 Py_DECREF(err);
381 }
382 }
383 return value;
384 }
385
386
387 SWIGSTATICINLINE(long)
388 SWIG_AsLong(PyObject * obj)
389 {
390 if (PyNumber_Check(obj))
391 return PyInt_AsLong(obj);
392 else {
393 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
394 obj->ob_type->tp_name);
395 PyErr_SetObject(PyExc_TypeError, errmsg);
396 Py_DECREF(errmsg);
397 return 0;
398 }
399 }
400
401
402 #if INT_MAX != LONG_MAX
403 SWIGSTATICINLINE(int)
404 SWIG_AsInt(PyObject *obj)
405 {
406 return swig_numeric_cast(int,
407 SWIG_CheckLongInRange(SWIG_AsLong(obj),
408 "int", INT_MIN, INT_MAX));
409 }
410 #else
411 #define SWIG_AsInt SWIG_AsLong
412 #endif
413
414
415 SWIGSTATICINLINE(int)
416 SWIG_CheckInt(PyObject* obj)
417 {
418 SWIG_AsInt(obj);
419 if (PyErr_Occurred()) {
420 PyErr_Clear();
421 return 0;
422 } else {
423 return 1;
424 }
425 }
426
427
428 SWIGSTATICINLINE(int)
429 SWIG_CheckLong(PyObject* obj)
430 {
431 SWIG_AsLong(obj);
432 if (PyErr_Occurred()) {
433 PyErr_Clear();
434 return 0;
435 } else {
436 return 1;
437 }
438 }
439
440 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
441
442 SWIGSTATICINLINE(bool)
443 SWIG_AsBool(PyObject *obj)
444 {
445 return PyObject_IsTrue(obj) ? true : false;
446 }
447
448
449 SWIGSTATICINLINE(int)
450 SWIG_CheckBool(PyObject* obj)
451 {
452 SWIG_AsBool(obj);
453 if (PyErr_Occurred()) {
454 PyErr_Clear();
455 return 0;
456 } else {
457 return 1;
458 }
459 }
460
461 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
462 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
463 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
464 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
465 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
466 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
467
468 #include <wx/checklst.h>
469
470
471 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
472 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
473 if (clientData) {
474 wxPyClientData* data = new wxPyClientData(clientData);
475 self->Insert(item, pos, data);
476 } else
477 self->Insert(item, pos);
478 }
479 PyObject *wxListBox_GetSelections(wxListBox *self){
480 wxArrayInt lst;
481 self->GetSelections(lst);
482 PyObject *tup = PyTuple_New(lst.GetCount());
483 for(size_t i=0; i<lst.GetCount(); i++) {
484 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
485 }
486 return tup;
487 }
488 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
489 #ifdef __WXMSW__
490 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
491 self->GetItem(item)->SetTextColour(c);
492 #endif
493 }
494 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
495 #ifdef __WXMSW__
496 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
497 self->GetItem(item)->SetBackgroundColour(c);
498 #endif
499 }
500 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
501 #ifdef __WXMSW__
502 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
503 self->GetItem(item)->SetFont(f);
504 #endif
505 }
506 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
507
508 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
509 PyObject* o2;
510 PyObject* o3;
511
512 if (!target) {
513 target = o;
514 } else if (target == Py_None) {
515 Py_DECREF(Py_None);
516 target = o;
517 } else {
518 if (!PyTuple_Check(target)) {
519 o2 = target;
520 target = PyTuple_New(1);
521 PyTuple_SetItem(target, 0, o2);
522 }
523 o3 = PyTuple_New(1);
524 PyTuple_SetItem(o3, 0, o);
525
526 o2 = target;
527 target = PySequence_Concat(o2, o3);
528 Py_DECREF(o2);
529 Py_DECREF(o3);
530 }
531 return target;
532 }
533
534
535 SWIGSTATICINLINE(unsigned long)
536 SWIG_AsUnsignedLong(PyObject * obj)
537 {
538 if (PyLong_Check(obj)) {
539 return PyLong_AsUnsignedLong(obj);
540 } else {
541 long i = SWIG_AsLong(obj);
542 if ( !PyErr_Occurred() && (i < 0)) {
543 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
544 }
545 return i;
546 }
547 }
548
549
550 SWIGSTATICINLINE(int)
551 SWIG_CheckUnsignedLong(PyObject* obj)
552 {
553 SWIG_AsUnsignedLong(obj);
554 if (PyErr_Occurred()) {
555 PyErr_Clear();
556 return 0;
557 } else {
558 return 1;
559 }
560 }
561
562 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
563 self->AppendText(text);
564 }
565 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
566 return self->GetValue().Mid(from, to - from);
567 }
568 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
569 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
570 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
571 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
572 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
573
574 #include <wx/slider.h>
575
576
577 static const wxString wxPySliderNameStr(wxSliderNameStr);
578 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
579
580 #if !wxUSE_TOGGLEBTN
581 // implement dummy items for platforms that don't have this class
582
583 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
584
585 class wxToggleButton : public wxControl
586 {
587 public:
588 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
589 const wxPoint&, const wxSize&, long,
590 const wxValidator&, const wxString&)
591 { wxPyRaiseNotImplemented(); }
592
593 wxToggleButton()
594 { wxPyRaiseNotImplemented(); }
595 };
596 #endif
597
598 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
599
600 SWIGSTATICINLINE(PyObject* )
601 SWIG_FromUnsignedLong(unsigned long value)
602 {
603 return (value > LONG_MAX) ?
604 PyLong_FromUnsignedLong(value)
605 : PyInt_FromLong(swig_numeric_cast(long,value));
606 }
607
608 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
609 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
610 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
611 if (udata) {
612 Py_INCREF(udata->m_obj);
613 return udata->m_obj;
614 } else {
615 Py_INCREF(Py_None);
616 return Py_None;
617 }
618 }
619 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
620 self->SetClientData(new wxPyUserData(clientData));
621 }
622 wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
623 wxPyUserData* udata = NULL;
624 if (clientData && clientData != Py_None)
625 udata = new wxPyUserData(clientData);
626 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
627 shortHelp, longHelp, udata);
628 }
629 wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
630 wxPyUserData* udata = NULL;
631 if (clientData && clientData != Py_None)
632 udata = new wxPyUserData(clientData);
633 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
634 shortHelp, longHelp, udata);
635 }
636 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
637 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
638 if (udata) {
639 Py_INCREF(udata->m_obj);
640 return udata->m_obj;
641 } else {
642 Py_INCREF(Py_None);
643 return Py_None;
644 }
645 }
646 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
647 self->SetToolClientData(id, new wxPyUserData(clientData));
648 }
649
650 #include <wx/listctrl.h>
651
652
653 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
654 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
655 // Python aware sorting function for wxPyListCtrl
656 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
657 int retval = 0;
658 PyObject* func = (PyObject*)funcPtr;
659 bool blocked = wxPyBeginBlockThreads();
660
661 PyObject* args = Py_BuildValue("(ii)", item1, item2);
662 PyObject* result = PyEval_CallObject(func, args);
663 Py_DECREF(args);
664 if (result) {
665 retval = PyInt_AsLong(result);
666 Py_DECREF(result);
667 }
668
669 wxPyEndBlockThreads(blocked);
670 return retval;
671 }
672
673 // C++ Version of a Python aware class
674 class wxPyListCtrl : public wxListCtrl {
675 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
676 public:
677 wxPyListCtrl() : wxListCtrl() {}
678 wxPyListCtrl(wxWindow* parent, wxWindowID id,
679 const wxPoint& pos,
680 const wxSize& size,
681 long style,
682 const wxValidator& validator,
683 const wxString& name) :
684 wxListCtrl(parent, id, pos, size, style, validator, name) {}
685
686 bool Create(wxWindow* parent, wxWindowID id,
687 const wxPoint& pos,
688 const wxSize& size,
689 long style,
690 const wxValidator& validator,
691 const wxString& name) {
692 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
693 }
694
695 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
696 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
697 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
698
699 PYPRIVATE;
700 };
701
702 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
703
704 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
705 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
706 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
707
708 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
709 wxListItem item;
710 item.SetMask( wxLIST_MASK_STATE |
711 wxLIST_MASK_TEXT |
712 wxLIST_MASK_IMAGE |
713 wxLIST_MASK_DATA |
714 wxLIST_SET_ITEM |
715 wxLIST_MASK_WIDTH |
716 wxLIST_MASK_FORMAT
717 );
718 if (self->GetColumn(col, item))
719 return new wxListItem(item);
720 else
721 return NULL;
722 }
723 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
724 wxListItem* info = new wxListItem;
725 info->m_itemId = itemId;
726 info->m_col = col;
727 info->m_mask = 0xFFFF;
728 self->GetItem(*info);
729 return info;
730 }
731 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
732 wxPoint pos;
733 self->GetItemPosition(item, pos);
734 return pos;
735 }
736 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
737 wxRect rect;
738 self->GetItemRect(item, rect, code);
739 return rect;
740 }
741 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
742 if (!PyCallable_Check(func))
743 return False;
744 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
745 }
746 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
747
748 return self;
749
750
751
752 }
753
754 #include <wx/treectrl.h>
755 #include "wx/wxPython/pytree.h"
756
757 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
758 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
759 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
760 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
761 // C++ version of Python aware wxTreeCtrl
762 class wxPyTreeCtrl : public wxTreeCtrl {
763 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
764 public:
765 wxPyTreeCtrl() : wxTreeCtrl() {}
766 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
767 const wxPoint& pos,
768 const wxSize& size,
769 long style,
770 const wxValidator& validator,
771 const wxString& name) :
772 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
773
774 bool Create(wxWindow *parent, wxWindowID id,
775 const wxPoint& pos,
776 const wxSize& size,
777 long style,
778 const wxValidator& validator,
779 const wxString& name) {
780 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
781 }
782
783
784 int OnCompareItems(const wxTreeItemId& item1,
785 const wxTreeItemId& item2) {
786 int rval = 0;
787 bool found;
788 bool blocked = wxPyBeginBlockThreads();
789 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
790 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
791 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
792 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
793 Py_DECREF(o1);
794 Py_DECREF(o2);
795 }
796 wxPyEndBlockThreads(blocked);
797 if (! found)
798 rval = wxTreeCtrl::OnCompareItems(item1, item2);
799 return rval;
800 }
801 PYPRIVATE;
802 };
803
804 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
805
806
807
808 #if UINT_MAX < LONG_MAX
809 #define SWIG_FromUnsignedInt SWIG_FromLong
810 #else
811 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
812 #endif
813
814
815 SWIGSTATICINLINE(unsigned long)
816 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
817 unsigned long max_value)
818 {
819 if (!PyErr_Occurred()) {
820 if (value > max_value) {
821 PyObject *err =
822 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
823 value, type, max_value);
824 PyErr_SetObject(PyExc_OverflowError, err);
825 Py_DECREF(err);
826 }
827 }
828 return value;
829 }
830
831
832 #if UINT_MAX != ULONG_MAX
833 SWIGSTATICINLINE(unsigned int)
834 SWIG_AsUnsignedInt(PyObject *obj)
835 {
836 return swig_numeric_cast(unsigned int,
837 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
838 "unsigned int", UINT_MAX));
839 }
840 #else
841 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
842 #endif
843
844
845 SWIGSTATICINLINE(int)
846 SWIG_CheckUnsignedInt(PyObject* obj)
847 {
848 SWIG_AsUnsignedInt(obj);
849 if (PyErr_Occurred()) {
850 PyErr_Clear();
851 return 0;
852 } else {
853 return 1;
854 }
855 }
856
857 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
858 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
859 if (data == NULL) {
860 data = new wxPyTreeItemData();
861 data->SetId(item); // set the id
862 self->SetItemData(item, data);
863 }
864 return data;
865 }
866 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
867 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
868 if (data == NULL) {
869 data = new wxPyTreeItemData();
870 data->SetId(item); // set the id
871 self->SetItemData(item, data);
872 }
873 return data->GetData();
874 }
875 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
876 data->SetId(item); // set the id
877 self->SetItemData(item, data);
878 }
879 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
880 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
881 if (data == NULL) {
882 data = new wxPyTreeItemData(obj);
883 data->SetId(item); // set the id
884 self->SetItemData(item, data);
885 } else
886 data->SetData(obj);
887 }
888 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
889 bool blocked = wxPyBeginBlockThreads();
890 PyObject* rval = PyList_New(0);
891 wxArrayTreeItemIds array;
892 size_t num, x;
893 num = self->GetSelections(array);
894 for (x=0; x < num; x++) {
895 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
896 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
897 PyList_Append(rval, item);
898 }
899 wxPyEndBlockThreads(blocked);
900 return rval;
901 }
902 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
903 void* cookie = 0;
904 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
905 bool blocked = wxPyBeginBlockThreads();
906 PyObject* tup = PyTuple_New(2);
907 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
908 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
909 wxPyEndBlockThreads(blocked);
910 return tup;
911 }
912 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
913 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
914 bool blocked = wxPyBeginBlockThreads();
915 PyObject* tup = PyTuple_New(2);
916 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
917 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
918 wxPyEndBlockThreads(blocked);
919 return tup;
920 }
921 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
922 wxRect rect;
923 if (self->GetBoundingRect(item, rect, textOnly)) {
924 bool blocked = wxPyBeginBlockThreads();
925 wxRect* r = new wxRect(rect);
926 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
927 wxPyEndBlockThreads(blocked);
928 return val;
929 }
930 else
931 RETURN_NONE();
932 }
933 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
934 // C++ version of Python aware wxControl
935 class wxPyControl : public wxControl
936 {
937 DECLARE_DYNAMIC_CLASS(wxPyControl)
938 public:
939 wxPyControl() : wxControl() {}
940 wxPyControl(wxWindow* parent, const wxWindowID id,
941 const wxPoint& pos = wxDefaultPosition,
942 const wxSize& size = wxDefaultSize,
943 long style = 0,
944 const wxValidator& validator=wxDefaultValidator,
945 const wxString& name = wxPyControlNameStr)
946 : wxControl(parent, id, pos, size, style, validator, name) {}
947
948
949 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
950 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
951 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
952 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
953
954 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
955 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
956 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
957
958 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
959 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
960
961 DEC_PYCALLBACK__(InitDialog);
962 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
963 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
964 DEC_PYCALLBACK_BOOL_(Validate);
965
966 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
967 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
968 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
969
970 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
971 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
972
973 DEC_PYCALLBACK_BOOL_(ShouldInheritColours);
974 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
975
976 PYPRIVATE;
977 };
978
979 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
980
981 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
982 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
983 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
984 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
985
986 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
987 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
988 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
989
990 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
991 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
992
993 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
994 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
995 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
996 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
997
998 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
999 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1000 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1001
1002 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1003 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1004
1005 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours);
1006 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1007
1008
1009
1010 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1011
1012 #include <wx/generic/dragimgg.h>
1013
1014 #ifdef __cplusplus
1015 extern "C" {
1016 #endif
1017 static int _wrap_ButtonNameStr_set(PyObject *_val) {
1018 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1019 return 1;
1020 }
1021
1022
1023 static PyObject *_wrap_ButtonNameStr_get() {
1024 PyObject *pyobj;
1025
1026 {
1027 #if wxUSE_UNICODE
1028 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1029 #else
1030 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1031 #endif
1032 }
1033 return pyobj;
1034 }
1035
1036
1037 static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
1038 PyObject *resultobj;
1039 wxWindow *arg1 = (wxWindow *) 0 ;
1040 int arg2 ;
1041 wxString *arg3 = 0 ;
1042 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1043 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1044 wxSize const &arg5_defvalue = wxDefaultSize ;
1045 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1046 long arg6 = (long) 0 ;
1047 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1048 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1049 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1050 wxString *arg8 = (wxString *) &arg8_defvalue ;
1051 wxButton *result;
1052 bool temp3 = False ;
1053 wxPoint temp4 ;
1054 wxSize temp5 ;
1055 bool temp8 = False ;
1056 PyObject * obj0 = 0 ;
1057 PyObject * obj1 = 0 ;
1058 PyObject * obj2 = 0 ;
1059 PyObject * obj3 = 0 ;
1060 PyObject * obj4 = 0 ;
1061 PyObject * obj5 = 0 ;
1062 PyObject * obj6 = 0 ;
1063 PyObject * obj7 = 0 ;
1064 char *kwnames[] = {
1065 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1066 };
1067
1068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1071 arg2 = (int) SWIG_AsInt(obj1);
1072 if (PyErr_Occurred()) SWIG_fail;
1073 {
1074 arg3 = wxString_in_helper(obj2);
1075 if (arg3 == NULL) SWIG_fail;
1076 temp3 = True;
1077 }
1078 if (obj3) {
1079 {
1080 arg4 = &temp4;
1081 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1082 }
1083 }
1084 if (obj4) {
1085 {
1086 arg5 = &temp5;
1087 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1088 }
1089 }
1090 if (obj5) {
1091 arg6 = (long) SWIG_AsLong(obj5);
1092 if (PyErr_Occurred()) SWIG_fail;
1093 }
1094 if (obj6) {
1095 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1096 SWIG_POINTER_EXCEPTION | 0)) == -1)
1097 SWIG_fail;
1098 if (arg7 == NULL) {
1099 PyErr_SetString(PyExc_TypeError,"null reference");
1100 SWIG_fail;
1101 }
1102 }
1103 if (obj7) {
1104 {
1105 arg8 = wxString_in_helper(obj7);
1106 if (arg8 == NULL) SWIG_fail;
1107 temp8 = True;
1108 }
1109 }
1110 {
1111 PyThreadState* __tstate = wxPyBeginAllowThreads();
1112 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1113
1114 wxPyEndAllowThreads(__tstate);
1115 if (PyErr_Occurred()) SWIG_fail;
1116 }
1117 {
1118 resultobj = wxPyMake_wxObject(result);
1119 }
1120 {
1121 if (temp3)
1122 delete arg3;
1123 }
1124 {
1125 if (temp8)
1126 delete arg8;
1127 }
1128 return resultobj;
1129 fail:
1130 {
1131 if (temp3)
1132 delete arg3;
1133 }
1134 {
1135 if (temp8)
1136 delete arg8;
1137 }
1138 return NULL;
1139 }
1140
1141
1142 static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1143 PyObject *resultobj;
1144 wxButton *result;
1145 char *kwnames[] = {
1146 NULL
1147 };
1148
1149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1150 {
1151 PyThreadState* __tstate = wxPyBeginAllowThreads();
1152 result = (wxButton *)new wxButton();
1153
1154 wxPyEndAllowThreads(__tstate);
1155 if (PyErr_Occurred()) SWIG_fail;
1156 }
1157 {
1158 resultobj = wxPyMake_wxObject(result);
1159 }
1160 return resultobj;
1161 fail:
1162 return NULL;
1163 }
1164
1165
1166 static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1167 PyObject *resultobj;
1168 wxButton *arg1 = (wxButton *) 0 ;
1169 wxWindow *arg2 = (wxWindow *) 0 ;
1170 int arg3 ;
1171 wxString *arg4 = 0 ;
1172 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1173 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1174 wxSize const &arg6_defvalue = wxDefaultSize ;
1175 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1176 long arg7 = (long) 0 ;
1177 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1178 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1179 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1180 wxString *arg9 = (wxString *) &arg9_defvalue ;
1181 bool result;
1182 bool temp4 = False ;
1183 wxPoint temp5 ;
1184 wxSize temp6 ;
1185 bool temp9 = False ;
1186 PyObject * obj0 = 0 ;
1187 PyObject * obj1 = 0 ;
1188 PyObject * obj2 = 0 ;
1189 PyObject * obj3 = 0 ;
1190 PyObject * obj4 = 0 ;
1191 PyObject * obj5 = 0 ;
1192 PyObject * obj6 = 0 ;
1193 PyObject * obj7 = 0 ;
1194 PyObject * obj8 = 0 ;
1195 char *kwnames[] = {
1196 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1197 };
1198
1199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1204 arg3 = (int) SWIG_AsInt(obj2);
1205 if (PyErr_Occurred()) SWIG_fail;
1206 {
1207 arg4 = wxString_in_helper(obj3);
1208 if (arg4 == NULL) SWIG_fail;
1209 temp4 = True;
1210 }
1211 if (obj4) {
1212 {
1213 arg5 = &temp5;
1214 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1215 }
1216 }
1217 if (obj5) {
1218 {
1219 arg6 = &temp6;
1220 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1221 }
1222 }
1223 if (obj6) {
1224 arg7 = (long) SWIG_AsLong(obj6);
1225 if (PyErr_Occurred()) SWIG_fail;
1226 }
1227 if (obj7) {
1228 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1229 SWIG_POINTER_EXCEPTION | 0)) == -1)
1230 SWIG_fail;
1231 if (arg8 == NULL) {
1232 PyErr_SetString(PyExc_TypeError,"null reference");
1233 SWIG_fail;
1234 }
1235 }
1236 if (obj8) {
1237 {
1238 arg9 = wxString_in_helper(obj8);
1239 if (arg9 == NULL) SWIG_fail;
1240 temp9 = True;
1241 }
1242 }
1243 {
1244 PyThreadState* __tstate = wxPyBeginAllowThreads();
1245 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1246
1247 wxPyEndAllowThreads(__tstate);
1248 if (PyErr_Occurred()) SWIG_fail;
1249 }
1250 {
1251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1252 }
1253 {
1254 if (temp4)
1255 delete arg4;
1256 }
1257 {
1258 if (temp9)
1259 delete arg9;
1260 }
1261 return resultobj;
1262 fail:
1263 {
1264 if (temp4)
1265 delete arg4;
1266 }
1267 {
1268 if (temp9)
1269 delete arg9;
1270 }
1271 return NULL;
1272 }
1273
1274
1275 static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1276 PyObject *resultobj;
1277 wxButton *arg1 = (wxButton *) 0 ;
1278 PyObject * obj0 = 0 ;
1279 char *kwnames[] = {
1280 (char *) "self", NULL
1281 };
1282
1283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1286 {
1287 PyThreadState* __tstate = wxPyBeginAllowThreads();
1288 (arg1)->SetDefault();
1289
1290 wxPyEndAllowThreads(__tstate);
1291 if (PyErr_Occurred()) SWIG_fail;
1292 }
1293 Py_INCREF(Py_None); resultobj = Py_None;
1294 return resultobj;
1295 fail:
1296 return NULL;
1297 }
1298
1299
1300 static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1301 PyObject *resultobj;
1302 wxSize result;
1303 char *kwnames[] = {
1304 NULL
1305 };
1306
1307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1308 {
1309 PyThreadState* __tstate = wxPyBeginAllowThreads();
1310 result = wxButton::GetDefaultSize();
1311
1312 wxPyEndAllowThreads(__tstate);
1313 if (PyErr_Occurred()) SWIG_fail;
1314 }
1315 {
1316 wxSize * resultptr;
1317 resultptr = new wxSize((wxSize &) result);
1318 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1319 }
1320 return resultobj;
1321 fail:
1322 return NULL;
1323 }
1324
1325
1326 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1327 PyObject *resultobj;
1328 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1329 wxVisualAttributes result;
1330 PyObject * obj0 = 0 ;
1331 char *kwnames[] = {
1332 (char *) "variant", NULL
1333 };
1334
1335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1336 if (obj0) {
1337 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
1338 if (PyErr_Occurred()) SWIG_fail;
1339 }
1340 {
1341 PyThreadState* __tstate = wxPyBeginAllowThreads();
1342 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1343
1344 wxPyEndAllowThreads(__tstate);
1345 if (PyErr_Occurred()) SWIG_fail;
1346 }
1347 {
1348 wxVisualAttributes * resultptr;
1349 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1350 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1351 }
1352 return resultobj;
1353 fail:
1354 return NULL;
1355 }
1356
1357
1358 static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1359 PyObject *obj;
1360 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1361 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1362 Py_INCREF(obj);
1363 return Py_BuildValue((char *)"");
1364 }
1365 static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1366 PyObject *resultobj;
1367 wxWindow *arg1 = (wxWindow *) 0 ;
1368 int arg2 ;
1369 wxBitmap *arg3 = 0 ;
1370 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1371 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1372 wxSize const &arg5_defvalue = wxDefaultSize ;
1373 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1374 long arg6 = (long) wxBU_AUTODRAW ;
1375 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1376 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1377 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1378 wxString *arg8 = (wxString *) &arg8_defvalue ;
1379 wxBitmapButton *result;
1380 wxPoint temp4 ;
1381 wxSize temp5 ;
1382 bool temp8 = False ;
1383 PyObject * obj0 = 0 ;
1384 PyObject * obj1 = 0 ;
1385 PyObject * obj2 = 0 ;
1386 PyObject * obj3 = 0 ;
1387 PyObject * obj4 = 0 ;
1388 PyObject * obj5 = 0 ;
1389 PyObject * obj6 = 0 ;
1390 PyObject * obj7 = 0 ;
1391 char *kwnames[] = {
1392 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1393 };
1394
1395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1398 arg2 = (int) SWIG_AsInt(obj1);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1401 SWIG_POINTER_EXCEPTION | 0)) == -1)
1402 SWIG_fail;
1403 if (arg3 == NULL) {
1404 PyErr_SetString(PyExc_TypeError,"null reference");
1405 SWIG_fail;
1406 }
1407 if (obj3) {
1408 {
1409 arg4 = &temp4;
1410 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1411 }
1412 }
1413 if (obj4) {
1414 {
1415 arg5 = &temp5;
1416 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1417 }
1418 }
1419 if (obj5) {
1420 arg6 = (long) SWIG_AsLong(obj5);
1421 if (PyErr_Occurred()) SWIG_fail;
1422 }
1423 if (obj6) {
1424 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1425 SWIG_POINTER_EXCEPTION | 0)) == -1)
1426 SWIG_fail;
1427 if (arg7 == NULL) {
1428 PyErr_SetString(PyExc_TypeError,"null reference");
1429 SWIG_fail;
1430 }
1431 }
1432 if (obj7) {
1433 {
1434 arg8 = wxString_in_helper(obj7);
1435 if (arg8 == NULL) SWIG_fail;
1436 temp8 = True;
1437 }
1438 }
1439 {
1440 PyThreadState* __tstate = wxPyBeginAllowThreads();
1441 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1442
1443 wxPyEndAllowThreads(__tstate);
1444 if (PyErr_Occurred()) SWIG_fail;
1445 }
1446 {
1447 resultobj = wxPyMake_wxObject(result);
1448 }
1449 {
1450 if (temp8)
1451 delete arg8;
1452 }
1453 return resultobj;
1454 fail:
1455 {
1456 if (temp8)
1457 delete arg8;
1458 }
1459 return NULL;
1460 }
1461
1462
1463 static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1464 PyObject *resultobj;
1465 wxBitmapButton *result;
1466 char *kwnames[] = {
1467 NULL
1468 };
1469
1470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1471 {
1472 PyThreadState* __tstate = wxPyBeginAllowThreads();
1473 result = (wxBitmapButton *)new wxBitmapButton();
1474
1475 wxPyEndAllowThreads(__tstate);
1476 if (PyErr_Occurred()) SWIG_fail;
1477 }
1478 {
1479 resultobj = wxPyMake_wxObject(result);
1480 }
1481 return resultobj;
1482 fail:
1483 return NULL;
1484 }
1485
1486
1487 static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1488 PyObject *resultobj;
1489 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1490 wxWindow *arg2 = (wxWindow *) 0 ;
1491 int arg3 ;
1492 wxBitmap *arg4 = 0 ;
1493 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1494 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1495 wxSize const &arg6_defvalue = wxDefaultSize ;
1496 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1497 long arg7 = (long) wxBU_AUTODRAW ;
1498 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1499 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1500 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1501 wxString *arg9 = (wxString *) &arg9_defvalue ;
1502 bool result;
1503 wxPoint temp5 ;
1504 wxSize temp6 ;
1505 bool temp9 = False ;
1506 PyObject * obj0 = 0 ;
1507 PyObject * obj1 = 0 ;
1508 PyObject * obj2 = 0 ;
1509 PyObject * obj3 = 0 ;
1510 PyObject * obj4 = 0 ;
1511 PyObject * obj5 = 0 ;
1512 PyObject * obj6 = 0 ;
1513 PyObject * obj7 = 0 ;
1514 PyObject * obj8 = 0 ;
1515 char *kwnames[] = {
1516 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1517 };
1518
1519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1524 arg3 = (int) SWIG_AsInt(obj2);
1525 if (PyErr_Occurred()) SWIG_fail;
1526 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1527 SWIG_POINTER_EXCEPTION | 0)) == -1)
1528 SWIG_fail;
1529 if (arg4 == NULL) {
1530 PyErr_SetString(PyExc_TypeError,"null reference");
1531 SWIG_fail;
1532 }
1533 if (obj4) {
1534 {
1535 arg5 = &temp5;
1536 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1537 }
1538 }
1539 if (obj5) {
1540 {
1541 arg6 = &temp6;
1542 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1543 }
1544 }
1545 if (obj6) {
1546 arg7 = (long) SWIG_AsLong(obj6);
1547 if (PyErr_Occurred()) SWIG_fail;
1548 }
1549 if (obj7) {
1550 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1551 SWIG_POINTER_EXCEPTION | 0)) == -1)
1552 SWIG_fail;
1553 if (arg8 == NULL) {
1554 PyErr_SetString(PyExc_TypeError,"null reference");
1555 SWIG_fail;
1556 }
1557 }
1558 if (obj8) {
1559 {
1560 arg9 = wxString_in_helper(obj8);
1561 if (arg9 == NULL) SWIG_fail;
1562 temp9 = True;
1563 }
1564 }
1565 {
1566 PyThreadState* __tstate = wxPyBeginAllowThreads();
1567 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1568
1569 wxPyEndAllowThreads(__tstate);
1570 if (PyErr_Occurred()) SWIG_fail;
1571 }
1572 {
1573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1574 }
1575 {
1576 if (temp9)
1577 delete arg9;
1578 }
1579 return resultobj;
1580 fail:
1581 {
1582 if (temp9)
1583 delete arg9;
1584 }
1585 return NULL;
1586 }
1587
1588
1589 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1590 PyObject *resultobj;
1591 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1592 wxBitmap result;
1593 PyObject * obj0 = 0 ;
1594 char *kwnames[] = {
1595 (char *) "self", NULL
1596 };
1597
1598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1601 {
1602 PyThreadState* __tstate = wxPyBeginAllowThreads();
1603 result = (arg1)->GetBitmapLabel();
1604
1605 wxPyEndAllowThreads(__tstate);
1606 if (PyErr_Occurred()) SWIG_fail;
1607 }
1608 {
1609 wxBitmap * resultptr;
1610 resultptr = new wxBitmap((wxBitmap &) result);
1611 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1612 }
1613 return resultobj;
1614 fail:
1615 return NULL;
1616 }
1617
1618
1619 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1620 PyObject *resultobj;
1621 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1622 wxBitmap result;
1623 PyObject * obj0 = 0 ;
1624 char *kwnames[] = {
1625 (char *) "self", NULL
1626 };
1627
1628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1631 {
1632 PyThreadState* __tstate = wxPyBeginAllowThreads();
1633 result = (arg1)->GetBitmapDisabled();
1634
1635 wxPyEndAllowThreads(__tstate);
1636 if (PyErr_Occurred()) SWIG_fail;
1637 }
1638 {
1639 wxBitmap * resultptr;
1640 resultptr = new wxBitmap((wxBitmap &) result);
1641 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1642 }
1643 return resultobj;
1644 fail:
1645 return NULL;
1646 }
1647
1648
1649 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1650 PyObject *resultobj;
1651 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1652 wxBitmap result;
1653 PyObject * obj0 = 0 ;
1654 char *kwnames[] = {
1655 (char *) "self", NULL
1656 };
1657
1658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1661 {
1662 PyThreadState* __tstate = wxPyBeginAllowThreads();
1663 result = (arg1)->GetBitmapFocus();
1664
1665 wxPyEndAllowThreads(__tstate);
1666 if (PyErr_Occurred()) SWIG_fail;
1667 }
1668 {
1669 wxBitmap * resultptr;
1670 resultptr = new wxBitmap((wxBitmap &) result);
1671 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1672 }
1673 return resultobj;
1674 fail:
1675 return NULL;
1676 }
1677
1678
1679 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1680 PyObject *resultobj;
1681 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1682 wxBitmap result;
1683 PyObject * obj0 = 0 ;
1684 char *kwnames[] = {
1685 (char *) "self", NULL
1686 };
1687
1688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1691 {
1692 PyThreadState* __tstate = wxPyBeginAllowThreads();
1693 result = (arg1)->GetBitmapSelected();
1694
1695 wxPyEndAllowThreads(__tstate);
1696 if (PyErr_Occurred()) SWIG_fail;
1697 }
1698 {
1699 wxBitmap * resultptr;
1700 resultptr = new wxBitmap((wxBitmap &) result);
1701 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1702 }
1703 return resultobj;
1704 fail:
1705 return NULL;
1706 }
1707
1708
1709 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1710 PyObject *resultobj;
1711 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1712 wxBitmap *arg2 = 0 ;
1713 PyObject * obj0 = 0 ;
1714 PyObject * obj1 = 0 ;
1715 char *kwnames[] = {
1716 (char *) "self",(char *) "bitmap", NULL
1717 };
1718
1719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1722 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1723 SWIG_POINTER_EXCEPTION | 0)) == -1)
1724 SWIG_fail;
1725 if (arg2 == NULL) {
1726 PyErr_SetString(PyExc_TypeError,"null reference");
1727 SWIG_fail;
1728 }
1729 {
1730 PyThreadState* __tstate = wxPyBeginAllowThreads();
1731 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1732
1733 wxPyEndAllowThreads(__tstate);
1734 if (PyErr_Occurred()) SWIG_fail;
1735 }
1736 Py_INCREF(Py_None); resultobj = Py_None;
1737 return resultobj;
1738 fail:
1739 return NULL;
1740 }
1741
1742
1743 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1744 PyObject *resultobj;
1745 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1746 wxBitmap *arg2 = 0 ;
1747 PyObject * obj0 = 0 ;
1748 PyObject * obj1 = 0 ;
1749 char *kwnames[] = {
1750 (char *) "self",(char *) "bitmap", NULL
1751 };
1752
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1756 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1757 SWIG_POINTER_EXCEPTION | 0)) == -1)
1758 SWIG_fail;
1759 if (arg2 == NULL) {
1760 PyErr_SetString(PyExc_TypeError,"null reference");
1761 SWIG_fail;
1762 }
1763 {
1764 PyThreadState* __tstate = wxPyBeginAllowThreads();
1765 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1766
1767 wxPyEndAllowThreads(__tstate);
1768 if (PyErr_Occurred()) SWIG_fail;
1769 }
1770 Py_INCREF(Py_None); resultobj = Py_None;
1771 return resultobj;
1772 fail:
1773 return NULL;
1774 }
1775
1776
1777 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1778 PyObject *resultobj;
1779 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1780 wxBitmap *arg2 = 0 ;
1781 PyObject * obj0 = 0 ;
1782 PyObject * obj1 = 0 ;
1783 char *kwnames[] = {
1784 (char *) "self",(char *) "bitmap", NULL
1785 };
1786
1787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1790 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1791 SWIG_POINTER_EXCEPTION | 0)) == -1)
1792 SWIG_fail;
1793 if (arg2 == NULL) {
1794 PyErr_SetString(PyExc_TypeError,"null reference");
1795 SWIG_fail;
1796 }
1797 {
1798 PyThreadState* __tstate = wxPyBeginAllowThreads();
1799 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1800
1801 wxPyEndAllowThreads(__tstate);
1802 if (PyErr_Occurred()) SWIG_fail;
1803 }
1804 Py_INCREF(Py_None); resultobj = Py_None;
1805 return resultobj;
1806 fail:
1807 return NULL;
1808 }
1809
1810
1811 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1812 PyObject *resultobj;
1813 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1814 wxBitmap *arg2 = 0 ;
1815 PyObject * obj0 = 0 ;
1816 PyObject * obj1 = 0 ;
1817 char *kwnames[] = {
1818 (char *) "self",(char *) "bitmap", NULL
1819 };
1820
1821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1824 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1825 SWIG_POINTER_EXCEPTION | 0)) == -1)
1826 SWIG_fail;
1827 if (arg2 == NULL) {
1828 PyErr_SetString(PyExc_TypeError,"null reference");
1829 SWIG_fail;
1830 }
1831 {
1832 PyThreadState* __tstate = wxPyBeginAllowThreads();
1833 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1834
1835 wxPyEndAllowThreads(__tstate);
1836 if (PyErr_Occurred()) SWIG_fail;
1837 }
1838 Py_INCREF(Py_None); resultobj = Py_None;
1839 return resultobj;
1840 fail:
1841 return NULL;
1842 }
1843
1844
1845 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1846 PyObject *resultobj;
1847 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1848 int arg2 ;
1849 int arg3 ;
1850 PyObject * obj0 = 0 ;
1851 PyObject * obj1 = 0 ;
1852 PyObject * obj2 = 0 ;
1853 char *kwnames[] = {
1854 (char *) "self",(char *) "x",(char *) "y", NULL
1855 };
1856
1857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1860 arg2 = (int) SWIG_AsInt(obj1);
1861 if (PyErr_Occurred()) SWIG_fail;
1862 arg3 = (int) SWIG_AsInt(obj2);
1863 if (PyErr_Occurred()) SWIG_fail;
1864 {
1865 PyThreadState* __tstate = wxPyBeginAllowThreads();
1866 (arg1)->SetMargins(arg2,arg3);
1867
1868 wxPyEndAllowThreads(__tstate);
1869 if (PyErr_Occurred()) SWIG_fail;
1870 }
1871 Py_INCREF(Py_None); resultobj = Py_None;
1872 return resultobj;
1873 fail:
1874 return NULL;
1875 }
1876
1877
1878 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject *resultobj;
1880 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1881 int result;
1882 PyObject * obj0 = 0 ;
1883 char *kwnames[] = {
1884 (char *) "self", NULL
1885 };
1886
1887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1890 {
1891 PyThreadState* __tstate = wxPyBeginAllowThreads();
1892 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1893
1894 wxPyEndAllowThreads(__tstate);
1895 if (PyErr_Occurred()) SWIG_fail;
1896 }
1897 resultobj = SWIG_FromInt((int)result);
1898 return resultobj;
1899 fail:
1900 return NULL;
1901 }
1902
1903
1904 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1905 PyObject *resultobj;
1906 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1907 int result;
1908 PyObject * obj0 = 0 ;
1909 char *kwnames[] = {
1910 (char *) "self", NULL
1911 };
1912
1913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1916 {
1917 PyThreadState* __tstate = wxPyBeginAllowThreads();
1918 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1919
1920 wxPyEndAllowThreads(__tstate);
1921 if (PyErr_Occurred()) SWIG_fail;
1922 }
1923 resultobj = SWIG_FromInt((int)result);
1924 return resultobj;
1925 fail:
1926 return NULL;
1927 }
1928
1929
1930 static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1931 PyObject *obj;
1932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1933 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1934 Py_INCREF(obj);
1935 return Py_BuildValue((char *)"");
1936 }
1937 static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1938 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1939 return 1;
1940 }
1941
1942
1943 static PyObject *_wrap_CheckBoxNameStr_get() {
1944 PyObject *pyobj;
1945
1946 {
1947 #if wxUSE_UNICODE
1948 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1949 #else
1950 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1951 #endif
1952 }
1953 return pyobj;
1954 }
1955
1956
1957 static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject *resultobj;
1959 wxWindow *arg1 = (wxWindow *) 0 ;
1960 int arg2 ;
1961 wxString *arg3 = 0 ;
1962 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1963 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1964 wxSize const &arg5_defvalue = wxDefaultSize ;
1965 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1966 long arg6 = (long) 0 ;
1967 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1968 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1969 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1970 wxString *arg8 = (wxString *) &arg8_defvalue ;
1971 wxCheckBox *result;
1972 bool temp3 = False ;
1973 wxPoint temp4 ;
1974 wxSize temp5 ;
1975 bool temp8 = False ;
1976 PyObject * obj0 = 0 ;
1977 PyObject * obj1 = 0 ;
1978 PyObject * obj2 = 0 ;
1979 PyObject * obj3 = 0 ;
1980 PyObject * obj4 = 0 ;
1981 PyObject * obj5 = 0 ;
1982 PyObject * obj6 = 0 ;
1983 PyObject * obj7 = 0 ;
1984 char *kwnames[] = {
1985 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1986 };
1987
1988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1991 arg2 = (int) SWIG_AsInt(obj1);
1992 if (PyErr_Occurred()) SWIG_fail;
1993 {
1994 arg3 = wxString_in_helper(obj2);
1995 if (arg3 == NULL) SWIG_fail;
1996 temp3 = True;
1997 }
1998 if (obj3) {
1999 {
2000 arg4 = &temp4;
2001 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2002 }
2003 }
2004 if (obj4) {
2005 {
2006 arg5 = &temp5;
2007 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2008 }
2009 }
2010 if (obj5) {
2011 arg6 = (long) SWIG_AsLong(obj5);
2012 if (PyErr_Occurred()) SWIG_fail;
2013 }
2014 if (obj6) {
2015 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2016 SWIG_POINTER_EXCEPTION | 0)) == -1)
2017 SWIG_fail;
2018 if (arg7 == NULL) {
2019 PyErr_SetString(PyExc_TypeError,"null reference");
2020 SWIG_fail;
2021 }
2022 }
2023 if (obj7) {
2024 {
2025 arg8 = wxString_in_helper(obj7);
2026 if (arg8 == NULL) SWIG_fail;
2027 temp8 = True;
2028 }
2029 }
2030 {
2031 PyThreadState* __tstate = wxPyBeginAllowThreads();
2032 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2033
2034 wxPyEndAllowThreads(__tstate);
2035 if (PyErr_Occurred()) SWIG_fail;
2036 }
2037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2038 {
2039 if (temp3)
2040 delete arg3;
2041 }
2042 {
2043 if (temp8)
2044 delete arg8;
2045 }
2046 return resultobj;
2047 fail:
2048 {
2049 if (temp3)
2050 delete arg3;
2051 }
2052 {
2053 if (temp8)
2054 delete arg8;
2055 }
2056 return NULL;
2057 }
2058
2059
2060 static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2061 PyObject *resultobj;
2062 wxCheckBox *result;
2063 char *kwnames[] = {
2064 NULL
2065 };
2066
2067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2068 {
2069 PyThreadState* __tstate = wxPyBeginAllowThreads();
2070 result = (wxCheckBox *)new wxCheckBox();
2071
2072 wxPyEndAllowThreads(__tstate);
2073 if (PyErr_Occurred()) SWIG_fail;
2074 }
2075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2076 return resultobj;
2077 fail:
2078 return NULL;
2079 }
2080
2081
2082 static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2083 PyObject *resultobj;
2084 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2085 wxWindow *arg2 = (wxWindow *) 0 ;
2086 int arg3 ;
2087 wxString *arg4 = 0 ;
2088 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2089 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2090 wxSize const &arg6_defvalue = wxDefaultSize ;
2091 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2092 long arg7 = (long) 0 ;
2093 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2094 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2095 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2096 wxString *arg9 = (wxString *) &arg9_defvalue ;
2097 bool result;
2098 bool temp4 = False ;
2099 wxPoint temp5 ;
2100 wxSize temp6 ;
2101 bool temp9 = False ;
2102 PyObject * obj0 = 0 ;
2103 PyObject * obj1 = 0 ;
2104 PyObject * obj2 = 0 ;
2105 PyObject * obj3 = 0 ;
2106 PyObject * obj4 = 0 ;
2107 PyObject * obj5 = 0 ;
2108 PyObject * obj6 = 0 ;
2109 PyObject * obj7 = 0 ;
2110 PyObject * obj8 = 0 ;
2111 char *kwnames[] = {
2112 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2113 };
2114
2115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2118 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2120 arg3 = (int) SWIG_AsInt(obj2);
2121 if (PyErr_Occurred()) SWIG_fail;
2122 {
2123 arg4 = wxString_in_helper(obj3);
2124 if (arg4 == NULL) SWIG_fail;
2125 temp4 = True;
2126 }
2127 if (obj4) {
2128 {
2129 arg5 = &temp5;
2130 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2131 }
2132 }
2133 if (obj5) {
2134 {
2135 arg6 = &temp6;
2136 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2137 }
2138 }
2139 if (obj6) {
2140 arg7 = (long) SWIG_AsLong(obj6);
2141 if (PyErr_Occurred()) SWIG_fail;
2142 }
2143 if (obj7) {
2144 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2145 SWIG_POINTER_EXCEPTION | 0)) == -1)
2146 SWIG_fail;
2147 if (arg8 == NULL) {
2148 PyErr_SetString(PyExc_TypeError,"null reference");
2149 SWIG_fail;
2150 }
2151 }
2152 if (obj8) {
2153 {
2154 arg9 = wxString_in_helper(obj8);
2155 if (arg9 == NULL) SWIG_fail;
2156 temp9 = True;
2157 }
2158 }
2159 {
2160 PyThreadState* __tstate = wxPyBeginAllowThreads();
2161 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2162
2163 wxPyEndAllowThreads(__tstate);
2164 if (PyErr_Occurred()) SWIG_fail;
2165 }
2166 {
2167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2168 }
2169 {
2170 if (temp4)
2171 delete arg4;
2172 }
2173 {
2174 if (temp9)
2175 delete arg9;
2176 }
2177 return resultobj;
2178 fail:
2179 {
2180 if (temp4)
2181 delete arg4;
2182 }
2183 {
2184 if (temp9)
2185 delete arg9;
2186 }
2187 return NULL;
2188 }
2189
2190
2191 static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2192 PyObject *resultobj;
2193 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2194 bool result;
2195 PyObject * obj0 = 0 ;
2196 char *kwnames[] = {
2197 (char *) "self", NULL
2198 };
2199
2200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2203 {
2204 PyThreadState* __tstate = wxPyBeginAllowThreads();
2205 result = (bool)(arg1)->GetValue();
2206
2207 wxPyEndAllowThreads(__tstate);
2208 if (PyErr_Occurred()) SWIG_fail;
2209 }
2210 {
2211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2212 }
2213 return resultobj;
2214 fail:
2215 return NULL;
2216 }
2217
2218
2219 static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2220 PyObject *resultobj;
2221 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2222 bool result;
2223 PyObject * obj0 = 0 ;
2224 char *kwnames[] = {
2225 (char *) "self", NULL
2226 };
2227
2228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2231 {
2232 PyThreadState* __tstate = wxPyBeginAllowThreads();
2233 result = (bool)(arg1)->IsChecked();
2234
2235 wxPyEndAllowThreads(__tstate);
2236 if (PyErr_Occurred()) SWIG_fail;
2237 }
2238 {
2239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2240 }
2241 return resultobj;
2242 fail:
2243 return NULL;
2244 }
2245
2246
2247 static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2248 PyObject *resultobj;
2249 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2250 bool arg2 ;
2251 PyObject * obj0 = 0 ;
2252 PyObject * obj1 = 0 ;
2253 char *kwnames[] = {
2254 (char *) "self",(char *) "state", NULL
2255 };
2256
2257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2260 arg2 = (bool const) SWIG_AsBool(obj1);
2261 if (PyErr_Occurred()) SWIG_fail;
2262 {
2263 PyThreadState* __tstate = wxPyBeginAllowThreads();
2264 (arg1)->SetValue(arg2);
2265
2266 wxPyEndAllowThreads(__tstate);
2267 if (PyErr_Occurred()) SWIG_fail;
2268 }
2269 Py_INCREF(Py_None); resultobj = Py_None;
2270 return resultobj;
2271 fail:
2272 return NULL;
2273 }
2274
2275
2276 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2277 PyObject *resultobj;
2278 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2279 int result;
2280 PyObject * obj0 = 0 ;
2281 char *kwnames[] = {
2282 (char *) "self", NULL
2283 };
2284
2285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2288 {
2289 PyThreadState* __tstate = wxPyBeginAllowThreads();
2290 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2291
2292 wxPyEndAllowThreads(__tstate);
2293 if (PyErr_Occurred()) SWIG_fail;
2294 }
2295 resultobj = SWIG_FromInt((int)result);
2296 return resultobj;
2297 fail:
2298 return NULL;
2299 }
2300
2301
2302 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2303 PyObject *resultobj;
2304 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2305 int arg2 ;
2306 PyObject * obj0 = 0 ;
2307 PyObject * obj1 = 0 ;
2308 char *kwnames[] = {
2309 (char *) "self",(char *) "state", NULL
2310 };
2311
2312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2315 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2316 if (PyErr_Occurred()) SWIG_fail;
2317 {
2318 PyThreadState* __tstate = wxPyBeginAllowThreads();
2319 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2320
2321 wxPyEndAllowThreads(__tstate);
2322 if (PyErr_Occurred()) SWIG_fail;
2323 }
2324 Py_INCREF(Py_None); resultobj = Py_None;
2325 return resultobj;
2326 fail:
2327 return NULL;
2328 }
2329
2330
2331 static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2332 PyObject *resultobj;
2333 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2334 bool result;
2335 PyObject * obj0 = 0 ;
2336 char *kwnames[] = {
2337 (char *) "self", NULL
2338 };
2339
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2343 {
2344 PyThreadState* __tstate = wxPyBeginAllowThreads();
2345 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2346
2347 wxPyEndAllowThreads(__tstate);
2348 if (PyErr_Occurred()) SWIG_fail;
2349 }
2350 {
2351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2352 }
2353 return resultobj;
2354 fail:
2355 return NULL;
2356 }
2357
2358
2359 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2360 PyObject *resultobj;
2361 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2362 bool result;
2363 PyObject * obj0 = 0 ;
2364 char *kwnames[] = {
2365 (char *) "self", NULL
2366 };
2367
2368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2371 {
2372 PyThreadState* __tstate = wxPyBeginAllowThreads();
2373 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2374
2375 wxPyEndAllowThreads(__tstate);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 }
2378 {
2379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2380 }
2381 return resultobj;
2382 fail:
2383 return NULL;
2384 }
2385
2386
2387 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2388 PyObject *resultobj;
2389 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2390 wxVisualAttributes result;
2391 PyObject * obj0 = 0 ;
2392 char *kwnames[] = {
2393 (char *) "variant", NULL
2394 };
2395
2396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2397 if (obj0) {
2398 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2399 if (PyErr_Occurred()) SWIG_fail;
2400 }
2401 {
2402 PyThreadState* __tstate = wxPyBeginAllowThreads();
2403 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2404
2405 wxPyEndAllowThreads(__tstate);
2406 if (PyErr_Occurred()) SWIG_fail;
2407 }
2408 {
2409 wxVisualAttributes * resultptr;
2410 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2411 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2412 }
2413 return resultobj;
2414 fail:
2415 return NULL;
2416 }
2417
2418
2419 static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2420 PyObject *obj;
2421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2422 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2423 Py_INCREF(obj);
2424 return Py_BuildValue((char *)"");
2425 }
2426 static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2427 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2428 return 1;
2429 }
2430
2431
2432 static PyObject *_wrap_ChoiceNameStr_get() {
2433 PyObject *pyobj;
2434
2435 {
2436 #if wxUSE_UNICODE
2437 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2438 #else
2439 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2440 #endif
2441 }
2442 return pyobj;
2443 }
2444
2445
2446 static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2447 PyObject *resultobj;
2448 wxWindow *arg1 = (wxWindow *) 0 ;
2449 int arg2 = (int) -1 ;
2450 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2451 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2452 wxSize const &arg4_defvalue = wxDefaultSize ;
2453 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2454 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2455 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2456 long arg6 = (long) 0 ;
2457 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2458 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2459 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2460 wxString *arg8 = (wxString *) &arg8_defvalue ;
2461 wxChoice *result;
2462 wxPoint temp3 ;
2463 wxSize temp4 ;
2464 bool temp5 = False ;
2465 bool temp8 = False ;
2466 PyObject * obj0 = 0 ;
2467 PyObject * obj1 = 0 ;
2468 PyObject * obj2 = 0 ;
2469 PyObject * obj3 = 0 ;
2470 PyObject * obj4 = 0 ;
2471 PyObject * obj5 = 0 ;
2472 PyObject * obj6 = 0 ;
2473 PyObject * obj7 = 0 ;
2474 char *kwnames[] = {
2475 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2476 };
2477
2478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2481 if (obj1) {
2482 arg2 = (int) SWIG_AsInt(obj1);
2483 if (PyErr_Occurred()) SWIG_fail;
2484 }
2485 if (obj2) {
2486 {
2487 arg3 = &temp3;
2488 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2489 }
2490 }
2491 if (obj3) {
2492 {
2493 arg4 = &temp4;
2494 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2495 }
2496 }
2497 if (obj4) {
2498 {
2499 if (! PySequence_Check(obj4)) {
2500 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2501 SWIG_fail;
2502 }
2503 arg5 = new wxArrayString;
2504 temp5 = True;
2505 int i, len=PySequence_Length(obj4);
2506 for (i=0; i<len; i++) {
2507 PyObject* item = PySequence_GetItem(obj4, i);
2508 #if wxUSE_UNICODE
2509 PyObject* str = PyObject_Unicode(item);
2510 #else
2511 PyObject* str = PyObject_Str(item);
2512 #endif
2513 if (PyErr_Occurred()) SWIG_fail;
2514 arg5->Add(Py2wxString(str));
2515 Py_DECREF(item);
2516 Py_DECREF(str);
2517 }
2518 }
2519 }
2520 if (obj5) {
2521 arg6 = (long) SWIG_AsLong(obj5);
2522 if (PyErr_Occurred()) SWIG_fail;
2523 }
2524 if (obj6) {
2525 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2526 SWIG_POINTER_EXCEPTION | 0)) == -1)
2527 SWIG_fail;
2528 if (arg7 == NULL) {
2529 PyErr_SetString(PyExc_TypeError,"null reference");
2530 SWIG_fail;
2531 }
2532 }
2533 if (obj7) {
2534 {
2535 arg8 = wxString_in_helper(obj7);
2536 if (arg8 == NULL) SWIG_fail;
2537 temp8 = True;
2538 }
2539 }
2540 {
2541 PyThreadState* __tstate = wxPyBeginAllowThreads();
2542 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2543
2544 wxPyEndAllowThreads(__tstate);
2545 if (PyErr_Occurred()) SWIG_fail;
2546 }
2547 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2548 {
2549 if (temp5) delete arg5;
2550 }
2551 {
2552 if (temp8)
2553 delete arg8;
2554 }
2555 return resultobj;
2556 fail:
2557 {
2558 if (temp5) delete arg5;
2559 }
2560 {
2561 if (temp8)
2562 delete arg8;
2563 }
2564 return NULL;
2565 }
2566
2567
2568 static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2569 PyObject *resultobj;
2570 wxChoice *result;
2571 char *kwnames[] = {
2572 NULL
2573 };
2574
2575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2576 {
2577 PyThreadState* __tstate = wxPyBeginAllowThreads();
2578 result = (wxChoice *)new wxChoice();
2579
2580 wxPyEndAllowThreads(__tstate);
2581 if (PyErr_Occurred()) SWIG_fail;
2582 }
2583 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2584 return resultobj;
2585 fail:
2586 return NULL;
2587 }
2588
2589
2590 static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2591 PyObject *resultobj;
2592 wxChoice *arg1 = (wxChoice *) 0 ;
2593 wxWindow *arg2 = (wxWindow *) 0 ;
2594 int arg3 = (int) -1 ;
2595 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2596 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2597 wxSize const &arg5_defvalue = wxDefaultSize ;
2598 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2599 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2600 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2601 long arg7 = (long) 0 ;
2602 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2603 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2604 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2605 wxString *arg9 = (wxString *) &arg9_defvalue ;
2606 bool result;
2607 wxPoint temp4 ;
2608 wxSize temp5 ;
2609 bool temp6 = False ;
2610 bool temp9 = False ;
2611 PyObject * obj0 = 0 ;
2612 PyObject * obj1 = 0 ;
2613 PyObject * obj2 = 0 ;
2614 PyObject * obj3 = 0 ;
2615 PyObject * obj4 = 0 ;
2616 PyObject * obj5 = 0 ;
2617 PyObject * obj6 = 0 ;
2618 PyObject * obj7 = 0 ;
2619 PyObject * obj8 = 0 ;
2620 char *kwnames[] = {
2621 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2622 };
2623
2624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2627 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2629 if (obj2) {
2630 arg3 = (int) SWIG_AsInt(obj2);
2631 if (PyErr_Occurred()) SWIG_fail;
2632 }
2633 if (obj3) {
2634 {
2635 arg4 = &temp4;
2636 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2637 }
2638 }
2639 if (obj4) {
2640 {
2641 arg5 = &temp5;
2642 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2643 }
2644 }
2645 if (obj5) {
2646 {
2647 if (! PySequence_Check(obj5)) {
2648 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2649 SWIG_fail;
2650 }
2651 arg6 = new wxArrayString;
2652 temp6 = True;
2653 int i, len=PySequence_Length(obj5);
2654 for (i=0; i<len; i++) {
2655 PyObject* item = PySequence_GetItem(obj5, i);
2656 #if wxUSE_UNICODE
2657 PyObject* str = PyObject_Unicode(item);
2658 #else
2659 PyObject* str = PyObject_Str(item);
2660 #endif
2661 if (PyErr_Occurred()) SWIG_fail;
2662 arg6->Add(Py2wxString(str));
2663 Py_DECREF(item);
2664 Py_DECREF(str);
2665 }
2666 }
2667 }
2668 if (obj6) {
2669 arg7 = (long) SWIG_AsLong(obj6);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 }
2672 if (obj7) {
2673 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2674 SWIG_POINTER_EXCEPTION | 0)) == -1)
2675 SWIG_fail;
2676 if (arg8 == NULL) {
2677 PyErr_SetString(PyExc_TypeError,"null reference");
2678 SWIG_fail;
2679 }
2680 }
2681 if (obj8) {
2682 {
2683 arg9 = wxString_in_helper(obj8);
2684 if (arg9 == NULL) SWIG_fail;
2685 temp9 = True;
2686 }
2687 }
2688 {
2689 PyThreadState* __tstate = wxPyBeginAllowThreads();
2690 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2691
2692 wxPyEndAllowThreads(__tstate);
2693 if (PyErr_Occurred()) SWIG_fail;
2694 }
2695 {
2696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2697 }
2698 {
2699 if (temp6) delete arg6;
2700 }
2701 {
2702 if (temp9)
2703 delete arg9;
2704 }
2705 return resultobj;
2706 fail:
2707 {
2708 if (temp6) delete arg6;
2709 }
2710 {
2711 if (temp9)
2712 delete arg9;
2713 }
2714 return NULL;
2715 }
2716
2717
2718 static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2719 PyObject *resultobj;
2720 wxChoice *arg1 = (wxChoice *) 0 ;
2721 int arg2 ;
2722 PyObject * obj0 = 0 ;
2723 PyObject * obj1 = 0 ;
2724 char *kwnames[] = {
2725 (char *) "self",(char *) "n", NULL
2726 };
2727
2728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2731 arg2 = (int const) SWIG_AsInt(obj1);
2732 if (PyErr_Occurred()) SWIG_fail;
2733 {
2734 PyThreadState* __tstate = wxPyBeginAllowThreads();
2735 (arg1)->SetSelection(arg2);
2736
2737 wxPyEndAllowThreads(__tstate);
2738 if (PyErr_Occurred()) SWIG_fail;
2739 }
2740 Py_INCREF(Py_None); resultobj = Py_None;
2741 return resultobj;
2742 fail:
2743 return NULL;
2744 }
2745
2746
2747 static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2748 PyObject *resultobj;
2749 wxChoice *arg1 = (wxChoice *) 0 ;
2750 wxString *arg2 = 0 ;
2751 bool result;
2752 bool temp2 = False ;
2753 PyObject * obj0 = 0 ;
2754 PyObject * obj1 = 0 ;
2755 char *kwnames[] = {
2756 (char *) "self",(char *) "string", NULL
2757 };
2758
2759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2762 {
2763 arg2 = wxString_in_helper(obj1);
2764 if (arg2 == NULL) SWIG_fail;
2765 temp2 = True;
2766 }
2767 {
2768 PyThreadState* __tstate = wxPyBeginAllowThreads();
2769 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2770
2771 wxPyEndAllowThreads(__tstate);
2772 if (PyErr_Occurred()) SWIG_fail;
2773 }
2774 {
2775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2776 }
2777 {
2778 if (temp2)
2779 delete arg2;
2780 }
2781 return resultobj;
2782 fail:
2783 {
2784 if (temp2)
2785 delete arg2;
2786 }
2787 return NULL;
2788 }
2789
2790
2791 static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2792 PyObject *resultobj;
2793 wxChoice *arg1 = (wxChoice *) 0 ;
2794 int arg2 ;
2795 wxString *arg3 = 0 ;
2796 bool temp3 = False ;
2797 PyObject * obj0 = 0 ;
2798 PyObject * obj1 = 0 ;
2799 PyObject * obj2 = 0 ;
2800 char *kwnames[] = {
2801 (char *) "self",(char *) "n",(char *) "string", NULL
2802 };
2803
2804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2807 arg2 = (int) SWIG_AsInt(obj1);
2808 if (PyErr_Occurred()) SWIG_fail;
2809 {
2810 arg3 = wxString_in_helper(obj2);
2811 if (arg3 == NULL) SWIG_fail;
2812 temp3 = True;
2813 }
2814 {
2815 PyThreadState* __tstate = wxPyBeginAllowThreads();
2816 (arg1)->SetString(arg2,(wxString const &)*arg3);
2817
2818 wxPyEndAllowThreads(__tstate);
2819 if (PyErr_Occurred()) SWIG_fail;
2820 }
2821 Py_INCREF(Py_None); resultobj = Py_None;
2822 {
2823 if (temp3)
2824 delete arg3;
2825 }
2826 return resultobj;
2827 fail:
2828 {
2829 if (temp3)
2830 delete arg3;
2831 }
2832 return NULL;
2833 }
2834
2835
2836 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2837 PyObject *resultobj;
2838 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2839 wxVisualAttributes result;
2840 PyObject * obj0 = 0 ;
2841 char *kwnames[] = {
2842 (char *) "variant", NULL
2843 };
2844
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2846 if (obj0) {
2847 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2848 if (PyErr_Occurred()) SWIG_fail;
2849 }
2850 {
2851 PyThreadState* __tstate = wxPyBeginAllowThreads();
2852 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
2853
2854 wxPyEndAllowThreads(__tstate);
2855 if (PyErr_Occurred()) SWIG_fail;
2856 }
2857 {
2858 wxVisualAttributes * resultptr;
2859 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2860 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2861 }
2862 return resultobj;
2863 fail:
2864 return NULL;
2865 }
2866
2867
2868 static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2869 PyObject *obj;
2870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2871 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2872 Py_INCREF(obj);
2873 return Py_BuildValue((char *)"");
2874 }
2875 static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2876 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2877 return 1;
2878 }
2879
2880
2881 static PyObject *_wrap_ComboBoxNameStr_get() {
2882 PyObject *pyobj;
2883
2884 {
2885 #if wxUSE_UNICODE
2886 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2887 #else
2888 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2889 #endif
2890 }
2891 return pyobj;
2892 }
2893
2894
2895 static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2896 PyObject *resultobj;
2897 wxWindow *arg1 = (wxWindow *) 0 ;
2898 int arg2 = (int) -1 ;
2899 wxString const &arg3_defvalue = wxPyEmptyString ;
2900 wxString *arg3 = (wxString *) &arg3_defvalue ;
2901 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2902 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2903 wxSize const &arg5_defvalue = wxDefaultSize ;
2904 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2905 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2906 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2907 long arg7 = (long) 0 ;
2908 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2909 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2910 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2911 wxString *arg9 = (wxString *) &arg9_defvalue ;
2912 wxComboBox *result;
2913 bool temp3 = False ;
2914 wxPoint temp4 ;
2915 wxSize temp5 ;
2916 bool temp6 = False ;
2917 bool temp9 = False ;
2918 PyObject * obj0 = 0 ;
2919 PyObject * obj1 = 0 ;
2920 PyObject * obj2 = 0 ;
2921 PyObject * obj3 = 0 ;
2922 PyObject * obj4 = 0 ;
2923 PyObject * obj5 = 0 ;
2924 PyObject * obj6 = 0 ;
2925 PyObject * obj7 = 0 ;
2926 PyObject * obj8 = 0 ;
2927 char *kwnames[] = {
2928 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2929 };
2930
2931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2934 if (obj1) {
2935 arg2 = (int) SWIG_AsInt(obj1);
2936 if (PyErr_Occurred()) SWIG_fail;
2937 }
2938 if (obj2) {
2939 {
2940 arg3 = wxString_in_helper(obj2);
2941 if (arg3 == NULL) SWIG_fail;
2942 temp3 = True;
2943 }
2944 }
2945 if (obj3) {
2946 {
2947 arg4 = &temp4;
2948 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2949 }
2950 }
2951 if (obj4) {
2952 {
2953 arg5 = &temp5;
2954 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2955 }
2956 }
2957 if (obj5) {
2958 {
2959 if (! PySequence_Check(obj5)) {
2960 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2961 SWIG_fail;
2962 }
2963 arg6 = new wxArrayString;
2964 temp6 = True;
2965 int i, len=PySequence_Length(obj5);
2966 for (i=0; i<len; i++) {
2967 PyObject* item = PySequence_GetItem(obj5, i);
2968 #if wxUSE_UNICODE
2969 PyObject* str = PyObject_Unicode(item);
2970 #else
2971 PyObject* str = PyObject_Str(item);
2972 #endif
2973 if (PyErr_Occurred()) SWIG_fail;
2974 arg6->Add(Py2wxString(str));
2975 Py_DECREF(item);
2976 Py_DECREF(str);
2977 }
2978 }
2979 }
2980 if (obj6) {
2981 arg7 = (long) SWIG_AsLong(obj6);
2982 if (PyErr_Occurred()) SWIG_fail;
2983 }
2984 if (obj7) {
2985 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2986 SWIG_POINTER_EXCEPTION | 0)) == -1)
2987 SWIG_fail;
2988 if (arg8 == NULL) {
2989 PyErr_SetString(PyExc_TypeError,"null reference");
2990 SWIG_fail;
2991 }
2992 }
2993 if (obj8) {
2994 {
2995 arg9 = wxString_in_helper(obj8);
2996 if (arg9 == NULL) SWIG_fail;
2997 temp9 = True;
2998 }
2999 }
3000 {
3001 PyThreadState* __tstate = wxPyBeginAllowThreads();
3002 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);
3003
3004 wxPyEndAllowThreads(__tstate);
3005 if (PyErr_Occurred()) SWIG_fail;
3006 }
3007 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3008 {
3009 if (temp3)
3010 delete arg3;
3011 }
3012 {
3013 if (temp6) delete arg6;
3014 }
3015 {
3016 if (temp9)
3017 delete arg9;
3018 }
3019 return resultobj;
3020 fail:
3021 {
3022 if (temp3)
3023 delete arg3;
3024 }
3025 {
3026 if (temp6) delete arg6;
3027 }
3028 {
3029 if (temp9)
3030 delete arg9;
3031 }
3032 return NULL;
3033 }
3034
3035
3036 static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3037 PyObject *resultobj;
3038 wxComboBox *result;
3039 char *kwnames[] = {
3040 NULL
3041 };
3042
3043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3044 {
3045 PyThreadState* __tstate = wxPyBeginAllowThreads();
3046 result = (wxComboBox *)new wxComboBox();
3047
3048 wxPyEndAllowThreads(__tstate);
3049 if (PyErr_Occurred()) SWIG_fail;
3050 }
3051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3052 return resultobj;
3053 fail:
3054 return NULL;
3055 }
3056
3057
3058 static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3059 PyObject *resultobj;
3060 wxComboBox *arg1 = (wxComboBox *) 0 ;
3061 wxWindow *arg2 = (wxWindow *) 0 ;
3062 int arg3 = (int) -1 ;
3063 wxString const &arg4_defvalue = wxPyEmptyString ;
3064 wxString *arg4 = (wxString *) &arg4_defvalue ;
3065 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3066 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3067 wxSize const &arg6_defvalue = wxDefaultSize ;
3068 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3069 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3070 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3071 long arg8 = (long) 0 ;
3072 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3073 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3074 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3075 wxString *arg10 = (wxString *) &arg10_defvalue ;
3076 bool result;
3077 bool temp4 = False ;
3078 wxPoint temp5 ;
3079 wxSize temp6 ;
3080 bool temp7 = False ;
3081 bool temp10 = False ;
3082 PyObject * obj0 = 0 ;
3083 PyObject * obj1 = 0 ;
3084 PyObject * obj2 = 0 ;
3085 PyObject * obj3 = 0 ;
3086 PyObject * obj4 = 0 ;
3087 PyObject * obj5 = 0 ;
3088 PyObject * obj6 = 0 ;
3089 PyObject * obj7 = 0 ;
3090 PyObject * obj8 = 0 ;
3091 PyObject * obj9 = 0 ;
3092 char *kwnames[] = {
3093 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3094 };
3095
3096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3099 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3101 if (obj2) {
3102 arg3 = (int) SWIG_AsInt(obj2);
3103 if (PyErr_Occurred()) SWIG_fail;
3104 }
3105 if (obj3) {
3106 {
3107 arg4 = wxString_in_helper(obj3);
3108 if (arg4 == NULL) SWIG_fail;
3109 temp4 = True;
3110 }
3111 }
3112 if (obj4) {
3113 {
3114 arg5 = &temp5;
3115 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3116 }
3117 }
3118 if (obj5) {
3119 {
3120 arg6 = &temp6;
3121 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3122 }
3123 }
3124 if (obj6) {
3125 {
3126 if (! PySequence_Check(obj6)) {
3127 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3128 SWIG_fail;
3129 }
3130 arg7 = new wxArrayString;
3131 temp7 = True;
3132 int i, len=PySequence_Length(obj6);
3133 for (i=0; i<len; i++) {
3134 PyObject* item = PySequence_GetItem(obj6, i);
3135 #if wxUSE_UNICODE
3136 PyObject* str = PyObject_Unicode(item);
3137 #else
3138 PyObject* str = PyObject_Str(item);
3139 #endif
3140 if (PyErr_Occurred()) SWIG_fail;
3141 arg7->Add(Py2wxString(str));
3142 Py_DECREF(item);
3143 Py_DECREF(str);
3144 }
3145 }
3146 }
3147 if (obj7) {
3148 arg8 = (long) SWIG_AsLong(obj7);
3149 if (PyErr_Occurred()) SWIG_fail;
3150 }
3151 if (obj8) {
3152 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3153 SWIG_POINTER_EXCEPTION | 0)) == -1)
3154 SWIG_fail;
3155 if (arg9 == NULL) {
3156 PyErr_SetString(PyExc_TypeError,"null reference");
3157 SWIG_fail;
3158 }
3159 }
3160 if (obj9) {
3161 {
3162 arg10 = wxString_in_helper(obj9);
3163 if (arg10 == NULL) SWIG_fail;
3164 temp10 = True;
3165 }
3166 }
3167 {
3168 PyThreadState* __tstate = wxPyBeginAllowThreads();
3169 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);
3170
3171 wxPyEndAllowThreads(__tstate);
3172 if (PyErr_Occurred()) SWIG_fail;
3173 }
3174 {
3175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3176 }
3177 {
3178 if (temp4)
3179 delete arg4;
3180 }
3181 {
3182 if (temp7) delete arg7;
3183 }
3184 {
3185 if (temp10)
3186 delete arg10;
3187 }
3188 return resultobj;
3189 fail:
3190 {
3191 if (temp4)
3192 delete arg4;
3193 }
3194 {
3195 if (temp7) delete arg7;
3196 }
3197 {
3198 if (temp10)
3199 delete arg10;
3200 }
3201 return NULL;
3202 }
3203
3204
3205 static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3206 PyObject *resultobj;
3207 wxComboBox *arg1 = (wxComboBox *) 0 ;
3208 wxString result;
3209 PyObject * obj0 = 0 ;
3210 char *kwnames[] = {
3211 (char *) "self", NULL
3212 };
3213
3214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3217 {
3218 PyThreadState* __tstate = wxPyBeginAllowThreads();
3219 result = ((wxComboBox const *)arg1)->GetValue();
3220
3221 wxPyEndAllowThreads(__tstate);
3222 if (PyErr_Occurred()) SWIG_fail;
3223 }
3224 {
3225 #if wxUSE_UNICODE
3226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3227 #else
3228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3229 #endif
3230 }
3231 return resultobj;
3232 fail:
3233 return NULL;
3234 }
3235
3236
3237 static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3238 PyObject *resultobj;
3239 wxComboBox *arg1 = (wxComboBox *) 0 ;
3240 wxString *arg2 = 0 ;
3241 bool temp2 = False ;
3242 PyObject * obj0 = 0 ;
3243 PyObject * obj1 = 0 ;
3244 char *kwnames[] = {
3245 (char *) "self",(char *) "value", NULL
3246 };
3247
3248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3251 {
3252 arg2 = wxString_in_helper(obj1);
3253 if (arg2 == NULL) SWIG_fail;
3254 temp2 = True;
3255 }
3256 {
3257 PyThreadState* __tstate = wxPyBeginAllowThreads();
3258 (arg1)->SetValue((wxString const &)*arg2);
3259
3260 wxPyEndAllowThreads(__tstate);
3261 if (PyErr_Occurred()) SWIG_fail;
3262 }
3263 Py_INCREF(Py_None); resultobj = Py_None;
3264 {
3265 if (temp2)
3266 delete arg2;
3267 }
3268 return resultobj;
3269 fail:
3270 {
3271 if (temp2)
3272 delete arg2;
3273 }
3274 return NULL;
3275 }
3276
3277
3278 static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3279 PyObject *resultobj;
3280 wxComboBox *arg1 = (wxComboBox *) 0 ;
3281 PyObject * obj0 = 0 ;
3282 char *kwnames[] = {
3283 (char *) "self", NULL
3284 };
3285
3286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3289 {
3290 PyThreadState* __tstate = wxPyBeginAllowThreads();
3291 (arg1)->Copy();
3292
3293 wxPyEndAllowThreads(__tstate);
3294 if (PyErr_Occurred()) SWIG_fail;
3295 }
3296 Py_INCREF(Py_None); resultobj = Py_None;
3297 return resultobj;
3298 fail:
3299 return NULL;
3300 }
3301
3302
3303 static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3304 PyObject *resultobj;
3305 wxComboBox *arg1 = (wxComboBox *) 0 ;
3306 PyObject * obj0 = 0 ;
3307 char *kwnames[] = {
3308 (char *) "self", NULL
3309 };
3310
3311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3314 {
3315 PyThreadState* __tstate = wxPyBeginAllowThreads();
3316 (arg1)->Cut();
3317
3318 wxPyEndAllowThreads(__tstate);
3319 if (PyErr_Occurred()) SWIG_fail;
3320 }
3321 Py_INCREF(Py_None); resultobj = Py_None;
3322 return resultobj;
3323 fail:
3324 return NULL;
3325 }
3326
3327
3328 static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3329 PyObject *resultobj;
3330 wxComboBox *arg1 = (wxComboBox *) 0 ;
3331 PyObject * obj0 = 0 ;
3332 char *kwnames[] = {
3333 (char *) "self", NULL
3334 };
3335
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3339 {
3340 PyThreadState* __tstate = wxPyBeginAllowThreads();
3341 (arg1)->Paste();
3342
3343 wxPyEndAllowThreads(__tstate);
3344 if (PyErr_Occurred()) SWIG_fail;
3345 }
3346 Py_INCREF(Py_None); resultobj = Py_None;
3347 return resultobj;
3348 fail:
3349 return NULL;
3350 }
3351
3352
3353 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3354 PyObject *resultobj;
3355 wxComboBox *arg1 = (wxComboBox *) 0 ;
3356 long arg2 ;
3357 PyObject * obj0 = 0 ;
3358 PyObject * obj1 = 0 ;
3359 char *kwnames[] = {
3360 (char *) "self",(char *) "pos", NULL
3361 };
3362
3363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3366 arg2 = (long) SWIG_AsLong(obj1);
3367 if (PyErr_Occurred()) SWIG_fail;
3368 {
3369 PyThreadState* __tstate = wxPyBeginAllowThreads();
3370 (arg1)->SetInsertionPoint(arg2);
3371
3372 wxPyEndAllowThreads(__tstate);
3373 if (PyErr_Occurred()) SWIG_fail;
3374 }
3375 Py_INCREF(Py_None); resultobj = Py_None;
3376 return resultobj;
3377 fail:
3378 return NULL;
3379 }
3380
3381
3382 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3383 PyObject *resultobj;
3384 wxComboBox *arg1 = (wxComboBox *) 0 ;
3385 long result;
3386 PyObject * obj0 = 0 ;
3387 char *kwnames[] = {
3388 (char *) "self", NULL
3389 };
3390
3391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3394 {
3395 PyThreadState* __tstate = wxPyBeginAllowThreads();
3396 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3397
3398 wxPyEndAllowThreads(__tstate);
3399 if (PyErr_Occurred()) SWIG_fail;
3400 }
3401 resultobj = SWIG_FromLong((long)result);
3402 return resultobj;
3403 fail:
3404 return NULL;
3405 }
3406
3407
3408 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3409 PyObject *resultobj;
3410 wxComboBox *arg1 = (wxComboBox *) 0 ;
3411 long result;
3412 PyObject * obj0 = 0 ;
3413 char *kwnames[] = {
3414 (char *) "self", NULL
3415 };
3416
3417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 resultobj = SWIG_FromLong((long)result);
3428 return resultobj;
3429 fail:
3430 return NULL;
3431 }
3432
3433
3434 static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxComboBox *arg1 = (wxComboBox *) 0 ;
3437 long arg2 ;
3438 long arg3 ;
3439 wxString *arg4 = 0 ;
3440 bool temp4 = False ;
3441 PyObject * obj0 = 0 ;
3442 PyObject * obj1 = 0 ;
3443 PyObject * obj2 = 0 ;
3444 PyObject * obj3 = 0 ;
3445 char *kwnames[] = {
3446 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3447 };
3448
3449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3452 arg2 = (long) SWIG_AsLong(obj1);
3453 if (PyErr_Occurred()) SWIG_fail;
3454 arg3 = (long) SWIG_AsLong(obj2);
3455 if (PyErr_Occurred()) SWIG_fail;
3456 {
3457 arg4 = wxString_in_helper(obj3);
3458 if (arg4 == NULL) SWIG_fail;
3459 temp4 = True;
3460 }
3461 {
3462 PyThreadState* __tstate = wxPyBeginAllowThreads();
3463 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3464
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) SWIG_fail;
3467 }
3468 Py_INCREF(Py_None); resultobj = Py_None;
3469 {
3470 if (temp4)
3471 delete arg4;
3472 }
3473 return resultobj;
3474 fail:
3475 {
3476 if (temp4)
3477 delete arg4;
3478 }
3479 return NULL;
3480 }
3481
3482
3483 static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3484 PyObject *resultobj;
3485 wxComboBox *arg1 = (wxComboBox *) 0 ;
3486 int arg2 ;
3487 PyObject * obj0 = 0 ;
3488 PyObject * obj1 = 0 ;
3489 char *kwnames[] = {
3490 (char *) "self",(char *) "n", NULL
3491 };
3492
3493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3496 arg2 = (int) SWIG_AsInt(obj1);
3497 if (PyErr_Occurred()) SWIG_fail;
3498 {
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 (arg1)->SetSelection(arg2);
3501
3502 wxPyEndAllowThreads(__tstate);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 }
3505 Py_INCREF(Py_None); resultobj = Py_None;
3506 return resultobj;
3507 fail:
3508 return NULL;
3509 }
3510
3511
3512 static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3513 PyObject *resultobj;
3514 wxComboBox *arg1 = (wxComboBox *) 0 ;
3515 long arg2 ;
3516 long arg3 ;
3517 PyObject * obj0 = 0 ;
3518 PyObject * obj1 = 0 ;
3519 PyObject * obj2 = 0 ;
3520 char *kwnames[] = {
3521 (char *) "self",(char *) "from",(char *) "to", NULL
3522 };
3523
3524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3527 arg2 = (long) SWIG_AsLong(obj1);
3528 if (PyErr_Occurred()) SWIG_fail;
3529 arg3 = (long) SWIG_AsLong(obj2);
3530 if (PyErr_Occurred()) SWIG_fail;
3531 {
3532 PyThreadState* __tstate = wxPyBeginAllowThreads();
3533 (arg1)->SetSelection(arg2,arg3);
3534
3535 wxPyEndAllowThreads(__tstate);
3536 if (PyErr_Occurred()) SWIG_fail;
3537 }
3538 Py_INCREF(Py_None); resultobj = Py_None;
3539 return resultobj;
3540 fail:
3541 return NULL;
3542 }
3543
3544
3545 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3546 PyObject *resultobj;
3547 wxComboBox *arg1 = (wxComboBox *) 0 ;
3548 wxString *arg2 = 0 ;
3549 bool result;
3550 bool temp2 = False ;
3551 PyObject * obj0 = 0 ;
3552 PyObject * obj1 = 0 ;
3553 char *kwnames[] = {
3554 (char *) "self",(char *) "string", NULL
3555 };
3556
3557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3560 {
3561 arg2 = wxString_in_helper(obj1);
3562 if (arg2 == NULL) SWIG_fail;
3563 temp2 = True;
3564 }
3565 {
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3568
3569 wxPyEndAllowThreads(__tstate);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 {
3573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3574 }
3575 {
3576 if (temp2)
3577 delete arg2;
3578 }
3579 return resultobj;
3580 fail:
3581 {
3582 if (temp2)
3583 delete arg2;
3584 }
3585 return NULL;
3586 }
3587
3588
3589 static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3590 PyObject *resultobj;
3591 wxComboBox *arg1 = (wxComboBox *) 0 ;
3592 int arg2 ;
3593 wxString *arg3 = 0 ;
3594 bool temp3 = False ;
3595 PyObject * obj0 = 0 ;
3596 PyObject * obj1 = 0 ;
3597 PyObject * obj2 = 0 ;
3598 char *kwnames[] = {
3599 (char *) "self",(char *) "n",(char *) "string", NULL
3600 };
3601
3602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3605 arg2 = (int) SWIG_AsInt(obj1);
3606 if (PyErr_Occurred()) SWIG_fail;
3607 {
3608 arg3 = wxString_in_helper(obj2);
3609 if (arg3 == NULL) SWIG_fail;
3610 temp3 = True;
3611 }
3612 {
3613 PyThreadState* __tstate = wxPyBeginAllowThreads();
3614 (arg1)->SetString(arg2,(wxString const &)*arg3);
3615
3616 wxPyEndAllowThreads(__tstate);
3617 if (PyErr_Occurred()) SWIG_fail;
3618 }
3619 Py_INCREF(Py_None); resultobj = Py_None;
3620 {
3621 if (temp3)
3622 delete arg3;
3623 }
3624 return resultobj;
3625 fail:
3626 {
3627 if (temp3)
3628 delete arg3;
3629 }
3630 return NULL;
3631 }
3632
3633
3634 static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3635 PyObject *resultobj;
3636 wxComboBox *arg1 = (wxComboBox *) 0 ;
3637 bool arg2 ;
3638 PyObject * obj0 = 0 ;
3639 PyObject * obj1 = 0 ;
3640 char *kwnames[] = {
3641 (char *) "self",(char *) "editable", NULL
3642 };
3643
3644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3647 arg2 = (bool) SWIG_AsBool(obj1);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 {
3650 PyThreadState* __tstate = wxPyBeginAllowThreads();
3651 (arg1)->SetEditable(arg2);
3652
3653 wxPyEndAllowThreads(__tstate);
3654 if (PyErr_Occurred()) SWIG_fail;
3655 }
3656 Py_INCREF(Py_None); resultobj = Py_None;
3657 return resultobj;
3658 fail:
3659 return NULL;
3660 }
3661
3662
3663 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3664 PyObject *resultobj;
3665 wxComboBox *arg1 = (wxComboBox *) 0 ;
3666 PyObject * obj0 = 0 ;
3667 char *kwnames[] = {
3668 (char *) "self", NULL
3669 };
3670
3671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3674 {
3675 PyThreadState* __tstate = wxPyBeginAllowThreads();
3676 (arg1)->SetInsertionPointEnd();
3677
3678 wxPyEndAllowThreads(__tstate);
3679 if (PyErr_Occurred()) SWIG_fail;
3680 }
3681 Py_INCREF(Py_None); resultobj = Py_None;
3682 return resultobj;
3683 fail:
3684 return NULL;
3685 }
3686
3687
3688 static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3689 PyObject *resultobj;
3690 wxComboBox *arg1 = (wxComboBox *) 0 ;
3691 long arg2 ;
3692 long arg3 ;
3693 PyObject * obj0 = 0 ;
3694 PyObject * obj1 = 0 ;
3695 PyObject * obj2 = 0 ;
3696 char *kwnames[] = {
3697 (char *) "self",(char *) "from",(char *) "to", NULL
3698 };
3699
3700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3703 arg2 = (long) SWIG_AsLong(obj1);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 arg3 = (long) SWIG_AsLong(obj2);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 {
3708 PyThreadState* __tstate = wxPyBeginAllowThreads();
3709 (arg1)->Remove(arg2,arg3);
3710
3711 wxPyEndAllowThreads(__tstate);
3712 if (PyErr_Occurred()) SWIG_fail;
3713 }
3714 Py_INCREF(Py_None); resultobj = Py_None;
3715 return resultobj;
3716 fail:
3717 return NULL;
3718 }
3719
3720
3721 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
3722 PyObject *resultobj;
3723 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3724 wxVisualAttributes result;
3725 PyObject * obj0 = 0 ;
3726 char *kwnames[] = {
3727 (char *) "variant", NULL
3728 };
3729
3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3731 if (obj0) {
3732 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
3733 if (PyErr_Occurred()) SWIG_fail;
3734 }
3735 {
3736 PyThreadState* __tstate = wxPyBeginAllowThreads();
3737 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3738
3739 wxPyEndAllowThreads(__tstate);
3740 if (PyErr_Occurred()) SWIG_fail;
3741 }
3742 {
3743 wxVisualAttributes * resultptr;
3744 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3745 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3746 }
3747 return resultobj;
3748 fail:
3749 return NULL;
3750 }
3751
3752
3753 static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3754 PyObject *obj;
3755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3756 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3757 Py_INCREF(obj);
3758 return Py_BuildValue((char *)"");
3759 }
3760 static int _wrap_GaugeNameStr_set(PyObject *_val) {
3761 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3762 return 1;
3763 }
3764
3765
3766 static PyObject *_wrap_GaugeNameStr_get() {
3767 PyObject *pyobj;
3768
3769 {
3770 #if wxUSE_UNICODE
3771 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3772 #else
3773 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3774 #endif
3775 }
3776 return pyobj;
3777 }
3778
3779
3780 static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3781 PyObject *resultobj;
3782 wxWindow *arg1 = (wxWindow *) 0 ;
3783 int arg2 ;
3784 int arg3 ;
3785 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3786 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3787 wxSize const &arg5_defvalue = wxDefaultSize ;
3788 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3789 long arg6 = (long) wxGA_HORIZONTAL ;
3790 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3791 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3792 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3793 wxString *arg8 = (wxString *) &arg8_defvalue ;
3794 wxGauge *result;
3795 wxPoint temp4 ;
3796 wxSize temp5 ;
3797 bool temp8 = False ;
3798 PyObject * obj0 = 0 ;
3799 PyObject * obj1 = 0 ;
3800 PyObject * obj2 = 0 ;
3801 PyObject * obj3 = 0 ;
3802 PyObject * obj4 = 0 ;
3803 PyObject * obj5 = 0 ;
3804 PyObject * obj6 = 0 ;
3805 PyObject * obj7 = 0 ;
3806 char *kwnames[] = {
3807 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3808 };
3809
3810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3813 arg2 = (int) SWIG_AsInt(obj1);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 arg3 = (int) SWIG_AsInt(obj2);
3816 if (PyErr_Occurred()) SWIG_fail;
3817 if (obj3) {
3818 {
3819 arg4 = &temp4;
3820 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3821 }
3822 }
3823 if (obj4) {
3824 {
3825 arg5 = &temp5;
3826 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3827 }
3828 }
3829 if (obj5) {
3830 arg6 = (long) SWIG_AsLong(obj5);
3831 if (PyErr_Occurred()) SWIG_fail;
3832 }
3833 if (obj6) {
3834 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3835 SWIG_POINTER_EXCEPTION | 0)) == -1)
3836 SWIG_fail;
3837 if (arg7 == NULL) {
3838 PyErr_SetString(PyExc_TypeError,"null reference");
3839 SWIG_fail;
3840 }
3841 }
3842 if (obj7) {
3843 {
3844 arg8 = wxString_in_helper(obj7);
3845 if (arg8 == NULL) SWIG_fail;
3846 temp8 = True;
3847 }
3848 }
3849 {
3850 PyThreadState* __tstate = wxPyBeginAllowThreads();
3851 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3852
3853 wxPyEndAllowThreads(__tstate);
3854 if (PyErr_Occurred()) SWIG_fail;
3855 }
3856 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3857 {
3858 if (temp8)
3859 delete arg8;
3860 }
3861 return resultobj;
3862 fail:
3863 {
3864 if (temp8)
3865 delete arg8;
3866 }
3867 return NULL;
3868 }
3869
3870
3871 static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3872 PyObject *resultobj;
3873 wxGauge *result;
3874 char *kwnames[] = {
3875 NULL
3876 };
3877
3878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3879 {
3880 PyThreadState* __tstate = wxPyBeginAllowThreads();
3881 result = (wxGauge *)new wxGauge();
3882
3883 wxPyEndAllowThreads(__tstate);
3884 if (PyErr_Occurred()) SWIG_fail;
3885 }
3886 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3887 return resultobj;
3888 fail:
3889 return NULL;
3890 }
3891
3892
3893 static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3894 PyObject *resultobj;
3895 wxGauge *arg1 = (wxGauge *) 0 ;
3896 wxWindow *arg2 = (wxWindow *) 0 ;
3897 int arg3 ;
3898 int arg4 ;
3899 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3900 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3901 wxSize const &arg6_defvalue = wxDefaultSize ;
3902 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3903 long arg7 = (long) wxGA_HORIZONTAL ;
3904 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3905 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3906 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3907 wxString *arg9 = (wxString *) &arg9_defvalue ;
3908 bool result;
3909 wxPoint temp5 ;
3910 wxSize temp6 ;
3911 bool temp9 = False ;
3912 PyObject * obj0 = 0 ;
3913 PyObject * obj1 = 0 ;
3914 PyObject * obj2 = 0 ;
3915 PyObject * obj3 = 0 ;
3916 PyObject * obj4 = 0 ;
3917 PyObject * obj5 = 0 ;
3918 PyObject * obj6 = 0 ;
3919 PyObject * obj7 = 0 ;
3920 PyObject * obj8 = 0 ;
3921 char *kwnames[] = {
3922 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3923 };
3924
3925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3928 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3930 arg3 = (int) SWIG_AsInt(obj2);
3931 if (PyErr_Occurred()) SWIG_fail;
3932 arg4 = (int) SWIG_AsInt(obj3);
3933 if (PyErr_Occurred()) SWIG_fail;
3934 if (obj4) {
3935 {
3936 arg5 = &temp5;
3937 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3938 }
3939 }
3940 if (obj5) {
3941 {
3942 arg6 = &temp6;
3943 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3944 }
3945 }
3946 if (obj6) {
3947 arg7 = (long) SWIG_AsLong(obj6);
3948 if (PyErr_Occurred()) SWIG_fail;
3949 }
3950 if (obj7) {
3951 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3952 SWIG_POINTER_EXCEPTION | 0)) == -1)
3953 SWIG_fail;
3954 if (arg8 == NULL) {
3955 PyErr_SetString(PyExc_TypeError,"null reference");
3956 SWIG_fail;
3957 }
3958 }
3959 if (obj8) {
3960 {
3961 arg9 = wxString_in_helper(obj8);
3962 if (arg9 == NULL) SWIG_fail;
3963 temp9 = True;
3964 }
3965 }
3966 {
3967 PyThreadState* __tstate = wxPyBeginAllowThreads();
3968 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3969
3970 wxPyEndAllowThreads(__tstate);
3971 if (PyErr_Occurred()) SWIG_fail;
3972 }
3973 {
3974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3975 }
3976 {
3977 if (temp9)
3978 delete arg9;
3979 }
3980 return resultobj;
3981 fail:
3982 {
3983 if (temp9)
3984 delete arg9;
3985 }
3986 return NULL;
3987 }
3988
3989
3990 static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3991 PyObject *resultobj;
3992 wxGauge *arg1 = (wxGauge *) 0 ;
3993 int arg2 ;
3994 PyObject * obj0 = 0 ;
3995 PyObject * obj1 = 0 ;
3996 char *kwnames[] = {
3997 (char *) "self",(char *) "range", NULL
3998 };
3999
4000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4003 arg2 = (int) SWIG_AsInt(obj1);
4004 if (PyErr_Occurred()) SWIG_fail;
4005 {
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 (arg1)->SetRange(arg2);
4008
4009 wxPyEndAllowThreads(__tstate);
4010 if (PyErr_Occurred()) SWIG_fail;
4011 }
4012 Py_INCREF(Py_None); resultobj = Py_None;
4013 return resultobj;
4014 fail:
4015 return NULL;
4016 }
4017
4018
4019 static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
4020 PyObject *resultobj;
4021 wxGauge *arg1 = (wxGauge *) 0 ;
4022 int result;
4023 PyObject * obj0 = 0 ;
4024 char *kwnames[] = {
4025 (char *) "self", NULL
4026 };
4027
4028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 result = (int)((wxGauge const *)arg1)->GetRange();
4034
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 resultobj = SWIG_FromInt((int)result);
4039 return resultobj;
4040 fail:
4041 return NULL;
4042 }
4043
4044
4045 static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4046 PyObject *resultobj;
4047 wxGauge *arg1 = (wxGauge *) 0 ;
4048 int arg2 ;
4049 PyObject * obj0 = 0 ;
4050 PyObject * obj1 = 0 ;
4051 char *kwnames[] = {
4052 (char *) "self",(char *) "pos", NULL
4053 };
4054
4055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4058 arg2 = (int) SWIG_AsInt(obj1);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 {
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
4062 (arg1)->SetValue(arg2);
4063
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 Py_INCREF(Py_None); resultobj = Py_None;
4068 return resultobj;
4069 fail:
4070 return NULL;
4071 }
4072
4073
4074 static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4075 PyObject *resultobj;
4076 wxGauge *arg1 = (wxGauge *) 0 ;
4077 int result;
4078 PyObject * obj0 = 0 ;
4079 char *kwnames[] = {
4080 (char *) "self", NULL
4081 };
4082
4083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4086 {
4087 PyThreadState* __tstate = wxPyBeginAllowThreads();
4088 result = (int)((wxGauge const *)arg1)->GetValue();
4089
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 resultobj = SWIG_FromInt((int)result);
4094 return resultobj;
4095 fail:
4096 return NULL;
4097 }
4098
4099
4100 static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4101 PyObject *resultobj;
4102 wxGauge *arg1 = (wxGauge *) 0 ;
4103 bool result;
4104 PyObject * obj0 = 0 ;
4105 char *kwnames[] = {
4106 (char *) "self", NULL
4107 };
4108
4109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (bool)((wxGauge const *)arg1)->IsVertical();
4115
4116 wxPyEndAllowThreads(__tstate);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 }
4119 {
4120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4121 }
4122 return resultobj;
4123 fail:
4124 return NULL;
4125 }
4126
4127
4128 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4129 PyObject *resultobj;
4130 wxGauge *arg1 = (wxGauge *) 0 ;
4131 int arg2 ;
4132 PyObject * obj0 = 0 ;
4133 PyObject * obj1 = 0 ;
4134 char *kwnames[] = {
4135 (char *) "self",(char *) "w", NULL
4136 };
4137
4138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4141 arg2 = (int) SWIG_AsInt(obj1);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 {
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 (arg1)->SetShadowWidth(arg2);
4146
4147 wxPyEndAllowThreads(__tstate);
4148 if (PyErr_Occurred()) SWIG_fail;
4149 }
4150 Py_INCREF(Py_None); resultobj = Py_None;
4151 return resultobj;
4152 fail:
4153 return NULL;
4154 }
4155
4156
4157 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4158 PyObject *resultobj;
4159 wxGauge *arg1 = (wxGauge *) 0 ;
4160 int result;
4161 PyObject * obj0 = 0 ;
4162 char *kwnames[] = {
4163 (char *) "self", NULL
4164 };
4165
4166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4169 {
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4172
4173 wxPyEndAllowThreads(__tstate);
4174 if (PyErr_Occurred()) SWIG_fail;
4175 }
4176 resultobj = SWIG_FromInt((int)result);
4177 return resultobj;
4178 fail:
4179 return NULL;
4180 }
4181
4182
4183 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj;
4185 wxGauge *arg1 = (wxGauge *) 0 ;
4186 int arg2 ;
4187 PyObject * obj0 = 0 ;
4188 PyObject * obj1 = 0 ;
4189 char *kwnames[] = {
4190 (char *) "self",(char *) "w", NULL
4191 };
4192
4193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4196 arg2 = (int) SWIG_AsInt(obj1);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 {
4199 PyThreadState* __tstate = wxPyBeginAllowThreads();
4200 (arg1)->SetBezelFace(arg2);
4201
4202 wxPyEndAllowThreads(__tstate);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 Py_INCREF(Py_None); resultobj = Py_None;
4206 return resultobj;
4207 fail:
4208 return NULL;
4209 }
4210
4211
4212 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4213 PyObject *resultobj;
4214 wxGauge *arg1 = (wxGauge *) 0 ;
4215 int result;
4216 PyObject * obj0 = 0 ;
4217 char *kwnames[] = {
4218 (char *) "self", NULL
4219 };
4220
4221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4227
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_FromInt((int)result);
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj;
4240 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4241 wxVisualAttributes result;
4242 PyObject * obj0 = 0 ;
4243 char *kwnames[] = {
4244 (char *) "variant", NULL
4245 };
4246
4247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4248 if (obj0) {
4249 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 {
4253 PyThreadState* __tstate = wxPyBeginAllowThreads();
4254 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4255
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 {
4260 wxVisualAttributes * resultptr;
4261 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4262 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4263 }
4264 return resultobj;
4265 fail:
4266 return NULL;
4267 }
4268
4269
4270 static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
4271 PyObject *obj;
4272 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4273 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4274 Py_INCREF(obj);
4275 return Py_BuildValue((char *)"");
4276 }
4277 static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
4278 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4279 return 1;
4280 }
4281
4282
4283 static PyObject *_wrap_StaticBitmapNameStr_get() {
4284 PyObject *pyobj;
4285
4286 {
4287 #if wxUSE_UNICODE
4288 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4289 #else
4290 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4291 #endif
4292 }
4293 return pyobj;
4294 }
4295
4296
4297 static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
4298 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4299 return 1;
4300 }
4301
4302
4303 static PyObject *_wrap_StaticBoxNameStr_get() {
4304 PyObject *pyobj;
4305
4306 {
4307 #if wxUSE_UNICODE
4308 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4309 #else
4310 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4311 #endif
4312 }
4313 return pyobj;
4314 }
4315
4316
4317 static int _wrap_StaticTextNameStr_set(PyObject *_val) {
4318 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4319 return 1;
4320 }
4321
4322
4323 static PyObject *_wrap_StaticTextNameStr_get() {
4324 PyObject *pyobj;
4325
4326 {
4327 #if wxUSE_UNICODE
4328 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4329 #else
4330 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4331 #endif
4332 }
4333 return pyobj;
4334 }
4335
4336
4337 static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4338 PyObject *resultobj;
4339 wxWindow *arg1 = (wxWindow *) 0 ;
4340 int arg2 ;
4341 wxString *arg3 = 0 ;
4342 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4343 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4344 wxSize const &arg5_defvalue = wxDefaultSize ;
4345 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4346 long arg6 = (long) 0 ;
4347 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4348 wxString *arg7 = (wxString *) &arg7_defvalue ;
4349 wxStaticBox *result;
4350 bool temp3 = False ;
4351 wxPoint temp4 ;
4352 wxSize temp5 ;
4353 bool temp7 = False ;
4354 PyObject * obj0 = 0 ;
4355 PyObject * obj1 = 0 ;
4356 PyObject * obj2 = 0 ;
4357 PyObject * obj3 = 0 ;
4358 PyObject * obj4 = 0 ;
4359 PyObject * obj5 = 0 ;
4360 PyObject * obj6 = 0 ;
4361 char *kwnames[] = {
4362 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4363 };
4364
4365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4368 arg2 = (int) SWIG_AsInt(obj1);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 {
4371 arg3 = wxString_in_helper(obj2);
4372 if (arg3 == NULL) SWIG_fail;
4373 temp3 = True;
4374 }
4375 if (obj3) {
4376 {
4377 arg4 = &temp4;
4378 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4379 }
4380 }
4381 if (obj4) {
4382 {
4383 arg5 = &temp5;
4384 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4385 }
4386 }
4387 if (obj5) {
4388 arg6 = (long) SWIG_AsLong(obj5);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 if (obj6) {
4392 {
4393 arg7 = wxString_in_helper(obj6);
4394 if (arg7 == NULL) SWIG_fail;
4395 temp7 = True;
4396 }
4397 }
4398 {
4399 PyThreadState* __tstate = wxPyBeginAllowThreads();
4400 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4401
4402 wxPyEndAllowThreads(__tstate);
4403 if (PyErr_Occurred()) SWIG_fail;
4404 }
4405 {
4406 resultobj = wxPyMake_wxObject(result);
4407 }
4408 {
4409 if (temp3)
4410 delete arg3;
4411 }
4412 {
4413 if (temp7)
4414 delete arg7;
4415 }
4416 return resultobj;
4417 fail:
4418 {
4419 if (temp3)
4420 delete arg3;
4421 }
4422 {
4423 if (temp7)
4424 delete arg7;
4425 }
4426 return NULL;
4427 }
4428
4429
4430 static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4431 PyObject *resultobj;
4432 wxStaticBox *result;
4433 char *kwnames[] = {
4434 NULL
4435 };
4436
4437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 result = (wxStaticBox *)new wxStaticBox();
4441
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 {
4446 resultobj = wxPyMake_wxObject(result);
4447 }
4448 return resultobj;
4449 fail:
4450 return NULL;
4451 }
4452
4453
4454 static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4455 PyObject *resultobj;
4456 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4457 wxWindow *arg2 = (wxWindow *) 0 ;
4458 int arg3 ;
4459 wxString *arg4 = 0 ;
4460 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4461 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4462 wxSize const &arg6_defvalue = wxDefaultSize ;
4463 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4464 long arg7 = (long) 0 ;
4465 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4466 wxString *arg8 = (wxString *) &arg8_defvalue ;
4467 bool result;
4468 bool temp4 = False ;
4469 wxPoint temp5 ;
4470 wxSize temp6 ;
4471 bool temp8 = False ;
4472 PyObject * obj0 = 0 ;
4473 PyObject * obj1 = 0 ;
4474 PyObject * obj2 = 0 ;
4475 PyObject * obj3 = 0 ;
4476 PyObject * obj4 = 0 ;
4477 PyObject * obj5 = 0 ;
4478 PyObject * obj6 = 0 ;
4479 PyObject * obj7 = 0 ;
4480 char *kwnames[] = {
4481 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4482 };
4483
4484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4489 arg3 = (int) SWIG_AsInt(obj2);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 {
4492 arg4 = wxString_in_helper(obj3);
4493 if (arg4 == NULL) SWIG_fail;
4494 temp4 = True;
4495 }
4496 if (obj4) {
4497 {
4498 arg5 = &temp5;
4499 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4500 }
4501 }
4502 if (obj5) {
4503 {
4504 arg6 = &temp6;
4505 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4506 }
4507 }
4508 if (obj6) {
4509 arg7 = (long) SWIG_AsLong(obj6);
4510 if (PyErr_Occurred()) SWIG_fail;
4511 }
4512 if (obj7) {
4513 {
4514 arg8 = wxString_in_helper(obj7);
4515 if (arg8 == NULL) SWIG_fail;
4516 temp8 = True;
4517 }
4518 }
4519 {
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
4521 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4522
4523 wxPyEndAllowThreads(__tstate);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 }
4526 {
4527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4528 }
4529 {
4530 if (temp4)
4531 delete arg4;
4532 }
4533 {
4534 if (temp8)
4535 delete arg8;
4536 }
4537 return resultobj;
4538 fail:
4539 {
4540 if (temp4)
4541 delete arg4;
4542 }
4543 {
4544 if (temp8)
4545 delete arg8;
4546 }
4547 return NULL;
4548 }
4549
4550
4551 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4552 PyObject *resultobj;
4553 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4554 wxVisualAttributes result;
4555 PyObject * obj0 = 0 ;
4556 char *kwnames[] = {
4557 (char *) "variant", NULL
4558 };
4559
4560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4561 if (obj0) {
4562 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4563 if (PyErr_Occurred()) SWIG_fail;
4564 }
4565 {
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4568
4569 wxPyEndAllowThreads(__tstate);
4570 if (PyErr_Occurred()) SWIG_fail;
4571 }
4572 {
4573 wxVisualAttributes * resultptr;
4574 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4575 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4576 }
4577 return resultobj;
4578 fail:
4579 return NULL;
4580 }
4581
4582
4583 static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4584 PyObject *obj;
4585 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4586 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4587 Py_INCREF(obj);
4588 return Py_BuildValue((char *)"");
4589 }
4590 static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4591 PyObject *resultobj;
4592 wxWindow *arg1 = (wxWindow *) 0 ;
4593 int arg2 ;
4594 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4595 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4596 wxSize const &arg4_defvalue = wxDefaultSize ;
4597 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4598 long arg5 = (long) wxLI_HORIZONTAL ;
4599 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4600 wxString *arg6 = (wxString *) &arg6_defvalue ;
4601 wxStaticLine *result;
4602 wxPoint temp3 ;
4603 wxSize temp4 ;
4604 bool temp6 = False ;
4605 PyObject * obj0 = 0 ;
4606 PyObject * obj1 = 0 ;
4607 PyObject * obj2 = 0 ;
4608 PyObject * obj3 = 0 ;
4609 PyObject * obj4 = 0 ;
4610 PyObject * obj5 = 0 ;
4611 char *kwnames[] = {
4612 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4613 };
4614
4615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4618 arg2 = (int) SWIG_AsInt(obj1);
4619 if (PyErr_Occurred()) SWIG_fail;
4620 if (obj2) {
4621 {
4622 arg3 = &temp3;
4623 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4624 }
4625 }
4626 if (obj3) {
4627 {
4628 arg4 = &temp4;
4629 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4630 }
4631 }
4632 if (obj4) {
4633 arg5 = (long) SWIG_AsLong(obj4);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 }
4636 if (obj5) {
4637 {
4638 arg6 = wxString_in_helper(obj5);
4639 if (arg6 == NULL) SWIG_fail;
4640 temp6 = True;
4641 }
4642 }
4643 {
4644 PyThreadState* __tstate = wxPyBeginAllowThreads();
4645 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4646
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4651 {
4652 if (temp6)
4653 delete arg6;
4654 }
4655 return resultobj;
4656 fail:
4657 {
4658 if (temp6)
4659 delete arg6;
4660 }
4661 return NULL;
4662 }
4663
4664
4665 static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj;
4667 wxStaticLine *result;
4668 char *kwnames[] = {
4669 NULL
4670 };
4671
4672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4673 {
4674 PyThreadState* __tstate = wxPyBeginAllowThreads();
4675 result = (wxStaticLine *)new wxStaticLine();
4676
4677 wxPyEndAllowThreads(__tstate);
4678 if (PyErr_Occurred()) SWIG_fail;
4679 }
4680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4681 return resultobj;
4682 fail:
4683 return NULL;
4684 }
4685
4686
4687 static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4688 PyObject *resultobj;
4689 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4690 wxWindow *arg2 = (wxWindow *) 0 ;
4691 int arg3 ;
4692 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4693 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4694 wxSize const &arg5_defvalue = wxDefaultSize ;
4695 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4696 long arg6 = (long) wxLI_HORIZONTAL ;
4697 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4698 wxString *arg7 = (wxString *) &arg7_defvalue ;
4699 bool result;
4700 wxPoint temp4 ;
4701 wxSize temp5 ;
4702 bool temp7 = False ;
4703 PyObject * obj0 = 0 ;
4704 PyObject * obj1 = 0 ;
4705 PyObject * obj2 = 0 ;
4706 PyObject * obj3 = 0 ;
4707 PyObject * obj4 = 0 ;
4708 PyObject * obj5 = 0 ;
4709 PyObject * obj6 = 0 ;
4710 char *kwnames[] = {
4711 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4712 };
4713
4714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4717 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4719 arg3 = (int) SWIG_AsInt(obj2);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 if (obj3) {
4722 {
4723 arg4 = &temp4;
4724 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4725 }
4726 }
4727 if (obj4) {
4728 {
4729 arg5 = &temp5;
4730 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4731 }
4732 }
4733 if (obj5) {
4734 arg6 = (long) SWIG_AsLong(obj5);
4735 if (PyErr_Occurred()) SWIG_fail;
4736 }
4737 if (obj6) {
4738 {
4739 arg7 = wxString_in_helper(obj6);
4740 if (arg7 == NULL) SWIG_fail;
4741 temp7 = True;
4742 }
4743 }
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4747
4748 wxPyEndAllowThreads(__tstate);
4749 if (PyErr_Occurred()) SWIG_fail;
4750 }
4751 {
4752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4753 }
4754 {
4755 if (temp7)
4756 delete arg7;
4757 }
4758 return resultobj;
4759 fail:
4760 {
4761 if (temp7)
4762 delete arg7;
4763 }
4764 return NULL;
4765 }
4766
4767
4768 static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4769 PyObject *resultobj;
4770 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4771 bool result;
4772 PyObject * obj0 = 0 ;
4773 char *kwnames[] = {
4774 (char *) "self", NULL
4775 };
4776
4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4780 {
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4783
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
4787 {
4788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4789 }
4790 return resultobj;
4791 fail:
4792 return NULL;
4793 }
4794
4795
4796 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4797 PyObject *resultobj;
4798 int result;
4799 char *kwnames[] = {
4800 NULL
4801 };
4802
4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4804 {
4805 PyThreadState* __tstate = wxPyBeginAllowThreads();
4806 result = (int)wxStaticLine::GetDefaultSize();
4807
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = SWIG_FromInt((int)result);
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj;
4820 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4821 wxVisualAttributes result;
4822 PyObject * obj0 = 0 ;
4823 char *kwnames[] = {
4824 (char *) "variant", NULL
4825 };
4826
4827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4828 if (obj0) {
4829 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 {
4833 PyThreadState* __tstate = wxPyBeginAllowThreads();
4834 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
4835
4836 wxPyEndAllowThreads(__tstate);
4837 if (PyErr_Occurred()) SWIG_fail;
4838 }
4839 {
4840 wxVisualAttributes * resultptr;
4841 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4842 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4843 }
4844 return resultobj;
4845 fail:
4846 return NULL;
4847 }
4848
4849
4850 static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4851 PyObject *obj;
4852 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4853 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4854 Py_INCREF(obj);
4855 return Py_BuildValue((char *)"");
4856 }
4857 static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4858 PyObject *resultobj;
4859 wxWindow *arg1 = (wxWindow *) 0 ;
4860 int arg2 ;
4861 wxString *arg3 = 0 ;
4862 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4863 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4864 wxSize const &arg5_defvalue = wxDefaultSize ;
4865 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4866 long arg6 = (long) 0 ;
4867 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4868 wxString *arg7 = (wxString *) &arg7_defvalue ;
4869 wxStaticText *result;
4870 bool temp3 = False ;
4871 wxPoint temp4 ;
4872 wxSize temp5 ;
4873 bool temp7 = False ;
4874 PyObject * obj0 = 0 ;
4875 PyObject * obj1 = 0 ;
4876 PyObject * obj2 = 0 ;
4877 PyObject * obj3 = 0 ;
4878 PyObject * obj4 = 0 ;
4879 PyObject * obj5 = 0 ;
4880 PyObject * obj6 = 0 ;
4881 char *kwnames[] = {
4882 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4883 };
4884
4885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4888 arg2 = (int) SWIG_AsInt(obj1);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 {
4891 arg3 = wxString_in_helper(obj2);
4892 if (arg3 == NULL) SWIG_fail;
4893 temp3 = True;
4894 }
4895 if (obj3) {
4896 {
4897 arg4 = &temp4;
4898 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4899 }
4900 }
4901 if (obj4) {
4902 {
4903 arg5 = &temp5;
4904 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4905 }
4906 }
4907 if (obj5) {
4908 arg6 = (long) SWIG_AsLong(obj5);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 if (obj6) {
4912 {
4913 arg7 = wxString_in_helper(obj6);
4914 if (arg7 == NULL) SWIG_fail;
4915 temp7 = True;
4916 }
4917 }
4918 {
4919 PyThreadState* __tstate = wxPyBeginAllowThreads();
4920 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4921
4922 wxPyEndAllowThreads(__tstate);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4926 {
4927 if (temp3)
4928 delete arg3;
4929 }
4930 {
4931 if (temp7)
4932 delete arg7;
4933 }
4934 return resultobj;
4935 fail:
4936 {
4937 if (temp3)
4938 delete arg3;
4939 }
4940 {
4941 if (temp7)
4942 delete arg7;
4943 }
4944 return NULL;
4945 }
4946
4947
4948 static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4949 PyObject *resultobj;
4950 wxStaticText *result;
4951 char *kwnames[] = {
4952 NULL
4953 };
4954
4955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 result = (wxStaticText *)new wxStaticText();
4959
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 }
4963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4964 return resultobj;
4965 fail:
4966 return NULL;
4967 }
4968
4969
4970 static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4971 PyObject *resultobj;
4972 wxStaticText *arg1 = (wxStaticText *) 0 ;
4973 wxWindow *arg2 = (wxWindow *) 0 ;
4974 int arg3 ;
4975 wxString *arg4 = 0 ;
4976 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4977 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4978 wxSize const &arg6_defvalue = wxDefaultSize ;
4979 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4980 long arg7 = (long) 0 ;
4981 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4982 wxString *arg8 = (wxString *) &arg8_defvalue ;
4983 bool result;
4984 bool temp4 = False ;
4985 wxPoint temp5 ;
4986 wxSize temp6 ;
4987 bool temp8 = False ;
4988 PyObject * obj0 = 0 ;
4989 PyObject * obj1 = 0 ;
4990 PyObject * obj2 = 0 ;
4991 PyObject * obj3 = 0 ;
4992 PyObject * obj4 = 0 ;
4993 PyObject * obj5 = 0 ;
4994 PyObject * obj6 = 0 ;
4995 PyObject * obj7 = 0 ;
4996 char *kwnames[] = {
4997 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4998 };
4999
5000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5003 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5005 arg3 = (int) SWIG_AsInt(obj2);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 {
5008 arg4 = wxString_in_helper(obj3);
5009 if (arg4 == NULL) SWIG_fail;
5010 temp4 = True;
5011 }
5012 if (obj4) {
5013 {
5014 arg5 = &temp5;
5015 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5016 }
5017 }
5018 if (obj5) {
5019 {
5020 arg6 = &temp6;
5021 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5022 }
5023 }
5024 if (obj6) {
5025 arg7 = (long) SWIG_AsLong(obj6);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 if (obj7) {
5029 {
5030 arg8 = wxString_in_helper(obj7);
5031 if (arg8 == NULL) SWIG_fail;
5032 temp8 = True;
5033 }
5034 }
5035 {
5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
5037 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5038
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 {
5043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5044 }
5045 {
5046 if (temp4)
5047 delete arg4;
5048 }
5049 {
5050 if (temp8)
5051 delete arg8;
5052 }
5053 return resultobj;
5054 fail:
5055 {
5056 if (temp4)
5057 delete arg4;
5058 }
5059 {
5060 if (temp8)
5061 delete arg8;
5062 }
5063 return NULL;
5064 }
5065
5066
5067 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5068 PyObject *resultobj;
5069 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5070 wxVisualAttributes result;
5071 PyObject * obj0 = 0 ;
5072 char *kwnames[] = {
5073 (char *) "variant", NULL
5074 };
5075
5076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5077 if (obj0) {
5078 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 {
5082 PyThreadState* __tstate = wxPyBeginAllowThreads();
5083 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5084
5085 wxPyEndAllowThreads(__tstate);
5086 if (PyErr_Occurred()) SWIG_fail;
5087 }
5088 {
5089 wxVisualAttributes * resultptr;
5090 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5091 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5092 }
5093 return resultobj;
5094 fail:
5095 return NULL;
5096 }
5097
5098
5099 static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
5100 PyObject *obj;
5101 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5102 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5103 Py_INCREF(obj);
5104 return Py_BuildValue((char *)"");
5105 }
5106 static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5107 PyObject *resultobj;
5108 wxWindow *arg1 = (wxWindow *) 0 ;
5109 int arg2 ;
5110 wxBitmap *arg3 = 0 ;
5111 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5112 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5113 wxSize const &arg5_defvalue = wxDefaultSize ;
5114 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5115 long arg6 = (long) 0 ;
5116 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5117 wxString *arg7 = (wxString *) &arg7_defvalue ;
5118 wxStaticBitmap *result;
5119 wxPoint temp4 ;
5120 wxSize temp5 ;
5121 bool temp7 = False ;
5122 PyObject * obj0 = 0 ;
5123 PyObject * obj1 = 0 ;
5124 PyObject * obj2 = 0 ;
5125 PyObject * obj3 = 0 ;
5126 PyObject * obj4 = 0 ;
5127 PyObject * obj5 = 0 ;
5128 PyObject * obj6 = 0 ;
5129 char *kwnames[] = {
5130 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5131 };
5132
5133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5136 arg2 = (int) SWIG_AsInt(obj1);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5139 SWIG_POINTER_EXCEPTION | 0)) == -1)
5140 SWIG_fail;
5141 if (arg3 == NULL) {
5142 PyErr_SetString(PyExc_TypeError,"null reference");
5143 SWIG_fail;
5144 }
5145 if (obj3) {
5146 {
5147 arg4 = &temp4;
5148 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5149 }
5150 }
5151 if (obj4) {
5152 {
5153 arg5 = &temp5;
5154 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5155 }
5156 }
5157 if (obj5) {
5158 arg6 = (long) SWIG_AsLong(obj5);
5159 if (PyErr_Occurred()) SWIG_fail;
5160 }
5161 if (obj6) {
5162 {
5163 arg7 = wxString_in_helper(obj6);
5164 if (arg7 == NULL) SWIG_fail;
5165 temp7 = True;
5166 }
5167 }
5168 {
5169 PyThreadState* __tstate = wxPyBeginAllowThreads();
5170 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5171
5172 wxPyEndAllowThreads(__tstate);
5173 if (PyErr_Occurred()) SWIG_fail;
5174 }
5175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5176 {
5177 if (temp7)
5178 delete arg7;
5179 }
5180 return resultobj;
5181 fail:
5182 {
5183 if (temp7)
5184 delete arg7;
5185 }
5186 return NULL;
5187 }
5188
5189
5190 static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5191 PyObject *resultobj;
5192 wxStaticBitmap *result;
5193 char *kwnames[] = {
5194 NULL
5195 };
5196
5197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5198 {
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxStaticBitmap *)new wxStaticBitmap();
5201
5202 wxPyEndAllowThreads(__tstate);
5203 if (PyErr_Occurred()) SWIG_fail;
5204 }
5205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5206 return resultobj;
5207 fail:
5208 return NULL;
5209 }
5210
5211
5212 static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5213 PyObject *resultobj;
5214 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5215 wxWindow *arg2 = (wxWindow *) 0 ;
5216 int arg3 ;
5217 wxBitmap *arg4 = 0 ;
5218 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5219 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5220 wxSize const &arg6_defvalue = wxDefaultSize ;
5221 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5222 long arg7 = (long) 0 ;
5223 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5224 wxString *arg8 = (wxString *) &arg8_defvalue ;
5225 bool result;
5226 wxPoint temp5 ;
5227 wxSize temp6 ;
5228 bool temp8 = False ;
5229 PyObject * obj0 = 0 ;
5230 PyObject * obj1 = 0 ;
5231 PyObject * obj2 = 0 ;
5232 PyObject * obj3 = 0 ;
5233 PyObject * obj4 = 0 ;
5234 PyObject * obj5 = 0 ;
5235 PyObject * obj6 = 0 ;
5236 PyObject * obj7 = 0 ;
5237 char *kwnames[] = {
5238 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5239 };
5240
5241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5244 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5246 arg3 = (int) SWIG_AsInt(obj2);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5249 SWIG_POINTER_EXCEPTION | 0)) == -1)
5250 SWIG_fail;
5251 if (arg4 == NULL) {
5252 PyErr_SetString(PyExc_TypeError,"null reference");
5253 SWIG_fail;
5254 }
5255 if (obj4) {
5256 {
5257 arg5 = &temp5;
5258 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5259 }
5260 }
5261 if (obj5) {
5262 {
5263 arg6 = &temp6;
5264 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5265 }
5266 }
5267 if (obj6) {
5268 arg7 = (long) SWIG_AsLong(obj6);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 }
5271 if (obj7) {
5272 {
5273 arg8 = wxString_in_helper(obj7);
5274 if (arg8 == NULL) SWIG_fail;
5275 temp8 = True;
5276 }
5277 }
5278 {
5279 PyThreadState* __tstate = wxPyBeginAllowThreads();
5280 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5281
5282 wxPyEndAllowThreads(__tstate);
5283 if (PyErr_Occurred()) SWIG_fail;
5284 }
5285 {
5286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5287 }
5288 {
5289 if (temp8)
5290 delete arg8;
5291 }
5292 return resultobj;
5293 fail:
5294 {
5295 if (temp8)
5296 delete arg8;
5297 }
5298 return NULL;
5299 }
5300
5301
5302 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5303 PyObject *resultobj;
5304 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5305 wxBitmap result;
5306 PyObject * obj0 = 0 ;
5307 char *kwnames[] = {
5308 (char *) "self", NULL
5309 };
5310
5311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5314 {
5315 PyThreadState* __tstate = wxPyBeginAllowThreads();
5316 result = (arg1)->GetBitmap();
5317
5318 wxPyEndAllowThreads(__tstate);
5319 if (PyErr_Occurred()) SWIG_fail;
5320 }
5321 {
5322 wxBitmap * resultptr;
5323 resultptr = new wxBitmap((wxBitmap &) result);
5324 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5325 }
5326 return resultobj;
5327 fail:
5328 return NULL;
5329 }
5330
5331
5332 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5333 PyObject *resultobj;
5334 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5335 wxBitmap *arg2 = 0 ;
5336 PyObject * obj0 = 0 ;
5337 PyObject * obj1 = 0 ;
5338 char *kwnames[] = {
5339 (char *) "self",(char *) "bitmap", NULL
5340 };
5341
5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5345 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5346 SWIG_POINTER_EXCEPTION | 0)) == -1)
5347 SWIG_fail;
5348 if (arg2 == NULL) {
5349 PyErr_SetString(PyExc_TypeError,"null reference");
5350 SWIG_fail;
5351 }
5352 {
5353 PyThreadState* __tstate = wxPyBeginAllowThreads();
5354 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5355
5356 wxPyEndAllowThreads(__tstate);
5357 if (PyErr_Occurred()) SWIG_fail;
5358 }
5359 Py_INCREF(Py_None); resultobj = Py_None;
5360 return resultobj;
5361 fail:
5362 return NULL;
5363 }
5364
5365
5366 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5367 PyObject *resultobj;
5368 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5369 wxIcon *arg2 = 0 ;
5370 PyObject * obj0 = 0 ;
5371 PyObject * obj1 = 0 ;
5372 char *kwnames[] = {
5373 (char *) "self",(char *) "icon", NULL
5374 };
5375
5376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5379 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5380 SWIG_POINTER_EXCEPTION | 0)) == -1)
5381 SWIG_fail;
5382 if (arg2 == NULL) {
5383 PyErr_SetString(PyExc_TypeError,"null reference");
5384 SWIG_fail;
5385 }
5386 {
5387 PyThreadState* __tstate = wxPyBeginAllowThreads();
5388 (arg1)->SetIcon((wxIcon const &)*arg2);
5389
5390 wxPyEndAllowThreads(__tstate);
5391 if (PyErr_Occurred()) SWIG_fail;
5392 }
5393 Py_INCREF(Py_None); resultobj = Py_None;
5394 return resultobj;
5395 fail:
5396 return NULL;
5397 }
5398
5399
5400 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5401 PyObject *resultobj;
5402 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5403 wxVisualAttributes result;
5404 PyObject * obj0 = 0 ;
5405 char *kwnames[] = {
5406 (char *) "variant", NULL
5407 };
5408
5409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5410 if (obj0) {
5411 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 {
5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
5416 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5417
5418 wxPyEndAllowThreads(__tstate);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 }
5421 {
5422 wxVisualAttributes * resultptr;
5423 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5424 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5425 }
5426 return resultobj;
5427 fail:
5428 return NULL;
5429 }
5430
5431
5432 static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
5433 PyObject *obj;
5434 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5435 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5436 Py_INCREF(obj);
5437 return Py_BuildValue((char *)"");
5438 }
5439 static int _wrap_ListBoxNameStr_set(PyObject *_val) {
5440 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5441 return 1;
5442 }
5443
5444
5445 static PyObject *_wrap_ListBoxNameStr_get() {
5446 PyObject *pyobj;
5447
5448 {
5449 #if wxUSE_UNICODE
5450 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5451 #else
5452 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5453 #endif
5454 }
5455 return pyobj;
5456 }
5457
5458
5459 static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5460 PyObject *resultobj;
5461 wxWindow *arg1 = (wxWindow *) 0 ;
5462 int arg2 ;
5463 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5464 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5465 wxSize const &arg4_defvalue = wxDefaultSize ;
5466 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5467 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5468 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5469 long arg6 = (long) 0 ;
5470 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5471 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5472 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5473 wxString *arg8 = (wxString *) &arg8_defvalue ;
5474 wxListBox *result;
5475 wxPoint temp3 ;
5476 wxSize temp4 ;
5477 bool temp5 = False ;
5478 bool temp8 = False ;
5479 PyObject * obj0 = 0 ;
5480 PyObject * obj1 = 0 ;
5481 PyObject * obj2 = 0 ;
5482 PyObject * obj3 = 0 ;
5483 PyObject * obj4 = 0 ;
5484 PyObject * obj5 = 0 ;
5485 PyObject * obj6 = 0 ;
5486 PyObject * obj7 = 0 ;
5487 char *kwnames[] = {
5488 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5489 };
5490
5491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5494 arg2 = (int) SWIG_AsInt(obj1);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 if (obj2) {
5497 {
5498 arg3 = &temp3;
5499 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5500 }
5501 }
5502 if (obj3) {
5503 {
5504 arg4 = &temp4;
5505 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5506 }
5507 }
5508 if (obj4) {
5509 {
5510 if (! PySequence_Check(obj4)) {
5511 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5512 SWIG_fail;
5513 }
5514 arg5 = new wxArrayString;
5515 temp5 = True;
5516 int i, len=PySequence_Length(obj4);
5517 for (i=0; i<len; i++) {
5518 PyObject* item = PySequence_GetItem(obj4, i);
5519 #if wxUSE_UNICODE
5520 PyObject* str = PyObject_Unicode(item);
5521 #else
5522 PyObject* str = PyObject_Str(item);
5523 #endif
5524 if (PyErr_Occurred()) SWIG_fail;
5525 arg5->Add(Py2wxString(str));
5526 Py_DECREF(item);
5527 Py_DECREF(str);
5528 }
5529 }
5530 }
5531 if (obj5) {
5532 arg6 = (long) SWIG_AsLong(obj5);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 }
5535 if (obj6) {
5536 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5537 SWIG_POINTER_EXCEPTION | 0)) == -1)
5538 SWIG_fail;
5539 if (arg7 == NULL) {
5540 PyErr_SetString(PyExc_TypeError,"null reference");
5541 SWIG_fail;
5542 }
5543 }
5544 if (obj7) {
5545 {
5546 arg8 = wxString_in_helper(obj7);
5547 if (arg8 == NULL) SWIG_fail;
5548 temp8 = True;
5549 }
5550 }
5551 {
5552 PyThreadState* __tstate = wxPyBeginAllowThreads();
5553 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5554
5555 wxPyEndAllowThreads(__tstate);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 }
5558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5559 {
5560 if (temp5) delete arg5;
5561 }
5562 {
5563 if (temp8)
5564 delete arg8;
5565 }
5566 return resultobj;
5567 fail:
5568 {
5569 if (temp5) delete arg5;
5570 }
5571 {
5572 if (temp8)
5573 delete arg8;
5574 }
5575 return NULL;
5576 }
5577
5578
5579 static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5580 PyObject *resultobj;
5581 wxListBox *result;
5582 char *kwnames[] = {
5583 NULL
5584 };
5585
5586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5587 {
5588 PyThreadState* __tstate = wxPyBeginAllowThreads();
5589 result = (wxListBox *)new wxListBox();
5590
5591 wxPyEndAllowThreads(__tstate);
5592 if (PyErr_Occurred()) SWIG_fail;
5593 }
5594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5595 return resultobj;
5596 fail:
5597 return NULL;
5598 }
5599
5600
5601 static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5602 PyObject *resultobj;
5603 wxListBox *arg1 = (wxListBox *) 0 ;
5604 wxWindow *arg2 = (wxWindow *) 0 ;
5605 int arg3 ;
5606 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5607 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5608 wxSize const &arg5_defvalue = wxDefaultSize ;
5609 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5610 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5611 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5612 long arg7 = (long) 0 ;
5613 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5614 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5615 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5616 wxString *arg9 = (wxString *) &arg9_defvalue ;
5617 bool result;
5618 wxPoint temp4 ;
5619 wxSize temp5 ;
5620 bool temp6 = False ;
5621 bool temp9 = False ;
5622 PyObject * obj0 = 0 ;
5623 PyObject * obj1 = 0 ;
5624 PyObject * obj2 = 0 ;
5625 PyObject * obj3 = 0 ;
5626 PyObject * obj4 = 0 ;
5627 PyObject * obj5 = 0 ;
5628 PyObject * obj6 = 0 ;
5629 PyObject * obj7 = 0 ;
5630 PyObject * obj8 = 0 ;
5631 char *kwnames[] = {
5632 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5633 };
5634
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5640 arg3 = (int) SWIG_AsInt(obj2);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 if (obj3) {
5643 {
5644 arg4 = &temp4;
5645 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5646 }
5647 }
5648 if (obj4) {
5649 {
5650 arg5 = &temp5;
5651 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5652 }
5653 }
5654 if (obj5) {
5655 {
5656 if (! PySequence_Check(obj5)) {
5657 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5658 SWIG_fail;
5659 }
5660 arg6 = new wxArrayString;
5661 temp6 = True;
5662 int i, len=PySequence_Length(obj5);
5663 for (i=0; i<len; i++) {
5664 PyObject* item = PySequence_GetItem(obj5, i);
5665 #if wxUSE_UNICODE
5666 PyObject* str = PyObject_Unicode(item);
5667 #else
5668 PyObject* str = PyObject_Str(item);
5669 #endif
5670 if (PyErr_Occurred()) SWIG_fail;
5671 arg6->Add(Py2wxString(str));
5672 Py_DECREF(item);
5673 Py_DECREF(str);
5674 }
5675 }
5676 }
5677 if (obj6) {
5678 arg7 = (long) SWIG_AsLong(obj6);
5679 if (PyErr_Occurred()) SWIG_fail;
5680 }
5681 if (obj7) {
5682 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5683 SWIG_POINTER_EXCEPTION | 0)) == -1)
5684 SWIG_fail;
5685 if (arg8 == NULL) {
5686 PyErr_SetString(PyExc_TypeError,"null reference");
5687 SWIG_fail;
5688 }
5689 }
5690 if (obj8) {
5691 {
5692 arg9 = wxString_in_helper(obj8);
5693 if (arg9 == NULL) SWIG_fail;
5694 temp9 = True;
5695 }
5696 }
5697 {
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5700
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 }
5704 {
5705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5706 }
5707 {
5708 if (temp6) delete arg6;
5709 }
5710 {
5711 if (temp9)
5712 delete arg9;
5713 }
5714 return resultobj;
5715 fail:
5716 {
5717 if (temp6) delete arg6;
5718 }
5719 {
5720 if (temp9)
5721 delete arg9;
5722 }
5723 return NULL;
5724 }
5725
5726
5727 static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5728 PyObject *resultobj;
5729 wxListBox *arg1 = (wxListBox *) 0 ;
5730 wxString *arg2 = 0 ;
5731 int arg3 ;
5732 PyObject *arg4 = (PyObject *) NULL ;
5733 bool temp2 = False ;
5734 PyObject * obj0 = 0 ;
5735 PyObject * obj1 = 0 ;
5736 PyObject * obj2 = 0 ;
5737 PyObject * obj3 = 0 ;
5738 char *kwnames[] = {
5739 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5740 };
5741
5742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5745 {
5746 arg2 = wxString_in_helper(obj1);
5747 if (arg2 == NULL) SWIG_fail;
5748 temp2 = True;
5749 }
5750 arg3 = (int) SWIG_AsInt(obj2);
5751 if (PyErr_Occurred()) SWIG_fail;
5752 if (obj3) {
5753 arg4 = obj3;
5754 }
5755 {
5756 PyThreadState* __tstate = wxPyBeginAllowThreads();
5757 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5758
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 Py_INCREF(Py_None); resultobj = Py_None;
5763 {
5764 if (temp2)
5765 delete arg2;
5766 }
5767 return resultobj;
5768 fail:
5769 {
5770 if (temp2)
5771 delete arg2;
5772 }
5773 return NULL;
5774 }
5775
5776
5777 static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj;
5779 wxListBox *arg1 = (wxListBox *) 0 ;
5780 wxArrayString *arg2 = 0 ;
5781 int arg3 ;
5782 bool temp2 = False ;
5783 PyObject * obj0 = 0 ;
5784 PyObject * obj1 = 0 ;
5785 PyObject * obj2 = 0 ;
5786 char *kwnames[] = {
5787 (char *) "self",(char *) "items",(char *) "pos", NULL
5788 };
5789
5790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5793 {
5794 if (! PySequence_Check(obj1)) {
5795 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5796 SWIG_fail;
5797 }
5798 arg2 = new wxArrayString;
5799 temp2 = True;
5800 int i, len=PySequence_Length(obj1);
5801 for (i=0; i<len; i++) {
5802 PyObject* item = PySequence_GetItem(obj1, i);
5803 #if wxUSE_UNICODE
5804 PyObject* str = PyObject_Unicode(item);
5805 #else
5806 PyObject* str = PyObject_Str(item);
5807 #endif
5808 if (PyErr_Occurred()) SWIG_fail;
5809 arg2->Add(Py2wxString(str));
5810 Py_DECREF(item);
5811 Py_DECREF(str);
5812 }
5813 }
5814 arg3 = (int) SWIG_AsInt(obj2);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 {
5817 PyThreadState* __tstate = wxPyBeginAllowThreads();
5818 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5819
5820 wxPyEndAllowThreads(__tstate);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 }
5823 Py_INCREF(Py_None); resultobj = Py_None;
5824 {
5825 if (temp2) delete arg2;
5826 }
5827 return resultobj;
5828 fail:
5829 {
5830 if (temp2) delete arg2;
5831 }
5832 return NULL;
5833 }
5834
5835
5836 static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5837 PyObject *resultobj;
5838 wxListBox *arg1 = (wxListBox *) 0 ;
5839 wxArrayString *arg2 = 0 ;
5840 bool temp2 = False ;
5841 PyObject * obj0 = 0 ;
5842 PyObject * obj1 = 0 ;
5843 char *kwnames[] = {
5844 (char *) "self",(char *) "items", NULL
5845 };
5846
5847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5850 {
5851 if (! PySequence_Check(obj1)) {
5852 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5853 SWIG_fail;
5854 }
5855 arg2 = new wxArrayString;
5856 temp2 = True;
5857 int i, len=PySequence_Length(obj1);
5858 for (i=0; i<len; i++) {
5859 PyObject* item = PySequence_GetItem(obj1, i);
5860 #if wxUSE_UNICODE
5861 PyObject* str = PyObject_Unicode(item);
5862 #else
5863 PyObject* str = PyObject_Str(item);
5864 #endif
5865 if (PyErr_Occurred()) SWIG_fail;
5866 arg2->Add(Py2wxString(str));
5867 Py_DECREF(item);
5868 Py_DECREF(str);
5869 }
5870 }
5871 {
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 (arg1)->Set((wxArrayString const &)*arg2);
5874
5875 wxPyEndAllowThreads(__tstate);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 Py_INCREF(Py_None); resultobj = Py_None;
5879 {
5880 if (temp2) delete arg2;
5881 }
5882 return resultobj;
5883 fail:
5884 {
5885 if (temp2) delete arg2;
5886 }
5887 return NULL;
5888 }
5889
5890
5891 static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5892 PyObject *resultobj;
5893 wxListBox *arg1 = (wxListBox *) 0 ;
5894 int arg2 ;
5895 bool result;
5896 PyObject * obj0 = 0 ;
5897 PyObject * obj1 = 0 ;
5898 char *kwnames[] = {
5899 (char *) "self",(char *) "n", NULL
5900 };
5901
5902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5905 arg2 = (int) SWIG_AsInt(obj1);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5910
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 {
5915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5916 }
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5924 PyObject *resultobj;
5925 wxListBox *arg1 = (wxListBox *) 0 ;
5926 int arg2 ;
5927 bool arg3 = (bool) True ;
5928 PyObject * obj0 = 0 ;
5929 PyObject * obj1 = 0 ;
5930 PyObject * obj2 = 0 ;
5931 char *kwnames[] = {
5932 (char *) "self",(char *) "n",(char *) "select", NULL
5933 };
5934
5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5938 arg2 = (int) SWIG_AsInt(obj1);
5939 if (PyErr_Occurred()) SWIG_fail;
5940 if (obj2) {
5941 arg3 = (bool) SWIG_AsBool(obj2);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 }
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 (arg1)->SetSelection(arg2,arg3);
5947
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 Py_INCREF(Py_None); resultobj = Py_None;
5952 return resultobj;
5953 fail:
5954 return NULL;
5955 }
5956
5957
5958 static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5959 PyObject *resultobj;
5960 wxListBox *arg1 = (wxListBox *) 0 ;
5961 int arg2 ;
5962 PyObject * obj0 = 0 ;
5963 PyObject * obj1 = 0 ;
5964 char *kwnames[] = {
5965 (char *) "self",(char *) "n", NULL
5966 };
5967
5968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5971 arg2 = (int) SWIG_AsInt(obj1);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 (arg1)->Select(arg2);
5976
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 Py_INCREF(Py_None); resultobj = Py_None;
5981 return resultobj;
5982 fail:
5983 return NULL;
5984 }
5985
5986
5987 static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5988 PyObject *resultobj;
5989 wxListBox *arg1 = (wxListBox *) 0 ;
5990 int arg2 ;
5991 PyObject * obj0 = 0 ;
5992 PyObject * obj1 = 0 ;
5993 char *kwnames[] = {
5994 (char *) "self",(char *) "n", NULL
5995 };
5996
5997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
5998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6000 arg2 = (int) SWIG_AsInt(obj1);
6001 if (PyErr_Occurred()) SWIG_fail;
6002 {
6003 PyThreadState* __tstate = wxPyBeginAllowThreads();
6004 (arg1)->Deselect(arg2);
6005
6006 wxPyEndAllowThreads(__tstate);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 Py_INCREF(Py_None); resultobj = Py_None;
6010 return resultobj;
6011 fail:
6012 return NULL;
6013 }
6014
6015
6016 static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
6017 PyObject *resultobj;
6018 wxListBox *arg1 = (wxListBox *) 0 ;
6019 int arg2 = (int) -1 ;
6020 PyObject * obj0 = 0 ;
6021 PyObject * obj1 = 0 ;
6022 char *kwnames[] = {
6023 (char *) "self",(char *) "itemToLeaveSelected", NULL
6024 };
6025
6026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6029 if (obj1) {
6030 arg2 = (int) SWIG_AsInt(obj1);
6031 if (PyErr_Occurred()) SWIG_fail;
6032 }
6033 {
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 (arg1)->DeselectAll(arg2);
6036
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 Py_INCREF(Py_None); resultobj = Py_None;
6041 return resultobj;
6042 fail:
6043 return NULL;
6044 }
6045
6046
6047 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6048 PyObject *resultobj;
6049 wxListBox *arg1 = (wxListBox *) 0 ;
6050 wxString *arg2 = 0 ;
6051 bool arg3 = (bool) True ;
6052 bool result;
6053 bool temp2 = False ;
6054 PyObject * obj0 = 0 ;
6055 PyObject * obj1 = 0 ;
6056 PyObject * obj2 = 0 ;
6057 char *kwnames[] = {
6058 (char *) "self",(char *) "s",(char *) "select", NULL
6059 };
6060
6061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6064 {
6065 arg2 = wxString_in_helper(obj1);
6066 if (arg2 == NULL) SWIG_fail;
6067 temp2 = True;
6068 }
6069 if (obj2) {
6070 arg3 = (bool) SWIG_AsBool(obj2);
6071 if (PyErr_Occurred()) SWIG_fail;
6072 }
6073 {
6074 PyThreadState* __tstate = wxPyBeginAllowThreads();
6075 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6076
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 {
6081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6082 }
6083 {
6084 if (temp2)
6085 delete arg2;
6086 }
6087 return resultobj;
6088 fail:
6089 {
6090 if (temp2)
6091 delete arg2;
6092 }
6093 return NULL;
6094 }
6095
6096
6097 static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
6098 PyObject *resultobj;
6099 wxListBox *arg1 = (wxListBox *) 0 ;
6100 PyObject *result;
6101 PyObject * obj0 = 0 ;
6102 char *kwnames[] = {
6103 (char *) "self", NULL
6104 };
6105
6106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6109 {
6110 PyThreadState* __tstate = wxPyBeginAllowThreads();
6111 result = (PyObject *)wxListBox_GetSelections(arg1);
6112
6113 wxPyEndAllowThreads(__tstate);
6114 if (PyErr_Occurred()) SWIG_fail;
6115 }
6116 resultobj = result;
6117 return resultobj;
6118 fail:
6119 return NULL;
6120 }
6121
6122
6123 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6124 PyObject *resultobj;
6125 wxListBox *arg1 = (wxListBox *) 0 ;
6126 int arg2 ;
6127 PyObject * obj0 = 0 ;
6128 PyObject * obj1 = 0 ;
6129 char *kwnames[] = {
6130 (char *) "self",(char *) "n", NULL
6131 };
6132
6133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6136 arg2 = (int) SWIG_AsInt(obj1);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 {
6139 PyThreadState* __tstate = wxPyBeginAllowThreads();
6140 (arg1)->SetFirstItem(arg2);
6141
6142 wxPyEndAllowThreads(__tstate);
6143 if (PyErr_Occurred()) SWIG_fail;
6144 }
6145 Py_INCREF(Py_None); resultobj = Py_None;
6146 return resultobj;
6147 fail:
6148 return NULL;
6149 }
6150
6151
6152 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
6153 PyObject *resultobj;
6154 wxListBox *arg1 = (wxListBox *) 0 ;
6155 wxString *arg2 = 0 ;
6156 bool temp2 = False ;
6157 PyObject * obj0 = 0 ;
6158 PyObject * obj1 = 0 ;
6159 char *kwnames[] = {
6160 (char *) "self",(char *) "s", NULL
6161 };
6162
6163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6166 {
6167 arg2 = wxString_in_helper(obj1);
6168 if (arg2 == NULL) SWIG_fail;
6169 temp2 = True;
6170 }
6171 {
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 (arg1)->SetFirstItem((wxString const &)*arg2);
6174
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 Py_INCREF(Py_None); resultobj = Py_None;
6179 {
6180 if (temp2)
6181 delete arg2;
6182 }
6183 return resultobj;
6184 fail:
6185 {
6186 if (temp2)
6187 delete arg2;
6188 }
6189 return NULL;
6190 }
6191
6192
6193 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6194 PyObject *resultobj;
6195 wxListBox *arg1 = (wxListBox *) 0 ;
6196 int arg2 ;
6197 PyObject * obj0 = 0 ;
6198 PyObject * obj1 = 0 ;
6199 char *kwnames[] = {
6200 (char *) "self",(char *) "n", NULL
6201 };
6202
6203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6206 arg2 = (int) SWIG_AsInt(obj1);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 {
6209 PyThreadState* __tstate = wxPyBeginAllowThreads();
6210 (arg1)->EnsureVisible(arg2);
6211
6212 wxPyEndAllowThreads(__tstate);
6213 if (PyErr_Occurred()) SWIG_fail;
6214 }
6215 Py_INCREF(Py_None); resultobj = Py_None;
6216 return resultobj;
6217 fail:
6218 return NULL;
6219 }
6220
6221
6222 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6223 PyObject *resultobj;
6224 wxListBox *arg1 = (wxListBox *) 0 ;
6225 wxString *arg2 = 0 ;
6226 bool temp2 = False ;
6227 PyObject * obj0 = 0 ;
6228 PyObject * obj1 = 0 ;
6229 char *kwnames[] = {
6230 (char *) "self",(char *) "s", NULL
6231 };
6232
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6236 {
6237 arg2 = wxString_in_helper(obj1);
6238 if (arg2 == NULL) SWIG_fail;
6239 temp2 = True;
6240 }
6241 {
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
6243 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6244
6245 wxPyEndAllowThreads(__tstate);
6246 if (PyErr_Occurred()) SWIG_fail;
6247 }
6248 Py_INCREF(Py_None); resultobj = Py_None;
6249 {
6250 if (temp2)
6251 delete arg2;
6252 }
6253 return resultobj;
6254 fail:
6255 {
6256 if (temp2)
6257 delete arg2;
6258 }
6259 return NULL;
6260 }
6261
6262
6263 static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
6264 PyObject *resultobj;
6265 wxListBox *arg1 = (wxListBox *) 0 ;
6266 bool result;
6267 PyObject * obj0 = 0 ;
6268 char *kwnames[] = {
6269 (char *) "self", NULL
6270 };
6271
6272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6275 {
6276 PyThreadState* __tstate = wxPyBeginAllowThreads();
6277 result = (bool)((wxListBox const *)arg1)->IsSorted();
6278
6279 wxPyEndAllowThreads(__tstate);
6280 if (PyErr_Occurred()) SWIG_fail;
6281 }
6282 {
6283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6284 }
6285 return resultobj;
6286 fail:
6287 return NULL;
6288 }
6289
6290
6291 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6292 PyObject *resultobj;
6293 wxListBox *arg1 = (wxListBox *) 0 ;
6294 int arg2 ;
6295 wxColour *arg3 = 0 ;
6296 wxColour temp3 ;
6297 PyObject * obj0 = 0 ;
6298 PyObject * obj1 = 0 ;
6299 PyObject * obj2 = 0 ;
6300 char *kwnames[] = {
6301 (char *) "self",(char *) "item",(char *) "c", NULL
6302 };
6303
6304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6307 arg2 = (int) SWIG_AsInt(obj1);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 {
6310 arg3 = &temp3;
6311 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6312 }
6313 {
6314 PyThreadState* __tstate = wxPyBeginAllowThreads();
6315 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6316
6317 wxPyEndAllowThreads(__tstate);
6318 if (PyErr_Occurred()) SWIG_fail;
6319 }
6320 Py_INCREF(Py_None); resultobj = Py_None;
6321 return resultobj;
6322 fail:
6323 return NULL;
6324 }
6325
6326
6327 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6328 PyObject *resultobj;
6329 wxListBox *arg1 = (wxListBox *) 0 ;
6330 int arg2 ;
6331 wxColour *arg3 = 0 ;
6332 wxColour temp3 ;
6333 PyObject * obj0 = 0 ;
6334 PyObject * obj1 = 0 ;
6335 PyObject * obj2 = 0 ;
6336 char *kwnames[] = {
6337 (char *) "self",(char *) "item",(char *) "c", NULL
6338 };
6339
6340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6343 arg2 = (int) SWIG_AsInt(obj1);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 {
6346 arg3 = &temp3;
6347 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6348 }
6349 {
6350 PyThreadState* __tstate = wxPyBeginAllowThreads();
6351 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6352
6353 wxPyEndAllowThreads(__tstate);
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
6356 Py_INCREF(Py_None); resultobj = Py_None;
6357 return resultobj;
6358 fail:
6359 return NULL;
6360 }
6361
6362
6363 static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6364 PyObject *resultobj;
6365 wxListBox *arg1 = (wxListBox *) 0 ;
6366 int arg2 ;
6367 wxFont *arg3 = 0 ;
6368 PyObject * obj0 = 0 ;
6369 PyObject * obj1 = 0 ;
6370 PyObject * obj2 = 0 ;
6371 char *kwnames[] = {
6372 (char *) "self",(char *) "item",(char *) "f", NULL
6373 };
6374
6375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6378 arg2 = (int) SWIG_AsInt(obj1);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6381 SWIG_POINTER_EXCEPTION | 0)) == -1)
6382 SWIG_fail;
6383 if (arg3 == NULL) {
6384 PyErr_SetString(PyExc_TypeError,"null reference");
6385 SWIG_fail;
6386 }
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6390
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 Py_INCREF(Py_None); resultobj = Py_None;
6395 return resultobj;
6396 fail:
6397 return NULL;
6398 }
6399
6400
6401 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6402 PyObject *resultobj;
6403 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6404 wxVisualAttributes result;
6405 PyObject * obj0 = 0 ;
6406 char *kwnames[] = {
6407 (char *) "variant", NULL
6408 };
6409
6410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6411 if (obj0) {
6412 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
6413 if (PyErr_Occurred()) SWIG_fail;
6414 }
6415 {
6416 PyThreadState* __tstate = wxPyBeginAllowThreads();
6417 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6418
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 {
6423 wxVisualAttributes * resultptr;
6424 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6425 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6426 }
6427 return resultobj;
6428 fail:
6429 return NULL;
6430 }
6431
6432
6433 static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
6434 PyObject *obj;
6435 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6436 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6437 Py_INCREF(obj);
6438 return Py_BuildValue((char *)"");
6439 }
6440 static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6441 PyObject *resultobj;
6442 wxWindow *arg1 = (wxWindow *) 0 ;
6443 int arg2 ;
6444 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6445 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6446 wxSize const &arg4_defvalue = wxDefaultSize ;
6447 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6448 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6449 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6450 long arg6 = (long) 0 ;
6451 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6452 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6453 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6454 wxString *arg8 = (wxString *) &arg8_defvalue ;
6455 wxCheckListBox *result;
6456 wxPoint temp3 ;
6457 wxSize temp4 ;
6458 bool temp5 = False ;
6459 bool temp8 = False ;
6460 PyObject * obj0 = 0 ;
6461 PyObject * obj1 = 0 ;
6462 PyObject * obj2 = 0 ;
6463 PyObject * obj3 = 0 ;
6464 PyObject * obj4 = 0 ;
6465 PyObject * obj5 = 0 ;
6466 PyObject * obj6 = 0 ;
6467 PyObject * obj7 = 0 ;
6468 char *kwnames[] = {
6469 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6470 };
6471
6472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6475 arg2 = (int) SWIG_AsInt(obj1);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 if (obj2) {
6478 {
6479 arg3 = &temp3;
6480 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6481 }
6482 }
6483 if (obj3) {
6484 {
6485 arg4 = &temp4;
6486 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6487 }
6488 }
6489 if (obj4) {
6490 {
6491 if (! PySequence_Check(obj4)) {
6492 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6493 SWIG_fail;
6494 }
6495 arg5 = new wxArrayString;
6496 temp5 = True;
6497 int i, len=PySequence_Length(obj4);
6498 for (i=0; i<len; i++) {
6499 PyObject* item = PySequence_GetItem(obj4, i);
6500 #if wxUSE_UNICODE
6501 PyObject* str = PyObject_Unicode(item);
6502 #else
6503 PyObject* str = PyObject_Str(item);
6504 #endif
6505 if (PyErr_Occurred()) SWIG_fail;
6506 arg5->Add(Py2wxString(str));
6507 Py_DECREF(item);
6508 Py_DECREF(str);
6509 }
6510 }
6511 }
6512 if (obj5) {
6513 arg6 = (long) SWIG_AsLong(obj5);
6514 if (PyErr_Occurred()) SWIG_fail;
6515 }
6516 if (obj6) {
6517 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6518 SWIG_POINTER_EXCEPTION | 0)) == -1)
6519 SWIG_fail;
6520 if (arg7 == NULL) {
6521 PyErr_SetString(PyExc_TypeError,"null reference");
6522 SWIG_fail;
6523 }
6524 }
6525 if (obj7) {
6526 {
6527 arg8 = wxString_in_helper(obj7);
6528 if (arg8 == NULL) SWIG_fail;
6529 temp8 = True;
6530 }
6531 }
6532 {
6533 PyThreadState* __tstate = wxPyBeginAllowThreads();
6534 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6535
6536 wxPyEndAllowThreads(__tstate);
6537 if (PyErr_Occurred()) SWIG_fail;
6538 }
6539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6540 {
6541 if (temp5) delete arg5;
6542 }
6543 {
6544 if (temp8)
6545 delete arg8;
6546 }
6547 return resultobj;
6548 fail:
6549 {
6550 if (temp5) delete arg5;
6551 }
6552 {
6553 if (temp8)
6554 delete arg8;
6555 }
6556 return NULL;
6557 }
6558
6559
6560 static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6561 PyObject *resultobj;
6562 wxCheckListBox *result;
6563 char *kwnames[] = {
6564 NULL
6565 };
6566
6567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6568 {
6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
6570 result = (wxCheckListBox *)new wxCheckListBox();
6571
6572 wxPyEndAllowThreads(__tstate);
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6576 return resultobj;
6577 fail:
6578 return NULL;
6579 }
6580
6581
6582 static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6583 PyObject *resultobj;
6584 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6585 wxWindow *arg2 = (wxWindow *) 0 ;
6586 int arg3 ;
6587 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6588 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6589 wxSize const &arg5_defvalue = wxDefaultSize ;
6590 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6591 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6592 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6593 long arg7 = (long) 0 ;
6594 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6595 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6596 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6597 wxString *arg9 = (wxString *) &arg9_defvalue ;
6598 bool result;
6599 wxPoint temp4 ;
6600 wxSize temp5 ;
6601 bool temp6 = False ;
6602 bool temp9 = False ;
6603 PyObject * obj0 = 0 ;
6604 PyObject * obj1 = 0 ;
6605 PyObject * obj2 = 0 ;
6606 PyObject * obj3 = 0 ;
6607 PyObject * obj4 = 0 ;
6608 PyObject * obj5 = 0 ;
6609 PyObject * obj6 = 0 ;
6610 PyObject * obj7 = 0 ;
6611 PyObject * obj8 = 0 ;
6612 char *kwnames[] = {
6613 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6614 };
6615
6616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6619 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6621 arg3 = (int) SWIG_AsInt(obj2);
6622 if (PyErr_Occurred()) SWIG_fail;
6623 if (obj3) {
6624 {
6625 arg4 = &temp4;
6626 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6627 }
6628 }
6629 if (obj4) {
6630 {
6631 arg5 = &temp5;
6632 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6633 }
6634 }
6635 if (obj5) {
6636 {
6637 if (! PySequence_Check(obj5)) {
6638 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6639 SWIG_fail;
6640 }
6641 arg6 = new wxArrayString;
6642 temp6 = True;
6643 int i, len=PySequence_Length(obj5);
6644 for (i=0; i<len; i++) {
6645 PyObject* item = PySequence_GetItem(obj5, i);
6646 #if wxUSE_UNICODE
6647 PyObject* str = PyObject_Unicode(item);
6648 #else
6649 PyObject* str = PyObject_Str(item);
6650 #endif
6651 if (PyErr_Occurred()) SWIG_fail;
6652 arg6->Add(Py2wxString(str));
6653 Py_DECREF(item);
6654 Py_DECREF(str);
6655 }
6656 }
6657 }
6658 if (obj6) {
6659 arg7 = (long) SWIG_AsLong(obj6);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 if (obj7) {
6663 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6664 SWIG_POINTER_EXCEPTION | 0)) == -1)
6665 SWIG_fail;
6666 if (arg8 == NULL) {
6667 PyErr_SetString(PyExc_TypeError,"null reference");
6668 SWIG_fail;
6669 }
6670 }
6671 if (obj8) {
6672 {
6673 arg9 = wxString_in_helper(obj8);
6674 if (arg9 == NULL) SWIG_fail;
6675 temp9 = True;
6676 }
6677 }
6678 {
6679 PyThreadState* __tstate = wxPyBeginAllowThreads();
6680 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6681
6682 wxPyEndAllowThreads(__tstate);
6683 if (PyErr_Occurred()) SWIG_fail;
6684 }
6685 {
6686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6687 }
6688 {
6689 if (temp6) delete arg6;
6690 }
6691 {
6692 if (temp9)
6693 delete arg9;
6694 }
6695 return resultobj;
6696 fail:
6697 {
6698 if (temp6) delete arg6;
6699 }
6700 {
6701 if (temp9)
6702 delete arg9;
6703 }
6704 return NULL;
6705 }
6706
6707
6708 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6709 PyObject *resultobj;
6710 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6711 int arg2 ;
6712 bool result;
6713 PyObject * obj0 = 0 ;
6714 PyObject * obj1 = 0 ;
6715 char *kwnames[] = {
6716 (char *) "self",(char *) "index", NULL
6717 };
6718
6719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6722 arg2 = (int) SWIG_AsInt(obj1);
6723 if (PyErr_Occurred()) SWIG_fail;
6724 {
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 result = (bool)(arg1)->IsChecked(arg2);
6727
6728 wxPyEndAllowThreads(__tstate);
6729 if (PyErr_Occurred()) SWIG_fail;
6730 }
6731 {
6732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6733 }
6734 return resultobj;
6735 fail:
6736 return NULL;
6737 }
6738
6739
6740 static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject *resultobj;
6742 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6743 int arg2 ;
6744 int arg3 = (int) True ;
6745 PyObject * obj0 = 0 ;
6746 PyObject * obj1 = 0 ;
6747 PyObject * obj2 = 0 ;
6748 char *kwnames[] = {
6749 (char *) "self",(char *) "index",(char *) "check", NULL
6750 };
6751
6752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6755 arg2 = (int) SWIG_AsInt(obj1);
6756 if (PyErr_Occurred()) SWIG_fail;
6757 if (obj2) {
6758 arg3 = (int) SWIG_AsInt(obj2);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 {
6762 PyThreadState* __tstate = wxPyBeginAllowThreads();
6763 (arg1)->Check(arg2,arg3);
6764
6765 wxPyEndAllowThreads(__tstate);
6766 if (PyErr_Occurred()) SWIG_fail;
6767 }
6768 Py_INCREF(Py_None); resultobj = Py_None;
6769 return resultobj;
6770 fail:
6771 return NULL;
6772 }
6773
6774
6775 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6776 PyObject *resultobj;
6777 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6778 int result;
6779 PyObject * obj0 = 0 ;
6780 char *kwnames[] = {
6781 (char *) "self", NULL
6782 };
6783
6784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
6785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6787 {
6788 PyThreadState* __tstate = wxPyBeginAllowThreads();
6789 result = (int)(arg1)->GetItemHeight();
6790
6791 wxPyEndAllowThreads(__tstate);
6792 if (PyErr_Occurred()) SWIG_fail;
6793 }
6794 resultobj = SWIG_FromInt((int)result);
6795 return resultobj;
6796 fail:
6797 return NULL;
6798 }
6799
6800
6801 static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6802 PyObject *resultobj;
6803 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6804 wxPoint *arg2 = 0 ;
6805 int result;
6806 wxPoint temp2 ;
6807 PyObject * obj0 = 0 ;
6808 PyObject * obj1 = 0 ;
6809 char *kwnames[] = {
6810 (char *) "self",(char *) "pt", NULL
6811 };
6812
6813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6816 {
6817 arg2 = &temp2;
6818 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6819 }
6820 {
6821 PyThreadState* __tstate = wxPyBeginAllowThreads();
6822 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6823
6824 wxPyEndAllowThreads(__tstate);
6825 if (PyErr_Occurred()) SWIG_fail;
6826 }
6827 resultobj = SWIG_FromInt((int)result);
6828 return resultobj;
6829 fail:
6830 return NULL;
6831 }
6832
6833
6834 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6835 PyObject *resultobj;
6836 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6837 int arg2 ;
6838 int arg3 ;
6839 int result;
6840 PyObject * obj0 = 0 ;
6841 PyObject * obj1 = 0 ;
6842 PyObject * obj2 = 0 ;
6843 char *kwnames[] = {
6844 (char *) "self",(char *) "x",(char *) "y", NULL
6845 };
6846
6847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6850 arg2 = (int) SWIG_AsInt(obj1);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 arg3 = (int) SWIG_AsInt(obj2);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 {
6855 PyThreadState* __tstate = wxPyBeginAllowThreads();
6856 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6857
6858 wxPyEndAllowThreads(__tstate);
6859 if (PyErr_Occurred()) SWIG_fail;
6860 }
6861 resultobj = SWIG_FromInt((int)result);
6862 return resultobj;
6863 fail:
6864 return NULL;
6865 }
6866
6867
6868 static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6869 PyObject *obj;
6870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6871 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6872 Py_INCREF(obj);
6873 return Py_BuildValue((char *)"");
6874 }
6875 static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6876 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6877 return 1;
6878 }
6879
6880
6881 static PyObject *_wrap_TextCtrlNameStr_get() {
6882 PyObject *pyobj;
6883
6884 {
6885 #if wxUSE_UNICODE
6886 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6887 #else
6888 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6889 #endif
6890 }
6891 return pyobj;
6892 }
6893
6894
6895 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6896 PyObject *resultobj;
6897 wxTextAttr *result;
6898
6899 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6900 {
6901 PyThreadState* __tstate = wxPyBeginAllowThreads();
6902 result = (wxTextAttr *)new wxTextAttr();
6903
6904 wxPyEndAllowThreads(__tstate);
6905 if (PyErr_Occurred()) SWIG_fail;
6906 }
6907 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6908 return resultobj;
6909 fail:
6910 return NULL;
6911 }
6912
6913
6914 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6915 PyObject *resultobj;
6916 wxColour *arg1 = 0 ;
6917 wxColour const &arg2_defvalue = wxNullColour ;
6918 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6919 wxFont const &arg3_defvalue = wxNullFont ;
6920 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6921 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6922 wxTextAttr *result;
6923 wxColour temp1 ;
6924 wxColour temp2 ;
6925 PyObject * obj0 = 0 ;
6926 PyObject * obj1 = 0 ;
6927 PyObject * obj2 = 0 ;
6928 PyObject * obj3 = 0 ;
6929
6930 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6931 {
6932 arg1 = &temp1;
6933 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6934 }
6935 if (obj1) {
6936 {
6937 arg2 = &temp2;
6938 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6939 }
6940 }
6941 if (obj2) {
6942 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6943 SWIG_POINTER_EXCEPTION | 0)) == -1)
6944 SWIG_fail;
6945 if (arg3 == NULL) {
6946 PyErr_SetString(PyExc_TypeError,"null reference");
6947 SWIG_fail;
6948 }
6949 }
6950 if (obj3) {
6951 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
6952 if (PyErr_Occurred()) SWIG_fail;
6953 }
6954 {
6955 PyThreadState* __tstate = wxPyBeginAllowThreads();
6956 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6957
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6962 return resultobj;
6963 fail:
6964 return NULL;
6965 }
6966
6967
6968 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6969 int argc;
6970 PyObject *argv[5];
6971 int ii;
6972
6973 argc = PyObject_Length(args);
6974 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6975 argv[ii] = PyTuple_GetItem(args,ii);
6976 }
6977 if (argc == 0) {
6978 return _wrap_new_TextAttr__SWIG_0(self,args);
6979 }
6980 if ((argc >= 1) && (argc <= 4)) {
6981 int _v;
6982 {
6983 _v = wxColour_typecheck(argv[0]);
6984 }
6985 if (_v) {
6986 if (argc <= 1) {
6987 return _wrap_new_TextAttr__SWIG_1(self,args);
6988 }
6989 {
6990 _v = wxColour_typecheck(argv[1]);
6991 }
6992 if (_v) {
6993 if (argc <= 2) {
6994 return _wrap_new_TextAttr__SWIG_1(self,args);
6995 }
6996 {
6997 void *ptr;
6998 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
6999 _v = 0;
7000 PyErr_Clear();
7001 } else {
7002 _v = 1;
7003 }
7004 }
7005 if (_v) {
7006 if (argc <= 3) {
7007 return _wrap_new_TextAttr__SWIG_1(self,args);
7008 }
7009 _v = SWIG_CheckInt(argv[3]);
7010 if (_v) {
7011 return _wrap_new_TextAttr__SWIG_1(self,args);
7012 }
7013 }
7014 }
7015 }
7016 }
7017
7018 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
7019 return NULL;
7020 }
7021
7022
7023 static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7024 PyObject *resultobj;
7025 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7026 PyObject * obj0 = 0 ;
7027 char *kwnames[] = {
7028 (char *) "self", NULL
7029 };
7030
7031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7034 {
7035 PyThreadState* __tstate = wxPyBeginAllowThreads();
7036 delete arg1;
7037
7038 wxPyEndAllowThreads(__tstate);
7039 if (PyErr_Occurred()) SWIG_fail;
7040 }
7041 Py_INCREF(Py_None); resultobj = Py_None;
7042 return resultobj;
7043 fail:
7044 return NULL;
7045 }
7046
7047
7048 static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
7049 PyObject *resultobj;
7050 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7051 PyObject * obj0 = 0 ;
7052 char *kwnames[] = {
7053 (char *) "self", NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7059 {
7060 PyThreadState* __tstate = wxPyBeginAllowThreads();
7061 (arg1)->Init();
7062
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 Py_INCREF(Py_None); resultobj = Py_None;
7067 return resultobj;
7068 fail:
7069 return NULL;
7070 }
7071
7072
7073 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7074 PyObject *resultobj;
7075 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7076 wxColour *arg2 = 0 ;
7077 wxColour temp2 ;
7078 PyObject * obj0 = 0 ;
7079 PyObject * obj1 = 0 ;
7080 char *kwnames[] = {
7081 (char *) "self",(char *) "colText", NULL
7082 };
7083
7084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7087 {
7088 arg2 = &temp2;
7089 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7090 }
7091 {
7092 PyThreadState* __tstate = wxPyBeginAllowThreads();
7093 (arg1)->SetTextColour((wxColour const &)*arg2);
7094
7095 wxPyEndAllowThreads(__tstate);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 Py_INCREF(Py_None); resultobj = Py_None;
7099 return resultobj;
7100 fail:
7101 return NULL;
7102 }
7103
7104
7105 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7106 PyObject *resultobj;
7107 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7108 wxColour *arg2 = 0 ;
7109 wxColour temp2 ;
7110 PyObject * obj0 = 0 ;
7111 PyObject * obj1 = 0 ;
7112 char *kwnames[] = {
7113 (char *) "self",(char *) "colBack", NULL
7114 };
7115
7116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7119 {
7120 arg2 = &temp2;
7121 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7122 }
7123 {
7124 PyThreadState* __tstate = wxPyBeginAllowThreads();
7125 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7126
7127 wxPyEndAllowThreads(__tstate);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 Py_INCREF(Py_None); resultobj = Py_None;
7131 return resultobj;
7132 fail:
7133 return NULL;
7134 }
7135
7136
7137 static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7138 PyObject *resultobj;
7139 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7140 wxFont *arg2 = 0 ;
7141 long arg3 = (long) wxTEXT_ATTR_FONT ;
7142 PyObject * obj0 = 0 ;
7143 PyObject * obj1 = 0 ;
7144 PyObject * obj2 = 0 ;
7145 char *kwnames[] = {
7146 (char *) "self",(char *) "font",(char *) "flags", NULL
7147 };
7148
7149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7152 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7153 SWIG_POINTER_EXCEPTION | 0)) == -1)
7154 SWIG_fail;
7155 if (arg2 == NULL) {
7156 PyErr_SetString(PyExc_TypeError,"null reference");
7157 SWIG_fail;
7158 }
7159 if (obj2) {
7160 arg3 = (long) SWIG_AsLong(obj2);
7161 if (PyErr_Occurred()) SWIG_fail;
7162 }
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7166
7167 wxPyEndAllowThreads(__tstate);
7168 if (PyErr_Occurred()) SWIG_fail;
7169 }
7170 Py_INCREF(Py_None); resultobj = Py_None;
7171 return resultobj;
7172 fail:
7173 return NULL;
7174 }
7175
7176
7177 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7178 PyObject *resultobj;
7179 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7180 int arg2 ;
7181 PyObject * obj0 = 0 ;
7182 PyObject * obj1 = 0 ;
7183 char *kwnames[] = {
7184 (char *) "self",(char *) "alignment", NULL
7185 };
7186
7187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7190 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
7191 if (PyErr_Occurred()) SWIG_fail;
7192 {
7193 PyThreadState* __tstate = wxPyBeginAllowThreads();
7194 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7195
7196 wxPyEndAllowThreads(__tstate);
7197 if (PyErr_Occurred()) SWIG_fail;
7198 }
7199 Py_INCREF(Py_None); resultobj = Py_None;
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj;
7208 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7209 wxArrayInt *arg2 = 0 ;
7210 bool temp2 = False ;
7211 PyObject * obj0 = 0 ;
7212 PyObject * obj1 = 0 ;
7213 char *kwnames[] = {
7214 (char *) "self",(char *) "tabs", NULL
7215 };
7216
7217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7220 {
7221 if (! PySequence_Check(obj1)) {
7222 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7223 SWIG_fail;
7224 }
7225 arg2 = new wxArrayInt;
7226 temp2 = True;
7227 int i, len=PySequence_Length(obj1);
7228 for (i=0; i<len; i++) {
7229 PyObject* item = PySequence_GetItem(obj1, i);
7230 PyObject* number = PyNumber_Int(item);
7231 arg2->Add(PyInt_AS_LONG(number));
7232 Py_DECREF(item);
7233 Py_DECREF(number);
7234 }
7235 }
7236 {
7237 PyThreadState* __tstate = wxPyBeginAllowThreads();
7238 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7239
7240 wxPyEndAllowThreads(__tstate);
7241 if (PyErr_Occurred()) SWIG_fail;
7242 }
7243 Py_INCREF(Py_None); resultobj = Py_None;
7244 {
7245 if (temp2) delete arg2;
7246 }
7247 return resultobj;
7248 fail:
7249 {
7250 if (temp2) delete arg2;
7251 }
7252 return NULL;
7253 }
7254
7255
7256 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj;
7258 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7259 int arg2 ;
7260 PyObject * obj0 = 0 ;
7261 PyObject * obj1 = 0 ;
7262 char *kwnames[] = {
7263 (char *) "self",(char *) "indent", NULL
7264 };
7265
7266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail;
7267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7269 arg2 = (int) SWIG_AsInt(obj1);
7270 if (PyErr_Occurred()) SWIG_fail;
7271 {
7272 PyThreadState* __tstate = wxPyBeginAllowThreads();
7273 (arg1)->SetLeftIndent(arg2);
7274
7275 wxPyEndAllowThreads(__tstate);
7276 if (PyErr_Occurred()) SWIG_fail;
7277 }
7278 Py_INCREF(Py_None); resultobj = Py_None;
7279 return resultobj;
7280 fail:
7281 return NULL;
7282 }
7283
7284
7285 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7286 PyObject *resultobj;
7287 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7288 int arg2 ;
7289 PyObject * obj0 = 0 ;
7290 PyObject * obj1 = 0 ;
7291 char *kwnames[] = {
7292 (char *) "self",(char *) "indent", NULL
7293 };
7294
7295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7298 arg2 = (int) SWIG_AsInt(obj1);
7299 if (PyErr_Occurred()) SWIG_fail;
7300 {
7301 PyThreadState* __tstate = wxPyBeginAllowThreads();
7302 (arg1)->SetRightIndent(arg2);
7303
7304 wxPyEndAllowThreads(__tstate);
7305 if (PyErr_Occurred()) SWIG_fail;
7306 }
7307 Py_INCREF(Py_None); resultobj = Py_None;
7308 return resultobj;
7309 fail:
7310 return NULL;
7311 }
7312
7313
7314 static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7315 PyObject *resultobj;
7316 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7317 long arg2 ;
7318 PyObject * obj0 = 0 ;
7319 PyObject * obj1 = 0 ;
7320 char *kwnames[] = {
7321 (char *) "self",(char *) "flags", NULL
7322 };
7323
7324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7327 arg2 = (long) SWIG_AsLong(obj1);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 {
7330 PyThreadState* __tstate = wxPyBeginAllowThreads();
7331 (arg1)->SetFlags(arg2);
7332
7333 wxPyEndAllowThreads(__tstate);
7334 if (PyErr_Occurred()) SWIG_fail;
7335 }
7336 Py_INCREF(Py_None); resultobj = Py_None;
7337 return resultobj;
7338 fail:
7339 return NULL;
7340 }
7341
7342
7343 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7344 PyObject *resultobj;
7345 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7346 bool result;
7347 PyObject * obj0 = 0 ;
7348 char *kwnames[] = {
7349 (char *) "self", NULL
7350 };
7351
7352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7355 {
7356 PyThreadState* __tstate = wxPyBeginAllowThreads();
7357 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7358
7359 wxPyEndAllowThreads(__tstate);
7360 if (PyErr_Occurred()) SWIG_fail;
7361 }
7362 {
7363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7364 }
7365 return resultobj;
7366 fail:
7367 return NULL;
7368 }
7369
7370
7371 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7372 PyObject *resultobj;
7373 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7374 bool result;
7375 PyObject * obj0 = 0 ;
7376 char *kwnames[] = {
7377 (char *) "self", NULL
7378 };
7379
7380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7383 {
7384 PyThreadState* __tstate = wxPyBeginAllowThreads();
7385 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7386
7387 wxPyEndAllowThreads(__tstate);
7388 if (PyErr_Occurred()) SWIG_fail;
7389 }
7390 {
7391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7392 }
7393 return resultobj;
7394 fail:
7395 return NULL;
7396 }
7397
7398
7399 static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7400 PyObject *resultobj;
7401 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7402 bool result;
7403 PyObject * obj0 = 0 ;
7404 char *kwnames[] = {
7405 (char *) "self", NULL
7406 };
7407
7408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7414
7415 wxPyEndAllowThreads(__tstate);
7416 if (PyErr_Occurred()) SWIG_fail;
7417 }
7418 {
7419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7420 }
7421 return resultobj;
7422 fail:
7423 return NULL;
7424 }
7425
7426
7427 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7428 PyObject *resultobj;
7429 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7430 bool result;
7431 PyObject * obj0 = 0 ;
7432 char *kwnames[] = {
7433 (char *) "self", NULL
7434 };
7435
7436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7439 {
7440 PyThreadState* __tstate = wxPyBeginAllowThreads();
7441 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7442
7443 wxPyEndAllowThreads(__tstate);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 {
7447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7448 }
7449 return resultobj;
7450 fail:
7451 return NULL;
7452 }
7453
7454
7455 static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7456 PyObject *resultobj;
7457 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7458 bool result;
7459 PyObject * obj0 = 0 ;
7460 char *kwnames[] = {
7461 (char *) "self", NULL
7462 };
7463
7464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7467 {
7468 PyThreadState* __tstate = wxPyBeginAllowThreads();
7469 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7470
7471 wxPyEndAllowThreads(__tstate);
7472 if (PyErr_Occurred()) SWIG_fail;
7473 }
7474 {
7475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7476 }
7477 return resultobj;
7478 fail:
7479 return NULL;
7480 }
7481
7482
7483 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7484 PyObject *resultobj;
7485 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7486 bool result;
7487 PyObject * obj0 = 0 ;
7488 char *kwnames[] = {
7489 (char *) "self", NULL
7490 };
7491
7492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7495 {
7496 PyThreadState* __tstate = wxPyBeginAllowThreads();
7497 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7498
7499 wxPyEndAllowThreads(__tstate);
7500 if (PyErr_Occurred()) SWIG_fail;
7501 }
7502 {
7503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7504 }
7505 return resultobj;
7506 fail:
7507 return NULL;
7508 }
7509
7510
7511 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7512 PyObject *resultobj;
7513 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7514 bool result;
7515 PyObject * obj0 = 0 ;
7516 char *kwnames[] = {
7517 (char *) "self", NULL
7518 };
7519
7520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7523 {
7524 PyThreadState* __tstate = wxPyBeginAllowThreads();
7525 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7526
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 {
7531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7532 }
7533 return resultobj;
7534 fail:
7535 return NULL;
7536 }
7537
7538
7539 static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
7540 PyObject *resultobj;
7541 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7542 long arg2 ;
7543 bool result;
7544 PyObject * obj0 = 0 ;
7545 PyObject * obj1 = 0 ;
7546 char *kwnames[] = {
7547 (char *) "self",(char *) "flag", NULL
7548 };
7549
7550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7553 arg2 = (long) SWIG_AsLong(obj1);
7554 if (PyErr_Occurred()) SWIG_fail;
7555 {
7556 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7558
7559 wxPyEndAllowThreads(__tstate);
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 {
7563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7564 }
7565 return resultobj;
7566 fail:
7567 return NULL;
7568 }
7569
7570
7571 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7572 PyObject *resultobj;
7573 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7574 wxColour *result;
7575 PyObject * obj0 = 0 ;
7576 char *kwnames[] = {
7577 (char *) "self", NULL
7578 };
7579
7580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7583 {
7584 PyThreadState* __tstate = wxPyBeginAllowThreads();
7585 {
7586 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7587 result = (wxColour *) &_result_ref;
7588 }
7589
7590 wxPyEndAllowThreads(__tstate);
7591 if (PyErr_Occurred()) SWIG_fail;
7592 }
7593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7594 return resultobj;
7595 fail:
7596 return NULL;
7597 }
7598
7599
7600 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7601 PyObject *resultobj;
7602 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7603 wxColour *result;
7604 PyObject * obj0 = 0 ;
7605 char *kwnames[] = {
7606 (char *) "self", NULL
7607 };
7608
7609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7612 {
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 {
7615 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7616 result = (wxColour *) &_result_ref;
7617 }
7618
7619 wxPyEndAllowThreads(__tstate);
7620 if (PyErr_Occurred()) SWIG_fail;
7621 }
7622 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7623 return resultobj;
7624 fail:
7625 return NULL;
7626 }
7627
7628
7629 static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7630 PyObject *resultobj;
7631 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7632 wxFont *result;
7633 PyObject * obj0 = 0 ;
7634 char *kwnames[] = {
7635 (char *) "self", NULL
7636 };
7637
7638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7641 {
7642 PyThreadState* __tstate = wxPyBeginAllowThreads();
7643 {
7644 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7645 result = (wxFont *) &_result_ref;
7646 }
7647
7648 wxPyEndAllowThreads(__tstate);
7649 if (PyErr_Occurred()) SWIG_fail;
7650 }
7651 {
7652 wxFont* resultptr = new wxFont(*result);
7653 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7654 }
7655 return resultobj;
7656 fail:
7657 return NULL;
7658 }
7659
7660
7661 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj;
7663 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7664 int result;
7665 PyObject * obj0 = 0 ;
7666 char *kwnames[] = {
7667 (char *) "self", NULL
7668 };
7669
7670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7673 {
7674 PyThreadState* __tstate = wxPyBeginAllowThreads();
7675 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7676
7677 wxPyEndAllowThreads(__tstate);
7678 if (PyErr_Occurred()) SWIG_fail;
7679 }
7680 resultobj = SWIG_FromInt((int)result);
7681 return resultobj;
7682 fail:
7683 return NULL;
7684 }
7685
7686
7687 static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7688 PyObject *resultobj;
7689 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7690 wxArrayInt *result;
7691 PyObject * obj0 = 0 ;
7692 char *kwnames[] = {
7693 (char *) "self", NULL
7694 };
7695
7696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7699 {
7700 PyThreadState* __tstate = wxPyBeginAllowThreads();
7701 {
7702 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7703 result = (wxArrayInt *) &_result_ref;
7704 }
7705
7706 wxPyEndAllowThreads(__tstate);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 }
7709 {
7710 resultobj = PyList_New(0);
7711 size_t idx;
7712 for (idx = 0; idx < result->GetCount(); idx += 1) {
7713 PyObject* val = PyInt_FromLong( result->Item(idx) );
7714 PyList_Append(resultobj, val);
7715 Py_DECREF(val);
7716 }
7717 }
7718 return resultobj;
7719 fail:
7720 return NULL;
7721 }
7722
7723
7724 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7725 PyObject *resultobj;
7726 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7727 long result;
7728 PyObject * obj0 = 0 ;
7729 char *kwnames[] = {
7730 (char *) "self", NULL
7731 };
7732
7733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7736 {
7737 PyThreadState* __tstate = wxPyBeginAllowThreads();
7738 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7739
7740 wxPyEndAllowThreads(__tstate);
7741 if (PyErr_Occurred()) SWIG_fail;
7742 }
7743 resultobj = SWIG_FromLong((long)result);
7744 return resultobj;
7745 fail:
7746 return NULL;
7747 }
7748
7749
7750 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7751 PyObject *resultobj;
7752 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7753 long result;
7754 PyObject * obj0 = 0 ;
7755 char *kwnames[] = {
7756 (char *) "self", NULL
7757 };
7758
7759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7762 {
7763 PyThreadState* __tstate = wxPyBeginAllowThreads();
7764 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7765
7766 wxPyEndAllowThreads(__tstate);
7767 if (PyErr_Occurred()) SWIG_fail;
7768 }
7769 resultobj = SWIG_FromLong((long)result);
7770 return resultobj;
7771 fail:
7772 return NULL;
7773 }
7774
7775
7776 static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7777 PyObject *resultobj;
7778 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7779 long result;
7780 PyObject * obj0 = 0 ;
7781 char *kwnames[] = {
7782 (char *) "self", NULL
7783 };
7784
7785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7788 {
7789 PyThreadState* __tstate = wxPyBeginAllowThreads();
7790 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7791
7792 wxPyEndAllowThreads(__tstate);
7793 if (PyErr_Occurred()) SWIG_fail;
7794 }
7795 resultobj = SWIG_FromLong((long)result);
7796 return resultobj;
7797 fail:
7798 return NULL;
7799 }
7800
7801
7802 static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7803 PyObject *resultobj;
7804 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7805 bool result;
7806 PyObject * obj0 = 0 ;
7807 char *kwnames[] = {
7808 (char *) "self", NULL
7809 };
7810
7811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7814 {
7815 PyThreadState* __tstate = wxPyBeginAllowThreads();
7816 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7817
7818 wxPyEndAllowThreads(__tstate);
7819 if (PyErr_Occurred()) SWIG_fail;
7820 }
7821 {
7822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7823 }
7824 return resultobj;
7825 fail:
7826 return NULL;
7827 }
7828
7829
7830 static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7831 PyObject *resultobj;
7832 wxTextAttr *arg1 = 0 ;
7833 wxTextAttr *arg2 = 0 ;
7834 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7835 wxTextAttr result;
7836 PyObject * obj0 = 0 ;
7837 PyObject * obj1 = 0 ;
7838 PyObject * obj2 = 0 ;
7839 char *kwnames[] = {
7840 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7841 };
7842
7843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7845 SWIG_POINTER_EXCEPTION | 0)) == -1)
7846 SWIG_fail;
7847 if (arg1 == NULL) {
7848 PyErr_SetString(PyExc_TypeError,"null reference");
7849 SWIG_fail;
7850 }
7851 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7852 SWIG_POINTER_EXCEPTION | 0)) == -1)
7853 SWIG_fail;
7854 if (arg2 == NULL) {
7855 PyErr_SetString(PyExc_TypeError,"null reference");
7856 SWIG_fail;
7857 }
7858 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7860 {
7861 PyThreadState* __tstate = wxPyBeginAllowThreads();
7862 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7863
7864 wxPyEndAllowThreads(__tstate);
7865 if (PyErr_Occurred()) SWIG_fail;
7866 }
7867 {
7868 wxTextAttr * resultptr;
7869 resultptr = new wxTextAttr((wxTextAttr &) result);
7870 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7871 }
7872 return resultobj;
7873 fail:
7874 return NULL;
7875 }
7876
7877
7878 static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7879 PyObject *obj;
7880 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7881 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7882 Py_INCREF(obj);
7883 return Py_BuildValue((char *)"");
7884 }
7885 static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7886 PyObject *resultobj;
7887 wxWindow *arg1 = (wxWindow *) 0 ;
7888 int arg2 ;
7889 wxString const &arg3_defvalue = wxPyEmptyString ;
7890 wxString *arg3 = (wxString *) &arg3_defvalue ;
7891 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7892 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7893 wxSize const &arg5_defvalue = wxDefaultSize ;
7894 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7895 long arg6 = (long) 0 ;
7896 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7897 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7898 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7899 wxString *arg8 = (wxString *) &arg8_defvalue ;
7900 wxTextCtrl *result;
7901 bool temp3 = False ;
7902 wxPoint temp4 ;
7903 wxSize temp5 ;
7904 bool temp8 = False ;
7905 PyObject * obj0 = 0 ;
7906 PyObject * obj1 = 0 ;
7907 PyObject * obj2 = 0 ;
7908 PyObject * obj3 = 0 ;
7909 PyObject * obj4 = 0 ;
7910 PyObject * obj5 = 0 ;
7911 PyObject * obj6 = 0 ;
7912 PyObject * obj7 = 0 ;
7913 char *kwnames[] = {
7914 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7915 };
7916
7917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7920 arg2 = (int) SWIG_AsInt(obj1);
7921 if (PyErr_Occurred()) SWIG_fail;
7922 if (obj2) {
7923 {
7924 arg3 = wxString_in_helper(obj2);
7925 if (arg3 == NULL) SWIG_fail;
7926 temp3 = True;
7927 }
7928 }
7929 if (obj3) {
7930 {
7931 arg4 = &temp4;
7932 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7933 }
7934 }
7935 if (obj4) {
7936 {
7937 arg5 = &temp5;
7938 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7939 }
7940 }
7941 if (obj5) {
7942 arg6 = (long) SWIG_AsLong(obj5);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 if (obj6) {
7946 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7947 SWIG_POINTER_EXCEPTION | 0)) == -1)
7948 SWIG_fail;
7949 if (arg7 == NULL) {
7950 PyErr_SetString(PyExc_TypeError,"null reference");
7951 SWIG_fail;
7952 }
7953 }
7954 if (obj7) {
7955 {
7956 arg8 = wxString_in_helper(obj7);
7957 if (arg8 == NULL) SWIG_fail;
7958 temp8 = True;
7959 }
7960 }
7961 {
7962 PyThreadState* __tstate = wxPyBeginAllowThreads();
7963 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7964
7965 wxPyEndAllowThreads(__tstate);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 {
7969 resultobj = wxPyMake_wxObject(result);
7970 }
7971 {
7972 if (temp3)
7973 delete arg3;
7974 }
7975 {
7976 if (temp8)
7977 delete arg8;
7978 }
7979 return resultobj;
7980 fail:
7981 {
7982 if (temp3)
7983 delete arg3;
7984 }
7985 {
7986 if (temp8)
7987 delete arg8;
7988 }
7989 return NULL;
7990 }
7991
7992
7993 static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7994 PyObject *resultobj;
7995 wxTextCtrl *result;
7996 char *kwnames[] = {
7997 NULL
7998 };
7999
8000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8001 {
8002 PyThreadState* __tstate = wxPyBeginAllowThreads();
8003 result = (wxTextCtrl *)new wxTextCtrl();
8004
8005 wxPyEndAllowThreads(__tstate);
8006 if (PyErr_Occurred()) SWIG_fail;
8007 }
8008 {
8009 resultobj = wxPyMake_wxObject(result);
8010 }
8011 return resultobj;
8012 fail:
8013 return NULL;
8014 }
8015
8016
8017 static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8018 PyObject *resultobj;
8019 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8020 wxWindow *arg2 = (wxWindow *) 0 ;
8021 int arg3 ;
8022 wxString const &arg4_defvalue = wxPyEmptyString ;
8023 wxString *arg4 = (wxString *) &arg4_defvalue ;
8024 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8025 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8026 wxSize const &arg6_defvalue = wxDefaultSize ;
8027 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8028 long arg7 = (long) 0 ;
8029 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8030 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8031 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8032 wxString *arg9 = (wxString *) &arg9_defvalue ;
8033 bool result;
8034 bool temp4 = False ;
8035 wxPoint temp5 ;
8036 wxSize temp6 ;
8037 bool temp9 = False ;
8038 PyObject * obj0 = 0 ;
8039 PyObject * obj1 = 0 ;
8040 PyObject * obj2 = 0 ;
8041 PyObject * obj3 = 0 ;
8042 PyObject * obj4 = 0 ;
8043 PyObject * obj5 = 0 ;
8044 PyObject * obj6 = 0 ;
8045 PyObject * obj7 = 0 ;
8046 PyObject * obj8 = 0 ;
8047 char *kwnames[] = {
8048 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8049 };
8050
8051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8054 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8056 arg3 = (int) SWIG_AsInt(obj2);
8057 if (PyErr_Occurred()) SWIG_fail;
8058 if (obj3) {
8059 {
8060 arg4 = wxString_in_helper(obj3);
8061 if (arg4 == NULL) SWIG_fail;
8062 temp4 = True;
8063 }
8064 }
8065 if (obj4) {
8066 {
8067 arg5 = &temp5;
8068 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8069 }
8070 }
8071 if (obj5) {
8072 {
8073 arg6 = &temp6;
8074 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8075 }
8076 }
8077 if (obj6) {
8078 arg7 = (long) SWIG_AsLong(obj6);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 if (obj7) {
8082 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8083 SWIG_POINTER_EXCEPTION | 0)) == -1)
8084 SWIG_fail;
8085 if (arg8 == NULL) {
8086 PyErr_SetString(PyExc_TypeError,"null reference");
8087 SWIG_fail;
8088 }
8089 }
8090 if (obj8) {
8091 {
8092 arg9 = wxString_in_helper(obj8);
8093 if (arg9 == NULL) SWIG_fail;
8094 temp9 = True;
8095 }
8096 }
8097 {
8098 PyThreadState* __tstate = wxPyBeginAllowThreads();
8099 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8100
8101 wxPyEndAllowThreads(__tstate);
8102 if (PyErr_Occurred()) SWIG_fail;
8103 }
8104 {
8105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8106 }
8107 {
8108 if (temp4)
8109 delete arg4;
8110 }
8111 {
8112 if (temp9)
8113 delete arg9;
8114 }
8115 return resultobj;
8116 fail:
8117 {
8118 if (temp4)
8119 delete arg4;
8120 }
8121 {
8122 if (temp9)
8123 delete arg9;
8124 }
8125 return NULL;
8126 }
8127
8128
8129 static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8130 PyObject *resultobj;
8131 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8132 wxString result;
8133 PyObject * obj0 = 0 ;
8134 char *kwnames[] = {
8135 (char *) "self", NULL
8136 };
8137
8138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8141 {
8142 PyThreadState* __tstate = wxPyBeginAllowThreads();
8143 result = ((wxTextCtrl const *)arg1)->GetValue();
8144
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 {
8149 #if wxUSE_UNICODE
8150 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8151 #else
8152 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8153 #endif
8154 }
8155 return resultobj;
8156 fail:
8157 return NULL;
8158 }
8159
8160
8161 static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8162 PyObject *resultobj;
8163 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8164 wxString *arg2 = 0 ;
8165 bool temp2 = False ;
8166 PyObject * obj0 = 0 ;
8167 PyObject * obj1 = 0 ;
8168 char *kwnames[] = {
8169 (char *) "self",(char *) "value", NULL
8170 };
8171
8172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8175 {
8176 arg2 = wxString_in_helper(obj1);
8177 if (arg2 == NULL) SWIG_fail;
8178 temp2 = True;
8179 }
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 (arg1)->SetValue((wxString const &)*arg2);
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 Py_INCREF(Py_None); resultobj = Py_None;
8188 {
8189 if (temp2)
8190 delete arg2;
8191 }
8192 return resultobj;
8193 fail:
8194 {
8195 if (temp2)
8196 delete arg2;
8197 }
8198 return NULL;
8199 }
8200
8201
8202 static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8203 PyObject *resultobj;
8204 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8205 long arg2 ;
8206 long arg3 ;
8207 wxString result;
8208 PyObject * obj0 = 0 ;
8209 PyObject * obj1 = 0 ;
8210 PyObject * obj2 = 0 ;
8211 char *kwnames[] = {
8212 (char *) "self",(char *) "from",(char *) "to", NULL
8213 };
8214
8215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8218 arg2 = (long) SWIG_AsLong(obj1);
8219 if (PyErr_Occurred()) SWIG_fail;
8220 arg3 = (long) SWIG_AsLong(obj2);
8221 if (PyErr_Occurred()) SWIG_fail;
8222 {
8223 PyThreadState* __tstate = wxPyBeginAllowThreads();
8224 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8225
8226 wxPyEndAllowThreads(__tstate);
8227 if (PyErr_Occurred()) SWIG_fail;
8228 }
8229 {
8230 #if wxUSE_UNICODE
8231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8232 #else
8233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8234 #endif
8235 }
8236 return resultobj;
8237 fail:
8238 return NULL;
8239 }
8240
8241
8242 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8243 PyObject *resultobj;
8244 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8245 long arg2 ;
8246 int result;
8247 PyObject * obj0 = 0 ;
8248 PyObject * obj1 = 0 ;
8249 char *kwnames[] = {
8250 (char *) "self",(char *) "lineNo", NULL
8251 };
8252
8253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8256 arg2 = (long) SWIG_AsLong(obj1);
8257 if (PyErr_Occurred()) SWIG_fail;
8258 {
8259 PyThreadState* __tstate = wxPyBeginAllowThreads();
8260 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8261
8262 wxPyEndAllowThreads(__tstate);
8263 if (PyErr_Occurred()) SWIG_fail;
8264 }
8265 resultobj = SWIG_FromInt((int)result);
8266 return resultobj;
8267 fail:
8268 return NULL;
8269 }
8270
8271
8272 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
8273 PyObject *resultobj;
8274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8275 long arg2 ;
8276 wxString result;
8277 PyObject * obj0 = 0 ;
8278 PyObject * obj1 = 0 ;
8279 char *kwnames[] = {
8280 (char *) "self",(char *) "lineNo", NULL
8281 };
8282
8283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8286 arg2 = (long) SWIG_AsLong(obj1);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 {
8289 PyThreadState* __tstate = wxPyBeginAllowThreads();
8290 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8291
8292 wxPyEndAllowThreads(__tstate);
8293 if (PyErr_Occurred()) SWIG_fail;
8294 }
8295 {
8296 #if wxUSE_UNICODE
8297 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8298 #else
8299 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8300 #endif
8301 }
8302 return resultobj;
8303 fail:
8304 return NULL;
8305 }
8306
8307
8308 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
8309 PyObject *resultobj;
8310 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8311 int result;
8312 PyObject * obj0 = 0 ;
8313 char *kwnames[] = {
8314 (char *) "self", NULL
8315 };
8316
8317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8320 {
8321 PyThreadState* __tstate = wxPyBeginAllowThreads();
8322 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8323
8324 wxPyEndAllowThreads(__tstate);
8325 if (PyErr_Occurred()) SWIG_fail;
8326 }
8327 resultobj = SWIG_FromInt((int)result);
8328 return resultobj;
8329 fail:
8330 return NULL;
8331 }
8332
8333
8334 static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
8335 PyObject *resultobj;
8336 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8337 bool result;
8338 PyObject * obj0 = 0 ;
8339 char *kwnames[] = {
8340 (char *) "self", NULL
8341 };
8342
8343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8346 {
8347 PyThreadState* __tstate = wxPyBeginAllowThreads();
8348 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8349
8350 wxPyEndAllowThreads(__tstate);
8351 if (PyErr_Occurred()) SWIG_fail;
8352 }
8353 {
8354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8355 }
8356 return resultobj;
8357 fail:
8358 return NULL;
8359 }
8360
8361
8362 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8363 PyObject *resultobj;
8364 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8365 bool result;
8366 PyObject * obj0 = 0 ;
8367 char *kwnames[] = {
8368 (char *) "self", NULL
8369 };
8370
8371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8374 {
8375 PyThreadState* __tstate = wxPyBeginAllowThreads();
8376 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8377
8378 wxPyEndAllowThreads(__tstate);
8379 if (PyErr_Occurred()) SWIG_fail;
8380 }
8381 {
8382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8383 }
8384 return resultobj;
8385 fail:
8386 return NULL;
8387 }
8388
8389
8390 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8391 PyObject *resultobj;
8392 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8393 bool result;
8394 PyObject * obj0 = 0 ;
8395 char *kwnames[] = {
8396 (char *) "self", NULL
8397 };
8398
8399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8402 {
8403 PyThreadState* __tstate = wxPyBeginAllowThreads();
8404 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8405
8406 wxPyEndAllowThreads(__tstate);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 {
8410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8411 }
8412 return resultobj;
8413 fail:
8414 return NULL;
8415 }
8416
8417
8418 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8419 PyObject *resultobj;
8420 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8421 bool result;
8422 PyObject * obj0 = 0 ;
8423 char *kwnames[] = {
8424 (char *) "self", NULL
8425 };
8426
8427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8430 {
8431 PyThreadState* __tstate = wxPyBeginAllowThreads();
8432 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8433
8434 wxPyEndAllowThreads(__tstate);
8435 if (PyErr_Occurred()) SWIG_fail;
8436 }
8437 {
8438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8439 }
8440 return resultobj;
8441 fail:
8442 return NULL;
8443 }
8444
8445
8446 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8447 PyObject *resultobj;
8448 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8449 long *arg2 = (long *) 0 ;
8450 long *arg3 = (long *) 0 ;
8451 long temp2 ;
8452 long temp3 ;
8453 PyObject * obj0 = 0 ;
8454 char *kwnames[] = {
8455 (char *) "self", NULL
8456 };
8457
8458 arg2 = &temp2;
8459 arg3 = &temp3;
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8463 {
8464 PyThreadState* __tstate = wxPyBeginAllowThreads();
8465 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8466
8467 wxPyEndAllowThreads(__tstate);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 Py_INCREF(Py_None); resultobj = Py_None;
8471 {
8472 PyObject *o = PyInt_FromLong((long) (*arg2));
8473 resultobj = t_output_helper(resultobj,o);
8474 }
8475 {
8476 PyObject *o = PyInt_FromLong((long) (*arg3));
8477 resultobj = t_output_helper(resultobj,o);
8478 }
8479 return resultobj;
8480 fail:
8481 return NULL;
8482 }
8483
8484
8485 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8486 PyObject *resultobj;
8487 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8488 wxString result;
8489 PyObject * obj0 = 0 ;
8490 char *kwnames[] = {
8491 (char *) "self", NULL
8492 };
8493
8494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8497 {
8498 PyThreadState* __tstate = wxPyBeginAllowThreads();
8499 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8500
8501 wxPyEndAllowThreads(__tstate);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 }
8504 {
8505 #if wxUSE_UNICODE
8506 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8507 #else
8508 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8509 #endif
8510 }
8511 return resultobj;
8512 fail:
8513 return NULL;
8514 }
8515
8516
8517 static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj;
8519 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8520 PyObject * obj0 = 0 ;
8521 char *kwnames[] = {
8522 (char *) "self", NULL
8523 };
8524
8525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8528 {
8529 PyThreadState* __tstate = wxPyBeginAllowThreads();
8530 (arg1)->Clear();
8531
8532 wxPyEndAllowThreads(__tstate);
8533 if (PyErr_Occurred()) SWIG_fail;
8534 }
8535 Py_INCREF(Py_None); resultobj = Py_None;
8536 return resultobj;
8537 fail:
8538 return NULL;
8539 }
8540
8541
8542 static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj;
8544 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8545 long arg2 ;
8546 long arg3 ;
8547 wxString *arg4 = 0 ;
8548 bool temp4 = False ;
8549 PyObject * obj0 = 0 ;
8550 PyObject * obj1 = 0 ;
8551 PyObject * obj2 = 0 ;
8552 PyObject * obj3 = 0 ;
8553 char *kwnames[] = {
8554 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8555 };
8556
8557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8560 arg2 = (long) SWIG_AsLong(obj1);
8561 if (PyErr_Occurred()) SWIG_fail;
8562 arg3 = (long) SWIG_AsLong(obj2);
8563 if (PyErr_Occurred()) SWIG_fail;
8564 {
8565 arg4 = wxString_in_helper(obj3);
8566 if (arg4 == NULL) SWIG_fail;
8567 temp4 = True;
8568 }
8569 {
8570 PyThreadState* __tstate = wxPyBeginAllowThreads();
8571 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8572
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
8576 Py_INCREF(Py_None); resultobj = Py_None;
8577 {
8578 if (temp4)
8579 delete arg4;
8580 }
8581 return resultobj;
8582 fail:
8583 {
8584 if (temp4)
8585 delete arg4;
8586 }
8587 return NULL;
8588 }
8589
8590
8591 static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8592 PyObject *resultobj;
8593 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8594 long arg2 ;
8595 long arg3 ;
8596 PyObject * obj0 = 0 ;
8597 PyObject * obj1 = 0 ;
8598 PyObject * obj2 = 0 ;
8599 char *kwnames[] = {
8600 (char *) "self",(char *) "from",(char *) "to", NULL
8601 };
8602
8603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8606 arg2 = (long) SWIG_AsLong(obj1);
8607 if (PyErr_Occurred()) SWIG_fail;
8608 arg3 = (long) SWIG_AsLong(obj2);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 {
8611 PyThreadState* __tstate = wxPyBeginAllowThreads();
8612 (arg1)->Remove(arg2,arg3);
8613
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 Py_INCREF(Py_None); resultobj = Py_None;
8618 return resultobj;
8619 fail:
8620 return NULL;
8621 }
8622
8623
8624 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8625 PyObject *resultobj;
8626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8627 wxString *arg2 = 0 ;
8628 bool result;
8629 bool temp2 = False ;
8630 PyObject * obj0 = 0 ;
8631 PyObject * obj1 = 0 ;
8632 char *kwnames[] = {
8633 (char *) "self",(char *) "file", NULL
8634 };
8635
8636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8639 {
8640 arg2 = wxString_in_helper(obj1);
8641 if (arg2 == NULL) SWIG_fail;
8642 temp2 = True;
8643 }
8644 {
8645 PyThreadState* __tstate = wxPyBeginAllowThreads();
8646 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8647
8648 wxPyEndAllowThreads(__tstate);
8649 if (PyErr_Occurred()) SWIG_fail;
8650 }
8651 {
8652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8653 }
8654 {
8655 if (temp2)
8656 delete arg2;
8657 }
8658 return resultobj;
8659 fail:
8660 {
8661 if (temp2)
8662 delete arg2;
8663 }
8664 return NULL;
8665 }
8666
8667
8668 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8669 PyObject *resultobj;
8670 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8671 wxString const &arg2_defvalue = wxPyEmptyString ;
8672 wxString *arg2 = (wxString *) &arg2_defvalue ;
8673 bool result;
8674 bool temp2 = False ;
8675 PyObject * obj0 = 0 ;
8676 PyObject * obj1 = 0 ;
8677 char *kwnames[] = {
8678 (char *) "self",(char *) "file", NULL
8679 };
8680
8681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8684 if (obj1) {
8685 {
8686 arg2 = wxString_in_helper(obj1);
8687 if (arg2 == NULL) SWIG_fail;
8688 temp2 = True;
8689 }
8690 }
8691 {
8692 PyThreadState* __tstate = wxPyBeginAllowThreads();
8693 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8694
8695 wxPyEndAllowThreads(__tstate);
8696 if (PyErr_Occurred()) SWIG_fail;
8697 }
8698 {
8699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8700 }
8701 {
8702 if (temp2)
8703 delete arg2;
8704 }
8705 return resultobj;
8706 fail:
8707 {
8708 if (temp2)
8709 delete arg2;
8710 }
8711 return NULL;
8712 }
8713
8714
8715 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8716 PyObject *resultobj;
8717 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8718 PyObject * obj0 = 0 ;
8719 char *kwnames[] = {
8720 (char *) "self", NULL
8721 };
8722
8723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8726 {
8727 PyThreadState* __tstate = wxPyBeginAllowThreads();
8728 (arg1)->MarkDirty();
8729
8730 wxPyEndAllowThreads(__tstate);
8731 if (PyErr_Occurred()) SWIG_fail;
8732 }
8733 Py_INCREF(Py_None); resultobj = Py_None;
8734 return resultobj;
8735 fail:
8736 return NULL;
8737 }
8738
8739
8740 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8741 PyObject *resultobj;
8742 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8743 PyObject * obj0 = 0 ;
8744 char *kwnames[] = {
8745 (char *) "self", NULL
8746 };
8747
8748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8751 {
8752 PyThreadState* __tstate = wxPyBeginAllowThreads();
8753 (arg1)->DiscardEdits();
8754
8755 wxPyEndAllowThreads(__tstate);
8756 if (PyErr_Occurred()) SWIG_fail;
8757 }
8758 Py_INCREF(Py_None); resultobj = Py_None;
8759 return resultobj;
8760 fail:
8761 return NULL;
8762 }
8763
8764
8765 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8766 PyObject *resultobj;
8767 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8768 unsigned long arg2 ;
8769 PyObject * obj0 = 0 ;
8770 PyObject * obj1 = 0 ;
8771 char *kwnames[] = {
8772 (char *) "self",(char *) "len", NULL
8773 };
8774
8775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8778 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8779 if (PyErr_Occurred()) SWIG_fail;
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 (arg1)->SetMaxLength(arg2);
8783
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 Py_INCREF(Py_None); resultobj = Py_None;
8788 return resultobj;
8789 fail:
8790 return NULL;
8791 }
8792
8793
8794 static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8795 PyObject *resultobj;
8796 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8797 wxString *arg2 = 0 ;
8798 bool temp2 = False ;
8799 PyObject * obj0 = 0 ;
8800 PyObject * obj1 = 0 ;
8801 char *kwnames[] = {
8802 (char *) "self",(char *) "text", NULL
8803 };
8804
8805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8808 {
8809 arg2 = wxString_in_helper(obj1);
8810 if (arg2 == NULL) SWIG_fail;
8811 temp2 = True;
8812 }
8813 {
8814 PyThreadState* __tstate = wxPyBeginAllowThreads();
8815 (arg1)->WriteText((wxString const &)*arg2);
8816
8817 wxPyEndAllowThreads(__tstate);
8818 if (PyErr_Occurred()) SWIG_fail;
8819 }
8820 Py_INCREF(Py_None); resultobj = Py_None;
8821 {
8822 if (temp2)
8823 delete arg2;
8824 }
8825 return resultobj;
8826 fail:
8827 {
8828 if (temp2)
8829 delete arg2;
8830 }
8831 return NULL;
8832 }
8833
8834
8835 static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8836 PyObject *resultobj;
8837 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8838 wxString *arg2 = 0 ;
8839 bool temp2 = False ;
8840 PyObject * obj0 = 0 ;
8841 PyObject * obj1 = 0 ;
8842 char *kwnames[] = {
8843 (char *) "self",(char *) "text", NULL
8844 };
8845
8846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8849 {
8850 arg2 = wxString_in_helper(obj1);
8851 if (arg2 == NULL) SWIG_fail;
8852 temp2 = True;
8853 }
8854 {
8855 PyThreadState* __tstate = wxPyBeginAllowThreads();
8856 (arg1)->AppendText((wxString const &)*arg2);
8857
8858 wxPyEndAllowThreads(__tstate);
8859 if (PyErr_Occurred()) SWIG_fail;
8860 }
8861 Py_INCREF(Py_None); resultobj = Py_None;
8862 {
8863 if (temp2)
8864 delete arg2;
8865 }
8866 return resultobj;
8867 fail:
8868 {
8869 if (temp2)
8870 delete arg2;
8871 }
8872 return NULL;
8873 }
8874
8875
8876 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj;
8878 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8879 wxKeyEvent *arg2 = 0 ;
8880 bool result;
8881 PyObject * obj0 = 0 ;
8882 PyObject * obj1 = 0 ;
8883 char *kwnames[] = {
8884 (char *) "self",(char *) "event", NULL
8885 };
8886
8887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8890 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8891 SWIG_POINTER_EXCEPTION | 0)) == -1)
8892 SWIG_fail;
8893 if (arg2 == NULL) {
8894 PyErr_SetString(PyExc_TypeError,"null reference");
8895 SWIG_fail;
8896 }
8897 {
8898 PyThreadState* __tstate = wxPyBeginAllowThreads();
8899 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8900
8901 wxPyEndAllowThreads(__tstate);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 {
8905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8906 }
8907 return resultobj;
8908 fail:
8909 return NULL;
8910 }
8911
8912
8913 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8914 PyObject *resultobj;
8915 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8916 long arg2 ;
8917 long arg3 ;
8918 wxTextAttr *arg4 = 0 ;
8919 bool result;
8920 PyObject * obj0 = 0 ;
8921 PyObject * obj1 = 0 ;
8922 PyObject * obj2 = 0 ;
8923 PyObject * obj3 = 0 ;
8924 char *kwnames[] = {
8925 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8926 };
8927
8928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8931 arg2 = (long) SWIG_AsLong(obj1);
8932 if (PyErr_Occurred()) SWIG_fail;
8933 arg3 = (long) SWIG_AsLong(obj2);
8934 if (PyErr_Occurred()) SWIG_fail;
8935 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8936 SWIG_POINTER_EXCEPTION | 0)) == -1)
8937 SWIG_fail;
8938 if (arg4 == NULL) {
8939 PyErr_SetString(PyExc_TypeError,"null reference");
8940 SWIG_fail;
8941 }
8942 {
8943 PyThreadState* __tstate = wxPyBeginAllowThreads();
8944 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8945
8946 wxPyEndAllowThreads(__tstate);
8947 if (PyErr_Occurred()) SWIG_fail;
8948 }
8949 {
8950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8951 }
8952 return resultobj;
8953 fail:
8954 return NULL;
8955 }
8956
8957
8958 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8959 PyObject *resultobj;
8960 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8961 long arg2 ;
8962 wxTextAttr *arg3 = 0 ;
8963 bool result;
8964 PyObject * obj0 = 0 ;
8965 PyObject * obj1 = 0 ;
8966 PyObject * obj2 = 0 ;
8967 char *kwnames[] = {
8968 (char *) "self",(char *) "position",(char *) "style", NULL
8969 };
8970
8971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8974 arg2 = (long) SWIG_AsLong(obj1);
8975 if (PyErr_Occurred()) SWIG_fail;
8976 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
8977 SWIG_POINTER_EXCEPTION | 0)) == -1)
8978 SWIG_fail;
8979 if (arg3 == NULL) {
8980 PyErr_SetString(PyExc_TypeError,"null reference");
8981 SWIG_fail;
8982 }
8983 {
8984 PyThreadState* __tstate = wxPyBeginAllowThreads();
8985 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8986
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 {
8991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8992 }
8993 return resultobj;
8994 fail:
8995 return NULL;
8996 }
8997
8998
8999 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9002 wxTextAttr *arg2 = 0 ;
9003 bool result;
9004 PyObject * obj0 = 0 ;
9005 PyObject * obj1 = 0 ;
9006 char *kwnames[] = {
9007 (char *) "self",(char *) "style", NULL
9008 };
9009
9010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9013 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9014 SWIG_POINTER_EXCEPTION | 0)) == -1)
9015 SWIG_fail;
9016 if (arg2 == NULL) {
9017 PyErr_SetString(PyExc_TypeError,"null reference");
9018 SWIG_fail;
9019 }
9020 {
9021 PyThreadState* __tstate = wxPyBeginAllowThreads();
9022 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9023
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 {
9028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9029 }
9030 return resultobj;
9031 fail:
9032 return NULL;
9033 }
9034
9035
9036 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9037 PyObject *resultobj;
9038 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9039 wxTextAttr *result;
9040 PyObject * obj0 = 0 ;
9041 char *kwnames[] = {
9042 (char *) "self", NULL
9043 };
9044
9045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9048 {
9049 PyThreadState* __tstate = wxPyBeginAllowThreads();
9050 {
9051 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9052 result = (wxTextAttr *) &_result_ref;
9053 }
9054
9055 wxPyEndAllowThreads(__tstate);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 }
9058 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9059 return resultobj;
9060 fail:
9061 return NULL;
9062 }
9063
9064
9065 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9066 PyObject *resultobj;
9067 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9068 long arg2 ;
9069 long arg3 ;
9070 long result;
9071 PyObject * obj0 = 0 ;
9072 PyObject * obj1 = 0 ;
9073 PyObject * obj2 = 0 ;
9074 char *kwnames[] = {
9075 (char *) "self",(char *) "x",(char *) "y", NULL
9076 };
9077
9078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9081 arg2 = (long) SWIG_AsLong(obj1);
9082 if (PyErr_Occurred()) SWIG_fail;
9083 arg3 = (long) SWIG_AsLong(obj2);
9084 if (PyErr_Occurred()) SWIG_fail;
9085 {
9086 PyThreadState* __tstate = wxPyBeginAllowThreads();
9087 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9088
9089 wxPyEndAllowThreads(__tstate);
9090 if (PyErr_Occurred()) SWIG_fail;
9091 }
9092 resultobj = SWIG_FromLong((long)result);
9093 return resultobj;
9094 fail:
9095 return NULL;
9096 }
9097
9098
9099 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9100 PyObject *resultobj;
9101 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9102 long arg2 ;
9103 long *arg3 = (long *) 0 ;
9104 long *arg4 = (long *) 0 ;
9105 long temp3 ;
9106 long temp4 ;
9107 PyObject * obj0 = 0 ;
9108 PyObject * obj1 = 0 ;
9109 char *kwnames[] = {
9110 (char *) "self",(char *) "pos", NULL
9111 };
9112
9113 arg3 = &temp3;
9114 arg4 = &temp4;
9115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9118 arg2 = (long) SWIG_AsLong(obj1);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 {
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9123
9124 wxPyEndAllowThreads(__tstate);
9125 if (PyErr_Occurred()) SWIG_fail;
9126 }
9127 Py_INCREF(Py_None); resultobj = Py_None;
9128 {
9129 PyObject *o = PyInt_FromLong((long) (*arg3));
9130 resultobj = t_output_helper(resultobj,o);
9131 }
9132 {
9133 PyObject *o = PyInt_FromLong((long) (*arg4));
9134 resultobj = t_output_helper(resultobj,o);
9135 }
9136 return resultobj;
9137 fail:
9138 return NULL;
9139 }
9140
9141
9142 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9143 PyObject *resultobj;
9144 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9145 long arg2 ;
9146 PyObject * obj0 = 0 ;
9147 PyObject * obj1 = 0 ;
9148 char *kwnames[] = {
9149 (char *) "self",(char *) "pos", NULL
9150 };
9151
9152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9155 arg2 = (long) SWIG_AsLong(obj1);
9156 if (PyErr_Occurred()) SWIG_fail;
9157 {
9158 PyThreadState* __tstate = wxPyBeginAllowThreads();
9159 (arg1)->ShowPosition(arg2);
9160
9161 wxPyEndAllowThreads(__tstate);
9162 if (PyErr_Occurred()) SWIG_fail;
9163 }
9164 Py_INCREF(Py_None); resultobj = Py_None;
9165 return resultobj;
9166 fail:
9167 return NULL;
9168 }
9169
9170
9171 static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
9172 PyObject *resultobj;
9173 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9174 wxPoint *arg2 = 0 ;
9175 long *arg3 = (long *) 0 ;
9176 long *arg4 = (long *) 0 ;
9177 int result;
9178 wxPoint temp2 ;
9179 long temp3 ;
9180 long temp4 ;
9181 PyObject * obj0 = 0 ;
9182 PyObject * obj1 = 0 ;
9183 char *kwnames[] = {
9184 (char *) "self",(char *) "pt", NULL
9185 };
9186
9187 arg3 = &temp3;
9188 arg4 = &temp4;
9189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9192 {
9193 arg2 = &temp2;
9194 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9195 }
9196 {
9197 PyThreadState* __tstate = wxPyBeginAllowThreads();
9198 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9199
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 resultobj = SWIG_FromInt((int)result);
9204 {
9205 PyObject *o = PyInt_FromLong((long) (*arg3));
9206 resultobj = t_output_helper(resultobj,o);
9207 }
9208 {
9209 PyObject *o = PyInt_FromLong((long) (*arg4));
9210 resultobj = t_output_helper(resultobj,o);
9211 }
9212 return resultobj;
9213 fail:
9214 return NULL;
9215 }
9216
9217
9218 static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
9219 PyObject *resultobj;
9220 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9221 PyObject * obj0 = 0 ;
9222 char *kwnames[] = {
9223 (char *) "self", NULL
9224 };
9225
9226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9229 {
9230 PyThreadState* __tstate = wxPyBeginAllowThreads();
9231 (arg1)->Copy();
9232
9233 wxPyEndAllowThreads(__tstate);
9234 if (PyErr_Occurred()) SWIG_fail;
9235 }
9236 Py_INCREF(Py_None); resultobj = Py_None;
9237 return resultobj;
9238 fail:
9239 return NULL;
9240 }
9241
9242
9243 static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
9244 PyObject *resultobj;
9245 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9246 PyObject * obj0 = 0 ;
9247 char *kwnames[] = {
9248 (char *) "self", NULL
9249 };
9250
9251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9254 {
9255 PyThreadState* __tstate = wxPyBeginAllowThreads();
9256 (arg1)->Cut();
9257
9258 wxPyEndAllowThreads(__tstate);
9259 if (PyErr_Occurred()) SWIG_fail;
9260 }
9261 Py_INCREF(Py_None); resultobj = Py_None;
9262 return resultobj;
9263 fail:
9264 return NULL;
9265 }
9266
9267
9268 static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
9269 PyObject *resultobj;
9270 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9271 PyObject * obj0 = 0 ;
9272 char *kwnames[] = {
9273 (char *) "self", NULL
9274 };
9275
9276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9279 {
9280 PyThreadState* __tstate = wxPyBeginAllowThreads();
9281 (arg1)->Paste();
9282
9283 wxPyEndAllowThreads(__tstate);
9284 if (PyErr_Occurred()) SWIG_fail;
9285 }
9286 Py_INCREF(Py_None); resultobj = Py_None;
9287 return resultobj;
9288 fail:
9289 return NULL;
9290 }
9291
9292
9293 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
9294 PyObject *resultobj;
9295 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9296 bool result;
9297 PyObject * obj0 = 0 ;
9298 char *kwnames[] = {
9299 (char *) "self", NULL
9300 };
9301
9302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9305 {
9306 PyThreadState* __tstate = wxPyBeginAllowThreads();
9307 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9308
9309 wxPyEndAllowThreads(__tstate);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 {
9313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9314 }
9315 return resultobj;
9316 fail:
9317 return NULL;
9318 }
9319
9320
9321 static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
9322 PyObject *resultobj;
9323 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9324 bool result;
9325 PyObject * obj0 = 0 ;
9326 char *kwnames[] = {
9327 (char *) "self", NULL
9328 };
9329
9330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9333 {
9334 PyThreadState* __tstate = wxPyBeginAllowThreads();
9335 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9336
9337 wxPyEndAllowThreads(__tstate);
9338 if (PyErr_Occurred()) SWIG_fail;
9339 }
9340 {
9341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9342 }
9343 return resultobj;
9344 fail:
9345 return NULL;
9346 }
9347
9348
9349 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
9350 PyObject *resultobj;
9351 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9352 bool result;
9353 PyObject * obj0 = 0 ;
9354 char *kwnames[] = {
9355 (char *) "self", NULL
9356 };
9357
9358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9361 {
9362 PyThreadState* __tstate = wxPyBeginAllowThreads();
9363 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9364
9365 wxPyEndAllowThreads(__tstate);
9366 if (PyErr_Occurred()) SWIG_fail;
9367 }
9368 {
9369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9370 }
9371 return resultobj;
9372 fail:
9373 return NULL;
9374 }
9375
9376
9377 static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj;
9379 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9380 PyObject * obj0 = 0 ;
9381 char *kwnames[] = {
9382 (char *) "self", NULL
9383 };
9384
9385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9388 {
9389 PyThreadState* __tstate = wxPyBeginAllowThreads();
9390 (arg1)->Undo();
9391
9392 wxPyEndAllowThreads(__tstate);
9393 if (PyErr_Occurred()) SWIG_fail;
9394 }
9395 Py_INCREF(Py_None); resultobj = Py_None;
9396 return resultobj;
9397 fail:
9398 return NULL;
9399 }
9400
9401
9402 static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
9403 PyObject *resultobj;
9404 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9405 PyObject * obj0 = 0 ;
9406 char *kwnames[] = {
9407 (char *) "self", NULL
9408 };
9409
9410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9413 {
9414 PyThreadState* __tstate = wxPyBeginAllowThreads();
9415 (arg1)->Redo();
9416
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 }
9420 Py_INCREF(Py_None); resultobj = Py_None;
9421 return resultobj;
9422 fail:
9423 return NULL;
9424 }
9425
9426
9427 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
9428 PyObject *resultobj;
9429 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9430 bool result;
9431 PyObject * obj0 = 0 ;
9432 char *kwnames[] = {
9433 (char *) "self", NULL
9434 };
9435
9436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9439 {
9440 PyThreadState* __tstate = wxPyBeginAllowThreads();
9441 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9442
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 {
9447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9448 }
9449 return resultobj;
9450 fail:
9451 return NULL;
9452 }
9453
9454
9455 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
9456 PyObject *resultobj;
9457 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9458 bool result;
9459 PyObject * obj0 = 0 ;
9460 char *kwnames[] = {
9461 (char *) "self", NULL
9462 };
9463
9464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9467 {
9468 PyThreadState* __tstate = wxPyBeginAllowThreads();
9469 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9470
9471 wxPyEndAllowThreads(__tstate);
9472 if (PyErr_Occurred()) SWIG_fail;
9473 }
9474 {
9475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9476 }
9477 return resultobj;
9478 fail:
9479 return NULL;
9480 }
9481
9482
9483 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj;
9485 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9486 long arg2 ;
9487 PyObject * obj0 = 0 ;
9488 PyObject * obj1 = 0 ;
9489 char *kwnames[] = {
9490 (char *) "self",(char *) "pos", NULL
9491 };
9492
9493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9496 arg2 = (long) SWIG_AsLong(obj1);
9497 if (PyErr_Occurred()) SWIG_fail;
9498 {
9499 PyThreadState* __tstate = wxPyBeginAllowThreads();
9500 (arg1)->SetInsertionPoint(arg2);
9501
9502 wxPyEndAllowThreads(__tstate);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 }
9505 Py_INCREF(Py_None); resultobj = Py_None;
9506 return resultobj;
9507 fail:
9508 return NULL;
9509 }
9510
9511
9512 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9513 PyObject *resultobj;
9514 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9515 PyObject * obj0 = 0 ;
9516 char *kwnames[] = {
9517 (char *) "self", NULL
9518 };
9519
9520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9523 {
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 (arg1)->SetInsertionPointEnd();
9526
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 Py_INCREF(Py_None); resultobj = Py_None;
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9538 PyObject *resultobj;
9539 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9540 long result;
9541 PyObject * obj0 = 0 ;
9542 char *kwnames[] = {
9543 (char *) "self", NULL
9544 };
9545
9546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9549 {
9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
9551 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9552
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 resultobj = SWIG_FromLong((long)result);
9557 return resultobj;
9558 fail:
9559 return NULL;
9560 }
9561
9562
9563 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9564 PyObject *resultobj;
9565 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9566 long result;
9567 PyObject * obj0 = 0 ;
9568 char *kwnames[] = {
9569 (char *) "self", NULL
9570 };
9571
9572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9578
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 resultobj = SWIG_FromLong((long)result);
9583 return resultobj;
9584 fail:
9585 return NULL;
9586 }
9587
9588
9589 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9590 PyObject *resultobj;
9591 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9592 long arg2 ;
9593 long arg3 ;
9594 PyObject * obj0 = 0 ;
9595 PyObject * obj1 = 0 ;
9596 PyObject * obj2 = 0 ;
9597 char *kwnames[] = {
9598 (char *) "self",(char *) "from",(char *) "to", NULL
9599 };
9600
9601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9604 arg2 = (long) SWIG_AsLong(obj1);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 arg3 = (long) SWIG_AsLong(obj2);
9607 if (PyErr_Occurred()) SWIG_fail;
9608 {
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 (arg1)->SetSelection(arg2,arg3);
9611
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 Py_INCREF(Py_None); resultobj = Py_None;
9616 return resultobj;
9617 fail:
9618 return NULL;
9619 }
9620
9621
9622 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9623 PyObject *resultobj;
9624 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9625 PyObject * obj0 = 0 ;
9626 char *kwnames[] = {
9627 (char *) "self", NULL
9628 };
9629
9630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9633 {
9634 PyThreadState* __tstate = wxPyBeginAllowThreads();
9635 (arg1)->SelectAll();
9636
9637 wxPyEndAllowThreads(__tstate);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 }
9640 Py_INCREF(Py_None); resultobj = Py_None;
9641 return resultobj;
9642 fail:
9643 return NULL;
9644 }
9645
9646
9647 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9648 PyObject *resultobj;
9649 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9650 bool arg2 ;
9651 PyObject * obj0 = 0 ;
9652 PyObject * obj1 = 0 ;
9653 char *kwnames[] = {
9654 (char *) "self",(char *) "editable", NULL
9655 };
9656
9657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9660 arg2 = (bool) SWIG_AsBool(obj1);
9661 if (PyErr_Occurred()) SWIG_fail;
9662 {
9663 PyThreadState* __tstate = wxPyBeginAllowThreads();
9664 (arg1)->SetEditable(arg2);
9665
9666 wxPyEndAllowThreads(__tstate);
9667 if (PyErr_Occurred()) SWIG_fail;
9668 }
9669 Py_INCREF(Py_None); resultobj = Py_None;
9670 return resultobj;
9671 fail:
9672 return NULL;
9673 }
9674
9675
9676 static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
9677 PyObject *resultobj;
9678 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9679 bool arg2 = (bool) True ;
9680 bool result;
9681 PyObject * obj0 = 0 ;
9682 PyObject * obj1 = 0 ;
9683 char *kwnames[] = {
9684 (char *) "self",(char *) "show", NULL
9685 };
9686
9687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail;
9688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9690 if (obj1) {
9691 arg2 = (bool) SWIG_AsBool(obj1);
9692 if (PyErr_Occurred()) SWIG_fail;
9693 }
9694 {
9695 PyThreadState* __tstate = wxPyBeginAllowThreads();
9696 result = (bool)(arg1)->ShowNativeCaret(arg2);
9697
9698 wxPyEndAllowThreads(__tstate);
9699 if (PyErr_Occurred()) SWIG_fail;
9700 }
9701 {
9702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9703 }
9704 return resultobj;
9705 fail:
9706 return NULL;
9707 }
9708
9709
9710 static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj;
9712 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9713 bool result;
9714 PyObject * obj0 = 0 ;
9715 char *kwnames[] = {
9716 (char *) "self", NULL
9717 };
9718
9719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail;
9720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9722 {
9723 PyThreadState* __tstate = wxPyBeginAllowThreads();
9724 result = (bool)(arg1)->HideNativeCaret();
9725
9726 wxPyEndAllowThreads(__tstate);
9727 if (PyErr_Occurred()) SWIG_fail;
9728 }
9729 {
9730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9731 }
9732 return resultobj;
9733 fail:
9734 return NULL;
9735 }
9736
9737
9738 static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9739 PyObject *resultobj;
9740 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9741 wxString *arg2 = 0 ;
9742 bool temp2 = False ;
9743 PyObject * obj0 = 0 ;
9744 PyObject * obj1 = 0 ;
9745 char *kwnames[] = {
9746 (char *) "self",(char *) "text", NULL
9747 };
9748
9749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9752 {
9753 arg2 = wxString_in_helper(obj1);
9754 if (arg2 == NULL) SWIG_fail;
9755 temp2 = True;
9756 }
9757 {
9758 PyThreadState* __tstate = wxPyBeginAllowThreads();
9759 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9760
9761 wxPyEndAllowThreads(__tstate);
9762 if (PyErr_Occurred()) SWIG_fail;
9763 }
9764 Py_INCREF(Py_None); resultobj = Py_None;
9765 {
9766 if (temp2)
9767 delete arg2;
9768 }
9769 return resultobj;
9770 fail:
9771 {
9772 if (temp2)
9773 delete arg2;
9774 }
9775 return NULL;
9776 }
9777
9778
9779 static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9780 PyObject *resultobj;
9781 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9782 long arg2 ;
9783 long arg3 ;
9784 wxString result;
9785 PyObject * obj0 = 0 ;
9786 PyObject * obj1 = 0 ;
9787 PyObject * obj2 = 0 ;
9788 char *kwnames[] = {
9789 (char *) "self",(char *) "from",(char *) "to", NULL
9790 };
9791
9792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9795 arg2 = (long) SWIG_AsLong(obj1);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 arg3 = (long) SWIG_AsLong(obj2);
9798 if (PyErr_Occurred()) SWIG_fail;
9799 {
9800 PyThreadState* __tstate = wxPyBeginAllowThreads();
9801 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9802
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) SWIG_fail;
9805 }
9806 {
9807 #if wxUSE_UNICODE
9808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9809 #else
9810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9811 #endif
9812 }
9813 return resultobj;
9814 fail:
9815 return NULL;
9816 }
9817
9818
9819 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
9820 PyObject *resultobj;
9821 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
9822 wxVisualAttributes result;
9823 PyObject * obj0 = 0 ;
9824 char *kwnames[] = {
9825 (char *) "variant", NULL
9826 };
9827
9828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
9829 if (obj0) {
9830 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
9831 if (PyErr_Occurred()) SWIG_fail;
9832 }
9833 {
9834 PyThreadState* __tstate = wxPyBeginAllowThreads();
9835 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
9836
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 {
9841 wxVisualAttributes * resultptr;
9842 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
9843 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
9844 }
9845 return resultobj;
9846 fail:
9847 return NULL;
9848 }
9849
9850
9851 static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9852 PyObject *obj;
9853 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9854 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9855 Py_INCREF(obj);
9856 return Py_BuildValue((char *)"");
9857 }
9858 static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9859 PyObject *resultobj;
9860 int arg1 ;
9861 wxMouseEvent *arg2 = 0 ;
9862 long arg3 ;
9863 long arg4 ;
9864 wxTextUrlEvent *result;
9865 PyObject * obj0 = 0 ;
9866 PyObject * obj1 = 0 ;
9867 PyObject * obj2 = 0 ;
9868 PyObject * obj3 = 0 ;
9869 char *kwnames[] = {
9870 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9871 };
9872
9873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9874 arg1 = (int) SWIG_AsInt(obj0);
9875 if (PyErr_Occurred()) SWIG_fail;
9876 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9877 SWIG_POINTER_EXCEPTION | 0)) == -1)
9878 SWIG_fail;
9879 if (arg2 == NULL) {
9880 PyErr_SetString(PyExc_TypeError,"null reference");
9881 SWIG_fail;
9882 }
9883 arg3 = (long) SWIG_AsLong(obj2);
9884 if (PyErr_Occurred()) SWIG_fail;
9885 arg4 = (long) SWIG_AsLong(obj3);
9886 if (PyErr_Occurred()) SWIG_fail;
9887 {
9888 PyThreadState* __tstate = wxPyBeginAllowThreads();
9889 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9890
9891 wxPyEndAllowThreads(__tstate);
9892 if (PyErr_Occurred()) SWIG_fail;
9893 }
9894 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9895 return resultobj;
9896 fail:
9897 return NULL;
9898 }
9899
9900
9901 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9902 PyObject *resultobj;
9903 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9904 wxMouseEvent *result;
9905 PyObject * obj0 = 0 ;
9906 char *kwnames[] = {
9907 (char *) "self", NULL
9908 };
9909
9910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9913 {
9914 PyThreadState* __tstate = wxPyBeginAllowThreads();
9915 {
9916 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9917 result = (wxMouseEvent *) &_result_ref;
9918 }
9919
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) SWIG_fail;
9922 }
9923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9924 return resultobj;
9925 fail:
9926 return NULL;
9927 }
9928
9929
9930 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9931 PyObject *resultobj;
9932 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9933 long result;
9934 PyObject * obj0 = 0 ;
9935 char *kwnames[] = {
9936 (char *) "self", NULL
9937 };
9938
9939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9945
9946 wxPyEndAllowThreads(__tstate);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 }
9949 resultobj = SWIG_FromLong((long)result);
9950 return resultobj;
9951 fail:
9952 return NULL;
9953 }
9954
9955
9956 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9957 PyObject *resultobj;
9958 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9959 long result;
9960 PyObject * obj0 = 0 ;
9961 char *kwnames[] = {
9962 (char *) "self", NULL
9963 };
9964
9965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9968 {
9969 PyThreadState* __tstate = wxPyBeginAllowThreads();
9970 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9971
9972 wxPyEndAllowThreads(__tstate);
9973 if (PyErr_Occurred()) SWIG_fail;
9974 }
9975 resultobj = SWIG_FromLong((long)result);
9976 return resultobj;
9977 fail:
9978 return NULL;
9979 }
9980
9981
9982 static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
9983 PyObject *obj;
9984 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9985 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9986 Py_INCREF(obj);
9987 return Py_BuildValue((char *)"");
9988 }
9989 static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
9990 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9991 return 1;
9992 }
9993
9994
9995 static PyObject *_wrap_ScrollBarNameStr_get() {
9996 PyObject *pyobj;
9997
9998 {
9999 #if wxUSE_UNICODE
10000 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10001 #else
10002 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10003 #endif
10004 }
10005 return pyobj;
10006 }
10007
10008
10009 static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
10010 PyObject *resultobj;
10011 wxWindow *arg1 = (wxWindow *) 0 ;
10012 int arg2 = (int) -1 ;
10013 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10014 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10015 wxSize const &arg4_defvalue = wxDefaultSize ;
10016 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10017 long arg5 = (long) wxSB_HORIZONTAL ;
10018 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10019 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10020 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10021 wxString *arg7 = (wxString *) &arg7_defvalue ;
10022 wxScrollBar *result;
10023 wxPoint temp3 ;
10024 wxSize temp4 ;
10025 bool temp7 = False ;
10026 PyObject * obj0 = 0 ;
10027 PyObject * obj1 = 0 ;
10028 PyObject * obj2 = 0 ;
10029 PyObject * obj3 = 0 ;
10030 PyObject * obj4 = 0 ;
10031 PyObject * obj5 = 0 ;
10032 PyObject * obj6 = 0 ;
10033 char *kwnames[] = {
10034 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10035 };
10036
10037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10040 if (obj1) {
10041 arg2 = (int) SWIG_AsInt(obj1);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 if (obj2) {
10045 {
10046 arg3 = &temp3;
10047 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10048 }
10049 }
10050 if (obj3) {
10051 {
10052 arg4 = &temp4;
10053 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10054 }
10055 }
10056 if (obj4) {
10057 arg5 = (long) SWIG_AsLong(obj4);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 }
10060 if (obj5) {
10061 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10062 SWIG_POINTER_EXCEPTION | 0)) == -1)
10063 SWIG_fail;
10064 if (arg6 == NULL) {
10065 PyErr_SetString(PyExc_TypeError,"null reference");
10066 SWIG_fail;
10067 }
10068 }
10069 if (obj6) {
10070 {
10071 arg7 = wxString_in_helper(obj6);
10072 if (arg7 == NULL) SWIG_fail;
10073 temp7 = True;
10074 }
10075 }
10076 {
10077 PyThreadState* __tstate = wxPyBeginAllowThreads();
10078 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10079
10080 wxPyEndAllowThreads(__tstate);
10081 if (PyErr_Occurred()) SWIG_fail;
10082 }
10083 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10084 {
10085 if (temp7)
10086 delete arg7;
10087 }
10088 return resultobj;
10089 fail:
10090 {
10091 if (temp7)
10092 delete arg7;
10093 }
10094 return NULL;
10095 }
10096
10097
10098 static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
10099 PyObject *resultobj;
10100 wxScrollBar *result;
10101 char *kwnames[] = {
10102 NULL
10103 };
10104
10105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10106 {
10107 PyThreadState* __tstate = wxPyBeginAllowThreads();
10108 result = (wxScrollBar *)new wxScrollBar();
10109
10110 wxPyEndAllowThreads(__tstate);
10111 if (PyErr_Occurred()) SWIG_fail;
10112 }
10113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10114 return resultobj;
10115 fail:
10116 return NULL;
10117 }
10118
10119
10120 static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10121 PyObject *resultobj;
10122 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10123 wxWindow *arg2 = (wxWindow *) 0 ;
10124 int arg3 = (int) -1 ;
10125 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10126 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10127 wxSize const &arg5_defvalue = wxDefaultSize ;
10128 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10129 long arg6 = (long) wxSB_HORIZONTAL ;
10130 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10131 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10132 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10133 wxString *arg8 = (wxString *) &arg8_defvalue ;
10134 bool result;
10135 wxPoint temp4 ;
10136 wxSize temp5 ;
10137 bool temp8 = False ;
10138 PyObject * obj0 = 0 ;
10139 PyObject * obj1 = 0 ;
10140 PyObject * obj2 = 0 ;
10141 PyObject * obj3 = 0 ;
10142 PyObject * obj4 = 0 ;
10143 PyObject * obj5 = 0 ;
10144 PyObject * obj6 = 0 ;
10145 PyObject * obj7 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10153 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10155 if (obj2) {
10156 arg3 = (int) SWIG_AsInt(obj2);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 }
10159 if (obj3) {
10160 {
10161 arg4 = &temp4;
10162 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10163 }
10164 }
10165 if (obj4) {
10166 {
10167 arg5 = &temp5;
10168 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10169 }
10170 }
10171 if (obj5) {
10172 arg6 = (long) SWIG_AsLong(obj5);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 if (obj6) {
10176 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10177 SWIG_POINTER_EXCEPTION | 0)) == -1)
10178 SWIG_fail;
10179 if (arg7 == NULL) {
10180 PyErr_SetString(PyExc_TypeError,"null reference");
10181 SWIG_fail;
10182 }
10183 }
10184 if (obj7) {
10185 {
10186 arg8 = wxString_in_helper(obj7);
10187 if (arg8 == NULL) SWIG_fail;
10188 temp8 = True;
10189 }
10190 }
10191 {
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10194
10195 wxPyEndAllowThreads(__tstate);
10196 if (PyErr_Occurred()) SWIG_fail;
10197 }
10198 {
10199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10200 }
10201 {
10202 if (temp8)
10203 delete arg8;
10204 }
10205 return resultobj;
10206 fail:
10207 {
10208 if (temp8)
10209 delete arg8;
10210 }
10211 return NULL;
10212 }
10213
10214
10215 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10216 PyObject *resultobj;
10217 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10218 int result;
10219 PyObject * obj0 = 0 ;
10220 char *kwnames[] = {
10221 (char *) "self", NULL
10222 };
10223
10224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10227 {
10228 PyThreadState* __tstate = wxPyBeginAllowThreads();
10229 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10230
10231 wxPyEndAllowThreads(__tstate);
10232 if (PyErr_Occurred()) SWIG_fail;
10233 }
10234 resultobj = SWIG_FromInt((int)result);
10235 return resultobj;
10236 fail:
10237 return NULL;
10238 }
10239
10240
10241 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10242 PyObject *resultobj;
10243 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10244 int result;
10245 PyObject * obj0 = 0 ;
10246 char *kwnames[] = {
10247 (char *) "self", NULL
10248 };
10249
10250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10256
10257 wxPyEndAllowThreads(__tstate);
10258 if (PyErr_Occurred()) SWIG_fail;
10259 }
10260 resultobj = SWIG_FromInt((int)result);
10261 return resultobj;
10262 fail:
10263 return NULL;
10264 }
10265
10266
10267 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10268 PyObject *resultobj;
10269 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10270 int result;
10271 PyObject * obj0 = 0 ;
10272 char *kwnames[] = {
10273 (char *) "self", NULL
10274 };
10275
10276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10279 {
10280 PyThreadState* __tstate = wxPyBeginAllowThreads();
10281 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10282
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 resultobj = SWIG_FromInt((int)result);
10287 return resultobj;
10288 fail:
10289 return NULL;
10290 }
10291
10292
10293 static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10294 PyObject *resultobj;
10295 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10296 int result;
10297 PyObject * obj0 = 0 ;
10298 char *kwnames[] = {
10299 (char *) "self", NULL
10300 };
10301
10302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 result = (int)((wxScrollBar const *)arg1)->GetRange();
10308
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 resultobj = SWIG_FromInt((int)result);
10313 return resultobj;
10314 fail:
10315 return NULL;
10316 }
10317
10318
10319 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10320 PyObject *resultobj;
10321 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10322 bool result;
10323 PyObject * obj0 = 0 ;
10324 char *kwnames[] = {
10325 (char *) "self", NULL
10326 };
10327
10328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10331 {
10332 PyThreadState* __tstate = wxPyBeginAllowThreads();
10333 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10334
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 {
10339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10340 }
10341 return resultobj;
10342 fail:
10343 return NULL;
10344 }
10345
10346
10347 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10348 PyObject *resultobj;
10349 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10350 int arg2 ;
10351 PyObject * obj0 = 0 ;
10352 PyObject * obj1 = 0 ;
10353 char *kwnames[] = {
10354 (char *) "self",(char *) "viewStart", NULL
10355 };
10356
10357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10360 arg2 = (int) SWIG_AsInt(obj1);
10361 if (PyErr_Occurred()) SWIG_fail;
10362 {
10363 PyThreadState* __tstate = wxPyBeginAllowThreads();
10364 (arg1)->SetThumbPosition(arg2);
10365
10366 wxPyEndAllowThreads(__tstate);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 Py_INCREF(Py_None); resultobj = Py_None;
10370 return resultobj;
10371 fail:
10372 return NULL;
10373 }
10374
10375
10376 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj;
10378 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10379 int arg2 ;
10380 int arg3 ;
10381 int arg4 ;
10382 int arg5 ;
10383 bool arg6 = (bool) True ;
10384 PyObject * obj0 = 0 ;
10385 PyObject * obj1 = 0 ;
10386 PyObject * obj2 = 0 ;
10387 PyObject * obj3 = 0 ;
10388 PyObject * obj4 = 0 ;
10389 PyObject * obj5 = 0 ;
10390 char *kwnames[] = {
10391 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10392 };
10393
10394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10397 arg2 = (int) SWIG_AsInt(obj1);
10398 if (PyErr_Occurred()) SWIG_fail;
10399 arg3 = (int) SWIG_AsInt(obj2);
10400 if (PyErr_Occurred()) SWIG_fail;
10401 arg4 = (int) SWIG_AsInt(obj3);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 arg5 = (int) SWIG_AsInt(obj4);
10404 if (PyErr_Occurred()) SWIG_fail;
10405 if (obj5) {
10406 arg6 = (bool) SWIG_AsBool(obj5);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 {
10410 PyThreadState* __tstate = wxPyBeginAllowThreads();
10411 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10412
10413 wxPyEndAllowThreads(__tstate);
10414 if (PyErr_Occurred()) SWIG_fail;
10415 }
10416 Py_INCREF(Py_None); resultobj = Py_None;
10417 return resultobj;
10418 fail:
10419 return NULL;
10420 }
10421
10422
10423 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10424 PyObject *resultobj;
10425 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10426 wxVisualAttributes result;
10427 PyObject * obj0 = 0 ;
10428 char *kwnames[] = {
10429 (char *) "variant", NULL
10430 };
10431
10432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10433 if (obj0) {
10434 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10435 if (PyErr_Occurred()) SWIG_fail;
10436 }
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10440
10441 wxPyEndAllowThreads(__tstate);
10442 if (PyErr_Occurred()) SWIG_fail;
10443 }
10444 {
10445 wxVisualAttributes * resultptr;
10446 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10447 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10448 }
10449 return resultobj;
10450 fail:
10451 return NULL;
10452 }
10453
10454
10455 static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
10456 PyObject *obj;
10457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10458 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10459 Py_INCREF(obj);
10460 return Py_BuildValue((char *)"");
10461 }
10462 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
10463 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10464 return 1;
10465 }
10466
10467
10468 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10469 PyObject *pyobj;
10470
10471 {
10472 #if wxUSE_UNICODE
10473 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10474 #else
10475 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10476 #endif
10477 }
10478 return pyobj;
10479 }
10480
10481
10482 static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
10483 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10484 return 1;
10485 }
10486
10487
10488 static PyObject *_wrap_SpinCtrlNameStr_get() {
10489 PyObject *pyobj;
10490
10491 {
10492 #if wxUSE_UNICODE
10493 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10494 #else
10495 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10496 #endif
10497 }
10498 return pyobj;
10499 }
10500
10501
10502 static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10503 PyObject *resultobj;
10504 wxWindow *arg1 = (wxWindow *) 0 ;
10505 int arg2 = (int) -1 ;
10506 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10507 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10508 wxSize const &arg4_defvalue = wxDefaultSize ;
10509 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10510 long arg5 = (long) wxSP_HORIZONTAL ;
10511 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10512 wxString *arg6 = (wxString *) &arg6_defvalue ;
10513 wxSpinButton *result;
10514 wxPoint temp3 ;
10515 wxSize temp4 ;
10516 bool temp6 = False ;
10517 PyObject * obj0 = 0 ;
10518 PyObject * obj1 = 0 ;
10519 PyObject * obj2 = 0 ;
10520 PyObject * obj3 = 0 ;
10521 PyObject * obj4 = 0 ;
10522 PyObject * obj5 = 0 ;
10523 char *kwnames[] = {
10524 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10525 };
10526
10527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10530 if (obj1) {
10531 arg2 = (int) SWIG_AsInt(obj1);
10532 if (PyErr_Occurred()) SWIG_fail;
10533 }
10534 if (obj2) {
10535 {
10536 arg3 = &temp3;
10537 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10538 }
10539 }
10540 if (obj3) {
10541 {
10542 arg4 = &temp4;
10543 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10544 }
10545 }
10546 if (obj4) {
10547 arg5 = (long) SWIG_AsLong(obj4);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 if (obj5) {
10551 {
10552 arg6 = wxString_in_helper(obj5);
10553 if (arg6 == NULL) SWIG_fail;
10554 temp6 = True;
10555 }
10556 }
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10560
10561 wxPyEndAllowThreads(__tstate);
10562 if (PyErr_Occurred()) SWIG_fail;
10563 }
10564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10565 {
10566 if (temp6)
10567 delete arg6;
10568 }
10569 return resultobj;
10570 fail:
10571 {
10572 if (temp6)
10573 delete arg6;
10574 }
10575 return NULL;
10576 }
10577
10578
10579 static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10580 PyObject *resultobj;
10581 wxSpinButton *result;
10582 char *kwnames[] = {
10583 NULL
10584 };
10585
10586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10587 {
10588 PyThreadState* __tstate = wxPyBeginAllowThreads();
10589 result = (wxSpinButton *)new wxSpinButton();
10590
10591 wxPyEndAllowThreads(__tstate);
10592 if (PyErr_Occurred()) SWIG_fail;
10593 }
10594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10595 return resultobj;
10596 fail:
10597 return NULL;
10598 }
10599
10600
10601 static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10602 PyObject *resultobj;
10603 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10604 wxWindow *arg2 = (wxWindow *) 0 ;
10605 int arg3 = (int) -1 ;
10606 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10607 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10608 wxSize const &arg5_defvalue = wxDefaultSize ;
10609 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10610 long arg6 = (long) wxSP_HORIZONTAL ;
10611 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10612 wxString *arg7 = (wxString *) &arg7_defvalue ;
10613 bool result;
10614 wxPoint temp4 ;
10615 wxSize temp5 ;
10616 bool temp7 = False ;
10617 PyObject * obj0 = 0 ;
10618 PyObject * obj1 = 0 ;
10619 PyObject * obj2 = 0 ;
10620 PyObject * obj3 = 0 ;
10621 PyObject * obj4 = 0 ;
10622 PyObject * obj5 = 0 ;
10623 PyObject * obj6 = 0 ;
10624 char *kwnames[] = {
10625 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10626 };
10627
10628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10633 if (obj2) {
10634 arg3 = (int) SWIG_AsInt(obj2);
10635 if (PyErr_Occurred()) SWIG_fail;
10636 }
10637 if (obj3) {
10638 {
10639 arg4 = &temp4;
10640 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10641 }
10642 }
10643 if (obj4) {
10644 {
10645 arg5 = &temp5;
10646 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10647 }
10648 }
10649 if (obj5) {
10650 arg6 = (long) SWIG_AsLong(obj5);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 }
10653 if (obj6) {
10654 {
10655 arg7 = wxString_in_helper(obj6);
10656 if (arg7 == NULL) SWIG_fail;
10657 temp7 = True;
10658 }
10659 }
10660 {
10661 PyThreadState* __tstate = wxPyBeginAllowThreads();
10662 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10663
10664 wxPyEndAllowThreads(__tstate);
10665 if (PyErr_Occurred()) SWIG_fail;
10666 }
10667 {
10668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10669 }
10670 {
10671 if (temp7)
10672 delete arg7;
10673 }
10674 return resultobj;
10675 fail:
10676 {
10677 if (temp7)
10678 delete arg7;
10679 }
10680 return NULL;
10681 }
10682
10683
10684 static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10685 PyObject *resultobj;
10686 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10687 int result;
10688 PyObject * obj0 = 0 ;
10689 char *kwnames[] = {
10690 (char *) "self", NULL
10691 };
10692
10693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10696 {
10697 PyThreadState* __tstate = wxPyBeginAllowThreads();
10698 result = (int)((wxSpinButton const *)arg1)->GetValue();
10699
10700 wxPyEndAllowThreads(__tstate);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 }
10703 resultobj = SWIG_FromInt((int)result);
10704 return resultobj;
10705 fail:
10706 return NULL;
10707 }
10708
10709
10710 static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10711 PyObject *resultobj;
10712 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10713 int result;
10714 PyObject * obj0 = 0 ;
10715 char *kwnames[] = {
10716 (char *) "self", NULL
10717 };
10718
10719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10722 {
10723 PyThreadState* __tstate = wxPyBeginAllowThreads();
10724 result = (int)((wxSpinButton const *)arg1)->GetMin();
10725
10726 wxPyEndAllowThreads(__tstate);
10727 if (PyErr_Occurred()) SWIG_fail;
10728 }
10729 resultobj = SWIG_FromInt((int)result);
10730 return resultobj;
10731 fail:
10732 return NULL;
10733 }
10734
10735
10736 static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10737 PyObject *resultobj;
10738 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10739 int result;
10740 PyObject * obj0 = 0 ;
10741 char *kwnames[] = {
10742 (char *) "self", NULL
10743 };
10744
10745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10748 {
10749 PyThreadState* __tstate = wxPyBeginAllowThreads();
10750 result = (int)((wxSpinButton const *)arg1)->GetMax();
10751
10752 wxPyEndAllowThreads(__tstate);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 }
10755 resultobj = SWIG_FromInt((int)result);
10756 return resultobj;
10757 fail:
10758 return NULL;
10759 }
10760
10761
10762 static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10763 PyObject *resultobj;
10764 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10765 int arg2 ;
10766 PyObject * obj0 = 0 ;
10767 PyObject * obj1 = 0 ;
10768 char *kwnames[] = {
10769 (char *) "self",(char *) "val", NULL
10770 };
10771
10772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10775 arg2 = (int) SWIG_AsInt(obj1);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 {
10778 PyThreadState* __tstate = wxPyBeginAllowThreads();
10779 (arg1)->SetValue(arg2);
10780
10781 wxPyEndAllowThreads(__tstate);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 }
10784 Py_INCREF(Py_None); resultobj = Py_None;
10785 return resultobj;
10786 fail:
10787 return NULL;
10788 }
10789
10790
10791 static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj;
10793 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10794 int arg2 ;
10795 PyObject * obj0 = 0 ;
10796 PyObject * obj1 = 0 ;
10797 char *kwnames[] = {
10798 (char *) "self",(char *) "minVal", NULL
10799 };
10800
10801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10804 arg2 = (int) SWIG_AsInt(obj1);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 {
10807 PyThreadState* __tstate = wxPyBeginAllowThreads();
10808 (arg1)->SetMin(arg2);
10809
10810 wxPyEndAllowThreads(__tstate);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 }
10813 Py_INCREF(Py_None); resultobj = Py_None;
10814 return resultobj;
10815 fail:
10816 return NULL;
10817 }
10818
10819
10820 static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10821 PyObject *resultobj;
10822 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10823 int arg2 ;
10824 PyObject * obj0 = 0 ;
10825 PyObject * obj1 = 0 ;
10826 char *kwnames[] = {
10827 (char *) "self",(char *) "maxVal", NULL
10828 };
10829
10830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10833 arg2 = (int) SWIG_AsInt(obj1);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 {
10836 PyThreadState* __tstate = wxPyBeginAllowThreads();
10837 (arg1)->SetMax(arg2);
10838
10839 wxPyEndAllowThreads(__tstate);
10840 if (PyErr_Occurred()) SWIG_fail;
10841 }
10842 Py_INCREF(Py_None); resultobj = Py_None;
10843 return resultobj;
10844 fail:
10845 return NULL;
10846 }
10847
10848
10849 static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10850 PyObject *resultobj;
10851 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10852 int arg2 ;
10853 int arg3 ;
10854 PyObject * obj0 = 0 ;
10855 PyObject * obj1 = 0 ;
10856 PyObject * obj2 = 0 ;
10857 char *kwnames[] = {
10858 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10859 };
10860
10861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10864 arg2 = (int) SWIG_AsInt(obj1);
10865 if (PyErr_Occurred()) SWIG_fail;
10866 arg3 = (int) SWIG_AsInt(obj2);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 {
10869 PyThreadState* __tstate = wxPyBeginAllowThreads();
10870 (arg1)->SetRange(arg2,arg3);
10871
10872 wxPyEndAllowThreads(__tstate);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 }
10875 Py_INCREF(Py_None); resultobj = Py_None;
10876 return resultobj;
10877 fail:
10878 return NULL;
10879 }
10880
10881
10882 static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10883 PyObject *resultobj;
10884 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10885 bool result;
10886 PyObject * obj0 = 0 ;
10887 char *kwnames[] = {
10888 (char *) "self", NULL
10889 };
10890
10891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10894 {
10895 PyThreadState* __tstate = wxPyBeginAllowThreads();
10896 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10897
10898 wxPyEndAllowThreads(__tstate);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 }
10901 {
10902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10903 }
10904 return resultobj;
10905 fail:
10906 return NULL;
10907 }
10908
10909
10910 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10911 PyObject *resultobj;
10912 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10913 wxVisualAttributes result;
10914 PyObject * obj0 = 0 ;
10915 char *kwnames[] = {
10916 (char *) "variant", NULL
10917 };
10918
10919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10920 if (obj0) {
10921 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10922 if (PyErr_Occurred()) SWIG_fail;
10923 }
10924 {
10925 PyThreadState* __tstate = wxPyBeginAllowThreads();
10926 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
10927
10928 wxPyEndAllowThreads(__tstate);
10929 if (PyErr_Occurred()) SWIG_fail;
10930 }
10931 {
10932 wxVisualAttributes * resultptr;
10933 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10934 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10935 }
10936 return resultobj;
10937 fail:
10938 return NULL;
10939 }
10940
10941
10942 static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10943 PyObject *obj;
10944 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10945 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10946 Py_INCREF(obj);
10947 return Py_BuildValue((char *)"");
10948 }
10949 static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10950 PyObject *resultobj;
10951 wxWindow *arg1 = (wxWindow *) 0 ;
10952 int arg2 = (int) -1 ;
10953 wxString const &arg3_defvalue = wxPyEmptyString ;
10954 wxString *arg3 = (wxString *) &arg3_defvalue ;
10955 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10956 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10957 wxSize const &arg5_defvalue = wxDefaultSize ;
10958 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10959 long arg6 = (long) wxSP_ARROW_KEYS ;
10960 int arg7 = (int) 0 ;
10961 int arg8 = (int) 100 ;
10962 int arg9 = (int) 0 ;
10963 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10964 wxString *arg10 = (wxString *) &arg10_defvalue ;
10965 wxSpinCtrl *result;
10966 bool temp3 = False ;
10967 wxPoint temp4 ;
10968 wxSize temp5 ;
10969 bool temp10 = False ;
10970 PyObject * obj0 = 0 ;
10971 PyObject * obj1 = 0 ;
10972 PyObject * obj2 = 0 ;
10973 PyObject * obj3 = 0 ;
10974 PyObject * obj4 = 0 ;
10975 PyObject * obj5 = 0 ;
10976 PyObject * obj6 = 0 ;
10977 PyObject * obj7 = 0 ;
10978 PyObject * obj8 = 0 ;
10979 PyObject * obj9 = 0 ;
10980 char *kwnames[] = {
10981 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10982 };
10983
10984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10987 if (obj1) {
10988 arg2 = (int) SWIG_AsInt(obj1);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 if (obj2) {
10992 {
10993 arg3 = wxString_in_helper(obj2);
10994 if (arg3 == NULL) SWIG_fail;
10995 temp3 = True;
10996 }
10997 }
10998 if (obj3) {
10999 {
11000 arg4 = &temp4;
11001 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11002 }
11003 }
11004 if (obj4) {
11005 {
11006 arg5 = &temp5;
11007 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11008 }
11009 }
11010 if (obj5) {
11011 arg6 = (long) SWIG_AsLong(obj5);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 if (obj6) {
11015 arg7 = (int) SWIG_AsInt(obj6);
11016 if (PyErr_Occurred()) SWIG_fail;
11017 }
11018 if (obj7) {
11019 arg8 = (int) SWIG_AsInt(obj7);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 if (obj8) {
11023 arg9 = (int) SWIG_AsInt(obj8);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 }
11026 if (obj9) {
11027 {
11028 arg10 = wxString_in_helper(obj9);
11029 if (arg10 == NULL) SWIG_fail;
11030 temp10 = True;
11031 }
11032 }
11033 {
11034 PyThreadState* __tstate = wxPyBeginAllowThreads();
11035 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11036
11037 wxPyEndAllowThreads(__tstate);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11041 {
11042 if (temp3)
11043 delete arg3;
11044 }
11045 {
11046 if (temp10)
11047 delete arg10;
11048 }
11049 return resultobj;
11050 fail:
11051 {
11052 if (temp3)
11053 delete arg3;
11054 }
11055 {
11056 if (temp10)
11057 delete arg10;
11058 }
11059 return NULL;
11060 }
11061
11062
11063 static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
11064 PyObject *resultobj;
11065 wxSpinCtrl *result;
11066 char *kwnames[] = {
11067 NULL
11068 };
11069
11070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 result = (wxSpinCtrl *)new wxSpinCtrl();
11074
11075 wxPyEndAllowThreads(__tstate);
11076 if (PyErr_Occurred()) SWIG_fail;
11077 }
11078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11079 return resultobj;
11080 fail:
11081 return NULL;
11082 }
11083
11084
11085 static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11086 PyObject *resultobj;
11087 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11088 wxWindow *arg2 = (wxWindow *) 0 ;
11089 int arg3 = (int) -1 ;
11090 wxString const &arg4_defvalue = wxPyEmptyString ;
11091 wxString *arg4 = (wxString *) &arg4_defvalue ;
11092 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11093 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11094 wxSize const &arg6_defvalue = wxDefaultSize ;
11095 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11096 long arg7 = (long) wxSP_ARROW_KEYS ;
11097 int arg8 = (int) 0 ;
11098 int arg9 = (int) 100 ;
11099 int arg10 = (int) 0 ;
11100 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11101 wxString *arg11 = (wxString *) &arg11_defvalue ;
11102 bool result;
11103 bool temp4 = False ;
11104 wxPoint temp5 ;
11105 wxSize temp6 ;
11106 bool temp11 = False ;
11107 PyObject * obj0 = 0 ;
11108 PyObject * obj1 = 0 ;
11109 PyObject * obj2 = 0 ;
11110 PyObject * obj3 = 0 ;
11111 PyObject * obj4 = 0 ;
11112 PyObject * obj5 = 0 ;
11113 PyObject * obj6 = 0 ;
11114 PyObject * obj7 = 0 ;
11115 PyObject * obj8 = 0 ;
11116 PyObject * obj9 = 0 ;
11117 PyObject * obj10 = 0 ;
11118 char *kwnames[] = {
11119 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11120 };
11121
11122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11125 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11127 if (obj2) {
11128 arg3 = (int) SWIG_AsInt(obj2);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 }
11131 if (obj3) {
11132 {
11133 arg4 = wxString_in_helper(obj3);
11134 if (arg4 == NULL) SWIG_fail;
11135 temp4 = True;
11136 }
11137 }
11138 if (obj4) {
11139 {
11140 arg5 = &temp5;
11141 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11142 }
11143 }
11144 if (obj5) {
11145 {
11146 arg6 = &temp6;
11147 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11148 }
11149 }
11150 if (obj6) {
11151 arg7 = (long) SWIG_AsLong(obj6);
11152 if (PyErr_Occurred()) SWIG_fail;
11153 }
11154 if (obj7) {
11155 arg8 = (int) SWIG_AsInt(obj7);
11156 if (PyErr_Occurred()) SWIG_fail;
11157 }
11158 if (obj8) {
11159 arg9 = (int) SWIG_AsInt(obj8);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 }
11162 if (obj9) {
11163 arg10 = (int) SWIG_AsInt(obj9);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 if (obj10) {
11167 {
11168 arg11 = wxString_in_helper(obj10);
11169 if (arg11 == NULL) SWIG_fail;
11170 temp11 = True;
11171 }
11172 }
11173 {
11174 PyThreadState* __tstate = wxPyBeginAllowThreads();
11175 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11176
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 {
11181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11182 }
11183 {
11184 if (temp4)
11185 delete arg4;
11186 }
11187 {
11188 if (temp11)
11189 delete arg11;
11190 }
11191 return resultobj;
11192 fail:
11193 {
11194 if (temp4)
11195 delete arg4;
11196 }
11197 {
11198 if (temp11)
11199 delete arg11;
11200 }
11201 return NULL;
11202 }
11203
11204
11205 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11206 PyObject *resultobj;
11207 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11208 int result;
11209 PyObject * obj0 = 0 ;
11210 char *kwnames[] = {
11211 (char *) "self", NULL
11212 };
11213
11214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11217 {
11218 PyThreadState* __tstate = wxPyBeginAllowThreads();
11219 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11220
11221 wxPyEndAllowThreads(__tstate);
11222 if (PyErr_Occurred()) SWIG_fail;
11223 }
11224 resultobj = SWIG_FromInt((int)result);
11225 return resultobj;
11226 fail:
11227 return NULL;
11228 }
11229
11230
11231 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11232 PyObject *resultobj;
11233 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11234 int arg2 ;
11235 PyObject * obj0 = 0 ;
11236 PyObject * obj1 = 0 ;
11237 char *kwnames[] = {
11238 (char *) "self",(char *) "value", NULL
11239 };
11240
11241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11244 arg2 = (int) SWIG_AsInt(obj1);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 (arg1)->SetValue(arg2);
11249
11250 wxPyEndAllowThreads(__tstate);
11251 if (PyErr_Occurred()) SWIG_fail;
11252 }
11253 Py_INCREF(Py_None); resultobj = Py_None;
11254 return resultobj;
11255 fail:
11256 return NULL;
11257 }
11258
11259
11260 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
11261 PyObject *resultobj;
11262 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11263 wxString *arg2 = 0 ;
11264 bool temp2 = False ;
11265 PyObject * obj0 = 0 ;
11266 PyObject * obj1 = 0 ;
11267 char *kwnames[] = {
11268 (char *) "self",(char *) "text", NULL
11269 };
11270
11271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11274 {
11275 arg2 = wxString_in_helper(obj1);
11276 if (arg2 == NULL) SWIG_fail;
11277 temp2 = True;
11278 }
11279 {
11280 PyThreadState* __tstate = wxPyBeginAllowThreads();
11281 (arg1)->SetValue((wxString const &)*arg2);
11282
11283 wxPyEndAllowThreads(__tstate);
11284 if (PyErr_Occurred()) SWIG_fail;
11285 }
11286 Py_INCREF(Py_None); resultobj = Py_None;
11287 {
11288 if (temp2)
11289 delete arg2;
11290 }
11291 return resultobj;
11292 fail:
11293 {
11294 if (temp2)
11295 delete arg2;
11296 }
11297 return NULL;
11298 }
11299
11300
11301 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
11302 PyObject *resultobj;
11303 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11304 int arg2 ;
11305 int arg3 ;
11306 PyObject * obj0 = 0 ;
11307 PyObject * obj1 = 0 ;
11308 PyObject * obj2 = 0 ;
11309 char *kwnames[] = {
11310 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11311 };
11312
11313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11316 arg2 = (int) SWIG_AsInt(obj1);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 arg3 = (int) SWIG_AsInt(obj2);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 {
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 (arg1)->SetRange(arg2,arg3);
11323
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 Py_INCREF(Py_None); resultobj = Py_None;
11328 return resultobj;
11329 fail:
11330 return NULL;
11331 }
11332
11333
11334 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
11335 PyObject *resultobj;
11336 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11337 int result;
11338 PyObject * obj0 = 0 ;
11339 char *kwnames[] = {
11340 (char *) "self", NULL
11341 };
11342
11343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11346 {
11347 PyThreadState* __tstate = wxPyBeginAllowThreads();
11348 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11349
11350 wxPyEndAllowThreads(__tstate);
11351 if (PyErr_Occurred()) SWIG_fail;
11352 }
11353 resultobj = SWIG_FromInt((int)result);
11354 return resultobj;
11355 fail:
11356 return NULL;
11357 }
11358
11359
11360 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
11361 PyObject *resultobj;
11362 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11363 int result;
11364 PyObject * obj0 = 0 ;
11365 char *kwnames[] = {
11366 (char *) "self", NULL
11367 };
11368
11369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11372 {
11373 PyThreadState* __tstate = wxPyBeginAllowThreads();
11374 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11375
11376 wxPyEndAllowThreads(__tstate);
11377 if (PyErr_Occurred()) SWIG_fail;
11378 }
11379 resultobj = SWIG_FromInt((int)result);
11380 return resultobj;
11381 fail:
11382 return NULL;
11383 }
11384
11385
11386 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11387 PyObject *resultobj;
11388 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11389 long arg2 ;
11390 long arg3 ;
11391 PyObject * obj0 = 0 ;
11392 PyObject * obj1 = 0 ;
11393 PyObject * obj2 = 0 ;
11394 char *kwnames[] = {
11395 (char *) "self",(char *) "from",(char *) "to", NULL
11396 };
11397
11398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11401 arg2 = (long) SWIG_AsLong(obj1);
11402 if (PyErr_Occurred()) SWIG_fail;
11403 arg3 = (long) SWIG_AsLong(obj2);
11404 if (PyErr_Occurred()) SWIG_fail;
11405 {
11406 PyThreadState* __tstate = wxPyBeginAllowThreads();
11407 (arg1)->SetSelection(arg2,arg3);
11408
11409 wxPyEndAllowThreads(__tstate);
11410 if (PyErr_Occurred()) SWIG_fail;
11411 }
11412 Py_INCREF(Py_None); resultobj = Py_None;
11413 return resultobj;
11414 fail:
11415 return NULL;
11416 }
11417
11418
11419 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
11420 PyObject *resultobj;
11421 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11422 wxVisualAttributes result;
11423 PyObject * obj0 = 0 ;
11424 char *kwnames[] = {
11425 (char *) "variant", NULL
11426 };
11427
11428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11429 if (obj0) {
11430 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 }
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11436
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 {
11441 wxVisualAttributes * resultptr;
11442 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11443 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11444 }
11445 return resultobj;
11446 fail:
11447 return NULL;
11448 }
11449
11450
11451 static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
11452 PyObject *obj;
11453 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11454 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11455 Py_INCREF(obj);
11456 return Py_BuildValue((char *)"");
11457 }
11458 static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11459 PyObject *resultobj;
11460 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11461 int arg2 = (int) 0 ;
11462 wxSpinEvent *result;
11463 PyObject * obj0 = 0 ;
11464 PyObject * obj1 = 0 ;
11465 char *kwnames[] = {
11466 (char *) "commandType",(char *) "winid", NULL
11467 };
11468
11469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11470 if (obj0) {
11471 arg1 = (wxEventType) SWIG_AsInt(obj0);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 if (obj1) {
11475 arg2 = (int) SWIG_AsInt(obj1);
11476 if (PyErr_Occurred()) SWIG_fail;
11477 }
11478 {
11479 PyThreadState* __tstate = wxPyBeginAllowThreads();
11480 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11481
11482 wxPyEndAllowThreads(__tstate);
11483 if (PyErr_Occurred()) SWIG_fail;
11484 }
11485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11486 return resultobj;
11487 fail:
11488 return NULL;
11489 }
11490
11491
11492 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11493 PyObject *resultobj;
11494 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11495 int result;
11496 PyObject * obj0 = 0 ;
11497 char *kwnames[] = {
11498 (char *) "self", NULL
11499 };
11500
11501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11504 {
11505 PyThreadState* __tstate = wxPyBeginAllowThreads();
11506 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11507
11508 wxPyEndAllowThreads(__tstate);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 resultobj = SWIG_FromInt((int)result);
11512 return resultobj;
11513 fail:
11514 return NULL;
11515 }
11516
11517
11518 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11519 PyObject *resultobj;
11520 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11521 int arg2 ;
11522 PyObject * obj0 = 0 ;
11523 PyObject * obj1 = 0 ;
11524 char *kwnames[] = {
11525 (char *) "self",(char *) "pos", NULL
11526 };
11527
11528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11531 arg2 = (int) SWIG_AsInt(obj1);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 {
11534 PyThreadState* __tstate = wxPyBeginAllowThreads();
11535 (arg1)->SetPosition(arg2);
11536
11537 wxPyEndAllowThreads(__tstate);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 }
11540 Py_INCREF(Py_None); resultobj = Py_None;
11541 return resultobj;
11542 fail:
11543 return NULL;
11544 }
11545
11546
11547 static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
11548 PyObject *obj;
11549 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11550 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11551 Py_INCREF(obj);
11552 return Py_BuildValue((char *)"");
11553 }
11554 static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
11555 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11556 return 1;
11557 }
11558
11559
11560 static PyObject *_wrap_RadioBoxNameStr_get() {
11561 PyObject *pyobj;
11562
11563 {
11564 #if wxUSE_UNICODE
11565 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11566 #else
11567 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11568 #endif
11569 }
11570 return pyobj;
11571 }
11572
11573
11574 static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
11575 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11576 return 1;
11577 }
11578
11579
11580 static PyObject *_wrap_RadioButtonNameStr_get() {
11581 PyObject *pyobj;
11582
11583 {
11584 #if wxUSE_UNICODE
11585 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11586 #else
11587 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11588 #endif
11589 }
11590 return pyobj;
11591 }
11592
11593
11594 static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11595 PyObject *resultobj;
11596 wxWindow *arg1 = (wxWindow *) 0 ;
11597 int arg2 ;
11598 wxString *arg3 = 0 ;
11599 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11600 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11601 wxSize const &arg5_defvalue = wxDefaultSize ;
11602 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11603 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11604 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11605 int arg7 = (int) 0 ;
11606 long arg8 = (long) wxRA_HORIZONTAL ;
11607 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11608 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11609 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11610 wxString *arg10 = (wxString *) &arg10_defvalue ;
11611 wxRadioBox *result;
11612 bool temp3 = False ;
11613 wxPoint temp4 ;
11614 wxSize temp5 ;
11615 bool temp6 = False ;
11616 bool temp10 = False ;
11617 PyObject * obj0 = 0 ;
11618 PyObject * obj1 = 0 ;
11619 PyObject * obj2 = 0 ;
11620 PyObject * obj3 = 0 ;
11621 PyObject * obj4 = 0 ;
11622 PyObject * obj5 = 0 ;
11623 PyObject * obj6 = 0 ;
11624 PyObject * obj7 = 0 ;
11625 PyObject * obj8 = 0 ;
11626 PyObject * obj9 = 0 ;
11627 char *kwnames[] = {
11628 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11629 };
11630
11631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11634 arg2 = (int) SWIG_AsInt(obj1);
11635 if (PyErr_Occurred()) SWIG_fail;
11636 {
11637 arg3 = wxString_in_helper(obj2);
11638 if (arg3 == NULL) SWIG_fail;
11639 temp3 = True;
11640 }
11641 if (obj3) {
11642 {
11643 arg4 = &temp4;
11644 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11645 }
11646 }
11647 if (obj4) {
11648 {
11649 arg5 = &temp5;
11650 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11651 }
11652 }
11653 if (obj5) {
11654 {
11655 if (! PySequence_Check(obj5)) {
11656 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11657 SWIG_fail;
11658 }
11659 arg6 = new wxArrayString;
11660 temp6 = True;
11661 int i, len=PySequence_Length(obj5);
11662 for (i=0; i<len; i++) {
11663 PyObject* item = PySequence_GetItem(obj5, i);
11664 #if wxUSE_UNICODE
11665 PyObject* str = PyObject_Unicode(item);
11666 #else
11667 PyObject* str = PyObject_Str(item);
11668 #endif
11669 if (PyErr_Occurred()) SWIG_fail;
11670 arg6->Add(Py2wxString(str));
11671 Py_DECREF(item);
11672 Py_DECREF(str);
11673 }
11674 }
11675 }
11676 if (obj6) {
11677 arg7 = (int) SWIG_AsInt(obj6);
11678 if (PyErr_Occurred()) SWIG_fail;
11679 }
11680 if (obj7) {
11681 arg8 = (long) SWIG_AsLong(obj7);
11682 if (PyErr_Occurred()) SWIG_fail;
11683 }
11684 if (obj8) {
11685 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11686 SWIG_POINTER_EXCEPTION | 0)) == -1)
11687 SWIG_fail;
11688 if (arg9 == NULL) {
11689 PyErr_SetString(PyExc_TypeError,"null reference");
11690 SWIG_fail;
11691 }
11692 }
11693 if (obj9) {
11694 {
11695 arg10 = wxString_in_helper(obj9);
11696 if (arg10 == NULL) SWIG_fail;
11697 temp10 = True;
11698 }
11699 }
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 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);
11703
11704 wxPyEndAllowThreads(__tstate);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 }
11707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11708 {
11709 if (temp3)
11710 delete arg3;
11711 }
11712 {
11713 if (temp6) delete arg6;
11714 }
11715 {
11716 if (temp10)
11717 delete arg10;
11718 }
11719 return resultobj;
11720 fail:
11721 {
11722 if (temp3)
11723 delete arg3;
11724 }
11725 {
11726 if (temp6) delete arg6;
11727 }
11728 {
11729 if (temp10)
11730 delete arg10;
11731 }
11732 return NULL;
11733 }
11734
11735
11736 static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11737 PyObject *resultobj;
11738 wxRadioBox *result;
11739 char *kwnames[] = {
11740 NULL
11741 };
11742
11743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11744 {
11745 PyThreadState* __tstate = wxPyBeginAllowThreads();
11746 result = (wxRadioBox *)new wxRadioBox();
11747
11748 wxPyEndAllowThreads(__tstate);
11749 if (PyErr_Occurred()) SWIG_fail;
11750 }
11751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11752 return resultobj;
11753 fail:
11754 return NULL;
11755 }
11756
11757
11758 static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11759 PyObject *resultobj;
11760 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11761 wxWindow *arg2 = (wxWindow *) 0 ;
11762 int arg3 ;
11763 wxString *arg4 = 0 ;
11764 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11765 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11766 wxSize const &arg6_defvalue = wxDefaultSize ;
11767 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11768 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11769 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11770 int arg8 = (int) 0 ;
11771 long arg9 = (long) wxRA_HORIZONTAL ;
11772 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11773 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11774 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11775 wxString *arg11 = (wxString *) &arg11_defvalue ;
11776 bool result;
11777 bool temp4 = False ;
11778 wxPoint temp5 ;
11779 wxSize temp6 ;
11780 bool temp7 = False ;
11781 bool temp11 = False ;
11782 PyObject * obj0 = 0 ;
11783 PyObject * obj1 = 0 ;
11784 PyObject * obj2 = 0 ;
11785 PyObject * obj3 = 0 ;
11786 PyObject * obj4 = 0 ;
11787 PyObject * obj5 = 0 ;
11788 PyObject * obj6 = 0 ;
11789 PyObject * obj7 = 0 ;
11790 PyObject * obj8 = 0 ;
11791 PyObject * obj9 = 0 ;
11792 PyObject * obj10 = 0 ;
11793 char *kwnames[] = {
11794 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11795 };
11796
11797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11802 arg3 = (int) SWIG_AsInt(obj2);
11803 if (PyErr_Occurred()) SWIG_fail;
11804 {
11805 arg4 = wxString_in_helper(obj3);
11806 if (arg4 == NULL) SWIG_fail;
11807 temp4 = True;
11808 }
11809 if (obj4) {
11810 {
11811 arg5 = &temp5;
11812 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11813 }
11814 }
11815 if (obj5) {
11816 {
11817 arg6 = &temp6;
11818 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11819 }
11820 }
11821 if (obj6) {
11822 {
11823 if (! PySequence_Check(obj6)) {
11824 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11825 SWIG_fail;
11826 }
11827 arg7 = new wxArrayString;
11828 temp7 = True;
11829 int i, len=PySequence_Length(obj6);
11830 for (i=0; i<len; i++) {
11831 PyObject* item = PySequence_GetItem(obj6, i);
11832 #if wxUSE_UNICODE
11833 PyObject* str = PyObject_Unicode(item);
11834 #else
11835 PyObject* str = PyObject_Str(item);
11836 #endif
11837 if (PyErr_Occurred()) SWIG_fail;
11838 arg7->Add(Py2wxString(str));
11839 Py_DECREF(item);
11840 Py_DECREF(str);
11841 }
11842 }
11843 }
11844 if (obj7) {
11845 arg8 = (int) SWIG_AsInt(obj7);
11846 if (PyErr_Occurred()) SWIG_fail;
11847 }
11848 if (obj8) {
11849 arg9 = (long) SWIG_AsLong(obj8);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 if (obj9) {
11853 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11854 SWIG_POINTER_EXCEPTION | 0)) == -1)
11855 SWIG_fail;
11856 if (arg10 == NULL) {
11857 PyErr_SetString(PyExc_TypeError,"null reference");
11858 SWIG_fail;
11859 }
11860 }
11861 if (obj10) {
11862 {
11863 arg11 = wxString_in_helper(obj10);
11864 if (arg11 == NULL) SWIG_fail;
11865 temp11 = True;
11866 }
11867 }
11868 {
11869 PyThreadState* __tstate = wxPyBeginAllowThreads();
11870 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);
11871
11872 wxPyEndAllowThreads(__tstate);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 {
11876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11877 }
11878 {
11879 if (temp4)
11880 delete arg4;
11881 }
11882 {
11883 if (temp7) delete arg7;
11884 }
11885 {
11886 if (temp11)
11887 delete arg11;
11888 }
11889 return resultobj;
11890 fail:
11891 {
11892 if (temp4)
11893 delete arg4;
11894 }
11895 {
11896 if (temp7) delete arg7;
11897 }
11898 {
11899 if (temp11)
11900 delete arg11;
11901 }
11902 return NULL;
11903 }
11904
11905
11906 static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11907 PyObject *resultobj;
11908 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11909 int arg2 ;
11910 PyObject * obj0 = 0 ;
11911 PyObject * obj1 = 0 ;
11912 char *kwnames[] = {
11913 (char *) "self",(char *) "n", NULL
11914 };
11915
11916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11919 arg2 = (int) SWIG_AsInt(obj1);
11920 if (PyErr_Occurred()) SWIG_fail;
11921 {
11922 PyThreadState* __tstate = wxPyBeginAllowThreads();
11923 (arg1)->SetSelection(arg2);
11924
11925 wxPyEndAllowThreads(__tstate);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 Py_INCREF(Py_None); resultobj = Py_None;
11929 return resultobj;
11930 fail:
11931 return NULL;
11932 }
11933
11934
11935 static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11936 PyObject *resultobj;
11937 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11938 int result;
11939 PyObject * obj0 = 0 ;
11940 char *kwnames[] = {
11941 (char *) "self", NULL
11942 };
11943
11944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11947 {
11948 PyThreadState* __tstate = wxPyBeginAllowThreads();
11949 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11950
11951 wxPyEndAllowThreads(__tstate);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 }
11954 resultobj = SWIG_FromInt((int)result);
11955 return resultobj;
11956 fail:
11957 return NULL;
11958 }
11959
11960
11961 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11962 PyObject *resultobj;
11963 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11964 wxString result;
11965 PyObject * obj0 = 0 ;
11966 char *kwnames[] = {
11967 (char *) "self", NULL
11968 };
11969
11970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11973 {
11974 PyThreadState* __tstate = wxPyBeginAllowThreads();
11975 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11976
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 {
11981 #if wxUSE_UNICODE
11982 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11983 #else
11984 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11985 #endif
11986 }
11987 return resultobj;
11988 fail:
11989 return NULL;
11990 }
11991
11992
11993 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11994 PyObject *resultobj;
11995 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11996 wxString *arg2 = 0 ;
11997 bool result;
11998 bool temp2 = False ;
11999 PyObject * obj0 = 0 ;
12000 PyObject * obj1 = 0 ;
12001 char *kwnames[] = {
12002 (char *) "self",(char *) "s", NULL
12003 };
12004
12005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12008 {
12009 arg2 = wxString_in_helper(obj1);
12010 if (arg2 == NULL) SWIG_fail;
12011 temp2 = True;
12012 }
12013 {
12014 PyThreadState* __tstate = wxPyBeginAllowThreads();
12015 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12016
12017 wxPyEndAllowThreads(__tstate);
12018 if (PyErr_Occurred()) SWIG_fail;
12019 }
12020 {
12021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12022 }
12023 {
12024 if (temp2)
12025 delete arg2;
12026 }
12027 return resultobj;
12028 fail:
12029 {
12030 if (temp2)
12031 delete arg2;
12032 }
12033 return NULL;
12034 }
12035
12036
12037 static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12038 PyObject *resultobj;
12039 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12040 int result;
12041 PyObject * obj0 = 0 ;
12042 char *kwnames[] = {
12043 (char *) "self", NULL
12044 };
12045
12046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12049 {
12050 PyThreadState* __tstate = wxPyBeginAllowThreads();
12051 result = (int)((wxRadioBox const *)arg1)->GetCount();
12052
12053 wxPyEndAllowThreads(__tstate);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 resultobj = SWIG_FromInt((int)result);
12057 return resultobj;
12058 fail:
12059 return NULL;
12060 }
12061
12062
12063 static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
12064 PyObject *resultobj;
12065 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12066 wxString *arg2 = 0 ;
12067 int result;
12068 bool temp2 = False ;
12069 PyObject * obj0 = 0 ;
12070 PyObject * obj1 = 0 ;
12071 char *kwnames[] = {
12072 (char *) "self",(char *) "s", NULL
12073 };
12074
12075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12078 {
12079 arg2 = wxString_in_helper(obj1);
12080 if (arg2 == NULL) SWIG_fail;
12081 temp2 = True;
12082 }
12083 {
12084 PyThreadState* __tstate = wxPyBeginAllowThreads();
12085 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12086
12087 wxPyEndAllowThreads(__tstate);
12088 if (PyErr_Occurred()) SWIG_fail;
12089 }
12090 resultobj = SWIG_FromInt((int)result);
12091 {
12092 if (temp2)
12093 delete arg2;
12094 }
12095 return resultobj;
12096 fail:
12097 {
12098 if (temp2)
12099 delete arg2;
12100 }
12101 return NULL;
12102 }
12103
12104
12105 static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12106 PyObject *resultobj;
12107 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12108 int arg2 ;
12109 wxString result;
12110 PyObject * obj0 = 0 ;
12111 PyObject * obj1 = 0 ;
12112 char *kwnames[] = {
12113 (char *) "self",(char *) "n", NULL
12114 };
12115
12116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12119 arg2 = (int) SWIG_AsInt(obj1);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 {
12122 PyThreadState* __tstate = wxPyBeginAllowThreads();
12123 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12124
12125 wxPyEndAllowThreads(__tstate);
12126 if (PyErr_Occurred()) SWIG_fail;
12127 }
12128 {
12129 #if wxUSE_UNICODE
12130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12131 #else
12132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12133 #endif
12134 }
12135 return resultobj;
12136 fail:
12137 return NULL;
12138 }
12139
12140
12141 static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12142 PyObject *resultobj;
12143 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12144 int arg2 ;
12145 wxString *arg3 = 0 ;
12146 bool temp3 = False ;
12147 PyObject * obj0 = 0 ;
12148 PyObject * obj1 = 0 ;
12149 PyObject * obj2 = 0 ;
12150 char *kwnames[] = {
12151 (char *) "self",(char *) "n",(char *) "label", NULL
12152 };
12153
12154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12157 arg2 = (int) SWIG_AsInt(obj1);
12158 if (PyErr_Occurred()) SWIG_fail;
12159 {
12160 arg3 = wxString_in_helper(obj2);
12161 if (arg3 == NULL) SWIG_fail;
12162 temp3 = True;
12163 }
12164 {
12165 PyThreadState* __tstate = wxPyBeginAllowThreads();
12166 (arg1)->SetString(arg2,(wxString const &)*arg3);
12167
12168 wxPyEndAllowThreads(__tstate);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 }
12171 Py_INCREF(Py_None); resultobj = Py_None;
12172 {
12173 if (temp3)
12174 delete arg3;
12175 }
12176 return resultobj;
12177 fail:
12178 {
12179 if (temp3)
12180 delete arg3;
12181 }
12182 return NULL;
12183 }
12184
12185
12186 static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12187 PyObject *resultobj;
12188 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12189 int arg2 ;
12190 bool arg3 = (bool) True ;
12191 PyObject * obj0 = 0 ;
12192 PyObject * obj1 = 0 ;
12193 PyObject * obj2 = 0 ;
12194 char *kwnames[] = {
12195 (char *) "self",(char *) "n",(char *) "enable", NULL
12196 };
12197
12198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12201 arg2 = (int) SWIG_AsInt(obj1);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 if (obj2) {
12204 arg3 = (bool) SWIG_AsBool(obj2);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
12209 (arg1)->Enable(arg2,arg3);
12210
12211 wxPyEndAllowThreads(__tstate);
12212 if (PyErr_Occurred()) SWIG_fail;
12213 }
12214 Py_INCREF(Py_None); resultobj = Py_None;
12215 return resultobj;
12216 fail:
12217 return NULL;
12218 }
12219
12220
12221 static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12222 PyObject *resultobj;
12223 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12224 int arg2 ;
12225 bool arg3 = (bool) True ;
12226 PyObject * obj0 = 0 ;
12227 PyObject * obj1 = 0 ;
12228 PyObject * obj2 = 0 ;
12229 char *kwnames[] = {
12230 (char *) "self",(char *) "n",(char *) "show", NULL
12231 };
12232
12233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12236 arg2 = (int) SWIG_AsInt(obj1);
12237 if (PyErr_Occurred()) SWIG_fail;
12238 if (obj2) {
12239 arg3 = (bool) SWIG_AsBool(obj2);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 {
12243 PyThreadState* __tstate = wxPyBeginAllowThreads();
12244 (arg1)->Show(arg2,arg3);
12245
12246 wxPyEndAllowThreads(__tstate);
12247 if (PyErr_Occurred()) SWIG_fail;
12248 }
12249 Py_INCREF(Py_None); resultobj = Py_None;
12250 return resultobj;
12251 fail:
12252 return NULL;
12253 }
12254
12255
12256 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12257 PyObject *resultobj;
12258 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12259 int result;
12260 PyObject * obj0 = 0 ;
12261 char *kwnames[] = {
12262 (char *) "self", NULL
12263 };
12264
12265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12268 {
12269 PyThreadState* __tstate = wxPyBeginAllowThreads();
12270 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12271
12272 wxPyEndAllowThreads(__tstate);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 }
12275 resultobj = SWIG_FromInt((int)result);
12276 return resultobj;
12277 fail:
12278 return NULL;
12279 }
12280
12281
12282 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12283 PyObject *resultobj;
12284 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12285 int result;
12286 PyObject * obj0 = 0 ;
12287 char *kwnames[] = {
12288 (char *) "self", NULL
12289 };
12290
12291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12294 {
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12297
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 resultobj = SWIG_FromInt((int)result);
12302 return resultobj;
12303 fail:
12304 return NULL;
12305 }
12306
12307
12308 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12309 PyObject *resultobj;
12310 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12311 int arg2 ;
12312 int arg3 ;
12313 long arg4 ;
12314 int result;
12315 PyObject * obj0 = 0 ;
12316 PyObject * obj1 = 0 ;
12317 PyObject * obj2 = 0 ;
12318 PyObject * obj3 = 0 ;
12319 char *kwnames[] = {
12320 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12321 };
12322
12323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12326 arg2 = (int) SWIG_AsInt(obj1);
12327 if (PyErr_Occurred()) SWIG_fail;
12328 arg3 = (wxDirection) SWIG_AsInt(obj2);
12329 if (PyErr_Occurred()) SWIG_fail;
12330 arg4 = (long) SWIG_AsLong(obj3);
12331 if (PyErr_Occurred()) SWIG_fail;
12332 {
12333 PyThreadState* __tstate = wxPyBeginAllowThreads();
12334 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12335
12336 wxPyEndAllowThreads(__tstate);
12337 if (PyErr_Occurred()) SWIG_fail;
12338 }
12339 resultobj = SWIG_FromInt((int)result);
12340 return resultobj;
12341 fail:
12342 return NULL;
12343 }
12344
12345
12346 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12347 PyObject *resultobj;
12348 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12349 wxVisualAttributes result;
12350 PyObject * obj0 = 0 ;
12351 char *kwnames[] = {
12352 (char *) "variant", NULL
12353 };
12354
12355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12356 if (obj0) {
12357 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12358 if (PyErr_Occurred()) SWIG_fail;
12359 }
12360 {
12361 PyThreadState* __tstate = wxPyBeginAllowThreads();
12362 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12363
12364 wxPyEndAllowThreads(__tstate);
12365 if (PyErr_Occurred()) SWIG_fail;
12366 }
12367 {
12368 wxVisualAttributes * resultptr;
12369 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12370 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12371 }
12372 return resultobj;
12373 fail:
12374 return NULL;
12375 }
12376
12377
12378 static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
12379 PyObject *obj;
12380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12381 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12382 Py_INCREF(obj);
12383 return Py_BuildValue((char *)"");
12384 }
12385 static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12386 PyObject *resultobj;
12387 wxWindow *arg1 = (wxWindow *) 0 ;
12388 int arg2 ;
12389 wxString *arg3 = 0 ;
12390 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12391 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12392 wxSize const &arg5_defvalue = wxDefaultSize ;
12393 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12394 long arg6 = (long) 0 ;
12395 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12396 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12397 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12398 wxString *arg8 = (wxString *) &arg8_defvalue ;
12399 wxRadioButton *result;
12400 bool temp3 = False ;
12401 wxPoint temp4 ;
12402 wxSize temp5 ;
12403 bool temp8 = False ;
12404 PyObject * obj0 = 0 ;
12405 PyObject * obj1 = 0 ;
12406 PyObject * obj2 = 0 ;
12407 PyObject * obj3 = 0 ;
12408 PyObject * obj4 = 0 ;
12409 PyObject * obj5 = 0 ;
12410 PyObject * obj6 = 0 ;
12411 PyObject * obj7 = 0 ;
12412 char *kwnames[] = {
12413 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12414 };
12415
12416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12419 arg2 = (int) SWIG_AsInt(obj1);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 {
12422 arg3 = wxString_in_helper(obj2);
12423 if (arg3 == NULL) SWIG_fail;
12424 temp3 = True;
12425 }
12426 if (obj3) {
12427 {
12428 arg4 = &temp4;
12429 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12430 }
12431 }
12432 if (obj4) {
12433 {
12434 arg5 = &temp5;
12435 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12436 }
12437 }
12438 if (obj5) {
12439 arg6 = (long) SWIG_AsLong(obj5);
12440 if (PyErr_Occurred()) SWIG_fail;
12441 }
12442 if (obj6) {
12443 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12444 SWIG_POINTER_EXCEPTION | 0)) == -1)
12445 SWIG_fail;
12446 if (arg7 == NULL) {
12447 PyErr_SetString(PyExc_TypeError,"null reference");
12448 SWIG_fail;
12449 }
12450 }
12451 if (obj7) {
12452 {
12453 arg8 = wxString_in_helper(obj7);
12454 if (arg8 == NULL) SWIG_fail;
12455 temp8 = True;
12456 }
12457 }
12458 {
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12461
12462 wxPyEndAllowThreads(__tstate);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 }
12465 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12466 {
12467 if (temp3)
12468 delete arg3;
12469 }
12470 {
12471 if (temp8)
12472 delete arg8;
12473 }
12474 return resultobj;
12475 fail:
12476 {
12477 if (temp3)
12478 delete arg3;
12479 }
12480 {
12481 if (temp8)
12482 delete arg8;
12483 }
12484 return NULL;
12485 }
12486
12487
12488 static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12489 PyObject *resultobj;
12490 wxRadioButton *result;
12491 char *kwnames[] = {
12492 NULL
12493 };
12494
12495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 result = (wxRadioButton *)new wxRadioButton();
12499
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12504 return resultobj;
12505 fail:
12506 return NULL;
12507 }
12508
12509
12510 static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12511 PyObject *resultobj;
12512 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12513 wxWindow *arg2 = (wxWindow *) 0 ;
12514 int arg3 ;
12515 wxString *arg4 = 0 ;
12516 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12517 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12518 wxSize const &arg6_defvalue = wxDefaultSize ;
12519 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12520 long arg7 = (long) 0 ;
12521 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12522 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12523 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12524 wxString *arg9 = (wxString *) &arg9_defvalue ;
12525 bool result;
12526 bool temp4 = False ;
12527 wxPoint temp5 ;
12528 wxSize temp6 ;
12529 bool temp9 = False ;
12530 PyObject * obj0 = 0 ;
12531 PyObject * obj1 = 0 ;
12532 PyObject * obj2 = 0 ;
12533 PyObject * obj3 = 0 ;
12534 PyObject * obj4 = 0 ;
12535 PyObject * obj5 = 0 ;
12536 PyObject * obj6 = 0 ;
12537 PyObject * obj7 = 0 ;
12538 PyObject * obj8 = 0 ;
12539 char *kwnames[] = {
12540 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12541 };
12542
12543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12546 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12548 arg3 = (int) SWIG_AsInt(obj2);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 {
12551 arg4 = wxString_in_helper(obj3);
12552 if (arg4 == NULL) SWIG_fail;
12553 temp4 = True;
12554 }
12555 if (obj4) {
12556 {
12557 arg5 = &temp5;
12558 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12559 }
12560 }
12561 if (obj5) {
12562 {
12563 arg6 = &temp6;
12564 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12565 }
12566 }
12567 if (obj6) {
12568 arg7 = (long) SWIG_AsLong(obj6);
12569 if (PyErr_Occurred()) SWIG_fail;
12570 }
12571 if (obj7) {
12572 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12573 SWIG_POINTER_EXCEPTION | 0)) == -1)
12574 SWIG_fail;
12575 if (arg8 == NULL) {
12576 PyErr_SetString(PyExc_TypeError,"null reference");
12577 SWIG_fail;
12578 }
12579 }
12580 if (obj8) {
12581 {
12582 arg9 = wxString_in_helper(obj8);
12583 if (arg9 == NULL) SWIG_fail;
12584 temp9 = True;
12585 }
12586 }
12587 {
12588 PyThreadState* __tstate = wxPyBeginAllowThreads();
12589 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12590
12591 wxPyEndAllowThreads(__tstate);
12592 if (PyErr_Occurred()) SWIG_fail;
12593 }
12594 {
12595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12596 }
12597 {
12598 if (temp4)
12599 delete arg4;
12600 }
12601 {
12602 if (temp9)
12603 delete arg9;
12604 }
12605 return resultobj;
12606 fail:
12607 {
12608 if (temp4)
12609 delete arg4;
12610 }
12611 {
12612 if (temp9)
12613 delete arg9;
12614 }
12615 return NULL;
12616 }
12617
12618
12619 static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12620 PyObject *resultobj;
12621 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12622 bool result;
12623 PyObject * obj0 = 0 ;
12624 char *kwnames[] = {
12625 (char *) "self", NULL
12626 };
12627
12628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 result = (bool)(arg1)->GetValue();
12634
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 {
12639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12640 }
12641 return resultobj;
12642 fail:
12643 return NULL;
12644 }
12645
12646
12647 static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj;
12649 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12650 bool arg2 ;
12651 PyObject * obj0 = 0 ;
12652 PyObject * obj1 = 0 ;
12653 char *kwnames[] = {
12654 (char *) "self",(char *) "value", NULL
12655 };
12656
12657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12660 arg2 = (bool) SWIG_AsBool(obj1);
12661 if (PyErr_Occurred()) SWIG_fail;
12662 {
12663 PyThreadState* __tstate = wxPyBeginAllowThreads();
12664 (arg1)->SetValue(arg2);
12665
12666 wxPyEndAllowThreads(__tstate);
12667 if (PyErr_Occurred()) SWIG_fail;
12668 }
12669 Py_INCREF(Py_None); resultobj = Py_None;
12670 return resultobj;
12671 fail:
12672 return NULL;
12673 }
12674
12675
12676 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12677 PyObject *resultobj;
12678 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12679 wxVisualAttributes result;
12680 PyObject * obj0 = 0 ;
12681 char *kwnames[] = {
12682 (char *) "variant", NULL
12683 };
12684
12685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12686 if (obj0) {
12687 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 {
12691 PyThreadState* __tstate = wxPyBeginAllowThreads();
12692 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12693
12694 wxPyEndAllowThreads(__tstate);
12695 if (PyErr_Occurred()) SWIG_fail;
12696 }
12697 {
12698 wxVisualAttributes * resultptr;
12699 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12700 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12701 }
12702 return resultobj;
12703 fail:
12704 return NULL;
12705 }
12706
12707
12708 static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
12709 PyObject *obj;
12710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12711 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12712 Py_INCREF(obj);
12713 return Py_BuildValue((char *)"");
12714 }
12715 static int _wrap_SliderNameStr_set(PyObject *_val) {
12716 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12717 return 1;
12718 }
12719
12720
12721 static PyObject *_wrap_SliderNameStr_get() {
12722 PyObject *pyobj;
12723
12724 {
12725 #if wxUSE_UNICODE
12726 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12727 #else
12728 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12729 #endif
12730 }
12731 return pyobj;
12732 }
12733
12734
12735 static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
12736 PyObject *resultobj;
12737 wxWindow *arg1 = (wxWindow *) 0 ;
12738 int arg2 ;
12739 int arg3 ;
12740 int arg4 ;
12741 int arg5 ;
12742 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12743 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12744 wxSize const &arg7_defvalue = wxDefaultSize ;
12745 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12746 long arg8 = (long) wxSL_HORIZONTAL ;
12747 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12748 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12749 wxString const &arg10_defvalue = wxPySliderNameStr ;
12750 wxString *arg10 = (wxString *) &arg10_defvalue ;
12751 wxSlider *result;
12752 wxPoint temp6 ;
12753 wxSize temp7 ;
12754 bool temp10 = False ;
12755 PyObject * obj0 = 0 ;
12756 PyObject * obj1 = 0 ;
12757 PyObject * obj2 = 0 ;
12758 PyObject * obj3 = 0 ;
12759 PyObject * obj4 = 0 ;
12760 PyObject * obj5 = 0 ;
12761 PyObject * obj6 = 0 ;
12762 PyObject * obj7 = 0 ;
12763 PyObject * obj8 = 0 ;
12764 PyObject * obj9 = 0 ;
12765 char *kwnames[] = {
12766 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12767 };
12768
12769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12772 arg2 = (int) SWIG_AsInt(obj1);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 arg3 = (int) SWIG_AsInt(obj2);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 arg4 = (int) SWIG_AsInt(obj3);
12777 if (PyErr_Occurred()) SWIG_fail;
12778 arg5 = (int) SWIG_AsInt(obj4);
12779 if (PyErr_Occurred()) SWIG_fail;
12780 if (obj5) {
12781 {
12782 arg6 = &temp6;
12783 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12784 }
12785 }
12786 if (obj6) {
12787 {
12788 arg7 = &temp7;
12789 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12790 }
12791 }
12792 if (obj7) {
12793 arg8 = (long) SWIG_AsLong(obj7);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 if (obj8) {
12797 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12798 SWIG_POINTER_EXCEPTION | 0)) == -1)
12799 SWIG_fail;
12800 if (arg9 == NULL) {
12801 PyErr_SetString(PyExc_TypeError,"null reference");
12802 SWIG_fail;
12803 }
12804 }
12805 if (obj9) {
12806 {
12807 arg10 = wxString_in_helper(obj9);
12808 if (arg10 == NULL) SWIG_fail;
12809 temp10 = True;
12810 }
12811 }
12812 {
12813 PyThreadState* __tstate = wxPyBeginAllowThreads();
12814 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12815
12816 wxPyEndAllowThreads(__tstate);
12817 if (PyErr_Occurred()) SWIG_fail;
12818 }
12819 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12820 {
12821 if (temp10)
12822 delete arg10;
12823 }
12824 return resultobj;
12825 fail:
12826 {
12827 if (temp10)
12828 delete arg10;
12829 }
12830 return NULL;
12831 }
12832
12833
12834 static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
12835 PyObject *resultobj;
12836 wxSlider *result;
12837 char *kwnames[] = {
12838 NULL
12839 };
12840
12841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12842 {
12843 PyThreadState* __tstate = wxPyBeginAllowThreads();
12844 result = (wxSlider *)new wxSlider();
12845
12846 wxPyEndAllowThreads(__tstate);
12847 if (PyErr_Occurred()) SWIG_fail;
12848 }
12849 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12850 return resultobj;
12851 fail:
12852 return NULL;
12853 }
12854
12855
12856 static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12857 PyObject *resultobj;
12858 wxSlider *arg1 = (wxSlider *) 0 ;
12859 wxWindow *arg2 = (wxWindow *) 0 ;
12860 int arg3 ;
12861 int arg4 ;
12862 int arg5 ;
12863 int arg6 ;
12864 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12865 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12866 wxSize const &arg8_defvalue = wxDefaultSize ;
12867 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12868 long arg9 = (long) wxSL_HORIZONTAL ;
12869 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12870 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12871 wxString const &arg11_defvalue = wxPySliderNameStr ;
12872 wxString *arg11 = (wxString *) &arg11_defvalue ;
12873 bool result;
12874 wxPoint temp7 ;
12875 wxSize temp8 ;
12876 bool temp11 = False ;
12877 PyObject * obj0 = 0 ;
12878 PyObject * obj1 = 0 ;
12879 PyObject * obj2 = 0 ;
12880 PyObject * obj3 = 0 ;
12881 PyObject * obj4 = 0 ;
12882 PyObject * obj5 = 0 ;
12883 PyObject * obj6 = 0 ;
12884 PyObject * obj7 = 0 ;
12885 PyObject * obj8 = 0 ;
12886 PyObject * obj9 = 0 ;
12887 PyObject * obj10 = 0 ;
12888 char *kwnames[] = {
12889 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12890 };
12891
12892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12895 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12897 arg3 = (int) SWIG_AsInt(obj2);
12898 if (PyErr_Occurred()) SWIG_fail;
12899 arg4 = (int) SWIG_AsInt(obj3);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 arg5 = (int) SWIG_AsInt(obj4);
12902 if (PyErr_Occurred()) SWIG_fail;
12903 arg6 = (int) SWIG_AsInt(obj5);
12904 if (PyErr_Occurred()) SWIG_fail;
12905 if (obj6) {
12906 {
12907 arg7 = &temp7;
12908 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12909 }
12910 }
12911 if (obj7) {
12912 {
12913 arg8 = &temp8;
12914 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12915 }
12916 }
12917 if (obj8) {
12918 arg9 = (long) SWIG_AsLong(obj8);
12919 if (PyErr_Occurred()) SWIG_fail;
12920 }
12921 if (obj9) {
12922 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12923 SWIG_POINTER_EXCEPTION | 0)) == -1)
12924 SWIG_fail;
12925 if (arg10 == NULL) {
12926 PyErr_SetString(PyExc_TypeError,"null reference");
12927 SWIG_fail;
12928 }
12929 }
12930 if (obj10) {
12931 {
12932 arg11 = wxString_in_helper(obj10);
12933 if (arg11 == NULL) SWIG_fail;
12934 temp11 = True;
12935 }
12936 }
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12940
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 {
12945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12946 }
12947 {
12948 if (temp11)
12949 delete arg11;
12950 }
12951 return resultobj;
12952 fail:
12953 {
12954 if (temp11)
12955 delete arg11;
12956 }
12957 return NULL;
12958 }
12959
12960
12961 static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12962 PyObject *resultobj;
12963 wxSlider *arg1 = (wxSlider *) 0 ;
12964 int result;
12965 PyObject * obj0 = 0 ;
12966 char *kwnames[] = {
12967 (char *) "self", NULL
12968 };
12969
12970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 result = (int)((wxSlider const *)arg1)->GetValue();
12976
12977 wxPyEndAllowThreads(__tstate);
12978 if (PyErr_Occurred()) SWIG_fail;
12979 }
12980 resultobj = SWIG_FromInt((int)result);
12981 return resultobj;
12982 fail:
12983 return NULL;
12984 }
12985
12986
12987 static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj;
12989 wxSlider *arg1 = (wxSlider *) 0 ;
12990 int arg2 ;
12991 PyObject * obj0 = 0 ;
12992 PyObject * obj1 = 0 ;
12993 char *kwnames[] = {
12994 (char *) "self",(char *) "value", NULL
12995 };
12996
12997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13000 arg2 = (int) SWIG_AsInt(obj1);
13001 if (PyErr_Occurred()) SWIG_fail;
13002 {
13003 PyThreadState* __tstate = wxPyBeginAllowThreads();
13004 (arg1)->SetValue(arg2);
13005
13006 wxPyEndAllowThreads(__tstate);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 Py_INCREF(Py_None); resultobj = Py_None;
13010 return resultobj;
13011 fail:
13012 return NULL;
13013 }
13014
13015
13016 static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
13017 PyObject *resultobj;
13018 wxSlider *arg1 = (wxSlider *) 0 ;
13019 int arg2 ;
13020 int arg3 ;
13021 PyObject * obj0 = 0 ;
13022 PyObject * obj1 = 0 ;
13023 PyObject * obj2 = 0 ;
13024 char *kwnames[] = {
13025 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13026 };
13027
13028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13031 arg2 = (int) SWIG_AsInt(obj1);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 arg3 = (int) SWIG_AsInt(obj2);
13034 if (PyErr_Occurred()) SWIG_fail;
13035 {
13036 PyThreadState* __tstate = wxPyBeginAllowThreads();
13037 (arg1)->SetRange(arg2,arg3);
13038
13039 wxPyEndAllowThreads(__tstate);
13040 if (PyErr_Occurred()) SWIG_fail;
13041 }
13042 Py_INCREF(Py_None); resultobj = Py_None;
13043 return resultobj;
13044 fail:
13045 return NULL;
13046 }
13047
13048
13049 static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
13050 PyObject *resultobj;
13051 wxSlider *arg1 = (wxSlider *) 0 ;
13052 int result;
13053 PyObject * obj0 = 0 ;
13054 char *kwnames[] = {
13055 (char *) "self", NULL
13056 };
13057
13058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13061 {
13062 PyThreadState* __tstate = wxPyBeginAllowThreads();
13063 result = (int)((wxSlider const *)arg1)->GetMin();
13064
13065 wxPyEndAllowThreads(__tstate);
13066 if (PyErr_Occurred()) SWIG_fail;
13067 }
13068 resultobj = SWIG_FromInt((int)result);
13069 return resultobj;
13070 fail:
13071 return NULL;
13072 }
13073
13074
13075 static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13076 PyObject *resultobj;
13077 wxSlider *arg1 = (wxSlider *) 0 ;
13078 int result;
13079 PyObject * obj0 = 0 ;
13080 char *kwnames[] = {
13081 (char *) "self", NULL
13082 };
13083
13084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13087 {
13088 PyThreadState* __tstate = wxPyBeginAllowThreads();
13089 result = (int)((wxSlider const *)arg1)->GetMax();
13090
13091 wxPyEndAllowThreads(__tstate);
13092 if (PyErr_Occurred()) SWIG_fail;
13093 }
13094 resultobj = SWIG_FromInt((int)result);
13095 return resultobj;
13096 fail:
13097 return NULL;
13098 }
13099
13100
13101 static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
13102 PyObject *resultobj;
13103 wxSlider *arg1 = (wxSlider *) 0 ;
13104 int arg2 ;
13105 PyObject * obj0 = 0 ;
13106 PyObject * obj1 = 0 ;
13107 char *kwnames[] = {
13108 (char *) "self",(char *) "minValue", NULL
13109 };
13110
13111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13114 arg2 = (int) SWIG_AsInt(obj1);
13115 if (PyErr_Occurred()) SWIG_fail;
13116 {
13117 PyThreadState* __tstate = wxPyBeginAllowThreads();
13118 (arg1)->SetMin(arg2);
13119
13120 wxPyEndAllowThreads(__tstate);
13121 if (PyErr_Occurred()) SWIG_fail;
13122 }
13123 Py_INCREF(Py_None); resultobj = Py_None;
13124 return resultobj;
13125 fail:
13126 return NULL;
13127 }
13128
13129
13130 static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13131 PyObject *resultobj;
13132 wxSlider *arg1 = (wxSlider *) 0 ;
13133 int arg2 ;
13134 PyObject * obj0 = 0 ;
13135 PyObject * obj1 = 0 ;
13136 char *kwnames[] = {
13137 (char *) "self",(char *) "maxValue", NULL
13138 };
13139
13140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13143 arg2 = (int) SWIG_AsInt(obj1);
13144 if (PyErr_Occurred()) SWIG_fail;
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 (arg1)->SetMax(arg2);
13148
13149 wxPyEndAllowThreads(__tstate);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 }
13152 Py_INCREF(Py_None); resultobj = Py_None;
13153 return resultobj;
13154 fail:
13155 return NULL;
13156 }
13157
13158
13159 static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13160 PyObject *resultobj;
13161 wxSlider *arg1 = (wxSlider *) 0 ;
13162 int arg2 ;
13163 PyObject * obj0 = 0 ;
13164 PyObject * obj1 = 0 ;
13165 char *kwnames[] = {
13166 (char *) "self",(char *) "lineSize", NULL
13167 };
13168
13169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13172 arg2 = (int) SWIG_AsInt(obj1);
13173 if (PyErr_Occurred()) SWIG_fail;
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 (arg1)->SetLineSize(arg2);
13177
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 Py_INCREF(Py_None); resultobj = Py_None;
13182 return resultobj;
13183 fail:
13184 return NULL;
13185 }
13186
13187
13188 static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13189 PyObject *resultobj;
13190 wxSlider *arg1 = (wxSlider *) 0 ;
13191 int arg2 ;
13192 PyObject * obj0 = 0 ;
13193 PyObject * obj1 = 0 ;
13194 char *kwnames[] = {
13195 (char *) "self",(char *) "pageSize", NULL
13196 };
13197
13198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13201 arg2 = (int) SWIG_AsInt(obj1);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 {
13204 PyThreadState* __tstate = wxPyBeginAllowThreads();
13205 (arg1)->SetPageSize(arg2);
13206
13207 wxPyEndAllowThreads(__tstate);
13208 if (PyErr_Occurred()) SWIG_fail;
13209 }
13210 Py_INCREF(Py_None); resultobj = Py_None;
13211 return resultobj;
13212 fail:
13213 return NULL;
13214 }
13215
13216
13217 static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13218 PyObject *resultobj;
13219 wxSlider *arg1 = (wxSlider *) 0 ;
13220 int result;
13221 PyObject * obj0 = 0 ;
13222 char *kwnames[] = {
13223 (char *) "self", NULL
13224 };
13225
13226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13229 {
13230 PyThreadState* __tstate = wxPyBeginAllowThreads();
13231 result = (int)((wxSlider const *)arg1)->GetLineSize();
13232
13233 wxPyEndAllowThreads(__tstate);
13234 if (PyErr_Occurred()) SWIG_fail;
13235 }
13236 resultobj = SWIG_FromInt((int)result);
13237 return resultobj;
13238 fail:
13239 return NULL;
13240 }
13241
13242
13243 static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13244 PyObject *resultobj;
13245 wxSlider *arg1 = (wxSlider *) 0 ;
13246 int result;
13247 PyObject * obj0 = 0 ;
13248 char *kwnames[] = {
13249 (char *) "self", NULL
13250 };
13251
13252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 result = (int)((wxSlider const *)arg1)->GetPageSize();
13258
13259 wxPyEndAllowThreads(__tstate);
13260 if (PyErr_Occurred()) SWIG_fail;
13261 }
13262 resultobj = SWIG_FromInt((int)result);
13263 return resultobj;
13264 fail:
13265 return NULL;
13266 }
13267
13268
13269 static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13270 PyObject *resultobj;
13271 wxSlider *arg1 = (wxSlider *) 0 ;
13272 int arg2 ;
13273 PyObject * obj0 = 0 ;
13274 PyObject * obj1 = 0 ;
13275 char *kwnames[] = {
13276 (char *) "self",(char *) "lenPixels", NULL
13277 };
13278
13279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13282 arg2 = (int) SWIG_AsInt(obj1);
13283 if (PyErr_Occurred()) SWIG_fail;
13284 {
13285 PyThreadState* __tstate = wxPyBeginAllowThreads();
13286 (arg1)->SetThumbLength(arg2);
13287
13288 wxPyEndAllowThreads(__tstate);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 }
13291 Py_INCREF(Py_None); resultobj = Py_None;
13292 return resultobj;
13293 fail:
13294 return NULL;
13295 }
13296
13297
13298 static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13299 PyObject *resultobj;
13300 wxSlider *arg1 = (wxSlider *) 0 ;
13301 int result;
13302 PyObject * obj0 = 0 ;
13303 char *kwnames[] = {
13304 (char *) "self", NULL
13305 };
13306
13307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13310 {
13311 PyThreadState* __tstate = wxPyBeginAllowThreads();
13312 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13313
13314 wxPyEndAllowThreads(__tstate);
13315 if (PyErr_Occurred()) SWIG_fail;
13316 }
13317 resultobj = SWIG_FromInt((int)result);
13318 return resultobj;
13319 fail:
13320 return NULL;
13321 }
13322
13323
13324 static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13325 PyObject *resultobj;
13326 wxSlider *arg1 = (wxSlider *) 0 ;
13327 int arg2 ;
13328 int arg3 = (int) 1 ;
13329 PyObject * obj0 = 0 ;
13330 PyObject * obj1 = 0 ;
13331 PyObject * obj2 = 0 ;
13332 char *kwnames[] = {
13333 (char *) "self",(char *) "n",(char *) "pos", NULL
13334 };
13335
13336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13339 arg2 = (int) SWIG_AsInt(obj1);
13340 if (PyErr_Occurred()) SWIG_fail;
13341 if (obj2) {
13342 arg3 = (int) SWIG_AsInt(obj2);
13343 if (PyErr_Occurred()) SWIG_fail;
13344 }
13345 {
13346 PyThreadState* __tstate = wxPyBeginAllowThreads();
13347 (arg1)->SetTickFreq(arg2,arg3);
13348
13349 wxPyEndAllowThreads(__tstate);
13350 if (PyErr_Occurred()) SWIG_fail;
13351 }
13352 Py_INCREF(Py_None); resultobj = Py_None;
13353 return resultobj;
13354 fail:
13355 return NULL;
13356 }
13357
13358
13359 static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13360 PyObject *resultobj;
13361 wxSlider *arg1 = (wxSlider *) 0 ;
13362 int result;
13363 PyObject * obj0 = 0 ;
13364 char *kwnames[] = {
13365 (char *) "self", NULL
13366 };
13367
13368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13374
13375 wxPyEndAllowThreads(__tstate);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 }
13378 resultobj = SWIG_FromInt((int)result);
13379 return resultobj;
13380 fail:
13381 return NULL;
13382 }
13383
13384
13385 static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
13386 PyObject *resultobj;
13387 wxSlider *arg1 = (wxSlider *) 0 ;
13388 PyObject * obj0 = 0 ;
13389 char *kwnames[] = {
13390 (char *) "self", NULL
13391 };
13392
13393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13396 {
13397 PyThreadState* __tstate = wxPyBeginAllowThreads();
13398 (arg1)->ClearTicks();
13399
13400 wxPyEndAllowThreads(__tstate);
13401 if (PyErr_Occurred()) SWIG_fail;
13402 }
13403 Py_INCREF(Py_None); resultobj = Py_None;
13404 return resultobj;
13405 fail:
13406 return NULL;
13407 }
13408
13409
13410 static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
13411 PyObject *resultobj;
13412 wxSlider *arg1 = (wxSlider *) 0 ;
13413 int arg2 ;
13414 PyObject * obj0 = 0 ;
13415 PyObject * obj1 = 0 ;
13416 char *kwnames[] = {
13417 (char *) "self",(char *) "tickPos", NULL
13418 };
13419
13420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13423 arg2 = (int) SWIG_AsInt(obj1);
13424 if (PyErr_Occurred()) SWIG_fail;
13425 {
13426 PyThreadState* __tstate = wxPyBeginAllowThreads();
13427 (arg1)->SetTick(arg2);
13428
13429 wxPyEndAllowThreads(__tstate);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 Py_INCREF(Py_None); resultobj = Py_None;
13433 return resultobj;
13434 fail:
13435 return NULL;
13436 }
13437
13438
13439 static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
13440 PyObject *resultobj;
13441 wxSlider *arg1 = (wxSlider *) 0 ;
13442 PyObject * obj0 = 0 ;
13443 char *kwnames[] = {
13444 (char *) "self", NULL
13445 };
13446
13447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 (arg1)->ClearSel();
13453
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 Py_INCREF(Py_None); resultobj = Py_None;
13458 return resultobj;
13459 fail:
13460 return NULL;
13461 }
13462
13463
13464 static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
13465 PyObject *resultobj;
13466 wxSlider *arg1 = (wxSlider *) 0 ;
13467 int result;
13468 PyObject * obj0 = 0 ;
13469 char *kwnames[] = {
13470 (char *) "self", NULL
13471 };
13472
13473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13476 {
13477 PyThreadState* __tstate = wxPyBeginAllowThreads();
13478 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13479
13480 wxPyEndAllowThreads(__tstate);
13481 if (PyErr_Occurred()) SWIG_fail;
13482 }
13483 resultobj = SWIG_FromInt((int)result);
13484 return resultobj;
13485 fail:
13486 return NULL;
13487 }
13488
13489
13490 static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
13491 PyObject *resultobj;
13492 wxSlider *arg1 = (wxSlider *) 0 ;
13493 int result;
13494 PyObject * obj0 = 0 ;
13495 char *kwnames[] = {
13496 (char *) "self", NULL
13497 };
13498
13499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13502 {
13503 PyThreadState* __tstate = wxPyBeginAllowThreads();
13504 result = (int)((wxSlider const *)arg1)->GetSelStart();
13505
13506 wxPyEndAllowThreads(__tstate);
13507 if (PyErr_Occurred()) SWIG_fail;
13508 }
13509 resultobj = SWIG_FromInt((int)result);
13510 return resultobj;
13511 fail:
13512 return NULL;
13513 }
13514
13515
13516 static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13517 PyObject *resultobj;
13518 wxSlider *arg1 = (wxSlider *) 0 ;
13519 int arg2 ;
13520 int arg3 ;
13521 PyObject * obj0 = 0 ;
13522 PyObject * obj1 = 0 ;
13523 PyObject * obj2 = 0 ;
13524 char *kwnames[] = {
13525 (char *) "self",(char *) "min",(char *) "max", NULL
13526 };
13527
13528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13531 arg2 = (int) SWIG_AsInt(obj1);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 arg3 = (int) SWIG_AsInt(obj2);
13534 if (PyErr_Occurred()) SWIG_fail;
13535 {
13536 PyThreadState* __tstate = wxPyBeginAllowThreads();
13537 (arg1)->SetSelection(arg2,arg3);
13538
13539 wxPyEndAllowThreads(__tstate);
13540 if (PyErr_Occurred()) SWIG_fail;
13541 }
13542 Py_INCREF(Py_None); resultobj = Py_None;
13543 return resultobj;
13544 fail:
13545 return NULL;
13546 }
13547
13548
13549 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13550 PyObject *resultobj;
13551 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13552 wxVisualAttributes result;
13553 PyObject * obj0 = 0 ;
13554 char *kwnames[] = {
13555 (char *) "variant", NULL
13556 };
13557
13558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13559 if (obj0) {
13560 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13561 if (PyErr_Occurred()) SWIG_fail;
13562 }
13563 {
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13566
13567 wxPyEndAllowThreads(__tstate);
13568 if (PyErr_Occurred()) SWIG_fail;
13569 }
13570 {
13571 wxVisualAttributes * resultptr;
13572 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13573 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13574 }
13575 return resultobj;
13576 fail:
13577 return NULL;
13578 }
13579
13580
13581 static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
13582 PyObject *obj;
13583 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13584 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13585 Py_INCREF(obj);
13586 return Py_BuildValue((char *)"");
13587 }
13588 static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
13589 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13590 return 1;
13591 }
13592
13593
13594 static PyObject *_wrap_ToggleButtonNameStr_get() {
13595 PyObject *pyobj;
13596
13597 {
13598 #if wxUSE_UNICODE
13599 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13600 #else
13601 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13602 #endif
13603 }
13604 return pyobj;
13605 }
13606
13607
13608 static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13609 PyObject *resultobj;
13610 wxWindow *arg1 = (wxWindow *) 0 ;
13611 int arg2 ;
13612 wxString *arg3 = 0 ;
13613 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13614 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13615 wxSize const &arg5_defvalue = wxDefaultSize ;
13616 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13617 long arg6 = (long) 0 ;
13618 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13619 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13620 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13621 wxString *arg8 = (wxString *) &arg8_defvalue ;
13622 wxToggleButton *result;
13623 bool temp3 = False ;
13624 wxPoint temp4 ;
13625 wxSize temp5 ;
13626 bool temp8 = False ;
13627 PyObject * obj0 = 0 ;
13628 PyObject * obj1 = 0 ;
13629 PyObject * obj2 = 0 ;
13630 PyObject * obj3 = 0 ;
13631 PyObject * obj4 = 0 ;
13632 PyObject * obj5 = 0 ;
13633 PyObject * obj6 = 0 ;
13634 PyObject * obj7 = 0 ;
13635 char *kwnames[] = {
13636 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13637 };
13638
13639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13642 arg2 = (int) SWIG_AsInt(obj1);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 {
13645 arg3 = wxString_in_helper(obj2);
13646 if (arg3 == NULL) SWIG_fail;
13647 temp3 = True;
13648 }
13649 if (obj3) {
13650 {
13651 arg4 = &temp4;
13652 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13653 }
13654 }
13655 if (obj4) {
13656 {
13657 arg5 = &temp5;
13658 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13659 }
13660 }
13661 if (obj5) {
13662 arg6 = (long) SWIG_AsLong(obj5);
13663 if (PyErr_Occurred()) SWIG_fail;
13664 }
13665 if (obj6) {
13666 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13667 SWIG_POINTER_EXCEPTION | 0)) == -1)
13668 SWIG_fail;
13669 if (arg7 == NULL) {
13670 PyErr_SetString(PyExc_TypeError,"null reference");
13671 SWIG_fail;
13672 }
13673 }
13674 if (obj7) {
13675 {
13676 arg8 = wxString_in_helper(obj7);
13677 if (arg8 == NULL) SWIG_fail;
13678 temp8 = True;
13679 }
13680 }
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13684
13685 wxPyEndAllowThreads(__tstate);
13686 if (PyErr_Occurred()) SWIG_fail;
13687 }
13688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13689 {
13690 if (temp3)
13691 delete arg3;
13692 }
13693 {
13694 if (temp8)
13695 delete arg8;
13696 }
13697 return resultobj;
13698 fail:
13699 {
13700 if (temp3)
13701 delete arg3;
13702 }
13703 {
13704 if (temp8)
13705 delete arg8;
13706 }
13707 return NULL;
13708 }
13709
13710
13711 static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13712 PyObject *resultobj;
13713 wxToggleButton *result;
13714 char *kwnames[] = {
13715 NULL
13716 };
13717
13718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
13719 {
13720 PyThreadState* __tstate = wxPyBeginAllowThreads();
13721 result = (wxToggleButton *)new wxToggleButton();
13722
13723 wxPyEndAllowThreads(__tstate);
13724 if (PyErr_Occurred()) SWIG_fail;
13725 }
13726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13727 return resultobj;
13728 fail:
13729 return NULL;
13730 }
13731
13732
13733 static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13734 PyObject *resultobj;
13735 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13736 wxWindow *arg2 = (wxWindow *) 0 ;
13737 int arg3 ;
13738 wxString *arg4 = 0 ;
13739 wxPoint const &arg5_defvalue = wxDefaultPosition ;
13740 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
13741 wxSize const &arg6_defvalue = wxDefaultSize ;
13742 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
13743 long arg7 = (long) 0 ;
13744 wxValidator const &arg8_defvalue = wxDefaultValidator ;
13745 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
13746 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
13747 wxString *arg9 = (wxString *) &arg9_defvalue ;
13748 bool result;
13749 bool temp4 = False ;
13750 wxPoint temp5 ;
13751 wxSize temp6 ;
13752 bool temp9 = False ;
13753 PyObject * obj0 = 0 ;
13754 PyObject * obj1 = 0 ;
13755 PyObject * obj2 = 0 ;
13756 PyObject * obj3 = 0 ;
13757 PyObject * obj4 = 0 ;
13758 PyObject * obj5 = 0 ;
13759 PyObject * obj6 = 0 ;
13760 PyObject * obj7 = 0 ;
13761 PyObject * obj8 = 0 ;
13762 char *kwnames[] = {
13763 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13764 };
13765
13766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
13767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13769 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13771 arg3 = (int) SWIG_AsInt(obj2);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 {
13774 arg4 = wxString_in_helper(obj3);
13775 if (arg4 == NULL) SWIG_fail;
13776 temp4 = True;
13777 }
13778 if (obj4) {
13779 {
13780 arg5 = &temp5;
13781 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13782 }
13783 }
13784 if (obj5) {
13785 {
13786 arg6 = &temp6;
13787 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13788 }
13789 }
13790 if (obj6) {
13791 arg7 = (long) SWIG_AsLong(obj6);
13792 if (PyErr_Occurred()) SWIG_fail;
13793 }
13794 if (obj7) {
13795 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13796 SWIG_POINTER_EXCEPTION | 0)) == -1)
13797 SWIG_fail;
13798 if (arg8 == NULL) {
13799 PyErr_SetString(PyExc_TypeError,"null reference");
13800 SWIG_fail;
13801 }
13802 }
13803 if (obj8) {
13804 {
13805 arg9 = wxString_in_helper(obj8);
13806 if (arg9 == NULL) SWIG_fail;
13807 temp9 = True;
13808 }
13809 }
13810 {
13811 PyThreadState* __tstate = wxPyBeginAllowThreads();
13812 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13813
13814 wxPyEndAllowThreads(__tstate);
13815 if (PyErr_Occurred()) SWIG_fail;
13816 }
13817 {
13818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13819 }
13820 {
13821 if (temp4)
13822 delete arg4;
13823 }
13824 {
13825 if (temp9)
13826 delete arg9;
13827 }
13828 return resultobj;
13829 fail:
13830 {
13831 if (temp4)
13832 delete arg4;
13833 }
13834 {
13835 if (temp9)
13836 delete arg9;
13837 }
13838 return NULL;
13839 }
13840
13841
13842 static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13843 PyObject *resultobj;
13844 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13845 bool arg2 ;
13846 PyObject * obj0 = 0 ;
13847 PyObject * obj1 = 0 ;
13848 char *kwnames[] = {
13849 (char *) "self",(char *) "value", NULL
13850 };
13851
13852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13855 arg2 = (bool) SWIG_AsBool(obj1);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 {
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 (arg1)->SetValue(arg2);
13860
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 Py_INCREF(Py_None); resultobj = Py_None;
13865 return resultobj;
13866 fail:
13867 return NULL;
13868 }
13869
13870
13871 static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13872 PyObject *resultobj;
13873 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13874 bool result;
13875 PyObject * obj0 = 0 ;
13876 char *kwnames[] = {
13877 (char *) "self", NULL
13878 };
13879
13880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
13881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13883 {
13884 PyThreadState* __tstate = wxPyBeginAllowThreads();
13885 result = (bool)((wxToggleButton const *)arg1)->GetValue();
13886
13887 wxPyEndAllowThreads(__tstate);
13888 if (PyErr_Occurred()) SWIG_fail;
13889 }
13890 {
13891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13892 }
13893 return resultobj;
13894 fail:
13895 return NULL;
13896 }
13897
13898
13899 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
13900 PyObject *resultobj;
13901 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13902 wxString *arg2 = 0 ;
13903 bool temp2 = False ;
13904 PyObject * obj0 = 0 ;
13905 PyObject * obj1 = 0 ;
13906 char *kwnames[] = {
13907 (char *) "self",(char *) "label", NULL
13908 };
13909
13910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
13911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13913 {
13914 arg2 = wxString_in_helper(obj1);
13915 if (arg2 == NULL) SWIG_fail;
13916 temp2 = True;
13917 }
13918 {
13919 PyThreadState* __tstate = wxPyBeginAllowThreads();
13920 (arg1)->SetLabel((wxString const &)*arg2);
13921
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 Py_INCREF(Py_None); resultobj = Py_None;
13926 {
13927 if (temp2)
13928 delete arg2;
13929 }
13930 return resultobj;
13931 fail:
13932 {
13933 if (temp2)
13934 delete arg2;
13935 }
13936 return NULL;
13937 }
13938
13939
13940 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13941 PyObject *resultobj;
13942 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13943 wxVisualAttributes result;
13944 PyObject * obj0 = 0 ;
13945 char *kwnames[] = {
13946 (char *) "variant", NULL
13947 };
13948
13949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13950 if (obj0) {
13951 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 }
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
13957
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 {
13962 wxVisualAttributes * resultptr;
13963 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13964 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13965 }
13966 return resultobj;
13967 fail:
13968 return NULL;
13969 }
13970
13971
13972 static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
13973 PyObject *obj;
13974 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13975 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
13976 Py_INCREF(obj);
13977 return Py_BuildValue((char *)"");
13978 }
13979 static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
13980 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
13981 return 1;
13982 }
13983
13984
13985 static PyObject *_wrap_NOTEBOOK_NAME_get() {
13986 PyObject *pyobj;
13987
13988 {
13989 #if wxUSE_UNICODE
13990 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13991 #else
13992 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13993 #endif
13994 }
13995 return pyobj;
13996 }
13997
13998
13999 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14000 PyObject *resultobj;
14001 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14002 size_t result;
14003 PyObject * obj0 = 0 ;
14004 char *kwnames[] = {
14005 (char *) "self", NULL
14006 };
14007
14008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
14009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
14014
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14019 return resultobj;
14020 fail:
14021 return NULL;
14022 }
14023
14024
14025 static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14026 PyObject *resultobj;
14027 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14028 size_t arg2 ;
14029 wxWindow *result;
14030 PyObject * obj0 = 0 ;
14031 PyObject * obj1 = 0 ;
14032 char *kwnames[] = {
14033 (char *) "self",(char *) "n", NULL
14034 };
14035
14036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
14037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14039 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14040 if (PyErr_Occurred()) SWIG_fail;
14041 {
14042 PyThreadState* __tstate = wxPyBeginAllowThreads();
14043 result = (wxWindow *)(arg1)->GetPage(arg2);
14044
14045 wxPyEndAllowThreads(__tstate);
14046 if (PyErr_Occurred()) SWIG_fail;
14047 }
14048 {
14049 resultobj = wxPyMake_wxObject(result);
14050 }
14051 return resultobj;
14052 fail:
14053 return NULL;
14054 }
14055
14056
14057 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14058 PyObject *resultobj;
14059 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14060 int result;
14061 PyObject * obj0 = 0 ;
14062 char *kwnames[] = {
14063 (char *) "self", NULL
14064 };
14065
14066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14069 {
14070 PyThreadState* __tstate = wxPyBeginAllowThreads();
14071 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14072
14073 wxPyEndAllowThreads(__tstate);
14074 if (PyErr_Occurred()) SWIG_fail;
14075 }
14076 resultobj = SWIG_FromInt((int)result);
14077 return resultobj;
14078 fail:
14079 return NULL;
14080 }
14081
14082
14083 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14084 PyObject *resultobj;
14085 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14086 size_t arg2 ;
14087 wxString *arg3 = 0 ;
14088 bool result;
14089 bool temp3 = False ;
14090 PyObject * obj0 = 0 ;
14091 PyObject * obj1 = 0 ;
14092 PyObject * obj2 = 0 ;
14093 char *kwnames[] = {
14094 (char *) "self",(char *) "n",(char *) "strText", NULL
14095 };
14096
14097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14100 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14101 if (PyErr_Occurred()) SWIG_fail;
14102 {
14103 arg3 = wxString_in_helper(obj2);
14104 if (arg3 == NULL) SWIG_fail;
14105 temp3 = True;
14106 }
14107 {
14108 PyThreadState* __tstate = wxPyBeginAllowThreads();
14109 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14110
14111 wxPyEndAllowThreads(__tstate);
14112 if (PyErr_Occurred()) SWIG_fail;
14113 }
14114 {
14115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14116 }
14117 {
14118 if (temp3)
14119 delete arg3;
14120 }
14121 return resultobj;
14122 fail:
14123 {
14124 if (temp3)
14125 delete arg3;
14126 }
14127 return NULL;
14128 }
14129
14130
14131 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14132 PyObject *resultobj;
14133 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14134 size_t arg2 ;
14135 wxString result;
14136 PyObject * obj0 = 0 ;
14137 PyObject * obj1 = 0 ;
14138 char *kwnames[] = {
14139 (char *) "self",(char *) "n", NULL
14140 };
14141
14142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14145 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14146 if (PyErr_Occurred()) SWIG_fail;
14147 {
14148 PyThreadState* __tstate = wxPyBeginAllowThreads();
14149 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14150
14151 wxPyEndAllowThreads(__tstate);
14152 if (PyErr_Occurred()) SWIG_fail;
14153 }
14154 {
14155 #if wxUSE_UNICODE
14156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14157 #else
14158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14159 #endif
14160 }
14161 return resultobj;
14162 fail:
14163 return NULL;
14164 }
14165
14166
14167 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14168 PyObject *resultobj;
14169 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14170 wxImageList *arg2 = (wxImageList *) 0 ;
14171 PyObject * obj0 = 0 ;
14172 PyObject * obj1 = 0 ;
14173 char *kwnames[] = {
14174 (char *) "self",(char *) "imageList", NULL
14175 };
14176
14177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14180 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14182 {
14183 PyThreadState* __tstate = wxPyBeginAllowThreads();
14184 (arg1)->SetImageList(arg2);
14185
14186 wxPyEndAllowThreads(__tstate);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 Py_INCREF(Py_None); resultobj = Py_None;
14190 return resultobj;
14191 fail:
14192 return NULL;
14193 }
14194
14195
14196 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14197 PyObject *resultobj;
14198 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14199 wxImageList *arg2 = (wxImageList *) 0 ;
14200 PyObject * obj0 = 0 ;
14201 PyObject * obj1 = 0 ;
14202 char *kwnames[] = {
14203 (char *) "self",(char *) "imageList", NULL
14204 };
14205
14206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14210 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14211 {
14212 PyThreadState* __tstate = wxPyBeginAllowThreads();
14213 (arg1)->AssignImageList(arg2);
14214
14215 wxPyEndAllowThreads(__tstate);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 }
14218 Py_INCREF(Py_None); resultobj = Py_None;
14219 return resultobj;
14220 fail:
14221 return NULL;
14222 }
14223
14224
14225 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14226 PyObject *resultobj;
14227 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14228 wxImageList *result;
14229 PyObject * obj0 = 0 ;
14230 char *kwnames[] = {
14231 (char *) "self", NULL
14232 };
14233
14234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14237 {
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14240
14241 wxPyEndAllowThreads(__tstate);
14242 if (PyErr_Occurred()) SWIG_fail;
14243 }
14244 {
14245 resultobj = wxPyMake_wxObject(result);
14246 }
14247 return resultobj;
14248 fail:
14249 return NULL;
14250 }
14251
14252
14253 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14254 PyObject *resultobj;
14255 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14256 size_t arg2 ;
14257 int result;
14258 PyObject * obj0 = 0 ;
14259 PyObject * obj1 = 0 ;
14260 char *kwnames[] = {
14261 (char *) "self",(char *) "n", NULL
14262 };
14263
14264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14267 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14268 if (PyErr_Occurred()) SWIG_fail;
14269 {
14270 PyThreadState* __tstate = wxPyBeginAllowThreads();
14271 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14272
14273 wxPyEndAllowThreads(__tstate);
14274 if (PyErr_Occurred()) SWIG_fail;
14275 }
14276 resultobj = SWIG_FromInt((int)result);
14277 return resultobj;
14278 fail:
14279 return NULL;
14280 }
14281
14282
14283 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14284 PyObject *resultobj;
14285 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14286 size_t arg2 ;
14287 int arg3 ;
14288 bool result;
14289 PyObject * obj0 = 0 ;
14290 PyObject * obj1 = 0 ;
14291 PyObject * obj2 = 0 ;
14292 char *kwnames[] = {
14293 (char *) "self",(char *) "n",(char *) "imageId", NULL
14294 };
14295
14296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14299 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14300 if (PyErr_Occurred()) SWIG_fail;
14301 arg3 = (int) SWIG_AsInt(obj2);
14302 if (PyErr_Occurred()) SWIG_fail;
14303 {
14304 PyThreadState* __tstate = wxPyBeginAllowThreads();
14305 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14306
14307 wxPyEndAllowThreads(__tstate);
14308 if (PyErr_Occurred()) SWIG_fail;
14309 }
14310 {
14311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14312 }
14313 return resultobj;
14314 fail:
14315 return NULL;
14316 }
14317
14318
14319 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14320 PyObject *resultobj;
14321 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14322 wxSize *arg2 = 0 ;
14323 wxSize temp2 ;
14324 PyObject * obj0 = 0 ;
14325 PyObject * obj1 = 0 ;
14326 char *kwnames[] = {
14327 (char *) "self",(char *) "size", NULL
14328 };
14329
14330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14333 {
14334 arg2 = &temp2;
14335 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14336 }
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 (arg1)->SetPageSize((wxSize const &)*arg2);
14340
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 Py_INCREF(Py_None); resultobj = Py_None;
14345 return resultobj;
14346 fail:
14347 return NULL;
14348 }
14349
14350
14351 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14352 PyObject *resultobj;
14353 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14354 wxSize *arg2 = 0 ;
14355 wxSize result;
14356 wxSize temp2 ;
14357 PyObject * obj0 = 0 ;
14358 PyObject * obj1 = 0 ;
14359 char *kwnames[] = {
14360 (char *) "self",(char *) "sizePage", NULL
14361 };
14362
14363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14366 {
14367 arg2 = &temp2;
14368 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14369 }
14370 {
14371 PyThreadState* __tstate = wxPyBeginAllowThreads();
14372 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14373
14374 wxPyEndAllowThreads(__tstate);
14375 if (PyErr_Occurred()) SWIG_fail;
14376 }
14377 {
14378 wxSize * resultptr;
14379 resultptr = new wxSize((wxSize &) result);
14380 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14381 }
14382 return resultobj;
14383 fail:
14384 return NULL;
14385 }
14386
14387
14388 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14389 PyObject *resultobj;
14390 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14391 size_t arg2 ;
14392 bool result;
14393 PyObject * obj0 = 0 ;
14394 PyObject * obj1 = 0 ;
14395 char *kwnames[] = {
14396 (char *) "self",(char *) "n", NULL
14397 };
14398
14399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14402 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14403 if (PyErr_Occurred()) SWIG_fail;
14404 {
14405 PyThreadState* __tstate = wxPyBeginAllowThreads();
14406 result = (bool)(arg1)->DeletePage(arg2);
14407
14408 wxPyEndAllowThreads(__tstate);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 }
14411 {
14412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14413 }
14414 return resultobj;
14415 fail:
14416 return NULL;
14417 }
14418
14419
14420 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14421 PyObject *resultobj;
14422 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14423 size_t arg2 ;
14424 bool result;
14425 PyObject * obj0 = 0 ;
14426 PyObject * obj1 = 0 ;
14427 char *kwnames[] = {
14428 (char *) "self",(char *) "n", NULL
14429 };
14430
14431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14434 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 {
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 result = (bool)(arg1)->RemovePage(arg2);
14439
14440 wxPyEndAllowThreads(__tstate);
14441 if (PyErr_Occurred()) SWIG_fail;
14442 }
14443 {
14444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14445 }
14446 return resultobj;
14447 fail:
14448 return NULL;
14449 }
14450
14451
14452 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
14453 PyObject *resultobj;
14454 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14455 bool result;
14456 PyObject * obj0 = 0 ;
14457 char *kwnames[] = {
14458 (char *) "self", NULL
14459 };
14460
14461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14464 {
14465 PyThreadState* __tstate = wxPyBeginAllowThreads();
14466 result = (bool)(arg1)->DeleteAllPages();
14467
14468 wxPyEndAllowThreads(__tstate);
14469 if (PyErr_Occurred()) SWIG_fail;
14470 }
14471 {
14472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14473 }
14474 return resultobj;
14475 fail:
14476 return NULL;
14477 }
14478
14479
14480 static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14481 PyObject *resultobj;
14482 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14483 wxWindow *arg2 = (wxWindow *) 0 ;
14484 wxString *arg3 = 0 ;
14485 bool arg4 = (bool) False ;
14486 int arg5 = (int) -1 ;
14487 bool result;
14488 bool temp3 = False ;
14489 PyObject * obj0 = 0 ;
14490 PyObject * obj1 = 0 ;
14491 PyObject * obj2 = 0 ;
14492 PyObject * obj3 = 0 ;
14493 PyObject * obj4 = 0 ;
14494 char *kwnames[] = {
14495 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14496 };
14497
14498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14501 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14503 {
14504 arg3 = wxString_in_helper(obj2);
14505 if (arg3 == NULL) SWIG_fail;
14506 temp3 = True;
14507 }
14508 if (obj3) {
14509 arg4 = (bool) SWIG_AsBool(obj3);
14510 if (PyErr_Occurred()) SWIG_fail;
14511 }
14512 if (obj4) {
14513 arg5 = (int) SWIG_AsInt(obj4);
14514 if (PyErr_Occurred()) SWIG_fail;
14515 }
14516 {
14517 PyThreadState* __tstate = wxPyBeginAllowThreads();
14518 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14519
14520 wxPyEndAllowThreads(__tstate);
14521 if (PyErr_Occurred()) SWIG_fail;
14522 }
14523 {
14524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14525 }
14526 {
14527 if (temp3)
14528 delete arg3;
14529 }
14530 return resultobj;
14531 fail:
14532 {
14533 if (temp3)
14534 delete arg3;
14535 }
14536 return NULL;
14537 }
14538
14539
14540 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14541 PyObject *resultobj;
14542 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14543 size_t arg2 ;
14544 wxWindow *arg3 = (wxWindow *) 0 ;
14545 wxString *arg4 = 0 ;
14546 bool arg5 = (bool) False ;
14547 int arg6 = (int) -1 ;
14548 bool result;
14549 bool temp4 = False ;
14550 PyObject * obj0 = 0 ;
14551 PyObject * obj1 = 0 ;
14552 PyObject * obj2 = 0 ;
14553 PyObject * obj3 = 0 ;
14554 PyObject * obj4 = 0 ;
14555 PyObject * obj5 = 0 ;
14556 char *kwnames[] = {
14557 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14558 };
14559
14560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14563 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14567 {
14568 arg4 = wxString_in_helper(obj3);
14569 if (arg4 == NULL) SWIG_fail;
14570 temp4 = True;
14571 }
14572 if (obj4) {
14573 arg5 = (bool) SWIG_AsBool(obj4);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 if (obj5) {
14577 arg6 = (int) SWIG_AsInt(obj5);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 }
14580 {
14581 PyThreadState* __tstate = wxPyBeginAllowThreads();
14582 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14583
14584 wxPyEndAllowThreads(__tstate);
14585 if (PyErr_Occurred()) SWIG_fail;
14586 }
14587 {
14588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14589 }
14590 {
14591 if (temp4)
14592 delete arg4;
14593 }
14594 return resultobj;
14595 fail:
14596 {
14597 if (temp4)
14598 delete arg4;
14599 }
14600 return NULL;
14601 }
14602
14603
14604 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14605 PyObject *resultobj;
14606 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14607 size_t arg2 ;
14608 int result;
14609 PyObject * obj0 = 0 ;
14610 PyObject * obj1 = 0 ;
14611 char *kwnames[] = {
14612 (char *) "self",(char *) "n", NULL
14613 };
14614
14615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14618 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14619 if (PyErr_Occurred()) SWIG_fail;
14620 {
14621 PyThreadState* __tstate = wxPyBeginAllowThreads();
14622 result = (int)(arg1)->SetSelection(arg2);
14623
14624 wxPyEndAllowThreads(__tstate);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 }
14627 resultobj = SWIG_FromInt((int)result);
14628 return resultobj;
14629 fail:
14630 return NULL;
14631 }
14632
14633
14634 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14635 PyObject *resultobj;
14636 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14637 bool arg2 = (bool) True ;
14638 PyObject * obj0 = 0 ;
14639 PyObject * obj1 = 0 ;
14640 char *kwnames[] = {
14641 (char *) "self",(char *) "forward", NULL
14642 };
14643
14644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14647 if (obj1) {
14648 arg2 = (bool) SWIG_AsBool(obj1);
14649 if (PyErr_Occurred()) SWIG_fail;
14650 }
14651 {
14652 PyThreadState* __tstate = wxPyBeginAllowThreads();
14653 (arg1)->AdvanceSelection(arg2);
14654
14655 wxPyEndAllowThreads(__tstate);
14656 if (PyErr_Occurred()) SWIG_fail;
14657 }
14658 Py_INCREF(Py_None); resultobj = Py_None;
14659 return resultobj;
14660 fail:
14661 return NULL;
14662 }
14663
14664
14665 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
14666 PyObject *resultobj;
14667 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14668 wxVisualAttributes result;
14669 PyObject * obj0 = 0 ;
14670 char *kwnames[] = {
14671 (char *) "variant", NULL
14672 };
14673
14674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14675 if (obj0) {
14676 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
14677 if (PyErr_Occurred()) SWIG_fail;
14678 }
14679 {
14680 PyThreadState* __tstate = wxPyBeginAllowThreads();
14681 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14682
14683 wxPyEndAllowThreads(__tstate);
14684 if (PyErr_Occurred()) SWIG_fail;
14685 }
14686 {
14687 wxVisualAttributes * resultptr;
14688 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14689 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14690 }
14691 return resultobj;
14692 fail:
14693 return NULL;
14694 }
14695
14696
14697 static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
14698 PyObject *obj;
14699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14700 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
14701 Py_INCREF(obj);
14702 return Py_BuildValue((char *)"");
14703 }
14704 static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14705 PyObject *resultobj;
14706 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14707 int arg2 = (int) 0 ;
14708 int arg3 = (int) -1 ;
14709 int arg4 = (int) -1 ;
14710 wxBookCtrlEvent *result;
14711 PyObject * obj0 = 0 ;
14712 PyObject * obj1 = 0 ;
14713 PyObject * obj2 = 0 ;
14714 PyObject * obj3 = 0 ;
14715 char *kwnames[] = {
14716 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14717 };
14718
14719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14720 if (obj0) {
14721 arg1 = (wxEventType) SWIG_AsInt(obj0);
14722 if (PyErr_Occurred()) SWIG_fail;
14723 }
14724 if (obj1) {
14725 arg2 = (int) SWIG_AsInt(obj1);
14726 if (PyErr_Occurred()) SWIG_fail;
14727 }
14728 if (obj2) {
14729 arg3 = (int) SWIG_AsInt(obj2);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 }
14732 if (obj3) {
14733 arg4 = (int) SWIG_AsInt(obj3);
14734 if (PyErr_Occurred()) SWIG_fail;
14735 }
14736 {
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
14739
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
14744 return resultobj;
14745 fail:
14746 return NULL;
14747 }
14748
14749
14750 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14751 PyObject *resultobj;
14752 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14753 int result;
14754 PyObject * obj0 = 0 ;
14755 char *kwnames[] = {
14756 (char *) "self", NULL
14757 };
14758
14759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
14760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14762 {
14763 PyThreadState* __tstate = wxPyBeginAllowThreads();
14764 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
14765
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 resultobj = SWIG_FromInt((int)result);
14770 return resultobj;
14771 fail:
14772 return NULL;
14773 }
14774
14775
14776 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14777 PyObject *resultobj;
14778 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14779 int arg2 ;
14780 PyObject * obj0 = 0 ;
14781 PyObject * obj1 = 0 ;
14782 char *kwnames[] = {
14783 (char *) "self",(char *) "nSel", NULL
14784 };
14785
14786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14789 arg2 = (int) SWIG_AsInt(obj1);
14790 if (PyErr_Occurred()) SWIG_fail;
14791 {
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 (arg1)->SetSelection(arg2);
14794
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 Py_INCREF(Py_None); resultobj = Py_None;
14799 return resultobj;
14800 fail:
14801 return NULL;
14802 }
14803
14804
14805 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14806 PyObject *resultobj;
14807 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14808 int result;
14809 PyObject * obj0 = 0 ;
14810 char *kwnames[] = {
14811 (char *) "self", NULL
14812 };
14813
14814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
14815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14817 {
14818 PyThreadState* __tstate = wxPyBeginAllowThreads();
14819 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
14820
14821 wxPyEndAllowThreads(__tstate);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 resultobj = SWIG_FromInt((int)result);
14825 return resultobj;
14826 fail:
14827 return NULL;
14828 }
14829
14830
14831 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14832 PyObject *resultobj;
14833 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14834 int arg2 ;
14835 PyObject * obj0 = 0 ;
14836 PyObject * obj1 = 0 ;
14837 char *kwnames[] = {
14838 (char *) "self",(char *) "nOldSel", NULL
14839 };
14840
14841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
14842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14844 arg2 = (int) SWIG_AsInt(obj1);
14845 if (PyErr_Occurred()) SWIG_fail;
14846 {
14847 PyThreadState* __tstate = wxPyBeginAllowThreads();
14848 (arg1)->SetOldSelection(arg2);
14849
14850 wxPyEndAllowThreads(__tstate);
14851 if (PyErr_Occurred()) SWIG_fail;
14852 }
14853 Py_INCREF(Py_None); resultobj = Py_None;
14854 return resultobj;
14855 fail:
14856 return NULL;
14857 }
14858
14859
14860 static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
14861 PyObject *obj;
14862 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14863 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
14864 Py_INCREF(obj);
14865 return Py_BuildValue((char *)"");
14866 }
14867 static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14868 PyObject *resultobj;
14869 wxWindow *arg1 = (wxWindow *) 0 ;
14870 int arg2 = (int) -1 ;
14871 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14872 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14873 wxSize const &arg4_defvalue = wxDefaultSize ;
14874 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14875 long arg5 = (long) 0 ;
14876 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
14877 wxString *arg6 = (wxString *) &arg6_defvalue ;
14878 wxNotebook *result;
14879 wxPoint temp3 ;
14880 wxSize temp4 ;
14881 bool temp6 = False ;
14882 PyObject * obj0 = 0 ;
14883 PyObject * obj1 = 0 ;
14884 PyObject * obj2 = 0 ;
14885 PyObject * obj3 = 0 ;
14886 PyObject * obj4 = 0 ;
14887 PyObject * obj5 = 0 ;
14888 char *kwnames[] = {
14889 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14890 };
14891
14892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14895 if (obj1) {
14896 arg2 = (int) SWIG_AsInt(obj1);
14897 if (PyErr_Occurred()) SWIG_fail;
14898 }
14899 if (obj2) {
14900 {
14901 arg3 = &temp3;
14902 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14903 }
14904 }
14905 if (obj3) {
14906 {
14907 arg4 = &temp4;
14908 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14909 }
14910 }
14911 if (obj4) {
14912 arg5 = (long) SWIG_AsLong(obj4);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 if (obj5) {
14916 {
14917 arg6 = wxString_in_helper(obj5);
14918 if (arg6 == NULL) SWIG_fail;
14919 temp6 = True;
14920 }
14921 }
14922 {
14923 PyThreadState* __tstate = wxPyBeginAllowThreads();
14924 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14925
14926 wxPyEndAllowThreads(__tstate);
14927 if (PyErr_Occurred()) SWIG_fail;
14928 }
14929 {
14930 resultobj = wxPyMake_wxObject(result);
14931 }
14932 {
14933 if (temp6)
14934 delete arg6;
14935 }
14936 return resultobj;
14937 fail:
14938 {
14939 if (temp6)
14940 delete arg6;
14941 }
14942 return NULL;
14943 }
14944
14945
14946 static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14947 PyObject *resultobj;
14948 wxNotebook *result;
14949 char *kwnames[] = {
14950 NULL
14951 };
14952
14953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
14954 {
14955 PyThreadState* __tstate = wxPyBeginAllowThreads();
14956 result = (wxNotebook *)new wxNotebook();
14957
14958 wxPyEndAllowThreads(__tstate);
14959 if (PyErr_Occurred()) SWIG_fail;
14960 }
14961 {
14962 resultobj = wxPyMake_wxObject(result);
14963 }
14964 return resultobj;
14965 fail:
14966 return NULL;
14967 }
14968
14969
14970 static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14971 PyObject *resultobj;
14972 wxNotebook *arg1 = (wxNotebook *) 0 ;
14973 wxWindow *arg2 = (wxWindow *) 0 ;
14974 int arg3 ;
14975 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14976 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14977 wxSize const &arg5_defvalue = wxDefaultSize ;
14978 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14979 long arg6 = (long) 0 ;
14980 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
14981 wxString *arg7 = (wxString *) &arg7_defvalue ;
14982 bool result;
14983 wxPoint temp4 ;
14984 wxSize temp5 ;
14985 bool temp7 = False ;
14986 PyObject * obj0 = 0 ;
14987 PyObject * obj1 = 0 ;
14988 PyObject * obj2 = 0 ;
14989 PyObject * obj3 = 0 ;
14990 PyObject * obj4 = 0 ;
14991 PyObject * obj5 = 0 ;
14992 PyObject * obj6 = 0 ;
14993 char *kwnames[] = {
14994 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14995 };
14996
14997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15000 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15002 arg3 = (int) SWIG_AsInt(obj2);
15003 if (PyErr_Occurred()) SWIG_fail;
15004 if (obj3) {
15005 {
15006 arg4 = &temp4;
15007 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15008 }
15009 }
15010 if (obj4) {
15011 {
15012 arg5 = &temp5;
15013 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15014 }
15015 }
15016 if (obj5) {
15017 arg6 = (long) SWIG_AsLong(obj5);
15018 if (PyErr_Occurred()) SWIG_fail;
15019 }
15020 if (obj6) {
15021 {
15022 arg7 = wxString_in_helper(obj6);
15023 if (arg7 == NULL) SWIG_fail;
15024 temp7 = True;
15025 }
15026 }
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15030
15031 wxPyEndAllowThreads(__tstate);
15032 if (PyErr_Occurred()) SWIG_fail;
15033 }
15034 {
15035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15036 }
15037 {
15038 if (temp7)
15039 delete arg7;
15040 }
15041 return resultobj;
15042 fail:
15043 {
15044 if (temp7)
15045 delete arg7;
15046 }
15047 return NULL;
15048 }
15049
15050
15051 static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj;
15053 wxNotebook *arg1 = (wxNotebook *) 0 ;
15054 int result;
15055 PyObject * obj0 = 0 ;
15056 char *kwnames[] = {
15057 (char *) "self", NULL
15058 };
15059
15060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15063 {
15064 PyThreadState* __tstate = wxPyBeginAllowThreads();
15065 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15066
15067 wxPyEndAllowThreads(__tstate);
15068 if (PyErr_Occurred()) SWIG_fail;
15069 }
15070 resultobj = SWIG_FromInt((int)result);
15071 return resultobj;
15072 fail:
15073 return NULL;
15074 }
15075
15076
15077 static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
15078 PyObject *resultobj;
15079 wxNotebook *arg1 = (wxNotebook *) 0 ;
15080 wxSize *arg2 = 0 ;
15081 wxSize temp2 ;
15082 PyObject * obj0 = 0 ;
15083 PyObject * obj1 = 0 ;
15084 char *kwnames[] = {
15085 (char *) "self",(char *) "padding", NULL
15086 };
15087
15088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15091 {
15092 arg2 = &temp2;
15093 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15094 }
15095 {
15096 PyThreadState* __tstate = wxPyBeginAllowThreads();
15097 (arg1)->SetPadding((wxSize const &)*arg2);
15098
15099 wxPyEndAllowThreads(__tstate);
15100 if (PyErr_Occurred()) SWIG_fail;
15101 }
15102 Py_INCREF(Py_None); resultobj = Py_None;
15103 return resultobj;
15104 fail:
15105 return NULL;
15106 }
15107
15108
15109 static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15110 PyObject *resultobj;
15111 wxNotebook *arg1 = (wxNotebook *) 0 ;
15112 wxSize *arg2 = 0 ;
15113 wxSize temp2 ;
15114 PyObject * obj0 = 0 ;
15115 PyObject * obj1 = 0 ;
15116 char *kwnames[] = {
15117 (char *) "self",(char *) "sz", NULL
15118 };
15119
15120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15123 {
15124 arg2 = &temp2;
15125 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15126 }
15127 {
15128 PyThreadState* __tstate = wxPyBeginAllowThreads();
15129 (arg1)->SetTabSize((wxSize const &)*arg2);
15130
15131 wxPyEndAllowThreads(__tstate);
15132 if (PyErr_Occurred()) SWIG_fail;
15133 }
15134 Py_INCREF(Py_None); resultobj = Py_None;
15135 return resultobj;
15136 fail:
15137 return NULL;
15138 }
15139
15140
15141 static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
15142 PyObject *resultobj;
15143 wxNotebook *arg1 = (wxNotebook *) 0 ;
15144 wxPoint *arg2 = 0 ;
15145 long *arg3 = (long *) 0 ;
15146 int result;
15147 wxPoint temp2 ;
15148 long temp3 ;
15149 PyObject * obj0 = 0 ;
15150 PyObject * obj1 = 0 ;
15151 char *kwnames[] = {
15152 (char *) "self",(char *) "pt", NULL
15153 };
15154
15155 arg3 = &temp3;
15156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",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 ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15162 }
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15166
15167 wxPyEndAllowThreads(__tstate);
15168 if (PyErr_Occurred()) SWIG_fail;
15169 }
15170 resultobj = SWIG_FromInt((int)result);
15171 {
15172 PyObject *o = PyInt_FromLong((long) (*arg3));
15173 resultobj = t_output_helper(resultobj,o);
15174 }
15175 return resultobj;
15176 fail:
15177 return NULL;
15178 }
15179
15180
15181 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
15182 PyObject *resultobj;
15183 wxNotebook *arg1 = (wxNotebook *) 0 ;
15184 wxSize *arg2 = 0 ;
15185 wxSize result;
15186 wxSize temp2 ;
15187 PyObject * obj0 = 0 ;
15188 PyObject * obj1 = 0 ;
15189 char *kwnames[] = {
15190 (char *) "self",(char *) "sizePage", NULL
15191 };
15192
15193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15196 {
15197 arg2 = &temp2;
15198 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15199 }
15200 {
15201 PyThreadState* __tstate = wxPyBeginAllowThreads();
15202 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15203
15204 wxPyEndAllowThreads(__tstate);
15205 if (PyErr_Occurred()) SWIG_fail;
15206 }
15207 {
15208 wxSize * resultptr;
15209 resultptr = new wxSize((wxSize &) result);
15210 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15211 }
15212 return resultobj;
15213 fail:
15214 return NULL;
15215 }
15216
15217
15218 static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
15219 PyObject *resultobj;
15220 wxNotebook *arg1 = (wxNotebook *) 0 ;
15221 wxWindow *arg2 = (wxWindow *) 0 ;
15222 wxColour *arg3 = 0 ;
15223 wxColour temp3 ;
15224 PyObject * obj0 = 0 ;
15225 PyObject * obj1 = 0 ;
15226 PyObject * obj2 = 0 ;
15227 char *kwnames[] = {
15228 (char *) "self",(char *) "window",(char *) "colour", NULL
15229 };
15230
15231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
15232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15234 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15236 {
15237 arg3 = &temp3;
15238 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15239 }
15240 {
15241 PyThreadState* __tstate = wxPyBeginAllowThreads();
15242 (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3);
15243
15244 wxPyEndAllowThreads(__tstate);
15245 if (PyErr_Occurred()) SWIG_fail;
15246 }
15247 Py_INCREF(Py_None); resultobj = Py_None;
15248 return resultobj;
15249 fail:
15250 return NULL;
15251 }
15252
15253
15254 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
15255 PyObject *resultobj;
15256 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15257 wxVisualAttributes result;
15258 PyObject * obj0 = 0 ;
15259 char *kwnames[] = {
15260 (char *) "variant", NULL
15261 };
15262
15263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15264 if (obj0) {
15265 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
15266 if (PyErr_Occurred()) SWIG_fail;
15267 }
15268 {
15269 PyThreadState* __tstate = wxPyBeginAllowThreads();
15270 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15271
15272 wxPyEndAllowThreads(__tstate);
15273 if (PyErr_Occurred()) SWIG_fail;
15274 }
15275 {
15276 wxVisualAttributes * resultptr;
15277 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15278 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15279 }
15280 return resultobj;
15281 fail:
15282 return NULL;
15283 }
15284
15285
15286 static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
15287 PyObject *obj;
15288 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15289 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15290 Py_INCREF(obj);
15291 return Py_BuildValue((char *)"");
15292 }
15293 static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15294 PyObject *resultobj;
15295 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15296 int arg2 = (int) 0 ;
15297 int arg3 = (int) -1 ;
15298 int arg4 = (int) -1 ;
15299 wxNotebookEvent *result;
15300 PyObject * obj0 = 0 ;
15301 PyObject * obj1 = 0 ;
15302 PyObject * obj2 = 0 ;
15303 PyObject * obj3 = 0 ;
15304 char *kwnames[] = {
15305 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15306 };
15307
15308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15309 if (obj0) {
15310 arg1 = (wxEventType) SWIG_AsInt(obj0);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 if (obj1) {
15314 arg2 = (int) SWIG_AsInt(obj1);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 if (obj2) {
15318 arg3 = (int) SWIG_AsInt(obj2);
15319 if (PyErr_Occurred()) SWIG_fail;
15320 }
15321 if (obj3) {
15322 arg4 = (int) SWIG_AsInt(obj3);
15323 if (PyErr_Occurred()) SWIG_fail;
15324 }
15325 {
15326 PyThreadState* __tstate = wxPyBeginAllowThreads();
15327 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15328
15329 wxPyEndAllowThreads(__tstate);
15330 if (PyErr_Occurred()) SWIG_fail;
15331 }
15332 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15333 return resultobj;
15334 fail:
15335 return NULL;
15336 }
15337
15338
15339 static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
15340 PyObject *obj;
15341 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15342 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15343 Py_INCREF(obj);
15344 return Py_BuildValue((char *)"");
15345 }
15346 static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15347 PyObject *resultobj;
15348 wxWindow *arg1 = (wxWindow *) 0 ;
15349 int arg2 = (int) -1 ;
15350 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15351 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15352 wxSize const &arg4_defvalue = wxDefaultSize ;
15353 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15354 long arg5 = (long) 0 ;
15355 wxString const &arg6_defvalue = wxPyEmptyString ;
15356 wxString *arg6 = (wxString *) &arg6_defvalue ;
15357 wxListbook *result;
15358 wxPoint temp3 ;
15359 wxSize temp4 ;
15360 bool temp6 = False ;
15361 PyObject * obj0 = 0 ;
15362 PyObject * obj1 = 0 ;
15363 PyObject * obj2 = 0 ;
15364 PyObject * obj3 = 0 ;
15365 PyObject * obj4 = 0 ;
15366 PyObject * obj5 = 0 ;
15367 char *kwnames[] = {
15368 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15369 };
15370
15371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15374 if (obj1) {
15375 arg2 = (int) SWIG_AsInt(obj1);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 if (obj2) {
15379 {
15380 arg3 = &temp3;
15381 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15382 }
15383 }
15384 if (obj3) {
15385 {
15386 arg4 = &temp4;
15387 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15388 }
15389 }
15390 if (obj4) {
15391 arg5 = (long) SWIG_AsLong(obj4);
15392 if (PyErr_Occurred()) SWIG_fail;
15393 }
15394 if (obj5) {
15395 {
15396 arg6 = wxString_in_helper(obj5);
15397 if (arg6 == NULL) SWIG_fail;
15398 temp6 = True;
15399 }
15400 }
15401 {
15402 PyThreadState* __tstate = wxPyBeginAllowThreads();
15403 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15404
15405 wxPyEndAllowThreads(__tstate);
15406 if (PyErr_Occurred()) SWIG_fail;
15407 }
15408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15409 {
15410 if (temp6)
15411 delete arg6;
15412 }
15413 return resultobj;
15414 fail:
15415 {
15416 if (temp6)
15417 delete arg6;
15418 }
15419 return NULL;
15420 }
15421
15422
15423 static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15424 PyObject *resultobj;
15425 wxListbook *result;
15426 char *kwnames[] = {
15427 NULL
15428 };
15429
15430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15431 {
15432 PyThreadState* __tstate = wxPyBeginAllowThreads();
15433 result = (wxListbook *)new wxListbook();
15434
15435 wxPyEndAllowThreads(__tstate);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15439 return resultobj;
15440 fail:
15441 return NULL;
15442 }
15443
15444
15445 static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
15446 PyObject *resultobj;
15447 wxListbook *arg1 = (wxListbook *) 0 ;
15448 wxWindow *arg2 = (wxWindow *) 0 ;
15449 int arg3 ;
15450 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15451 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15452 wxSize const &arg5_defvalue = wxDefaultSize ;
15453 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15454 long arg6 = (long) 0 ;
15455 wxString const &arg7_defvalue = wxPyEmptyString ;
15456 wxString *arg7 = (wxString *) &arg7_defvalue ;
15457 bool result;
15458 wxPoint temp4 ;
15459 wxSize temp5 ;
15460 bool temp7 = False ;
15461 PyObject * obj0 = 0 ;
15462 PyObject * obj1 = 0 ;
15463 PyObject * obj2 = 0 ;
15464 PyObject * obj3 = 0 ;
15465 PyObject * obj4 = 0 ;
15466 PyObject * obj5 = 0 ;
15467 PyObject * obj6 = 0 ;
15468 char *kwnames[] = {
15469 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15470 };
15471
15472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15475 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15477 arg3 = (int) SWIG_AsInt(obj2);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 if (obj3) {
15480 {
15481 arg4 = &temp4;
15482 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15483 }
15484 }
15485 if (obj4) {
15486 {
15487 arg5 = &temp5;
15488 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15489 }
15490 }
15491 if (obj5) {
15492 arg6 = (long) SWIG_AsLong(obj5);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
15495 if (obj6) {
15496 {
15497 arg7 = wxString_in_helper(obj6);
15498 if (arg7 == NULL) SWIG_fail;
15499 temp7 = True;
15500 }
15501 }
15502 {
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15505
15506 wxPyEndAllowThreads(__tstate);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 {
15510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15511 }
15512 {
15513 if (temp7)
15514 delete arg7;
15515 }
15516 return resultobj;
15517 fail:
15518 {
15519 if (temp7)
15520 delete arg7;
15521 }
15522 return NULL;
15523 }
15524
15525
15526 static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
15527 PyObject *resultobj;
15528 wxListbook *arg1 = (wxListbook *) 0 ;
15529 bool result;
15530 PyObject * obj0 = 0 ;
15531 char *kwnames[] = {
15532 (char *) "self", NULL
15533 };
15534
15535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15538 {
15539 PyThreadState* __tstate = wxPyBeginAllowThreads();
15540 result = (bool)((wxListbook const *)arg1)->IsVertical();
15541
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 {
15546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15547 }
15548 return resultobj;
15549 fail:
15550 return NULL;
15551 }
15552
15553
15554 static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
15555 PyObject *obj;
15556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15557 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15558 Py_INCREF(obj);
15559 return Py_BuildValue((char *)"");
15560 }
15561 static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15562 PyObject *resultobj;
15563 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15564 int arg2 = (int) 0 ;
15565 int arg3 = (int) -1 ;
15566 int arg4 = (int) -1 ;
15567 wxListbookEvent *result;
15568 PyObject * obj0 = 0 ;
15569 PyObject * obj1 = 0 ;
15570 PyObject * obj2 = 0 ;
15571 PyObject * obj3 = 0 ;
15572 char *kwnames[] = {
15573 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15574 };
15575
15576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15577 if (obj0) {
15578 arg1 = (wxEventType) SWIG_AsInt(obj0);
15579 if (PyErr_Occurred()) SWIG_fail;
15580 }
15581 if (obj1) {
15582 arg2 = (int) SWIG_AsInt(obj1);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 if (obj2) {
15586 arg3 = (int) SWIG_AsInt(obj2);
15587 if (PyErr_Occurred()) SWIG_fail;
15588 }
15589 if (obj3) {
15590 arg4 = (int) SWIG_AsInt(obj3);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
15595 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15596
15597 wxPyEndAllowThreads(__tstate);
15598 if (PyErr_Occurred()) SWIG_fail;
15599 }
15600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15601 return resultobj;
15602 fail:
15603 return NULL;
15604 }
15605
15606
15607 static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
15608 PyObject *obj;
15609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15610 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15611 Py_INCREF(obj);
15612 return Py_BuildValue((char *)"");
15613 }
15614 static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15615 PyObject *resultobj;
15616 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15617 wxBookCtrlSizer *result;
15618 PyObject * obj0 = 0 ;
15619 char *kwnames[] = {
15620 (char *) "nb", NULL
15621 };
15622
15623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15626 {
15627 PyThreadState* __tstate = wxPyBeginAllowThreads();
15628 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15629
15630 wxPyEndAllowThreads(__tstate);
15631 if (PyErr_Occurred()) SWIG_fail;
15632 }
15633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15634 return resultobj;
15635 fail:
15636 return NULL;
15637 }
15638
15639
15640 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15641 PyObject *resultobj;
15642 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15643 PyObject * obj0 = 0 ;
15644 char *kwnames[] = {
15645 (char *) "self", NULL
15646 };
15647
15648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15651 {
15652 PyThreadState* __tstate = wxPyBeginAllowThreads();
15653 (arg1)->RecalcSizes();
15654
15655 wxPyEndAllowThreads(__tstate);
15656 if (PyErr_Occurred()) SWIG_fail;
15657 }
15658 Py_INCREF(Py_None); resultobj = Py_None;
15659 return resultobj;
15660 fail:
15661 return NULL;
15662 }
15663
15664
15665 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15666 PyObject *resultobj;
15667 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15668 wxSize result;
15669 PyObject * obj0 = 0 ;
15670 char *kwnames[] = {
15671 (char *) "self", NULL
15672 };
15673
15674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
15675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15677 {
15678 PyThreadState* __tstate = wxPyBeginAllowThreads();
15679 result = (arg1)->CalcMin();
15680
15681 wxPyEndAllowThreads(__tstate);
15682 if (PyErr_Occurred()) SWIG_fail;
15683 }
15684 {
15685 wxSize * resultptr;
15686 resultptr = new wxSize((wxSize &) result);
15687 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15688 }
15689 return resultobj;
15690 fail:
15691 return NULL;
15692 }
15693
15694
15695 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15696 PyObject *resultobj;
15697 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15698 wxBookCtrl *result;
15699 PyObject * obj0 = 0 ;
15700 char *kwnames[] = {
15701 (char *) "self", NULL
15702 };
15703
15704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
15705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15707 {
15708 PyThreadState* __tstate = wxPyBeginAllowThreads();
15709 result = (wxBookCtrl *)(arg1)->GetControl();
15710
15711 wxPyEndAllowThreads(__tstate);
15712 if (PyErr_Occurred()) SWIG_fail;
15713 }
15714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
15715 return resultobj;
15716 fail:
15717 return NULL;
15718 }
15719
15720
15721 static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
15722 PyObject *obj;
15723 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15724 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
15725 Py_INCREF(obj);
15726 return Py_BuildValue((char *)"");
15727 }
15728 static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15729 PyObject *resultobj;
15730 wxNotebook *arg1 = (wxNotebook *) 0 ;
15731 wxNotebookSizer *result;
15732 PyObject * obj0 = 0 ;
15733 char *kwnames[] = {
15734 (char *) "nb", NULL
15735 };
15736
15737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
15738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15740 {
15741 PyThreadState* __tstate = wxPyBeginAllowThreads();
15742 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
15743
15744 wxPyEndAllowThreads(__tstate);
15745 if (PyErr_Occurred()) SWIG_fail;
15746 }
15747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
15748 return resultobj;
15749 fail:
15750 return NULL;
15751 }
15752
15753
15754 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15755 PyObject *resultobj;
15756 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15757 PyObject * obj0 = 0 ;
15758 char *kwnames[] = {
15759 (char *) "self", NULL
15760 };
15761
15762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15765 {
15766 PyThreadState* __tstate = wxPyBeginAllowThreads();
15767 (arg1)->RecalcSizes();
15768
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 Py_INCREF(Py_None); resultobj = Py_None;
15773 return resultobj;
15774 fail:
15775 return NULL;
15776 }
15777
15778
15779 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15780 PyObject *resultobj;
15781 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15782 wxSize result;
15783 PyObject * obj0 = 0 ;
15784 char *kwnames[] = {
15785 (char *) "self", NULL
15786 };
15787
15788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
15789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15791 {
15792 PyThreadState* __tstate = wxPyBeginAllowThreads();
15793 result = (arg1)->CalcMin();
15794
15795 wxPyEndAllowThreads(__tstate);
15796 if (PyErr_Occurred()) SWIG_fail;
15797 }
15798 {
15799 wxSize * resultptr;
15800 resultptr = new wxSize((wxSize &) result);
15801 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15802 }
15803 return resultobj;
15804 fail:
15805 return NULL;
15806 }
15807
15808
15809 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
15810 PyObject *resultobj;
15811 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15812 wxNotebook *result;
15813 PyObject * obj0 = 0 ;
15814 char *kwnames[] = {
15815 (char *) "self", NULL
15816 };
15817
15818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
15819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15821 {
15822 PyThreadState* __tstate = wxPyBeginAllowThreads();
15823 result = (wxNotebook *)(arg1)->GetNotebook();
15824
15825 wxPyEndAllowThreads(__tstate);
15826 if (PyErr_Occurred()) SWIG_fail;
15827 }
15828 {
15829 resultobj = wxPyMake_wxObject(result);
15830 }
15831 return resultobj;
15832 fail:
15833 return NULL;
15834 }
15835
15836
15837 static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
15838 PyObject *obj;
15839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15840 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
15841 Py_INCREF(obj);
15842 return Py_BuildValue((char *)"");
15843 }
15844 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
15845 PyObject *resultobj;
15846 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15847 int result;
15848 PyObject * obj0 = 0 ;
15849 char *kwnames[] = {
15850 (char *) "self", NULL
15851 };
15852
15853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
15854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15856 {
15857 PyThreadState* __tstate = wxPyBeginAllowThreads();
15858 result = (int)(arg1)->GetId();
15859
15860 wxPyEndAllowThreads(__tstate);
15861 if (PyErr_Occurred()) SWIG_fail;
15862 }
15863 resultobj = SWIG_FromInt((int)result);
15864 return resultobj;
15865 fail:
15866 return NULL;
15867 }
15868
15869
15870 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15871 PyObject *resultobj;
15872 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15873 wxControl *result;
15874 PyObject * obj0 = 0 ;
15875 char *kwnames[] = {
15876 (char *) "self", NULL
15877 };
15878
15879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
15880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15882 {
15883 PyThreadState* __tstate = wxPyBeginAllowThreads();
15884 result = (wxControl *)(arg1)->GetControl();
15885
15886 wxPyEndAllowThreads(__tstate);
15887 if (PyErr_Occurred()) SWIG_fail;
15888 }
15889 {
15890 resultobj = wxPyMake_wxObject(result);
15891 }
15892 return resultobj;
15893 fail:
15894 return NULL;
15895 }
15896
15897
15898 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
15899 PyObject *resultobj;
15900 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15901 wxToolBarBase *result;
15902 PyObject * obj0 = 0 ;
15903 char *kwnames[] = {
15904 (char *) "self", NULL
15905 };
15906
15907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
15908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15910 {
15911 PyThreadState* __tstate = wxPyBeginAllowThreads();
15912 result = (wxToolBarBase *)(arg1)->GetToolBar();
15913
15914 wxPyEndAllowThreads(__tstate);
15915 if (PyErr_Occurred()) SWIG_fail;
15916 }
15917 {
15918 resultobj = wxPyMake_wxObject(result);
15919 }
15920 return resultobj;
15921 fail:
15922 return NULL;
15923 }
15924
15925
15926 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
15927 PyObject *resultobj;
15928 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15929 int result;
15930 PyObject * obj0 = 0 ;
15931 char *kwnames[] = {
15932 (char *) "self", NULL
15933 };
15934
15935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
15936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15938 {
15939 PyThreadState* __tstate = wxPyBeginAllowThreads();
15940 result = (int)(arg1)->IsButton();
15941
15942 wxPyEndAllowThreads(__tstate);
15943 if (PyErr_Occurred()) SWIG_fail;
15944 }
15945 resultobj = SWIG_FromInt((int)result);
15946 return resultobj;
15947 fail:
15948 return NULL;
15949 }
15950
15951
15952 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15953 PyObject *resultobj;
15954 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15955 int result;
15956 PyObject * obj0 = 0 ;
15957 char *kwnames[] = {
15958 (char *) "self", NULL
15959 };
15960
15961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
15962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15964 {
15965 PyThreadState* __tstate = wxPyBeginAllowThreads();
15966 result = (int)(arg1)->IsControl();
15967
15968 wxPyEndAllowThreads(__tstate);
15969 if (PyErr_Occurred()) SWIG_fail;
15970 }
15971 resultobj = SWIG_FromInt((int)result);
15972 return resultobj;
15973 fail:
15974 return NULL;
15975 }
15976
15977
15978 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
15979 PyObject *resultobj;
15980 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15981 int result;
15982 PyObject * obj0 = 0 ;
15983 char *kwnames[] = {
15984 (char *) "self", NULL
15985 };
15986
15987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
15988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15990 {
15991 PyThreadState* __tstate = wxPyBeginAllowThreads();
15992 result = (int)(arg1)->IsSeparator();
15993
15994 wxPyEndAllowThreads(__tstate);
15995 if (PyErr_Occurred()) SWIG_fail;
15996 }
15997 resultobj = SWIG_FromInt((int)result);
15998 return resultobj;
15999 fail:
16000 return NULL;
16001 }
16002
16003
16004 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16005 PyObject *resultobj;
16006 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16007 int result;
16008 PyObject * obj0 = 0 ;
16009 char *kwnames[] = {
16010 (char *) "self", NULL
16011 };
16012
16013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16016 {
16017 PyThreadState* __tstate = wxPyBeginAllowThreads();
16018 result = (int)(arg1)->GetStyle();
16019
16020 wxPyEndAllowThreads(__tstate);
16021 if (PyErr_Occurred()) SWIG_fail;
16022 }
16023 resultobj = SWIG_FromInt((int)result);
16024 return resultobj;
16025 fail:
16026 return NULL;
16027 }
16028
16029
16030 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
16031 PyObject *resultobj;
16032 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16033 int result;
16034 PyObject * obj0 = 0 ;
16035 char *kwnames[] = {
16036 (char *) "self", NULL
16037 };
16038
16039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16042 {
16043 PyThreadState* __tstate = wxPyBeginAllowThreads();
16044 result = (int)(arg1)->GetKind();
16045
16046 wxPyEndAllowThreads(__tstate);
16047 if (PyErr_Occurred()) SWIG_fail;
16048 }
16049 resultobj = SWIG_FromInt((int)result);
16050 return resultobj;
16051 fail:
16052 return NULL;
16053 }
16054
16055
16056 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
16057 PyObject *resultobj;
16058 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16059 bool result;
16060 PyObject * obj0 = 0 ;
16061 char *kwnames[] = {
16062 (char *) "self", NULL
16063 };
16064
16065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16068 {
16069 PyThreadState* __tstate = wxPyBeginAllowThreads();
16070 result = (bool)(arg1)->IsEnabled();
16071
16072 wxPyEndAllowThreads(__tstate);
16073 if (PyErr_Occurred()) SWIG_fail;
16074 }
16075 {
16076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16077 }
16078 return resultobj;
16079 fail:
16080 return NULL;
16081 }
16082
16083
16084 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
16085 PyObject *resultobj;
16086 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16087 bool result;
16088 PyObject * obj0 = 0 ;
16089 char *kwnames[] = {
16090 (char *) "self", NULL
16091 };
16092
16093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16096 {
16097 PyThreadState* __tstate = wxPyBeginAllowThreads();
16098 result = (bool)(arg1)->IsToggled();
16099
16100 wxPyEndAllowThreads(__tstate);
16101 if (PyErr_Occurred()) SWIG_fail;
16102 }
16103 {
16104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16105 }
16106 return resultobj;
16107 fail:
16108 return NULL;
16109 }
16110
16111
16112 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
16113 PyObject *resultobj;
16114 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16115 bool result;
16116 PyObject * obj0 = 0 ;
16117 char *kwnames[] = {
16118 (char *) "self", NULL
16119 };
16120
16121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16124 {
16125 PyThreadState* __tstate = wxPyBeginAllowThreads();
16126 result = (bool)(arg1)->CanBeToggled();
16127
16128 wxPyEndAllowThreads(__tstate);
16129 if (PyErr_Occurred()) SWIG_fail;
16130 }
16131 {
16132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16133 }
16134 return resultobj;
16135 fail:
16136 return NULL;
16137 }
16138
16139
16140 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16141 PyObject *resultobj;
16142 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16143 wxBitmap *result;
16144 PyObject * obj0 = 0 ;
16145 char *kwnames[] = {
16146 (char *) "self", NULL
16147 };
16148
16149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16152 {
16153 PyThreadState* __tstate = wxPyBeginAllowThreads();
16154 {
16155 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16156 result = (wxBitmap *) &_result_ref;
16157 }
16158
16159 wxPyEndAllowThreads(__tstate);
16160 if (PyErr_Occurred()) SWIG_fail;
16161 }
16162 {
16163 wxBitmap* resultptr = new wxBitmap(*result);
16164 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16165 }
16166 return resultobj;
16167 fail:
16168 return NULL;
16169 }
16170
16171
16172 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16173 PyObject *resultobj;
16174 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16175 wxBitmap *result;
16176 PyObject * obj0 = 0 ;
16177 char *kwnames[] = {
16178 (char *) "self", NULL
16179 };
16180
16181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16184 {
16185 PyThreadState* __tstate = wxPyBeginAllowThreads();
16186 {
16187 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16188 result = (wxBitmap *) &_result_ref;
16189 }
16190
16191 wxPyEndAllowThreads(__tstate);
16192 if (PyErr_Occurred()) SWIG_fail;
16193 }
16194 {
16195 wxBitmap* resultptr = new wxBitmap(*result);
16196 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16197 }
16198 return resultobj;
16199 fail:
16200 return NULL;
16201 }
16202
16203
16204 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16205 PyObject *resultobj;
16206 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16207 wxBitmap result;
16208 PyObject * obj0 = 0 ;
16209 char *kwnames[] = {
16210 (char *) "self", NULL
16211 };
16212
16213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16216 {
16217 PyThreadState* __tstate = wxPyBeginAllowThreads();
16218 result = (arg1)->GetBitmap();
16219
16220 wxPyEndAllowThreads(__tstate);
16221 if (PyErr_Occurred()) SWIG_fail;
16222 }
16223 {
16224 wxBitmap * resultptr;
16225 resultptr = new wxBitmap((wxBitmap &) result);
16226 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16227 }
16228 return resultobj;
16229 fail:
16230 return NULL;
16231 }
16232
16233
16234 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16235 PyObject *resultobj;
16236 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16237 wxString result;
16238 PyObject * obj0 = 0 ;
16239 char *kwnames[] = {
16240 (char *) "self", NULL
16241 };
16242
16243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16246 {
16247 PyThreadState* __tstate = wxPyBeginAllowThreads();
16248 result = (arg1)->GetLabel();
16249
16250 wxPyEndAllowThreads(__tstate);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 {
16254 #if wxUSE_UNICODE
16255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16256 #else
16257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16258 #endif
16259 }
16260 return resultobj;
16261 fail:
16262 return NULL;
16263 }
16264
16265
16266 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj;
16268 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16269 wxString result;
16270 PyObject * obj0 = 0 ;
16271 char *kwnames[] = {
16272 (char *) "self", NULL
16273 };
16274
16275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 result = (arg1)->GetShortHelp();
16281
16282 wxPyEndAllowThreads(__tstate);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
16285 {
16286 #if wxUSE_UNICODE
16287 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16288 #else
16289 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16290 #endif
16291 }
16292 return resultobj;
16293 fail:
16294 return NULL;
16295 }
16296
16297
16298 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16299 PyObject *resultobj;
16300 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16301 wxString result;
16302 PyObject * obj0 = 0 ;
16303 char *kwnames[] = {
16304 (char *) "self", NULL
16305 };
16306
16307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16310 {
16311 PyThreadState* __tstate = wxPyBeginAllowThreads();
16312 result = (arg1)->GetLongHelp();
16313
16314 wxPyEndAllowThreads(__tstate);
16315 if (PyErr_Occurred()) SWIG_fail;
16316 }
16317 {
16318 #if wxUSE_UNICODE
16319 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16320 #else
16321 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16322 #endif
16323 }
16324 return resultobj;
16325 fail:
16326 return NULL;
16327 }
16328
16329
16330 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
16331 PyObject *resultobj;
16332 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16333 bool arg2 ;
16334 bool result;
16335 PyObject * obj0 = 0 ;
16336 PyObject * obj1 = 0 ;
16337 char *kwnames[] = {
16338 (char *) "self",(char *) "enable", NULL
16339 };
16340
16341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16344 arg2 = (bool) SWIG_AsBool(obj1);
16345 if (PyErr_Occurred()) SWIG_fail;
16346 {
16347 PyThreadState* __tstate = wxPyBeginAllowThreads();
16348 result = (bool)(arg1)->Enable(arg2);
16349
16350 wxPyEndAllowThreads(__tstate);
16351 if (PyErr_Occurred()) SWIG_fail;
16352 }
16353 {
16354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16355 }
16356 return resultobj;
16357 fail:
16358 return NULL;
16359 }
16360
16361
16362 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16363 PyObject *resultobj;
16364 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16365 PyObject * obj0 = 0 ;
16366 char *kwnames[] = {
16367 (char *) "self", NULL
16368 };
16369
16370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16373 {
16374 PyThreadState* __tstate = wxPyBeginAllowThreads();
16375 (arg1)->Toggle();
16376
16377 wxPyEndAllowThreads(__tstate);
16378 if (PyErr_Occurred()) SWIG_fail;
16379 }
16380 Py_INCREF(Py_None); resultobj = Py_None;
16381 return resultobj;
16382 fail:
16383 return NULL;
16384 }
16385
16386
16387 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16388 PyObject *resultobj;
16389 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16390 bool arg2 ;
16391 bool result;
16392 PyObject * obj0 = 0 ;
16393 PyObject * obj1 = 0 ;
16394 char *kwnames[] = {
16395 (char *) "self",(char *) "toggle", NULL
16396 };
16397
16398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16401 arg2 = (bool) SWIG_AsBool(obj1);
16402 if (PyErr_Occurred()) SWIG_fail;
16403 {
16404 PyThreadState* __tstate = wxPyBeginAllowThreads();
16405 result = (bool)(arg1)->SetToggle(arg2);
16406
16407 wxPyEndAllowThreads(__tstate);
16408 if (PyErr_Occurred()) SWIG_fail;
16409 }
16410 {
16411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16412 }
16413 return resultobj;
16414 fail:
16415 return NULL;
16416 }
16417
16418
16419 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16420 PyObject *resultobj;
16421 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16422 wxString *arg2 = 0 ;
16423 bool result;
16424 bool temp2 = False ;
16425 PyObject * obj0 = 0 ;
16426 PyObject * obj1 = 0 ;
16427 char *kwnames[] = {
16428 (char *) "self",(char *) "help", NULL
16429 };
16430
16431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16434 {
16435 arg2 = wxString_in_helper(obj1);
16436 if (arg2 == NULL) SWIG_fail;
16437 temp2 = True;
16438 }
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 result = (bool)(arg1)->SetShortHelp((wxString const &)*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 {
16450 if (temp2)
16451 delete arg2;
16452 }
16453 return resultobj;
16454 fail:
16455 {
16456 if (temp2)
16457 delete arg2;
16458 }
16459 return NULL;
16460 }
16461
16462
16463 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16464 PyObject *resultobj;
16465 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16466 wxString *arg2 = 0 ;
16467 bool result;
16468 bool temp2 = False ;
16469 PyObject * obj0 = 0 ;
16470 PyObject * obj1 = 0 ;
16471 char *kwnames[] = {
16472 (char *) "self",(char *) "help", NULL
16473 };
16474
16475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16478 {
16479 arg2 = wxString_in_helper(obj1);
16480 if (arg2 == NULL) SWIG_fail;
16481 temp2 = True;
16482 }
16483 {
16484 PyThreadState* __tstate = wxPyBeginAllowThreads();
16485 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16486
16487 wxPyEndAllowThreads(__tstate);
16488 if (PyErr_Occurred()) SWIG_fail;
16489 }
16490 {
16491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16492 }
16493 {
16494 if (temp2)
16495 delete arg2;
16496 }
16497 return resultobj;
16498 fail:
16499 {
16500 if (temp2)
16501 delete arg2;
16502 }
16503 return NULL;
16504 }
16505
16506
16507 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16508 PyObject *resultobj;
16509 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16510 wxBitmap *arg2 = 0 ;
16511 PyObject * obj0 = 0 ;
16512 PyObject * obj1 = 0 ;
16513 char *kwnames[] = {
16514 (char *) "self",(char *) "bmp", NULL
16515 };
16516
16517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16520 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16521 SWIG_POINTER_EXCEPTION | 0)) == -1)
16522 SWIG_fail;
16523 if (arg2 == NULL) {
16524 PyErr_SetString(PyExc_TypeError,"null reference");
16525 SWIG_fail;
16526 }
16527 {
16528 PyThreadState* __tstate = wxPyBeginAllowThreads();
16529 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16530
16531 wxPyEndAllowThreads(__tstate);
16532 if (PyErr_Occurred()) SWIG_fail;
16533 }
16534 Py_INCREF(Py_None); resultobj = Py_None;
16535 return resultobj;
16536 fail:
16537 return NULL;
16538 }
16539
16540
16541 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16542 PyObject *resultobj;
16543 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16544 wxBitmap *arg2 = 0 ;
16545 PyObject * obj0 = 0 ;
16546 PyObject * obj1 = 0 ;
16547 char *kwnames[] = {
16548 (char *) "self",(char *) "bmp", NULL
16549 };
16550
16551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16554 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16555 SWIG_POINTER_EXCEPTION | 0)) == -1)
16556 SWIG_fail;
16557 if (arg2 == NULL) {
16558 PyErr_SetString(PyExc_TypeError,"null reference");
16559 SWIG_fail;
16560 }
16561 {
16562 PyThreadState* __tstate = wxPyBeginAllowThreads();
16563 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16564
16565 wxPyEndAllowThreads(__tstate);
16566 if (PyErr_Occurred()) SWIG_fail;
16567 }
16568 Py_INCREF(Py_None); resultobj = Py_None;
16569 return resultobj;
16570 fail:
16571 return NULL;
16572 }
16573
16574
16575 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16576 PyObject *resultobj;
16577 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16578 wxString *arg2 = 0 ;
16579 bool temp2 = False ;
16580 PyObject * obj0 = 0 ;
16581 PyObject * obj1 = 0 ;
16582 char *kwnames[] = {
16583 (char *) "self",(char *) "label", NULL
16584 };
16585
16586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16589 {
16590 arg2 = wxString_in_helper(obj1);
16591 if (arg2 == NULL) SWIG_fail;
16592 temp2 = True;
16593 }
16594 {
16595 PyThreadState* __tstate = wxPyBeginAllowThreads();
16596 (arg1)->SetLabel((wxString const &)*arg2);
16597
16598 wxPyEndAllowThreads(__tstate);
16599 if (PyErr_Occurred()) SWIG_fail;
16600 }
16601 Py_INCREF(Py_None); resultobj = Py_None;
16602 {
16603 if (temp2)
16604 delete arg2;
16605 }
16606 return resultobj;
16607 fail:
16608 {
16609 if (temp2)
16610 delete arg2;
16611 }
16612 return NULL;
16613 }
16614
16615
16616 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
16617 PyObject *resultobj;
16618 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16619 PyObject * obj0 = 0 ;
16620 char *kwnames[] = {
16621 (char *) "self", NULL
16622 };
16623
16624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16627 {
16628 PyThreadState* __tstate = wxPyBeginAllowThreads();
16629 (arg1)->Detach();
16630
16631 wxPyEndAllowThreads(__tstate);
16632 if (PyErr_Occurred()) SWIG_fail;
16633 }
16634 Py_INCREF(Py_None); resultobj = Py_None;
16635 return resultobj;
16636 fail:
16637 return NULL;
16638 }
16639
16640
16641 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
16642 PyObject *resultobj;
16643 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16644 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16645 PyObject * obj0 = 0 ;
16646 PyObject * obj1 = 0 ;
16647 char *kwnames[] = {
16648 (char *) "self",(char *) "tbar", NULL
16649 };
16650
16651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16654 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16656 {
16657 PyThreadState* __tstate = wxPyBeginAllowThreads();
16658 (arg1)->Attach(arg2);
16659
16660 wxPyEndAllowThreads(__tstate);
16661 if (PyErr_Occurred()) SWIG_fail;
16662 }
16663 Py_INCREF(Py_None); resultobj = Py_None;
16664 return resultobj;
16665 fail:
16666 return NULL;
16667 }
16668
16669
16670 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16671 PyObject *resultobj;
16672 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16673 PyObject *result;
16674 PyObject * obj0 = 0 ;
16675 char *kwnames[] = {
16676 (char *) "self", NULL
16677 };
16678
16679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
16680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16682 {
16683 PyThreadState* __tstate = wxPyBeginAllowThreads();
16684 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
16685
16686 wxPyEndAllowThreads(__tstate);
16687 if (PyErr_Occurred()) SWIG_fail;
16688 }
16689 resultobj = result;
16690 return resultobj;
16691 fail:
16692 return NULL;
16693 }
16694
16695
16696 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16697 PyObject *resultobj;
16698 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16699 PyObject *arg2 = (PyObject *) 0 ;
16700 PyObject * obj0 = 0 ;
16701 PyObject * obj1 = 0 ;
16702 char *kwnames[] = {
16703 (char *) "self",(char *) "clientData", NULL
16704 };
16705
16706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
16707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16709 arg2 = obj1;
16710 {
16711 PyThreadState* __tstate = wxPyBeginAllowThreads();
16712 wxToolBarToolBase_SetClientData(arg1,arg2);
16713
16714 wxPyEndAllowThreads(__tstate);
16715 if (PyErr_Occurred()) SWIG_fail;
16716 }
16717 Py_INCREF(Py_None); resultobj = Py_None;
16718 return resultobj;
16719 fail:
16720 return NULL;
16721 }
16722
16723
16724 static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
16725 PyObject *obj;
16726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16727 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
16728 Py_INCREF(obj);
16729 return Py_BuildValue((char *)"");
16730 }
16731 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16732 PyObject *resultobj;
16733 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16734 int arg2 ;
16735 wxString *arg3 = 0 ;
16736 wxBitmap *arg4 = 0 ;
16737 wxBitmap const &arg5_defvalue = wxNullBitmap ;
16738 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
16739 int arg6 = (int) wxITEM_NORMAL ;
16740 wxString const &arg7_defvalue = wxPyEmptyString ;
16741 wxString *arg7 = (wxString *) &arg7_defvalue ;
16742 wxString const &arg8_defvalue = wxPyEmptyString ;
16743 wxString *arg8 = (wxString *) &arg8_defvalue ;
16744 PyObject *arg9 = (PyObject *) NULL ;
16745 wxToolBarToolBase *result;
16746 bool temp3 = False ;
16747 bool temp7 = False ;
16748 bool temp8 = False ;
16749 PyObject * obj0 = 0 ;
16750 PyObject * obj1 = 0 ;
16751 PyObject * obj2 = 0 ;
16752 PyObject * obj3 = 0 ;
16753 PyObject * obj4 = 0 ;
16754 PyObject * obj5 = 0 ;
16755 PyObject * obj6 = 0 ;
16756 PyObject * obj7 = 0 ;
16757 PyObject * obj8 = 0 ;
16758 char *kwnames[] = {
16759 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16760 };
16761
16762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
16763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16765 arg2 = (int) SWIG_AsInt(obj1);
16766 if (PyErr_Occurred()) SWIG_fail;
16767 {
16768 arg3 = wxString_in_helper(obj2);
16769 if (arg3 == NULL) SWIG_fail;
16770 temp3 = True;
16771 }
16772 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16773 SWIG_POINTER_EXCEPTION | 0)) == -1)
16774 SWIG_fail;
16775 if (arg4 == NULL) {
16776 PyErr_SetString(PyExc_TypeError,"null reference");
16777 SWIG_fail;
16778 }
16779 if (obj4) {
16780 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16781 SWIG_POINTER_EXCEPTION | 0)) == -1)
16782 SWIG_fail;
16783 if (arg5 == NULL) {
16784 PyErr_SetString(PyExc_TypeError,"null reference");
16785 SWIG_fail;
16786 }
16787 }
16788 if (obj5) {
16789 arg6 = (wxItemKind) SWIG_AsInt(obj5);
16790 if (PyErr_Occurred()) SWIG_fail;
16791 }
16792 if (obj6) {
16793 {
16794 arg7 = wxString_in_helper(obj6);
16795 if (arg7 == NULL) SWIG_fail;
16796 temp7 = True;
16797 }
16798 }
16799 if (obj7) {
16800 {
16801 arg8 = wxString_in_helper(obj7);
16802 if (arg8 == NULL) SWIG_fail;
16803 temp8 = True;
16804 }
16805 }
16806 if (obj8) {
16807 arg9 = obj8;
16808 }
16809 {
16810 PyThreadState* __tstate = wxPyBeginAllowThreads();
16811 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
16812
16813 wxPyEndAllowThreads(__tstate);
16814 if (PyErr_Occurred()) SWIG_fail;
16815 }
16816 {
16817 resultobj = wxPyMake_wxObject(result);
16818 }
16819 {
16820 if (temp3)
16821 delete arg3;
16822 }
16823 {
16824 if (temp7)
16825 delete arg7;
16826 }
16827 {
16828 if (temp8)
16829 delete arg8;
16830 }
16831 return resultobj;
16832 fail:
16833 {
16834 if (temp3)
16835 delete arg3;
16836 }
16837 {
16838 if (temp7)
16839 delete arg7;
16840 }
16841 {
16842 if (temp8)
16843 delete arg8;
16844 }
16845 return NULL;
16846 }
16847
16848
16849 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16850 PyObject *resultobj;
16851 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16852 size_t arg2 ;
16853 int arg3 ;
16854 wxString *arg4 = 0 ;
16855 wxBitmap *arg5 = 0 ;
16856 wxBitmap const &arg6_defvalue = wxNullBitmap ;
16857 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
16858 int arg7 = (int) wxITEM_NORMAL ;
16859 wxString const &arg8_defvalue = wxPyEmptyString ;
16860 wxString *arg8 = (wxString *) &arg8_defvalue ;
16861 wxString const &arg9_defvalue = wxPyEmptyString ;
16862 wxString *arg9 = (wxString *) &arg9_defvalue ;
16863 PyObject *arg10 = (PyObject *) NULL ;
16864 wxToolBarToolBase *result;
16865 bool temp4 = False ;
16866 bool temp8 = False ;
16867 bool temp9 = False ;
16868 PyObject * obj0 = 0 ;
16869 PyObject * obj1 = 0 ;
16870 PyObject * obj2 = 0 ;
16871 PyObject * obj3 = 0 ;
16872 PyObject * obj4 = 0 ;
16873 PyObject * obj5 = 0 ;
16874 PyObject * obj6 = 0 ;
16875 PyObject * obj7 = 0 ;
16876 PyObject * obj8 = 0 ;
16877 PyObject * obj9 = 0 ;
16878 char *kwnames[] = {
16879 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16880 };
16881
16882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
16883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16885 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 arg3 = (int) SWIG_AsInt(obj2);
16888 if (PyErr_Occurred()) SWIG_fail;
16889 {
16890 arg4 = wxString_in_helper(obj3);
16891 if (arg4 == NULL) SWIG_fail;
16892 temp4 = True;
16893 }
16894 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16895 SWIG_POINTER_EXCEPTION | 0)) == -1)
16896 SWIG_fail;
16897 if (arg5 == NULL) {
16898 PyErr_SetString(PyExc_TypeError,"null reference");
16899 SWIG_fail;
16900 }
16901 if (obj5) {
16902 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
16903 SWIG_POINTER_EXCEPTION | 0)) == -1)
16904 SWIG_fail;
16905 if (arg6 == NULL) {
16906 PyErr_SetString(PyExc_TypeError,"null reference");
16907 SWIG_fail;
16908 }
16909 }
16910 if (obj6) {
16911 arg7 = (wxItemKind) SWIG_AsInt(obj6);
16912 if (PyErr_Occurred()) SWIG_fail;
16913 }
16914 if (obj7) {
16915 {
16916 arg8 = wxString_in_helper(obj7);
16917 if (arg8 == NULL) SWIG_fail;
16918 temp8 = True;
16919 }
16920 }
16921 if (obj8) {
16922 {
16923 arg9 = wxString_in_helper(obj8);
16924 if (arg9 == NULL) SWIG_fail;
16925 temp9 = True;
16926 }
16927 }
16928 if (obj9) {
16929 arg10 = obj9;
16930 }
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 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);
16934
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 {
16939 resultobj = wxPyMake_wxObject(result);
16940 }
16941 {
16942 if (temp4)
16943 delete arg4;
16944 }
16945 {
16946 if (temp8)
16947 delete arg8;
16948 }
16949 {
16950 if (temp9)
16951 delete arg9;
16952 }
16953 return resultobj;
16954 fail:
16955 {
16956 if (temp4)
16957 delete arg4;
16958 }
16959 {
16960 if (temp8)
16961 delete arg8;
16962 }
16963 {
16964 if (temp9)
16965 delete arg9;
16966 }
16967 return NULL;
16968 }
16969
16970
16971 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16972 PyObject *resultobj;
16973 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16974 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
16975 wxToolBarToolBase *result;
16976 PyObject * obj0 = 0 ;
16977 PyObject * obj1 = 0 ;
16978 char *kwnames[] = {
16979 (char *) "self",(char *) "tool", NULL
16980 };
16981
16982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
16983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16985 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
16986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16987 {
16988 PyThreadState* __tstate = wxPyBeginAllowThreads();
16989 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
16990
16991 wxPyEndAllowThreads(__tstate);
16992 if (PyErr_Occurred()) SWIG_fail;
16993 }
16994 {
16995 resultobj = wxPyMake_wxObject(result);
16996 }
16997 return resultobj;
16998 fail:
16999 return NULL;
17000 }
17001
17002
17003 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17004 PyObject *resultobj;
17005 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17006 size_t arg2 ;
17007 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17008 wxToolBarToolBase *result;
17009 PyObject * obj0 = 0 ;
17010 PyObject * obj1 = 0 ;
17011 PyObject * obj2 = 0 ;
17012 char *kwnames[] = {
17013 (char *) "self",(char *) "pos",(char *) "tool", NULL
17014 };
17015
17016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17019 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17020 if (PyErr_Occurred()) SWIG_fail;
17021 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17023 {
17024 PyThreadState* __tstate = wxPyBeginAllowThreads();
17025 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
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_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17040 PyObject *resultobj;
17041 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17042 wxControl *arg2 = (wxControl *) 0 ;
17043 wxToolBarToolBase *result;
17044 PyObject * obj0 = 0 ;
17045 PyObject * obj1 = 0 ;
17046 char *kwnames[] = {
17047 (char *) "self",(char *) "control", NULL
17048 };
17049
17050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17055 {
17056 PyThreadState* __tstate = wxPyBeginAllowThreads();
17057 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17058
17059 wxPyEndAllowThreads(__tstate);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 }
17062 {
17063 resultobj = wxPyMake_wxObject(result);
17064 }
17065 return resultobj;
17066 fail:
17067 return NULL;
17068 }
17069
17070
17071 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17072 PyObject *resultobj;
17073 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17074 size_t arg2 ;
17075 wxControl *arg3 = (wxControl *) 0 ;
17076 wxToolBarToolBase *result;
17077 PyObject * obj0 = 0 ;
17078 PyObject * obj1 = 0 ;
17079 PyObject * obj2 = 0 ;
17080 char *kwnames[] = {
17081 (char *) "self",(char *) "pos",(char *) "control", NULL
17082 };
17083
17084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17087 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17088 if (PyErr_Occurred()) SWIG_fail;
17089 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17091 {
17092 PyThreadState* __tstate = wxPyBeginAllowThreads();
17093 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
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_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17108 PyObject *resultobj;
17109 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17110 int arg2 ;
17111 wxControl *result;
17112 PyObject * obj0 = 0 ;
17113 PyObject * obj1 = 0 ;
17114 char *kwnames[] = {
17115 (char *) "self",(char *) "id", NULL
17116 };
17117
17118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17121 arg2 = (int) SWIG_AsInt(obj1);
17122 if (PyErr_Occurred()) SWIG_fail;
17123 {
17124 PyThreadState* __tstate = wxPyBeginAllowThreads();
17125 result = (wxControl *)(arg1)->FindControl(arg2);
17126
17127 wxPyEndAllowThreads(__tstate);
17128 if (PyErr_Occurred()) SWIG_fail;
17129 }
17130 {
17131 resultobj = wxPyMake_wxObject(result);
17132 }
17133 return resultobj;
17134 fail:
17135 return NULL;
17136 }
17137
17138
17139 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17140 PyObject *resultobj;
17141 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17142 wxToolBarToolBase *result;
17143 PyObject * obj0 = 0 ;
17144 char *kwnames[] = {
17145 (char *) "self", NULL
17146 };
17147
17148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17151 {
17152 PyThreadState* __tstate = wxPyBeginAllowThreads();
17153 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17154
17155 wxPyEndAllowThreads(__tstate);
17156 if (PyErr_Occurred()) SWIG_fail;
17157 }
17158 {
17159 resultobj = wxPyMake_wxObject(result);
17160 }
17161 return resultobj;
17162 fail:
17163 return NULL;
17164 }
17165
17166
17167 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17168 PyObject *resultobj;
17169 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17170 size_t arg2 ;
17171 wxToolBarToolBase *result;
17172 PyObject * obj0 = 0 ;
17173 PyObject * obj1 = 0 ;
17174 char *kwnames[] = {
17175 (char *) "self",(char *) "pos", NULL
17176 };
17177
17178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17181 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17182 if (PyErr_Occurred()) SWIG_fail;
17183 {
17184 PyThreadState* __tstate = wxPyBeginAllowThreads();
17185 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17186
17187 wxPyEndAllowThreads(__tstate);
17188 if (PyErr_Occurred()) SWIG_fail;
17189 }
17190 {
17191 resultobj = wxPyMake_wxObject(result);
17192 }
17193 return resultobj;
17194 fail:
17195 return NULL;
17196 }
17197
17198
17199 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17200 PyObject *resultobj;
17201 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17202 int arg2 ;
17203 wxToolBarToolBase *result;
17204 PyObject * obj0 = 0 ;
17205 PyObject * obj1 = 0 ;
17206 char *kwnames[] = {
17207 (char *) "self",(char *) "id", NULL
17208 };
17209
17210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17213 arg2 = (int) SWIG_AsInt(obj1);
17214 if (PyErr_Occurred()) SWIG_fail;
17215 {
17216 PyThreadState* __tstate = wxPyBeginAllowThreads();
17217 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17218
17219 wxPyEndAllowThreads(__tstate);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 }
17222 {
17223 resultobj = wxPyMake_wxObject(result);
17224 }
17225 return resultobj;
17226 fail:
17227 return NULL;
17228 }
17229
17230
17231 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17232 PyObject *resultobj;
17233 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17234 size_t arg2 ;
17235 bool result;
17236 PyObject * obj0 = 0 ;
17237 PyObject * obj1 = 0 ;
17238 char *kwnames[] = {
17239 (char *) "self",(char *) "pos", NULL
17240 };
17241
17242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17245 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17246 if (PyErr_Occurred()) SWIG_fail;
17247 {
17248 PyThreadState* __tstate = wxPyBeginAllowThreads();
17249 result = (bool)(arg1)->DeleteToolByPos(arg2);
17250
17251 wxPyEndAllowThreads(__tstate);
17252 if (PyErr_Occurred()) SWIG_fail;
17253 }
17254 {
17255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17256 }
17257 return resultobj;
17258 fail:
17259 return NULL;
17260 }
17261
17262
17263 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17264 PyObject *resultobj;
17265 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17266 int arg2 ;
17267 bool result;
17268 PyObject * obj0 = 0 ;
17269 PyObject * obj1 = 0 ;
17270 char *kwnames[] = {
17271 (char *) "self",(char *) "id", NULL
17272 };
17273
17274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17277 arg2 = (int) SWIG_AsInt(obj1);
17278 if (PyErr_Occurred()) SWIG_fail;
17279 {
17280 PyThreadState* __tstate = wxPyBeginAllowThreads();
17281 result = (bool)(arg1)->DeleteTool(arg2);
17282
17283 wxPyEndAllowThreads(__tstate);
17284 if (PyErr_Occurred()) SWIG_fail;
17285 }
17286 {
17287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17288 }
17289 return resultobj;
17290 fail:
17291 return NULL;
17292 }
17293
17294
17295 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
17296 PyObject *resultobj;
17297 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17298 PyObject * obj0 = 0 ;
17299 char *kwnames[] = {
17300 (char *) "self", NULL
17301 };
17302
17303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17306 {
17307 PyThreadState* __tstate = wxPyBeginAllowThreads();
17308 (arg1)->ClearTools();
17309
17310 wxPyEndAllowThreads(__tstate);
17311 if (PyErr_Occurred()) SWIG_fail;
17312 }
17313 Py_INCREF(Py_None); resultobj = Py_None;
17314 return resultobj;
17315 fail:
17316 return NULL;
17317 }
17318
17319
17320 static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
17321 PyObject *resultobj;
17322 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17323 bool result;
17324 PyObject * obj0 = 0 ;
17325 char *kwnames[] = {
17326 (char *) "self", NULL
17327 };
17328
17329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17332 {
17333 PyThreadState* __tstate = wxPyBeginAllowThreads();
17334 result = (bool)(arg1)->Realize();
17335
17336 wxPyEndAllowThreads(__tstate);
17337 if (PyErr_Occurred()) SWIG_fail;
17338 }
17339 {
17340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17341 }
17342 return resultobj;
17343 fail:
17344 return NULL;
17345 }
17346
17347
17348 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17349 PyObject *resultobj;
17350 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17351 int arg2 ;
17352 bool arg3 ;
17353 PyObject * obj0 = 0 ;
17354 PyObject * obj1 = 0 ;
17355 PyObject * obj2 = 0 ;
17356 char *kwnames[] = {
17357 (char *) "self",(char *) "id",(char *) "enable", NULL
17358 };
17359
17360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17363 arg2 = (int) SWIG_AsInt(obj1);
17364 if (PyErr_Occurred()) SWIG_fail;
17365 arg3 = (bool) SWIG_AsBool(obj2);
17366 if (PyErr_Occurred()) SWIG_fail;
17367 {
17368 PyThreadState* __tstate = wxPyBeginAllowThreads();
17369 (arg1)->EnableTool(arg2,arg3);
17370
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 Py_INCREF(Py_None); resultobj = Py_None;
17375 return resultobj;
17376 fail:
17377 return NULL;
17378 }
17379
17380
17381 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17382 PyObject *resultobj;
17383 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17384 int arg2 ;
17385 bool arg3 ;
17386 PyObject * obj0 = 0 ;
17387 PyObject * obj1 = 0 ;
17388 PyObject * obj2 = 0 ;
17389 char *kwnames[] = {
17390 (char *) "self",(char *) "id",(char *) "toggle", NULL
17391 };
17392
17393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17396 arg2 = (int) SWIG_AsInt(obj1);
17397 if (PyErr_Occurred()) SWIG_fail;
17398 arg3 = (bool) SWIG_AsBool(obj2);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 {
17401 PyThreadState* __tstate = wxPyBeginAllowThreads();
17402 (arg1)->ToggleTool(arg2,arg3);
17403
17404 wxPyEndAllowThreads(__tstate);
17405 if (PyErr_Occurred()) SWIG_fail;
17406 }
17407 Py_INCREF(Py_None); resultobj = Py_None;
17408 return resultobj;
17409 fail:
17410 return NULL;
17411 }
17412
17413
17414 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
17415 PyObject *resultobj;
17416 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17417 int arg2 ;
17418 bool arg3 ;
17419 PyObject * obj0 = 0 ;
17420 PyObject * obj1 = 0 ;
17421 PyObject * obj2 = 0 ;
17422 char *kwnames[] = {
17423 (char *) "self",(char *) "id",(char *) "toggle", NULL
17424 };
17425
17426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17429 arg2 = (int) SWIG_AsInt(obj1);
17430 if (PyErr_Occurred()) SWIG_fail;
17431 arg3 = (bool) SWIG_AsBool(obj2);
17432 if (PyErr_Occurred()) SWIG_fail;
17433 {
17434 PyThreadState* __tstate = wxPyBeginAllowThreads();
17435 (arg1)->SetToggle(arg2,arg3);
17436
17437 wxPyEndAllowThreads(__tstate);
17438 if (PyErr_Occurred()) SWIG_fail;
17439 }
17440 Py_INCREF(Py_None); resultobj = Py_None;
17441 return resultobj;
17442 fail:
17443 return NULL;
17444 }
17445
17446
17447 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17448 PyObject *resultobj;
17449 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17450 int arg2 ;
17451 PyObject *result;
17452 PyObject * obj0 = 0 ;
17453 PyObject * obj1 = 0 ;
17454 char *kwnames[] = {
17455 (char *) "self",(char *) "id", NULL
17456 };
17457
17458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17461 arg2 = (int) SWIG_AsInt(obj1);
17462 if (PyErr_Occurred()) SWIG_fail;
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17466
17467 wxPyEndAllowThreads(__tstate);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 resultobj = result;
17471 return resultobj;
17472 fail:
17473 return NULL;
17474 }
17475
17476
17477 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17478 PyObject *resultobj;
17479 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17480 int arg2 ;
17481 PyObject *arg3 = (PyObject *) 0 ;
17482 PyObject * obj0 = 0 ;
17483 PyObject * obj1 = 0 ;
17484 PyObject * obj2 = 0 ;
17485 char *kwnames[] = {
17486 (char *) "self",(char *) "id",(char *) "clientData", NULL
17487 };
17488
17489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17492 arg2 = (int) SWIG_AsInt(obj1);
17493 if (PyErr_Occurred()) SWIG_fail;
17494 arg3 = obj2;
17495 {
17496 PyThreadState* __tstate = wxPyBeginAllowThreads();
17497 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17498
17499 wxPyEndAllowThreads(__tstate);
17500 if (PyErr_Occurred()) SWIG_fail;
17501 }
17502 Py_INCREF(Py_None); resultobj = Py_None;
17503 return resultobj;
17504 fail:
17505 return NULL;
17506 }
17507
17508
17509 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17510 PyObject *resultobj;
17511 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17512 int arg2 ;
17513 int result;
17514 PyObject * obj0 = 0 ;
17515 PyObject * obj1 = 0 ;
17516 char *kwnames[] = {
17517 (char *) "self",(char *) "id", NULL
17518 };
17519
17520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17523 arg2 = (int) SWIG_AsInt(obj1);
17524 if (PyErr_Occurred()) SWIG_fail;
17525 {
17526 PyThreadState* __tstate = wxPyBeginAllowThreads();
17527 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17528
17529 wxPyEndAllowThreads(__tstate);
17530 if (PyErr_Occurred()) SWIG_fail;
17531 }
17532 resultobj = SWIG_FromInt((int)result);
17533 return resultobj;
17534 fail:
17535 return NULL;
17536 }
17537
17538
17539 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
17540 PyObject *resultobj;
17541 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17542 int arg2 ;
17543 bool result;
17544 PyObject * obj0 = 0 ;
17545 PyObject * obj1 = 0 ;
17546 char *kwnames[] = {
17547 (char *) "self",(char *) "id", NULL
17548 };
17549
17550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17553 arg2 = (int) SWIG_AsInt(obj1);
17554 if (PyErr_Occurred()) SWIG_fail;
17555 {
17556 PyThreadState* __tstate = wxPyBeginAllowThreads();
17557 result = (bool)(arg1)->GetToolState(arg2);
17558
17559 wxPyEndAllowThreads(__tstate);
17560 if (PyErr_Occurred()) SWIG_fail;
17561 }
17562 {
17563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17564 }
17565 return resultobj;
17566 fail:
17567 return NULL;
17568 }
17569
17570
17571 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17572 PyObject *resultobj;
17573 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17574 int arg2 ;
17575 bool result;
17576 PyObject * obj0 = 0 ;
17577 PyObject * obj1 = 0 ;
17578 char *kwnames[] = {
17579 (char *) "self",(char *) "id", NULL
17580 };
17581
17582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17585 arg2 = (int) SWIG_AsInt(obj1);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 {
17588 PyThreadState* __tstate = wxPyBeginAllowThreads();
17589 result = (bool)(arg1)->GetToolEnabled(arg2);
17590
17591 wxPyEndAllowThreads(__tstate);
17592 if (PyErr_Occurred()) SWIG_fail;
17593 }
17594 {
17595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17596 }
17597 return resultobj;
17598 fail:
17599 return NULL;
17600 }
17601
17602
17603 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17604 PyObject *resultobj;
17605 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17606 int arg2 ;
17607 wxString *arg3 = 0 ;
17608 bool temp3 = False ;
17609 PyObject * obj0 = 0 ;
17610 PyObject * obj1 = 0 ;
17611 PyObject * obj2 = 0 ;
17612 char *kwnames[] = {
17613 (char *) "self",(char *) "id",(char *) "helpString", NULL
17614 };
17615
17616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17619 arg2 = (int) SWIG_AsInt(obj1);
17620 if (PyErr_Occurred()) SWIG_fail;
17621 {
17622 arg3 = wxString_in_helper(obj2);
17623 if (arg3 == NULL) SWIG_fail;
17624 temp3 = True;
17625 }
17626 {
17627 PyThreadState* __tstate = wxPyBeginAllowThreads();
17628 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17629
17630 wxPyEndAllowThreads(__tstate);
17631 if (PyErr_Occurred()) SWIG_fail;
17632 }
17633 Py_INCREF(Py_None); resultobj = Py_None;
17634 {
17635 if (temp3)
17636 delete arg3;
17637 }
17638 return resultobj;
17639 fail:
17640 {
17641 if (temp3)
17642 delete arg3;
17643 }
17644 return NULL;
17645 }
17646
17647
17648 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17649 PyObject *resultobj;
17650 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17651 int arg2 ;
17652 wxString result;
17653 PyObject * obj0 = 0 ;
17654 PyObject * obj1 = 0 ;
17655 char *kwnames[] = {
17656 (char *) "self",(char *) "id", NULL
17657 };
17658
17659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17662 arg2 = (int) SWIG_AsInt(obj1);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 result = (arg1)->GetToolShortHelp(arg2);
17667
17668 wxPyEndAllowThreads(__tstate);
17669 if (PyErr_Occurred()) SWIG_fail;
17670 }
17671 {
17672 #if wxUSE_UNICODE
17673 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17674 #else
17675 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17676 #endif
17677 }
17678 return resultobj;
17679 fail:
17680 return NULL;
17681 }
17682
17683
17684 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17685 PyObject *resultobj;
17686 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17687 int arg2 ;
17688 wxString *arg3 = 0 ;
17689 bool temp3 = False ;
17690 PyObject * obj0 = 0 ;
17691 PyObject * obj1 = 0 ;
17692 PyObject * obj2 = 0 ;
17693 char *kwnames[] = {
17694 (char *) "self",(char *) "id",(char *) "helpString", NULL
17695 };
17696
17697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17700 arg2 = (int) SWIG_AsInt(obj1);
17701 if (PyErr_Occurred()) SWIG_fail;
17702 {
17703 arg3 = wxString_in_helper(obj2);
17704 if (arg3 == NULL) SWIG_fail;
17705 temp3 = True;
17706 }
17707 {
17708 PyThreadState* __tstate = wxPyBeginAllowThreads();
17709 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
17710
17711 wxPyEndAllowThreads(__tstate);
17712 if (PyErr_Occurred()) SWIG_fail;
17713 }
17714 Py_INCREF(Py_None); resultobj = Py_None;
17715 {
17716 if (temp3)
17717 delete arg3;
17718 }
17719 return resultobj;
17720 fail:
17721 {
17722 if (temp3)
17723 delete arg3;
17724 }
17725 return NULL;
17726 }
17727
17728
17729 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17730 PyObject *resultobj;
17731 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17732 int arg2 ;
17733 wxString result;
17734 PyObject * obj0 = 0 ;
17735 PyObject * obj1 = 0 ;
17736 char *kwnames[] = {
17737 (char *) "self",(char *) "id", NULL
17738 };
17739
17740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
17741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17743 arg2 = (int) SWIG_AsInt(obj1);
17744 if (PyErr_Occurred()) SWIG_fail;
17745 {
17746 PyThreadState* __tstate = wxPyBeginAllowThreads();
17747 result = (arg1)->GetToolLongHelp(arg2);
17748
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 {
17753 #if wxUSE_UNICODE
17754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17755 #else
17756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17757 #endif
17758 }
17759 return resultobj;
17760 fail:
17761 return NULL;
17762 }
17763
17764
17765 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
17766 PyObject *resultobj;
17767 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17768 int arg2 ;
17769 int arg3 ;
17770 PyObject * obj0 = 0 ;
17771 PyObject * obj1 = 0 ;
17772 PyObject * obj2 = 0 ;
17773 char *kwnames[] = {
17774 (char *) "self",(char *) "x",(char *) "y", NULL
17775 };
17776
17777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
17778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17780 arg2 = (int) SWIG_AsInt(obj1);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 arg3 = (int) SWIG_AsInt(obj2);
17783 if (PyErr_Occurred()) SWIG_fail;
17784 {
17785 PyThreadState* __tstate = wxPyBeginAllowThreads();
17786 (arg1)->SetMargins(arg2,arg3);
17787
17788 wxPyEndAllowThreads(__tstate);
17789 if (PyErr_Occurred()) SWIG_fail;
17790 }
17791 Py_INCREF(Py_None); resultobj = Py_None;
17792 return resultobj;
17793 fail:
17794 return NULL;
17795 }
17796
17797
17798 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17799 PyObject *resultobj;
17800 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17801 wxSize *arg2 = 0 ;
17802 wxSize temp2 ;
17803 PyObject * obj0 = 0 ;
17804 PyObject * obj1 = 0 ;
17805 char *kwnames[] = {
17806 (char *) "self",(char *) "size", NULL
17807 };
17808
17809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
17810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17812 {
17813 arg2 = &temp2;
17814 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17815 }
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 (arg1)->SetMargins((wxSize const &)*arg2);
17819
17820 wxPyEndAllowThreads(__tstate);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 }
17823 Py_INCREF(Py_None); resultobj = Py_None;
17824 return resultobj;
17825 fail:
17826 return NULL;
17827 }
17828
17829
17830 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17831 PyObject *resultobj;
17832 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17833 int arg2 ;
17834 PyObject * obj0 = 0 ;
17835 PyObject * obj1 = 0 ;
17836 char *kwnames[] = {
17837 (char *) "self",(char *) "packing", NULL
17838 };
17839
17840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
17841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17843 arg2 = (int) SWIG_AsInt(obj1);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 {
17846 PyThreadState* __tstate = wxPyBeginAllowThreads();
17847 (arg1)->SetToolPacking(arg2);
17848
17849 wxPyEndAllowThreads(__tstate);
17850 if (PyErr_Occurred()) SWIG_fail;
17851 }
17852 Py_INCREF(Py_None); resultobj = Py_None;
17853 return resultobj;
17854 fail:
17855 return NULL;
17856 }
17857
17858
17859 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17860 PyObject *resultobj;
17861 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17862 int arg2 ;
17863 PyObject * obj0 = 0 ;
17864 PyObject * obj1 = 0 ;
17865 char *kwnames[] = {
17866 (char *) "self",(char *) "separation", NULL
17867 };
17868
17869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
17870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17872 arg2 = (int) SWIG_AsInt(obj1);
17873 if (PyErr_Occurred()) SWIG_fail;
17874 {
17875 PyThreadState* __tstate = wxPyBeginAllowThreads();
17876 (arg1)->SetToolSeparation(arg2);
17877
17878 wxPyEndAllowThreads(__tstate);
17879 if (PyErr_Occurred()) SWIG_fail;
17880 }
17881 Py_INCREF(Py_None); resultobj = Py_None;
17882 return resultobj;
17883 fail:
17884 return NULL;
17885 }
17886
17887
17888 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17889 PyObject *resultobj;
17890 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17891 wxSize result;
17892 PyObject * obj0 = 0 ;
17893 char *kwnames[] = {
17894 (char *) "self", NULL
17895 };
17896
17897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
17898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17900 {
17901 PyThreadState* __tstate = wxPyBeginAllowThreads();
17902 result = (arg1)->GetToolMargins();
17903
17904 wxPyEndAllowThreads(__tstate);
17905 if (PyErr_Occurred()) SWIG_fail;
17906 }
17907 {
17908 wxSize * resultptr;
17909 resultptr = new wxSize((wxSize &) result);
17910 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17911 }
17912 return resultobj;
17913 fail:
17914 return NULL;
17915 }
17916
17917
17918 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17919 PyObject *resultobj;
17920 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17921 wxSize result;
17922 PyObject * obj0 = 0 ;
17923 char *kwnames[] = {
17924 (char *) "self", NULL
17925 };
17926
17927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
17928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17930 {
17931 PyThreadState* __tstate = wxPyBeginAllowThreads();
17932 result = (arg1)->GetMargins();
17933
17934 wxPyEndAllowThreads(__tstate);
17935 if (PyErr_Occurred()) SWIG_fail;
17936 }
17937 {
17938 wxSize * resultptr;
17939 resultptr = new wxSize((wxSize &) result);
17940 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17941 }
17942 return resultobj;
17943 fail:
17944 return NULL;
17945 }
17946
17947
17948 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17949 PyObject *resultobj;
17950 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17951 int result;
17952 PyObject * obj0 = 0 ;
17953 char *kwnames[] = {
17954 (char *) "self", NULL
17955 };
17956
17957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
17958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17960 {
17961 PyThreadState* __tstate = wxPyBeginAllowThreads();
17962 result = (int)(arg1)->GetToolPacking();
17963
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 resultobj = SWIG_FromInt((int)result);
17968 return resultobj;
17969 fail:
17970 return NULL;
17971 }
17972
17973
17974 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17975 PyObject *resultobj;
17976 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17977 int result;
17978 PyObject * obj0 = 0 ;
17979 char *kwnames[] = {
17980 (char *) "self", NULL
17981 };
17982
17983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
17984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17986 {
17987 PyThreadState* __tstate = wxPyBeginAllowThreads();
17988 result = (int)(arg1)->GetToolSeparation();
17989
17990 wxPyEndAllowThreads(__tstate);
17991 if (PyErr_Occurred()) SWIG_fail;
17992 }
17993 resultobj = SWIG_FromInt((int)result);
17994 return resultobj;
17995 fail:
17996 return NULL;
17997 }
17998
17999
18000 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
18001 PyObject *resultobj;
18002 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18003 int arg2 ;
18004 PyObject * obj0 = 0 ;
18005 PyObject * obj1 = 0 ;
18006 char *kwnames[] = {
18007 (char *) "self",(char *) "nRows", NULL
18008 };
18009
18010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18013 arg2 = (int) SWIG_AsInt(obj1);
18014 if (PyErr_Occurred()) SWIG_fail;
18015 {
18016 PyThreadState* __tstate = wxPyBeginAllowThreads();
18017 (arg1)->SetRows(arg2);
18018
18019 wxPyEndAllowThreads(__tstate);
18020 if (PyErr_Occurred()) SWIG_fail;
18021 }
18022 Py_INCREF(Py_None); resultobj = Py_None;
18023 return resultobj;
18024 fail:
18025 return NULL;
18026 }
18027
18028
18029 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
18030 PyObject *resultobj;
18031 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18032 int arg2 ;
18033 int arg3 ;
18034 PyObject * obj0 = 0 ;
18035 PyObject * obj1 = 0 ;
18036 PyObject * obj2 = 0 ;
18037 char *kwnames[] = {
18038 (char *) "self",(char *) "rows",(char *) "cols", NULL
18039 };
18040
18041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18044 arg2 = (int) SWIG_AsInt(obj1);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 arg3 = (int) SWIG_AsInt(obj2);
18047 if (PyErr_Occurred()) SWIG_fail;
18048 {
18049 PyThreadState* __tstate = wxPyBeginAllowThreads();
18050 (arg1)->SetMaxRowsCols(arg2,arg3);
18051
18052 wxPyEndAllowThreads(__tstate);
18053 if (PyErr_Occurred()) SWIG_fail;
18054 }
18055 Py_INCREF(Py_None); resultobj = Py_None;
18056 return resultobj;
18057 fail:
18058 return NULL;
18059 }
18060
18061
18062 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
18063 PyObject *resultobj;
18064 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18065 int result;
18066 PyObject * obj0 = 0 ;
18067 char *kwnames[] = {
18068 (char *) "self", NULL
18069 };
18070
18071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18074 {
18075 PyThreadState* __tstate = wxPyBeginAllowThreads();
18076 result = (int)(arg1)->GetMaxRows();
18077
18078 wxPyEndAllowThreads(__tstate);
18079 if (PyErr_Occurred()) SWIG_fail;
18080 }
18081 resultobj = SWIG_FromInt((int)result);
18082 return resultobj;
18083 fail:
18084 return NULL;
18085 }
18086
18087
18088 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
18089 PyObject *resultobj;
18090 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18091 int result;
18092 PyObject * obj0 = 0 ;
18093 char *kwnames[] = {
18094 (char *) "self", NULL
18095 };
18096
18097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 result = (int)(arg1)->GetMaxCols();
18103
18104 wxPyEndAllowThreads(__tstate);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 resultobj = SWIG_FromInt((int)result);
18108 return resultobj;
18109 fail:
18110 return NULL;
18111 }
18112
18113
18114 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18115 PyObject *resultobj;
18116 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18117 wxSize *arg2 = 0 ;
18118 wxSize temp2 ;
18119 PyObject * obj0 = 0 ;
18120 PyObject * obj1 = 0 ;
18121 char *kwnames[] = {
18122 (char *) "self",(char *) "size", NULL
18123 };
18124
18125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18128 {
18129 arg2 = &temp2;
18130 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18131 }
18132 {
18133 PyThreadState* __tstate = wxPyBeginAllowThreads();
18134 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18135
18136 wxPyEndAllowThreads(__tstate);
18137 if (PyErr_Occurred()) SWIG_fail;
18138 }
18139 Py_INCREF(Py_None); resultobj = Py_None;
18140 return resultobj;
18141 fail:
18142 return NULL;
18143 }
18144
18145
18146 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18147 PyObject *resultobj;
18148 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18149 wxSize result;
18150 PyObject * obj0 = 0 ;
18151 char *kwnames[] = {
18152 (char *) "self", NULL
18153 };
18154
18155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18158 {
18159 PyThreadState* __tstate = wxPyBeginAllowThreads();
18160 result = (arg1)->GetToolBitmapSize();
18161
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 {
18166 wxSize * resultptr;
18167 resultptr = new wxSize((wxSize &) result);
18168 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18169 }
18170 return resultobj;
18171 fail:
18172 return NULL;
18173 }
18174
18175
18176 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18177 PyObject *resultobj;
18178 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18179 wxSize result;
18180 PyObject * obj0 = 0 ;
18181 char *kwnames[] = {
18182 (char *) "self", NULL
18183 };
18184
18185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18188 {
18189 PyThreadState* __tstate = wxPyBeginAllowThreads();
18190 result = (arg1)->GetToolSize();
18191
18192 wxPyEndAllowThreads(__tstate);
18193 if (PyErr_Occurred()) SWIG_fail;
18194 }
18195 {
18196 wxSize * resultptr;
18197 resultptr = new wxSize((wxSize &) result);
18198 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18199 }
18200 return resultobj;
18201 fail:
18202 return NULL;
18203 }
18204
18205
18206 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18207 PyObject *resultobj;
18208 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18209 int arg2 ;
18210 int arg3 ;
18211 wxToolBarToolBase *result;
18212 PyObject * obj0 = 0 ;
18213 PyObject * obj1 = 0 ;
18214 PyObject * obj2 = 0 ;
18215 char *kwnames[] = {
18216 (char *) "self",(char *) "x",(char *) "y", NULL
18217 };
18218
18219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18222 arg2 = (int) SWIG_AsInt(obj1);
18223 if (PyErr_Occurred()) SWIG_fail;
18224 arg3 = (int) SWIG_AsInt(obj2);
18225 if (PyErr_Occurred()) SWIG_fail;
18226 {
18227 PyThreadState* __tstate = wxPyBeginAllowThreads();
18228 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18229
18230 wxPyEndAllowThreads(__tstate);
18231 if (PyErr_Occurred()) SWIG_fail;
18232 }
18233 {
18234 resultobj = wxPyMake_wxObject(result);
18235 }
18236 return resultobj;
18237 fail:
18238 return NULL;
18239 }
18240
18241
18242 static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
18243 PyObject *resultobj;
18244 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18245 int arg2 ;
18246 wxToolBarToolBase *result;
18247 PyObject * obj0 = 0 ;
18248 PyObject * obj1 = 0 ;
18249 char *kwnames[] = {
18250 (char *) "self",(char *) "toolid", NULL
18251 };
18252
18253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18256 arg2 = (int) SWIG_AsInt(obj1);
18257 if (PyErr_Occurred()) SWIG_fail;
18258 {
18259 PyThreadState* __tstate = wxPyBeginAllowThreads();
18260 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18261
18262 wxPyEndAllowThreads(__tstate);
18263 if (PyErr_Occurred()) SWIG_fail;
18264 }
18265 {
18266 resultobj = wxPyMake_wxObject(result);
18267 }
18268 return resultobj;
18269 fail:
18270 return NULL;
18271 }
18272
18273
18274 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
18275 PyObject *resultobj;
18276 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18277 bool result;
18278 PyObject * obj0 = 0 ;
18279 char *kwnames[] = {
18280 (char *) "self", NULL
18281 };
18282
18283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18286 {
18287 PyThreadState* __tstate = wxPyBeginAllowThreads();
18288 result = (bool)(arg1)->IsVertical();
18289
18290 wxPyEndAllowThreads(__tstate);
18291 if (PyErr_Occurred()) SWIG_fail;
18292 }
18293 {
18294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18295 }
18296 return resultobj;
18297 fail:
18298 return NULL;
18299 }
18300
18301
18302 static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
18303 PyObject *obj;
18304 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18305 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18306 Py_INCREF(obj);
18307 return Py_BuildValue((char *)"");
18308 }
18309 static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18310 PyObject *resultobj;
18311 wxWindow *arg1 = (wxWindow *) 0 ;
18312 int arg2 ;
18313 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18314 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18315 wxSize const &arg4_defvalue = wxDefaultSize ;
18316 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18317 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18318 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18319 wxString *arg6 = (wxString *) &arg6_defvalue ;
18320 wxToolBar *result;
18321 wxPoint temp3 ;
18322 wxSize temp4 ;
18323 bool temp6 = False ;
18324 PyObject * obj0 = 0 ;
18325 PyObject * obj1 = 0 ;
18326 PyObject * obj2 = 0 ;
18327 PyObject * obj3 = 0 ;
18328 PyObject * obj4 = 0 ;
18329 PyObject * obj5 = 0 ;
18330 char *kwnames[] = {
18331 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18332 };
18333
18334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18337 arg2 = (int) SWIG_AsInt(obj1);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 if (obj2) {
18340 {
18341 arg3 = &temp3;
18342 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18343 }
18344 }
18345 if (obj3) {
18346 {
18347 arg4 = &temp4;
18348 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18349 }
18350 }
18351 if (obj4) {
18352 arg5 = (long) SWIG_AsLong(obj4);
18353 if (PyErr_Occurred()) SWIG_fail;
18354 }
18355 if (obj5) {
18356 {
18357 arg6 = wxString_in_helper(obj5);
18358 if (arg6 == NULL) SWIG_fail;
18359 temp6 = True;
18360 }
18361 }
18362 {
18363 PyThreadState* __tstate = wxPyBeginAllowThreads();
18364 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18365
18366 wxPyEndAllowThreads(__tstate);
18367 if (PyErr_Occurred()) SWIG_fail;
18368 }
18369 {
18370 resultobj = wxPyMake_wxObject(result);
18371 }
18372 {
18373 if (temp6)
18374 delete arg6;
18375 }
18376 return resultobj;
18377 fail:
18378 {
18379 if (temp6)
18380 delete arg6;
18381 }
18382 return NULL;
18383 }
18384
18385
18386 static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18387 PyObject *resultobj;
18388 wxToolBar *result;
18389 char *kwnames[] = {
18390 NULL
18391 };
18392
18393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18394 {
18395 PyThreadState* __tstate = wxPyBeginAllowThreads();
18396 result = (wxToolBar *)new wxToolBar();
18397
18398 wxPyEndAllowThreads(__tstate);
18399 if (PyErr_Occurred()) SWIG_fail;
18400 }
18401 {
18402 resultobj = wxPyMake_wxObject(result);
18403 }
18404 return resultobj;
18405 fail:
18406 return NULL;
18407 }
18408
18409
18410 static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
18411 PyObject *resultobj;
18412 wxToolBar *arg1 = (wxToolBar *) 0 ;
18413 wxWindow *arg2 = (wxWindow *) 0 ;
18414 int arg3 ;
18415 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18416 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18417 wxSize const &arg5_defvalue = wxDefaultSize ;
18418 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18419 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18420 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18421 wxString *arg7 = (wxString *) &arg7_defvalue ;
18422 bool result;
18423 wxPoint temp4 ;
18424 wxSize temp5 ;
18425 bool temp7 = False ;
18426 PyObject * obj0 = 0 ;
18427 PyObject * obj1 = 0 ;
18428 PyObject * obj2 = 0 ;
18429 PyObject * obj3 = 0 ;
18430 PyObject * obj4 = 0 ;
18431 PyObject * obj5 = 0 ;
18432 PyObject * obj6 = 0 ;
18433 char *kwnames[] = {
18434 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18435 };
18436
18437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18440 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18442 arg3 = (int) SWIG_AsInt(obj2);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 if (obj3) {
18445 {
18446 arg4 = &temp4;
18447 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18448 }
18449 }
18450 if (obj4) {
18451 {
18452 arg5 = &temp5;
18453 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18454 }
18455 }
18456 if (obj5) {
18457 arg6 = (long) SWIG_AsLong(obj5);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 if (obj6) {
18461 {
18462 arg7 = wxString_in_helper(obj6);
18463 if (arg7 == NULL) SWIG_fail;
18464 temp7 = True;
18465 }
18466 }
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18470
18471 wxPyEndAllowThreads(__tstate);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 {
18475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18476 }
18477 {
18478 if (temp7)
18479 delete arg7;
18480 }
18481 return resultobj;
18482 fail:
18483 {
18484 if (temp7)
18485 delete arg7;
18486 }
18487 return NULL;
18488 }
18489
18490
18491 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18492 PyObject *resultobj;
18493 wxToolBar *arg1 = (wxToolBar *) 0 ;
18494 int arg2 ;
18495 int arg3 ;
18496 wxToolBarToolBase *result;
18497 PyObject * obj0 = 0 ;
18498 PyObject * obj1 = 0 ;
18499 PyObject * obj2 = 0 ;
18500 char *kwnames[] = {
18501 (char *) "self",(char *) "x",(char *) "y", NULL
18502 };
18503
18504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18507 arg2 = (int) SWIG_AsInt(obj1);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 arg3 = (int) SWIG_AsInt(obj2);
18510 if (PyErr_Occurred()) SWIG_fail;
18511 {
18512 PyThreadState* __tstate = wxPyBeginAllowThreads();
18513 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18514
18515 wxPyEndAllowThreads(__tstate);
18516 if (PyErr_Occurred()) SWIG_fail;
18517 }
18518 {
18519 resultobj = wxPyMake_wxObject(result);
18520 }
18521 return resultobj;
18522 fail:
18523 return NULL;
18524 }
18525
18526
18527 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18528 PyObject *resultobj;
18529 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18530 wxVisualAttributes result;
18531 PyObject * obj0 = 0 ;
18532 char *kwnames[] = {
18533 (char *) "variant", NULL
18534 };
18535
18536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18537 if (obj0) {
18538 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
18539 if (PyErr_Occurred()) SWIG_fail;
18540 }
18541 {
18542 PyThreadState* __tstate = wxPyBeginAllowThreads();
18543 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18544
18545 wxPyEndAllowThreads(__tstate);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 {
18549 wxVisualAttributes * resultptr;
18550 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18551 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18552 }
18553 return resultobj;
18554 fail:
18555 return NULL;
18556 }
18557
18558
18559 static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
18560 PyObject *obj;
18561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18562 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18563 Py_INCREF(obj);
18564 return Py_BuildValue((char *)"");
18565 }
18566 static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
18567 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18568 return 1;
18569 }
18570
18571
18572 static PyObject *_wrap_ListCtrlNameStr_get() {
18573 PyObject *pyobj;
18574
18575 {
18576 #if wxUSE_UNICODE
18577 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18578 #else
18579 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18580 #endif
18581 }
18582 return pyobj;
18583 }
18584
18585
18586 static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
18587 PyObject *resultobj;
18588 wxColour const &arg1_defvalue = wxNullColour ;
18589 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18590 wxColour const &arg2_defvalue = wxNullColour ;
18591 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18592 wxFont const &arg3_defvalue = wxNullFont ;
18593 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18594 wxListItemAttr *result;
18595 wxColour temp1 ;
18596 wxColour temp2 ;
18597 PyObject * obj0 = 0 ;
18598 PyObject * obj1 = 0 ;
18599 PyObject * obj2 = 0 ;
18600 char *kwnames[] = {
18601 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18602 };
18603
18604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18605 if (obj0) {
18606 {
18607 arg1 = &temp1;
18608 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18609 }
18610 }
18611 if (obj1) {
18612 {
18613 arg2 = &temp2;
18614 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18615 }
18616 }
18617 if (obj2) {
18618 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18619 SWIG_POINTER_EXCEPTION | 0)) == -1)
18620 SWIG_fail;
18621 if (arg3 == NULL) {
18622 PyErr_SetString(PyExc_TypeError,"null reference");
18623 SWIG_fail;
18624 }
18625 }
18626 {
18627 PyThreadState* __tstate = wxPyBeginAllowThreads();
18628 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18629
18630 wxPyEndAllowThreads(__tstate);
18631 if (PyErr_Occurred()) SWIG_fail;
18632 }
18633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18634 return resultobj;
18635 fail:
18636 return NULL;
18637 }
18638
18639
18640 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18641 PyObject *resultobj;
18642 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18643 wxColour *arg2 = 0 ;
18644 wxColour temp2 ;
18645 PyObject * obj0 = 0 ;
18646 PyObject * obj1 = 0 ;
18647 char *kwnames[] = {
18648 (char *) "self",(char *) "colText", NULL
18649 };
18650
18651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18654 {
18655 arg2 = &temp2;
18656 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18657 }
18658 {
18659 PyThreadState* __tstate = wxPyBeginAllowThreads();
18660 (arg1)->SetTextColour((wxColour const &)*arg2);
18661
18662 wxPyEndAllowThreads(__tstate);
18663 if (PyErr_Occurred()) SWIG_fail;
18664 }
18665 Py_INCREF(Py_None); resultobj = Py_None;
18666 return resultobj;
18667 fail:
18668 return NULL;
18669 }
18670
18671
18672 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18673 PyObject *resultobj;
18674 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18675 wxColour *arg2 = 0 ;
18676 wxColour temp2 ;
18677 PyObject * obj0 = 0 ;
18678 PyObject * obj1 = 0 ;
18679 char *kwnames[] = {
18680 (char *) "self",(char *) "colBack", NULL
18681 };
18682
18683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18686 {
18687 arg2 = &temp2;
18688 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18689 }
18690 {
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
18692 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18693
18694 wxPyEndAllowThreads(__tstate);
18695 if (PyErr_Occurred()) SWIG_fail;
18696 }
18697 Py_INCREF(Py_None); resultobj = Py_None;
18698 return resultobj;
18699 fail:
18700 return NULL;
18701 }
18702
18703
18704 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18705 PyObject *resultobj;
18706 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18707 wxFont *arg2 = 0 ;
18708 PyObject * obj0 = 0 ;
18709 PyObject * obj1 = 0 ;
18710 char *kwnames[] = {
18711 (char *) "self",(char *) "font", NULL
18712 };
18713
18714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
18715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18717 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18718 SWIG_POINTER_EXCEPTION | 0)) == -1)
18719 SWIG_fail;
18720 if (arg2 == NULL) {
18721 PyErr_SetString(PyExc_TypeError,"null reference");
18722 SWIG_fail;
18723 }
18724 {
18725 PyThreadState* __tstate = wxPyBeginAllowThreads();
18726 (arg1)->SetFont((wxFont const &)*arg2);
18727
18728 wxPyEndAllowThreads(__tstate);
18729 if (PyErr_Occurred()) SWIG_fail;
18730 }
18731 Py_INCREF(Py_None); resultobj = Py_None;
18732 return resultobj;
18733 fail:
18734 return NULL;
18735 }
18736
18737
18738 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18739 PyObject *resultobj;
18740 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18741 bool result;
18742 PyObject * obj0 = 0 ;
18743 char *kwnames[] = {
18744 (char *) "self", NULL
18745 };
18746
18747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
18748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18750 {
18751 PyThreadState* __tstate = wxPyBeginAllowThreads();
18752 result = (bool)(arg1)->HasTextColour();
18753
18754 wxPyEndAllowThreads(__tstate);
18755 if (PyErr_Occurred()) SWIG_fail;
18756 }
18757 {
18758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18759 }
18760 return resultobj;
18761 fail:
18762 return NULL;
18763 }
18764
18765
18766 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18767 PyObject *resultobj;
18768 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18769 bool result;
18770 PyObject * obj0 = 0 ;
18771 char *kwnames[] = {
18772 (char *) "self", NULL
18773 };
18774
18775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
18776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18778 {
18779 PyThreadState* __tstate = wxPyBeginAllowThreads();
18780 result = (bool)(arg1)->HasBackgroundColour();
18781
18782 wxPyEndAllowThreads(__tstate);
18783 if (PyErr_Occurred()) SWIG_fail;
18784 }
18785 {
18786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18787 }
18788 return resultobj;
18789 fail:
18790 return NULL;
18791 }
18792
18793
18794 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18795 PyObject *resultobj;
18796 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18797 bool result;
18798 PyObject * obj0 = 0 ;
18799 char *kwnames[] = {
18800 (char *) "self", NULL
18801 };
18802
18803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
18804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18806 {
18807 PyThreadState* __tstate = wxPyBeginAllowThreads();
18808 result = (bool)(arg1)->HasFont();
18809
18810 wxPyEndAllowThreads(__tstate);
18811 if (PyErr_Occurred()) SWIG_fail;
18812 }
18813 {
18814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18815 }
18816 return resultobj;
18817 fail:
18818 return NULL;
18819 }
18820
18821
18822 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18823 PyObject *resultobj;
18824 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18825 wxColour result;
18826 PyObject * obj0 = 0 ;
18827 char *kwnames[] = {
18828 (char *) "self", NULL
18829 };
18830
18831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
18832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18834 {
18835 PyThreadState* __tstate = wxPyBeginAllowThreads();
18836 result = (arg1)->GetTextColour();
18837
18838 wxPyEndAllowThreads(__tstate);
18839 if (PyErr_Occurred()) SWIG_fail;
18840 }
18841 {
18842 wxColour * resultptr;
18843 resultptr = new wxColour((wxColour &) result);
18844 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18845 }
18846 return resultobj;
18847 fail:
18848 return NULL;
18849 }
18850
18851
18852 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18853 PyObject *resultobj;
18854 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18855 wxColour result;
18856 PyObject * obj0 = 0 ;
18857 char *kwnames[] = {
18858 (char *) "self", NULL
18859 };
18860
18861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
18862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18864 {
18865 PyThreadState* __tstate = wxPyBeginAllowThreads();
18866 result = (arg1)->GetBackgroundColour();
18867
18868 wxPyEndAllowThreads(__tstate);
18869 if (PyErr_Occurred()) SWIG_fail;
18870 }
18871 {
18872 wxColour * resultptr;
18873 resultptr = new wxColour((wxColour &) result);
18874 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18875 }
18876 return resultobj;
18877 fail:
18878 return NULL;
18879 }
18880
18881
18882 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18883 PyObject *resultobj;
18884 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18885 wxFont result;
18886 PyObject * obj0 = 0 ;
18887 char *kwnames[] = {
18888 (char *) "self", NULL
18889 };
18890
18891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
18892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18894 {
18895 PyThreadState* __tstate = wxPyBeginAllowThreads();
18896 result = (arg1)->GetFont();
18897
18898 wxPyEndAllowThreads(__tstate);
18899 if (PyErr_Occurred()) SWIG_fail;
18900 }
18901 {
18902 wxFont * resultptr;
18903 resultptr = new wxFont((wxFont &) result);
18904 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18905 }
18906 return resultobj;
18907 fail:
18908 return NULL;
18909 }
18910
18911
18912 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
18913 PyObject *resultobj;
18914 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18915 PyObject * obj0 = 0 ;
18916 char *kwnames[] = {
18917 (char *) "self", NULL
18918 };
18919
18920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
18921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18923 {
18924 PyThreadState* __tstate = wxPyBeginAllowThreads();
18925 wxListItemAttr_Destroy(arg1);
18926
18927 wxPyEndAllowThreads(__tstate);
18928 if (PyErr_Occurred()) SWIG_fail;
18929 }
18930 Py_INCREF(Py_None); resultobj = Py_None;
18931 return resultobj;
18932 fail:
18933 return NULL;
18934 }
18935
18936
18937 static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
18938 PyObject *obj;
18939 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18940 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
18941 Py_INCREF(obj);
18942 return Py_BuildValue((char *)"");
18943 }
18944 static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18945 PyObject *resultobj;
18946 wxListItem *result;
18947 char *kwnames[] = {
18948 NULL
18949 };
18950
18951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
18952 {
18953 PyThreadState* __tstate = wxPyBeginAllowThreads();
18954 result = (wxListItem *)new wxListItem();
18955
18956 wxPyEndAllowThreads(__tstate);
18957 if (PyErr_Occurred()) SWIG_fail;
18958 }
18959 {
18960 resultobj = wxPyMake_wxObject(result);
18961 }
18962 return resultobj;
18963 fail:
18964 return NULL;
18965 }
18966
18967
18968 static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18969 PyObject *resultobj;
18970 wxListItem *arg1 = (wxListItem *) 0 ;
18971 PyObject * obj0 = 0 ;
18972 char *kwnames[] = {
18973 (char *) "self", NULL
18974 };
18975
18976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
18977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18979 {
18980 PyThreadState* __tstate = wxPyBeginAllowThreads();
18981 delete arg1;
18982
18983 wxPyEndAllowThreads(__tstate);
18984 if (PyErr_Occurred()) SWIG_fail;
18985 }
18986 Py_INCREF(Py_None); resultobj = Py_None;
18987 return resultobj;
18988 fail:
18989 return NULL;
18990 }
18991
18992
18993 static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
18994 PyObject *resultobj;
18995 wxListItem *arg1 = (wxListItem *) 0 ;
18996 PyObject * obj0 = 0 ;
18997 char *kwnames[] = {
18998 (char *) "self", NULL
18999 };
19000
19001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19004 {
19005 PyThreadState* __tstate = wxPyBeginAllowThreads();
19006 (arg1)->Clear();
19007
19008 wxPyEndAllowThreads(__tstate);
19009 if (PyErr_Occurred()) SWIG_fail;
19010 }
19011 Py_INCREF(Py_None); resultobj = Py_None;
19012 return resultobj;
19013 fail:
19014 return NULL;
19015 }
19016
19017
19018 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19019 PyObject *resultobj;
19020 wxListItem *arg1 = (wxListItem *) 0 ;
19021 PyObject * obj0 = 0 ;
19022 char *kwnames[] = {
19023 (char *) "self", NULL
19024 };
19025
19026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19029 {
19030 PyThreadState* __tstate = wxPyBeginAllowThreads();
19031 (arg1)->ClearAttributes();
19032
19033 wxPyEndAllowThreads(__tstate);
19034 if (PyErr_Occurred()) SWIG_fail;
19035 }
19036 Py_INCREF(Py_None); resultobj = Py_None;
19037 return resultobj;
19038 fail:
19039 return NULL;
19040 }
19041
19042
19043 static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19044 PyObject *resultobj;
19045 wxListItem *arg1 = (wxListItem *) 0 ;
19046 long arg2 ;
19047 PyObject * obj0 = 0 ;
19048 PyObject * obj1 = 0 ;
19049 char *kwnames[] = {
19050 (char *) "self",(char *) "mask", NULL
19051 };
19052
19053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
19054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19056 arg2 = (long) SWIG_AsLong(obj1);
19057 if (PyErr_Occurred()) SWIG_fail;
19058 {
19059 PyThreadState* __tstate = wxPyBeginAllowThreads();
19060 (arg1)->SetMask(arg2);
19061
19062 wxPyEndAllowThreads(__tstate);
19063 if (PyErr_Occurred()) SWIG_fail;
19064 }
19065 Py_INCREF(Py_None); resultobj = Py_None;
19066 return resultobj;
19067 fail:
19068 return NULL;
19069 }
19070
19071
19072 static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
19073 PyObject *resultobj;
19074 wxListItem *arg1 = (wxListItem *) 0 ;
19075 long arg2 ;
19076 PyObject * obj0 = 0 ;
19077 PyObject * obj1 = 0 ;
19078 char *kwnames[] = {
19079 (char *) "self",(char *) "id", NULL
19080 };
19081
19082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
19083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19085 arg2 = (long) SWIG_AsLong(obj1);
19086 if (PyErr_Occurred()) SWIG_fail;
19087 {
19088 PyThreadState* __tstate = wxPyBeginAllowThreads();
19089 (arg1)->SetId(arg2);
19090
19091 wxPyEndAllowThreads(__tstate);
19092 if (PyErr_Occurred()) SWIG_fail;
19093 }
19094 Py_INCREF(Py_None); resultobj = Py_None;
19095 return resultobj;
19096 fail:
19097 return NULL;
19098 }
19099
19100
19101 static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19102 PyObject *resultobj;
19103 wxListItem *arg1 = (wxListItem *) 0 ;
19104 int arg2 ;
19105 PyObject * obj0 = 0 ;
19106 PyObject * obj1 = 0 ;
19107 char *kwnames[] = {
19108 (char *) "self",(char *) "col", NULL
19109 };
19110
19111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19114 arg2 = (int) SWIG_AsInt(obj1);
19115 if (PyErr_Occurred()) SWIG_fail;
19116 {
19117 PyThreadState* __tstate = wxPyBeginAllowThreads();
19118 (arg1)->SetColumn(arg2);
19119
19120 wxPyEndAllowThreads(__tstate);
19121 if (PyErr_Occurred()) SWIG_fail;
19122 }
19123 Py_INCREF(Py_None); resultobj = Py_None;
19124 return resultobj;
19125 fail:
19126 return NULL;
19127 }
19128
19129
19130 static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19131 PyObject *resultobj;
19132 wxListItem *arg1 = (wxListItem *) 0 ;
19133 long arg2 ;
19134 PyObject * obj0 = 0 ;
19135 PyObject * obj1 = 0 ;
19136 char *kwnames[] = {
19137 (char *) "self",(char *) "state", NULL
19138 };
19139
19140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19143 arg2 = (long) SWIG_AsLong(obj1);
19144 if (PyErr_Occurred()) SWIG_fail;
19145 {
19146 PyThreadState* __tstate = wxPyBeginAllowThreads();
19147 (arg1)->SetState(arg2);
19148
19149 wxPyEndAllowThreads(__tstate);
19150 if (PyErr_Occurred()) SWIG_fail;
19151 }
19152 Py_INCREF(Py_None); resultobj = Py_None;
19153 return resultobj;
19154 fail:
19155 return NULL;
19156 }
19157
19158
19159 static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19160 PyObject *resultobj;
19161 wxListItem *arg1 = (wxListItem *) 0 ;
19162 long arg2 ;
19163 PyObject * obj0 = 0 ;
19164 PyObject * obj1 = 0 ;
19165 char *kwnames[] = {
19166 (char *) "self",(char *) "stateMask", NULL
19167 };
19168
19169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19172 arg2 = (long) SWIG_AsLong(obj1);
19173 if (PyErr_Occurred()) SWIG_fail;
19174 {
19175 PyThreadState* __tstate = wxPyBeginAllowThreads();
19176 (arg1)->SetStateMask(arg2);
19177
19178 wxPyEndAllowThreads(__tstate);
19179 if (PyErr_Occurred()) SWIG_fail;
19180 }
19181 Py_INCREF(Py_None); resultobj = Py_None;
19182 return resultobj;
19183 fail:
19184 return NULL;
19185 }
19186
19187
19188 static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19189 PyObject *resultobj;
19190 wxListItem *arg1 = (wxListItem *) 0 ;
19191 wxString *arg2 = 0 ;
19192 bool temp2 = False ;
19193 PyObject * obj0 = 0 ;
19194 PyObject * obj1 = 0 ;
19195 char *kwnames[] = {
19196 (char *) "self",(char *) "text", NULL
19197 };
19198
19199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19202 {
19203 arg2 = wxString_in_helper(obj1);
19204 if (arg2 == NULL) SWIG_fail;
19205 temp2 = True;
19206 }
19207 {
19208 PyThreadState* __tstate = wxPyBeginAllowThreads();
19209 (arg1)->SetText((wxString const &)*arg2);
19210
19211 wxPyEndAllowThreads(__tstate);
19212 if (PyErr_Occurred()) SWIG_fail;
19213 }
19214 Py_INCREF(Py_None); resultobj = Py_None;
19215 {
19216 if (temp2)
19217 delete arg2;
19218 }
19219 return resultobj;
19220 fail:
19221 {
19222 if (temp2)
19223 delete arg2;
19224 }
19225 return NULL;
19226 }
19227
19228
19229 static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19230 PyObject *resultobj;
19231 wxListItem *arg1 = (wxListItem *) 0 ;
19232 int arg2 ;
19233 PyObject * obj0 = 0 ;
19234 PyObject * obj1 = 0 ;
19235 char *kwnames[] = {
19236 (char *) "self",(char *) "image", NULL
19237 };
19238
19239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19242 arg2 = (int) SWIG_AsInt(obj1);
19243 if (PyErr_Occurred()) SWIG_fail;
19244 {
19245 PyThreadState* __tstate = wxPyBeginAllowThreads();
19246 (arg1)->SetImage(arg2);
19247
19248 wxPyEndAllowThreads(__tstate);
19249 if (PyErr_Occurred()) SWIG_fail;
19250 }
19251 Py_INCREF(Py_None); resultobj = Py_None;
19252 return resultobj;
19253 fail:
19254 return NULL;
19255 }
19256
19257
19258 static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19259 PyObject *resultobj;
19260 wxListItem *arg1 = (wxListItem *) 0 ;
19261 long arg2 ;
19262 PyObject * obj0 = 0 ;
19263 PyObject * obj1 = 0 ;
19264 char *kwnames[] = {
19265 (char *) "self",(char *) "data", NULL
19266 };
19267
19268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19271 arg2 = (long) SWIG_AsLong(obj1);
19272 if (PyErr_Occurred()) SWIG_fail;
19273 {
19274 PyThreadState* __tstate = wxPyBeginAllowThreads();
19275 (arg1)->SetData(arg2);
19276
19277 wxPyEndAllowThreads(__tstate);
19278 if (PyErr_Occurred()) SWIG_fail;
19279 }
19280 Py_INCREF(Py_None); resultobj = Py_None;
19281 return resultobj;
19282 fail:
19283 return NULL;
19284 }
19285
19286
19287 static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19288 PyObject *resultobj;
19289 wxListItem *arg1 = (wxListItem *) 0 ;
19290 int arg2 ;
19291 PyObject * obj0 = 0 ;
19292 PyObject * obj1 = 0 ;
19293 char *kwnames[] = {
19294 (char *) "self",(char *) "width", NULL
19295 };
19296
19297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19300 arg2 = (int) SWIG_AsInt(obj1);
19301 if (PyErr_Occurred()) SWIG_fail;
19302 {
19303 PyThreadState* __tstate = wxPyBeginAllowThreads();
19304 (arg1)->SetWidth(arg2);
19305
19306 wxPyEndAllowThreads(__tstate);
19307 if (PyErr_Occurred()) SWIG_fail;
19308 }
19309 Py_INCREF(Py_None); resultobj = Py_None;
19310 return resultobj;
19311 fail:
19312 return NULL;
19313 }
19314
19315
19316 static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19317 PyObject *resultobj;
19318 wxListItem *arg1 = (wxListItem *) 0 ;
19319 int arg2 ;
19320 PyObject * obj0 = 0 ;
19321 PyObject * obj1 = 0 ;
19322 char *kwnames[] = {
19323 (char *) "self",(char *) "align", NULL
19324 };
19325
19326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19329 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
19330 if (PyErr_Occurred()) SWIG_fail;
19331 {
19332 PyThreadState* __tstate = wxPyBeginAllowThreads();
19333 (arg1)->SetAlign((wxListColumnFormat )arg2);
19334
19335 wxPyEndAllowThreads(__tstate);
19336 if (PyErr_Occurred()) SWIG_fail;
19337 }
19338 Py_INCREF(Py_None); resultobj = Py_None;
19339 return resultobj;
19340 fail:
19341 return NULL;
19342 }
19343
19344
19345 static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19346 PyObject *resultobj;
19347 wxListItem *arg1 = (wxListItem *) 0 ;
19348 wxColour *arg2 = 0 ;
19349 wxColour temp2 ;
19350 PyObject * obj0 = 0 ;
19351 PyObject * obj1 = 0 ;
19352 char *kwnames[] = {
19353 (char *) "self",(char *) "colText", NULL
19354 };
19355
19356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19359 {
19360 arg2 = &temp2;
19361 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19362 }
19363 {
19364 PyThreadState* __tstate = wxPyBeginAllowThreads();
19365 (arg1)->SetTextColour((wxColour const &)*arg2);
19366
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 Py_INCREF(Py_None); resultobj = Py_None;
19371 return resultobj;
19372 fail:
19373 return NULL;
19374 }
19375
19376
19377 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19378 PyObject *resultobj;
19379 wxListItem *arg1 = (wxListItem *) 0 ;
19380 wxColour *arg2 = 0 ;
19381 wxColour temp2 ;
19382 PyObject * obj0 = 0 ;
19383 PyObject * obj1 = 0 ;
19384 char *kwnames[] = {
19385 (char *) "self",(char *) "colBack", NULL
19386 };
19387
19388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19391 {
19392 arg2 = &temp2;
19393 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19394 }
19395 {
19396 PyThreadState* __tstate = wxPyBeginAllowThreads();
19397 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19398
19399 wxPyEndAllowThreads(__tstate);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 }
19402 Py_INCREF(Py_None); resultobj = Py_None;
19403 return resultobj;
19404 fail:
19405 return NULL;
19406 }
19407
19408
19409 static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19410 PyObject *resultobj;
19411 wxListItem *arg1 = (wxListItem *) 0 ;
19412 wxFont *arg2 = 0 ;
19413 PyObject * obj0 = 0 ;
19414 PyObject * obj1 = 0 ;
19415 char *kwnames[] = {
19416 (char *) "self",(char *) "font", NULL
19417 };
19418
19419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19422 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19423 SWIG_POINTER_EXCEPTION | 0)) == -1)
19424 SWIG_fail;
19425 if (arg2 == NULL) {
19426 PyErr_SetString(PyExc_TypeError,"null reference");
19427 SWIG_fail;
19428 }
19429 {
19430 PyThreadState* __tstate = wxPyBeginAllowThreads();
19431 (arg1)->SetFont((wxFont const &)*arg2);
19432
19433 wxPyEndAllowThreads(__tstate);
19434 if (PyErr_Occurred()) SWIG_fail;
19435 }
19436 Py_INCREF(Py_None); resultobj = Py_None;
19437 return resultobj;
19438 fail:
19439 return NULL;
19440 }
19441
19442
19443 static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19444 PyObject *resultobj;
19445 wxListItem *arg1 = (wxListItem *) 0 ;
19446 long result;
19447 PyObject * obj0 = 0 ;
19448 char *kwnames[] = {
19449 (char *) "self", NULL
19450 };
19451
19452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19455 {
19456 PyThreadState* __tstate = wxPyBeginAllowThreads();
19457 result = (long)(arg1)->GetMask();
19458
19459 wxPyEndAllowThreads(__tstate);
19460 if (PyErr_Occurred()) SWIG_fail;
19461 }
19462 resultobj = SWIG_FromLong((long)result);
19463 return resultobj;
19464 fail:
19465 return NULL;
19466 }
19467
19468
19469 static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
19470 PyObject *resultobj;
19471 wxListItem *arg1 = (wxListItem *) 0 ;
19472 long result;
19473 PyObject * obj0 = 0 ;
19474 char *kwnames[] = {
19475 (char *) "self", NULL
19476 };
19477
19478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19481 {
19482 PyThreadState* __tstate = wxPyBeginAllowThreads();
19483 result = (long)(arg1)->GetId();
19484
19485 wxPyEndAllowThreads(__tstate);
19486 if (PyErr_Occurred()) SWIG_fail;
19487 }
19488 resultobj = SWIG_FromLong((long)result);
19489 return resultobj;
19490 fail:
19491 return NULL;
19492 }
19493
19494
19495 static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19496 PyObject *resultobj;
19497 wxListItem *arg1 = (wxListItem *) 0 ;
19498 int result;
19499 PyObject * obj0 = 0 ;
19500 char *kwnames[] = {
19501 (char *) "self", NULL
19502 };
19503
19504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19507 {
19508 PyThreadState* __tstate = wxPyBeginAllowThreads();
19509 result = (int)(arg1)->GetColumn();
19510
19511 wxPyEndAllowThreads(__tstate);
19512 if (PyErr_Occurred()) SWIG_fail;
19513 }
19514 resultobj = SWIG_FromInt((int)result);
19515 return resultobj;
19516 fail:
19517 return NULL;
19518 }
19519
19520
19521 static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19522 PyObject *resultobj;
19523 wxListItem *arg1 = (wxListItem *) 0 ;
19524 long result;
19525 PyObject * obj0 = 0 ;
19526 char *kwnames[] = {
19527 (char *) "self", NULL
19528 };
19529
19530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19533 {
19534 PyThreadState* __tstate = wxPyBeginAllowThreads();
19535 result = (long)(arg1)->GetState();
19536
19537 wxPyEndAllowThreads(__tstate);
19538 if (PyErr_Occurred()) SWIG_fail;
19539 }
19540 resultobj = SWIG_FromLong((long)result);
19541 return resultobj;
19542 fail:
19543 return NULL;
19544 }
19545
19546
19547 static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19548 PyObject *resultobj;
19549 wxListItem *arg1 = (wxListItem *) 0 ;
19550 wxString *result;
19551 PyObject * obj0 = 0 ;
19552 char *kwnames[] = {
19553 (char *) "self", NULL
19554 };
19555
19556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19559 {
19560 PyThreadState* __tstate = wxPyBeginAllowThreads();
19561 {
19562 wxString const &_result_ref = (arg1)->GetText();
19563 result = (wxString *) &_result_ref;
19564 }
19565
19566 wxPyEndAllowThreads(__tstate);
19567 if (PyErr_Occurred()) SWIG_fail;
19568 }
19569 {
19570 #if wxUSE_UNICODE
19571 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19572 #else
19573 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19574 #endif
19575 }
19576 return resultobj;
19577 fail:
19578 return NULL;
19579 }
19580
19581
19582 static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19583 PyObject *resultobj;
19584 wxListItem *arg1 = (wxListItem *) 0 ;
19585 int result;
19586 PyObject * obj0 = 0 ;
19587 char *kwnames[] = {
19588 (char *) "self", NULL
19589 };
19590
19591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19594 {
19595 PyThreadState* __tstate = wxPyBeginAllowThreads();
19596 result = (int)(arg1)->GetImage();
19597
19598 wxPyEndAllowThreads(__tstate);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
19601 resultobj = SWIG_FromInt((int)result);
19602 return resultobj;
19603 fail:
19604 return NULL;
19605 }
19606
19607
19608 static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19609 PyObject *resultobj;
19610 wxListItem *arg1 = (wxListItem *) 0 ;
19611 long result;
19612 PyObject * obj0 = 0 ;
19613 char *kwnames[] = {
19614 (char *) "self", NULL
19615 };
19616
19617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19620 {
19621 PyThreadState* __tstate = wxPyBeginAllowThreads();
19622 result = (long)(arg1)->GetData();
19623
19624 wxPyEndAllowThreads(__tstate);
19625 if (PyErr_Occurred()) SWIG_fail;
19626 }
19627 resultobj = SWIG_FromLong((long)result);
19628 return resultobj;
19629 fail:
19630 return NULL;
19631 }
19632
19633
19634 static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19635 PyObject *resultobj;
19636 wxListItem *arg1 = (wxListItem *) 0 ;
19637 int result;
19638 PyObject * obj0 = 0 ;
19639 char *kwnames[] = {
19640 (char *) "self", NULL
19641 };
19642
19643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19646 {
19647 PyThreadState* __tstate = wxPyBeginAllowThreads();
19648 result = (int)(arg1)->GetWidth();
19649
19650 wxPyEndAllowThreads(__tstate);
19651 if (PyErr_Occurred()) SWIG_fail;
19652 }
19653 resultobj = SWIG_FromInt((int)result);
19654 return resultobj;
19655 fail:
19656 return NULL;
19657 }
19658
19659
19660 static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19661 PyObject *resultobj;
19662 wxListItem *arg1 = (wxListItem *) 0 ;
19663 int result;
19664 PyObject * obj0 = 0 ;
19665 char *kwnames[] = {
19666 (char *) "self", NULL
19667 };
19668
19669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
19670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19672 {
19673 PyThreadState* __tstate = wxPyBeginAllowThreads();
19674 result = (int)(arg1)->GetAlign();
19675
19676 wxPyEndAllowThreads(__tstate);
19677 if (PyErr_Occurred()) SWIG_fail;
19678 }
19679 resultobj = SWIG_FromInt((int)result);
19680 return resultobj;
19681 fail:
19682 return NULL;
19683 }
19684
19685
19686 static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19687 PyObject *resultobj;
19688 wxListItem *arg1 = (wxListItem *) 0 ;
19689 wxListItemAttr *result;
19690 PyObject * obj0 = 0 ;
19691 char *kwnames[] = {
19692 (char *) "self", NULL
19693 };
19694
19695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
19696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19698 {
19699 PyThreadState* __tstate = wxPyBeginAllowThreads();
19700 result = (wxListItemAttr *)(arg1)->GetAttributes();
19701
19702 wxPyEndAllowThreads(__tstate);
19703 if (PyErr_Occurred()) SWIG_fail;
19704 }
19705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
19706 return resultobj;
19707 fail:
19708 return NULL;
19709 }
19710
19711
19712 static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19713 PyObject *resultobj;
19714 wxListItem *arg1 = (wxListItem *) 0 ;
19715 bool result;
19716 PyObject * obj0 = 0 ;
19717 char *kwnames[] = {
19718 (char *) "self", NULL
19719 };
19720
19721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
19722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19724 {
19725 PyThreadState* __tstate = wxPyBeginAllowThreads();
19726 result = (bool)(arg1)->HasAttributes();
19727
19728 wxPyEndAllowThreads(__tstate);
19729 if (PyErr_Occurred()) SWIG_fail;
19730 }
19731 {
19732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19733 }
19734 return resultobj;
19735 fail:
19736 return NULL;
19737 }
19738
19739
19740 static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19741 PyObject *resultobj;
19742 wxListItem *arg1 = (wxListItem *) 0 ;
19743 wxColour result;
19744 PyObject * obj0 = 0 ;
19745 char *kwnames[] = {
19746 (char *) "self", NULL
19747 };
19748
19749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
19750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19752 {
19753 PyThreadState* __tstate = wxPyBeginAllowThreads();
19754 result = ((wxListItem const *)arg1)->GetTextColour();
19755
19756 wxPyEndAllowThreads(__tstate);
19757 if (PyErr_Occurred()) SWIG_fail;
19758 }
19759 {
19760 wxColour * resultptr;
19761 resultptr = new wxColour((wxColour &) result);
19762 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19763 }
19764 return resultobj;
19765 fail:
19766 return NULL;
19767 }
19768
19769
19770 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19771 PyObject *resultobj;
19772 wxListItem *arg1 = (wxListItem *) 0 ;
19773 wxColour result;
19774 PyObject * obj0 = 0 ;
19775 char *kwnames[] = {
19776 (char *) "self", NULL
19777 };
19778
19779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
19780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19782 {
19783 PyThreadState* __tstate = wxPyBeginAllowThreads();
19784 result = ((wxListItem const *)arg1)->GetBackgroundColour();
19785
19786 wxPyEndAllowThreads(__tstate);
19787 if (PyErr_Occurred()) SWIG_fail;
19788 }
19789 {
19790 wxColour * resultptr;
19791 resultptr = new wxColour((wxColour &) result);
19792 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19793 }
19794 return resultobj;
19795 fail:
19796 return NULL;
19797 }
19798
19799
19800 static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19801 PyObject *resultobj;
19802 wxListItem *arg1 = (wxListItem *) 0 ;
19803 wxFont result;
19804 PyObject * obj0 = 0 ;
19805 char *kwnames[] = {
19806 (char *) "self", NULL
19807 };
19808
19809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
19810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19812 {
19813 PyThreadState* __tstate = wxPyBeginAllowThreads();
19814 result = ((wxListItem const *)arg1)->GetFont();
19815
19816 wxPyEndAllowThreads(__tstate);
19817 if (PyErr_Occurred()) SWIG_fail;
19818 }
19819 {
19820 wxFont * resultptr;
19821 resultptr = new wxFont((wxFont &) result);
19822 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19823 }
19824 return resultobj;
19825 fail:
19826 return NULL;
19827 }
19828
19829
19830 static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19831 PyObject *resultobj;
19832 wxListItem *arg1 = (wxListItem *) 0 ;
19833 long arg2 ;
19834 PyObject * obj0 = 0 ;
19835 PyObject * obj1 = 0 ;
19836 char *kwnames[] = {
19837 (char *) "self",(char *) "m_mask", NULL
19838 };
19839
19840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
19841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19843 arg2 = (long) SWIG_AsLong(obj1);
19844 if (PyErr_Occurred()) SWIG_fail;
19845 if (arg1) (arg1)->m_mask = arg2;
19846
19847 Py_INCREF(Py_None); resultobj = Py_None;
19848 return resultobj;
19849 fail:
19850 return NULL;
19851 }
19852
19853
19854 static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19855 PyObject *resultobj;
19856 wxListItem *arg1 = (wxListItem *) 0 ;
19857 long result;
19858 PyObject * obj0 = 0 ;
19859 char *kwnames[] = {
19860 (char *) "self", NULL
19861 };
19862
19863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
19864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19866 result = (long) ((arg1)->m_mask);
19867
19868 resultobj = SWIG_FromLong((long)result);
19869 return resultobj;
19870 fail:
19871 return NULL;
19872 }
19873
19874
19875 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19876 PyObject *resultobj;
19877 wxListItem *arg1 = (wxListItem *) 0 ;
19878 long arg2 ;
19879 PyObject * obj0 = 0 ;
19880 PyObject * obj1 = 0 ;
19881 char *kwnames[] = {
19882 (char *) "self",(char *) "m_itemId", NULL
19883 };
19884
19885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
19886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19888 arg2 = (long) SWIG_AsLong(obj1);
19889 if (PyErr_Occurred()) SWIG_fail;
19890 if (arg1) (arg1)->m_itemId = arg2;
19891
19892 Py_INCREF(Py_None); resultobj = Py_None;
19893 return resultobj;
19894 fail:
19895 return NULL;
19896 }
19897
19898
19899 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19900 PyObject *resultobj;
19901 wxListItem *arg1 = (wxListItem *) 0 ;
19902 long result;
19903 PyObject * obj0 = 0 ;
19904 char *kwnames[] = {
19905 (char *) "self", NULL
19906 };
19907
19908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
19909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19911 result = (long) ((arg1)->m_itemId);
19912
19913 resultobj = SWIG_FromLong((long)result);
19914 return resultobj;
19915 fail:
19916 return NULL;
19917 }
19918
19919
19920 static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19921 PyObject *resultobj;
19922 wxListItem *arg1 = (wxListItem *) 0 ;
19923 int arg2 ;
19924 PyObject * obj0 = 0 ;
19925 PyObject * obj1 = 0 ;
19926 char *kwnames[] = {
19927 (char *) "self",(char *) "m_col", NULL
19928 };
19929
19930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19933 arg2 = (int) SWIG_AsInt(obj1);
19934 if (PyErr_Occurred()) SWIG_fail;
19935 if (arg1) (arg1)->m_col = arg2;
19936
19937 Py_INCREF(Py_None); resultobj = Py_None;
19938 return resultobj;
19939 fail:
19940 return NULL;
19941 }
19942
19943
19944 static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19945 PyObject *resultobj;
19946 wxListItem *arg1 = (wxListItem *) 0 ;
19947 int result;
19948 PyObject * obj0 = 0 ;
19949 char *kwnames[] = {
19950 (char *) "self", NULL
19951 };
19952
19953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
19954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19956 result = (int) ((arg1)->m_col);
19957
19958 resultobj = SWIG_FromInt((int)result);
19959 return resultobj;
19960 fail:
19961 return NULL;
19962 }
19963
19964
19965 static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19966 PyObject *resultobj;
19967 wxListItem *arg1 = (wxListItem *) 0 ;
19968 long arg2 ;
19969 PyObject * obj0 = 0 ;
19970 PyObject * obj1 = 0 ;
19971 char *kwnames[] = {
19972 (char *) "self",(char *) "m_state", NULL
19973 };
19974
19975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
19976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19978 arg2 = (long) SWIG_AsLong(obj1);
19979 if (PyErr_Occurred()) SWIG_fail;
19980 if (arg1) (arg1)->m_state = arg2;
19981
19982 Py_INCREF(Py_None); resultobj = Py_None;
19983 return resultobj;
19984 fail:
19985 return NULL;
19986 }
19987
19988
19989 static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19990 PyObject *resultobj;
19991 wxListItem *arg1 = (wxListItem *) 0 ;
19992 long result;
19993 PyObject * obj0 = 0 ;
19994 char *kwnames[] = {
19995 (char *) "self", NULL
19996 };
19997
19998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
19999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20001 result = (long) ((arg1)->m_state);
20002
20003 resultobj = SWIG_FromLong((long)result);
20004 return resultobj;
20005 fail:
20006 return NULL;
20007 }
20008
20009
20010 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20011 PyObject *resultobj;
20012 wxListItem *arg1 = (wxListItem *) 0 ;
20013 long arg2 ;
20014 PyObject * obj0 = 0 ;
20015 PyObject * obj1 = 0 ;
20016 char *kwnames[] = {
20017 (char *) "self",(char *) "m_stateMask", NULL
20018 };
20019
20020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20023 arg2 = (long) SWIG_AsLong(obj1);
20024 if (PyErr_Occurred()) SWIG_fail;
20025 if (arg1) (arg1)->m_stateMask = arg2;
20026
20027 Py_INCREF(Py_None); resultobj = Py_None;
20028 return resultobj;
20029 fail:
20030 return NULL;
20031 }
20032
20033
20034 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20035 PyObject *resultobj;
20036 wxListItem *arg1 = (wxListItem *) 0 ;
20037 long result;
20038 PyObject * obj0 = 0 ;
20039 char *kwnames[] = {
20040 (char *) "self", NULL
20041 };
20042
20043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20046 result = (long) ((arg1)->m_stateMask);
20047
20048 resultobj = SWIG_FromLong((long)result);
20049 return resultobj;
20050 fail:
20051 return NULL;
20052 }
20053
20054
20055 static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20056 PyObject *resultobj;
20057 wxListItem *arg1 = (wxListItem *) 0 ;
20058 wxString *arg2 = (wxString *) 0 ;
20059 bool temp2 = False ;
20060 PyObject * obj0 = 0 ;
20061 PyObject * obj1 = 0 ;
20062 char *kwnames[] = {
20063 (char *) "self",(char *) "m_text", NULL
20064 };
20065
20066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20069 {
20070 arg2 = wxString_in_helper(obj1);
20071 if (arg2 == NULL) SWIG_fail;
20072 temp2 = True;
20073 }
20074 if (arg1) (arg1)->m_text = *arg2;
20075
20076 Py_INCREF(Py_None); resultobj = Py_None;
20077 {
20078 if (temp2)
20079 delete arg2;
20080 }
20081 return resultobj;
20082 fail:
20083 {
20084 if (temp2)
20085 delete arg2;
20086 }
20087 return NULL;
20088 }
20089
20090
20091 static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20092 PyObject *resultobj;
20093 wxListItem *arg1 = (wxListItem *) 0 ;
20094 wxString *result;
20095 PyObject * obj0 = 0 ;
20096 char *kwnames[] = {
20097 (char *) "self", NULL
20098 };
20099
20100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20103 result = (wxString *)& ((arg1)->m_text);
20104
20105 {
20106 #if wxUSE_UNICODE
20107 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20108 #else
20109 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20110 #endif
20111 }
20112 return resultobj;
20113 fail:
20114 return NULL;
20115 }
20116
20117
20118 static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20119 PyObject *resultobj;
20120 wxListItem *arg1 = (wxListItem *) 0 ;
20121 int arg2 ;
20122 PyObject * obj0 = 0 ;
20123 PyObject * obj1 = 0 ;
20124 char *kwnames[] = {
20125 (char *) "self",(char *) "m_image", NULL
20126 };
20127
20128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20131 arg2 = (int) SWIG_AsInt(obj1);
20132 if (PyErr_Occurred()) SWIG_fail;
20133 if (arg1) (arg1)->m_image = arg2;
20134
20135 Py_INCREF(Py_None); resultobj = Py_None;
20136 return resultobj;
20137 fail:
20138 return NULL;
20139 }
20140
20141
20142 static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20143 PyObject *resultobj;
20144 wxListItem *arg1 = (wxListItem *) 0 ;
20145 int result;
20146 PyObject * obj0 = 0 ;
20147 char *kwnames[] = {
20148 (char *) "self", NULL
20149 };
20150
20151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20154 result = (int) ((arg1)->m_image);
20155
20156 resultobj = SWIG_FromInt((int)result);
20157 return resultobj;
20158 fail:
20159 return NULL;
20160 }
20161
20162
20163 static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20164 PyObject *resultobj;
20165 wxListItem *arg1 = (wxListItem *) 0 ;
20166 long arg2 ;
20167 PyObject * obj0 = 0 ;
20168 PyObject * obj1 = 0 ;
20169 char *kwnames[] = {
20170 (char *) "self",(char *) "m_data", NULL
20171 };
20172
20173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20176 arg2 = (long) SWIG_AsLong(obj1);
20177 if (PyErr_Occurred()) SWIG_fail;
20178 if (arg1) (arg1)->m_data = arg2;
20179
20180 Py_INCREF(Py_None); resultobj = Py_None;
20181 return resultobj;
20182 fail:
20183 return NULL;
20184 }
20185
20186
20187 static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20188 PyObject *resultobj;
20189 wxListItem *arg1 = (wxListItem *) 0 ;
20190 long result;
20191 PyObject * obj0 = 0 ;
20192 char *kwnames[] = {
20193 (char *) "self", NULL
20194 };
20195
20196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20199 result = (long) ((arg1)->m_data);
20200
20201 resultobj = SWIG_FromLong((long)result);
20202 return resultobj;
20203 fail:
20204 return NULL;
20205 }
20206
20207
20208 static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20209 PyObject *resultobj;
20210 wxListItem *arg1 = (wxListItem *) 0 ;
20211 int arg2 ;
20212 PyObject * obj0 = 0 ;
20213 PyObject * obj1 = 0 ;
20214 char *kwnames[] = {
20215 (char *) "self",(char *) "m_format", NULL
20216 };
20217
20218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20221 arg2 = (int) SWIG_AsInt(obj1);
20222 if (PyErr_Occurred()) SWIG_fail;
20223 if (arg1) (arg1)->m_format = arg2;
20224
20225 Py_INCREF(Py_None); resultobj = Py_None;
20226 return resultobj;
20227 fail:
20228 return NULL;
20229 }
20230
20231
20232 static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20233 PyObject *resultobj;
20234 wxListItem *arg1 = (wxListItem *) 0 ;
20235 int result;
20236 PyObject * obj0 = 0 ;
20237 char *kwnames[] = {
20238 (char *) "self", NULL
20239 };
20240
20241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20244 result = (int) ((arg1)->m_format);
20245
20246 resultobj = SWIG_FromInt((int)result);
20247 return resultobj;
20248 fail:
20249 return NULL;
20250 }
20251
20252
20253 static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20254 PyObject *resultobj;
20255 wxListItem *arg1 = (wxListItem *) 0 ;
20256 int arg2 ;
20257 PyObject * obj0 = 0 ;
20258 PyObject * obj1 = 0 ;
20259 char *kwnames[] = {
20260 (char *) "self",(char *) "m_width", NULL
20261 };
20262
20263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20266 arg2 = (int) SWIG_AsInt(obj1);
20267 if (PyErr_Occurred()) SWIG_fail;
20268 if (arg1) (arg1)->m_width = arg2;
20269
20270 Py_INCREF(Py_None); resultobj = Py_None;
20271 return resultobj;
20272 fail:
20273 return NULL;
20274 }
20275
20276
20277 static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20278 PyObject *resultobj;
20279 wxListItem *arg1 = (wxListItem *) 0 ;
20280 int result;
20281 PyObject * obj0 = 0 ;
20282 char *kwnames[] = {
20283 (char *) "self", NULL
20284 };
20285
20286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20289 result = (int) ((arg1)->m_width);
20290
20291 resultobj = SWIG_FromInt((int)result);
20292 return resultobj;
20293 fail:
20294 return NULL;
20295 }
20296
20297
20298 static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
20299 PyObject *obj;
20300 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20301 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20302 Py_INCREF(obj);
20303 return Py_BuildValue((char *)"");
20304 }
20305 static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20306 PyObject *resultobj;
20307 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20308 int arg2 = (int) 0 ;
20309 wxListEvent *result;
20310 PyObject * obj0 = 0 ;
20311 PyObject * obj1 = 0 ;
20312 char *kwnames[] = {
20313 (char *) "commandType",(char *) "id", NULL
20314 };
20315
20316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20317 if (obj0) {
20318 arg1 = (wxEventType) SWIG_AsInt(obj0);
20319 if (PyErr_Occurred()) SWIG_fail;
20320 }
20321 if (obj1) {
20322 arg2 = (int) SWIG_AsInt(obj1);
20323 if (PyErr_Occurred()) SWIG_fail;
20324 }
20325 {
20326 PyThreadState* __tstate = wxPyBeginAllowThreads();
20327 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20328
20329 wxPyEndAllowThreads(__tstate);
20330 if (PyErr_Occurred()) SWIG_fail;
20331 }
20332 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20333 return resultobj;
20334 fail:
20335 return NULL;
20336 }
20337
20338
20339 static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20340 PyObject *resultobj;
20341 wxListEvent *arg1 = (wxListEvent *) 0 ;
20342 int arg2 ;
20343 PyObject * obj0 = 0 ;
20344 PyObject * obj1 = 0 ;
20345 char *kwnames[] = {
20346 (char *) "self",(char *) "m_code", NULL
20347 };
20348
20349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20352 arg2 = (int) SWIG_AsInt(obj1);
20353 if (PyErr_Occurred()) SWIG_fail;
20354 if (arg1) (arg1)->m_code = arg2;
20355
20356 Py_INCREF(Py_None); resultobj = Py_None;
20357 return resultobj;
20358 fail:
20359 return NULL;
20360 }
20361
20362
20363 static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20364 PyObject *resultobj;
20365 wxListEvent *arg1 = (wxListEvent *) 0 ;
20366 int result;
20367 PyObject * obj0 = 0 ;
20368 char *kwnames[] = {
20369 (char *) "self", NULL
20370 };
20371
20372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20375 result = (int) ((arg1)->m_code);
20376
20377 resultobj = SWIG_FromInt((int)result);
20378 return resultobj;
20379 fail:
20380 return NULL;
20381 }
20382
20383
20384 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20385 PyObject *resultobj;
20386 wxListEvent *arg1 = (wxListEvent *) 0 ;
20387 long arg2 ;
20388 PyObject * obj0 = 0 ;
20389 PyObject * obj1 = 0 ;
20390 char *kwnames[] = {
20391 (char *) "self",(char *) "m_oldItemIndex", NULL
20392 };
20393
20394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20397 arg2 = (long) SWIG_AsLong(obj1);
20398 if (PyErr_Occurred()) SWIG_fail;
20399 if (arg1) (arg1)->m_oldItemIndex = arg2;
20400
20401 Py_INCREF(Py_None); resultobj = Py_None;
20402 return resultobj;
20403 fail:
20404 return NULL;
20405 }
20406
20407
20408 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20409 PyObject *resultobj;
20410 wxListEvent *arg1 = (wxListEvent *) 0 ;
20411 long result;
20412 PyObject * obj0 = 0 ;
20413 char *kwnames[] = {
20414 (char *) "self", NULL
20415 };
20416
20417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20420 result = (long) ((arg1)->m_oldItemIndex);
20421
20422 resultobj = SWIG_FromLong((long)result);
20423 return resultobj;
20424 fail:
20425 return NULL;
20426 }
20427
20428
20429 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20430 PyObject *resultobj;
20431 wxListEvent *arg1 = (wxListEvent *) 0 ;
20432 long arg2 ;
20433 PyObject * obj0 = 0 ;
20434 PyObject * obj1 = 0 ;
20435 char *kwnames[] = {
20436 (char *) "self",(char *) "m_itemIndex", NULL
20437 };
20438
20439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20442 arg2 = (long) SWIG_AsLong(obj1);
20443 if (PyErr_Occurred()) SWIG_fail;
20444 if (arg1) (arg1)->m_itemIndex = arg2;
20445
20446 Py_INCREF(Py_None); resultobj = Py_None;
20447 return resultobj;
20448 fail:
20449 return NULL;
20450 }
20451
20452
20453 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20454 PyObject *resultobj;
20455 wxListEvent *arg1 = (wxListEvent *) 0 ;
20456 long result;
20457 PyObject * obj0 = 0 ;
20458 char *kwnames[] = {
20459 (char *) "self", NULL
20460 };
20461
20462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20465 result = (long) ((arg1)->m_itemIndex);
20466
20467 resultobj = SWIG_FromLong((long)result);
20468 return resultobj;
20469 fail:
20470 return NULL;
20471 }
20472
20473
20474 static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20475 PyObject *resultobj;
20476 wxListEvent *arg1 = (wxListEvent *) 0 ;
20477 int arg2 ;
20478 PyObject * obj0 = 0 ;
20479 PyObject * obj1 = 0 ;
20480 char *kwnames[] = {
20481 (char *) "self",(char *) "m_col", NULL
20482 };
20483
20484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20487 arg2 = (int) SWIG_AsInt(obj1);
20488 if (PyErr_Occurred()) SWIG_fail;
20489 if (arg1) (arg1)->m_col = arg2;
20490
20491 Py_INCREF(Py_None); resultobj = Py_None;
20492 return resultobj;
20493 fail:
20494 return NULL;
20495 }
20496
20497
20498 static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20499 PyObject *resultobj;
20500 wxListEvent *arg1 = (wxListEvent *) 0 ;
20501 int result;
20502 PyObject * obj0 = 0 ;
20503 char *kwnames[] = {
20504 (char *) "self", NULL
20505 };
20506
20507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20510 result = (int) ((arg1)->m_col);
20511
20512 resultobj = SWIG_FromInt((int)result);
20513 return resultobj;
20514 fail:
20515 return NULL;
20516 }
20517
20518
20519 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20520 PyObject *resultobj;
20521 wxListEvent *arg1 = (wxListEvent *) 0 ;
20522 wxPoint *arg2 = (wxPoint *) 0 ;
20523 PyObject * obj0 = 0 ;
20524 PyObject * obj1 = 0 ;
20525 char *kwnames[] = {
20526 (char *) "self",(char *) "m_pointDrag", NULL
20527 };
20528
20529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20534 if (arg1) (arg1)->m_pointDrag = *arg2;
20535
20536 Py_INCREF(Py_None); resultobj = Py_None;
20537 return resultobj;
20538 fail:
20539 return NULL;
20540 }
20541
20542
20543 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20544 PyObject *resultobj;
20545 wxListEvent *arg1 = (wxListEvent *) 0 ;
20546 wxPoint *result;
20547 PyObject * obj0 = 0 ;
20548 char *kwnames[] = {
20549 (char *) "self", NULL
20550 };
20551
20552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20555 result = (wxPoint *)& ((arg1)->m_pointDrag);
20556
20557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20558 return resultobj;
20559 fail:
20560 return NULL;
20561 }
20562
20563
20564 static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20565 PyObject *resultobj;
20566 wxListEvent *arg1 = (wxListEvent *) 0 ;
20567 wxListItem *result;
20568 PyObject * obj0 = 0 ;
20569 char *kwnames[] = {
20570 (char *) "self", NULL
20571 };
20572
20573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20576 result = (wxListItem *)& ((arg1)->m_item);
20577
20578 {
20579 resultobj = wxPyMake_wxObject(result);
20580 }
20581 return resultobj;
20582 fail:
20583 return NULL;
20584 }
20585
20586
20587 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20588 PyObject *resultobj;
20589 wxListEvent *arg1 = (wxListEvent *) 0 ;
20590 int result;
20591 PyObject * obj0 = 0 ;
20592 char *kwnames[] = {
20593 (char *) "self", NULL
20594 };
20595
20596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20599 {
20600 PyThreadState* __tstate = wxPyBeginAllowThreads();
20601 result = (int)(arg1)->GetKeyCode();
20602
20603 wxPyEndAllowThreads(__tstate);
20604 if (PyErr_Occurred()) SWIG_fail;
20605 }
20606 resultobj = SWIG_FromInt((int)result);
20607 return resultobj;
20608 fail:
20609 return NULL;
20610 }
20611
20612
20613 static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
20614 PyObject *resultobj;
20615 wxListEvent *arg1 = (wxListEvent *) 0 ;
20616 long result;
20617 PyObject * obj0 = 0 ;
20618 char *kwnames[] = {
20619 (char *) "self", NULL
20620 };
20621
20622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20625 {
20626 PyThreadState* __tstate = wxPyBeginAllowThreads();
20627 result = (long)(arg1)->GetIndex();
20628
20629 wxPyEndAllowThreads(__tstate);
20630 if (PyErr_Occurred()) SWIG_fail;
20631 }
20632 resultobj = SWIG_FromLong((long)result);
20633 return resultobj;
20634 fail:
20635 return NULL;
20636 }
20637
20638
20639 static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20640 PyObject *resultobj;
20641 wxListEvent *arg1 = (wxListEvent *) 0 ;
20642 int result;
20643 PyObject * obj0 = 0 ;
20644 char *kwnames[] = {
20645 (char *) "self", NULL
20646 };
20647
20648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20651 {
20652 PyThreadState* __tstate = wxPyBeginAllowThreads();
20653 result = (int)(arg1)->GetColumn();
20654
20655 wxPyEndAllowThreads(__tstate);
20656 if (PyErr_Occurred()) SWIG_fail;
20657 }
20658 resultobj = SWIG_FromInt((int)result);
20659 return resultobj;
20660 fail:
20661 return NULL;
20662 }
20663
20664
20665 static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
20666 PyObject *resultobj;
20667 wxListEvent *arg1 = (wxListEvent *) 0 ;
20668 wxPoint result;
20669 PyObject * obj0 = 0 ;
20670 char *kwnames[] = {
20671 (char *) "self", NULL
20672 };
20673
20674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
20675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20677 {
20678 PyThreadState* __tstate = wxPyBeginAllowThreads();
20679 result = (arg1)->GetPoint();
20680
20681 wxPyEndAllowThreads(__tstate);
20682 if (PyErr_Occurred()) SWIG_fail;
20683 }
20684 {
20685 wxPoint * resultptr;
20686 resultptr = new wxPoint((wxPoint &) result);
20687 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20688 }
20689 return resultobj;
20690 fail:
20691 return NULL;
20692 }
20693
20694
20695 static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20696 PyObject *resultobj;
20697 wxListEvent *arg1 = (wxListEvent *) 0 ;
20698 wxString *result;
20699 PyObject * obj0 = 0 ;
20700 char *kwnames[] = {
20701 (char *) "self", NULL
20702 };
20703
20704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
20705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20707 {
20708 PyThreadState* __tstate = wxPyBeginAllowThreads();
20709 {
20710 wxString const &_result_ref = (arg1)->GetLabel();
20711 result = (wxString *) &_result_ref;
20712 }
20713
20714 wxPyEndAllowThreads(__tstate);
20715 if (PyErr_Occurred()) SWIG_fail;
20716 }
20717 {
20718 #if wxUSE_UNICODE
20719 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20720 #else
20721 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20722 #endif
20723 }
20724 return resultobj;
20725 fail:
20726 return NULL;
20727 }
20728
20729
20730 static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
20731 PyObject *resultobj;
20732 wxListEvent *arg1 = (wxListEvent *) 0 ;
20733 wxString *result;
20734 PyObject * obj0 = 0 ;
20735 char *kwnames[] = {
20736 (char *) "self", NULL
20737 };
20738
20739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
20740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20742 {
20743 PyThreadState* __tstate = wxPyBeginAllowThreads();
20744 {
20745 wxString const &_result_ref = (arg1)->GetText();
20746 result = (wxString *) &_result_ref;
20747 }
20748
20749 wxPyEndAllowThreads(__tstate);
20750 if (PyErr_Occurred()) SWIG_fail;
20751 }
20752 {
20753 #if wxUSE_UNICODE
20754 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20755 #else
20756 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20757 #endif
20758 }
20759 return resultobj;
20760 fail:
20761 return NULL;
20762 }
20763
20764
20765 static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20766 PyObject *resultobj;
20767 wxListEvent *arg1 = (wxListEvent *) 0 ;
20768 int result;
20769 PyObject * obj0 = 0 ;
20770 char *kwnames[] = {
20771 (char *) "self", NULL
20772 };
20773
20774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
20775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20777 {
20778 PyThreadState* __tstate = wxPyBeginAllowThreads();
20779 result = (int)(arg1)->GetImage();
20780
20781 wxPyEndAllowThreads(__tstate);
20782 if (PyErr_Occurred()) SWIG_fail;
20783 }
20784 resultobj = SWIG_FromInt((int)result);
20785 return resultobj;
20786 fail:
20787 return NULL;
20788 }
20789
20790
20791 static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
20792 PyObject *resultobj;
20793 wxListEvent *arg1 = (wxListEvent *) 0 ;
20794 long result;
20795 PyObject * obj0 = 0 ;
20796 char *kwnames[] = {
20797 (char *) "self", NULL
20798 };
20799
20800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
20801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20803 {
20804 PyThreadState* __tstate = wxPyBeginAllowThreads();
20805 result = (long)(arg1)->GetData();
20806
20807 wxPyEndAllowThreads(__tstate);
20808 if (PyErr_Occurred()) SWIG_fail;
20809 }
20810 resultobj = SWIG_FromLong((long)result);
20811 return resultobj;
20812 fail:
20813 return NULL;
20814 }
20815
20816
20817 static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
20818 PyObject *resultobj;
20819 wxListEvent *arg1 = (wxListEvent *) 0 ;
20820 long result;
20821 PyObject * obj0 = 0 ;
20822 char *kwnames[] = {
20823 (char *) "self", NULL
20824 };
20825
20826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
20827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20829 {
20830 PyThreadState* __tstate = wxPyBeginAllowThreads();
20831 result = (long)(arg1)->GetMask();
20832
20833 wxPyEndAllowThreads(__tstate);
20834 if (PyErr_Occurred()) SWIG_fail;
20835 }
20836 resultobj = SWIG_FromLong((long)result);
20837 return resultobj;
20838 fail:
20839 return NULL;
20840 }
20841
20842
20843 static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20844 PyObject *resultobj;
20845 wxListEvent *arg1 = (wxListEvent *) 0 ;
20846 wxListItem *result;
20847 PyObject * obj0 = 0 ;
20848 char *kwnames[] = {
20849 (char *) "self", NULL
20850 };
20851
20852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
20853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20855 {
20856 PyThreadState* __tstate = wxPyBeginAllowThreads();
20857 {
20858 wxListItem const &_result_ref = (arg1)->GetItem();
20859 result = (wxListItem *) &_result_ref;
20860 }
20861
20862 wxPyEndAllowThreads(__tstate);
20863 if (PyErr_Occurred()) SWIG_fail;
20864 }
20865 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
20866 return resultobj;
20867 fail:
20868 return NULL;
20869 }
20870
20871
20872 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
20873 PyObject *resultobj;
20874 wxListEvent *arg1 = (wxListEvent *) 0 ;
20875 long result;
20876 PyObject * obj0 = 0 ;
20877 char *kwnames[] = {
20878 (char *) "self", NULL
20879 };
20880
20881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
20882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20884 {
20885 PyThreadState* __tstate = wxPyBeginAllowThreads();
20886 result = (long)(arg1)->GetCacheFrom();
20887
20888 wxPyEndAllowThreads(__tstate);
20889 if (PyErr_Occurred()) SWIG_fail;
20890 }
20891 resultobj = SWIG_FromLong((long)result);
20892 return resultobj;
20893 fail:
20894 return NULL;
20895 }
20896
20897
20898 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20899 PyObject *resultobj;
20900 wxListEvent *arg1 = (wxListEvent *) 0 ;
20901 long result;
20902 PyObject * obj0 = 0 ;
20903 char *kwnames[] = {
20904 (char *) "self", NULL
20905 };
20906
20907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
20908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20910 {
20911 PyThreadState* __tstate = wxPyBeginAllowThreads();
20912 result = (long)(arg1)->GetCacheTo();
20913
20914 wxPyEndAllowThreads(__tstate);
20915 if (PyErr_Occurred()) SWIG_fail;
20916 }
20917 resultobj = SWIG_FromLong((long)result);
20918 return resultobj;
20919 fail:
20920 return NULL;
20921 }
20922
20923
20924 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
20925 PyObject *resultobj;
20926 wxListEvent *arg1 = (wxListEvent *) 0 ;
20927 bool result;
20928 PyObject * obj0 = 0 ;
20929 char *kwnames[] = {
20930 (char *) "self", NULL
20931 };
20932
20933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
20934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20936 {
20937 PyThreadState* __tstate = wxPyBeginAllowThreads();
20938 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
20939
20940 wxPyEndAllowThreads(__tstate);
20941 if (PyErr_Occurred()) SWIG_fail;
20942 }
20943 {
20944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20945 }
20946 return resultobj;
20947 fail:
20948 return NULL;
20949 }
20950
20951
20952 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
20953 PyObject *resultobj;
20954 wxListEvent *arg1 = (wxListEvent *) 0 ;
20955 bool arg2 ;
20956 PyObject * obj0 = 0 ;
20957 PyObject * obj1 = 0 ;
20958 char *kwnames[] = {
20959 (char *) "self",(char *) "editCancelled", NULL
20960 };
20961
20962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
20963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20965 arg2 = (bool) SWIG_AsBool(obj1);
20966 if (PyErr_Occurred()) SWIG_fail;
20967 {
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 (arg1)->SetEditCanceled(arg2);
20970
20971 wxPyEndAllowThreads(__tstate);
20972 if (PyErr_Occurred()) SWIG_fail;
20973 }
20974 Py_INCREF(Py_None); resultobj = Py_None;
20975 return resultobj;
20976 fail:
20977 return NULL;
20978 }
20979
20980
20981 static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
20982 PyObject *obj;
20983 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20984 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
20985 Py_INCREF(obj);
20986 return Py_BuildValue((char *)"");
20987 }
20988 static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20989 PyObject *resultobj;
20990 wxWindow *arg1 = (wxWindow *) 0 ;
20991 int arg2 = (int) -1 ;
20992 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20993 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20994 wxSize const &arg4_defvalue = wxDefaultSize ;
20995 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20996 long arg5 = (long) wxLC_ICON ;
20997 wxValidator const &arg6_defvalue = wxDefaultValidator ;
20998 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
20999 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21000 wxString *arg7 = (wxString *) &arg7_defvalue ;
21001 wxPyListCtrl *result;
21002 wxPoint temp3 ;
21003 wxSize temp4 ;
21004 bool temp7 = False ;
21005 PyObject * obj0 = 0 ;
21006 PyObject * obj1 = 0 ;
21007 PyObject * obj2 = 0 ;
21008 PyObject * obj3 = 0 ;
21009 PyObject * obj4 = 0 ;
21010 PyObject * obj5 = 0 ;
21011 PyObject * obj6 = 0 ;
21012 char *kwnames[] = {
21013 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21014 };
21015
21016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21019 if (obj1) {
21020 arg2 = (int) SWIG_AsInt(obj1);
21021 if (PyErr_Occurred()) SWIG_fail;
21022 }
21023 if (obj2) {
21024 {
21025 arg3 = &temp3;
21026 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21027 }
21028 }
21029 if (obj3) {
21030 {
21031 arg4 = &temp4;
21032 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21033 }
21034 }
21035 if (obj4) {
21036 arg5 = (long) SWIG_AsLong(obj4);
21037 if (PyErr_Occurred()) SWIG_fail;
21038 }
21039 if (obj5) {
21040 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21041 SWIG_POINTER_EXCEPTION | 0)) == -1)
21042 SWIG_fail;
21043 if (arg6 == NULL) {
21044 PyErr_SetString(PyExc_TypeError,"null reference");
21045 SWIG_fail;
21046 }
21047 }
21048 if (obj6) {
21049 {
21050 arg7 = wxString_in_helper(obj6);
21051 if (arg7 == NULL) SWIG_fail;
21052 temp7 = True;
21053 }
21054 }
21055 {
21056 PyThreadState* __tstate = wxPyBeginAllowThreads();
21057 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21058
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21063 {
21064 if (temp7)
21065 delete arg7;
21066 }
21067 return resultobj;
21068 fail:
21069 {
21070 if (temp7)
21071 delete arg7;
21072 }
21073 return NULL;
21074 }
21075
21076
21077 static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
21078 PyObject *resultobj;
21079 wxPyListCtrl *result;
21080 char *kwnames[] = {
21081 NULL
21082 };
21083
21084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21085 {
21086 PyThreadState* __tstate = wxPyBeginAllowThreads();
21087 result = (wxPyListCtrl *)new wxPyListCtrl();
21088
21089 wxPyEndAllowThreads(__tstate);
21090 if (PyErr_Occurred()) SWIG_fail;
21091 }
21092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21093 return resultobj;
21094 fail:
21095 return NULL;
21096 }
21097
21098
21099 static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
21100 PyObject *resultobj;
21101 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21102 wxWindow *arg2 = (wxWindow *) 0 ;
21103 int arg3 = (int) -1 ;
21104 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21105 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21106 wxSize const &arg5_defvalue = wxDefaultSize ;
21107 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21108 long arg6 = (long) wxLC_ICON ;
21109 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21110 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21111 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21112 wxString *arg8 = (wxString *) &arg8_defvalue ;
21113 bool result;
21114 wxPoint temp4 ;
21115 wxSize temp5 ;
21116 bool temp8 = False ;
21117 PyObject * obj0 = 0 ;
21118 PyObject * obj1 = 0 ;
21119 PyObject * obj2 = 0 ;
21120 PyObject * obj3 = 0 ;
21121 PyObject * obj4 = 0 ;
21122 PyObject * obj5 = 0 ;
21123 PyObject * obj6 = 0 ;
21124 PyObject * obj7 = 0 ;
21125 char *kwnames[] = {
21126 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21127 };
21128
21129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21132 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21134 if (obj2) {
21135 arg3 = (int) SWIG_AsInt(obj2);
21136 if (PyErr_Occurred()) SWIG_fail;
21137 }
21138 if (obj3) {
21139 {
21140 arg4 = &temp4;
21141 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21142 }
21143 }
21144 if (obj4) {
21145 {
21146 arg5 = &temp5;
21147 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21148 }
21149 }
21150 if (obj5) {
21151 arg6 = (long) SWIG_AsLong(obj5);
21152 if (PyErr_Occurred()) SWIG_fail;
21153 }
21154 if (obj6) {
21155 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21156 SWIG_POINTER_EXCEPTION | 0)) == -1)
21157 SWIG_fail;
21158 if (arg7 == NULL) {
21159 PyErr_SetString(PyExc_TypeError,"null reference");
21160 SWIG_fail;
21161 }
21162 }
21163 if (obj7) {
21164 {
21165 arg8 = wxString_in_helper(obj7);
21166 if (arg8 == NULL) SWIG_fail;
21167 temp8 = True;
21168 }
21169 }
21170 {
21171 PyThreadState* __tstate = wxPyBeginAllowThreads();
21172 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21173
21174 wxPyEndAllowThreads(__tstate);
21175 if (PyErr_Occurred()) SWIG_fail;
21176 }
21177 {
21178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21179 }
21180 {
21181 if (temp8)
21182 delete arg8;
21183 }
21184 return resultobj;
21185 fail:
21186 {
21187 if (temp8)
21188 delete arg8;
21189 }
21190 return NULL;
21191 }
21192
21193
21194 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
21195 PyObject *resultobj;
21196 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21197 PyObject *arg2 = (PyObject *) 0 ;
21198 PyObject *arg3 = (PyObject *) 0 ;
21199 PyObject * obj0 = 0 ;
21200 PyObject * obj1 = 0 ;
21201 PyObject * obj2 = 0 ;
21202 char *kwnames[] = {
21203 (char *) "self",(char *) "self",(char *) "_class", NULL
21204 };
21205
21206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21209 arg2 = obj1;
21210 arg3 = obj2;
21211 {
21212 PyThreadState* __tstate = wxPyBeginAllowThreads();
21213 (arg1)->_setCallbackInfo(arg2,arg3);
21214
21215 wxPyEndAllowThreads(__tstate);
21216 if (PyErr_Occurred()) SWIG_fail;
21217 }
21218 Py_INCREF(Py_None); resultobj = Py_None;
21219 return resultobj;
21220 fail:
21221 return NULL;
21222 }
21223
21224
21225 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21226 PyObject *resultobj;
21227 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21228 wxColour *arg2 = 0 ;
21229 bool result;
21230 wxColour temp2 ;
21231 PyObject * obj0 = 0 ;
21232 PyObject * obj1 = 0 ;
21233 char *kwnames[] = {
21234 (char *) "self",(char *) "col", NULL
21235 };
21236
21237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21240 {
21241 arg2 = &temp2;
21242 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21243 }
21244 {
21245 PyThreadState* __tstate = wxPyBeginAllowThreads();
21246 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21247
21248 wxPyEndAllowThreads(__tstate);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 }
21251 {
21252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21253 }
21254 return resultobj;
21255 fail:
21256 return NULL;
21257 }
21258
21259
21260 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21261 PyObject *resultobj;
21262 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21263 wxColour *arg2 = 0 ;
21264 bool result;
21265 wxColour temp2 ;
21266 PyObject * obj0 = 0 ;
21267 PyObject * obj1 = 0 ;
21268 char *kwnames[] = {
21269 (char *) "self",(char *) "col", NULL
21270 };
21271
21272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21275 {
21276 arg2 = &temp2;
21277 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21278 }
21279 {
21280 PyThreadState* __tstate = wxPyBeginAllowThreads();
21281 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21282
21283 wxPyEndAllowThreads(__tstate);
21284 if (PyErr_Occurred()) SWIG_fail;
21285 }
21286 {
21287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21288 }
21289 return resultobj;
21290 fail:
21291 return NULL;
21292 }
21293
21294
21295 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21296 PyObject *resultobj;
21297 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21298 int arg2 ;
21299 wxListItem *result;
21300 PyObject * obj0 = 0 ;
21301 PyObject * obj1 = 0 ;
21302 char *kwnames[] = {
21303 (char *) "self",(char *) "col", NULL
21304 };
21305
21306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21309 arg2 = (int) SWIG_AsInt(obj1);
21310 if (PyErr_Occurred()) SWIG_fail;
21311 {
21312 PyThreadState* __tstate = wxPyBeginAllowThreads();
21313 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21314
21315 wxPyEndAllowThreads(__tstate);
21316 if (PyErr_Occurred()) SWIG_fail;
21317 }
21318 {
21319 resultobj = wxPyMake_wxObject(result);
21320 }
21321 return resultobj;
21322 fail:
21323 return NULL;
21324 }
21325
21326
21327 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21328 PyObject *resultobj;
21329 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21330 int arg2 ;
21331 wxListItem *arg3 = 0 ;
21332 bool result;
21333 PyObject * obj0 = 0 ;
21334 PyObject * obj1 = 0 ;
21335 PyObject * obj2 = 0 ;
21336 char *kwnames[] = {
21337 (char *) "self",(char *) "col",(char *) "item", NULL
21338 };
21339
21340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21343 arg2 = (int) SWIG_AsInt(obj1);
21344 if (PyErr_Occurred()) SWIG_fail;
21345 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21346 SWIG_POINTER_EXCEPTION | 0)) == -1)
21347 SWIG_fail;
21348 if (arg3 == NULL) {
21349 PyErr_SetString(PyExc_TypeError,"null reference");
21350 SWIG_fail;
21351 }
21352 {
21353 PyThreadState* __tstate = wxPyBeginAllowThreads();
21354 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21355
21356 wxPyEndAllowThreads(__tstate);
21357 if (PyErr_Occurred()) SWIG_fail;
21358 }
21359 {
21360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21361 }
21362 return resultobj;
21363 fail:
21364 return NULL;
21365 }
21366
21367
21368 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21369 PyObject *resultobj;
21370 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21371 int arg2 ;
21372 int result;
21373 PyObject * obj0 = 0 ;
21374 PyObject * obj1 = 0 ;
21375 char *kwnames[] = {
21376 (char *) "self",(char *) "col", NULL
21377 };
21378
21379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21382 arg2 = (int) SWIG_AsInt(obj1);
21383 if (PyErr_Occurred()) SWIG_fail;
21384 {
21385 PyThreadState* __tstate = wxPyBeginAllowThreads();
21386 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21387
21388 wxPyEndAllowThreads(__tstate);
21389 if (PyErr_Occurred()) SWIG_fail;
21390 }
21391 resultobj = SWIG_FromInt((int)result);
21392 return resultobj;
21393 fail:
21394 return NULL;
21395 }
21396
21397
21398 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21399 PyObject *resultobj;
21400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21401 int arg2 ;
21402 int arg3 ;
21403 bool result;
21404 PyObject * obj0 = 0 ;
21405 PyObject * obj1 = 0 ;
21406 PyObject * obj2 = 0 ;
21407 char *kwnames[] = {
21408 (char *) "self",(char *) "col",(char *) "width", NULL
21409 };
21410
21411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21414 arg2 = (int) SWIG_AsInt(obj1);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 arg3 = (int) SWIG_AsInt(obj2);
21417 if (PyErr_Occurred()) SWIG_fail;
21418 {
21419 PyThreadState* __tstate = wxPyBeginAllowThreads();
21420 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21421
21422 wxPyEndAllowThreads(__tstate);
21423 if (PyErr_Occurred()) SWIG_fail;
21424 }
21425 {
21426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21427 }
21428 return resultobj;
21429 fail:
21430 return NULL;
21431 }
21432
21433
21434 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
21435 PyObject *resultobj;
21436 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21437 int result;
21438 PyObject * obj0 = 0 ;
21439 char *kwnames[] = {
21440 (char *) "self", NULL
21441 };
21442
21443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21446 {
21447 PyThreadState* __tstate = wxPyBeginAllowThreads();
21448 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21449
21450 wxPyEndAllowThreads(__tstate);
21451 if (PyErr_Occurred()) SWIG_fail;
21452 }
21453 resultobj = SWIG_FromInt((int)result);
21454 return resultobj;
21455 fail:
21456 return NULL;
21457 }
21458
21459
21460 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21461 PyObject *resultobj;
21462 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21463 wxRect result;
21464 PyObject * obj0 = 0 ;
21465 char *kwnames[] = {
21466 (char *) "self", NULL
21467 };
21468
21469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21472 {
21473 PyThreadState* __tstate = wxPyBeginAllowThreads();
21474 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21475
21476 wxPyEndAllowThreads(__tstate);
21477 if (PyErr_Occurred()) SWIG_fail;
21478 }
21479 {
21480 wxRect * resultptr;
21481 resultptr = new wxRect((wxRect &) result);
21482 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21483 }
21484 return resultobj;
21485 fail:
21486 return NULL;
21487 }
21488
21489
21490 static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
21491 PyObject *resultobj;
21492 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21493 wxTextCtrl *result;
21494 PyObject * obj0 = 0 ;
21495 char *kwnames[] = {
21496 (char *) "self", NULL
21497 };
21498
21499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail;
21500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21502 {
21503 PyThreadState* __tstate = wxPyBeginAllowThreads();
21504 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
21505
21506 wxPyEndAllowThreads(__tstate);
21507 if (PyErr_Occurred()) SWIG_fail;
21508 }
21509 {
21510 resultobj = wxPyMake_wxObject(result);
21511 }
21512 return resultobj;
21513 fail:
21514 return NULL;
21515 }
21516
21517
21518 static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21519 PyObject *resultobj;
21520 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21521 long arg2 ;
21522 int arg3 = (int) 0 ;
21523 wxListItem *result;
21524 PyObject * obj0 = 0 ;
21525 PyObject * obj1 = 0 ;
21526 PyObject * obj2 = 0 ;
21527 char *kwnames[] = {
21528 (char *) "self",(char *) "itemId",(char *) "col", NULL
21529 };
21530
21531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21534 arg2 = (long) SWIG_AsLong(obj1);
21535 if (PyErr_Occurred()) SWIG_fail;
21536 if (obj2) {
21537 arg3 = (int) SWIG_AsInt(obj2);
21538 if (PyErr_Occurred()) SWIG_fail;
21539 }
21540 {
21541 PyThreadState* __tstate = wxPyBeginAllowThreads();
21542 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21543
21544 wxPyEndAllowThreads(__tstate);
21545 if (PyErr_Occurred()) SWIG_fail;
21546 }
21547 {
21548 resultobj = wxPyMake_wxObject(result);
21549 }
21550 return resultobj;
21551 fail:
21552 return NULL;
21553 }
21554
21555
21556 static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21557 PyObject *resultobj;
21558 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21559 wxListItem *arg2 = 0 ;
21560 bool result;
21561 PyObject * obj0 = 0 ;
21562 PyObject * obj1 = 0 ;
21563 char *kwnames[] = {
21564 (char *) "self",(char *) "info", NULL
21565 };
21566
21567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21571 SWIG_POINTER_EXCEPTION | 0)) == -1)
21572 SWIG_fail;
21573 if (arg2 == NULL) {
21574 PyErr_SetString(PyExc_TypeError,"null reference");
21575 SWIG_fail;
21576 }
21577 {
21578 PyThreadState* __tstate = wxPyBeginAllowThreads();
21579 result = (bool)(arg1)->SetItem(*arg2);
21580
21581 wxPyEndAllowThreads(__tstate);
21582 if (PyErr_Occurred()) SWIG_fail;
21583 }
21584 {
21585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21586 }
21587 return resultobj;
21588 fail:
21589 return NULL;
21590 }
21591
21592
21593 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21594 PyObject *resultobj;
21595 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21596 long arg2 ;
21597 int arg3 ;
21598 wxString *arg4 = 0 ;
21599 int arg5 = (int) -1 ;
21600 long result;
21601 bool temp4 = False ;
21602 PyObject * obj0 = 0 ;
21603 PyObject * obj1 = 0 ;
21604 PyObject * obj2 = 0 ;
21605 PyObject * obj3 = 0 ;
21606 PyObject * obj4 = 0 ;
21607 char *kwnames[] = {
21608 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21609 };
21610
21611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21614 arg2 = (long) SWIG_AsLong(obj1);
21615 if (PyErr_Occurred()) SWIG_fail;
21616 arg3 = (int) SWIG_AsInt(obj2);
21617 if (PyErr_Occurred()) SWIG_fail;
21618 {
21619 arg4 = wxString_in_helper(obj3);
21620 if (arg4 == NULL) SWIG_fail;
21621 temp4 = True;
21622 }
21623 if (obj4) {
21624 arg5 = (int) SWIG_AsInt(obj4);
21625 if (PyErr_Occurred()) SWIG_fail;
21626 }
21627 {
21628 PyThreadState* __tstate = wxPyBeginAllowThreads();
21629 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21630
21631 wxPyEndAllowThreads(__tstate);
21632 if (PyErr_Occurred()) SWIG_fail;
21633 }
21634 resultobj = SWIG_FromLong((long)result);
21635 {
21636 if (temp4)
21637 delete arg4;
21638 }
21639 return resultobj;
21640 fail:
21641 {
21642 if (temp4)
21643 delete arg4;
21644 }
21645 return NULL;
21646 }
21647
21648
21649 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21650 PyObject *resultobj;
21651 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21652 long arg2 ;
21653 long arg3 ;
21654 int result;
21655 PyObject * obj0 = 0 ;
21656 PyObject * obj1 = 0 ;
21657 PyObject * obj2 = 0 ;
21658 char *kwnames[] = {
21659 (char *) "self",(char *) "item",(char *) "stateMask", NULL
21660 };
21661
21662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
21663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21665 arg2 = (long) SWIG_AsLong(obj1);
21666 if (PyErr_Occurred()) SWIG_fail;
21667 arg3 = (long) SWIG_AsLong(obj2);
21668 if (PyErr_Occurred()) SWIG_fail;
21669 {
21670 PyThreadState* __tstate = wxPyBeginAllowThreads();
21671 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
21672
21673 wxPyEndAllowThreads(__tstate);
21674 if (PyErr_Occurred()) SWIG_fail;
21675 }
21676 resultobj = SWIG_FromInt((int)result);
21677 return resultobj;
21678 fail:
21679 return NULL;
21680 }
21681
21682
21683 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21684 PyObject *resultobj;
21685 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21686 long arg2 ;
21687 long arg3 ;
21688 long arg4 ;
21689 bool result;
21690 PyObject * obj0 = 0 ;
21691 PyObject * obj1 = 0 ;
21692 PyObject * obj2 = 0 ;
21693 PyObject * obj3 = 0 ;
21694 char *kwnames[] = {
21695 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
21696 };
21697
21698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) 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 arg4 = (long) SWIG_AsLong(obj3);
21706 if (PyErr_Occurred()) SWIG_fail;
21707 {
21708 PyThreadState* __tstate = wxPyBeginAllowThreads();
21709 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
21710
21711 wxPyEndAllowThreads(__tstate);
21712 if (PyErr_Occurred()) SWIG_fail;
21713 }
21714 {
21715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21716 }
21717 return resultobj;
21718 fail:
21719 return NULL;
21720 }
21721
21722
21723 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
21724 PyObject *resultobj;
21725 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21726 long arg2 ;
21727 int arg3 ;
21728 int arg4 ;
21729 bool result;
21730 PyObject * obj0 = 0 ;
21731 PyObject * obj1 = 0 ;
21732 PyObject * obj2 = 0 ;
21733 PyObject * obj3 = 0 ;
21734 char *kwnames[] = {
21735 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
21736 };
21737
21738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21741 arg2 = (long) SWIG_AsLong(obj1);
21742 if (PyErr_Occurred()) SWIG_fail;
21743 arg3 = (int) SWIG_AsInt(obj2);
21744 if (PyErr_Occurred()) SWIG_fail;
21745 arg4 = (int) SWIG_AsInt(obj3);
21746 if (PyErr_Occurred()) SWIG_fail;
21747 {
21748 PyThreadState* __tstate = wxPyBeginAllowThreads();
21749 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
21750
21751 wxPyEndAllowThreads(__tstate);
21752 if (PyErr_Occurred()) SWIG_fail;
21753 }
21754 {
21755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21756 }
21757 return resultobj;
21758 fail:
21759 return NULL;
21760 }
21761
21762
21763 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21764 PyObject *resultobj;
21765 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21766 long arg2 ;
21767 wxString result;
21768 PyObject * obj0 = 0 ;
21769 PyObject * obj1 = 0 ;
21770 char *kwnames[] = {
21771 (char *) "self",(char *) "item", NULL
21772 };
21773
21774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
21775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21777 arg2 = (long) SWIG_AsLong(obj1);
21778 if (PyErr_Occurred()) SWIG_fail;
21779 {
21780 PyThreadState* __tstate = wxPyBeginAllowThreads();
21781 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
21782
21783 wxPyEndAllowThreads(__tstate);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 }
21786 {
21787 #if wxUSE_UNICODE
21788 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21789 #else
21790 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21791 #endif
21792 }
21793 return resultobj;
21794 fail:
21795 return NULL;
21796 }
21797
21798
21799 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21800 PyObject *resultobj;
21801 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21802 long arg2 ;
21803 wxString *arg3 = 0 ;
21804 bool temp3 = False ;
21805 PyObject * obj0 = 0 ;
21806 PyObject * obj1 = 0 ;
21807 PyObject * obj2 = 0 ;
21808 char *kwnames[] = {
21809 (char *) "self",(char *) "item",(char *) "str", NULL
21810 };
21811
21812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
21813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21815 arg2 = (long) SWIG_AsLong(obj1);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 {
21818 arg3 = wxString_in_helper(obj2);
21819 if (arg3 == NULL) SWIG_fail;
21820 temp3 = True;
21821 }
21822 {
21823 PyThreadState* __tstate = wxPyBeginAllowThreads();
21824 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
21825
21826 wxPyEndAllowThreads(__tstate);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 Py_INCREF(Py_None); resultobj = Py_None;
21830 {
21831 if (temp3)
21832 delete arg3;
21833 }
21834 return resultobj;
21835 fail:
21836 {
21837 if (temp3)
21838 delete arg3;
21839 }
21840 return NULL;
21841 }
21842
21843
21844 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21845 PyObject *resultobj;
21846 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21847 long arg2 ;
21848 long result;
21849 PyObject * obj0 = 0 ;
21850 PyObject * obj1 = 0 ;
21851 char *kwnames[] = {
21852 (char *) "self",(char *) "item", NULL
21853 };
21854
21855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
21856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21858 arg2 = (long) SWIG_AsLong(obj1);
21859 if (PyErr_Occurred()) SWIG_fail;
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
21863
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 resultobj = SWIG_FromLong((long)result);
21868 return resultobj;
21869 fail:
21870 return NULL;
21871 }
21872
21873
21874 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21875 PyObject *resultobj;
21876 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21877 long arg2 ;
21878 long arg3 ;
21879 bool result;
21880 PyObject * obj0 = 0 ;
21881 PyObject * obj1 = 0 ;
21882 PyObject * obj2 = 0 ;
21883 char *kwnames[] = {
21884 (char *) "self",(char *) "item",(char *) "data", NULL
21885 };
21886
21887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21890 arg2 = (long) SWIG_AsLong(obj1);
21891 if (PyErr_Occurred()) SWIG_fail;
21892 arg3 = (long) SWIG_AsLong(obj2);
21893 if (PyErr_Occurred()) SWIG_fail;
21894 {
21895 PyThreadState* __tstate = wxPyBeginAllowThreads();
21896 result = (bool)(arg1)->SetItemData(arg2,arg3);
21897
21898 wxPyEndAllowThreads(__tstate);
21899 if (PyErr_Occurred()) SWIG_fail;
21900 }
21901 {
21902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21903 }
21904 return resultobj;
21905 fail:
21906 return NULL;
21907 }
21908
21909
21910 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21911 PyObject *resultobj;
21912 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21913 long arg2 ;
21914 wxPoint result;
21915 PyObject * obj0 = 0 ;
21916 PyObject * obj1 = 0 ;
21917 char *kwnames[] = {
21918 (char *) "self",(char *) "item", NULL
21919 };
21920
21921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
21922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21924 arg2 = (long) SWIG_AsLong(obj1);
21925 if (PyErr_Occurred()) SWIG_fail;
21926 {
21927 PyThreadState* __tstate = wxPyBeginAllowThreads();
21928 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
21929
21930 wxPyEndAllowThreads(__tstate);
21931 if (PyErr_Occurred()) SWIG_fail;
21932 }
21933 {
21934 wxPoint * resultptr;
21935 resultptr = new wxPoint((wxPoint &) result);
21936 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21937 }
21938 return resultobj;
21939 fail:
21940 return NULL;
21941 }
21942
21943
21944 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21945 PyObject *resultobj;
21946 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21947 long arg2 ;
21948 int arg3 = (int) wxLIST_RECT_BOUNDS ;
21949 wxRect result;
21950 PyObject * obj0 = 0 ;
21951 PyObject * obj1 = 0 ;
21952 PyObject * obj2 = 0 ;
21953 char *kwnames[] = {
21954 (char *) "self",(char *) "item",(char *) "code", NULL
21955 };
21956
21957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) 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 if (obj2) {
21963 arg3 = (int) SWIG_AsInt(obj2);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 {
21967 PyThreadState* __tstate = wxPyBeginAllowThreads();
21968 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
21969
21970 wxPyEndAllowThreads(__tstate);
21971 if (PyErr_Occurred()) SWIG_fail;
21972 }
21973 {
21974 wxRect * resultptr;
21975 resultptr = new wxRect((wxRect &) result);
21976 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21977 }
21978 return resultobj;
21979 fail:
21980 return NULL;
21981 }
21982
21983
21984 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21985 PyObject *resultobj;
21986 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21987 long arg2 ;
21988 wxPoint *arg3 = 0 ;
21989 bool result;
21990 wxPoint temp3 ;
21991 PyObject * obj0 = 0 ;
21992 PyObject * obj1 = 0 ;
21993 PyObject * obj2 = 0 ;
21994 char *kwnames[] = {
21995 (char *) "self",(char *) "item",(char *) "pos", NULL
21996 };
21997
21998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
21999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22001 arg2 = (long) SWIG_AsLong(obj1);
22002 if (PyErr_Occurred()) SWIG_fail;
22003 {
22004 arg3 = &temp3;
22005 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22006 }
22007 {
22008 PyThreadState* __tstate = wxPyBeginAllowThreads();
22009 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22010
22011 wxPyEndAllowThreads(__tstate);
22012 if (PyErr_Occurred()) SWIG_fail;
22013 }
22014 {
22015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22016 }
22017 return resultobj;
22018 fail:
22019 return NULL;
22020 }
22021
22022
22023 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22024 PyObject *resultobj;
22025 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22026 int result;
22027 PyObject * obj0 = 0 ;
22028 char *kwnames[] = {
22029 (char *) "self", NULL
22030 };
22031
22032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22035 {
22036 PyThreadState* __tstate = wxPyBeginAllowThreads();
22037 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22038
22039 wxPyEndAllowThreads(__tstate);
22040 if (PyErr_Occurred()) SWIG_fail;
22041 }
22042 resultobj = SWIG_FromInt((int)result);
22043 return resultobj;
22044 fail:
22045 return NULL;
22046 }
22047
22048
22049 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22050 PyObject *resultobj;
22051 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22052 int result;
22053 PyObject * obj0 = 0 ;
22054 char *kwnames[] = {
22055 (char *) "self", NULL
22056 };
22057
22058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22061 {
22062 PyThreadState* __tstate = wxPyBeginAllowThreads();
22063 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22064
22065 wxPyEndAllowThreads(__tstate);
22066 if (PyErr_Occurred()) SWIG_fail;
22067 }
22068 resultobj = SWIG_FromInt((int)result);
22069 return resultobj;
22070 fail:
22071 return NULL;
22072 }
22073
22074
22075 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
22076 PyObject *resultobj;
22077 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22078 wxSize result;
22079 PyObject * obj0 = 0 ;
22080 char *kwnames[] = {
22081 (char *) "self", NULL
22082 };
22083
22084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22087 {
22088 PyThreadState* __tstate = wxPyBeginAllowThreads();
22089 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22090
22091 wxPyEndAllowThreads(__tstate);
22092 if (PyErr_Occurred()) SWIG_fail;
22093 }
22094 {
22095 wxSize * resultptr;
22096 resultptr = new wxSize((wxSize &) result);
22097 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22098 }
22099 return resultobj;
22100 fail:
22101 return NULL;
22102 }
22103
22104
22105 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22106 PyObject *resultobj;
22107 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22108 int result;
22109 PyObject * obj0 = 0 ;
22110 char *kwnames[] = {
22111 (char *) "self", NULL
22112 };
22113
22114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22120
22121 wxPyEndAllowThreads(__tstate);
22122 if (PyErr_Occurred()) SWIG_fail;
22123 }
22124 resultobj = SWIG_FromInt((int)result);
22125 return resultobj;
22126 fail:
22127 return NULL;
22128 }
22129
22130
22131 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22132 PyObject *resultobj;
22133 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22134 wxColour result;
22135 PyObject * obj0 = 0 ;
22136 char *kwnames[] = {
22137 (char *) "self", NULL
22138 };
22139
22140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22143 {
22144 PyThreadState* __tstate = wxPyBeginAllowThreads();
22145 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22146
22147 wxPyEndAllowThreads(__tstate);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 }
22150 {
22151 wxColour * resultptr;
22152 resultptr = new wxColour((wxColour &) result);
22153 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22154 }
22155 return resultobj;
22156 fail:
22157 return NULL;
22158 }
22159
22160
22161 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22162 PyObject *resultobj;
22163 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22164 wxColour *arg2 = 0 ;
22165 wxColour temp2 ;
22166 PyObject * obj0 = 0 ;
22167 PyObject * obj1 = 0 ;
22168 char *kwnames[] = {
22169 (char *) "self",(char *) "col", NULL
22170 };
22171
22172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22175 {
22176 arg2 = &temp2;
22177 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22178 }
22179 {
22180 PyThreadState* __tstate = wxPyBeginAllowThreads();
22181 (arg1)->SetTextColour((wxColour const &)*arg2);
22182
22183 wxPyEndAllowThreads(__tstate);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 Py_INCREF(Py_None); resultobj = Py_None;
22187 return resultobj;
22188 fail:
22189 return NULL;
22190 }
22191
22192
22193 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22194 PyObject *resultobj;
22195 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22196 long result;
22197 PyObject * obj0 = 0 ;
22198 char *kwnames[] = {
22199 (char *) "self", NULL
22200 };
22201
22202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22205 {
22206 PyThreadState* __tstate = wxPyBeginAllowThreads();
22207 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22208
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 resultobj = SWIG_FromLong((long)result);
22213 return resultobj;
22214 fail:
22215 return NULL;
22216 }
22217
22218
22219 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22220 PyObject *resultobj;
22221 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22222 long arg2 ;
22223 bool arg3 = (bool) True ;
22224 PyObject * obj0 = 0 ;
22225 PyObject * obj1 = 0 ;
22226 PyObject * obj2 = 0 ;
22227 char *kwnames[] = {
22228 (char *) "self",(char *) "style",(char *) "add", NULL
22229 };
22230
22231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22234 arg2 = (long) SWIG_AsLong(obj1);
22235 if (PyErr_Occurred()) SWIG_fail;
22236 if (obj2) {
22237 arg3 = (bool) SWIG_AsBool(obj2);
22238 if (PyErr_Occurred()) SWIG_fail;
22239 }
22240 {
22241 PyThreadState* __tstate = wxPyBeginAllowThreads();
22242 (arg1)->SetSingleStyle(arg2,arg3);
22243
22244 wxPyEndAllowThreads(__tstate);
22245 if (PyErr_Occurred()) SWIG_fail;
22246 }
22247 Py_INCREF(Py_None); resultobj = Py_None;
22248 return resultobj;
22249 fail:
22250 return NULL;
22251 }
22252
22253
22254 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22255 PyObject *resultobj;
22256 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22257 long arg2 ;
22258 PyObject * obj0 = 0 ;
22259 PyObject * obj1 = 0 ;
22260 char *kwnames[] = {
22261 (char *) "self",(char *) "style", NULL
22262 };
22263
22264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22267 arg2 = (long) SWIG_AsLong(obj1);
22268 if (PyErr_Occurred()) SWIG_fail;
22269 {
22270 PyThreadState* __tstate = wxPyBeginAllowThreads();
22271 (arg1)->SetWindowStyleFlag(arg2);
22272
22273 wxPyEndAllowThreads(__tstate);
22274 if (PyErr_Occurred()) SWIG_fail;
22275 }
22276 Py_INCREF(Py_None); resultobj = Py_None;
22277 return resultobj;
22278 fail:
22279 return NULL;
22280 }
22281
22282
22283 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22284 PyObject *resultobj;
22285 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22286 long arg2 ;
22287 int arg3 = (int) wxLIST_NEXT_ALL ;
22288 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22289 long result;
22290 PyObject * obj0 = 0 ;
22291 PyObject * obj1 = 0 ;
22292 PyObject * obj2 = 0 ;
22293 PyObject * obj3 = 0 ;
22294 char *kwnames[] = {
22295 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22296 };
22297
22298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22301 arg2 = (long) SWIG_AsLong(obj1);
22302 if (PyErr_Occurred()) SWIG_fail;
22303 if (obj2) {
22304 arg3 = (int) SWIG_AsInt(obj2);
22305 if (PyErr_Occurred()) SWIG_fail;
22306 }
22307 if (obj3) {
22308 arg4 = (int) SWIG_AsInt(obj3);
22309 if (PyErr_Occurred()) SWIG_fail;
22310 }
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22314
22315 wxPyEndAllowThreads(__tstate);
22316 if (PyErr_Occurred()) SWIG_fail;
22317 }
22318 resultobj = SWIG_FromLong((long)result);
22319 return resultobj;
22320 fail:
22321 return NULL;
22322 }
22323
22324
22325 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22326 PyObject *resultobj;
22327 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22328 int arg2 ;
22329 wxImageList *result;
22330 PyObject * obj0 = 0 ;
22331 PyObject * obj1 = 0 ;
22332 char *kwnames[] = {
22333 (char *) "self",(char *) "which", NULL
22334 };
22335
22336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22339 arg2 = (int) SWIG_AsInt(obj1);
22340 if (PyErr_Occurred()) SWIG_fail;
22341 {
22342 PyThreadState* __tstate = wxPyBeginAllowThreads();
22343 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22344
22345 wxPyEndAllowThreads(__tstate);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 }
22348 {
22349 resultobj = wxPyMake_wxObject(result);
22350 }
22351 return resultobj;
22352 fail:
22353 return NULL;
22354 }
22355
22356
22357 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22358 PyObject *resultobj;
22359 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22360 wxImageList *arg2 = (wxImageList *) 0 ;
22361 int arg3 ;
22362 PyObject * obj0 = 0 ;
22363 PyObject * obj1 = 0 ;
22364 PyObject * obj2 = 0 ;
22365 char *kwnames[] = {
22366 (char *) "self",(char *) "imageList",(char *) "which", NULL
22367 };
22368
22369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22372 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22374 arg3 = (int) SWIG_AsInt(obj2);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 {
22377 PyThreadState* __tstate = wxPyBeginAllowThreads();
22378 (arg1)->SetImageList(arg2,arg3);
22379
22380 wxPyEndAllowThreads(__tstate);
22381 if (PyErr_Occurred()) SWIG_fail;
22382 }
22383 Py_INCREF(Py_None); resultobj = Py_None;
22384 return resultobj;
22385 fail:
22386 return NULL;
22387 }
22388
22389
22390 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22391 PyObject *resultobj;
22392 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22393 wxImageList *arg2 = (wxImageList *) 0 ;
22394 int arg3 ;
22395 PyObject * obj0 = 0 ;
22396 PyObject * obj1 = 0 ;
22397 PyObject * obj2 = 0 ;
22398 char *kwnames[] = {
22399 (char *) "self",(char *) "imageList",(char *) "which", NULL
22400 };
22401
22402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22406 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22407 arg3 = (int) SWIG_AsInt(obj2);
22408 if (PyErr_Occurred()) SWIG_fail;
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 (arg1)->AssignImageList(arg2,arg3);
22412
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 Py_INCREF(Py_None); resultobj = Py_None;
22417 return resultobj;
22418 fail:
22419 return NULL;
22420 }
22421
22422
22423 static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) {
22424 PyObject *resultobj;
22425 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22426 bool result;
22427 PyObject * obj0 = 0 ;
22428 char *kwnames[] = {
22429 (char *) "self", NULL
22430 };
22431
22432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22435 {
22436 PyThreadState* __tstate = wxPyBeginAllowThreads();
22437 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22438
22439 wxPyEndAllowThreads(__tstate);
22440 if (PyErr_Occurred()) SWIG_fail;
22441 }
22442 {
22443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22444 }
22445 return resultobj;
22446 fail:
22447 return NULL;
22448 }
22449
22450
22451 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
22452 PyObject *resultobj;
22453 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22454 bool result;
22455 PyObject * obj0 = 0 ;
22456 char *kwnames[] = {
22457 (char *) "self", NULL
22458 };
22459
22460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22463 {
22464 PyThreadState* __tstate = wxPyBeginAllowThreads();
22465 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22466
22467 wxPyEndAllowThreads(__tstate);
22468 if (PyErr_Occurred()) SWIG_fail;
22469 }
22470 {
22471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22472 }
22473 return resultobj;
22474 fail:
22475 return NULL;
22476 }
22477
22478
22479 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22480 PyObject *resultobj;
22481 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22482 long arg2 ;
22483 PyObject * obj0 = 0 ;
22484 PyObject * obj1 = 0 ;
22485 char *kwnames[] = {
22486 (char *) "self",(char *) "item", NULL
22487 };
22488
22489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22492 arg2 = (long) SWIG_AsLong(obj1);
22493 if (PyErr_Occurred()) SWIG_fail;
22494 {
22495 PyThreadState* __tstate = wxPyBeginAllowThreads();
22496 (arg1)->RefreshItem(arg2);
22497
22498 wxPyEndAllowThreads(__tstate);
22499 if (PyErr_Occurred()) SWIG_fail;
22500 }
22501 Py_INCREF(Py_None); resultobj = Py_None;
22502 return resultobj;
22503 fail:
22504 return NULL;
22505 }
22506
22507
22508 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22509 PyObject *resultobj;
22510 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22511 long arg2 ;
22512 long arg3 ;
22513 PyObject * obj0 = 0 ;
22514 PyObject * obj1 = 0 ;
22515 PyObject * obj2 = 0 ;
22516 char *kwnames[] = {
22517 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22518 };
22519
22520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22523 arg2 = (long) SWIG_AsLong(obj1);
22524 if (PyErr_Occurred()) SWIG_fail;
22525 arg3 = (long) SWIG_AsLong(obj2);
22526 if (PyErr_Occurred()) SWIG_fail;
22527 {
22528 PyThreadState* __tstate = wxPyBeginAllowThreads();
22529 (arg1)->RefreshItems(arg2,arg3);
22530
22531 wxPyEndAllowThreads(__tstate);
22532 if (PyErr_Occurred()) SWIG_fail;
22533 }
22534 Py_INCREF(Py_None); resultobj = Py_None;
22535 return resultobj;
22536 fail:
22537 return NULL;
22538 }
22539
22540
22541 static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
22542 PyObject *resultobj;
22543 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22544 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22545 bool result;
22546 PyObject * obj0 = 0 ;
22547 PyObject * obj1 = 0 ;
22548 char *kwnames[] = {
22549 (char *) "self",(char *) "flag", NULL
22550 };
22551
22552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22555 if (obj1) {
22556 arg2 = (int) SWIG_AsInt(obj1);
22557 if (PyErr_Occurred()) SWIG_fail;
22558 }
22559 {
22560 PyThreadState* __tstate = wxPyBeginAllowThreads();
22561 result = (bool)(arg1)->Arrange(arg2);
22562
22563 wxPyEndAllowThreads(__tstate);
22564 if (PyErr_Occurred()) SWIG_fail;
22565 }
22566 {
22567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22568 }
22569 return resultobj;
22570 fail:
22571 return NULL;
22572 }
22573
22574
22575 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22576 PyObject *resultobj;
22577 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22578 long arg2 ;
22579 bool result;
22580 PyObject * obj0 = 0 ;
22581 PyObject * obj1 = 0 ;
22582 char *kwnames[] = {
22583 (char *) "self",(char *) "item", NULL
22584 };
22585
22586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22589 arg2 = (long) SWIG_AsLong(obj1);
22590 if (PyErr_Occurred()) SWIG_fail;
22591 {
22592 PyThreadState* __tstate = wxPyBeginAllowThreads();
22593 result = (bool)(arg1)->DeleteItem(arg2);
22594
22595 wxPyEndAllowThreads(__tstate);
22596 if (PyErr_Occurred()) SWIG_fail;
22597 }
22598 {
22599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22600 }
22601 return resultobj;
22602 fail:
22603 return NULL;
22604 }
22605
22606
22607 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22608 PyObject *resultobj;
22609 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22610 bool result;
22611 PyObject * obj0 = 0 ;
22612 char *kwnames[] = {
22613 (char *) "self", NULL
22614 };
22615
22616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22619 {
22620 PyThreadState* __tstate = wxPyBeginAllowThreads();
22621 result = (bool)(arg1)->DeleteAllItems();
22622
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 {
22627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22628 }
22629 return resultobj;
22630 fail:
22631 return NULL;
22632 }
22633
22634
22635 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22636 PyObject *resultobj;
22637 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22638 int arg2 ;
22639 bool result;
22640 PyObject * obj0 = 0 ;
22641 PyObject * obj1 = 0 ;
22642 char *kwnames[] = {
22643 (char *) "self",(char *) "col", NULL
22644 };
22645
22646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22649 arg2 = (int) SWIG_AsInt(obj1);
22650 if (PyErr_Occurred()) SWIG_fail;
22651 {
22652 PyThreadState* __tstate = wxPyBeginAllowThreads();
22653 result = (bool)(arg1)->DeleteColumn(arg2);
22654
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 {
22659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22660 }
22661 return resultobj;
22662 fail:
22663 return NULL;
22664 }
22665
22666
22667 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
22668 PyObject *resultobj;
22669 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22670 bool result;
22671 PyObject * obj0 = 0 ;
22672 char *kwnames[] = {
22673 (char *) "self", NULL
22674 };
22675
22676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
22677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22679 {
22680 PyThreadState* __tstate = wxPyBeginAllowThreads();
22681 result = (bool)(arg1)->DeleteAllColumns();
22682
22683 wxPyEndAllowThreads(__tstate);
22684 if (PyErr_Occurred()) SWIG_fail;
22685 }
22686 {
22687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22688 }
22689 return resultobj;
22690 fail:
22691 return NULL;
22692 }
22693
22694
22695 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
22696 PyObject *resultobj;
22697 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22698 PyObject * obj0 = 0 ;
22699 char *kwnames[] = {
22700 (char *) "self", NULL
22701 };
22702
22703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
22704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22706 {
22707 PyThreadState* __tstate = wxPyBeginAllowThreads();
22708 (arg1)->ClearAll();
22709
22710 wxPyEndAllowThreads(__tstate);
22711 if (PyErr_Occurred()) SWIG_fail;
22712 }
22713 Py_INCREF(Py_None); resultobj = Py_None;
22714 return resultobj;
22715 fail:
22716 return NULL;
22717 }
22718
22719
22720 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
22721 PyObject *resultobj;
22722 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22723 long arg2 ;
22724 wxTextCtrl *result;
22725 PyObject * obj0 = 0 ;
22726 PyObject * obj1 = 0 ;
22727 char *kwnames[] = {
22728 (char *) "self",(char *) "item", NULL
22729 };
22730
22731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
22732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22734 arg2 = (long) SWIG_AsLong(obj1);
22735 if (PyErr_Occurred()) SWIG_fail;
22736 {
22737 PyThreadState* __tstate = wxPyBeginAllowThreads();
22738 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
22739
22740 wxPyEndAllowThreads(__tstate);
22741 if (PyErr_Occurred()) SWIG_fail;
22742 }
22743 {
22744 resultobj = wxPyMake_wxObject(result);
22745 }
22746 return resultobj;
22747 fail:
22748 return NULL;
22749 }
22750
22751
22752 static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
22753 PyObject *resultobj;
22754 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22755 bool arg2 ;
22756 bool result;
22757 PyObject * obj0 = 0 ;
22758 PyObject * obj1 = 0 ;
22759 char *kwnames[] = {
22760 (char *) "self",(char *) "cancel", NULL
22761 };
22762
22763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail;
22764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22766 arg2 = (bool) SWIG_AsBool(obj1);
22767 if (PyErr_Occurred()) SWIG_fail;
22768 {
22769 PyThreadState* __tstate = wxPyBeginAllowThreads();
22770 result = (bool)(arg1)->EndEditLabel(arg2);
22771
22772 wxPyEndAllowThreads(__tstate);
22773 if (PyErr_Occurred()) SWIG_fail;
22774 }
22775 {
22776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22777 }
22778 return resultobj;
22779 fail:
22780 return NULL;
22781 }
22782
22783
22784 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
22785 PyObject *resultobj;
22786 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22787 long arg2 ;
22788 bool result;
22789 PyObject * obj0 = 0 ;
22790 PyObject * obj1 = 0 ;
22791 char *kwnames[] = {
22792 (char *) "self",(char *) "item", NULL
22793 };
22794
22795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
22796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22798 arg2 = (long) SWIG_AsLong(obj1);
22799 if (PyErr_Occurred()) SWIG_fail;
22800 {
22801 PyThreadState* __tstate = wxPyBeginAllowThreads();
22802 result = (bool)(arg1)->EnsureVisible(arg2);
22803
22804 wxPyEndAllowThreads(__tstate);
22805 if (PyErr_Occurred()) SWIG_fail;
22806 }
22807 {
22808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22809 }
22810 return resultobj;
22811 fail:
22812 return NULL;
22813 }
22814
22815
22816 static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22817 PyObject *resultobj;
22818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22819 long arg2 ;
22820 wxString *arg3 = 0 ;
22821 bool arg4 = (bool) False ;
22822 long result;
22823 bool temp3 = False ;
22824 PyObject * obj0 = 0 ;
22825 PyObject * obj1 = 0 ;
22826 PyObject * obj2 = 0 ;
22827 PyObject * obj3 = 0 ;
22828 char *kwnames[] = {
22829 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
22830 };
22831
22832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22835 arg2 = (long) SWIG_AsLong(obj1);
22836 if (PyErr_Occurred()) SWIG_fail;
22837 {
22838 arg3 = wxString_in_helper(obj2);
22839 if (arg3 == NULL) SWIG_fail;
22840 temp3 = True;
22841 }
22842 if (obj3) {
22843 arg4 = (bool) SWIG_AsBool(obj3);
22844 if (PyErr_Occurred()) SWIG_fail;
22845 }
22846 {
22847 PyThreadState* __tstate = wxPyBeginAllowThreads();
22848 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
22849
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 resultobj = SWIG_FromLong((long)result);
22854 {
22855 if (temp3)
22856 delete arg3;
22857 }
22858 return resultobj;
22859 fail:
22860 {
22861 if (temp3)
22862 delete arg3;
22863 }
22864 return NULL;
22865 }
22866
22867
22868 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
22869 PyObject *resultobj;
22870 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22871 long arg2 ;
22872 long arg3 ;
22873 long result;
22874 PyObject * obj0 = 0 ;
22875 PyObject * obj1 = 0 ;
22876 PyObject * obj2 = 0 ;
22877 char *kwnames[] = {
22878 (char *) "self",(char *) "start",(char *) "data", NULL
22879 };
22880
22881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22884 arg2 = (long) SWIG_AsLong(obj1);
22885 if (PyErr_Occurred()) SWIG_fail;
22886 arg3 = (long) SWIG_AsLong(obj2);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 {
22889 PyThreadState* __tstate = wxPyBeginAllowThreads();
22890 result = (long)(arg1)->FindItem(arg2,arg3);
22891
22892 wxPyEndAllowThreads(__tstate);
22893 if (PyErr_Occurred()) SWIG_fail;
22894 }
22895 resultobj = SWIG_FromLong((long)result);
22896 return resultobj;
22897 fail:
22898 return NULL;
22899 }
22900
22901
22902 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
22903 PyObject *resultobj;
22904 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22905 long arg2 ;
22906 wxPoint *arg3 = 0 ;
22907 int arg4 ;
22908 long result;
22909 wxPoint temp3 ;
22910 PyObject * obj0 = 0 ;
22911 PyObject * obj1 = 0 ;
22912 PyObject * obj2 = 0 ;
22913 PyObject * obj3 = 0 ;
22914 char *kwnames[] = {
22915 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
22916 };
22917
22918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22921 arg2 = (long) SWIG_AsLong(obj1);
22922 if (PyErr_Occurred()) SWIG_fail;
22923 {
22924 arg3 = &temp3;
22925 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22926 }
22927 arg4 = (int) SWIG_AsInt(obj3);
22928 if (PyErr_Occurred()) SWIG_fail;
22929 {
22930 PyThreadState* __tstate = wxPyBeginAllowThreads();
22931 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
22932
22933 wxPyEndAllowThreads(__tstate);
22934 if (PyErr_Occurred()) SWIG_fail;
22935 }
22936 resultobj = SWIG_FromLong((long)result);
22937 return resultobj;
22938 fail:
22939 return NULL;
22940 }
22941
22942
22943 static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
22944 PyObject *resultobj;
22945 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22946 wxPoint *arg2 = 0 ;
22947 int *arg3 = 0 ;
22948 long result;
22949 wxPoint temp2 ;
22950 int temp3 ;
22951 PyObject * obj0 = 0 ;
22952 PyObject * obj1 = 0 ;
22953 char *kwnames[] = {
22954 (char *) "self",(char *) "point", NULL
22955 };
22956
22957 arg3 = &temp3;
22958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
22959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22961 {
22962 arg2 = &temp2;
22963 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22964 }
22965 {
22966 PyThreadState* __tstate = wxPyBeginAllowThreads();
22967 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
22968
22969 wxPyEndAllowThreads(__tstate);
22970 if (PyErr_Occurred()) SWIG_fail;
22971 }
22972 resultobj = SWIG_FromLong((long)result);
22973 {
22974 PyObject *o = PyInt_FromLong((long) (*arg3));
22975 resultobj = t_output_helper(resultobj,o);
22976 }
22977 return resultobj;
22978 fail:
22979 return NULL;
22980 }
22981
22982
22983 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22984 PyObject *resultobj;
22985 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22986 wxListItem *arg2 = 0 ;
22987 long result;
22988 PyObject * obj0 = 0 ;
22989 PyObject * obj1 = 0 ;
22990 char *kwnames[] = {
22991 (char *) "self",(char *) "info", NULL
22992 };
22993
22994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
22995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
22998 SWIG_POINTER_EXCEPTION | 0)) == -1)
22999 SWIG_fail;
23000 if (arg2 == NULL) {
23001 PyErr_SetString(PyExc_TypeError,"null reference");
23002 SWIG_fail;
23003 }
23004 {
23005 PyThreadState* __tstate = wxPyBeginAllowThreads();
23006 result = (long)(arg1)->InsertItem(*arg2);
23007
23008 wxPyEndAllowThreads(__tstate);
23009 if (PyErr_Occurred()) SWIG_fail;
23010 }
23011 resultobj = SWIG_FromLong((long)result);
23012 return resultobj;
23013 fail:
23014 return NULL;
23015 }
23016
23017
23018 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23019 PyObject *resultobj;
23020 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23021 long arg2 ;
23022 wxString *arg3 = 0 ;
23023 long result;
23024 bool temp3 = False ;
23025 PyObject * obj0 = 0 ;
23026 PyObject * obj1 = 0 ;
23027 PyObject * obj2 = 0 ;
23028 char *kwnames[] = {
23029 (char *) "self",(char *) "index",(char *) "label", NULL
23030 };
23031
23032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23035 arg2 = (long) SWIG_AsLong(obj1);
23036 if (PyErr_Occurred()) SWIG_fail;
23037 {
23038 arg3 = wxString_in_helper(obj2);
23039 if (arg3 == NULL) SWIG_fail;
23040 temp3 = True;
23041 }
23042 {
23043 PyThreadState* __tstate = wxPyBeginAllowThreads();
23044 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23045
23046 wxPyEndAllowThreads(__tstate);
23047 if (PyErr_Occurred()) SWIG_fail;
23048 }
23049 resultobj = SWIG_FromLong((long)result);
23050 {
23051 if (temp3)
23052 delete arg3;
23053 }
23054 return resultobj;
23055 fail:
23056 {
23057 if (temp3)
23058 delete arg3;
23059 }
23060 return NULL;
23061 }
23062
23063
23064 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23065 PyObject *resultobj;
23066 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23067 long arg2 ;
23068 int arg3 ;
23069 long result;
23070 PyObject * obj0 = 0 ;
23071 PyObject * obj1 = 0 ;
23072 PyObject * obj2 = 0 ;
23073 char *kwnames[] = {
23074 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23075 };
23076
23077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23080 arg2 = (long) SWIG_AsLong(obj1);
23081 if (PyErr_Occurred()) SWIG_fail;
23082 arg3 = (int) SWIG_AsInt(obj2);
23083 if (PyErr_Occurred()) SWIG_fail;
23084 {
23085 PyThreadState* __tstate = wxPyBeginAllowThreads();
23086 result = (long)(arg1)->InsertItem(arg2,arg3);
23087
23088 wxPyEndAllowThreads(__tstate);
23089 if (PyErr_Occurred()) SWIG_fail;
23090 }
23091 resultobj = SWIG_FromLong((long)result);
23092 return resultobj;
23093 fail:
23094 return NULL;
23095 }
23096
23097
23098 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23099 PyObject *resultobj;
23100 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23101 long arg2 ;
23102 wxString *arg3 = 0 ;
23103 int arg4 ;
23104 long result;
23105 bool temp3 = False ;
23106 PyObject * obj0 = 0 ;
23107 PyObject * obj1 = 0 ;
23108 PyObject * obj2 = 0 ;
23109 PyObject * obj3 = 0 ;
23110 char *kwnames[] = {
23111 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23112 };
23113
23114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23117 arg2 = (long) SWIG_AsLong(obj1);
23118 if (PyErr_Occurred()) SWIG_fail;
23119 {
23120 arg3 = wxString_in_helper(obj2);
23121 if (arg3 == NULL) SWIG_fail;
23122 temp3 = True;
23123 }
23124 arg4 = (int) SWIG_AsInt(obj3);
23125 if (PyErr_Occurred()) SWIG_fail;
23126 {
23127 PyThreadState* __tstate = wxPyBeginAllowThreads();
23128 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23129
23130 wxPyEndAllowThreads(__tstate);
23131 if (PyErr_Occurred()) SWIG_fail;
23132 }
23133 resultobj = SWIG_FromLong((long)result);
23134 {
23135 if (temp3)
23136 delete arg3;
23137 }
23138 return resultobj;
23139 fail:
23140 {
23141 if (temp3)
23142 delete arg3;
23143 }
23144 return NULL;
23145 }
23146
23147
23148 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23149 PyObject *resultobj;
23150 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23151 long arg2 ;
23152 wxListItem *arg3 = 0 ;
23153 long result;
23154 PyObject * obj0 = 0 ;
23155 PyObject * obj1 = 0 ;
23156 PyObject * obj2 = 0 ;
23157 char *kwnames[] = {
23158 (char *) "self",(char *) "col",(char *) "info", NULL
23159 };
23160
23161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23164 arg2 = (long) SWIG_AsLong(obj1);
23165 if (PyErr_Occurred()) SWIG_fail;
23166 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23167 SWIG_POINTER_EXCEPTION | 0)) == -1)
23168 SWIG_fail;
23169 if (arg3 == NULL) {
23170 PyErr_SetString(PyExc_TypeError,"null reference");
23171 SWIG_fail;
23172 }
23173 {
23174 PyThreadState* __tstate = wxPyBeginAllowThreads();
23175 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23176
23177 wxPyEndAllowThreads(__tstate);
23178 if (PyErr_Occurred()) SWIG_fail;
23179 }
23180 resultobj = SWIG_FromLong((long)result);
23181 return resultobj;
23182 fail:
23183 return NULL;
23184 }
23185
23186
23187 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
23188 PyObject *resultobj;
23189 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23190 long arg2 ;
23191 wxString *arg3 = 0 ;
23192 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23193 int arg5 = (int) -1 ;
23194 long result;
23195 bool temp3 = False ;
23196 PyObject * obj0 = 0 ;
23197 PyObject * obj1 = 0 ;
23198 PyObject * obj2 = 0 ;
23199 PyObject * obj3 = 0 ;
23200 PyObject * obj4 = 0 ;
23201 char *kwnames[] = {
23202 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23203 };
23204
23205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23208 arg2 = (long) SWIG_AsLong(obj1);
23209 if (PyErr_Occurred()) SWIG_fail;
23210 {
23211 arg3 = wxString_in_helper(obj2);
23212 if (arg3 == NULL) SWIG_fail;
23213 temp3 = True;
23214 }
23215 if (obj3) {
23216 arg4 = (int) SWIG_AsInt(obj3);
23217 if (PyErr_Occurred()) SWIG_fail;
23218 }
23219 if (obj4) {
23220 arg5 = (int) SWIG_AsInt(obj4);
23221 if (PyErr_Occurred()) SWIG_fail;
23222 }
23223 {
23224 PyThreadState* __tstate = wxPyBeginAllowThreads();
23225 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23226
23227 wxPyEndAllowThreads(__tstate);
23228 if (PyErr_Occurred()) SWIG_fail;
23229 }
23230 resultobj = SWIG_FromLong((long)result);
23231 {
23232 if (temp3)
23233 delete arg3;
23234 }
23235 return resultobj;
23236 fail:
23237 {
23238 if (temp3)
23239 delete arg3;
23240 }
23241 return NULL;
23242 }
23243
23244
23245 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23246 PyObject *resultobj;
23247 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23248 long arg2 ;
23249 PyObject * obj0 = 0 ;
23250 PyObject * obj1 = 0 ;
23251 char *kwnames[] = {
23252 (char *) "self",(char *) "count", NULL
23253 };
23254
23255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23258 arg2 = (long) SWIG_AsLong(obj1);
23259 if (PyErr_Occurred()) SWIG_fail;
23260 {
23261 PyThreadState* __tstate = wxPyBeginAllowThreads();
23262 (arg1)->SetItemCount(arg2);
23263
23264 wxPyEndAllowThreads(__tstate);
23265 if (PyErr_Occurred()) SWIG_fail;
23266 }
23267 Py_INCREF(Py_None); resultobj = Py_None;
23268 return resultobj;
23269 fail:
23270 return NULL;
23271 }
23272
23273
23274 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
23275 PyObject *resultobj;
23276 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23277 int arg2 ;
23278 int arg3 ;
23279 bool result;
23280 PyObject * obj0 = 0 ;
23281 PyObject * obj1 = 0 ;
23282 PyObject * obj2 = 0 ;
23283 char *kwnames[] = {
23284 (char *) "self",(char *) "dx",(char *) "dy", NULL
23285 };
23286
23287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23290 arg2 = (int) SWIG_AsInt(obj1);
23291 if (PyErr_Occurred()) SWIG_fail;
23292 arg3 = (int) SWIG_AsInt(obj2);
23293 if (PyErr_Occurred()) SWIG_fail;
23294 {
23295 PyThreadState* __tstate = wxPyBeginAllowThreads();
23296 result = (bool)(arg1)->ScrollList(arg2,arg3);
23297
23298 wxPyEndAllowThreads(__tstate);
23299 if (PyErr_Occurred()) SWIG_fail;
23300 }
23301 {
23302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23303 }
23304 return resultobj;
23305 fail:
23306 return NULL;
23307 }
23308
23309
23310 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23311 PyObject *resultobj;
23312 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23313 long arg2 ;
23314 wxColour *arg3 = 0 ;
23315 wxColour temp3 ;
23316 PyObject * obj0 = 0 ;
23317 PyObject * obj1 = 0 ;
23318 PyObject * obj2 = 0 ;
23319 char *kwnames[] = {
23320 (char *) "self",(char *) "item",(char *) "col", NULL
23321 };
23322
23323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",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 = (long) SWIG_AsLong(obj1);
23327 if (PyErr_Occurred()) SWIG_fail;
23328 {
23329 arg3 = &temp3;
23330 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23331 }
23332 {
23333 PyThreadState* __tstate = wxPyBeginAllowThreads();
23334 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23335
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 Py_INCREF(Py_None); resultobj = Py_None;
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23347 PyObject *resultobj;
23348 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23349 long arg2 ;
23350 wxColour result;
23351 PyObject * obj0 = 0 ;
23352 PyObject * obj1 = 0 ;
23353 char *kwnames[] = {
23354 (char *) "self",(char *) "item", NULL
23355 };
23356
23357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23360 arg2 = (long) SWIG_AsLong(obj1);
23361 if (PyErr_Occurred()) SWIG_fail;
23362 {
23363 PyThreadState* __tstate = wxPyBeginAllowThreads();
23364 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23365
23366 wxPyEndAllowThreads(__tstate);
23367 if (PyErr_Occurred()) SWIG_fail;
23368 }
23369 {
23370 wxColour * resultptr;
23371 resultptr = new wxColour((wxColour &) result);
23372 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23373 }
23374 return resultobj;
23375 fail:
23376 return NULL;
23377 }
23378
23379
23380 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23381 PyObject *resultobj;
23382 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23383 long arg2 ;
23384 wxColour *arg3 = 0 ;
23385 wxColour temp3 ;
23386 PyObject * obj0 = 0 ;
23387 PyObject * obj1 = 0 ;
23388 PyObject * obj2 = 0 ;
23389 char *kwnames[] = {
23390 (char *) "self",(char *) "item",(char *) "col", NULL
23391 };
23392
23393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) 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 arg3 = &temp3;
23400 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23401 }
23402 {
23403 PyThreadState* __tstate = wxPyBeginAllowThreads();
23404 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23405
23406 wxPyEndAllowThreads(__tstate);
23407 if (PyErr_Occurred()) SWIG_fail;
23408 }
23409 Py_INCREF(Py_None); resultobj = Py_None;
23410 return resultobj;
23411 fail:
23412 return NULL;
23413 }
23414
23415
23416 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23417 PyObject *resultobj;
23418 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23419 long arg2 ;
23420 wxColour result;
23421 PyObject * obj0 = 0 ;
23422 PyObject * obj1 = 0 ;
23423 char *kwnames[] = {
23424 (char *) "self",(char *) "item", NULL
23425 };
23426
23427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23430 arg2 = (long) SWIG_AsLong(obj1);
23431 if (PyErr_Occurred()) SWIG_fail;
23432 {
23433 PyThreadState* __tstate = wxPyBeginAllowThreads();
23434 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23435
23436 wxPyEndAllowThreads(__tstate);
23437 if (PyErr_Occurred()) SWIG_fail;
23438 }
23439 {
23440 wxColour * resultptr;
23441 resultptr = new wxColour((wxColour &) result);
23442 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23443 }
23444 return resultobj;
23445 fail:
23446 return NULL;
23447 }
23448
23449
23450 static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
23451 PyObject *resultobj;
23452 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23453 PyObject *arg2 = (PyObject *) 0 ;
23454 bool result;
23455 PyObject * obj0 = 0 ;
23456 PyObject * obj1 = 0 ;
23457 char *kwnames[] = {
23458 (char *) "self",(char *) "func", NULL
23459 };
23460
23461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23464 arg2 = obj1;
23465 {
23466 PyThreadState* __tstate = wxPyBeginAllowThreads();
23467 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23468
23469 wxPyEndAllowThreads(__tstate);
23470 if (PyErr_Occurred()) SWIG_fail;
23471 }
23472 {
23473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23474 }
23475 return resultobj;
23476 fail:
23477 return NULL;
23478 }
23479
23480
23481 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
23482 PyObject *resultobj;
23483 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23484 wxWindow *result;
23485 PyObject * obj0 = 0 ;
23486 char *kwnames[] = {
23487 (char *) "self", NULL
23488 };
23489
23490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23493 {
23494 PyThreadState* __tstate = wxPyBeginAllowThreads();
23495 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23496
23497 wxPyEndAllowThreads(__tstate);
23498 if (PyErr_Occurred()) SWIG_fail;
23499 }
23500 {
23501 resultobj = wxPyMake_wxObject(result);
23502 }
23503 return resultobj;
23504 fail:
23505 return NULL;
23506 }
23507
23508
23509 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
23510 PyObject *resultobj;
23511 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23512 wxVisualAttributes result;
23513 PyObject * obj0 = 0 ;
23514 char *kwnames[] = {
23515 (char *) "variant", NULL
23516 };
23517
23518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23519 if (obj0) {
23520 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 {
23524 PyThreadState* __tstate = wxPyBeginAllowThreads();
23525 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23526
23527 wxPyEndAllowThreads(__tstate);
23528 if (PyErr_Occurred()) SWIG_fail;
23529 }
23530 {
23531 wxVisualAttributes * resultptr;
23532 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23533 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23534 }
23535 return resultobj;
23536 fail:
23537 return NULL;
23538 }
23539
23540
23541 static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
23542 PyObject *obj;
23543 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23544 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23545 Py_INCREF(obj);
23546 return Py_BuildValue((char *)"");
23547 }
23548 static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23549 PyObject *resultobj;
23550 wxWindow *arg1 = (wxWindow *) 0 ;
23551 int arg2 = (int) -1 ;
23552 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23553 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23554 wxSize const &arg4_defvalue = wxDefaultSize ;
23555 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23556 long arg5 = (long) wxLC_REPORT ;
23557 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23558 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23559 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23560 wxString *arg7 = (wxString *) &arg7_defvalue ;
23561 wxListView *result;
23562 wxPoint temp3 ;
23563 wxSize temp4 ;
23564 bool temp7 = False ;
23565 PyObject * obj0 = 0 ;
23566 PyObject * obj1 = 0 ;
23567 PyObject * obj2 = 0 ;
23568 PyObject * obj3 = 0 ;
23569 PyObject * obj4 = 0 ;
23570 PyObject * obj5 = 0 ;
23571 PyObject * obj6 = 0 ;
23572 char *kwnames[] = {
23573 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23574 };
23575
23576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23579 if (obj1) {
23580 arg2 = (int) SWIG_AsInt(obj1);
23581 if (PyErr_Occurred()) SWIG_fail;
23582 }
23583 if (obj2) {
23584 {
23585 arg3 = &temp3;
23586 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23587 }
23588 }
23589 if (obj3) {
23590 {
23591 arg4 = &temp4;
23592 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23593 }
23594 }
23595 if (obj4) {
23596 arg5 = (long) SWIG_AsLong(obj4);
23597 if (PyErr_Occurred()) SWIG_fail;
23598 }
23599 if (obj5) {
23600 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23601 SWIG_POINTER_EXCEPTION | 0)) == -1)
23602 SWIG_fail;
23603 if (arg6 == NULL) {
23604 PyErr_SetString(PyExc_TypeError,"null reference");
23605 SWIG_fail;
23606 }
23607 }
23608 if (obj6) {
23609 {
23610 arg7 = wxString_in_helper(obj6);
23611 if (arg7 == NULL) SWIG_fail;
23612 temp7 = True;
23613 }
23614 }
23615 {
23616 PyThreadState* __tstate = wxPyBeginAllowThreads();
23617 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23618
23619 wxPyEndAllowThreads(__tstate);
23620 if (PyErr_Occurred()) SWIG_fail;
23621 }
23622 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23623 {
23624 if (temp7)
23625 delete arg7;
23626 }
23627 return resultobj;
23628 fail:
23629 {
23630 if (temp7)
23631 delete arg7;
23632 }
23633 return NULL;
23634 }
23635
23636
23637 static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23638 PyObject *resultobj;
23639 wxListView *result;
23640 char *kwnames[] = {
23641 NULL
23642 };
23643
23644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23645 {
23646 PyThreadState* __tstate = wxPyBeginAllowThreads();
23647 result = (wxListView *)new wxListView();
23648
23649 wxPyEndAllowThreads(__tstate);
23650 if (PyErr_Occurred()) SWIG_fail;
23651 }
23652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23653 return resultobj;
23654 fail:
23655 return NULL;
23656 }
23657
23658
23659 static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23660 PyObject *resultobj;
23661 wxListView *arg1 = (wxListView *) 0 ;
23662 wxWindow *arg2 = (wxWindow *) 0 ;
23663 int arg3 = (int) -1 ;
23664 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23665 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23666 wxSize const &arg5_defvalue = wxDefaultSize ;
23667 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23668 long arg6 = (long) wxLC_REPORT ;
23669 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23670 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23671 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
23672 wxString *arg8 = (wxString *) &arg8_defvalue ;
23673 bool result;
23674 wxPoint temp4 ;
23675 wxSize temp5 ;
23676 bool temp8 = False ;
23677 PyObject * obj0 = 0 ;
23678 PyObject * obj1 = 0 ;
23679 PyObject * obj2 = 0 ;
23680 PyObject * obj3 = 0 ;
23681 PyObject * obj4 = 0 ;
23682 PyObject * obj5 = 0 ;
23683 PyObject * obj6 = 0 ;
23684 PyObject * obj7 = 0 ;
23685 char *kwnames[] = {
23686 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23687 };
23688
23689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23694 if (obj2) {
23695 arg3 = (int) SWIG_AsInt(obj2);
23696 if (PyErr_Occurred()) SWIG_fail;
23697 }
23698 if (obj3) {
23699 {
23700 arg4 = &temp4;
23701 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23702 }
23703 }
23704 if (obj4) {
23705 {
23706 arg5 = &temp5;
23707 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23708 }
23709 }
23710 if (obj5) {
23711 arg6 = (long) SWIG_AsLong(obj5);
23712 if (PyErr_Occurred()) SWIG_fail;
23713 }
23714 if (obj6) {
23715 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23716 SWIG_POINTER_EXCEPTION | 0)) == -1)
23717 SWIG_fail;
23718 if (arg7 == NULL) {
23719 PyErr_SetString(PyExc_TypeError,"null reference");
23720 SWIG_fail;
23721 }
23722 }
23723 if (obj7) {
23724 {
23725 arg8 = wxString_in_helper(obj7);
23726 if (arg8 == NULL) SWIG_fail;
23727 temp8 = True;
23728 }
23729 }
23730 {
23731 PyThreadState* __tstate = wxPyBeginAllowThreads();
23732 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23733
23734 wxPyEndAllowThreads(__tstate);
23735 if (PyErr_Occurred()) SWIG_fail;
23736 }
23737 {
23738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23739 }
23740 {
23741 if (temp8)
23742 delete arg8;
23743 }
23744 return resultobj;
23745 fail:
23746 {
23747 if (temp8)
23748 delete arg8;
23749 }
23750 return NULL;
23751 }
23752
23753
23754 static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
23755 PyObject *resultobj;
23756 wxListView *arg1 = (wxListView *) 0 ;
23757 long arg2 ;
23758 bool arg3 = (bool) True ;
23759 PyObject * obj0 = 0 ;
23760 PyObject * obj1 = 0 ;
23761 PyObject * obj2 = 0 ;
23762 char *kwnames[] = {
23763 (char *) "self",(char *) "n",(char *) "on", NULL
23764 };
23765
23766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
23767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23769 arg2 = (long) SWIG_AsLong(obj1);
23770 if (PyErr_Occurred()) SWIG_fail;
23771 if (obj2) {
23772 arg3 = (bool) SWIG_AsBool(obj2);
23773 if (PyErr_Occurred()) SWIG_fail;
23774 }
23775 {
23776 PyThreadState* __tstate = wxPyBeginAllowThreads();
23777 (arg1)->Select(arg2,arg3);
23778
23779 wxPyEndAllowThreads(__tstate);
23780 if (PyErr_Occurred()) SWIG_fail;
23781 }
23782 Py_INCREF(Py_None); resultobj = Py_None;
23783 return resultobj;
23784 fail:
23785 return NULL;
23786 }
23787
23788
23789 static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
23790 PyObject *resultobj;
23791 wxListView *arg1 = (wxListView *) 0 ;
23792 long arg2 ;
23793 PyObject * obj0 = 0 ;
23794 PyObject * obj1 = 0 ;
23795 char *kwnames[] = {
23796 (char *) "self",(char *) "index", NULL
23797 };
23798
23799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
23800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23802 arg2 = (long) SWIG_AsLong(obj1);
23803 if (PyErr_Occurred()) SWIG_fail;
23804 {
23805 PyThreadState* __tstate = wxPyBeginAllowThreads();
23806 (arg1)->Focus(arg2);
23807
23808 wxPyEndAllowThreads(__tstate);
23809 if (PyErr_Occurred()) SWIG_fail;
23810 }
23811 Py_INCREF(Py_None); resultobj = Py_None;
23812 return resultobj;
23813 fail:
23814 return NULL;
23815 }
23816
23817
23818 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23819 PyObject *resultobj;
23820 wxListView *arg1 = (wxListView *) 0 ;
23821 long result;
23822 PyObject * obj0 = 0 ;
23823 char *kwnames[] = {
23824 (char *) "self", NULL
23825 };
23826
23827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
23828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23830 {
23831 PyThreadState* __tstate = wxPyBeginAllowThreads();
23832 result = (long)((wxListView const *)arg1)->GetFocusedItem();
23833
23834 wxPyEndAllowThreads(__tstate);
23835 if (PyErr_Occurred()) SWIG_fail;
23836 }
23837 resultobj = SWIG_FromLong((long)result);
23838 return resultobj;
23839 fail:
23840 return NULL;
23841 }
23842
23843
23844 static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23845 PyObject *resultobj;
23846 wxListView *arg1 = (wxListView *) 0 ;
23847 long arg2 ;
23848 long result;
23849 PyObject * obj0 = 0 ;
23850 PyObject * obj1 = 0 ;
23851 char *kwnames[] = {
23852 (char *) "self",(char *) "item", NULL
23853 };
23854
23855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
23856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23858 arg2 = (long) SWIG_AsLong(obj1);
23859 if (PyErr_Occurred()) SWIG_fail;
23860 {
23861 PyThreadState* __tstate = wxPyBeginAllowThreads();
23862 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
23863
23864 wxPyEndAllowThreads(__tstate);
23865 if (PyErr_Occurred()) SWIG_fail;
23866 }
23867 resultobj = SWIG_FromLong((long)result);
23868 return resultobj;
23869 fail:
23870 return NULL;
23871 }
23872
23873
23874 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23875 PyObject *resultobj;
23876 wxListView *arg1 = (wxListView *) 0 ;
23877 long result;
23878 PyObject * obj0 = 0 ;
23879 char *kwnames[] = {
23880 (char *) "self", NULL
23881 };
23882
23883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
23884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23886 {
23887 PyThreadState* __tstate = wxPyBeginAllowThreads();
23888 result = (long)((wxListView const *)arg1)->GetFirstSelected();
23889
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 resultobj = SWIG_FromLong((long)result);
23894 return resultobj;
23895 fail:
23896 return NULL;
23897 }
23898
23899
23900 static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23901 PyObject *resultobj;
23902 wxListView *arg1 = (wxListView *) 0 ;
23903 long arg2 ;
23904 bool result;
23905 PyObject * obj0 = 0 ;
23906 PyObject * obj1 = 0 ;
23907 char *kwnames[] = {
23908 (char *) "self",(char *) "index", NULL
23909 };
23910
23911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
23912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23914 arg2 = (long) SWIG_AsLong(obj1);
23915 if (PyErr_Occurred()) SWIG_fail;
23916 {
23917 PyThreadState* __tstate = wxPyBeginAllowThreads();
23918 result = (bool)(arg1)->IsSelected(arg2);
23919
23920 wxPyEndAllowThreads(__tstate);
23921 if (PyErr_Occurred()) SWIG_fail;
23922 }
23923 {
23924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23925 }
23926 return resultobj;
23927 fail:
23928 return NULL;
23929 }
23930
23931
23932 static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23933 PyObject *resultobj;
23934 wxListView *arg1 = (wxListView *) 0 ;
23935 int arg2 ;
23936 int arg3 ;
23937 PyObject * obj0 = 0 ;
23938 PyObject * obj1 = 0 ;
23939 PyObject * obj2 = 0 ;
23940 char *kwnames[] = {
23941 (char *) "self",(char *) "col",(char *) "image", NULL
23942 };
23943
23944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
23945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23947 arg2 = (int) SWIG_AsInt(obj1);
23948 if (PyErr_Occurred()) SWIG_fail;
23949 arg3 = (int) SWIG_AsInt(obj2);
23950 if (PyErr_Occurred()) SWIG_fail;
23951 {
23952 PyThreadState* __tstate = wxPyBeginAllowThreads();
23953 (arg1)->SetColumnImage(arg2,arg3);
23954
23955 wxPyEndAllowThreads(__tstate);
23956 if (PyErr_Occurred()) SWIG_fail;
23957 }
23958 Py_INCREF(Py_None); resultobj = Py_None;
23959 return resultobj;
23960 fail:
23961 return NULL;
23962 }
23963
23964
23965 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23966 PyObject *resultobj;
23967 wxListView *arg1 = (wxListView *) 0 ;
23968 int arg2 ;
23969 PyObject * obj0 = 0 ;
23970 PyObject * obj1 = 0 ;
23971 char *kwnames[] = {
23972 (char *) "self",(char *) "col", NULL
23973 };
23974
23975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
23976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23978 arg2 = (int) SWIG_AsInt(obj1);
23979 if (PyErr_Occurred()) SWIG_fail;
23980 {
23981 PyThreadState* __tstate = wxPyBeginAllowThreads();
23982 (arg1)->ClearColumnImage(arg2);
23983
23984 wxPyEndAllowThreads(__tstate);
23985 if (PyErr_Occurred()) SWIG_fail;
23986 }
23987 Py_INCREF(Py_None); resultobj = Py_None;
23988 return resultobj;
23989 fail:
23990 return NULL;
23991 }
23992
23993
23994 static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
23995 PyObject *obj;
23996 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23997 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
23998 Py_INCREF(obj);
23999 return Py_BuildValue((char *)"");
24000 }
24001 static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
24002 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24003 return 1;
24004 }
24005
24006
24007 static PyObject *_wrap_TreeCtrlNameStr_get() {
24008 PyObject *pyobj;
24009
24010 {
24011 #if wxUSE_UNICODE
24012 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24013 #else
24014 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24015 #endif
24016 }
24017 return pyobj;
24018 }
24019
24020
24021 static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
24022 PyObject *resultobj;
24023 wxTreeItemId *result;
24024 char *kwnames[] = {
24025 NULL
24026 };
24027
24028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 result = (wxTreeItemId *)new wxTreeItemId();
24032
24033 wxPyEndAllowThreads(__tstate);
24034 if (PyErr_Occurred()) SWIG_fail;
24035 }
24036 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24037 return resultobj;
24038 fail:
24039 return NULL;
24040 }
24041
24042
24043 static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
24044 PyObject *resultobj;
24045 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24046 PyObject * obj0 = 0 ;
24047 char *kwnames[] = {
24048 (char *) "self", NULL
24049 };
24050
24051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 delete arg1;
24057
24058 wxPyEndAllowThreads(__tstate);
24059 if (PyErr_Occurred()) SWIG_fail;
24060 }
24061 Py_INCREF(Py_None); resultobj = Py_None;
24062 return resultobj;
24063 fail:
24064 return NULL;
24065 }
24066
24067
24068 static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
24069 PyObject *resultobj;
24070 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24071 bool result;
24072 PyObject * obj0 = 0 ;
24073 char *kwnames[] = {
24074 (char *) "self", NULL
24075 };
24076
24077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24080 {
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24083
24084 wxPyEndAllowThreads(__tstate);
24085 if (PyErr_Occurred()) SWIG_fail;
24086 }
24087 {
24088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24089 }
24090 return resultobj;
24091 fail:
24092 return NULL;
24093 }
24094
24095
24096 static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
24097 PyObject *resultobj;
24098 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24099 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24100 bool result;
24101 PyObject * obj0 = 0 ;
24102 PyObject * obj1 = 0 ;
24103 char *kwnames[] = {
24104 (char *) "self",(char *) "other", NULL
24105 };
24106
24107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24110 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24112 {
24113 PyThreadState* __tstate = wxPyBeginAllowThreads();
24114 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24115
24116 wxPyEndAllowThreads(__tstate);
24117 if (PyErr_Occurred()) SWIG_fail;
24118 }
24119 {
24120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24121 }
24122 return resultobj;
24123 fail:
24124 return NULL;
24125 }
24126
24127
24128 static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
24129 PyObject *resultobj;
24130 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24131 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24132 bool result;
24133 PyObject * obj0 = 0 ;
24134 PyObject * obj1 = 0 ;
24135 char *kwnames[] = {
24136 (char *) "self",(char *) "other", NULL
24137 };
24138
24139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24142 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24144 {
24145 PyThreadState* __tstate = wxPyBeginAllowThreads();
24146 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24147
24148 wxPyEndAllowThreads(__tstate);
24149 if (PyErr_Occurred()) SWIG_fail;
24150 }
24151 {
24152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24153 }
24154 return resultobj;
24155 fail:
24156 return NULL;
24157 }
24158
24159
24160 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
24161 PyObject *resultobj;
24162 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24163 void *arg2 = (void *) 0 ;
24164 PyObject * obj0 = 0 ;
24165 PyObject * obj1 = 0 ;
24166 char *kwnames[] = {
24167 (char *) "self",(char *) "m_pItem", NULL
24168 };
24169
24170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24173 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24174 if (arg1) (arg1)->m_pItem = arg2;
24175
24176 Py_INCREF(Py_None); resultobj = Py_None;
24177 return resultobj;
24178 fail:
24179 return NULL;
24180 }
24181
24182
24183 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
24184 PyObject *resultobj;
24185 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24186 void *result;
24187 PyObject * obj0 = 0 ;
24188 char *kwnames[] = {
24189 (char *) "self", NULL
24190 };
24191
24192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24195 result = (void *) ((arg1)->m_pItem);
24196
24197 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24198 return resultobj;
24199 fail:
24200 return NULL;
24201 }
24202
24203
24204 static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
24205 PyObject *obj;
24206 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24207 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24208 Py_INCREF(obj);
24209 return Py_BuildValue((char *)"");
24210 }
24211 static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24212 PyObject *resultobj;
24213 PyObject *arg1 = (PyObject *) NULL ;
24214 wxPyTreeItemData *result;
24215 PyObject * obj0 = 0 ;
24216 char *kwnames[] = {
24217 (char *) "obj", NULL
24218 };
24219
24220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24221 if (obj0) {
24222 arg1 = obj0;
24223 }
24224 {
24225 PyThreadState* __tstate = wxPyBeginAllowThreads();
24226 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24227
24228 wxPyEndAllowThreads(__tstate);
24229 if (PyErr_Occurred()) SWIG_fail;
24230 }
24231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24232 return resultobj;
24233 fail:
24234 return NULL;
24235 }
24236
24237
24238 static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24239 PyObject *resultobj;
24240 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24241 PyObject *result;
24242 PyObject * obj0 = 0 ;
24243 char *kwnames[] = {
24244 (char *) "self", NULL
24245 };
24246
24247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24250 {
24251 PyThreadState* __tstate = wxPyBeginAllowThreads();
24252 result = (PyObject *)(arg1)->GetData();
24253
24254 wxPyEndAllowThreads(__tstate);
24255 if (PyErr_Occurred()) SWIG_fail;
24256 }
24257 resultobj = result;
24258 return resultobj;
24259 fail:
24260 return NULL;
24261 }
24262
24263
24264 static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24265 PyObject *resultobj;
24266 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24267 PyObject *arg2 = (PyObject *) 0 ;
24268 PyObject * obj0 = 0 ;
24269 PyObject * obj1 = 0 ;
24270 char *kwnames[] = {
24271 (char *) "self",(char *) "obj", NULL
24272 };
24273
24274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24277 arg2 = obj1;
24278 {
24279 PyThreadState* __tstate = wxPyBeginAllowThreads();
24280 (arg1)->SetData(arg2);
24281
24282 wxPyEndAllowThreads(__tstate);
24283 if (PyErr_Occurred()) SWIG_fail;
24284 }
24285 Py_INCREF(Py_None); resultobj = Py_None;
24286 return resultobj;
24287 fail:
24288 return NULL;
24289 }
24290
24291
24292 static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24293 PyObject *resultobj;
24294 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24295 wxTreeItemId *result;
24296 PyObject * obj0 = 0 ;
24297 char *kwnames[] = {
24298 (char *) "self", NULL
24299 };
24300
24301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24304 {
24305 PyThreadState* __tstate = wxPyBeginAllowThreads();
24306 {
24307 wxTreeItemId const &_result_ref = (arg1)->GetId();
24308 result = (wxTreeItemId *) &_result_ref;
24309 }
24310
24311 wxPyEndAllowThreads(__tstate);
24312 if (PyErr_Occurred()) SWIG_fail;
24313 }
24314 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24315 return resultobj;
24316 fail:
24317 return NULL;
24318 }
24319
24320
24321 static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24322 PyObject *resultobj;
24323 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24324 wxTreeItemId *arg2 = 0 ;
24325 PyObject * obj0 = 0 ;
24326 PyObject * obj1 = 0 ;
24327 char *kwnames[] = {
24328 (char *) "self",(char *) "id", NULL
24329 };
24330
24331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24335 SWIG_POINTER_EXCEPTION | 0)) == -1)
24336 SWIG_fail;
24337 if (arg2 == NULL) {
24338 PyErr_SetString(PyExc_TypeError,"null reference");
24339 SWIG_fail;
24340 }
24341 {
24342 PyThreadState* __tstate = wxPyBeginAllowThreads();
24343 (arg1)->SetId((wxTreeItemId const &)*arg2);
24344
24345 wxPyEndAllowThreads(__tstate);
24346 if (PyErr_Occurred()) SWIG_fail;
24347 }
24348 Py_INCREF(Py_None); resultobj = Py_None;
24349 return resultobj;
24350 fail:
24351 return NULL;
24352 }
24353
24354
24355 static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
24356 PyObject *resultobj;
24357 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24358 PyObject * obj0 = 0 ;
24359 char *kwnames[] = {
24360 (char *) "self", NULL
24361 };
24362
24363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24366 {
24367 PyThreadState* __tstate = wxPyBeginAllowThreads();
24368 wxPyTreeItemData_Destroy(arg1);
24369
24370 wxPyEndAllowThreads(__tstate);
24371 if (PyErr_Occurred()) SWIG_fail;
24372 }
24373 Py_INCREF(Py_None); resultobj = Py_None;
24374 return resultobj;
24375 fail:
24376 return NULL;
24377 }
24378
24379
24380 static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
24381 PyObject *obj;
24382 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24383 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24384 Py_INCREF(obj);
24385 return Py_BuildValue((char *)"");
24386 }
24387 static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24388 PyObject *resultobj;
24389 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24390 int arg2 = (int) 0 ;
24391 wxTreeEvent *result;
24392 PyObject * obj0 = 0 ;
24393 PyObject * obj1 = 0 ;
24394 char *kwnames[] = {
24395 (char *) "commandType",(char *) "id", NULL
24396 };
24397
24398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24399 if (obj0) {
24400 arg1 = (wxEventType) SWIG_AsInt(obj0);
24401 if (PyErr_Occurred()) SWIG_fail;
24402 }
24403 if (obj1) {
24404 arg2 = (int) SWIG_AsInt(obj1);
24405 if (PyErr_Occurred()) SWIG_fail;
24406 }
24407 {
24408 PyThreadState* __tstate = wxPyBeginAllowThreads();
24409 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24410
24411 wxPyEndAllowThreads(__tstate);
24412 if (PyErr_Occurred()) SWIG_fail;
24413 }
24414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24415 return resultobj;
24416 fail:
24417 return NULL;
24418 }
24419
24420
24421 static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24422 PyObject *resultobj;
24423 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24424 wxTreeItemId result;
24425 PyObject * obj0 = 0 ;
24426 char *kwnames[] = {
24427 (char *) "self", NULL
24428 };
24429
24430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24433 {
24434 PyThreadState* __tstate = wxPyBeginAllowThreads();
24435 result = ((wxTreeEvent const *)arg1)->GetItem();
24436
24437 wxPyEndAllowThreads(__tstate);
24438 if (PyErr_Occurred()) SWIG_fail;
24439 }
24440 {
24441 wxTreeItemId * resultptr;
24442 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24443 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24444 }
24445 return resultobj;
24446 fail:
24447 return NULL;
24448 }
24449
24450
24451 static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24452 PyObject *resultobj;
24453 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24454 wxTreeItemId *arg2 = 0 ;
24455 PyObject * obj0 = 0 ;
24456 PyObject * obj1 = 0 ;
24457 char *kwnames[] = {
24458 (char *) "self",(char *) "item", NULL
24459 };
24460
24461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24464 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24465 SWIG_POINTER_EXCEPTION | 0)) == -1)
24466 SWIG_fail;
24467 if (arg2 == NULL) {
24468 PyErr_SetString(PyExc_TypeError,"null reference");
24469 SWIG_fail;
24470 }
24471 {
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24474
24475 wxPyEndAllowThreads(__tstate);
24476 if (PyErr_Occurred()) SWIG_fail;
24477 }
24478 Py_INCREF(Py_None); resultobj = Py_None;
24479 return resultobj;
24480 fail:
24481 return NULL;
24482 }
24483
24484
24485 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24486 PyObject *resultobj;
24487 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24488 wxTreeItemId result;
24489 PyObject * obj0 = 0 ;
24490 char *kwnames[] = {
24491 (char *) "self", NULL
24492 };
24493
24494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24497 {
24498 PyThreadState* __tstate = wxPyBeginAllowThreads();
24499 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24500
24501 wxPyEndAllowThreads(__tstate);
24502 if (PyErr_Occurred()) SWIG_fail;
24503 }
24504 {
24505 wxTreeItemId * resultptr;
24506 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24507 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24508 }
24509 return resultobj;
24510 fail:
24511 return NULL;
24512 }
24513
24514
24515 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24516 PyObject *resultobj;
24517 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24518 wxTreeItemId *arg2 = 0 ;
24519 PyObject * obj0 = 0 ;
24520 PyObject * obj1 = 0 ;
24521 char *kwnames[] = {
24522 (char *) "self",(char *) "item", NULL
24523 };
24524
24525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24528 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24529 SWIG_POINTER_EXCEPTION | 0)) == -1)
24530 SWIG_fail;
24531 if (arg2 == NULL) {
24532 PyErr_SetString(PyExc_TypeError,"null reference");
24533 SWIG_fail;
24534 }
24535 {
24536 PyThreadState* __tstate = wxPyBeginAllowThreads();
24537 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24538
24539 wxPyEndAllowThreads(__tstate);
24540 if (PyErr_Occurred()) SWIG_fail;
24541 }
24542 Py_INCREF(Py_None); resultobj = Py_None;
24543 return resultobj;
24544 fail:
24545 return NULL;
24546 }
24547
24548
24549 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24550 PyObject *resultobj;
24551 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24552 wxPoint result;
24553 PyObject * obj0 = 0 ;
24554 char *kwnames[] = {
24555 (char *) "self", NULL
24556 };
24557
24558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24561 {
24562 PyThreadState* __tstate = wxPyBeginAllowThreads();
24563 result = ((wxTreeEvent const *)arg1)->GetPoint();
24564
24565 wxPyEndAllowThreads(__tstate);
24566 if (PyErr_Occurred()) SWIG_fail;
24567 }
24568 {
24569 wxPoint * resultptr;
24570 resultptr = new wxPoint((wxPoint &) result);
24571 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24572 }
24573 return resultobj;
24574 fail:
24575 return NULL;
24576 }
24577
24578
24579 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24580 PyObject *resultobj;
24581 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24582 wxPoint *arg2 = 0 ;
24583 wxPoint temp2 ;
24584 PyObject * obj0 = 0 ;
24585 PyObject * obj1 = 0 ;
24586 char *kwnames[] = {
24587 (char *) "self",(char *) "pt", NULL
24588 };
24589
24590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24593 {
24594 arg2 = &temp2;
24595 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24596 }
24597 {
24598 PyThreadState* __tstate = wxPyBeginAllowThreads();
24599 (arg1)->SetPoint((wxPoint const &)*arg2);
24600
24601 wxPyEndAllowThreads(__tstate);
24602 if (PyErr_Occurred()) SWIG_fail;
24603 }
24604 Py_INCREF(Py_None); resultobj = Py_None;
24605 return resultobj;
24606 fail:
24607 return NULL;
24608 }
24609
24610
24611 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24612 PyObject *resultobj;
24613 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24614 wxKeyEvent *result;
24615 PyObject * obj0 = 0 ;
24616 char *kwnames[] = {
24617 (char *) "self", NULL
24618 };
24619
24620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24623 {
24624 PyThreadState* __tstate = wxPyBeginAllowThreads();
24625 {
24626 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24627 result = (wxKeyEvent *) &_result_ref;
24628 }
24629
24630 wxPyEndAllowThreads(__tstate);
24631 if (PyErr_Occurred()) SWIG_fail;
24632 }
24633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24634 return resultobj;
24635 fail:
24636 return NULL;
24637 }
24638
24639
24640 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
24641 PyObject *resultobj;
24642 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24643 int result;
24644 PyObject * obj0 = 0 ;
24645 char *kwnames[] = {
24646 (char *) "self", NULL
24647 };
24648
24649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24652 {
24653 PyThreadState* __tstate = wxPyBeginAllowThreads();
24654 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
24655
24656 wxPyEndAllowThreads(__tstate);
24657 if (PyErr_Occurred()) SWIG_fail;
24658 }
24659 resultobj = SWIG_FromInt((int)result);
24660 return resultobj;
24661 fail:
24662 return NULL;
24663 }
24664
24665
24666 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24667 PyObject *resultobj;
24668 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24669 wxKeyEvent *arg2 = 0 ;
24670 PyObject * obj0 = 0 ;
24671 PyObject * obj1 = 0 ;
24672 char *kwnames[] = {
24673 (char *) "self",(char *) "evt", NULL
24674 };
24675
24676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
24677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
24680 SWIG_POINTER_EXCEPTION | 0)) == -1)
24681 SWIG_fail;
24682 if (arg2 == NULL) {
24683 PyErr_SetString(PyExc_TypeError,"null reference");
24684 SWIG_fail;
24685 }
24686 {
24687 PyThreadState* __tstate = wxPyBeginAllowThreads();
24688 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
24689
24690 wxPyEndAllowThreads(__tstate);
24691 if (PyErr_Occurred()) SWIG_fail;
24692 }
24693 Py_INCREF(Py_None); resultobj = Py_None;
24694 return resultobj;
24695 fail:
24696 return NULL;
24697 }
24698
24699
24700 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24701 PyObject *resultobj;
24702 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24703 wxString *result;
24704 PyObject * obj0 = 0 ;
24705 char *kwnames[] = {
24706 (char *) "self", NULL
24707 };
24708
24709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
24710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24712 {
24713 PyThreadState* __tstate = wxPyBeginAllowThreads();
24714 {
24715 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
24716 result = (wxString *) &_result_ref;
24717 }
24718
24719 wxPyEndAllowThreads(__tstate);
24720 if (PyErr_Occurred()) SWIG_fail;
24721 }
24722 {
24723 #if wxUSE_UNICODE
24724 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24725 #else
24726 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24727 #endif
24728 }
24729 return resultobj;
24730 fail:
24731 return NULL;
24732 }
24733
24734
24735 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24736 PyObject *resultobj;
24737 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24738 wxString *arg2 = 0 ;
24739 bool temp2 = False ;
24740 PyObject * obj0 = 0 ;
24741 PyObject * obj1 = 0 ;
24742 char *kwnames[] = {
24743 (char *) "self",(char *) "label", NULL
24744 };
24745
24746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
24747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24749 {
24750 arg2 = wxString_in_helper(obj1);
24751 if (arg2 == NULL) SWIG_fail;
24752 temp2 = True;
24753 }
24754 {
24755 PyThreadState* __tstate = wxPyBeginAllowThreads();
24756 (arg1)->SetLabel((wxString const &)*arg2);
24757
24758 wxPyEndAllowThreads(__tstate);
24759 if (PyErr_Occurred()) SWIG_fail;
24760 }
24761 Py_INCREF(Py_None); resultobj = Py_None;
24762 {
24763 if (temp2)
24764 delete arg2;
24765 }
24766 return resultobj;
24767 fail:
24768 {
24769 if (temp2)
24770 delete arg2;
24771 }
24772 return NULL;
24773 }
24774
24775
24776 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
24777 PyObject *resultobj;
24778 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24779 bool result;
24780 PyObject * obj0 = 0 ;
24781 char *kwnames[] = {
24782 (char *) "self", NULL
24783 };
24784
24785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
24786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24788 {
24789 PyThreadState* __tstate = wxPyBeginAllowThreads();
24790 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
24791
24792 wxPyEndAllowThreads(__tstate);
24793 if (PyErr_Occurred()) SWIG_fail;
24794 }
24795 {
24796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24797 }
24798 return resultobj;
24799 fail:
24800 return NULL;
24801 }
24802
24803
24804 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj;
24806 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24807 bool arg2 ;
24808 PyObject * obj0 = 0 ;
24809 PyObject * obj1 = 0 ;
24810 char *kwnames[] = {
24811 (char *) "self",(char *) "editCancelled", NULL
24812 };
24813
24814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
24815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24817 arg2 = (bool) SWIG_AsBool(obj1);
24818 if (PyErr_Occurred()) SWIG_fail;
24819 {
24820 PyThreadState* __tstate = wxPyBeginAllowThreads();
24821 (arg1)->SetEditCanceled(arg2);
24822
24823 wxPyEndAllowThreads(__tstate);
24824 if (PyErr_Occurred()) SWIG_fail;
24825 }
24826 Py_INCREF(Py_None); resultobj = Py_None;
24827 return resultobj;
24828 fail:
24829 return NULL;
24830 }
24831
24832
24833 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
24834 PyObject *resultobj;
24835 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24836 wxString *arg2 = 0 ;
24837 bool temp2 = False ;
24838 PyObject * obj0 = 0 ;
24839 PyObject * obj1 = 0 ;
24840 char *kwnames[] = {
24841 (char *) "self",(char *) "toolTip", NULL
24842 };
24843
24844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
24845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24847 {
24848 arg2 = wxString_in_helper(obj1);
24849 if (arg2 == NULL) SWIG_fail;
24850 temp2 = True;
24851 }
24852 {
24853 PyThreadState* __tstate = wxPyBeginAllowThreads();
24854 (arg1)->SetToolTip((wxString const &)*arg2);
24855
24856 wxPyEndAllowThreads(__tstate);
24857 if (PyErr_Occurred()) SWIG_fail;
24858 }
24859 Py_INCREF(Py_None); resultobj = Py_None;
24860 {
24861 if (temp2)
24862 delete arg2;
24863 }
24864 return resultobj;
24865 fail:
24866 {
24867 if (temp2)
24868 delete arg2;
24869 }
24870 return NULL;
24871 }
24872
24873
24874 static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
24875 PyObject *obj;
24876 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24877 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
24878 Py_INCREF(obj);
24879 return Py_BuildValue((char *)"");
24880 }
24881 static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24882 PyObject *resultobj;
24883 wxWindow *arg1 = (wxWindow *) 0 ;
24884 int arg2 = (int) -1 ;
24885 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24886 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24887 wxSize const &arg4_defvalue = wxDefaultSize ;
24888 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24889 long arg5 = (long) wxTR_DEFAULT_STYLE ;
24890 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24891 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24892 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
24893 wxString *arg7 = (wxString *) &arg7_defvalue ;
24894 wxPyTreeCtrl *result;
24895 wxPoint temp3 ;
24896 wxSize temp4 ;
24897 bool temp7 = False ;
24898 PyObject * obj0 = 0 ;
24899 PyObject * obj1 = 0 ;
24900 PyObject * obj2 = 0 ;
24901 PyObject * obj3 = 0 ;
24902 PyObject * obj4 = 0 ;
24903 PyObject * obj5 = 0 ;
24904 PyObject * obj6 = 0 ;
24905 char *kwnames[] = {
24906 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24907 };
24908
24909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24912 if (obj1) {
24913 arg2 = (int) SWIG_AsInt(obj1);
24914 if (PyErr_Occurred()) SWIG_fail;
24915 }
24916 if (obj2) {
24917 {
24918 arg3 = &temp3;
24919 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24920 }
24921 }
24922 if (obj3) {
24923 {
24924 arg4 = &temp4;
24925 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24926 }
24927 }
24928 if (obj4) {
24929 arg5 = (long) SWIG_AsLong(obj4);
24930 if (PyErr_Occurred()) SWIG_fail;
24931 }
24932 if (obj5) {
24933 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24934 SWIG_POINTER_EXCEPTION | 0)) == -1)
24935 SWIG_fail;
24936 if (arg6 == NULL) {
24937 PyErr_SetString(PyExc_TypeError,"null reference");
24938 SWIG_fail;
24939 }
24940 }
24941 if (obj6) {
24942 {
24943 arg7 = wxString_in_helper(obj6);
24944 if (arg7 == NULL) SWIG_fail;
24945 temp7 = True;
24946 }
24947 }
24948 {
24949 PyThreadState* __tstate = wxPyBeginAllowThreads();
24950 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24951
24952 wxPyEndAllowThreads(__tstate);
24953 if (PyErr_Occurred()) SWIG_fail;
24954 }
24955 {
24956 resultobj = wxPyMake_wxObject(result);
24957 }
24958 {
24959 if (temp7)
24960 delete arg7;
24961 }
24962 return resultobj;
24963 fail:
24964 {
24965 if (temp7)
24966 delete arg7;
24967 }
24968 return NULL;
24969 }
24970
24971
24972 static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24973 PyObject *resultobj;
24974 wxPyTreeCtrl *result;
24975 char *kwnames[] = {
24976 NULL
24977 };
24978
24979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
24980 {
24981 PyThreadState* __tstate = wxPyBeginAllowThreads();
24982 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
24983
24984 wxPyEndAllowThreads(__tstate);
24985 if (PyErr_Occurred()) SWIG_fail;
24986 }
24987 {
24988 resultobj = wxPyMake_wxObject(result);
24989 }
24990 return resultobj;
24991 fail:
24992 return NULL;
24993 }
24994
24995
24996 static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
24997 PyObject *resultobj;
24998 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24999 wxWindow *arg2 = (wxWindow *) 0 ;
25000 int arg3 = (int) -1 ;
25001 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25002 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25003 wxSize const &arg5_defvalue = wxDefaultSize ;
25004 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25005 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25006 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25007 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25008 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25009 wxString *arg8 = (wxString *) &arg8_defvalue ;
25010 bool result;
25011 wxPoint temp4 ;
25012 wxSize temp5 ;
25013 bool temp8 = False ;
25014 PyObject * obj0 = 0 ;
25015 PyObject * obj1 = 0 ;
25016 PyObject * obj2 = 0 ;
25017 PyObject * obj3 = 0 ;
25018 PyObject * obj4 = 0 ;
25019 PyObject * obj5 = 0 ;
25020 PyObject * obj6 = 0 ;
25021 PyObject * obj7 = 0 ;
25022 char *kwnames[] = {
25023 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25024 };
25025
25026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25029 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25031 if (obj2) {
25032 arg3 = (int) SWIG_AsInt(obj2);
25033 if (PyErr_Occurred()) SWIG_fail;
25034 }
25035 if (obj3) {
25036 {
25037 arg4 = &temp4;
25038 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25039 }
25040 }
25041 if (obj4) {
25042 {
25043 arg5 = &temp5;
25044 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25045 }
25046 }
25047 if (obj5) {
25048 arg6 = (long) SWIG_AsLong(obj5);
25049 if (PyErr_Occurred()) SWIG_fail;
25050 }
25051 if (obj6) {
25052 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25053 SWIG_POINTER_EXCEPTION | 0)) == -1)
25054 SWIG_fail;
25055 if (arg7 == NULL) {
25056 PyErr_SetString(PyExc_TypeError,"null reference");
25057 SWIG_fail;
25058 }
25059 }
25060 if (obj7) {
25061 {
25062 arg8 = wxString_in_helper(obj7);
25063 if (arg8 == NULL) SWIG_fail;
25064 temp8 = True;
25065 }
25066 }
25067 {
25068 PyThreadState* __tstate = wxPyBeginAllowThreads();
25069 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25070
25071 wxPyEndAllowThreads(__tstate);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 {
25075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25076 }
25077 {
25078 if (temp8)
25079 delete arg8;
25080 }
25081 return resultobj;
25082 fail:
25083 {
25084 if (temp8)
25085 delete arg8;
25086 }
25087 return NULL;
25088 }
25089
25090
25091 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25092 PyObject *resultobj;
25093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25094 PyObject *arg2 = (PyObject *) 0 ;
25095 PyObject *arg3 = (PyObject *) 0 ;
25096 PyObject * obj0 = 0 ;
25097 PyObject * obj1 = 0 ;
25098 PyObject * obj2 = 0 ;
25099 char *kwnames[] = {
25100 (char *) "self",(char *) "self",(char *) "_class", NULL
25101 };
25102
25103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25106 arg2 = obj1;
25107 arg3 = obj2;
25108 {
25109 PyThreadState* __tstate = wxPyBeginAllowThreads();
25110 (arg1)->_setCallbackInfo(arg2,arg3);
25111
25112 wxPyEndAllowThreads(__tstate);
25113 if (PyErr_Occurred()) SWIG_fail;
25114 }
25115 Py_INCREF(Py_None); resultobj = Py_None;
25116 return resultobj;
25117 fail:
25118 return NULL;
25119 }
25120
25121
25122 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
25123 PyObject *resultobj;
25124 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25125 size_t result;
25126 PyObject * obj0 = 0 ;
25127 char *kwnames[] = {
25128 (char *) "self", NULL
25129 };
25130
25131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25134 {
25135 PyThreadState* __tstate = wxPyBeginAllowThreads();
25136 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25137
25138 wxPyEndAllowThreads(__tstate);
25139 if (PyErr_Occurred()) SWIG_fail;
25140 }
25141 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25142 return resultobj;
25143 fail:
25144 return NULL;
25145 }
25146
25147
25148 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25149 PyObject *resultobj;
25150 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25151 unsigned int result;
25152 PyObject * obj0 = 0 ;
25153 char *kwnames[] = {
25154 (char *) "self", NULL
25155 };
25156
25157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25160 {
25161 PyThreadState* __tstate = wxPyBeginAllowThreads();
25162 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25163
25164 wxPyEndAllowThreads(__tstate);
25165 if (PyErr_Occurred()) SWIG_fail;
25166 }
25167 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25168 return resultobj;
25169 fail:
25170 return NULL;
25171 }
25172
25173
25174 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25175 PyObject *resultobj;
25176 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25177 unsigned int arg2 ;
25178 PyObject * obj0 = 0 ;
25179 PyObject * obj1 = 0 ;
25180 char *kwnames[] = {
25181 (char *) "self",(char *) "indent", NULL
25182 };
25183
25184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25187 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25188 if (PyErr_Occurred()) SWIG_fail;
25189 {
25190 PyThreadState* __tstate = wxPyBeginAllowThreads();
25191 (arg1)->SetIndent(arg2);
25192
25193 wxPyEndAllowThreads(__tstate);
25194 if (PyErr_Occurred()) SWIG_fail;
25195 }
25196 Py_INCREF(Py_None); resultobj = Py_None;
25197 return resultobj;
25198 fail:
25199 return NULL;
25200 }
25201
25202
25203 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25204 PyObject *resultobj;
25205 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25206 unsigned int result;
25207 PyObject * obj0 = 0 ;
25208 char *kwnames[] = {
25209 (char *) "self", NULL
25210 };
25211
25212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25215 {
25216 PyThreadState* __tstate = wxPyBeginAllowThreads();
25217 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25218
25219 wxPyEndAllowThreads(__tstate);
25220 if (PyErr_Occurred()) SWIG_fail;
25221 }
25222 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25223 return resultobj;
25224 fail:
25225 return NULL;
25226 }
25227
25228
25229 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25230 PyObject *resultobj;
25231 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25232 unsigned int arg2 ;
25233 PyObject * obj0 = 0 ;
25234 PyObject * obj1 = 0 ;
25235 char *kwnames[] = {
25236 (char *) "self",(char *) "spacing", NULL
25237 };
25238
25239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25242 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25243 if (PyErr_Occurred()) SWIG_fail;
25244 {
25245 PyThreadState* __tstate = wxPyBeginAllowThreads();
25246 (arg1)->SetSpacing(arg2);
25247
25248 wxPyEndAllowThreads(__tstate);
25249 if (PyErr_Occurred()) SWIG_fail;
25250 }
25251 Py_INCREF(Py_None); resultobj = Py_None;
25252 return resultobj;
25253 fail:
25254 return NULL;
25255 }
25256
25257
25258 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25259 PyObject *resultobj;
25260 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25261 wxImageList *result;
25262 PyObject * obj0 = 0 ;
25263 char *kwnames[] = {
25264 (char *) "self", NULL
25265 };
25266
25267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25270 {
25271 PyThreadState* __tstate = wxPyBeginAllowThreads();
25272 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25273
25274 wxPyEndAllowThreads(__tstate);
25275 if (PyErr_Occurred()) SWIG_fail;
25276 }
25277 {
25278 resultobj = wxPyMake_wxObject(result);
25279 }
25280 return resultobj;
25281 fail:
25282 return NULL;
25283 }
25284
25285
25286 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25287 PyObject *resultobj;
25288 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25289 wxImageList *result;
25290 PyObject * obj0 = 0 ;
25291 char *kwnames[] = {
25292 (char *) "self", NULL
25293 };
25294
25295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25298 {
25299 PyThreadState* __tstate = wxPyBeginAllowThreads();
25300 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25301
25302 wxPyEndAllowThreads(__tstate);
25303 if (PyErr_Occurred()) SWIG_fail;
25304 }
25305 {
25306 resultobj = wxPyMake_wxObject(result);
25307 }
25308 return resultobj;
25309 fail:
25310 return NULL;
25311 }
25312
25313
25314 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25315 PyObject *resultobj;
25316 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25317 wxImageList *arg2 = (wxImageList *) 0 ;
25318 PyObject * obj0 = 0 ;
25319 PyObject * obj1 = 0 ;
25320 char *kwnames[] = {
25321 (char *) "self",(char *) "imageList", NULL
25322 };
25323
25324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25327 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25329 {
25330 PyThreadState* __tstate = wxPyBeginAllowThreads();
25331 (arg1)->SetImageList(arg2);
25332
25333 wxPyEndAllowThreads(__tstate);
25334 if (PyErr_Occurred()) SWIG_fail;
25335 }
25336 Py_INCREF(Py_None); resultobj = Py_None;
25337 return resultobj;
25338 fail:
25339 return NULL;
25340 }
25341
25342
25343 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25344 PyObject *resultobj;
25345 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25346 wxImageList *arg2 = (wxImageList *) 0 ;
25347 PyObject * obj0 = 0 ;
25348 PyObject * obj1 = 0 ;
25349 char *kwnames[] = {
25350 (char *) "self",(char *) "imageList", NULL
25351 };
25352
25353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25358 {
25359 PyThreadState* __tstate = wxPyBeginAllowThreads();
25360 (arg1)->SetStateImageList(arg2);
25361
25362 wxPyEndAllowThreads(__tstate);
25363 if (PyErr_Occurred()) SWIG_fail;
25364 }
25365 Py_INCREF(Py_None); resultobj = Py_None;
25366 return resultobj;
25367 fail:
25368 return NULL;
25369 }
25370
25371
25372 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25373 PyObject *resultobj;
25374 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25375 wxImageList *arg2 = (wxImageList *) 0 ;
25376 PyObject * obj0 = 0 ;
25377 PyObject * obj1 = 0 ;
25378 char *kwnames[] = {
25379 (char *) "self",(char *) "imageList", NULL
25380 };
25381
25382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25385 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25386 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25387 {
25388 PyThreadState* __tstate = wxPyBeginAllowThreads();
25389 (arg1)->AssignImageList(arg2);
25390
25391 wxPyEndAllowThreads(__tstate);
25392 if (PyErr_Occurred()) SWIG_fail;
25393 }
25394 Py_INCREF(Py_None); resultobj = Py_None;
25395 return resultobj;
25396 fail:
25397 return NULL;
25398 }
25399
25400
25401 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25402 PyObject *resultobj;
25403 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25404 wxImageList *arg2 = (wxImageList *) 0 ;
25405 PyObject * obj0 = 0 ;
25406 PyObject * obj1 = 0 ;
25407 char *kwnames[] = {
25408 (char *) "self",(char *) "imageList", NULL
25409 };
25410
25411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25414 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25415 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25416 {
25417 PyThreadState* __tstate = wxPyBeginAllowThreads();
25418 (arg1)->AssignStateImageList(arg2);
25419
25420 wxPyEndAllowThreads(__tstate);
25421 if (PyErr_Occurred()) SWIG_fail;
25422 }
25423 Py_INCREF(Py_None); resultobj = Py_None;
25424 return resultobj;
25425 fail:
25426 return NULL;
25427 }
25428
25429
25430 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25431 PyObject *resultobj;
25432 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25433 wxTreeItemId *arg2 = 0 ;
25434 wxString result;
25435 PyObject * obj0 = 0 ;
25436 PyObject * obj1 = 0 ;
25437 char *kwnames[] = {
25438 (char *) "self",(char *) "item", NULL
25439 };
25440
25441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25445 SWIG_POINTER_EXCEPTION | 0)) == -1)
25446 SWIG_fail;
25447 if (arg2 == NULL) {
25448 PyErr_SetString(PyExc_TypeError,"null reference");
25449 SWIG_fail;
25450 }
25451 {
25452 PyThreadState* __tstate = wxPyBeginAllowThreads();
25453 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25454
25455 wxPyEndAllowThreads(__tstate);
25456 if (PyErr_Occurred()) SWIG_fail;
25457 }
25458 {
25459 #if wxUSE_UNICODE
25460 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25461 #else
25462 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25463 #endif
25464 }
25465 return resultobj;
25466 fail:
25467 return NULL;
25468 }
25469
25470
25471 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25472 PyObject *resultobj;
25473 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25474 wxTreeItemId *arg2 = 0 ;
25475 int arg3 = (int) wxTreeItemIcon_Normal ;
25476 int result;
25477 PyObject * obj0 = 0 ;
25478 PyObject * obj1 = 0 ;
25479 PyObject * obj2 = 0 ;
25480 char *kwnames[] = {
25481 (char *) "self",(char *) "item",(char *) "which", NULL
25482 };
25483
25484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25488 SWIG_POINTER_EXCEPTION | 0)) == -1)
25489 SWIG_fail;
25490 if (arg2 == NULL) {
25491 PyErr_SetString(PyExc_TypeError,"null reference");
25492 SWIG_fail;
25493 }
25494 if (obj2) {
25495 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
25496 if (PyErr_Occurred()) SWIG_fail;
25497 }
25498 {
25499 PyThreadState* __tstate = wxPyBeginAllowThreads();
25500 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25501
25502 wxPyEndAllowThreads(__tstate);
25503 if (PyErr_Occurred()) SWIG_fail;
25504 }
25505 resultobj = SWIG_FromInt((int)result);
25506 return resultobj;
25507 fail:
25508 return NULL;
25509 }
25510
25511
25512 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25513 PyObject *resultobj;
25514 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25515 wxTreeItemId *arg2 = 0 ;
25516 wxPyTreeItemData *result;
25517 PyObject * obj0 = 0 ;
25518 PyObject * obj1 = 0 ;
25519 char *kwnames[] = {
25520 (char *) "self",(char *) "item", NULL
25521 };
25522
25523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25527 SWIG_POINTER_EXCEPTION | 0)) == -1)
25528 SWIG_fail;
25529 if (arg2 == NULL) {
25530 PyErr_SetString(PyExc_TypeError,"null reference");
25531 SWIG_fail;
25532 }
25533 {
25534 PyThreadState* __tstate = wxPyBeginAllowThreads();
25535 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25536
25537 wxPyEndAllowThreads(__tstate);
25538 if (PyErr_Occurred()) SWIG_fail;
25539 }
25540 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25541 return resultobj;
25542 fail:
25543 return NULL;
25544 }
25545
25546
25547 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25548 PyObject *resultobj;
25549 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25550 wxTreeItemId *arg2 = 0 ;
25551 PyObject *result;
25552 PyObject * obj0 = 0 ;
25553 PyObject * obj1 = 0 ;
25554 char *kwnames[] = {
25555 (char *) "self",(char *) "item", NULL
25556 };
25557
25558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25562 SWIG_POINTER_EXCEPTION | 0)) == -1)
25563 SWIG_fail;
25564 if (arg2 == NULL) {
25565 PyErr_SetString(PyExc_TypeError,"null reference");
25566 SWIG_fail;
25567 }
25568 {
25569 PyThreadState* __tstate = wxPyBeginAllowThreads();
25570 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25571
25572 wxPyEndAllowThreads(__tstate);
25573 if (PyErr_Occurred()) SWIG_fail;
25574 }
25575 resultobj = result;
25576 return resultobj;
25577 fail:
25578 return NULL;
25579 }
25580
25581
25582 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25583 PyObject *resultobj;
25584 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25585 wxTreeItemId *arg2 = 0 ;
25586 wxColour result;
25587 PyObject * obj0 = 0 ;
25588 PyObject * obj1 = 0 ;
25589 char *kwnames[] = {
25590 (char *) "self",(char *) "item", NULL
25591 };
25592
25593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25596 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25597 SWIG_POINTER_EXCEPTION | 0)) == -1)
25598 SWIG_fail;
25599 if (arg2 == NULL) {
25600 PyErr_SetString(PyExc_TypeError,"null reference");
25601 SWIG_fail;
25602 }
25603 {
25604 PyThreadState* __tstate = wxPyBeginAllowThreads();
25605 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25606
25607 wxPyEndAllowThreads(__tstate);
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 {
25611 wxColour * resultptr;
25612 resultptr = new wxColour((wxColour &) result);
25613 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25614 }
25615 return resultobj;
25616 fail:
25617 return NULL;
25618 }
25619
25620
25621 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25622 PyObject *resultobj;
25623 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25624 wxTreeItemId *arg2 = 0 ;
25625 wxColour result;
25626 PyObject * obj0 = 0 ;
25627 PyObject * obj1 = 0 ;
25628 char *kwnames[] = {
25629 (char *) "self",(char *) "item", NULL
25630 };
25631
25632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25636 SWIG_POINTER_EXCEPTION | 0)) == -1)
25637 SWIG_fail;
25638 if (arg2 == NULL) {
25639 PyErr_SetString(PyExc_TypeError,"null reference");
25640 SWIG_fail;
25641 }
25642 {
25643 PyThreadState* __tstate = wxPyBeginAllowThreads();
25644 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25645
25646 wxPyEndAllowThreads(__tstate);
25647 if (PyErr_Occurred()) SWIG_fail;
25648 }
25649 {
25650 wxColour * resultptr;
25651 resultptr = new wxColour((wxColour &) result);
25652 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25653 }
25654 return resultobj;
25655 fail:
25656 return NULL;
25657 }
25658
25659
25660 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25661 PyObject *resultobj;
25662 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25663 wxTreeItemId *arg2 = 0 ;
25664 wxFont result;
25665 PyObject * obj0 = 0 ;
25666 PyObject * obj1 = 0 ;
25667 char *kwnames[] = {
25668 (char *) "self",(char *) "item", NULL
25669 };
25670
25671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
25672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25675 SWIG_POINTER_EXCEPTION | 0)) == -1)
25676 SWIG_fail;
25677 if (arg2 == NULL) {
25678 PyErr_SetString(PyExc_TypeError,"null reference");
25679 SWIG_fail;
25680 }
25681 {
25682 PyThreadState* __tstate = wxPyBeginAllowThreads();
25683 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
25684
25685 wxPyEndAllowThreads(__tstate);
25686 if (PyErr_Occurred()) SWIG_fail;
25687 }
25688 {
25689 wxFont * resultptr;
25690 resultptr = new wxFont((wxFont &) result);
25691 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
25692 }
25693 return resultobj;
25694 fail:
25695 return NULL;
25696 }
25697
25698
25699 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25700 PyObject *resultobj;
25701 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25702 wxTreeItemId *arg2 = 0 ;
25703 wxString *arg3 = 0 ;
25704 bool temp3 = False ;
25705 PyObject * obj0 = 0 ;
25706 PyObject * obj1 = 0 ;
25707 PyObject * obj2 = 0 ;
25708 char *kwnames[] = {
25709 (char *) "self",(char *) "item",(char *) "text", NULL
25710 };
25711
25712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
25713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25716 SWIG_POINTER_EXCEPTION | 0)) == -1)
25717 SWIG_fail;
25718 if (arg2 == NULL) {
25719 PyErr_SetString(PyExc_TypeError,"null reference");
25720 SWIG_fail;
25721 }
25722 {
25723 arg3 = wxString_in_helper(obj2);
25724 if (arg3 == NULL) SWIG_fail;
25725 temp3 = True;
25726 }
25727 {
25728 PyThreadState* __tstate = wxPyBeginAllowThreads();
25729 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
25730
25731 wxPyEndAllowThreads(__tstate);
25732 if (PyErr_Occurred()) SWIG_fail;
25733 }
25734 Py_INCREF(Py_None); resultobj = Py_None;
25735 {
25736 if (temp3)
25737 delete arg3;
25738 }
25739 return resultobj;
25740 fail:
25741 {
25742 if (temp3)
25743 delete arg3;
25744 }
25745 return NULL;
25746 }
25747
25748
25749 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25750 PyObject *resultobj;
25751 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25752 wxTreeItemId *arg2 = 0 ;
25753 int arg3 ;
25754 int arg4 = (int) wxTreeItemIcon_Normal ;
25755 PyObject * obj0 = 0 ;
25756 PyObject * obj1 = 0 ;
25757 PyObject * obj2 = 0 ;
25758 PyObject * obj3 = 0 ;
25759 char *kwnames[] = {
25760 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
25761 };
25762
25763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25766 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25767 SWIG_POINTER_EXCEPTION | 0)) == -1)
25768 SWIG_fail;
25769 if (arg2 == NULL) {
25770 PyErr_SetString(PyExc_TypeError,"null reference");
25771 SWIG_fail;
25772 }
25773 arg3 = (int) SWIG_AsInt(obj2);
25774 if (PyErr_Occurred()) SWIG_fail;
25775 if (obj3) {
25776 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
25777 if (PyErr_Occurred()) SWIG_fail;
25778 }
25779 {
25780 PyThreadState* __tstate = wxPyBeginAllowThreads();
25781 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
25782
25783 wxPyEndAllowThreads(__tstate);
25784 if (PyErr_Occurred()) SWIG_fail;
25785 }
25786 Py_INCREF(Py_None); resultobj = Py_None;
25787 return resultobj;
25788 fail:
25789 return NULL;
25790 }
25791
25792
25793 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25794 PyObject *resultobj;
25795 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25796 wxTreeItemId *arg2 = 0 ;
25797 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
25798 PyObject * obj0 = 0 ;
25799 PyObject * obj1 = 0 ;
25800 PyObject * obj2 = 0 ;
25801 char *kwnames[] = {
25802 (char *) "self",(char *) "item",(char *) "data", NULL
25803 };
25804
25805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25808 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25809 SWIG_POINTER_EXCEPTION | 0)) == -1)
25810 SWIG_fail;
25811 if (arg2 == NULL) {
25812 PyErr_SetString(PyExc_TypeError,"null reference");
25813 SWIG_fail;
25814 }
25815 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
25816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25817 {
25818 PyThreadState* __tstate = wxPyBeginAllowThreads();
25819 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
25820
25821 wxPyEndAllowThreads(__tstate);
25822 if (PyErr_Occurred()) SWIG_fail;
25823 }
25824 Py_INCREF(Py_None); resultobj = Py_None;
25825 return resultobj;
25826 fail:
25827 return NULL;
25828 }
25829
25830
25831 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25832 PyObject *resultobj;
25833 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25834 wxTreeItemId *arg2 = 0 ;
25835 PyObject *arg3 = (PyObject *) 0 ;
25836 PyObject * obj0 = 0 ;
25837 PyObject * obj1 = 0 ;
25838 PyObject * obj2 = 0 ;
25839 char *kwnames[] = {
25840 (char *) "self",(char *) "item",(char *) "obj", NULL
25841 };
25842
25843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25846 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25847 SWIG_POINTER_EXCEPTION | 0)) == -1)
25848 SWIG_fail;
25849 if (arg2 == NULL) {
25850 PyErr_SetString(PyExc_TypeError,"null reference");
25851 SWIG_fail;
25852 }
25853 arg3 = obj2;
25854 {
25855 PyThreadState* __tstate = wxPyBeginAllowThreads();
25856 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
25857
25858 wxPyEndAllowThreads(__tstate);
25859 if (PyErr_Occurred()) SWIG_fail;
25860 }
25861 Py_INCREF(Py_None); resultobj = Py_None;
25862 return resultobj;
25863 fail:
25864 return NULL;
25865 }
25866
25867
25868 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25869 PyObject *resultobj;
25870 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25871 wxTreeItemId *arg2 = 0 ;
25872 bool arg3 = (bool) True ;
25873 PyObject * obj0 = 0 ;
25874 PyObject * obj1 = 0 ;
25875 PyObject * obj2 = 0 ;
25876 char *kwnames[] = {
25877 (char *) "self",(char *) "item",(char *) "has", NULL
25878 };
25879
25880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
25881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25883 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25884 SWIG_POINTER_EXCEPTION | 0)) == -1)
25885 SWIG_fail;
25886 if (arg2 == NULL) {
25887 PyErr_SetString(PyExc_TypeError,"null reference");
25888 SWIG_fail;
25889 }
25890 if (obj2) {
25891 arg3 = (bool) SWIG_AsBool(obj2);
25892 if (PyErr_Occurred()) SWIG_fail;
25893 }
25894 {
25895 PyThreadState* __tstate = wxPyBeginAllowThreads();
25896 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
25897
25898 wxPyEndAllowThreads(__tstate);
25899 if (PyErr_Occurred()) SWIG_fail;
25900 }
25901 Py_INCREF(Py_None); resultobj = Py_None;
25902 return resultobj;
25903 fail:
25904 return NULL;
25905 }
25906
25907
25908 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
25909 PyObject *resultobj;
25910 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25911 wxTreeItemId *arg2 = 0 ;
25912 bool arg3 = (bool) True ;
25913 PyObject * obj0 = 0 ;
25914 PyObject * obj1 = 0 ;
25915 PyObject * obj2 = 0 ;
25916 char *kwnames[] = {
25917 (char *) "self",(char *) "item",(char *) "bold", NULL
25918 };
25919
25920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
25921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25923 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25924 SWIG_POINTER_EXCEPTION | 0)) == -1)
25925 SWIG_fail;
25926 if (arg2 == NULL) {
25927 PyErr_SetString(PyExc_TypeError,"null reference");
25928 SWIG_fail;
25929 }
25930 if (obj2) {
25931 arg3 = (bool) SWIG_AsBool(obj2);
25932 if (PyErr_Occurred()) SWIG_fail;
25933 }
25934 {
25935 PyThreadState* __tstate = wxPyBeginAllowThreads();
25936 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
25937
25938 wxPyEndAllowThreads(__tstate);
25939 if (PyErr_Occurred()) SWIG_fail;
25940 }
25941 Py_INCREF(Py_None); resultobj = Py_None;
25942 return resultobj;
25943 fail:
25944 return NULL;
25945 }
25946
25947
25948 static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
25949 PyObject *resultobj;
25950 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25951 wxTreeItemId *arg2 = 0 ;
25952 bool arg3 = (bool) True ;
25953 PyObject * obj0 = 0 ;
25954 PyObject * obj1 = 0 ;
25955 PyObject * obj2 = 0 ;
25956 char *kwnames[] = {
25957 (char *) "self",(char *) "item",(char *) "highlight", NULL
25958 };
25959
25960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
25961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25963 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25964 SWIG_POINTER_EXCEPTION | 0)) == -1)
25965 SWIG_fail;
25966 if (arg2 == NULL) {
25967 PyErr_SetString(PyExc_TypeError,"null reference");
25968 SWIG_fail;
25969 }
25970 if (obj2) {
25971 arg3 = (bool) SWIG_AsBool(obj2);
25972 if (PyErr_Occurred()) SWIG_fail;
25973 }
25974 {
25975 PyThreadState* __tstate = wxPyBeginAllowThreads();
25976 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
25977
25978 wxPyEndAllowThreads(__tstate);
25979 if (PyErr_Occurred()) SWIG_fail;
25980 }
25981 Py_INCREF(Py_None); resultobj = Py_None;
25982 return resultobj;
25983 fail:
25984 return NULL;
25985 }
25986
25987
25988 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25989 PyObject *resultobj;
25990 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25991 wxTreeItemId *arg2 = 0 ;
25992 wxColour *arg3 = 0 ;
25993 wxColour temp3 ;
25994 PyObject * obj0 = 0 ;
25995 PyObject * obj1 = 0 ;
25996 PyObject * obj2 = 0 ;
25997 char *kwnames[] = {
25998 (char *) "self",(char *) "item",(char *) "col", NULL
25999 };
26000
26001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26004 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26005 SWIG_POINTER_EXCEPTION | 0)) == -1)
26006 SWIG_fail;
26007 if (arg2 == NULL) {
26008 PyErr_SetString(PyExc_TypeError,"null reference");
26009 SWIG_fail;
26010 }
26011 {
26012 arg3 = &temp3;
26013 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26014 }
26015 {
26016 PyThreadState* __tstate = wxPyBeginAllowThreads();
26017 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26018
26019 wxPyEndAllowThreads(__tstate);
26020 if (PyErr_Occurred()) SWIG_fail;
26021 }
26022 Py_INCREF(Py_None); resultobj = Py_None;
26023 return resultobj;
26024 fail:
26025 return NULL;
26026 }
26027
26028
26029 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26030 PyObject *resultobj;
26031 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26032 wxTreeItemId *arg2 = 0 ;
26033 wxColour *arg3 = 0 ;
26034 wxColour temp3 ;
26035 PyObject * obj0 = 0 ;
26036 PyObject * obj1 = 0 ;
26037 PyObject * obj2 = 0 ;
26038 char *kwnames[] = {
26039 (char *) "self",(char *) "item",(char *) "col", NULL
26040 };
26041
26042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26046 SWIG_POINTER_EXCEPTION | 0)) == -1)
26047 SWIG_fail;
26048 if (arg2 == NULL) {
26049 PyErr_SetString(PyExc_TypeError,"null reference");
26050 SWIG_fail;
26051 }
26052 {
26053 arg3 = &temp3;
26054 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26055 }
26056 {
26057 PyThreadState* __tstate = wxPyBeginAllowThreads();
26058 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26059
26060 wxPyEndAllowThreads(__tstate);
26061 if (PyErr_Occurred()) SWIG_fail;
26062 }
26063 Py_INCREF(Py_None); resultobj = Py_None;
26064 return resultobj;
26065 fail:
26066 return NULL;
26067 }
26068
26069
26070 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26071 PyObject *resultobj;
26072 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26073 wxTreeItemId *arg2 = 0 ;
26074 wxFont *arg3 = 0 ;
26075 PyObject * obj0 = 0 ;
26076 PyObject * obj1 = 0 ;
26077 PyObject * obj2 = 0 ;
26078 char *kwnames[] = {
26079 (char *) "self",(char *) "item",(char *) "font", NULL
26080 };
26081
26082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26085 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26086 SWIG_POINTER_EXCEPTION | 0)) == -1)
26087 SWIG_fail;
26088 if (arg2 == NULL) {
26089 PyErr_SetString(PyExc_TypeError,"null reference");
26090 SWIG_fail;
26091 }
26092 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26093 SWIG_POINTER_EXCEPTION | 0)) == -1)
26094 SWIG_fail;
26095 if (arg3 == NULL) {
26096 PyErr_SetString(PyExc_TypeError,"null reference");
26097 SWIG_fail;
26098 }
26099 {
26100 PyThreadState* __tstate = wxPyBeginAllowThreads();
26101 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26102
26103 wxPyEndAllowThreads(__tstate);
26104 if (PyErr_Occurred()) SWIG_fail;
26105 }
26106 Py_INCREF(Py_None); resultobj = Py_None;
26107 return resultobj;
26108 fail:
26109 return NULL;
26110 }
26111
26112
26113 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26114 PyObject *resultobj;
26115 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26116 wxTreeItemId *arg2 = 0 ;
26117 bool result;
26118 PyObject * obj0 = 0 ;
26119 PyObject * obj1 = 0 ;
26120 char *kwnames[] = {
26121 (char *) "self",(char *) "item", NULL
26122 };
26123
26124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26127 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26128 SWIG_POINTER_EXCEPTION | 0)) == -1)
26129 SWIG_fail;
26130 if (arg2 == NULL) {
26131 PyErr_SetString(PyExc_TypeError,"null reference");
26132 SWIG_fail;
26133 }
26134 {
26135 PyThreadState* __tstate = wxPyBeginAllowThreads();
26136 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26137
26138 wxPyEndAllowThreads(__tstate);
26139 if (PyErr_Occurred()) SWIG_fail;
26140 }
26141 {
26142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26143 }
26144 return resultobj;
26145 fail:
26146 return NULL;
26147 }
26148
26149
26150 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26151 PyObject *resultobj;
26152 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26153 wxTreeItemId *arg2 = 0 ;
26154 bool result;
26155 PyObject * obj0 = 0 ;
26156 PyObject * obj1 = 0 ;
26157 char *kwnames[] = {
26158 (char *) "self",(char *) "item", NULL
26159 };
26160
26161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26165 SWIG_POINTER_EXCEPTION | 0)) == -1)
26166 SWIG_fail;
26167 if (arg2 == NULL) {
26168 PyErr_SetString(PyExc_TypeError,"null reference");
26169 SWIG_fail;
26170 }
26171 {
26172 PyThreadState* __tstate = wxPyBeginAllowThreads();
26173 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26174
26175 wxPyEndAllowThreads(__tstate);
26176 if (PyErr_Occurred()) SWIG_fail;
26177 }
26178 {
26179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26180 }
26181 return resultobj;
26182 fail:
26183 return NULL;
26184 }
26185
26186
26187 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
26188 PyObject *resultobj;
26189 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26190 wxTreeItemId *arg2 = 0 ;
26191 bool result;
26192 PyObject * obj0 = 0 ;
26193 PyObject * obj1 = 0 ;
26194 char *kwnames[] = {
26195 (char *) "self",(char *) "item", NULL
26196 };
26197
26198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26201 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26202 SWIG_POINTER_EXCEPTION | 0)) == -1)
26203 SWIG_fail;
26204 if (arg2 == NULL) {
26205 PyErr_SetString(PyExc_TypeError,"null reference");
26206 SWIG_fail;
26207 }
26208 {
26209 PyThreadState* __tstate = wxPyBeginAllowThreads();
26210 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26211
26212 wxPyEndAllowThreads(__tstate);
26213 if (PyErr_Occurred()) SWIG_fail;
26214 }
26215 {
26216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26217 }
26218 return resultobj;
26219 fail:
26220 return NULL;
26221 }
26222
26223
26224 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
26225 PyObject *resultobj;
26226 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26227 wxTreeItemId *arg2 = 0 ;
26228 bool result;
26229 PyObject * obj0 = 0 ;
26230 PyObject * obj1 = 0 ;
26231 char *kwnames[] = {
26232 (char *) "self",(char *) "item", NULL
26233 };
26234
26235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26238 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26239 SWIG_POINTER_EXCEPTION | 0)) == -1)
26240 SWIG_fail;
26241 if (arg2 == NULL) {
26242 PyErr_SetString(PyExc_TypeError,"null reference");
26243 SWIG_fail;
26244 }
26245 {
26246 PyThreadState* __tstate = wxPyBeginAllowThreads();
26247 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26248
26249 wxPyEndAllowThreads(__tstate);
26250 if (PyErr_Occurred()) SWIG_fail;
26251 }
26252 {
26253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26254 }
26255 return resultobj;
26256 fail:
26257 return NULL;
26258 }
26259
26260
26261 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
26262 PyObject *resultobj;
26263 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26264 wxTreeItemId *arg2 = 0 ;
26265 bool result;
26266 PyObject * obj0 = 0 ;
26267 PyObject * obj1 = 0 ;
26268 char *kwnames[] = {
26269 (char *) "self",(char *) "item", NULL
26270 };
26271
26272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26276 SWIG_POINTER_EXCEPTION | 0)) == -1)
26277 SWIG_fail;
26278 if (arg2 == NULL) {
26279 PyErr_SetString(PyExc_TypeError,"null reference");
26280 SWIG_fail;
26281 }
26282 {
26283 PyThreadState* __tstate = wxPyBeginAllowThreads();
26284 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26285
26286 wxPyEndAllowThreads(__tstate);
26287 if (PyErr_Occurred()) SWIG_fail;
26288 }
26289 {
26290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26291 }
26292 return resultobj;
26293 fail:
26294 return NULL;
26295 }
26296
26297
26298 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
26299 PyObject *resultobj;
26300 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26301 wxTreeItemId *arg2 = 0 ;
26302 bool arg3 = (bool) True ;
26303 size_t result;
26304 PyObject * obj0 = 0 ;
26305 PyObject * obj1 = 0 ;
26306 PyObject * obj2 = 0 ;
26307 char *kwnames[] = {
26308 (char *) "self",(char *) "item",(char *) "recursively", NULL
26309 };
26310
26311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26314 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26315 SWIG_POINTER_EXCEPTION | 0)) == -1)
26316 SWIG_fail;
26317 if (arg2 == NULL) {
26318 PyErr_SetString(PyExc_TypeError,"null reference");
26319 SWIG_fail;
26320 }
26321 if (obj2) {
26322 arg3 = (bool) SWIG_AsBool(obj2);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 {
26326 PyThreadState* __tstate = wxPyBeginAllowThreads();
26327 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26328
26329 wxPyEndAllowThreads(__tstate);
26330 if (PyErr_Occurred()) SWIG_fail;
26331 }
26332 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
26333 return resultobj;
26334 fail:
26335 return NULL;
26336 }
26337
26338
26339 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26340 PyObject *resultobj;
26341 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26342 wxTreeItemId result;
26343 PyObject * obj0 = 0 ;
26344 char *kwnames[] = {
26345 (char *) "self", NULL
26346 };
26347
26348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26351 {
26352 PyThreadState* __tstate = wxPyBeginAllowThreads();
26353 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26354
26355 wxPyEndAllowThreads(__tstate);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 {
26359 wxTreeItemId * resultptr;
26360 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26361 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26362 }
26363 return resultobj;
26364 fail:
26365 return NULL;
26366 }
26367
26368
26369 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26370 PyObject *resultobj;
26371 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26372 wxTreeItemId result;
26373 PyObject * obj0 = 0 ;
26374 char *kwnames[] = {
26375 (char *) "self", NULL
26376 };
26377
26378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26381 {
26382 PyThreadState* __tstate = wxPyBeginAllowThreads();
26383 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26384
26385 wxPyEndAllowThreads(__tstate);
26386 if (PyErr_Occurred()) SWIG_fail;
26387 }
26388 {
26389 wxTreeItemId * resultptr;
26390 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26391 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26392 }
26393 return resultobj;
26394 fail:
26395 return NULL;
26396 }
26397
26398
26399 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
26400 PyObject *resultobj;
26401 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26402 PyObject *result;
26403 PyObject * obj0 = 0 ;
26404 char *kwnames[] = {
26405 (char *) "self", NULL
26406 };
26407
26408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26411 {
26412 PyThreadState* __tstate = wxPyBeginAllowThreads();
26413 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26414
26415 wxPyEndAllowThreads(__tstate);
26416 if (PyErr_Occurred()) SWIG_fail;
26417 }
26418 resultobj = result;
26419 return resultobj;
26420 fail:
26421 return NULL;
26422 }
26423
26424
26425 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
26426 PyObject *resultobj;
26427 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26428 wxTreeItemId *arg2 = 0 ;
26429 wxTreeItemId result;
26430 PyObject * obj0 = 0 ;
26431 PyObject * obj1 = 0 ;
26432 char *kwnames[] = {
26433 (char *) "self",(char *) "item", NULL
26434 };
26435
26436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26440 SWIG_POINTER_EXCEPTION | 0)) == -1)
26441 SWIG_fail;
26442 if (arg2 == NULL) {
26443 PyErr_SetString(PyExc_TypeError,"null reference");
26444 SWIG_fail;
26445 }
26446 {
26447 PyThreadState* __tstate = wxPyBeginAllowThreads();
26448 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26449
26450 wxPyEndAllowThreads(__tstate);
26451 if (PyErr_Occurred()) SWIG_fail;
26452 }
26453 {
26454 wxTreeItemId * resultptr;
26455 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26456 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26457 }
26458 return resultobj;
26459 fail:
26460 return NULL;
26461 }
26462
26463
26464 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26465 PyObject *resultobj;
26466 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26467 wxTreeItemId *arg2 = 0 ;
26468 PyObject *result;
26469 PyObject * obj0 = 0 ;
26470 PyObject * obj1 = 0 ;
26471 char *kwnames[] = {
26472 (char *) "self",(char *) "item", NULL
26473 };
26474
26475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26478 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26479 SWIG_POINTER_EXCEPTION | 0)) == -1)
26480 SWIG_fail;
26481 if (arg2 == NULL) {
26482 PyErr_SetString(PyExc_TypeError,"null reference");
26483 SWIG_fail;
26484 }
26485 {
26486 PyThreadState* __tstate = wxPyBeginAllowThreads();
26487 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26488
26489 wxPyEndAllowThreads(__tstate);
26490 if (PyErr_Occurred()) SWIG_fail;
26491 }
26492 resultobj = result;
26493 return resultobj;
26494 fail:
26495 return NULL;
26496 }
26497
26498
26499 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26500 PyObject *resultobj;
26501 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26502 wxTreeItemId *arg2 = 0 ;
26503 void *arg3 = (void *) 0 ;
26504 PyObject *result;
26505 PyObject * obj0 = 0 ;
26506 PyObject * obj1 = 0 ;
26507 PyObject * obj2 = 0 ;
26508 char *kwnames[] = {
26509 (char *) "self",(char *) "item",(char *) "cookie", NULL
26510 };
26511
26512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26515 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26516 SWIG_POINTER_EXCEPTION | 0)) == -1)
26517 SWIG_fail;
26518 if (arg2 == NULL) {
26519 PyErr_SetString(PyExc_TypeError,"null reference");
26520 SWIG_fail;
26521 }
26522 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26523 {
26524 PyThreadState* __tstate = wxPyBeginAllowThreads();
26525 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26526
26527 wxPyEndAllowThreads(__tstate);
26528 if (PyErr_Occurred()) SWIG_fail;
26529 }
26530 resultobj = result;
26531 return resultobj;
26532 fail:
26533 return NULL;
26534 }
26535
26536
26537 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26538 PyObject *resultobj;
26539 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26540 wxTreeItemId *arg2 = 0 ;
26541 wxTreeItemId result;
26542 PyObject * obj0 = 0 ;
26543 PyObject * obj1 = 0 ;
26544 char *kwnames[] = {
26545 (char *) "self",(char *) "item", NULL
26546 };
26547
26548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) 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 {
26559 PyThreadState* __tstate = wxPyBeginAllowThreads();
26560 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26561
26562 wxPyEndAllowThreads(__tstate);
26563 if (PyErr_Occurred()) SWIG_fail;
26564 }
26565 {
26566 wxTreeItemId * resultptr;
26567 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26568 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26569 }
26570 return resultobj;
26571 fail:
26572 return NULL;
26573 }
26574
26575
26576 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26577 PyObject *resultobj;
26578 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26579 wxTreeItemId *arg2 = 0 ;
26580 wxTreeItemId result;
26581 PyObject * obj0 = 0 ;
26582 PyObject * obj1 = 0 ;
26583 char *kwnames[] = {
26584 (char *) "self",(char *) "item", NULL
26585 };
26586
26587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26590 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26591 SWIG_POINTER_EXCEPTION | 0)) == -1)
26592 SWIG_fail;
26593 if (arg2 == NULL) {
26594 PyErr_SetString(PyExc_TypeError,"null reference");
26595 SWIG_fail;
26596 }
26597 {
26598 PyThreadState* __tstate = wxPyBeginAllowThreads();
26599 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26600
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 {
26605 wxTreeItemId * resultptr;
26606 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26607 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26608 }
26609 return resultobj;
26610 fail:
26611 return NULL;
26612 }
26613
26614
26615 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26616 PyObject *resultobj;
26617 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26618 wxTreeItemId *arg2 = 0 ;
26619 wxTreeItemId result;
26620 PyObject * obj0 = 0 ;
26621 PyObject * obj1 = 0 ;
26622 char *kwnames[] = {
26623 (char *) "self",(char *) "item", NULL
26624 };
26625
26626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26630 SWIG_POINTER_EXCEPTION | 0)) == -1)
26631 SWIG_fail;
26632 if (arg2 == NULL) {
26633 PyErr_SetString(PyExc_TypeError,"null reference");
26634 SWIG_fail;
26635 }
26636 {
26637 PyThreadState* __tstate = wxPyBeginAllowThreads();
26638 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26639
26640 wxPyEndAllowThreads(__tstate);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 }
26643 {
26644 wxTreeItemId * resultptr;
26645 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26646 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26647 }
26648 return resultobj;
26649 fail:
26650 return NULL;
26651 }
26652
26653
26654 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26655 PyObject *resultobj;
26656 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26657 wxTreeItemId result;
26658 PyObject * obj0 = 0 ;
26659 char *kwnames[] = {
26660 (char *) "self", NULL
26661 };
26662
26663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
26664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26666 {
26667 PyThreadState* __tstate = wxPyBeginAllowThreads();
26668 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
26669
26670 wxPyEndAllowThreads(__tstate);
26671 if (PyErr_Occurred()) SWIG_fail;
26672 }
26673 {
26674 wxTreeItemId * resultptr;
26675 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26676 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26677 }
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26685 PyObject *resultobj;
26686 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26687 wxTreeItemId *arg2 = 0 ;
26688 wxTreeItemId result;
26689 PyObject * obj0 = 0 ;
26690 PyObject * obj1 = 0 ;
26691 char *kwnames[] = {
26692 (char *) "self",(char *) "item", NULL
26693 };
26694
26695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
26696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26698 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26699 SWIG_POINTER_EXCEPTION | 0)) == -1)
26700 SWIG_fail;
26701 if (arg2 == NULL) {
26702 PyErr_SetString(PyExc_TypeError,"null reference");
26703 SWIG_fail;
26704 }
26705 {
26706 PyThreadState* __tstate = wxPyBeginAllowThreads();
26707 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
26708
26709 wxPyEndAllowThreads(__tstate);
26710 if (PyErr_Occurred()) SWIG_fail;
26711 }
26712 {
26713 wxTreeItemId * resultptr;
26714 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26715 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26716 }
26717 return resultobj;
26718 fail:
26719 return NULL;
26720 }
26721
26722
26723 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26724 PyObject *resultobj;
26725 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26726 wxTreeItemId *arg2 = 0 ;
26727 wxTreeItemId result;
26728 PyObject * obj0 = 0 ;
26729 PyObject * obj1 = 0 ;
26730 char *kwnames[] = {
26731 (char *) "self",(char *) "item", NULL
26732 };
26733
26734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
26735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26737 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26738 SWIG_POINTER_EXCEPTION | 0)) == -1)
26739 SWIG_fail;
26740 if (arg2 == NULL) {
26741 PyErr_SetString(PyExc_TypeError,"null reference");
26742 SWIG_fail;
26743 }
26744 {
26745 PyThreadState* __tstate = wxPyBeginAllowThreads();
26746 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
26747
26748 wxPyEndAllowThreads(__tstate);
26749 if (PyErr_Occurred()) SWIG_fail;
26750 }
26751 {
26752 wxTreeItemId * resultptr;
26753 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26754 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26755 }
26756 return resultobj;
26757 fail:
26758 return NULL;
26759 }
26760
26761
26762 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
26763 PyObject *resultobj;
26764 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26765 wxString *arg2 = 0 ;
26766 int arg3 = (int) -1 ;
26767 int arg4 = (int) -1 ;
26768 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
26769 wxTreeItemId result;
26770 bool temp2 = False ;
26771 PyObject * obj0 = 0 ;
26772 PyObject * obj1 = 0 ;
26773 PyObject * obj2 = 0 ;
26774 PyObject * obj3 = 0 ;
26775 PyObject * obj4 = 0 ;
26776 char *kwnames[] = {
26777 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26778 };
26779
26780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26783 {
26784 arg2 = wxString_in_helper(obj1);
26785 if (arg2 == NULL) SWIG_fail;
26786 temp2 = True;
26787 }
26788 if (obj2) {
26789 arg3 = (int) SWIG_AsInt(obj2);
26790 if (PyErr_Occurred()) SWIG_fail;
26791 }
26792 if (obj3) {
26793 arg4 = (int) SWIG_AsInt(obj3);
26794 if (PyErr_Occurred()) SWIG_fail;
26795 }
26796 if (obj4) {
26797 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
26798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26799 }
26800 {
26801 PyThreadState* __tstate = wxPyBeginAllowThreads();
26802 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
26803
26804 wxPyEndAllowThreads(__tstate);
26805 if (PyErr_Occurred()) SWIG_fail;
26806 }
26807 {
26808 wxTreeItemId * resultptr;
26809 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26810 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26811 }
26812 {
26813 if (temp2)
26814 delete arg2;
26815 }
26816 return resultobj;
26817 fail:
26818 {
26819 if (temp2)
26820 delete arg2;
26821 }
26822 return NULL;
26823 }
26824
26825
26826 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26827 PyObject *resultobj;
26828 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26829 wxTreeItemId *arg2 = 0 ;
26830 wxString *arg3 = 0 ;
26831 int arg4 = (int) -1 ;
26832 int arg5 = (int) -1 ;
26833 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26834 wxTreeItemId result;
26835 bool temp3 = False ;
26836 PyObject * obj0 = 0 ;
26837 PyObject * obj1 = 0 ;
26838 PyObject * obj2 = 0 ;
26839 PyObject * obj3 = 0 ;
26840 PyObject * obj4 = 0 ;
26841 PyObject * obj5 = 0 ;
26842 char *kwnames[] = {
26843 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26844 };
26845
26846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26849 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26850 SWIG_POINTER_EXCEPTION | 0)) == -1)
26851 SWIG_fail;
26852 if (arg2 == NULL) {
26853 PyErr_SetString(PyExc_TypeError,"null reference");
26854 SWIG_fail;
26855 }
26856 {
26857 arg3 = wxString_in_helper(obj2);
26858 if (arg3 == NULL) SWIG_fail;
26859 temp3 = True;
26860 }
26861 if (obj3) {
26862 arg4 = (int) SWIG_AsInt(obj3);
26863 if (PyErr_Occurred()) SWIG_fail;
26864 }
26865 if (obj4) {
26866 arg5 = (int) SWIG_AsInt(obj4);
26867 if (PyErr_Occurred()) SWIG_fail;
26868 }
26869 if (obj5) {
26870 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26872 }
26873 {
26874 PyThreadState* __tstate = wxPyBeginAllowThreads();
26875 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26876
26877 wxPyEndAllowThreads(__tstate);
26878 if (PyErr_Occurred()) SWIG_fail;
26879 }
26880 {
26881 wxTreeItemId * resultptr;
26882 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26883 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26884 }
26885 {
26886 if (temp3)
26887 delete arg3;
26888 }
26889 return resultobj;
26890 fail:
26891 {
26892 if (temp3)
26893 delete arg3;
26894 }
26895 return NULL;
26896 }
26897
26898
26899 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26900 PyObject *resultobj;
26901 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26902 wxTreeItemId *arg2 = 0 ;
26903 wxTreeItemId *arg3 = 0 ;
26904 wxString *arg4 = 0 ;
26905 int arg5 = (int) -1 ;
26906 int arg6 = (int) -1 ;
26907 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26908 wxTreeItemId result;
26909 bool temp4 = False ;
26910 PyObject * obj0 = 0 ;
26911 PyObject * obj1 = 0 ;
26912 PyObject * obj2 = 0 ;
26913 PyObject * obj3 = 0 ;
26914 PyObject * obj4 = 0 ;
26915 PyObject * obj5 = 0 ;
26916 PyObject * obj6 = 0 ;
26917 char *kwnames[] = {
26918 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26919 };
26920
26921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26925 SWIG_POINTER_EXCEPTION | 0)) == -1)
26926 SWIG_fail;
26927 if (arg2 == NULL) {
26928 PyErr_SetString(PyExc_TypeError,"null reference");
26929 SWIG_fail;
26930 }
26931 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
26932 SWIG_POINTER_EXCEPTION | 0)) == -1)
26933 SWIG_fail;
26934 if (arg3 == NULL) {
26935 PyErr_SetString(PyExc_TypeError,"null reference");
26936 SWIG_fail;
26937 }
26938 {
26939 arg4 = wxString_in_helper(obj3);
26940 if (arg4 == NULL) SWIG_fail;
26941 temp4 = True;
26942 }
26943 if (obj4) {
26944 arg5 = (int) SWIG_AsInt(obj4);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 }
26947 if (obj5) {
26948 arg6 = (int) SWIG_AsInt(obj5);
26949 if (PyErr_Occurred()) SWIG_fail;
26950 }
26951 if (obj6) {
26952 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26954 }
26955 {
26956 PyThreadState* __tstate = wxPyBeginAllowThreads();
26957 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26958
26959 wxPyEndAllowThreads(__tstate);
26960 if (PyErr_Occurred()) SWIG_fail;
26961 }
26962 {
26963 wxTreeItemId * resultptr;
26964 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26965 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26966 }
26967 {
26968 if (temp4)
26969 delete arg4;
26970 }
26971 return resultobj;
26972 fail:
26973 {
26974 if (temp4)
26975 delete arg4;
26976 }
26977 return NULL;
26978 }
26979
26980
26981 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
26982 PyObject *resultobj;
26983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26984 wxTreeItemId *arg2 = 0 ;
26985 size_t arg3 ;
26986 wxString *arg4 = 0 ;
26987 int arg5 = (int) -1 ;
26988 int arg6 = (int) -1 ;
26989 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26990 wxTreeItemId result;
26991 bool temp4 = False ;
26992 PyObject * obj0 = 0 ;
26993 PyObject * obj1 = 0 ;
26994 PyObject * obj2 = 0 ;
26995 PyObject * obj3 = 0 ;
26996 PyObject * obj4 = 0 ;
26997 PyObject * obj5 = 0 ;
26998 PyObject * obj6 = 0 ;
26999 char *kwnames[] = {
27000 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27001 };
27002
27003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27007 SWIG_POINTER_EXCEPTION | 0)) == -1)
27008 SWIG_fail;
27009 if (arg2 == NULL) {
27010 PyErr_SetString(PyExc_TypeError,"null reference");
27011 SWIG_fail;
27012 }
27013 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 {
27016 arg4 = wxString_in_helper(obj3);
27017 if (arg4 == NULL) SWIG_fail;
27018 temp4 = True;
27019 }
27020 if (obj4) {
27021 arg5 = (int) SWIG_AsInt(obj4);
27022 if (PyErr_Occurred()) SWIG_fail;
27023 }
27024 if (obj5) {
27025 arg6 = (int) SWIG_AsInt(obj5);
27026 if (PyErr_Occurred()) SWIG_fail;
27027 }
27028 if (obj6) {
27029 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27031 }
27032 {
27033 PyThreadState* __tstate = wxPyBeginAllowThreads();
27034 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27035
27036 wxPyEndAllowThreads(__tstate);
27037 if (PyErr_Occurred()) SWIG_fail;
27038 }
27039 {
27040 wxTreeItemId * resultptr;
27041 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27042 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27043 }
27044 {
27045 if (temp4)
27046 delete arg4;
27047 }
27048 return resultobj;
27049 fail:
27050 {
27051 if (temp4)
27052 delete arg4;
27053 }
27054 return NULL;
27055 }
27056
27057
27058 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27059 PyObject *resultobj;
27060 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27061 wxTreeItemId *arg2 = 0 ;
27062 wxString *arg3 = 0 ;
27063 int arg4 = (int) -1 ;
27064 int arg5 = (int) -1 ;
27065 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27066 wxTreeItemId result;
27067 bool temp3 = False ;
27068 PyObject * obj0 = 0 ;
27069 PyObject * obj1 = 0 ;
27070 PyObject * obj2 = 0 ;
27071 PyObject * obj3 = 0 ;
27072 PyObject * obj4 = 0 ;
27073 PyObject * obj5 = 0 ;
27074 char *kwnames[] = {
27075 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27076 };
27077
27078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27082 SWIG_POINTER_EXCEPTION | 0)) == -1)
27083 SWIG_fail;
27084 if (arg2 == NULL) {
27085 PyErr_SetString(PyExc_TypeError,"null reference");
27086 SWIG_fail;
27087 }
27088 {
27089 arg3 = wxString_in_helper(obj2);
27090 if (arg3 == NULL) SWIG_fail;
27091 temp3 = True;
27092 }
27093 if (obj3) {
27094 arg4 = (int) SWIG_AsInt(obj3);
27095 if (PyErr_Occurred()) SWIG_fail;
27096 }
27097 if (obj4) {
27098 arg5 = (int) SWIG_AsInt(obj4);
27099 if (PyErr_Occurred()) SWIG_fail;
27100 }
27101 if (obj5) {
27102 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27104 }
27105 {
27106 PyThreadState* __tstate = wxPyBeginAllowThreads();
27107 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27108
27109 wxPyEndAllowThreads(__tstate);
27110 if (PyErr_Occurred()) SWIG_fail;
27111 }
27112 {
27113 wxTreeItemId * resultptr;
27114 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27115 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27116 }
27117 {
27118 if (temp3)
27119 delete arg3;
27120 }
27121 return resultobj;
27122 fail:
27123 {
27124 if (temp3)
27125 delete arg3;
27126 }
27127 return NULL;
27128 }
27129
27130
27131 static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
27132 PyObject *resultobj;
27133 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27134 wxTreeItemId *arg2 = 0 ;
27135 PyObject * obj0 = 0 ;
27136 PyObject * obj1 = 0 ;
27137 char *kwnames[] = {
27138 (char *) "self",(char *) "item", NULL
27139 };
27140
27141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27144 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27145 SWIG_POINTER_EXCEPTION | 0)) == -1)
27146 SWIG_fail;
27147 if (arg2 == NULL) {
27148 PyErr_SetString(PyExc_TypeError,"null reference");
27149 SWIG_fail;
27150 }
27151 {
27152 PyThreadState* __tstate = wxPyBeginAllowThreads();
27153 (arg1)->Delete((wxTreeItemId const &)*arg2);
27154
27155 wxPyEndAllowThreads(__tstate);
27156 if (PyErr_Occurred()) SWIG_fail;
27157 }
27158 Py_INCREF(Py_None); resultobj = Py_None;
27159 return resultobj;
27160 fail:
27161 return NULL;
27162 }
27163
27164
27165 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27166 PyObject *resultobj;
27167 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27168 wxTreeItemId *arg2 = 0 ;
27169 PyObject * obj0 = 0 ;
27170 PyObject * obj1 = 0 ;
27171 char *kwnames[] = {
27172 (char *) "self",(char *) "item", NULL
27173 };
27174
27175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27178 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27179 SWIG_POINTER_EXCEPTION | 0)) == -1)
27180 SWIG_fail;
27181 if (arg2 == NULL) {
27182 PyErr_SetString(PyExc_TypeError,"null reference");
27183 SWIG_fail;
27184 }
27185 {
27186 PyThreadState* __tstate = wxPyBeginAllowThreads();
27187 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27188
27189 wxPyEndAllowThreads(__tstate);
27190 if (PyErr_Occurred()) SWIG_fail;
27191 }
27192 Py_INCREF(Py_None); resultobj = Py_None;
27193 return resultobj;
27194 fail:
27195 return NULL;
27196 }
27197
27198
27199 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
27200 PyObject *resultobj;
27201 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27202 PyObject * obj0 = 0 ;
27203 char *kwnames[] = {
27204 (char *) "self", NULL
27205 };
27206
27207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27210 {
27211 PyThreadState* __tstate = wxPyBeginAllowThreads();
27212 (arg1)->DeleteAllItems();
27213
27214 wxPyEndAllowThreads(__tstate);
27215 if (PyErr_Occurred()) SWIG_fail;
27216 }
27217 Py_INCREF(Py_None); resultobj = Py_None;
27218 return resultobj;
27219 fail:
27220 return NULL;
27221 }
27222
27223
27224 static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
27225 PyObject *resultobj;
27226 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27227 wxTreeItemId *arg2 = 0 ;
27228 PyObject * obj0 = 0 ;
27229 PyObject * obj1 = 0 ;
27230 char *kwnames[] = {
27231 (char *) "self",(char *) "item", NULL
27232 };
27233
27234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27237 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27238 SWIG_POINTER_EXCEPTION | 0)) == -1)
27239 SWIG_fail;
27240 if (arg2 == NULL) {
27241 PyErr_SetString(PyExc_TypeError,"null reference");
27242 SWIG_fail;
27243 }
27244 {
27245 PyThreadState* __tstate = wxPyBeginAllowThreads();
27246 (arg1)->Expand((wxTreeItemId const &)*arg2);
27247
27248 wxPyEndAllowThreads(__tstate);
27249 if (PyErr_Occurred()) SWIG_fail;
27250 }
27251 Py_INCREF(Py_None); resultobj = Py_None;
27252 return resultobj;
27253 fail:
27254 return NULL;
27255 }
27256
27257
27258 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
27259 PyObject *resultobj;
27260 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27261 wxTreeItemId *arg2 = 0 ;
27262 PyObject * obj0 = 0 ;
27263 PyObject * obj1 = 0 ;
27264 char *kwnames[] = {
27265 (char *) "self",(char *) "item", NULL
27266 };
27267
27268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27271 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27272 SWIG_POINTER_EXCEPTION | 0)) == -1)
27273 SWIG_fail;
27274 if (arg2 == NULL) {
27275 PyErr_SetString(PyExc_TypeError,"null reference");
27276 SWIG_fail;
27277 }
27278 {
27279 PyThreadState* __tstate = wxPyBeginAllowThreads();
27280 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27281
27282 wxPyEndAllowThreads(__tstate);
27283 if (PyErr_Occurred()) SWIG_fail;
27284 }
27285 Py_INCREF(Py_None); resultobj = Py_None;
27286 return resultobj;
27287 fail:
27288 return NULL;
27289 }
27290
27291
27292 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
27293 PyObject *resultobj;
27294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27295 wxTreeItemId *arg2 = 0 ;
27296 PyObject * obj0 = 0 ;
27297 PyObject * obj1 = 0 ;
27298 char *kwnames[] = {
27299 (char *) "self",(char *) "item", NULL
27300 };
27301
27302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27305 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27306 SWIG_POINTER_EXCEPTION | 0)) == -1)
27307 SWIG_fail;
27308 if (arg2 == NULL) {
27309 PyErr_SetString(PyExc_TypeError,"null reference");
27310 SWIG_fail;
27311 }
27312 {
27313 PyThreadState* __tstate = wxPyBeginAllowThreads();
27314 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27315
27316 wxPyEndAllowThreads(__tstate);
27317 if (PyErr_Occurred()) SWIG_fail;
27318 }
27319 Py_INCREF(Py_None); resultobj = Py_None;
27320 return resultobj;
27321 fail:
27322 return NULL;
27323 }
27324
27325
27326 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
27327 PyObject *resultobj;
27328 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27329 wxTreeItemId *arg2 = 0 ;
27330 PyObject * obj0 = 0 ;
27331 PyObject * obj1 = 0 ;
27332 char *kwnames[] = {
27333 (char *) "self",(char *) "item", NULL
27334 };
27335
27336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27339 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27340 SWIG_POINTER_EXCEPTION | 0)) == -1)
27341 SWIG_fail;
27342 if (arg2 == NULL) {
27343 PyErr_SetString(PyExc_TypeError,"null reference");
27344 SWIG_fail;
27345 }
27346 {
27347 PyThreadState* __tstate = wxPyBeginAllowThreads();
27348 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27349
27350 wxPyEndAllowThreads(__tstate);
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 Py_INCREF(Py_None); resultobj = Py_None;
27354 return resultobj;
27355 fail:
27356 return NULL;
27357 }
27358
27359
27360 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
27361 PyObject *resultobj;
27362 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27363 PyObject * obj0 = 0 ;
27364 char *kwnames[] = {
27365 (char *) "self", NULL
27366 };
27367
27368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27371 {
27372 PyThreadState* __tstate = wxPyBeginAllowThreads();
27373 (arg1)->Unselect();
27374
27375 wxPyEndAllowThreads(__tstate);
27376 if (PyErr_Occurred()) SWIG_fail;
27377 }
27378 Py_INCREF(Py_None); resultobj = Py_None;
27379 return resultobj;
27380 fail:
27381 return NULL;
27382 }
27383
27384
27385 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27386 PyObject *resultobj;
27387 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27388 wxTreeItemId *arg2 = 0 ;
27389 PyObject * obj0 = 0 ;
27390 PyObject * obj1 = 0 ;
27391 char *kwnames[] = {
27392 (char *) "self",(char *) "item", NULL
27393 };
27394
27395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27398 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27399 SWIG_POINTER_EXCEPTION | 0)) == -1)
27400 SWIG_fail;
27401 if (arg2 == NULL) {
27402 PyErr_SetString(PyExc_TypeError,"null reference");
27403 SWIG_fail;
27404 }
27405 {
27406 PyThreadState* __tstate = wxPyBeginAllowThreads();
27407 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27408
27409 wxPyEndAllowThreads(__tstate);
27410 if (PyErr_Occurred()) SWIG_fail;
27411 }
27412 Py_INCREF(Py_None); resultobj = Py_None;
27413 return resultobj;
27414 fail:
27415 return NULL;
27416 }
27417
27418
27419 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
27420 PyObject *resultobj;
27421 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27422 PyObject * obj0 = 0 ;
27423 char *kwnames[] = {
27424 (char *) "self", NULL
27425 };
27426
27427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27430 {
27431 PyThreadState* __tstate = wxPyBeginAllowThreads();
27432 (arg1)->UnselectAll();
27433
27434 wxPyEndAllowThreads(__tstate);
27435 if (PyErr_Occurred()) SWIG_fail;
27436 }
27437 Py_INCREF(Py_None); resultobj = Py_None;
27438 return resultobj;
27439 fail:
27440 return NULL;
27441 }
27442
27443
27444 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27445 PyObject *resultobj;
27446 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27447 wxTreeItemId *arg2 = 0 ;
27448 bool arg3 = (bool) True ;
27449 PyObject * obj0 = 0 ;
27450 PyObject * obj1 = 0 ;
27451 PyObject * obj2 = 0 ;
27452 char *kwnames[] = {
27453 (char *) "self",(char *) "item",(char *) "select", NULL
27454 };
27455
27456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27459 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27460 SWIG_POINTER_EXCEPTION | 0)) == -1)
27461 SWIG_fail;
27462 if (arg2 == NULL) {
27463 PyErr_SetString(PyExc_TypeError,"null reference");
27464 SWIG_fail;
27465 }
27466 if (obj2) {
27467 arg3 = (bool) SWIG_AsBool(obj2);
27468 if (PyErr_Occurred()) SWIG_fail;
27469 }
27470 {
27471 PyThreadState* __tstate = wxPyBeginAllowThreads();
27472 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27473
27474 wxPyEndAllowThreads(__tstate);
27475 if (PyErr_Occurred()) SWIG_fail;
27476 }
27477 Py_INCREF(Py_None); resultobj = Py_None;
27478 return resultobj;
27479 fail:
27480 return NULL;
27481 }
27482
27483
27484 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27485 PyObject *resultobj;
27486 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27487 wxTreeItemId *arg2 = 0 ;
27488 PyObject * obj0 = 0 ;
27489 PyObject * obj1 = 0 ;
27490 char *kwnames[] = {
27491 (char *) "self",(char *) "item", NULL
27492 };
27493
27494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27497 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27498 SWIG_POINTER_EXCEPTION | 0)) == -1)
27499 SWIG_fail;
27500 if (arg2 == NULL) {
27501 PyErr_SetString(PyExc_TypeError,"null reference");
27502 SWIG_fail;
27503 }
27504 {
27505 PyThreadState* __tstate = wxPyBeginAllowThreads();
27506 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27507
27508 wxPyEndAllowThreads(__tstate);
27509 if (PyErr_Occurred()) SWIG_fail;
27510 }
27511 Py_INCREF(Py_None); resultobj = Py_None;
27512 return resultobj;
27513 fail:
27514 return NULL;
27515 }
27516
27517
27518 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
27519 PyObject *resultobj;
27520 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27521 wxTreeItemId *arg2 = 0 ;
27522 PyObject * obj0 = 0 ;
27523 PyObject * obj1 = 0 ;
27524 char *kwnames[] = {
27525 (char *) "self",(char *) "item", NULL
27526 };
27527
27528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27531 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27532 SWIG_POINTER_EXCEPTION | 0)) == -1)
27533 SWIG_fail;
27534 if (arg2 == NULL) {
27535 PyErr_SetString(PyExc_TypeError,"null reference");
27536 SWIG_fail;
27537 }
27538 {
27539 PyThreadState* __tstate = wxPyBeginAllowThreads();
27540 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27541
27542 wxPyEndAllowThreads(__tstate);
27543 if (PyErr_Occurred()) SWIG_fail;
27544 }
27545 Py_INCREF(Py_None); resultobj = Py_None;
27546 return resultobj;
27547 fail:
27548 return NULL;
27549 }
27550
27551
27552 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
27553 PyObject *resultobj;
27554 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27555 wxTreeItemId *arg2 = 0 ;
27556 PyObject * obj0 = 0 ;
27557 PyObject * obj1 = 0 ;
27558 char *kwnames[] = {
27559 (char *) "self",(char *) "item", NULL
27560 };
27561
27562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27565 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27566 SWIG_POINTER_EXCEPTION | 0)) == -1)
27567 SWIG_fail;
27568 if (arg2 == NULL) {
27569 PyErr_SetString(PyExc_TypeError,"null reference");
27570 SWIG_fail;
27571 }
27572 {
27573 PyThreadState* __tstate = wxPyBeginAllowThreads();
27574 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27575
27576 wxPyEndAllowThreads(__tstate);
27577 if (PyErr_Occurred()) SWIG_fail;
27578 }
27579 Py_INCREF(Py_None); resultobj = Py_None;
27580 return resultobj;
27581 fail:
27582 return NULL;
27583 }
27584
27585
27586 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
27587 PyObject *resultobj;
27588 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27589 wxTreeItemId *arg2 = 0 ;
27590 PyObject * obj0 = 0 ;
27591 PyObject * obj1 = 0 ;
27592 char *kwnames[] = {
27593 (char *) "self",(char *) "item", NULL
27594 };
27595
27596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27600 SWIG_POINTER_EXCEPTION | 0)) == -1)
27601 SWIG_fail;
27602 if (arg2 == NULL) {
27603 PyErr_SetString(PyExc_TypeError,"null reference");
27604 SWIG_fail;
27605 }
27606 {
27607 PyThreadState* __tstate = wxPyBeginAllowThreads();
27608 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27609
27610 wxPyEndAllowThreads(__tstate);
27611 if (PyErr_Occurred()) SWIG_fail;
27612 }
27613 Py_INCREF(Py_None); resultobj = Py_None;
27614 return resultobj;
27615 fail:
27616 return NULL;
27617 }
27618
27619
27620 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27621 PyObject *resultobj;
27622 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27623 wxTextCtrl *result;
27624 PyObject * obj0 = 0 ;
27625 char *kwnames[] = {
27626 (char *) "self", NULL
27627 };
27628
27629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27632 {
27633 PyThreadState* __tstate = wxPyBeginAllowThreads();
27634 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27635
27636 wxPyEndAllowThreads(__tstate);
27637 if (PyErr_Occurred()) SWIG_fail;
27638 }
27639 {
27640 resultobj = wxPyMake_wxObject(result);
27641 }
27642 return resultobj;
27643 fail:
27644 return NULL;
27645 }
27646
27647
27648 static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
27649 PyObject *resultobj;
27650 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27651 wxTreeItemId *arg2 = 0 ;
27652 bool arg3 = (bool) False ;
27653 PyObject * obj0 = 0 ;
27654 PyObject * obj1 = 0 ;
27655 PyObject * obj2 = 0 ;
27656 char *kwnames[] = {
27657 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
27658 };
27659
27660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
27661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27663 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27664 SWIG_POINTER_EXCEPTION | 0)) == -1)
27665 SWIG_fail;
27666 if (arg2 == NULL) {
27667 PyErr_SetString(PyExc_TypeError,"null reference");
27668 SWIG_fail;
27669 }
27670 if (obj2) {
27671 arg3 = (bool) SWIG_AsBool(obj2);
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
27674 {
27675 PyThreadState* __tstate = wxPyBeginAllowThreads();
27676 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
27677
27678 wxPyEndAllowThreads(__tstate);
27679 if (PyErr_Occurred()) SWIG_fail;
27680 }
27681 Py_INCREF(Py_None); resultobj = Py_None;
27682 return resultobj;
27683 fail:
27684 return NULL;
27685 }
27686
27687
27688 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27689 PyObject *resultobj;
27690 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27691 wxTreeItemId *arg2 = 0 ;
27692 PyObject * obj0 = 0 ;
27693 PyObject * obj1 = 0 ;
27694 char *kwnames[] = {
27695 (char *) "self",(char *) "item", NULL
27696 };
27697
27698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
27699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27701 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27702 SWIG_POINTER_EXCEPTION | 0)) == -1)
27703 SWIG_fail;
27704 if (arg2 == NULL) {
27705 PyErr_SetString(PyExc_TypeError,"null reference");
27706 SWIG_fail;
27707 }
27708 {
27709 PyThreadState* __tstate = wxPyBeginAllowThreads();
27710 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
27711
27712 wxPyEndAllowThreads(__tstate);
27713 if (PyErr_Occurred()) SWIG_fail;
27714 }
27715 Py_INCREF(Py_None); resultobj = Py_None;
27716 return resultobj;
27717 fail:
27718 return NULL;
27719 }
27720
27721
27722 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
27723 PyObject *resultobj;
27724 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27725 wxPoint *arg2 = 0 ;
27726 int *arg3 = 0 ;
27727 wxTreeItemId result;
27728 wxPoint temp2 ;
27729 int temp3 ;
27730 PyObject * obj0 = 0 ;
27731 PyObject * obj1 = 0 ;
27732 char *kwnames[] = {
27733 (char *) "self",(char *) "point", NULL
27734 };
27735
27736 arg3 = &temp3;
27737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
27738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27740 {
27741 arg2 = &temp2;
27742 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27743 }
27744 {
27745 PyThreadState* __tstate = wxPyBeginAllowThreads();
27746 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
27747
27748 wxPyEndAllowThreads(__tstate);
27749 if (PyErr_Occurred()) SWIG_fail;
27750 }
27751 {
27752 wxTreeItemId * resultptr;
27753 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27754 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27755 }
27756 {
27757 PyObject *o = PyInt_FromLong((long) (*arg3));
27758 resultobj = t_output_helper(resultobj,o);
27759 }
27760 return resultobj;
27761 fail:
27762 return NULL;
27763 }
27764
27765
27766 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
27767 PyObject *resultobj;
27768 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27769 wxTreeItemId *arg2 = 0 ;
27770 bool arg3 = (bool) False ;
27771 PyObject *result;
27772 PyObject * obj0 = 0 ;
27773 PyObject * obj1 = 0 ;
27774 PyObject * obj2 = 0 ;
27775 char *kwnames[] = {
27776 (char *) "self",(char *) "item",(char *) "textOnly", NULL
27777 };
27778
27779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
27780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27782 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27783 SWIG_POINTER_EXCEPTION | 0)) == -1)
27784 SWIG_fail;
27785 if (arg2 == NULL) {
27786 PyErr_SetString(PyExc_TypeError,"null reference");
27787 SWIG_fail;
27788 }
27789 if (obj2) {
27790 arg3 = (bool) SWIG_AsBool(obj2);
27791 if (PyErr_Occurred()) SWIG_fail;
27792 }
27793 {
27794 PyThreadState* __tstate = wxPyBeginAllowThreads();
27795 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
27796
27797 wxPyEndAllowThreads(__tstate);
27798 if (PyErr_Occurred()) SWIG_fail;
27799 }
27800 resultobj = result;
27801 return resultobj;
27802 fail:
27803 return NULL;
27804 }
27805
27806
27807 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
27808 PyObject *resultobj;
27809 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
27810 wxVisualAttributes result;
27811 PyObject * obj0 = 0 ;
27812 char *kwnames[] = {
27813 (char *) "variant", NULL
27814 };
27815
27816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
27817 if (obj0) {
27818 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
27819 if (PyErr_Occurred()) SWIG_fail;
27820 }
27821 {
27822 PyThreadState* __tstate = wxPyBeginAllowThreads();
27823 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
27824
27825 wxPyEndAllowThreads(__tstate);
27826 if (PyErr_Occurred()) SWIG_fail;
27827 }
27828 {
27829 wxVisualAttributes * resultptr;
27830 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
27831 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
27832 }
27833 return resultobj;
27834 fail:
27835 return NULL;
27836 }
27837
27838
27839 static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
27840 PyObject *obj;
27841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27842 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
27843 Py_INCREF(obj);
27844 return Py_BuildValue((char *)"");
27845 }
27846 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
27847 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
27848 return 1;
27849 }
27850
27851
27852 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
27853 PyObject *pyobj;
27854
27855 {
27856 #if wxUSE_UNICODE
27857 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27858 #else
27859 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27860 #endif
27861 }
27862 return pyobj;
27863 }
27864
27865
27866 static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27867 PyObject *resultobj;
27868 wxWindow *arg1 = (wxWindow *) 0 ;
27869 int arg2 = (int) (int)-1 ;
27870 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
27871 wxString *arg3 = (wxString *) &arg3_defvalue ;
27872 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27873 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27874 wxSize const &arg5_defvalue = wxDefaultSize ;
27875 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27876 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27877 wxString const &arg7_defvalue = wxPyEmptyString ;
27878 wxString *arg7 = (wxString *) &arg7_defvalue ;
27879 int arg8 = (int) 0 ;
27880 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
27881 wxString *arg9 = (wxString *) &arg9_defvalue ;
27882 wxGenericDirCtrl *result;
27883 bool temp3 = False ;
27884 wxPoint temp4 ;
27885 wxSize temp5 ;
27886 bool temp7 = False ;
27887 bool temp9 = False ;
27888 PyObject * obj0 = 0 ;
27889 PyObject * obj1 = 0 ;
27890 PyObject * obj2 = 0 ;
27891 PyObject * obj3 = 0 ;
27892 PyObject * obj4 = 0 ;
27893 PyObject * obj5 = 0 ;
27894 PyObject * obj6 = 0 ;
27895 PyObject * obj7 = 0 ;
27896 PyObject * obj8 = 0 ;
27897 char *kwnames[] = {
27898 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27899 };
27900
27901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
27902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27904 if (obj1) {
27905 arg2 = (int const) SWIG_AsInt(obj1);
27906 if (PyErr_Occurred()) SWIG_fail;
27907 }
27908 if (obj2) {
27909 {
27910 arg3 = wxString_in_helper(obj2);
27911 if (arg3 == NULL) SWIG_fail;
27912 temp3 = True;
27913 }
27914 }
27915 if (obj3) {
27916 {
27917 arg4 = &temp4;
27918 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27919 }
27920 }
27921 if (obj4) {
27922 {
27923 arg5 = &temp5;
27924 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27925 }
27926 }
27927 if (obj5) {
27928 arg6 = (long) SWIG_AsLong(obj5);
27929 if (PyErr_Occurred()) SWIG_fail;
27930 }
27931 if (obj6) {
27932 {
27933 arg7 = wxString_in_helper(obj6);
27934 if (arg7 == NULL) SWIG_fail;
27935 temp7 = True;
27936 }
27937 }
27938 if (obj7) {
27939 arg8 = (int) SWIG_AsInt(obj7);
27940 if (PyErr_Occurred()) SWIG_fail;
27941 }
27942 if (obj8) {
27943 {
27944 arg9 = wxString_in_helper(obj8);
27945 if (arg9 == NULL) SWIG_fail;
27946 temp9 = True;
27947 }
27948 }
27949 {
27950 PyThreadState* __tstate = wxPyBeginAllowThreads();
27951 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
27952
27953 wxPyEndAllowThreads(__tstate);
27954 if (PyErr_Occurred()) SWIG_fail;
27955 }
27956 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27957 {
27958 if (temp3)
27959 delete arg3;
27960 }
27961 {
27962 if (temp7)
27963 delete arg7;
27964 }
27965 {
27966 if (temp9)
27967 delete arg9;
27968 }
27969 return resultobj;
27970 fail:
27971 {
27972 if (temp3)
27973 delete arg3;
27974 }
27975 {
27976 if (temp7)
27977 delete arg7;
27978 }
27979 {
27980 if (temp9)
27981 delete arg9;
27982 }
27983 return NULL;
27984 }
27985
27986
27987 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27988 PyObject *resultobj;
27989 wxGenericDirCtrl *result;
27990 char *kwnames[] = {
27991 NULL
27992 };
27993
27994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
27995 {
27996 PyThreadState* __tstate = wxPyBeginAllowThreads();
27997 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
27998
27999 wxPyEndAllowThreads(__tstate);
28000 if (PyErr_Occurred()) SWIG_fail;
28001 }
28002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28003 return resultobj;
28004 fail:
28005 return NULL;
28006 }
28007
28008
28009 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
28010 PyObject *resultobj;
28011 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28012 wxWindow *arg2 = (wxWindow *) 0 ;
28013 int arg3 = (int) (int)-1 ;
28014 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28015 wxString *arg4 = (wxString *) &arg4_defvalue ;
28016 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28017 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28018 wxSize const &arg6_defvalue = wxDefaultSize ;
28019 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28020 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28021 wxString const &arg8_defvalue = wxPyEmptyString ;
28022 wxString *arg8 = (wxString *) &arg8_defvalue ;
28023 int arg9 = (int) 0 ;
28024 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28025 wxString *arg10 = (wxString *) &arg10_defvalue ;
28026 bool result;
28027 bool temp4 = False ;
28028 wxPoint temp5 ;
28029 wxSize temp6 ;
28030 bool temp8 = False ;
28031 bool temp10 = False ;
28032 PyObject * obj0 = 0 ;
28033 PyObject * obj1 = 0 ;
28034 PyObject * obj2 = 0 ;
28035 PyObject * obj3 = 0 ;
28036 PyObject * obj4 = 0 ;
28037 PyObject * obj5 = 0 ;
28038 PyObject * obj6 = 0 ;
28039 PyObject * obj7 = 0 ;
28040 PyObject * obj8 = 0 ;
28041 PyObject * obj9 = 0 ;
28042 char *kwnames[] = {
28043 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28044 };
28045
28046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28049 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28051 if (obj2) {
28052 arg3 = (int const) SWIG_AsInt(obj2);
28053 if (PyErr_Occurred()) SWIG_fail;
28054 }
28055 if (obj3) {
28056 {
28057 arg4 = wxString_in_helper(obj3);
28058 if (arg4 == NULL) SWIG_fail;
28059 temp4 = True;
28060 }
28061 }
28062 if (obj4) {
28063 {
28064 arg5 = &temp5;
28065 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28066 }
28067 }
28068 if (obj5) {
28069 {
28070 arg6 = &temp6;
28071 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28072 }
28073 }
28074 if (obj6) {
28075 arg7 = (long) SWIG_AsLong(obj6);
28076 if (PyErr_Occurred()) SWIG_fail;
28077 }
28078 if (obj7) {
28079 {
28080 arg8 = wxString_in_helper(obj7);
28081 if (arg8 == NULL) SWIG_fail;
28082 temp8 = True;
28083 }
28084 }
28085 if (obj8) {
28086 arg9 = (int) SWIG_AsInt(obj8);
28087 if (PyErr_Occurred()) SWIG_fail;
28088 }
28089 if (obj9) {
28090 {
28091 arg10 = wxString_in_helper(obj9);
28092 if (arg10 == NULL) SWIG_fail;
28093 temp10 = True;
28094 }
28095 }
28096 {
28097 PyThreadState* __tstate = wxPyBeginAllowThreads();
28098 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28099
28100 wxPyEndAllowThreads(__tstate);
28101 if (PyErr_Occurred()) SWIG_fail;
28102 }
28103 {
28104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28105 }
28106 {
28107 if (temp4)
28108 delete arg4;
28109 }
28110 {
28111 if (temp8)
28112 delete arg8;
28113 }
28114 {
28115 if (temp10)
28116 delete arg10;
28117 }
28118 return resultobj;
28119 fail:
28120 {
28121 if (temp4)
28122 delete arg4;
28123 }
28124 {
28125 if (temp8)
28126 delete arg8;
28127 }
28128 {
28129 if (temp10)
28130 delete arg10;
28131 }
28132 return NULL;
28133 }
28134
28135
28136 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28137 PyObject *resultobj;
28138 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28139 wxString *arg2 = 0 ;
28140 bool result;
28141 bool temp2 = False ;
28142 PyObject * obj0 = 0 ;
28143 PyObject * obj1 = 0 ;
28144 char *kwnames[] = {
28145 (char *) "self",(char *) "path", NULL
28146 };
28147
28148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28151 {
28152 arg2 = wxString_in_helper(obj1);
28153 if (arg2 == NULL) SWIG_fail;
28154 temp2 = True;
28155 }
28156 {
28157 PyThreadState* __tstate = wxPyBeginAllowThreads();
28158 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28159
28160 wxPyEndAllowThreads(__tstate);
28161 if (PyErr_Occurred()) SWIG_fail;
28162 }
28163 {
28164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28165 }
28166 {
28167 if (temp2)
28168 delete arg2;
28169 }
28170 return resultobj;
28171 fail:
28172 {
28173 if (temp2)
28174 delete arg2;
28175 }
28176 return NULL;
28177 }
28178
28179
28180 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28181 PyObject *resultobj;
28182 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28183 wxString result;
28184 PyObject * obj0 = 0 ;
28185 char *kwnames[] = {
28186 (char *) "self", NULL
28187 };
28188
28189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28192 {
28193 PyThreadState* __tstate = wxPyBeginAllowThreads();
28194 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28195
28196 wxPyEndAllowThreads(__tstate);
28197 if (PyErr_Occurred()) SWIG_fail;
28198 }
28199 {
28200 #if wxUSE_UNICODE
28201 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28202 #else
28203 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28204 #endif
28205 }
28206 return resultobj;
28207 fail:
28208 return NULL;
28209 }
28210
28211
28212 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28213 PyObject *resultobj;
28214 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28215 wxString *arg2 = 0 ;
28216 bool temp2 = False ;
28217 PyObject * obj0 = 0 ;
28218 PyObject * obj1 = 0 ;
28219 char *kwnames[] = {
28220 (char *) "self",(char *) "path", NULL
28221 };
28222
28223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28226 {
28227 arg2 = wxString_in_helper(obj1);
28228 if (arg2 == NULL) SWIG_fail;
28229 temp2 = True;
28230 }
28231 {
28232 PyThreadState* __tstate = wxPyBeginAllowThreads();
28233 (arg1)->SetDefaultPath((wxString const &)*arg2);
28234
28235 wxPyEndAllowThreads(__tstate);
28236 if (PyErr_Occurred()) SWIG_fail;
28237 }
28238 Py_INCREF(Py_None); resultobj = Py_None;
28239 {
28240 if (temp2)
28241 delete arg2;
28242 }
28243 return resultobj;
28244 fail:
28245 {
28246 if (temp2)
28247 delete arg2;
28248 }
28249 return NULL;
28250 }
28251
28252
28253 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28254 PyObject *resultobj;
28255 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28256 wxString result;
28257 PyObject * obj0 = 0 ;
28258 char *kwnames[] = {
28259 (char *) "self", NULL
28260 };
28261
28262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28265 {
28266 PyThreadState* __tstate = wxPyBeginAllowThreads();
28267 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28268
28269 wxPyEndAllowThreads(__tstate);
28270 if (PyErr_Occurred()) SWIG_fail;
28271 }
28272 {
28273 #if wxUSE_UNICODE
28274 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28275 #else
28276 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28277 #endif
28278 }
28279 return resultobj;
28280 fail:
28281 return NULL;
28282 }
28283
28284
28285 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
28286 PyObject *resultobj;
28287 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28288 wxString result;
28289 PyObject * obj0 = 0 ;
28290 char *kwnames[] = {
28291 (char *) "self", NULL
28292 };
28293
28294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28297 {
28298 PyThreadState* __tstate = wxPyBeginAllowThreads();
28299 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28300
28301 wxPyEndAllowThreads(__tstate);
28302 if (PyErr_Occurred()) SWIG_fail;
28303 }
28304 {
28305 #if wxUSE_UNICODE
28306 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28307 #else
28308 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28309 #endif
28310 }
28311 return resultobj;
28312 fail:
28313 return NULL;
28314 }
28315
28316
28317 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28318 PyObject *resultobj;
28319 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28320 wxString *arg2 = 0 ;
28321 bool temp2 = False ;
28322 PyObject * obj0 = 0 ;
28323 PyObject * obj1 = 0 ;
28324 char *kwnames[] = {
28325 (char *) "self",(char *) "path", NULL
28326 };
28327
28328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28331 {
28332 arg2 = wxString_in_helper(obj1);
28333 if (arg2 == NULL) SWIG_fail;
28334 temp2 = True;
28335 }
28336 {
28337 PyThreadState* __tstate = wxPyBeginAllowThreads();
28338 (arg1)->SetPath((wxString const &)*arg2);
28339
28340 wxPyEndAllowThreads(__tstate);
28341 if (PyErr_Occurred()) SWIG_fail;
28342 }
28343 Py_INCREF(Py_None); resultobj = Py_None;
28344 {
28345 if (temp2)
28346 delete arg2;
28347 }
28348 return resultobj;
28349 fail:
28350 {
28351 if (temp2)
28352 delete arg2;
28353 }
28354 return NULL;
28355 }
28356
28357
28358 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28359 PyObject *resultobj;
28360 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28361 bool arg2 ;
28362 PyObject * obj0 = 0 ;
28363 PyObject * obj1 = 0 ;
28364 char *kwnames[] = {
28365 (char *) "self",(char *) "show", NULL
28366 };
28367
28368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28371 arg2 = (bool) SWIG_AsBool(obj1);
28372 if (PyErr_Occurred()) SWIG_fail;
28373 {
28374 PyThreadState* __tstate = wxPyBeginAllowThreads();
28375 (arg1)->ShowHidden(arg2);
28376
28377 wxPyEndAllowThreads(__tstate);
28378 if (PyErr_Occurred()) SWIG_fail;
28379 }
28380 Py_INCREF(Py_None); resultobj = Py_None;
28381 return resultobj;
28382 fail:
28383 return NULL;
28384 }
28385
28386
28387 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28388 PyObject *resultobj;
28389 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28390 bool result;
28391 PyObject * obj0 = 0 ;
28392 char *kwnames[] = {
28393 (char *) "self", NULL
28394 };
28395
28396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28399 {
28400 PyThreadState* __tstate = wxPyBeginAllowThreads();
28401 result = (bool)(arg1)->GetShowHidden();
28402
28403 wxPyEndAllowThreads(__tstate);
28404 if (PyErr_Occurred()) SWIG_fail;
28405 }
28406 {
28407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28408 }
28409 return resultobj;
28410 fail:
28411 return NULL;
28412 }
28413
28414
28415 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28416 PyObject *resultobj;
28417 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28418 wxString result;
28419 PyObject * obj0 = 0 ;
28420 char *kwnames[] = {
28421 (char *) "self", NULL
28422 };
28423
28424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28427 {
28428 PyThreadState* __tstate = wxPyBeginAllowThreads();
28429 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28430
28431 wxPyEndAllowThreads(__tstate);
28432 if (PyErr_Occurred()) SWIG_fail;
28433 }
28434 {
28435 #if wxUSE_UNICODE
28436 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28437 #else
28438 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28439 #endif
28440 }
28441 return resultobj;
28442 fail:
28443 return NULL;
28444 }
28445
28446
28447 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28448 PyObject *resultobj;
28449 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28450 wxString *arg2 = 0 ;
28451 bool temp2 = False ;
28452 PyObject * obj0 = 0 ;
28453 PyObject * obj1 = 0 ;
28454 char *kwnames[] = {
28455 (char *) "self",(char *) "filter", NULL
28456 };
28457
28458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28461 {
28462 arg2 = wxString_in_helper(obj1);
28463 if (arg2 == NULL) SWIG_fail;
28464 temp2 = True;
28465 }
28466 {
28467 PyThreadState* __tstate = wxPyBeginAllowThreads();
28468 (arg1)->SetFilter((wxString const &)*arg2);
28469
28470 wxPyEndAllowThreads(__tstate);
28471 if (PyErr_Occurred()) SWIG_fail;
28472 }
28473 Py_INCREF(Py_None); resultobj = Py_None;
28474 {
28475 if (temp2)
28476 delete arg2;
28477 }
28478 return resultobj;
28479 fail:
28480 {
28481 if (temp2)
28482 delete arg2;
28483 }
28484 return NULL;
28485 }
28486
28487
28488 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28489 PyObject *resultobj;
28490 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28491 int result;
28492 PyObject * obj0 = 0 ;
28493 char *kwnames[] = {
28494 (char *) "self", NULL
28495 };
28496
28497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28500 {
28501 PyThreadState* __tstate = wxPyBeginAllowThreads();
28502 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28503
28504 wxPyEndAllowThreads(__tstate);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 }
28507 resultobj = SWIG_FromInt((int)result);
28508 return resultobj;
28509 fail:
28510 return NULL;
28511 }
28512
28513
28514 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28515 PyObject *resultobj;
28516 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28517 int arg2 ;
28518 PyObject * obj0 = 0 ;
28519 PyObject * obj1 = 0 ;
28520 char *kwnames[] = {
28521 (char *) "self",(char *) "n", NULL
28522 };
28523
28524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28527 arg2 = (int) SWIG_AsInt(obj1);
28528 if (PyErr_Occurred()) SWIG_fail;
28529 {
28530 PyThreadState* __tstate = wxPyBeginAllowThreads();
28531 (arg1)->SetFilterIndex(arg2);
28532
28533 wxPyEndAllowThreads(__tstate);
28534 if (PyErr_Occurred()) SWIG_fail;
28535 }
28536 Py_INCREF(Py_None); resultobj = Py_None;
28537 return resultobj;
28538 fail:
28539 return NULL;
28540 }
28541
28542
28543 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
28544 PyObject *resultobj;
28545 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28546 wxTreeItemId result;
28547 PyObject * obj0 = 0 ;
28548 char *kwnames[] = {
28549 (char *) "self", NULL
28550 };
28551
28552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28555 {
28556 PyThreadState* __tstate = wxPyBeginAllowThreads();
28557 result = (arg1)->GetRootId();
28558
28559 wxPyEndAllowThreads(__tstate);
28560 if (PyErr_Occurred()) SWIG_fail;
28561 }
28562 {
28563 wxTreeItemId * resultptr;
28564 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28566 }
28567 return resultobj;
28568 fail:
28569 return NULL;
28570 }
28571
28572
28573 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28574 PyObject *resultobj;
28575 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28576 wxPyTreeCtrl *result;
28577 PyObject * obj0 = 0 ;
28578 char *kwnames[] = {
28579 (char *) "self", NULL
28580 };
28581
28582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
28583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28585 {
28586 PyThreadState* __tstate = wxPyBeginAllowThreads();
28587 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
28588
28589 wxPyEndAllowThreads(__tstate);
28590 if (PyErr_Occurred()) SWIG_fail;
28591 }
28592 {
28593 resultobj = wxPyMake_wxObject(result);
28594 }
28595 return resultobj;
28596 fail:
28597 return NULL;
28598 }
28599
28600
28601 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28602 PyObject *resultobj;
28603 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28604 wxDirFilterListCtrl *result;
28605 PyObject * obj0 = 0 ;
28606 char *kwnames[] = {
28607 (char *) "self", NULL
28608 };
28609
28610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
28611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28613 {
28614 PyThreadState* __tstate = wxPyBeginAllowThreads();
28615 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
28616
28617 wxPyEndAllowThreads(__tstate);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
28621 return resultobj;
28622 fail:
28623 return NULL;
28624 }
28625
28626
28627 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28628 PyObject *resultobj;
28629 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28630 wxTreeItemId arg2 ;
28631 wxString *arg3 = 0 ;
28632 bool *arg4 = 0 ;
28633 wxTreeItemId result;
28634 wxTreeItemId *argp2 ;
28635 bool temp3 = False ;
28636 bool temp4 ;
28637 PyObject * obj0 = 0 ;
28638 PyObject * obj1 = 0 ;
28639 PyObject * obj2 = 0 ;
28640 char *kwnames[] = {
28641 (char *) "self",(char *) "parentId",(char *) "path", NULL
28642 };
28643
28644 arg4 = &temp4;
28645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
28646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28648 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
28649 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
28650 arg2 = *argp2;
28651 {
28652 arg3 = wxString_in_helper(obj2);
28653 if (arg3 == NULL) SWIG_fail;
28654 temp3 = True;
28655 }
28656 {
28657 PyThreadState* __tstate = wxPyBeginAllowThreads();
28658 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
28659
28660 wxPyEndAllowThreads(__tstate);
28661 if (PyErr_Occurred()) SWIG_fail;
28662 }
28663 {
28664 wxTreeItemId * resultptr;
28665 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28666 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28667 }
28668 {
28669 PyObject *o = PyInt_FromLong((long) (*arg4));
28670 resultobj = t_output_helper(resultobj,o);
28671 }
28672 {
28673 if (temp3)
28674 delete arg3;
28675 }
28676 return resultobj;
28677 fail:
28678 {
28679 if (temp3)
28680 delete arg3;
28681 }
28682 return NULL;
28683 }
28684
28685
28686 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
28687 PyObject *resultobj;
28688 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28689 PyObject * obj0 = 0 ;
28690 char *kwnames[] = {
28691 (char *) "self", NULL
28692 };
28693
28694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
28695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28697 {
28698 PyThreadState* __tstate = wxPyBeginAllowThreads();
28699 (arg1)->DoResize();
28700
28701 wxPyEndAllowThreads(__tstate);
28702 if (PyErr_Occurred()) SWIG_fail;
28703 }
28704 Py_INCREF(Py_None); resultobj = Py_None;
28705 return resultobj;
28706 fail:
28707 return NULL;
28708 }
28709
28710
28711 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
28712 PyObject *resultobj;
28713 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28714 PyObject * obj0 = 0 ;
28715 char *kwnames[] = {
28716 (char *) "self", NULL
28717 };
28718
28719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
28720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28722 {
28723 PyThreadState* __tstate = wxPyBeginAllowThreads();
28724 (arg1)->ReCreateTree();
28725
28726 wxPyEndAllowThreads(__tstate);
28727 if (PyErr_Occurred()) SWIG_fail;
28728 }
28729 Py_INCREF(Py_None); resultobj = Py_None;
28730 return resultobj;
28731 fail:
28732 return NULL;
28733 }
28734
28735
28736 static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
28737 PyObject *obj;
28738 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28739 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
28740 Py_INCREF(obj);
28741 return Py_BuildValue((char *)"");
28742 }
28743 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28744 PyObject *resultobj;
28745 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28746 int arg2 = (int) (int)-1 ;
28747 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28748 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28749 wxSize const &arg4_defvalue = wxDefaultSize ;
28750 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28751 long arg5 = (long) 0 ;
28752 wxDirFilterListCtrl *result;
28753 wxPoint temp3 ;
28754 wxSize temp4 ;
28755 PyObject * obj0 = 0 ;
28756 PyObject * obj1 = 0 ;
28757 PyObject * obj2 = 0 ;
28758 PyObject * obj3 = 0 ;
28759 PyObject * obj4 = 0 ;
28760 char *kwnames[] = {
28761 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28762 };
28763
28764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28767 if (obj1) {
28768 arg2 = (int const) SWIG_AsInt(obj1);
28769 if (PyErr_Occurred()) SWIG_fail;
28770 }
28771 if (obj2) {
28772 {
28773 arg3 = &temp3;
28774 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28775 }
28776 }
28777 if (obj3) {
28778 {
28779 arg4 = &temp4;
28780 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28781 }
28782 }
28783 if (obj4) {
28784 arg5 = (long) SWIG_AsLong(obj4);
28785 if (PyErr_Occurred()) SWIG_fail;
28786 }
28787 {
28788 PyThreadState* __tstate = wxPyBeginAllowThreads();
28789 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28790
28791 wxPyEndAllowThreads(__tstate);
28792 if (PyErr_Occurred()) SWIG_fail;
28793 }
28794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28795 return resultobj;
28796 fail:
28797 return NULL;
28798 }
28799
28800
28801 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28802 PyObject *resultobj;
28803 wxDirFilterListCtrl *result;
28804 char *kwnames[] = {
28805 NULL
28806 };
28807
28808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
28809 {
28810 PyThreadState* __tstate = wxPyBeginAllowThreads();
28811 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
28812
28813 wxPyEndAllowThreads(__tstate);
28814 if (PyErr_Occurred()) SWIG_fail;
28815 }
28816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28817 return resultobj;
28818 fail:
28819 return NULL;
28820 }
28821
28822
28823 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
28824 PyObject *resultobj;
28825 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28826 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
28827 int arg3 = (int) (int)-1 ;
28828 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28829 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28830 wxSize const &arg5_defvalue = wxDefaultSize ;
28831 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28832 long arg6 = (long) 0 ;
28833 bool result;
28834 wxPoint temp4 ;
28835 wxSize temp5 ;
28836 PyObject * obj0 = 0 ;
28837 PyObject * obj1 = 0 ;
28838 PyObject * obj2 = 0 ;
28839 PyObject * obj3 = 0 ;
28840 PyObject * obj4 = 0 ;
28841 PyObject * obj5 = 0 ;
28842 char *kwnames[] = {
28843 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28844 };
28845
28846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28849 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
28850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28851 if (obj2) {
28852 arg3 = (int const) SWIG_AsInt(obj2);
28853 if (PyErr_Occurred()) SWIG_fail;
28854 }
28855 if (obj3) {
28856 {
28857 arg4 = &temp4;
28858 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28859 }
28860 }
28861 if (obj4) {
28862 {
28863 arg5 = &temp5;
28864 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28865 }
28866 }
28867 if (obj5) {
28868 arg6 = (long) SWIG_AsLong(obj5);
28869 if (PyErr_Occurred()) SWIG_fail;
28870 }
28871 {
28872 PyThreadState* __tstate = wxPyBeginAllowThreads();
28873 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
28874
28875 wxPyEndAllowThreads(__tstate);
28876 if (PyErr_Occurred()) SWIG_fail;
28877 }
28878 {
28879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28880 }
28881 return resultobj;
28882 fail:
28883 return NULL;
28884 }
28885
28886
28887 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
28888 PyObject *resultobj;
28889 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28890 wxString *arg2 = 0 ;
28891 int arg3 ;
28892 bool temp2 = False ;
28893 PyObject * obj0 = 0 ;
28894 PyObject * obj1 = 0 ;
28895 PyObject * obj2 = 0 ;
28896 char *kwnames[] = {
28897 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
28898 };
28899
28900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
28901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28903 {
28904 arg2 = wxString_in_helper(obj1);
28905 if (arg2 == NULL) SWIG_fail;
28906 temp2 = True;
28907 }
28908 arg3 = (int) SWIG_AsInt(obj2);
28909 if (PyErr_Occurred()) SWIG_fail;
28910 {
28911 PyThreadState* __tstate = wxPyBeginAllowThreads();
28912 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
28913
28914 wxPyEndAllowThreads(__tstate);
28915 if (PyErr_Occurred()) SWIG_fail;
28916 }
28917 Py_INCREF(Py_None); resultobj = Py_None;
28918 {
28919 if (temp2)
28920 delete arg2;
28921 }
28922 return resultobj;
28923 fail:
28924 {
28925 if (temp2)
28926 delete arg2;
28927 }
28928 return NULL;
28929 }
28930
28931
28932 static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
28933 PyObject *obj;
28934 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28935 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
28936 Py_INCREF(obj);
28937 return Py_BuildValue((char *)"");
28938 }
28939 static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28940 PyObject *resultobj;
28941 wxWindow *arg1 = (wxWindow *) 0 ;
28942 int arg2 ;
28943 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28944 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28945 wxSize const &arg4_defvalue = wxDefaultSize ;
28946 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28947 long arg5 = (long) 0 ;
28948 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28949 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28950 wxString const &arg7_defvalue = wxPyControlNameStr ;
28951 wxString *arg7 = (wxString *) &arg7_defvalue ;
28952 wxPyControl *result;
28953 wxPoint temp3 ;
28954 wxSize temp4 ;
28955 bool temp7 = False ;
28956 PyObject * obj0 = 0 ;
28957 PyObject * obj1 = 0 ;
28958 PyObject * obj2 = 0 ;
28959 PyObject * obj3 = 0 ;
28960 PyObject * obj4 = 0 ;
28961 PyObject * obj5 = 0 ;
28962 PyObject * obj6 = 0 ;
28963 char *kwnames[] = {
28964 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28965 };
28966
28967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
28968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28970 arg2 = (int const) SWIG_AsInt(obj1);
28971 if (PyErr_Occurred()) SWIG_fail;
28972 if (obj2) {
28973 {
28974 arg3 = &temp3;
28975 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28976 }
28977 }
28978 if (obj3) {
28979 {
28980 arg4 = &temp4;
28981 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28982 }
28983 }
28984 if (obj4) {
28985 arg5 = (long) SWIG_AsLong(obj4);
28986 if (PyErr_Occurred()) SWIG_fail;
28987 }
28988 if (obj5) {
28989 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
28990 SWIG_POINTER_EXCEPTION | 0)) == -1)
28991 SWIG_fail;
28992 if (arg6 == NULL) {
28993 PyErr_SetString(PyExc_TypeError,"null reference");
28994 SWIG_fail;
28995 }
28996 }
28997 if (obj6) {
28998 {
28999 arg7 = wxString_in_helper(obj6);
29000 if (arg7 == NULL) SWIG_fail;
29001 temp7 = True;
29002 }
29003 }
29004 {
29005 PyThreadState* __tstate = wxPyBeginAllowThreads();
29006 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29007
29008 wxPyEndAllowThreads(__tstate);
29009 if (PyErr_Occurred()) SWIG_fail;
29010 }
29011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29012 {
29013 if (temp7)
29014 delete arg7;
29015 }
29016 return resultobj;
29017 fail:
29018 {
29019 if (temp7)
29020 delete arg7;
29021 }
29022 return NULL;
29023 }
29024
29025
29026 static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
29027 PyObject *resultobj;
29028 wxPyControl *result;
29029 char *kwnames[] = {
29030 NULL
29031 };
29032
29033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29034 {
29035 PyThreadState* __tstate = wxPyBeginAllowThreads();
29036 result = (wxPyControl *)new wxPyControl();
29037
29038 wxPyEndAllowThreads(__tstate);
29039 if (PyErr_Occurred()) SWIG_fail;
29040 }
29041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29042 return resultobj;
29043 fail:
29044 return NULL;
29045 }
29046
29047
29048 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
29049 PyObject *resultobj;
29050 wxPyControl *arg1 = (wxPyControl *) 0 ;
29051 PyObject *arg2 = (PyObject *) 0 ;
29052 PyObject *arg3 = (PyObject *) 0 ;
29053 PyObject * obj0 = 0 ;
29054 PyObject * obj1 = 0 ;
29055 PyObject * obj2 = 0 ;
29056 char *kwnames[] = {
29057 (char *) "self",(char *) "self",(char *) "_class", NULL
29058 };
29059
29060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29063 arg2 = obj1;
29064 arg3 = obj2;
29065 {
29066 PyThreadState* __tstate = wxPyBeginAllowThreads();
29067 (arg1)->_setCallbackInfo(arg2,arg3);
29068
29069 wxPyEndAllowThreads(__tstate);
29070 if (PyErr_Occurred()) SWIG_fail;
29071 }
29072 Py_INCREF(Py_None); resultobj = Py_None;
29073 return resultobj;
29074 fail:
29075 return NULL;
29076 }
29077
29078
29079 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29080 PyObject *resultobj;
29081 wxPyControl *arg1 = (wxPyControl *) 0 ;
29082 int arg2 ;
29083 int arg3 ;
29084 int arg4 ;
29085 int arg5 ;
29086 PyObject * obj0 = 0 ;
29087 PyObject * obj1 = 0 ;
29088 PyObject * obj2 = 0 ;
29089 PyObject * obj3 = 0 ;
29090 PyObject * obj4 = 0 ;
29091 char *kwnames[] = {
29092 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29093 };
29094
29095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29098 arg2 = (int) SWIG_AsInt(obj1);
29099 if (PyErr_Occurred()) SWIG_fail;
29100 arg3 = (int) SWIG_AsInt(obj2);
29101 if (PyErr_Occurred()) SWIG_fail;
29102 arg4 = (int) SWIG_AsInt(obj3);
29103 if (PyErr_Occurred()) SWIG_fail;
29104 arg5 = (int) SWIG_AsInt(obj4);
29105 if (PyErr_Occurred()) SWIG_fail;
29106 {
29107 PyThreadState* __tstate = wxPyBeginAllowThreads();
29108 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29109
29110 wxPyEndAllowThreads(__tstate);
29111 if (PyErr_Occurred()) SWIG_fail;
29112 }
29113 Py_INCREF(Py_None); resultobj = Py_None;
29114 return resultobj;
29115 fail:
29116 return NULL;
29117 }
29118
29119
29120 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29121 PyObject *resultobj;
29122 wxPyControl *arg1 = (wxPyControl *) 0 ;
29123 int arg2 ;
29124 int arg3 ;
29125 int arg4 ;
29126 int arg5 ;
29127 int arg6 = (int) wxSIZE_AUTO ;
29128 PyObject * obj0 = 0 ;
29129 PyObject * obj1 = 0 ;
29130 PyObject * obj2 = 0 ;
29131 PyObject * obj3 = 0 ;
29132 PyObject * obj4 = 0 ;
29133 PyObject * obj5 = 0 ;
29134 char *kwnames[] = {
29135 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29136 };
29137
29138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29141 arg2 = (int) SWIG_AsInt(obj1);
29142 if (PyErr_Occurred()) SWIG_fail;
29143 arg3 = (int) SWIG_AsInt(obj2);
29144 if (PyErr_Occurred()) SWIG_fail;
29145 arg4 = (int) SWIG_AsInt(obj3);
29146 if (PyErr_Occurred()) SWIG_fail;
29147 arg5 = (int) SWIG_AsInt(obj4);
29148 if (PyErr_Occurred()) SWIG_fail;
29149 if (obj5) {
29150 arg6 = (int) SWIG_AsInt(obj5);
29151 if (PyErr_Occurred()) SWIG_fail;
29152 }
29153 {
29154 PyThreadState* __tstate = wxPyBeginAllowThreads();
29155 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29156
29157 wxPyEndAllowThreads(__tstate);
29158 if (PyErr_Occurred()) SWIG_fail;
29159 }
29160 Py_INCREF(Py_None); resultobj = Py_None;
29161 return resultobj;
29162 fail:
29163 return NULL;
29164 }
29165
29166
29167 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29168 PyObject *resultobj;
29169 wxPyControl *arg1 = (wxPyControl *) 0 ;
29170 int arg2 ;
29171 int arg3 ;
29172 PyObject * obj0 = 0 ;
29173 PyObject * obj1 = 0 ;
29174 PyObject * obj2 = 0 ;
29175 char *kwnames[] = {
29176 (char *) "self",(char *) "width",(char *) "height", NULL
29177 };
29178
29179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29182 arg2 = (int) SWIG_AsInt(obj1);
29183 if (PyErr_Occurred()) SWIG_fail;
29184 arg3 = (int) SWIG_AsInt(obj2);
29185 if (PyErr_Occurred()) SWIG_fail;
29186 {
29187 PyThreadState* __tstate = wxPyBeginAllowThreads();
29188 (arg1)->base_DoSetClientSize(arg2,arg3);
29189
29190 wxPyEndAllowThreads(__tstate);
29191 if (PyErr_Occurred()) SWIG_fail;
29192 }
29193 Py_INCREF(Py_None); resultobj = Py_None;
29194 return resultobj;
29195 fail:
29196 return NULL;
29197 }
29198
29199
29200 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29201 PyObject *resultobj;
29202 wxPyControl *arg1 = (wxPyControl *) 0 ;
29203 int arg2 ;
29204 int arg3 ;
29205 PyObject * obj0 = 0 ;
29206 PyObject * obj1 = 0 ;
29207 PyObject * obj2 = 0 ;
29208 char *kwnames[] = {
29209 (char *) "self",(char *) "x",(char *) "y", NULL
29210 };
29211
29212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29215 arg2 = (int) SWIG_AsInt(obj1);
29216 if (PyErr_Occurred()) SWIG_fail;
29217 arg3 = (int) SWIG_AsInt(obj2);
29218 if (PyErr_Occurred()) SWIG_fail;
29219 {
29220 PyThreadState* __tstate = wxPyBeginAllowThreads();
29221 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29222
29223 wxPyEndAllowThreads(__tstate);
29224 if (PyErr_Occurred()) SWIG_fail;
29225 }
29226 Py_INCREF(Py_None); resultobj = Py_None;
29227 return resultobj;
29228 fail:
29229 return NULL;
29230 }
29231
29232
29233 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29234 PyObject *resultobj;
29235 wxPyControl *arg1 = (wxPyControl *) 0 ;
29236 int *arg2 = (int *) 0 ;
29237 int *arg3 = (int *) 0 ;
29238 int temp2 ;
29239 int temp3 ;
29240 PyObject * obj0 = 0 ;
29241 char *kwnames[] = {
29242 (char *) "self", NULL
29243 };
29244
29245 arg2 = &temp2;
29246 arg3 = &temp3;
29247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29250 {
29251 PyThreadState* __tstate = wxPyBeginAllowThreads();
29252 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29253
29254 wxPyEndAllowThreads(__tstate);
29255 if (PyErr_Occurred()) SWIG_fail;
29256 }
29257 Py_INCREF(Py_None); resultobj = Py_None;
29258 {
29259 PyObject *o = PyInt_FromLong((long) (*arg2));
29260 resultobj = t_output_helper(resultobj,o);
29261 }
29262 {
29263 PyObject *o = PyInt_FromLong((long) (*arg3));
29264 resultobj = t_output_helper(resultobj,o);
29265 }
29266 return resultobj;
29267 fail:
29268 return NULL;
29269 }
29270
29271
29272 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29273 PyObject *resultobj;
29274 wxPyControl *arg1 = (wxPyControl *) 0 ;
29275 int *arg2 = (int *) 0 ;
29276 int *arg3 = (int *) 0 ;
29277 int temp2 ;
29278 int temp3 ;
29279 PyObject * obj0 = 0 ;
29280 char *kwnames[] = {
29281 (char *) "self", NULL
29282 };
29283
29284 arg2 = &temp2;
29285 arg3 = &temp3;
29286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29289 {
29290 PyThreadState* __tstate = wxPyBeginAllowThreads();
29291 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29292
29293 wxPyEndAllowThreads(__tstate);
29294 if (PyErr_Occurred()) SWIG_fail;
29295 }
29296 Py_INCREF(Py_None); resultobj = Py_None;
29297 {
29298 PyObject *o = PyInt_FromLong((long) (*arg2));
29299 resultobj = t_output_helper(resultobj,o);
29300 }
29301 {
29302 PyObject *o = PyInt_FromLong((long) (*arg3));
29303 resultobj = t_output_helper(resultobj,o);
29304 }
29305 return resultobj;
29306 fail:
29307 return NULL;
29308 }
29309
29310
29311 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29312 PyObject *resultobj;
29313 wxPyControl *arg1 = (wxPyControl *) 0 ;
29314 int *arg2 = (int *) 0 ;
29315 int *arg3 = (int *) 0 ;
29316 int temp2 ;
29317 int temp3 ;
29318 PyObject * obj0 = 0 ;
29319 char *kwnames[] = {
29320 (char *) "self", NULL
29321 };
29322
29323 arg2 = &temp2;
29324 arg3 = &temp3;
29325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29328 {
29329 PyThreadState* __tstate = wxPyBeginAllowThreads();
29330 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29331
29332 wxPyEndAllowThreads(__tstate);
29333 if (PyErr_Occurred()) SWIG_fail;
29334 }
29335 Py_INCREF(Py_None); resultobj = Py_None;
29336 {
29337 PyObject *o = PyInt_FromLong((long) (*arg2));
29338 resultobj = t_output_helper(resultobj,o);
29339 }
29340 {
29341 PyObject *o = PyInt_FromLong((long) (*arg3));
29342 resultobj = t_output_helper(resultobj,o);
29343 }
29344 return resultobj;
29345 fail:
29346 return NULL;
29347 }
29348
29349
29350 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29351 PyObject *resultobj;
29352 wxPyControl *arg1 = (wxPyControl *) 0 ;
29353 wxSize result;
29354 PyObject * obj0 = 0 ;
29355 char *kwnames[] = {
29356 (char *) "self", NULL
29357 };
29358
29359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29362 {
29363 PyThreadState* __tstate = wxPyBeginAllowThreads();
29364 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29365
29366 wxPyEndAllowThreads(__tstate);
29367 if (PyErr_Occurred()) SWIG_fail;
29368 }
29369 {
29370 wxSize * resultptr;
29371 resultptr = new wxSize((wxSize &) result);
29372 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29373 }
29374 return resultobj;
29375 fail:
29376 return NULL;
29377 }
29378
29379
29380 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29381 PyObject *resultobj;
29382 wxPyControl *arg1 = (wxPyControl *) 0 ;
29383 wxSize result;
29384 PyObject * obj0 = 0 ;
29385 char *kwnames[] = {
29386 (char *) "self", NULL
29387 };
29388
29389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29392 {
29393 PyThreadState* __tstate = wxPyBeginAllowThreads();
29394 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29395
29396 wxPyEndAllowThreads(__tstate);
29397 if (PyErr_Occurred()) SWIG_fail;
29398 }
29399 {
29400 wxSize * resultptr;
29401 resultptr = new wxSize((wxSize &) result);
29402 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29403 }
29404 return resultobj;
29405 fail:
29406 return NULL;
29407 }
29408
29409
29410 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
29411 PyObject *resultobj;
29412 wxPyControl *arg1 = (wxPyControl *) 0 ;
29413 PyObject * obj0 = 0 ;
29414 char *kwnames[] = {
29415 (char *) "self", NULL
29416 };
29417
29418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29421 {
29422 PyThreadState* __tstate = wxPyBeginAllowThreads();
29423 (arg1)->base_InitDialog();
29424
29425 wxPyEndAllowThreads(__tstate);
29426 if (PyErr_Occurred()) SWIG_fail;
29427 }
29428 Py_INCREF(Py_None); resultobj = Py_None;
29429 return resultobj;
29430 fail:
29431 return NULL;
29432 }
29433
29434
29435 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29436 PyObject *resultobj;
29437 wxPyControl *arg1 = (wxPyControl *) 0 ;
29438 bool result;
29439 PyObject * obj0 = 0 ;
29440 char *kwnames[] = {
29441 (char *) "self", NULL
29442 };
29443
29444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29447 {
29448 PyThreadState* __tstate = wxPyBeginAllowThreads();
29449 result = (bool)(arg1)->base_TransferDataToWindow();
29450
29451 wxPyEndAllowThreads(__tstate);
29452 if (PyErr_Occurred()) SWIG_fail;
29453 }
29454 {
29455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29456 }
29457 return resultobj;
29458 fail:
29459 return NULL;
29460 }
29461
29462
29463 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29464 PyObject *resultobj;
29465 wxPyControl *arg1 = (wxPyControl *) 0 ;
29466 bool result;
29467 PyObject * obj0 = 0 ;
29468 char *kwnames[] = {
29469 (char *) "self", NULL
29470 };
29471
29472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29475 {
29476 PyThreadState* __tstate = wxPyBeginAllowThreads();
29477 result = (bool)(arg1)->base_TransferDataFromWindow();
29478
29479 wxPyEndAllowThreads(__tstate);
29480 if (PyErr_Occurred()) SWIG_fail;
29481 }
29482 {
29483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29484 }
29485 return resultobj;
29486 fail:
29487 return NULL;
29488 }
29489
29490
29491 static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
29492 PyObject *resultobj;
29493 wxPyControl *arg1 = (wxPyControl *) 0 ;
29494 bool result;
29495 PyObject * obj0 = 0 ;
29496 char *kwnames[] = {
29497 (char *) "self", NULL
29498 };
29499
29500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29503 {
29504 PyThreadState* __tstate = wxPyBeginAllowThreads();
29505 result = (bool)(arg1)->base_Validate();
29506
29507 wxPyEndAllowThreads(__tstate);
29508 if (PyErr_Occurred()) SWIG_fail;
29509 }
29510 {
29511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29512 }
29513 return resultobj;
29514 fail:
29515 return NULL;
29516 }
29517
29518
29519 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
29520 PyObject *resultobj;
29521 wxPyControl *arg1 = (wxPyControl *) 0 ;
29522 bool result;
29523 PyObject * obj0 = 0 ;
29524 char *kwnames[] = {
29525 (char *) "self", NULL
29526 };
29527
29528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29531 {
29532 PyThreadState* __tstate = wxPyBeginAllowThreads();
29533 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29534
29535 wxPyEndAllowThreads(__tstate);
29536 if (PyErr_Occurred()) SWIG_fail;
29537 }
29538 {
29539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29540 }
29541 return resultobj;
29542 fail:
29543 return NULL;
29544 }
29545
29546
29547 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
29548 PyObject *resultobj;
29549 wxPyControl *arg1 = (wxPyControl *) 0 ;
29550 bool result;
29551 PyObject * obj0 = 0 ;
29552 char *kwnames[] = {
29553 (char *) "self", NULL
29554 };
29555
29556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
29557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29559 {
29560 PyThreadState* __tstate = wxPyBeginAllowThreads();
29561 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
29562
29563 wxPyEndAllowThreads(__tstate);
29564 if (PyErr_Occurred()) SWIG_fail;
29565 }
29566 {
29567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29568 }
29569 return resultobj;
29570 fail:
29571 return NULL;
29572 }
29573
29574
29575 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29576 PyObject *resultobj;
29577 wxPyControl *arg1 = (wxPyControl *) 0 ;
29578 wxSize result;
29579 PyObject * obj0 = 0 ;
29580 char *kwnames[] = {
29581 (char *) "self", NULL
29582 };
29583
29584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
29585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29587 {
29588 PyThreadState* __tstate = wxPyBeginAllowThreads();
29589 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
29590
29591 wxPyEndAllowThreads(__tstate);
29592 if (PyErr_Occurred()) SWIG_fail;
29593 }
29594 {
29595 wxSize * resultptr;
29596 resultptr = new wxSize((wxSize &) result);
29597 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29598 }
29599 return resultobj;
29600 fail:
29601 return NULL;
29602 }
29603
29604
29605 static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29606 PyObject *resultobj;
29607 wxPyControl *arg1 = (wxPyControl *) 0 ;
29608 wxWindow *arg2 = (wxWindow *) 0 ;
29609 PyObject * obj0 = 0 ;
29610 PyObject * obj1 = 0 ;
29611 char *kwnames[] = {
29612 (char *) "self",(char *) "child", NULL
29613 };
29614
29615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
29616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29618 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29620 {
29621 PyThreadState* __tstate = wxPyBeginAllowThreads();
29622 (arg1)->base_AddChild(arg2);
29623
29624 wxPyEndAllowThreads(__tstate);
29625 if (PyErr_Occurred()) SWIG_fail;
29626 }
29627 Py_INCREF(Py_None); resultobj = Py_None;
29628 return resultobj;
29629 fail:
29630 return NULL;
29631 }
29632
29633
29634 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29635 PyObject *resultobj;
29636 wxPyControl *arg1 = (wxPyControl *) 0 ;
29637 wxWindow *arg2 = (wxWindow *) 0 ;
29638 PyObject * obj0 = 0 ;
29639 PyObject * obj1 = 0 ;
29640 char *kwnames[] = {
29641 (char *) "self",(char *) "child", NULL
29642 };
29643
29644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
29645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29647 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29649 {
29650 PyThreadState* __tstate = wxPyBeginAllowThreads();
29651 (arg1)->base_RemoveChild(arg2);
29652
29653 wxPyEndAllowThreads(__tstate);
29654 if (PyErr_Occurred()) SWIG_fail;
29655 }
29656 Py_INCREF(Py_None); resultobj = Py_None;
29657 return resultobj;
29658 fail:
29659 return NULL;
29660 }
29661
29662
29663 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
29664 PyObject *resultobj;
29665 wxPyControl *arg1 = (wxPyControl *) 0 ;
29666 bool result;
29667 PyObject * obj0 = 0 ;
29668 char *kwnames[] = {
29669 (char *) "self", NULL
29670 };
29671
29672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
29673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29675 {
29676 PyThreadState* __tstate = wxPyBeginAllowThreads();
29677 result = (bool)(arg1)->base_ShouldInheritColours();
29678
29679 wxPyEndAllowThreads(__tstate);
29680 if (PyErr_Occurred()) SWIG_fail;
29681 }
29682 {
29683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29684 }
29685 return resultobj;
29686 fail:
29687 return NULL;
29688 }
29689
29690
29691 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
29692 PyObject *resultobj;
29693 wxPyControl *arg1 = (wxPyControl *) 0 ;
29694 wxColour *arg2 = 0 ;
29695 wxColour temp2 ;
29696 PyObject * obj0 = 0 ;
29697 PyObject * obj1 = 0 ;
29698 char *kwnames[] = {
29699 (char *) "self",(char *) "c", NULL
29700 };
29701
29702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
29703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29705 {
29706 arg2 = &temp2;
29707 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29708 }
29709 {
29710 PyThreadState* __tstate = wxPyBeginAllowThreads();
29711 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
29712
29713 wxPyEndAllowThreads(__tstate);
29714 if (PyErr_Occurred()) SWIG_fail;
29715 }
29716 Py_INCREF(Py_None); resultobj = Py_None;
29717 return resultobj;
29718 fail:
29719 return NULL;
29720 }
29721
29722
29723 static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
29724 PyObject *obj;
29725 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29726 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
29727 Py_INCREF(obj);
29728 return Py_BuildValue((char *)"");
29729 }
29730 static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
29731 PyObject *resultobj;
29732 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29733 int arg2 = (int) 0 ;
29734 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29735 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29736 wxHelpEvent *result;
29737 wxPoint temp3 ;
29738 PyObject * obj0 = 0 ;
29739 PyObject * obj1 = 0 ;
29740 PyObject * obj2 = 0 ;
29741 char *kwnames[] = {
29742 (char *) "type",(char *) "winid",(char *) "pt", NULL
29743 };
29744
29745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
29746 if (obj0) {
29747 arg1 = (wxEventType) SWIG_AsInt(obj0);
29748 if (PyErr_Occurred()) SWIG_fail;
29749 }
29750 if (obj1) {
29751 arg2 = (int) SWIG_AsInt(obj1);
29752 if (PyErr_Occurred()) SWIG_fail;
29753 }
29754 if (obj2) {
29755 {
29756 arg3 = &temp3;
29757 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29758 }
29759 }
29760 {
29761 PyThreadState* __tstate = wxPyBeginAllowThreads();
29762 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
29763
29764 wxPyEndAllowThreads(__tstate);
29765 if (PyErr_Occurred()) SWIG_fail;
29766 }
29767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
29768 return resultobj;
29769 fail:
29770 return NULL;
29771 }
29772
29773
29774 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29775 PyObject *resultobj;
29776 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29777 wxPoint result;
29778 PyObject * obj0 = 0 ;
29779 char *kwnames[] = {
29780 (char *) "self", NULL
29781 };
29782
29783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
29784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29786 {
29787 PyThreadState* __tstate = wxPyBeginAllowThreads();
29788 result = ((wxHelpEvent const *)arg1)->GetPosition();
29789
29790 wxPyEndAllowThreads(__tstate);
29791 if (PyErr_Occurred()) SWIG_fail;
29792 }
29793 {
29794 wxPoint * resultptr;
29795 resultptr = new wxPoint((wxPoint &) result);
29796 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
29797 }
29798 return resultobj;
29799 fail:
29800 return NULL;
29801 }
29802
29803
29804 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29805 PyObject *resultobj;
29806 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29807 wxPoint *arg2 = 0 ;
29808 wxPoint temp2 ;
29809 PyObject * obj0 = 0 ;
29810 PyObject * obj1 = 0 ;
29811 char *kwnames[] = {
29812 (char *) "self",(char *) "pos", NULL
29813 };
29814
29815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
29816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29818 {
29819 arg2 = &temp2;
29820 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29821 }
29822 {
29823 PyThreadState* __tstate = wxPyBeginAllowThreads();
29824 (arg1)->SetPosition((wxPoint const &)*arg2);
29825
29826 wxPyEndAllowThreads(__tstate);
29827 if (PyErr_Occurred()) SWIG_fail;
29828 }
29829 Py_INCREF(Py_None); resultobj = Py_None;
29830 return resultobj;
29831 fail:
29832 return NULL;
29833 }
29834
29835
29836 static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29837 PyObject *resultobj;
29838 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29839 wxString *result;
29840 PyObject * obj0 = 0 ;
29841 char *kwnames[] = {
29842 (char *) "self", NULL
29843 };
29844
29845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
29846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29848 {
29849 PyThreadState* __tstate = wxPyBeginAllowThreads();
29850 {
29851 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
29852 result = (wxString *) &_result_ref;
29853 }
29854
29855 wxPyEndAllowThreads(__tstate);
29856 if (PyErr_Occurred()) SWIG_fail;
29857 }
29858 {
29859 #if wxUSE_UNICODE
29860 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29861 #else
29862 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29863 #endif
29864 }
29865 return resultobj;
29866 fail:
29867 return NULL;
29868 }
29869
29870
29871 static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29872 PyObject *resultobj;
29873 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29874 wxString *arg2 = 0 ;
29875 bool temp2 = False ;
29876 PyObject * obj0 = 0 ;
29877 PyObject * obj1 = 0 ;
29878 char *kwnames[] = {
29879 (char *) "self",(char *) "link", NULL
29880 };
29881
29882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
29883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29885 {
29886 arg2 = wxString_in_helper(obj1);
29887 if (arg2 == NULL) SWIG_fail;
29888 temp2 = True;
29889 }
29890 {
29891 PyThreadState* __tstate = wxPyBeginAllowThreads();
29892 (arg1)->SetLink((wxString const &)*arg2);
29893
29894 wxPyEndAllowThreads(__tstate);
29895 if (PyErr_Occurred()) SWIG_fail;
29896 }
29897 Py_INCREF(Py_None); resultobj = Py_None;
29898 {
29899 if (temp2)
29900 delete arg2;
29901 }
29902 return resultobj;
29903 fail:
29904 {
29905 if (temp2)
29906 delete arg2;
29907 }
29908 return NULL;
29909 }
29910
29911
29912 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29913 PyObject *resultobj;
29914 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29915 wxString *result;
29916 PyObject * obj0 = 0 ;
29917 char *kwnames[] = {
29918 (char *) "self", NULL
29919 };
29920
29921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
29922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29924 {
29925 PyThreadState* __tstate = wxPyBeginAllowThreads();
29926 {
29927 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
29928 result = (wxString *) &_result_ref;
29929 }
29930
29931 wxPyEndAllowThreads(__tstate);
29932 if (PyErr_Occurred()) SWIG_fail;
29933 }
29934 {
29935 #if wxUSE_UNICODE
29936 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29937 #else
29938 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29939 #endif
29940 }
29941 return resultobj;
29942 fail:
29943 return NULL;
29944 }
29945
29946
29947 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29948 PyObject *resultobj;
29949 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29950 wxString *arg2 = 0 ;
29951 bool temp2 = False ;
29952 PyObject * obj0 = 0 ;
29953 PyObject * obj1 = 0 ;
29954 char *kwnames[] = {
29955 (char *) "self",(char *) "target", NULL
29956 };
29957
29958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
29959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29961 {
29962 arg2 = wxString_in_helper(obj1);
29963 if (arg2 == NULL) SWIG_fail;
29964 temp2 = True;
29965 }
29966 {
29967 PyThreadState* __tstate = wxPyBeginAllowThreads();
29968 (arg1)->SetTarget((wxString const &)*arg2);
29969
29970 wxPyEndAllowThreads(__tstate);
29971 if (PyErr_Occurred()) SWIG_fail;
29972 }
29973 Py_INCREF(Py_None); resultobj = Py_None;
29974 {
29975 if (temp2)
29976 delete arg2;
29977 }
29978 return resultobj;
29979 fail:
29980 {
29981 if (temp2)
29982 delete arg2;
29983 }
29984 return NULL;
29985 }
29986
29987
29988 static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
29989 PyObject *obj;
29990 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29991 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
29992 Py_INCREF(obj);
29993 return Py_BuildValue((char *)"");
29994 }
29995 static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29996 PyObject *resultobj;
29997 wxWindow *arg1 = (wxWindow *) NULL ;
29998 bool arg2 = (bool) True ;
29999 wxContextHelp *result;
30000 PyObject * obj0 = 0 ;
30001 PyObject * obj1 = 0 ;
30002 char *kwnames[] = {
30003 (char *) "window",(char *) "doNow", NULL
30004 };
30005
30006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30007 if (obj0) {
30008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30010 }
30011 if (obj1) {
30012 arg2 = (bool) SWIG_AsBool(obj1);
30013 if (PyErr_Occurred()) SWIG_fail;
30014 }
30015 {
30016 PyThreadState* __tstate = wxPyBeginAllowThreads();
30017 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30018
30019 wxPyEndAllowThreads(__tstate);
30020 if (PyErr_Occurred()) SWIG_fail;
30021 }
30022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30023 return resultobj;
30024 fail:
30025 return NULL;
30026 }
30027
30028
30029 static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30030 PyObject *resultobj;
30031 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30032 PyObject * obj0 = 0 ;
30033 char *kwnames[] = {
30034 (char *) "self", NULL
30035 };
30036
30037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30040 {
30041 PyThreadState* __tstate = wxPyBeginAllowThreads();
30042 delete arg1;
30043
30044 wxPyEndAllowThreads(__tstate);
30045 if (PyErr_Occurred()) SWIG_fail;
30046 }
30047 Py_INCREF(Py_None); resultobj = Py_None;
30048 return resultobj;
30049 fail:
30050 return NULL;
30051 }
30052
30053
30054 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30055 PyObject *resultobj;
30056 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30057 wxWindow *arg2 = (wxWindow *) NULL ;
30058 bool result;
30059 PyObject * obj0 = 0 ;
30060 PyObject * obj1 = 0 ;
30061 char *kwnames[] = {
30062 (char *) "self",(char *) "window", NULL
30063 };
30064
30065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30068 if (obj1) {
30069 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30071 }
30072 {
30073 PyThreadState* __tstate = wxPyBeginAllowThreads();
30074 result = (bool)(arg1)->BeginContextHelp(arg2);
30075
30076 wxPyEndAllowThreads(__tstate);
30077 if (PyErr_Occurred()) SWIG_fail;
30078 }
30079 {
30080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30081 }
30082 return resultobj;
30083 fail:
30084 return NULL;
30085 }
30086
30087
30088 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30089 PyObject *resultobj;
30090 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30091 bool result;
30092 PyObject * obj0 = 0 ;
30093 char *kwnames[] = {
30094 (char *) "self", NULL
30095 };
30096
30097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30100 {
30101 PyThreadState* __tstate = wxPyBeginAllowThreads();
30102 result = (bool)(arg1)->EndContextHelp();
30103
30104 wxPyEndAllowThreads(__tstate);
30105 if (PyErr_Occurred()) SWIG_fail;
30106 }
30107 {
30108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30109 }
30110 return resultobj;
30111 fail:
30112 return NULL;
30113 }
30114
30115
30116 static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
30117 PyObject *obj;
30118 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30119 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30120 Py_INCREF(obj);
30121 return Py_BuildValue((char *)"");
30122 }
30123 static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
30124 PyObject *resultobj;
30125 wxWindow *arg1 = (wxWindow *) 0 ;
30126 int arg2 = (int) wxID_CONTEXT_HELP ;
30127 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30128 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30129 wxSize const &arg4_defvalue = wxDefaultSize ;
30130 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30131 long arg5 = (long) wxBU_AUTODRAW ;
30132 wxContextHelpButton *result;
30133 wxPoint temp3 ;
30134 wxSize temp4 ;
30135 PyObject * obj0 = 0 ;
30136 PyObject * obj1 = 0 ;
30137 PyObject * obj2 = 0 ;
30138 PyObject * obj3 = 0 ;
30139 PyObject * obj4 = 0 ;
30140 char *kwnames[] = {
30141 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30142 };
30143
30144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30147 if (obj1) {
30148 arg2 = (int) SWIG_AsInt(obj1);
30149 if (PyErr_Occurred()) SWIG_fail;
30150 }
30151 if (obj2) {
30152 {
30153 arg3 = &temp3;
30154 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30155 }
30156 }
30157 if (obj3) {
30158 {
30159 arg4 = &temp4;
30160 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30161 }
30162 }
30163 if (obj4) {
30164 arg5 = (long) SWIG_AsLong(obj4);
30165 if (PyErr_Occurred()) SWIG_fail;
30166 }
30167 {
30168 PyThreadState* __tstate = wxPyBeginAllowThreads();
30169 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30170
30171 wxPyEndAllowThreads(__tstate);
30172 if (PyErr_Occurred()) SWIG_fail;
30173 }
30174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30175 return resultobj;
30176 fail:
30177 return NULL;
30178 }
30179
30180
30181 static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
30182 PyObject *obj;
30183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30184 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30185 Py_INCREF(obj);
30186 return Py_BuildValue((char *)"");
30187 }
30188 static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
30189 PyObject *resultobj;
30190 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30191 wxHelpProvider *result;
30192 PyObject * obj0 = 0 ;
30193 char *kwnames[] = {
30194 (char *) "helpProvider", NULL
30195 };
30196
30197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30200 {
30201 PyThreadState* __tstate = wxPyBeginAllowThreads();
30202 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30203
30204 wxPyEndAllowThreads(__tstate);
30205 if (PyErr_Occurred()) SWIG_fail;
30206 }
30207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30208 return resultobj;
30209 fail:
30210 return NULL;
30211 }
30212
30213
30214 static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
30215 PyObject *resultobj;
30216 wxHelpProvider *result;
30217 char *kwnames[] = {
30218 NULL
30219 };
30220
30221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30222 {
30223 PyThreadState* __tstate = wxPyBeginAllowThreads();
30224 result = (wxHelpProvider *)wxHelpProvider::Get();
30225
30226 wxPyEndAllowThreads(__tstate);
30227 if (PyErr_Occurred()) SWIG_fail;
30228 }
30229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30230 return resultobj;
30231 fail:
30232 return NULL;
30233 }
30234
30235
30236 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30237 PyObject *resultobj;
30238 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30239 wxWindow *arg2 = (wxWindow *) 0 ;
30240 wxString result;
30241 PyObject * obj0 = 0 ;
30242 PyObject * obj1 = 0 ;
30243 char *kwnames[] = {
30244 (char *) "self",(char *) "window", NULL
30245 };
30246
30247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30250 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30252 {
30253 PyThreadState* __tstate = wxPyBeginAllowThreads();
30254 result = (arg1)->GetHelp((wxWindow const *)arg2);
30255
30256 wxPyEndAllowThreads(__tstate);
30257 if (PyErr_Occurred()) SWIG_fail;
30258 }
30259 {
30260 #if wxUSE_UNICODE
30261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30262 #else
30263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30264 #endif
30265 }
30266 return resultobj;
30267 fail:
30268 return NULL;
30269 }
30270
30271
30272 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30273 PyObject *resultobj;
30274 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30275 wxWindow *arg2 = (wxWindow *) 0 ;
30276 bool result;
30277 PyObject * obj0 = 0 ;
30278 PyObject * obj1 = 0 ;
30279 char *kwnames[] = {
30280 (char *) "self",(char *) "window", NULL
30281 };
30282
30283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30288 {
30289 PyThreadState* __tstate = wxPyBeginAllowThreads();
30290 result = (bool)(arg1)->ShowHelp(arg2);
30291
30292 wxPyEndAllowThreads(__tstate);
30293 if (PyErr_Occurred()) SWIG_fail;
30294 }
30295 {
30296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30297 }
30298 return resultobj;
30299 fail:
30300 return NULL;
30301 }
30302
30303
30304 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30305 PyObject *resultobj;
30306 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30307 wxWindow *arg2 = (wxWindow *) 0 ;
30308 wxString *arg3 = 0 ;
30309 bool temp3 = False ;
30310 PyObject * obj0 = 0 ;
30311 PyObject * obj1 = 0 ;
30312 PyObject * obj2 = 0 ;
30313 char *kwnames[] = {
30314 (char *) "self",(char *) "window",(char *) "text", NULL
30315 };
30316
30317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30320 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30322 {
30323 arg3 = wxString_in_helper(obj2);
30324 if (arg3 == NULL) SWIG_fail;
30325 temp3 = True;
30326 }
30327 {
30328 PyThreadState* __tstate = wxPyBeginAllowThreads();
30329 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30330
30331 wxPyEndAllowThreads(__tstate);
30332 if (PyErr_Occurred()) SWIG_fail;
30333 }
30334 Py_INCREF(Py_None); resultobj = Py_None;
30335 {
30336 if (temp3)
30337 delete arg3;
30338 }
30339 return resultobj;
30340 fail:
30341 {
30342 if (temp3)
30343 delete arg3;
30344 }
30345 return NULL;
30346 }
30347
30348
30349 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
30350 PyObject *resultobj;
30351 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30352 int arg2 ;
30353 wxString *arg3 = 0 ;
30354 bool temp3 = False ;
30355 PyObject * obj0 = 0 ;
30356 PyObject * obj1 = 0 ;
30357 PyObject * obj2 = 0 ;
30358 char *kwnames[] = {
30359 (char *) "self",(char *) "id",(char *) "text", NULL
30360 };
30361
30362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30365 arg2 = (int) SWIG_AsInt(obj1);
30366 if (PyErr_Occurred()) SWIG_fail;
30367 {
30368 arg3 = wxString_in_helper(obj2);
30369 if (arg3 == NULL) SWIG_fail;
30370 temp3 = True;
30371 }
30372 {
30373 PyThreadState* __tstate = wxPyBeginAllowThreads();
30374 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30375
30376 wxPyEndAllowThreads(__tstate);
30377 if (PyErr_Occurred()) SWIG_fail;
30378 }
30379 Py_INCREF(Py_None); resultobj = Py_None;
30380 {
30381 if (temp3)
30382 delete arg3;
30383 }
30384 return resultobj;
30385 fail:
30386 {
30387 if (temp3)
30388 delete arg3;
30389 }
30390 return NULL;
30391 }
30392
30393
30394 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30395 PyObject *resultobj;
30396 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30397 wxWindow *arg2 = (wxWindow *) 0 ;
30398 PyObject * obj0 = 0 ;
30399 PyObject * obj1 = 0 ;
30400 char *kwnames[] = {
30401 (char *) "self",(char *) "window", NULL
30402 };
30403
30404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30409 {
30410 PyThreadState* __tstate = wxPyBeginAllowThreads();
30411 (arg1)->RemoveHelp(arg2);
30412
30413 wxPyEndAllowThreads(__tstate);
30414 if (PyErr_Occurred()) SWIG_fail;
30415 }
30416 Py_INCREF(Py_None); resultobj = Py_None;
30417 return resultobj;
30418 fail:
30419 return NULL;
30420 }
30421
30422
30423 static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
30424 PyObject *resultobj;
30425 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30426 PyObject * obj0 = 0 ;
30427 char *kwnames[] = {
30428 (char *) "self", NULL
30429 };
30430
30431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30434 {
30435 PyThreadState* __tstate = wxPyBeginAllowThreads();
30436 wxHelpProvider_Destroy(arg1);
30437
30438 wxPyEndAllowThreads(__tstate);
30439 if (PyErr_Occurred()) SWIG_fail;
30440 }
30441 Py_INCREF(Py_None); resultobj = Py_None;
30442 return resultobj;
30443 fail:
30444 return NULL;
30445 }
30446
30447
30448 static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
30449 PyObject *obj;
30450 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30451 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30452 Py_INCREF(obj);
30453 return Py_BuildValue((char *)"");
30454 }
30455 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
30456 PyObject *resultobj;
30457 wxSimpleHelpProvider *result;
30458 char *kwnames[] = {
30459 NULL
30460 };
30461
30462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30463 {
30464 PyThreadState* __tstate = wxPyBeginAllowThreads();
30465 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30466
30467 wxPyEndAllowThreads(__tstate);
30468 if (PyErr_Occurred()) SWIG_fail;
30469 }
30470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30471 return resultobj;
30472 fail:
30473 return NULL;
30474 }
30475
30476
30477 static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
30478 PyObject *obj;
30479 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30480 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30481 Py_INCREF(obj);
30482 return Py_BuildValue((char *)"");
30483 }
30484 static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30485 PyObject *resultobj;
30486 wxBitmap *arg1 = 0 ;
30487 wxCursor const &arg2_defvalue = wxNullCursor ;
30488 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30489 wxGenericDragImage *result;
30490 PyObject * obj0 = 0 ;
30491 PyObject * obj1 = 0 ;
30492 char *kwnames[] = {
30493 (char *) "image",(char *) "cursor", NULL
30494 };
30495
30496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30498 SWIG_POINTER_EXCEPTION | 0)) == -1)
30499 SWIG_fail;
30500 if (arg1 == NULL) {
30501 PyErr_SetString(PyExc_TypeError,"null reference");
30502 SWIG_fail;
30503 }
30504 if (obj1) {
30505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30506 SWIG_POINTER_EXCEPTION | 0)) == -1)
30507 SWIG_fail;
30508 if (arg2 == NULL) {
30509 PyErr_SetString(PyExc_TypeError,"null reference");
30510 SWIG_fail;
30511 }
30512 }
30513 {
30514 PyThreadState* __tstate = wxPyBeginAllowThreads();
30515 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30516
30517 wxPyEndAllowThreads(__tstate);
30518 if (PyErr_Occurred()) SWIG_fail;
30519 }
30520 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30521 return resultobj;
30522 fail:
30523 return NULL;
30524 }
30525
30526
30527 static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
30528 PyObject *resultobj;
30529 wxIcon *arg1 = 0 ;
30530 wxCursor const &arg2_defvalue = wxNullCursor ;
30531 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30532 wxGenericDragImage *result;
30533 PyObject * obj0 = 0 ;
30534 PyObject * obj1 = 0 ;
30535 char *kwnames[] = {
30536 (char *) "image",(char *) "cursor", NULL
30537 };
30538
30539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
30540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
30541 SWIG_POINTER_EXCEPTION | 0)) == -1)
30542 SWIG_fail;
30543 if (arg1 == NULL) {
30544 PyErr_SetString(PyExc_TypeError,"null reference");
30545 SWIG_fail;
30546 }
30547 if (obj1) {
30548 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30549 SWIG_POINTER_EXCEPTION | 0)) == -1)
30550 SWIG_fail;
30551 if (arg2 == NULL) {
30552 PyErr_SetString(PyExc_TypeError,"null reference");
30553 SWIG_fail;
30554 }
30555 }
30556 {
30557 PyThreadState* __tstate = wxPyBeginAllowThreads();
30558 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
30559
30560 wxPyEndAllowThreads(__tstate);
30561 if (PyErr_Occurred()) SWIG_fail;
30562 }
30563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30564 return resultobj;
30565 fail:
30566 return NULL;
30567 }
30568
30569
30570 static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
30571 PyObject *resultobj;
30572 wxString *arg1 = 0 ;
30573 wxCursor const &arg2_defvalue = wxNullCursor ;
30574 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30575 wxGenericDragImage *result;
30576 bool temp1 = False ;
30577 PyObject * obj0 = 0 ;
30578 PyObject * obj1 = 0 ;
30579 char *kwnames[] = {
30580 (char *) "str",(char *) "cursor", NULL
30581 };
30582
30583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
30584 {
30585 arg1 = wxString_in_helper(obj0);
30586 if (arg1 == NULL) SWIG_fail;
30587 temp1 = True;
30588 }
30589 if (obj1) {
30590 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30591 SWIG_POINTER_EXCEPTION | 0)) == -1)
30592 SWIG_fail;
30593 if (arg2 == NULL) {
30594 PyErr_SetString(PyExc_TypeError,"null reference");
30595 SWIG_fail;
30596 }
30597 }
30598 {
30599 PyThreadState* __tstate = wxPyBeginAllowThreads();
30600 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
30601
30602 wxPyEndAllowThreads(__tstate);
30603 if (PyErr_Occurred()) SWIG_fail;
30604 }
30605 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30606 {
30607 if (temp1)
30608 delete arg1;
30609 }
30610 return resultobj;
30611 fail:
30612 {
30613 if (temp1)
30614 delete arg1;
30615 }
30616 return NULL;
30617 }
30618
30619
30620 static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30621 PyObject *resultobj;
30622 wxPyTreeCtrl *arg1 = 0 ;
30623 wxTreeItemId *arg2 = 0 ;
30624 wxGenericDragImage *result;
30625 PyObject * obj0 = 0 ;
30626 PyObject * obj1 = 0 ;
30627 char *kwnames[] = {
30628 (char *) "treeCtrl",(char *) "id", NULL
30629 };
30630
30631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
30632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
30633 SWIG_POINTER_EXCEPTION | 0)) == -1)
30634 SWIG_fail;
30635 if (arg1 == NULL) {
30636 PyErr_SetString(PyExc_TypeError,"null reference");
30637 SWIG_fail;
30638 }
30639 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
30640 SWIG_POINTER_EXCEPTION | 0)) == -1)
30641 SWIG_fail;
30642 if (arg2 == NULL) {
30643 PyErr_SetString(PyExc_TypeError,"null reference");
30644 SWIG_fail;
30645 }
30646 {
30647 PyThreadState* __tstate = wxPyBeginAllowThreads();
30648 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
30649
30650 wxPyEndAllowThreads(__tstate);
30651 if (PyErr_Occurred()) SWIG_fail;
30652 }
30653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30654 return resultobj;
30655 fail:
30656 return NULL;
30657 }
30658
30659
30660 static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30661 PyObject *resultobj;
30662 wxPyListCtrl *arg1 = 0 ;
30663 long arg2 ;
30664 wxGenericDragImage *result;
30665 PyObject * obj0 = 0 ;
30666 PyObject * obj1 = 0 ;
30667 char *kwnames[] = {
30668 (char *) "listCtrl",(char *) "id", NULL
30669 };
30670
30671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
30672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
30673 SWIG_POINTER_EXCEPTION | 0)) == -1)
30674 SWIG_fail;
30675 if (arg1 == NULL) {
30676 PyErr_SetString(PyExc_TypeError,"null reference");
30677 SWIG_fail;
30678 }
30679 arg2 = (long) SWIG_AsLong(obj1);
30680 if (PyErr_Occurred()) SWIG_fail;
30681 {
30682 PyThreadState* __tstate = wxPyBeginAllowThreads();
30683 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
30684
30685 wxPyEndAllowThreads(__tstate);
30686 if (PyErr_Occurred()) SWIG_fail;
30687 }
30688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30689 return resultobj;
30690 fail:
30691 return NULL;
30692 }
30693
30694
30695 static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30696 PyObject *resultobj;
30697 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30698 PyObject * obj0 = 0 ;
30699 char *kwnames[] = {
30700 (char *) "self", NULL
30701 };
30702
30703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
30704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30706 {
30707 PyThreadState* __tstate = wxPyBeginAllowThreads();
30708 delete arg1;
30709
30710 wxPyEndAllowThreads(__tstate);
30711 if (PyErr_Occurred()) SWIG_fail;
30712 }
30713 Py_INCREF(Py_None); resultobj = Py_None;
30714 return resultobj;
30715 fail:
30716 return NULL;
30717 }
30718
30719
30720 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
30721 PyObject *resultobj;
30722 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30723 wxBitmap *arg2 = (wxBitmap *) 0 ;
30724 PyObject * obj0 = 0 ;
30725 PyObject * obj1 = 0 ;
30726 char *kwnames[] = {
30727 (char *) "self",(char *) "bitmap", NULL
30728 };
30729
30730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
30731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30733 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
30734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30735 {
30736 PyThreadState* __tstate = wxPyBeginAllowThreads();
30737 (arg1)->SetBackingBitmap(arg2);
30738
30739 wxPyEndAllowThreads(__tstate);
30740 if (PyErr_Occurred()) SWIG_fail;
30741 }
30742 Py_INCREF(Py_None); resultobj = Py_None;
30743 return resultobj;
30744 fail:
30745 return NULL;
30746 }
30747
30748
30749 static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30750 PyObject *resultobj;
30751 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30752 wxPoint *arg2 = 0 ;
30753 wxWindow *arg3 = (wxWindow *) 0 ;
30754 bool arg4 = (bool) False ;
30755 wxRect *arg5 = (wxRect *) NULL ;
30756 bool result;
30757 wxPoint temp2 ;
30758 PyObject * obj0 = 0 ;
30759 PyObject * obj1 = 0 ;
30760 PyObject * obj2 = 0 ;
30761 PyObject * obj3 = 0 ;
30762 PyObject * obj4 = 0 ;
30763 char *kwnames[] = {
30764 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
30765 };
30766
30767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30770 {
30771 arg2 = &temp2;
30772 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30773 }
30774 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30776 if (obj3) {
30777 arg4 = (bool) SWIG_AsBool(obj3);
30778 if (PyErr_Occurred()) SWIG_fail;
30779 }
30780 if (obj4) {
30781 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
30782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30783 }
30784 {
30785 PyThreadState* __tstate = wxPyBeginAllowThreads();
30786 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
30787
30788 wxPyEndAllowThreads(__tstate);
30789 if (PyErr_Occurred()) SWIG_fail;
30790 }
30791 {
30792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30793 }
30794 return resultobj;
30795 fail:
30796 return NULL;
30797 }
30798
30799
30800 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
30801 PyObject *resultobj;
30802 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30803 wxPoint *arg2 = 0 ;
30804 wxWindow *arg3 = (wxWindow *) 0 ;
30805 wxWindow *arg4 = (wxWindow *) 0 ;
30806 bool result;
30807 wxPoint temp2 ;
30808 PyObject * obj0 = 0 ;
30809 PyObject * obj1 = 0 ;
30810 PyObject * obj2 = 0 ;
30811 PyObject * obj3 = 0 ;
30812 char *kwnames[] = {
30813 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
30814 };
30815
30816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30819 {
30820 arg2 = &temp2;
30821 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30822 }
30823 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30825 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
30826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30827 {
30828 PyThreadState* __tstate = wxPyBeginAllowThreads();
30829 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
30830
30831 wxPyEndAllowThreads(__tstate);
30832 if (PyErr_Occurred()) SWIG_fail;
30833 }
30834 {
30835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30836 }
30837 return resultobj;
30838 fail:
30839 return NULL;
30840 }
30841
30842
30843 static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30844 PyObject *resultobj;
30845 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30846 bool result;
30847 PyObject * obj0 = 0 ;
30848 char *kwnames[] = {
30849 (char *) "self", NULL
30850 };
30851
30852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
30853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30855 {
30856 PyThreadState* __tstate = wxPyBeginAllowThreads();
30857 result = (bool)(arg1)->EndDrag();
30858
30859 wxPyEndAllowThreads(__tstate);
30860 if (PyErr_Occurred()) SWIG_fail;
30861 }
30862 {
30863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30864 }
30865 return resultobj;
30866 fail:
30867 return NULL;
30868 }
30869
30870
30871 static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
30872 PyObject *resultobj;
30873 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30874 wxPoint *arg2 = 0 ;
30875 bool result;
30876 wxPoint temp2 ;
30877 PyObject * obj0 = 0 ;
30878 PyObject * obj1 = 0 ;
30879 char *kwnames[] = {
30880 (char *) "self",(char *) "pt", NULL
30881 };
30882
30883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
30884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30886 {
30887 arg2 = &temp2;
30888 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30889 }
30890 {
30891 PyThreadState* __tstate = wxPyBeginAllowThreads();
30892 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
30893
30894 wxPyEndAllowThreads(__tstate);
30895 if (PyErr_Occurred()) SWIG_fail;
30896 }
30897 {
30898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30899 }
30900 return resultobj;
30901 fail:
30902 return NULL;
30903 }
30904
30905
30906 static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
30907 PyObject *resultobj;
30908 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30909 bool result;
30910 PyObject * obj0 = 0 ;
30911 char *kwnames[] = {
30912 (char *) "self", NULL
30913 };
30914
30915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
30916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30918 {
30919 PyThreadState* __tstate = wxPyBeginAllowThreads();
30920 result = (bool)(arg1)->Show();
30921
30922 wxPyEndAllowThreads(__tstate);
30923 if (PyErr_Occurred()) SWIG_fail;
30924 }
30925 {
30926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30927 }
30928 return resultobj;
30929 fail:
30930 return NULL;
30931 }
30932
30933
30934 static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
30935 PyObject *resultobj;
30936 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30937 bool result;
30938 PyObject * obj0 = 0 ;
30939 char *kwnames[] = {
30940 (char *) "self", NULL
30941 };
30942
30943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
30944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30946 {
30947 PyThreadState* __tstate = wxPyBeginAllowThreads();
30948 result = (bool)(arg1)->Hide();
30949
30950 wxPyEndAllowThreads(__tstate);
30951 if (PyErr_Occurred()) SWIG_fail;
30952 }
30953 {
30954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30955 }
30956 return resultobj;
30957 fail:
30958 return NULL;
30959 }
30960
30961
30962 static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
30963 PyObject *resultobj;
30964 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30965 wxPoint *arg2 = 0 ;
30966 wxRect result;
30967 wxPoint temp2 ;
30968 PyObject * obj0 = 0 ;
30969 PyObject * obj1 = 0 ;
30970 char *kwnames[] = {
30971 (char *) "self",(char *) "pos", NULL
30972 };
30973
30974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
30975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30977 {
30978 arg2 = &temp2;
30979 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30980 }
30981 {
30982 PyThreadState* __tstate = wxPyBeginAllowThreads();
30983 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
30984
30985 wxPyEndAllowThreads(__tstate);
30986 if (PyErr_Occurred()) SWIG_fail;
30987 }
30988 {
30989 wxRect * resultptr;
30990 resultptr = new wxRect((wxRect &) result);
30991 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
30992 }
30993 return resultobj;
30994 fail:
30995 return NULL;
30996 }
30997
30998
30999 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
31000 PyObject *resultobj;
31001 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31002 wxDC *arg2 = 0 ;
31003 wxPoint *arg3 = 0 ;
31004 bool result;
31005 wxPoint temp3 ;
31006 PyObject * obj0 = 0 ;
31007 PyObject * obj1 = 0 ;
31008 PyObject * obj2 = 0 ;
31009 char *kwnames[] = {
31010 (char *) "self",(char *) "dc",(char *) "pos", NULL
31011 };
31012
31013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31016 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31017 SWIG_POINTER_EXCEPTION | 0)) == -1)
31018 SWIG_fail;
31019 if (arg2 == NULL) {
31020 PyErr_SetString(PyExc_TypeError,"null reference");
31021 SWIG_fail;
31022 }
31023 {
31024 arg3 = &temp3;
31025 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31026 }
31027 {
31028 PyThreadState* __tstate = wxPyBeginAllowThreads();
31029 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31030
31031 wxPyEndAllowThreads(__tstate);
31032 if (PyErr_Occurred()) SWIG_fail;
31033 }
31034 {
31035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31036 }
31037 return resultobj;
31038 fail:
31039 return NULL;
31040 }
31041
31042
31043 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
31044 PyObject *resultobj;
31045 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31046 wxDC *arg2 = 0 ;
31047 wxMemoryDC *arg3 = 0 ;
31048 wxRect *arg4 = 0 ;
31049 wxRect *arg5 = 0 ;
31050 bool result;
31051 wxRect temp4 ;
31052 wxRect temp5 ;
31053 PyObject * obj0 = 0 ;
31054 PyObject * obj1 = 0 ;
31055 PyObject * obj2 = 0 ;
31056 PyObject * obj3 = 0 ;
31057 PyObject * obj4 = 0 ;
31058 char *kwnames[] = {
31059 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31060 };
31061
31062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31065 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31066 SWIG_POINTER_EXCEPTION | 0)) == -1)
31067 SWIG_fail;
31068 if (arg2 == NULL) {
31069 PyErr_SetString(PyExc_TypeError,"null reference");
31070 SWIG_fail;
31071 }
31072 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31073 SWIG_POINTER_EXCEPTION | 0)) == -1)
31074 SWIG_fail;
31075 if (arg3 == NULL) {
31076 PyErr_SetString(PyExc_TypeError,"null reference");
31077 SWIG_fail;
31078 }
31079 {
31080 arg4 = &temp4;
31081 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31082 }
31083 {
31084 arg5 = &temp5;
31085 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31086 }
31087 {
31088 PyThreadState* __tstate = wxPyBeginAllowThreads();
31089 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31090
31091 wxPyEndAllowThreads(__tstate);
31092 if (PyErr_Occurred()) SWIG_fail;
31093 }
31094 {
31095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31096 }
31097 return resultobj;
31098 fail:
31099 return NULL;
31100 }
31101
31102
31103 static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
31104 PyObject *resultobj;
31105 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31106 wxPoint *arg2 = 0 ;
31107 wxPoint *arg3 = 0 ;
31108 bool arg4 ;
31109 bool arg5 ;
31110 bool result;
31111 wxPoint temp2 ;
31112 wxPoint temp3 ;
31113 PyObject * obj0 = 0 ;
31114 PyObject * obj1 = 0 ;
31115 PyObject * obj2 = 0 ;
31116 PyObject * obj3 = 0 ;
31117 PyObject * obj4 = 0 ;
31118 char *kwnames[] = {
31119 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31120 };
31121
31122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31125 {
31126 arg2 = &temp2;
31127 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31128 }
31129 {
31130 arg3 = &temp3;
31131 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31132 }
31133 arg4 = (bool) SWIG_AsBool(obj3);
31134 if (PyErr_Occurred()) SWIG_fail;
31135 arg5 = (bool) SWIG_AsBool(obj4);
31136 if (PyErr_Occurred()) SWIG_fail;
31137 {
31138 PyThreadState* __tstate = wxPyBeginAllowThreads();
31139 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31140
31141 wxPyEndAllowThreads(__tstate);
31142 if (PyErr_Occurred()) SWIG_fail;
31143 }
31144 {
31145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31146 }
31147 return resultobj;
31148 fail:
31149 return NULL;
31150 }
31151
31152
31153 static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
31154 PyObject *obj;
31155 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31156 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31157 Py_INCREF(obj);
31158 return Py_BuildValue((char *)"");
31159 }
31160 static PyMethodDef SwigMethods[] = {
31161 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
31162 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
31163 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
31164 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
31165 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
31166 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31167 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
31168 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
31169 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
31170 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
31171 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
31172 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
31173 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
31174 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
31175 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
31176 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
31177 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
31178 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
31179 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
31180 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
31181 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
31182 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
31183 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
31184 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
31185 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
31186 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31187 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31188 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31189 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
31190 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
31191 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
31192 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
31193 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31194 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
31195 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
31196 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
31197 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
31198 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
31199 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31200 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
31201 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31202 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
31203 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
31204 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
31205 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
31206 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31207 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31208 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
31209 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
31210 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
31211 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31212 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31213 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31214 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
31215 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31216 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
31217 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31218 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS },
31219 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
31220 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31221 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
31222 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31223 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
31224 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
31225 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
31226 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
31227 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
31228 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
31229 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
31230 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
31231 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
31232 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31233 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31234 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
31235 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
31236 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31237 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
31238 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
31239 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
31240 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
31241 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31242 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
31243 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
31244 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
31245 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
31246 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
31247 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
31248 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31249 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
31250 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
31251 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
31252 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
31253 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31254 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
31255 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
31256 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
31257 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
31258 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31259 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
31260 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
31261 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31262 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
31263 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
31264 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
31265 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
31266 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
31267 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
31268 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
31269 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
31270 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31271 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
31272 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
31273 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
31274 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31275 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
31276 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
31277 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
31278 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31279 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
31280 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
31281 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
31282 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31283 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31284 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31285 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
31286 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
31287 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
31288 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
31289 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31290 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
31291 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
31292 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
31293 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
31294 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
31295 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
31296 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
31297 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
31298 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31299 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31300 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31301 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
31302 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
31303 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31304 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
31305 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
31306 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31307 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31308 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31309 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
31310 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
31311 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
31312 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
31313 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
31314 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31315 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31316 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31317 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
31318 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
31319 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31320 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
31321 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
31322 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
31323 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
31324 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
31325 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
31326 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
31327 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31328 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31329 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31330 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
31331 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
31332 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
31333 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
31334 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
31335 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
31336 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
31337 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
31338 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31339 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31340 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
31341 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
31342 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
31343 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
31344 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
31345 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
31346 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
31347 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
31348 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
31349 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
31350 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
31351 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
31352 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
31353 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31354 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31355 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
31356 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
31357 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
31358 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31359 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
31360 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
31361 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
31362 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
31363 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
31364 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
31365 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
31366 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
31367 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
31368 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
31369 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31370 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31371 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31372 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31373 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31374 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
31375 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
31376 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS },
31377 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS },
31378 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
31379 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
31380 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31381 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
31382 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
31383 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
31384 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
31385 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
31386 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
31387 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
31388 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
31389 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
31390 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31391 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
31392 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31393 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
31394 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
31395 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31396 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
31397 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31398 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
31399 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
31400 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
31401 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
31402 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31403 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
31404 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
31405 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31406 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
31407 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
31408 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
31409 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
31410 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31411 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
31412 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
31413 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
31414 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31415 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31416 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31417 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
31418 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
31419 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
31420 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
31421 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31422 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31423 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
31424 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
31425 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31426 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31427 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
31428 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
31429 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
31430 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
31431 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31432 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
31433 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31434 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31435 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
31436 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
31437 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
31438 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
31439 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
31440 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
31441 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31442 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31443 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31444 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31445 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
31446 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
31447 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
31448 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
31449 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31450 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31451 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31452 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
31453 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
31454 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
31455 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
31456 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
31457 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
31458 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
31459 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
31460 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
31461 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
31462 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
31463 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
31464 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31465 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
31466 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31467 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
31468 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
31469 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
31470 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
31471 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
31472 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
31473 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
31474 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
31475 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
31476 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
31477 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31478 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
31479 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
31480 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
31481 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
31482 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31483 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31484 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
31485 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31486 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
31487 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
31488 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
31489 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31490 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
31491 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
31492 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31493 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31494 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31495 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
31496 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
31497 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31498 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31499 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
31500 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
31501 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
31502 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
31503 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
31504 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31505 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
31506 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31507 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
31508 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
31509 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
31510 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
31511 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
31512 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
31513 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
31514 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
31515 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
31516 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
31517 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31518 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
31519 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
31520 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
31521 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31522 { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS },
31523 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31524 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
31525 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
31526 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
31527 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
31528 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
31529 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
31530 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
31531 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
31532 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
31533 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
31534 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
31535 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31536 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31537 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
31538 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
31539 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
31540 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31541 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31542 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
31543 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
31544 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
31545 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
31546 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
31547 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
31548 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
31549 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
31550 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
31551 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
31552 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
31553 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
31554 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
31555 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31556 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31557 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31558 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
31559 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
31560 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
31561 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
31562 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
31563 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31564 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
31565 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
31566 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31567 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31568 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
31569 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
31570 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
31571 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
31572 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
31573 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
31574 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
31575 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
31576 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
31577 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
31578 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
31579 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
31580 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
31581 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
31582 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
31583 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
31584 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
31585 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
31586 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
31587 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
31588 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
31589 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
31590 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31591 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
31592 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
31593 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
31594 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
31595 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
31596 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31597 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31598 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31599 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31600 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
31601 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
31602 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
31603 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31604 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
31605 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
31606 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
31607 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31608 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
31609 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
31610 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
31611 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
31612 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31613 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31614 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
31615 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31616 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
31617 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
31618 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
31619 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
31620 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
31621 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
31622 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31623 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31624 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
31625 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
31626 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31627 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31628 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31629 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31630 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31631 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31632 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31633 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31634 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31635 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
31636 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
31637 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
31638 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
31639 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
31640 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
31641 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
31642 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
31643 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
31644 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
31645 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
31646 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
31647 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
31648 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
31649 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
31650 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
31651 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31652 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31653 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
31654 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
31655 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
31656 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
31657 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
31658 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
31659 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
31660 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
31661 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
31662 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
31663 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
31664 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
31665 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31666 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31667 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
31668 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
31669 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
31670 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
31671 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
31672 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
31673 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
31674 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
31675 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
31676 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
31677 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
31678 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
31679 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
31680 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
31681 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
31682 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
31683 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
31684 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
31685 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
31686 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
31687 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
31688 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
31689 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
31690 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
31691 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
31692 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
31693 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
31694 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
31695 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
31696 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
31697 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
31698 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
31699 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
31700 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
31701 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31702 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
31703 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
31704 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31705 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31706 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
31707 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
31708 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
31709 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
31710 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31711 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
31712 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
31713 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31714 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31715 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
31716 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
31717 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
31718 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31719 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31720 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
31721 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31722 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
31723 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
31724 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31725 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31726 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
31727 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
31728 { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
31729 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
31730 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
31731 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
31732 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
31733 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
31734 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31735 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31736 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31737 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31738 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31739 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
31740 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
31741 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
31742 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
31743 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31744 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31745 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
31746 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31747 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31748 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
31749 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
31750 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
31751 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31752 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31753 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31754 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31755 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS },
31756 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
31757 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
31758 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
31759 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
31760 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
31761 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31762 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
31763 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
31764 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
31765 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31766 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
31767 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31768 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
31769 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
31770 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
31771 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31772 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31773 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
31774 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
31775 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
31776 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
31777 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
31778 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
31779 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
31780 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31781 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31782 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31783 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31784 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
31785 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
31786 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31787 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
31788 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
31789 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
31790 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
31791 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
31792 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
31793 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
31794 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
31795 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
31796 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
31797 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
31798 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
31799 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
31800 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31801 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31802 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
31803 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
31804 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
31805 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
31806 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
31807 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
31808 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
31809 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
31810 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
31811 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
31812 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
31813 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
31814 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
31815 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
31816 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31817 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
31818 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
31819 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
31820 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31821 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
31822 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31823 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31824 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31825 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31826 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
31827 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31828 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31829 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
31830 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
31831 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
31832 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31833 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31834 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31835 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
31836 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
31837 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
31838 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
31839 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
31840 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31841 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
31842 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31843 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
31844 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31845 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
31846 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31847 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
31848 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31849 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
31850 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31851 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31852 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
31853 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31854 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31855 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31856 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
31857 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31858 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
31859 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS },
31860 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31861 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31862 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31863 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
31864 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31865 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
31866 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
31867 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
31868 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
31869 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
31870 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31871 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
31872 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
31873 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
31874 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
31875 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
31876 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
31877 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
31878 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
31879 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
31880 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
31881 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
31882 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
31883 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31884 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
31885 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
31886 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
31887 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
31888 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31889 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
31890 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
31891 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
31892 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
31893 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
31894 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
31895 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
31896 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
31897 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
31898 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31899 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
31900 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31901 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
31902 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
31903 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
31904 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31905 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
31906 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31907 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
31908 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31909 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31910 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31911 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
31912 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31913 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31914 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
31915 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
31916 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
31917 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
31918 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
31919 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
31920 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
31921 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31922 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31923 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
31924 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31925 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31926 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
31927 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
31928 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
31929 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
31930 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31931 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31932 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31933 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
31934 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
31935 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
31936 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS },
31937 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31938 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
31939 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
31940 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
31941 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31942 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
31943 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
31944 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
31945 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31946 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
31947 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
31948 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
31949 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
31950 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
31951 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
31952 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
31953 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
31954 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
31955 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
31956 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
31957 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS },
31958 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
31959 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
31960 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31961 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31962 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
31963 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
31964 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
31965 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
31966 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
31967 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31968 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31969 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
31970 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
31971 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
31972 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
31973 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
31974 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
31975 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
31976 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
31977 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
31978 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
31979 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
31980 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS },
31981 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
31982 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
31983 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
31984 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
31985 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
31986 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
31987 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
31988 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
31989 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
31990 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
31991 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
31992 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
31993 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
31994 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
31995 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
31996 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
31997 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
31998 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
31999 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
32000 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
32001 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
32002 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
32003 { NULL, NULL }
32004 };
32005
32006
32007 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32008
32009 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
32010 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32011 }
32012 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
32013 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
32014 }
32015 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32016 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32017 }
32018 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32019 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32020 }
32021 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32022 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32023 }
32024 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32025 return (void *)((wxSizer *) ((wxGridSizer *) x));
32026 }
32027 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32028 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32029 }
32030 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32031 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32032 }
32033 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32034 return (void *)((wxSizer *) ((wxPySizer *) x));
32035 }
32036 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32037 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32038 }
32039 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32040 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32041 }
32042 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32043 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32044 }
32045 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32046 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32047 }
32048 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32049 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32050 }
32051 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32052 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32053 }
32054 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32055 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32056 }
32057 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32058 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32059 }
32060 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32061 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32062 }
32063 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32064 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32065 }
32066 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32067 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32068 }
32069 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
32070 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32071 }
32072 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32073 return (void *)((wxEvent *) ((wxPyEvent *) x));
32074 }
32075 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32076 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32077 }
32078 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32079 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32080 }
32081 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32082 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32083 }
32084 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32085 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32086 }
32087 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32088 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32089 }
32090 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32091 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32092 }
32093 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32094 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32095 }
32096 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32097 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32098 }
32099 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32100 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32101 }
32102 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32103 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32104 }
32105 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32106 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32107 }
32108 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32109 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32110 }
32111 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32112 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32113 }
32114 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32115 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32116 }
32117 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32118 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32119 }
32120 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32121 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32122 }
32123 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32124 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32125 }
32126 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32127 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32128 }
32129 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32130 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32131 }
32132 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32133 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32134 }
32135 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32136 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32137 }
32138 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32139 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32140 }
32141 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32142 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32143 }
32144 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32145 return (void *)((wxEvent *) ((wxShowEvent *) x));
32146 }
32147 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32148 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32149 }
32150 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32151 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32152 }
32153 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32154 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32155 }
32156 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32157 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32158 }
32159 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32160 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32161 }
32162 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32163 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32164 }
32165 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32166 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32167 }
32168 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32169 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32170 }
32171 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32172 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32173 }
32174 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32175 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32176 }
32177 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32178 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32179 }
32180 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32181 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32182 }
32183 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32184 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32185 }
32186 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32187 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32188 }
32189 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
32190 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32191 }
32192 static void *_p_wxListBoxTo_p_wxControl(void *x) {
32193 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
32194 }
32195 static void *_p_wxChoiceTo_p_wxControl(void *x) {
32196 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
32197 }
32198 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32199 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32200 }
32201 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
32202 return (void *)((wxControl *) ((wxStaticBitmap *) x));
32203 }
32204 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32205 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32206 }
32207 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
32208 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32209 }
32210 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32211 return (void *)((wxControl *) ((wxStaticBox *) x));
32212 }
32213 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32214 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32215 }
32216 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32217 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32218 }
32219 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32220 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32221 }
32222 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32223 return (void *)((wxControl *) ((wxScrollBar *) x));
32224 }
32225 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32226 return (void *)((wxControl *) ((wxBookCtrl *) x));
32227 }
32228 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32229 return (void *)((wxControl *) ((wxRadioButton *) x));
32230 }
32231 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32232 return (void *)((wxControl *) ((wxToggleButton *) x));
32233 }
32234 static void *_p_wxGaugeTo_p_wxControl(void *x) {
32235 return (void *)((wxControl *) ((wxGauge *) x));
32236 }
32237 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32238 return (void *)((wxControl *) ((wxToolBarBase *) x));
32239 }
32240 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32241 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32242 }
32243 static void *_p_wxButtonTo_p_wxControl(void *x) {
32244 return (void *)((wxControl *) ((wxButton *) x));
32245 }
32246 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32247 return (void *)((wxControl *) ((wxSpinButton *) x));
32248 }
32249 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32250 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32251 }
32252 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32253 return (void *)((wxControl *) ((wxControlWithItems *) x));
32254 }
32255 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32256 return (void *)((wxControl *) ((wxRadioBox *) x));
32257 }
32258 static void *_p_wxNotebookTo_p_wxControl(void *x) {
32259 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32260 }
32261 static void *_p_wxListbookTo_p_wxControl(void *x) {
32262 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32263 }
32264 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32265 return (void *)((wxControl *) ((wxCheckBox *) x));
32266 }
32267 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32268 return (void *)((wxControl *) ((wxTextCtrl *) x));
32269 }
32270 static void *_p_wxListViewTo_p_wxControl(void *x) {
32271 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32272 }
32273 static void *_p_wxSliderTo_p_wxControl(void *x) {
32274 return (void *)((wxControl *) ((wxSlider *) x));
32275 }
32276 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32277 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32278 }
32279 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32280 return (void *)((wxControl *) ((wxPyControl *) x));
32281 }
32282 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32283 return (void *)((wxControl *) ((wxStaticLine *) x));
32284 }
32285 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32286 return (void *)((wxControl *) ((wxStaticText *) x));
32287 }
32288 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32289 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32290 }
32291 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
32292 return (void *)((wxChoice *) ((wxComboBox *) x));
32293 }
32294 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32295 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32296 }
32297 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32298 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32299 }
32300 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32301 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32302 }
32303 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32304 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32305 }
32306 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32307 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32308 }
32309 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32310 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32311 }
32312 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32313 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32314 }
32315 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32316 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32317 }
32318 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32319 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32320 }
32321 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32322 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32323 }
32324 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32325 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32326 }
32327 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32328 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32329 }
32330 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32331 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32332 }
32333 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32334 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32335 }
32336 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32337 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32338 }
32339 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32340 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32341 }
32342 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32343 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32344 }
32345 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32346 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32347 }
32348 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32349 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32350 }
32351 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32352 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32353 }
32354 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32355 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32356 }
32357 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32358 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32359 }
32360 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32361 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32362 }
32363 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32364 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32365 }
32366 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32367 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32368 }
32369 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32370 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32371 }
32372 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32373 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32374 }
32375 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32376 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32377 }
32378 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32379 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32380 }
32381 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32382 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32383 }
32384 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32385 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32386 }
32387 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32388 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32389 }
32390 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32391 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32392 }
32393 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32394 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32395 }
32396 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32397 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32398 }
32399 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32400 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32401 }
32402 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32403 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32404 }
32405 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32406 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32407 }
32408 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32409 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32410 }
32411 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32412 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32413 }
32414 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32415 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32416 }
32417 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32418 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32419 }
32420 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32421 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32422 }
32423 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32424 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32425 }
32426 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32427 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32428 }
32429 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32430 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32431 }
32432 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32433 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32434 }
32435 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32436 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32437 }
32438 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32439 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32440 }
32441 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32442 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32443 }
32444 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32445 return (void *)((wxButton *) ((wxBitmapButton *) x));
32446 }
32447 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32448 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32449 }
32450 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32451 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32452 }
32453 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32454 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32455 }
32456 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32457 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32458 }
32459 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32460 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32461 }
32462 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32463 return (void *)((wxObject *) ((wxSizerItem *) x));
32464 }
32465 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32466 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32467 }
32468 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32469 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32470 }
32471 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32472 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32473 }
32474 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32475 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32476 }
32477 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32478 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32479 }
32480 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32481 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32482 }
32483 static void *_p_wxSizerTo_p_wxObject(void *x) {
32484 return (void *)((wxObject *) ((wxSizer *) x));
32485 }
32486 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32487 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32488 }
32489 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32490 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32491 }
32492 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32493 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32494 }
32495 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32496 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32497 }
32498 static void *_p_wxEventTo_p_wxObject(void *x) {
32499 return (void *)((wxObject *) ((wxEvent *) x));
32500 }
32501 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32502 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32503 }
32504 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32505 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32506 }
32507 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32508 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32509 }
32510 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
32511 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32512 }
32513 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
32514 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32515 }
32516 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
32517 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32518 }
32519 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32520 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32521 }
32522 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32523 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32524 }
32525 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32526 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32527 }
32528 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32529 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32530 }
32531 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32532 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32533 }
32534 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32535 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32536 }
32537 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
32538 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
32539 }
32540 static void *_p_wxControlTo_p_wxObject(void *x) {
32541 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32542 }
32543 static void *_p_wxPyControlTo_p_wxObject(void *x) {
32544 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
32545 }
32546 static void *_p_wxGaugeTo_p_wxObject(void *x) {
32547 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
32548 }
32549 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
32550 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
32551 }
32552 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
32553 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
32554 }
32555 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
32556 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32557 }
32558 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32559 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32560 }
32561 static void *_p_wxChoiceTo_p_wxObject(void *x) {
32562 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32563 }
32564 static void *_p_wxFSFileTo_p_wxObject(void *x) {
32565 return (void *)((wxObject *) ((wxFSFile *) x));
32566 }
32567 static void *_p_wxPySizerTo_p_wxObject(void *x) {
32568 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32569 }
32570 static void *_p_wxListViewTo_p_wxObject(void *x) {
32571 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32572 }
32573 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
32574 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32575 }
32576 static void *_p_wxNotebookTo_p_wxObject(void *x) {
32577 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32578 }
32579 static void *_p_wxPyEventTo_p_wxObject(void *x) {
32580 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32581 }
32582 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32583 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32584 }
32585 static void *_p_wxListbookTo_p_wxObject(void *x) {
32586 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32587 }
32588 static void *_p_wxShowEventTo_p_wxObject(void *x) {
32589 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32590 }
32591 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
32592 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32593 }
32594 static void *_p_wxSliderTo_p_wxObject(void *x) {
32595 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
32596 }
32597 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32598 return (void *)((wxObject *) ((wxMenuItem *) x));
32599 }
32600 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32601 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32602 }
32603 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32604 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32605 }
32606 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32607 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32608 }
32609 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32610 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32611 }
32612 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32613 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32614 }
32615 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32616 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32617 }
32618 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32619 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32620 }
32621 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32622 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32623 }
32624 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
32625 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
32626 }
32627 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
32628 return (void *)((wxObject *) ((wxContextHelp *) x));
32629 }
32630 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32631 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32632 }
32633 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32634 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32635 }
32636 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32637 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32638 }
32639 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32640 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32641 }
32642 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32643 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32644 }
32645 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32646 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32647 }
32648 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32649 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32650 }
32651 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32652 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32653 }
32654 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32655 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32656 }
32657 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32658 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32659 }
32660 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32661 return (void *)((wxObject *) ((wxImageHandler *) x));
32662 }
32663 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32664 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32665 }
32666 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32667 return (void *)((wxObject *) ((wxEvtHandler *) x));
32668 }
32669 static void *_p_wxListEventTo_p_wxObject(void *x) {
32670 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32671 }
32672 static void *_p_wxListBoxTo_p_wxObject(void *x) {
32673 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32674 }
32675 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
32676 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32677 }
32678 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
32679 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32680 }
32681 static void *_p_wxButtonTo_p_wxObject(void *x) {
32682 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
32683 }
32684 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
32685 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32686 }
32687 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
32688 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
32689 }
32690 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
32691 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32692 }
32693 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32694 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32695 }
32696 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
32697 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
32698 }
32699 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
32700 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
32701 }
32702 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
32703 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32704 }
32705 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
32706 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
32707 }
32708 static void *_p_wxListItemTo_p_wxObject(void *x) {
32709 return (void *)((wxObject *) ((wxListItem *) x));
32710 }
32711 static void *_p_wxImageTo_p_wxObject(void *x) {
32712 return (void *)((wxObject *) ((wxImage *) x));
32713 }
32714 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
32715 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
32716 }
32717 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32718 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32719 }
32720 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
32721 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32722 }
32723 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
32724 return (void *)((wxObject *) ((wxGenericDragImage *) x));
32725 }
32726 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
32727 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32728 }
32729 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
32730 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32731 }
32732 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
32733 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32734 }
32735 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32736 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32737 }
32738 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32739 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32740 }
32741 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32742 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32743 }
32744 static void *_p_wxWindowTo_p_wxObject(void *x) {
32745 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32746 }
32747 static void *_p_wxMenuTo_p_wxObject(void *x) {
32748 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32749 }
32750 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32751 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32752 }
32753 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32754 return (void *)((wxObject *) ((wxFileSystem *) x));
32755 }
32756 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32757 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32758 }
32759 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32760 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32761 }
32762 static void *_p_wxPyAppTo_p_wxObject(void *x) {
32763 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32764 }
32765 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32766 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32767 }
32768 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32769 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32770 }
32771 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32772 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32773 }
32774 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
32775 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32776 }
32777 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32778 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32779 }
32780 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32781 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32782 }
32783 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
32784 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
32785 }
32786 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32787 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32788 }
32789 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32790 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32791 }
32792 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32793 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32794 }
32795 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32796 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32797 }
32798 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
32799 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
32800 }
32801 static void *_p_wxToolBarTo_p_wxObject(void *x) {
32802 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32803 }
32804 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32805 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32806 }
32807 static void *_p_wxValidatorTo_p_wxObject(void *x) {
32808 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32809 }
32810 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
32811 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
32812 }
32813 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
32814 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
32815 }
32816 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32817 return (void *)((wxWindow *) ((wxMenuBar *) x));
32818 }
32819 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
32820 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32821 }
32822 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
32823 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
32824 }
32825 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
32826 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
32827 }
32828 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
32829 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
32830 }
32831 static void *_p_wxControlTo_p_wxWindow(void *x) {
32832 return (void *)((wxWindow *) ((wxControl *) x));
32833 }
32834 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
32835 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
32836 }
32837 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
32838 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32839 }
32840 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
32841 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
32842 }
32843 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
32844 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32845 }
32846 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
32847 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
32848 }
32849 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
32850 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
32851 }
32852 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32853 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32854 }
32855 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
32856 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
32857 }
32858 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
32859 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
32860 }
32861 static void *_p_wxListbookTo_p_wxWindow(void *x) {
32862 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32863 }
32864 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
32865 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
32866 }
32867 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
32868 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
32869 }
32870 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
32871 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
32872 }
32873 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
32874 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32875 }
32876 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
32877 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32878 }
32879 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
32880 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32881 }
32882 static void *_p_wxListViewTo_p_wxWindow(void *x) {
32883 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32884 }
32885 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
32886 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32887 }
32888 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
32889 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
32890 }
32891 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
32892 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
32893 }
32894 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
32895 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
32896 }
32897 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
32898 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
32899 }
32900 static void *_p_wxSliderTo_p_wxWindow(void *x) {
32901 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
32902 }
32903 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
32904 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
32905 }
32906 static void *_p_wxButtonTo_p_wxWindow(void *x) {
32907 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
32908 }
32909 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
32910 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
32911 }
32912 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
32913 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32914 }
32915 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
32916 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
32917 }
32918 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
32919 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32920 }
32921 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
32922 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32923 }
32924 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
32925 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
32926 }
32927 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
32928 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
32929 }
32930 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
32931 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
32932 }
32933 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
32934 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
32935 }
32936 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
32937 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
32938 }
32939 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
32940 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32941 }
32942 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
32943 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32944 }
32945 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
32946 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
32947 }
32948 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
32949 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
32950 }
32951 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
32952 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
32953 }
32954 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
32955 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
32956 }
32957 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
32958 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
32959 }
32960 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
32961 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
32962 }
32963 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
32964 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
32965 }
32966 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
32967 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
32968 }
32969 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
32970 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
32971 }
32972 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
32973 return (void *)((wxControlWithItems *) ((wxChoice *) x));
32974 }
32975 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
32976 return (void *)((wxControlWithItems *) ((wxListBox *) x));
32977 }
32978 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
32979 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
32980 }
32981 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
32982 return (void *)((wxValidator *) ((wxPyValidator *) x));
32983 }
32984 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}};
32985 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}};
32986 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}};
32987 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}};
32988 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}};
32989 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}};
32990 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}};
32991 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}};
32992 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}};
32993 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}};
32994 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}};
32995 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}};
32996 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}};
32997 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}};
32998 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}};
32999 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}};
33000 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}};
33001 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}};
33002 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}};
33003 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}};
33004 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}};
33005 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}};
33006 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}};
33007 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}};
33008 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}};
33009 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}};
33010 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}};
33011 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}};
33012 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}};
33013 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}};
33014 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}};
33015 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}};
33016 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}};
33017 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}};
33018 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}};
33019 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}};
33020 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}};
33021 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}};
33022 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}};
33023 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}};
33024 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}};
33025 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}};
33026 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}};
33027 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}};
33028 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}};
33029 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}};
33030 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}};
33031 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}};
33032 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}};
33033 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}};
33034 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}};
33035 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}};
33036 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}};
33037 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}};
33038 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}};
33039 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}};
33040 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}};
33041 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}};
33042 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}};
33043 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}};
33044 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}};
33045 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}};
33046 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}};
33047 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}};
33048 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}};
33049 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}};
33050 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}};
33051 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}};
33052 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}};
33053 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}};
33054 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}};
33055 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}};
33056 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}};
33057 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}};
33058 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}};
33059 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}};
33060 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}};
33061 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}};
33062 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}};
33063 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}};
33064 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}};
33065 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}};
33066 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}};
33067 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}};
33068 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}};
33069
33070 static swig_type_info *swig_types_initial[] = {
33071 _swigt__p_wxTextUrlEvent,
33072 _swigt__p_wxBookCtrlEvent,
33073 _swigt__p_wxSizer,
33074 _swigt__p_wxCheckBox,
33075 _swigt__p_wxPyTreeCtrl,
33076 _swigt__p_wxEvent,
33077 _swigt__p_wxGenericDirCtrl,
33078 _swigt__p_bool,
33079 _swigt__p_wxPyTreeItemData,
33080 _swigt__p_wxItemContainer,
33081 _swigt__p_wxPyListCtrl,
33082 _swigt__p_wxDirFilterListCtrl,
33083 _swigt__p_wxStaticLine,
33084 _swigt__p_wxControl,
33085 _swigt__p_wxPyControl,
33086 _swigt__p_wxGauge,
33087 _swigt__p_wxToolBarBase,
33088 _swigt__p_wxFont,
33089 _swigt__p_wxToggleButton,
33090 _swigt__p_wxRadioButton,
33091 _swigt__p_wxChoice,
33092 _swigt__p_wxMemoryDC,
33093 _swigt__p_wxListItemAttr,
33094 _swigt__p_void,
33095 _swigt__p_int,
33096 _swigt__p_wxSize,
33097 _swigt__p_wxDC,
33098 _swigt__p_wxListView,
33099 _swigt__p_wxIcon,
33100 _swigt__p_wxVisualAttributes,
33101 _swigt__p_wxTextCtrl,
33102 _swigt__p_wxNotebook,
33103 _swigt__p_wxNotifyEvent,
33104 _swigt__p_wxArrayString,
33105 _swigt__p_wxListbook,
33106 _swigt__p_wxStaticBitmap,
33107 _swigt__p_wxSlider,
33108 _swigt__p_wxStaticBox,
33109 _swigt__p_wxArrayInt,
33110 _swigt__p_wxContextHelp,
33111 _swigt__p_long,
33112 _swigt__p_wxEvtHandler,
33113 _swigt__p_wxListEvent,
33114 _swigt__p_wxCheckListBox,
33115 _swigt__p_wxListBox,
33116 _swigt__p_wxBookCtrl,
33117 _swigt__p_wxSpinButton,
33118 _swigt__p_wxButton,
33119 _swigt__p_wxBitmapButton,
33120 _swigt__p_wxRect,
33121 _swigt__p_wxContextHelpButton,
33122 _swigt__p_wxRadioBox,
33123 _swigt__p_wxScrollBar,
33124 _swigt__p_char,
33125 _swigt__p_wxTreeItemId,
33126 _swigt__p_wxComboBox,
33127 _swigt__p_wxHelpEvent,
33128 _swigt__p_wxListItem,
33129 _swigt__p_wxNotebookSizer,
33130 _swigt__p_wxSpinEvent,
33131 _swigt__p_wxGenericDragImage,
33132 _swigt__p_wxSpinCtrl,
33133 _swigt__p_wxImageList,
33134 _swigt__p_wxHelpProvider,
33135 _swigt__p_wxTextAttr,
33136 _swigt__p_wxSimpleHelpProvider,
33137 _swigt__p_wxPoint,
33138 _swigt__p_wxListbookEvent,
33139 _swigt__p_wxNotebookEvent,
33140 _swigt__p_wxObject,
33141 _swigt__p_wxCursor,
33142 _swigt__p_wxKeyEvent,
33143 _swigt__p_wxWindow,
33144 _swigt__p_wxString,
33145 _swigt__p_wxBitmap,
33146 _swigt__p_wxTreeEvent,
33147 _swigt__p_wxMouseEvent,
33148 _swigt__p_wxCommandEvent,
33149 _swigt__p_wxStaticText,
33150 _swigt__p_wxControlWithItems,
33151 _swigt__p_wxToolBarToolBase,
33152 _swigt__p_wxColour,
33153 _swigt__p_wxToolBar,
33154 _swigt__p_wxBookCtrlSizer,
33155 _swigt__p_wxValidator,
33156 0
33157 };
33158
33159
33160 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33161
33162 static swig_const_info swig_const_table[] = {
33163 {0}};
33164
33165 #ifdef __cplusplus
33166 }
33167 #endif
33168
33169 #ifdef __cplusplus
33170 extern "C"
33171 #endif
33172 SWIGEXPORT(void) SWIG_init(void) {
33173 static PyObject *SWIG_globals = 0;
33174 static int typeinit = 0;
33175 PyObject *m, *d;
33176 int i;
33177 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33178 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33179 d = PyModule_GetDict(m);
33180
33181 if (!typeinit) {
33182 for (i = 0; swig_types_initial[i]; i++) {
33183 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33184 }
33185 typeinit = 1;
33186 }
33187 SWIG_InstallConstants(d,swig_const_table);
33188
33189 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33190 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33191 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
33192 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
33193 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
33194 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
33195 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
33196 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
33197 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33198 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
33199 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
33200 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
33201 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
33202 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
33203 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
33204 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
33205 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
33206 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
33207 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
33208 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
33209 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
33210 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
33211 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
33212 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
33213 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
33214 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33215 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33216 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
33217 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
33218 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
33219 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
33220 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
33221 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
33222 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
33223 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
33224 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
33225 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
33226 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
33227 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
33228 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
33229 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
33230 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
33231 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
33232 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
33233 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
33234 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
33235 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
33236 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
33237 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
33238 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
33239 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33240 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
33241 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33242 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
33243 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
33244 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
33245 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
33246 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
33247 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
33248 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
33249 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
33250 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
33251 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
33252 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
33253 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
33254 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
33255 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
33256 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
33257 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33258 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33259 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33260 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33261 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33262 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33263 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33264 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
33265 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
33266 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
33267 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
33268 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33269 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33270 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33271 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33272 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33273 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33274 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33275 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
33276 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
33277 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
33278 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
33279 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
33280 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
33281 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
33282 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
33283 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
33284 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
33285 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33286 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33287 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
33288 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
33289 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
33290 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
33291 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
33292 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
33293 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33294 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33295 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
33296 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
33297 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
33298 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
33299 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
33300 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
33301 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
33302 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
33303 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
33304 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
33305 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
33306 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
33307 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
33308 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
33309 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33310 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
33311 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
33312 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
33313 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
33314 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
33315 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
33316 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
33317 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
33318 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
33319 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
33320 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
33321 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
33322 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
33323 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
33324 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
33325 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
33326 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
33327 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
33328 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
33329 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
33330 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
33331 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
33332 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
33333 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
33334 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
33335 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
33336 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
33337 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
33338 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
33339 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
33340 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
33341 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
33342 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
33343 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
33344 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
33345 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
33346 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
33347 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
33348 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
33349 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
33350 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
33351 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
33352 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
33353 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
33354 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
33355 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
33356 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
33357 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
33358 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
33359 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
33360 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
33361 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
33362 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
33363 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
33364 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
33365 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
33366 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
33367 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
33368 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
33369 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
33370 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
33371 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
33372 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
33373 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
33374 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
33375 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
33376 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
33377 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
33378 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33379 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33380 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33381 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33382 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33383 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33384 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33385 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33386 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33387 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33388 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33389 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33390 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33391 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33392 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33393 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33394 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33395 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33396 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33397 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33398 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33399 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33400
33401 // Map renamed classes back to their common name for OOR
33402 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33403
33404 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33405 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
33406 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
33407 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
33408 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
33409 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
33410 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
33411 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
33412 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33413 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
33414 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
33415 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
33416 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
33417 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
33418 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
33419 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
33420 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
33421 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
33422 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
33423 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
33424 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
33425 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
33426 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
33427 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
33428 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
33429 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
33430 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
33431 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
33432 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
33433 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
33434 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
33435 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
33436 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
33437 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
33438 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
33439 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
33440 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33441 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33442 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33443 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33444 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33445 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33446 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33447 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33448 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33449 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33450 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33451 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33452 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33453 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33454 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33455 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33456 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33457 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33458 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33459 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33460
33461 // Map renamed classes back to their common name for OOR
33462 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33463 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33464
33465 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33466 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
33467 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
33468 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
33469 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
33470 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
33471 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
33472 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
33473 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33474 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33475
33476 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33477
33478 }
33479